From 8c0217c76e4b45db4e0f9286169b7e83e33c1d06 Mon Sep 17 00:00:00 2001 From: antazoey Date: Tue, 28 May 2024 07:48:32 -0500 Subject: [PATCH] refactor!: project system refactors (#1960) --- docs/index.md | 14 +- docs/methoddocs/ape_compile.md | 6 + docs/methoddocs/ape_pm.md | 6 + docs/methoddocs/managers.md | 26 +- docs/userguides/compile.md | 33 +- docs/userguides/dependencies.md | 43 +- docs/userguides/projects.md | 72 +- docs/userguides/publishing.md | 6 +- setup.py | 2 +- src/ape/__init__.py | 2 +- src/ape/_cli.py | 4 +- src/ape/api/accounts.py | 10 +- src/ape/api/compiler.py | 95 +- src/ape/api/config.py | 389 ++- src/ape/api/networks.py | 7 +- src/ape/api/projects.py | 684 +---- src/ape/api/providers.py | 2 +- src/ape/api/transactions.py | 4 +- src/ape/cli/__init__.py | 2 + src/ape/cli/arguments.py | 76 +- src/ape/cli/options.py | 44 +- src/ape/contracts/base.py | 6 +- src/ape/exceptions.py | 2 +- src/ape/managers/__init__.py | 30 +- src/ape/managers/accounts.py | 14 +- src/ape/managers/chain.py | 8 +- src/ape/managers/compilers.py | 185 +- src/ape/managers/config.py | 428 +-- src/ape/managers/project.py | 2302 +++++++++++++++++ src/ape/managers/project/__init__.py | 13 - src/ape/managers/project/dependency.py | 471 ---- src/ape/managers/project/manager.py | 892 ------- src/ape/managers/project/types.py | 374 --- src/ape/managers/query.py | 3 +- src/ape/pytest/coverage.py | 21 +- src/ape/pytest/fixtures.py | 2 +- src/ape/pytest/plugin.py | 36 +- src/ape/pytest/runners.py | 4 +- src/ape/types/coverage.py | 2 +- src/ape/utils/__init__.py | 4 + src/ape/utils/_github.py | 3 +- src/ape/utils/basemodel.py | 10 +- src/ape/utils/misc.py | 9 +- src/ape/utils/os.py | 67 +- src/ape_compile/__init__.py | 88 +- src/ape_compile/_cli.py | 70 +- src/ape_console/_cli.py | 14 +- src/ape_console/plugin.py | 6 +- src/ape_ethereum/ecosystem.py | 1 - src/ape_ethereum/provider.py | 4 +- src/ape_ethereum/transactions.py | 2 +- src/ape_node/provider.py | 2 +- src/ape_pm/__init__.py | 23 + src/ape_pm/_cli.py | 361 ++- src/ape_pm/compiler.py | 71 +- src/ape_pm/dependency.py | 338 +++ src/ape_pm/projects.py | 103 + src/ape_run/_cli.py | 12 +- tests/conftest.py | 219 +- tests/functional/conftest.py | 47 +- .../OpenZeppelin/v3.1.0/OpenZeppelin.json | 1 - .../OpenZeppelin/v4.4.2/OpenZeppelin.json | 1 - .../openzeppelin/3.1.0/openzeppelin.json | 1 + .../openzeppelin/4.4.2/openzeppelin.json | 1 + .../BrownieProject/brownie-config.yaml | 2 + .../brownie.json | 0 tests/functional/geth/conftest.py | 4 +- tests/functional/geth/test_provider.py | 13 +- tests/functional/test_accounts.py | 32 +- tests/functional/test_chain.py | 2 +- tests/functional/test_cli.py | 123 +- tests/functional/test_compilers.py | 81 +- tests/functional/test_config.py | 187 +- tests/functional/test_console.py | 2 +- tests/functional/test_contract_container.py | 4 +- tests/functional/test_contract_instance.py | 14 +- tests/functional/test_contracts_cache.py | 8 +- tests/functional/test_coverage.py | 38 + tests/functional/test_dependencies.py | 515 +++- tests/functional/test_ecosystem.py | 146 +- tests/functional/test_network_api.py | 73 +- tests/functional/test_network_manager.py | 8 +- tests/functional/test_project.py | 1097 ++++---- tests/functional/test_provider.py | 34 +- tests/functional/utils/test_os.py | 4 +- tests/integration/cli/conftest.py | 73 +- .../contracts/Interface.exclude.json | 2 +- .../contracts/Interface.json | 2 +- .../projects/only-dependencies/__init__.py | 0 .../only-dependencies/ape-config.yaml | 3 + .../cli/projects/script/scripts/error_cli.py | 2 - .../projects/with-contracts/ape-config.yaml | 2 +- tests/integration/cli/test_accounts.py | 15 +- tests/integration/cli/test_compile.py | 233 +- tests/integration/cli/test_console.py | 97 +- tests/integration/cli/test_init.py | 4 +- tests/integration/cli/test_networks.py | 64 +- tests/integration/cli/test_pm.py | 255 +- tests/integration/cli/test_run.py | 106 +- tests/integration/cli/test_test.py | 198 +- 100 files changed, 6053 insertions(+), 5168 deletions(-) create mode 100644 docs/methoddocs/ape_compile.md create mode 100644 docs/methoddocs/ape_pm.md create mode 100644 src/ape/managers/project.py delete mode 100644 src/ape/managers/project/__init__.py delete mode 100644 src/ape/managers/project/dependency.py delete mode 100644 src/ape/managers/project/manager.py delete mode 100644 src/ape/managers/project/types.py create mode 100644 src/ape_pm/dependency.py create mode 100644 src/ape_pm/projects.py delete mode 100644 tests/functional/data/manifests/OpenZeppelin/v3.1.0/OpenZeppelin.json delete mode 100644 tests/functional/data/manifests/OpenZeppelin/v4.4.2/OpenZeppelin.json create mode 100644 tests/functional/data/manifests/openzeppelin/3.1.0/openzeppelin.json create mode 100644 tests/functional/data/manifests/openzeppelin/4.4.2/openzeppelin.json rename tests/functional/data/projects/BrownieProject/{contracts => contractsrenamed}/brownie.json (100%) create mode 100644 tests/integration/cli/projects/only-dependencies/__init__.py diff --git a/docs/index.md b/docs/index.md index f6e218173d..502dcc6606 100644 --- a/docs/index.md +++ b/docs/index.md @@ -25,6 +25,7 @@ userguides/scripts userguides/publishing userguides/logging + userguides/trace ``` ```{eval-rst} @@ -45,11 +46,10 @@ ```{eval-rst} .. toctree:: - :caption: Python Reference + :caption: Core Python Reference :maxdepth: 1 methoddocs/ape.md - methoddocs/ape_accounts.md methoddocs/api.md methoddocs/cli.md methoddocs/contracts.md @@ -59,3 +59,13 @@ methoddocs/types.md methoddocs/utils.md ``` + +```{eval-rst} +.. toctree:: + :caption: Plugin Python Reference + :maxdepth: 1 + + methoddocs/ape_accounts.md + methoddocs/ape_compile.md + methoddocs/ape_pm.md +``` diff --git a/docs/methoddocs/ape_compile.md b/docs/methoddocs/ape_compile.md new file mode 100644 index 0000000000..7e03a36234 --- /dev/null +++ b/docs/methoddocs/ape_compile.md @@ -0,0 +1,6 @@ +# ape-compile + +```{eval-rst} +.. automodule:: ape_compile + :members: +``` diff --git a/docs/methoddocs/ape_pm.md b/docs/methoddocs/ape_pm.md new file mode 100644 index 0000000000..75469d4dca --- /dev/null +++ b/docs/methoddocs/ape_pm.md @@ -0,0 +1,6 @@ +# ape-pm + +```{eval-rst} +.. automodule:: ape_pm + :members: +``` diff --git a/docs/methoddocs/managers.md b/docs/methoddocs/managers.md index d6f48b7263..b6b6c86df4 100644 --- a/docs/methoddocs/managers.md +++ b/docs/methoddocs/managers.md @@ -72,31 +72,7 @@ ## Project ```{eval-rst} -.. automodule:: ape.managers.project.manager - :members: - :special-members: -``` - -```{eval-rst} -.. automodule:: ape.managers.project.dependency - :members: - :special-members: -``` - -```{eval-rst} -.. autoclass:: ape.managers.project.types.BaseProject - :members: - :special-members: -``` - -```{eval-rst} -.. autoclass:: ape.managers.project.types.ApeProject - :members: - :special-members: -``` - -```{eval-rst} -.. autoclass:: ape.managers.project.types.BrownieProject +.. automodule:: ape.managers.project :members: :special-members: ``` diff --git a/docs/userguides/compile.md b/docs/userguides/compile.md index 45291397c0..5a5cbeaa78 100644 --- a/docs/userguides/compile.md +++ b/docs/userguides/compile.md @@ -87,23 +87,8 @@ compile: ## Settings Generally, configure compiler plugins using your `ape-config.yaml` file. -One setting that applies to many compiler plugins is `cache_folder`, which holds dependency source files the compiler uses when compiling your contracts. -By default, the folder is in your `contracts/.cache` folder but there are times you may want to move this to another location. -Paths are relative to the project directory. -For instance, to move the dependency cache to the root project directory: -```yaml -compile: - cache_folder: .cache -``` - -```{caution} -Changing the location of the dependency cache folder may alter the the output bytecode of your contracts from some compilers. -Specifically, the [solc compiler will apend a hash of the input metadata to the contract bytecode](https://docs.soliditylang.org/en/latest/metadata.html#encoding-of-the-metadata-hash-in-the-bytecode) which will change with contract path or compiler settings changes. -This may impact things like contract verification on existing projects. -``` - -As another example, when using the `vyper` plugin, you can configure settings under the `vyper` key: +For example, when using the `vyper` plugin, you can configure settings under the `vyper` key: ```yaml vyper: @@ -158,3 +143,19 @@ owner = accounts.test_accounts[0] instance = container.deploy(sender=owner) ``` + +## Output Extra + +Sometimes, there are extra output styles you may want. +For example, to output minified ABI JSONs, use the following config: + +```yaml +compile: + output_extra: + - ABI +``` + +Then, after compiling, you should notice minified ABI json files in your `.build/abi` folder. +This is useful if hosting these files on a web-server. + +To see the full list of supported output-extra, see [the OutpuExtra enum documentation](../methoddocs/ape_compile.html#ape_compile.OutputExtras). diff --git a/docs/userguides/dependencies.md b/docs/userguides/dependencies.md index f9add4419b..faae4cf7db 100644 --- a/docs/userguides/dependencies.md +++ b/docs/userguides/dependencies.md @@ -1,10 +1,17 @@ # Dependencies -Ape downloads and caches dependencies in the `.ape/packages//` directory where `` refers to the name of the dependency and `` refers to the version or branch of the package. -When first downloading dependencies, Ape only places the source contents in the `sources` field of the `PackageManifest` and leaves the `contract_types` field untouched. -This is because dependencies may not compile by Ape's standard out-of-the-box but their contract types can still be used in projects that do. +Ape downloads and caches dependencies in the `.ape/packages` folder. +There are three sub-folders in `.ape/packages` for dependencies: -To use dependencies in your projects, you must configure them in your `ape-config.yaml` file. +1. `projects/` - contains the raw project files for each dependency in subsequent `//` directories (where `` refers to the path-ified full-name of the dependency, e.g. `"OpenZeppelin_openzeppelin-contracts"`, and `` refers to the version or branch of the package). + This location is where local project compilation looks for additional sources from import statements. +2. `manifests/` - much like your local projects' `.build/__local__.json`, this is where dependencies cache their manifests. + When you compile a dependency, the contract types are stored in the dependency manifest's JSON file. +3. `api/` - for caching the API data placed in `dependencies:` config or `ape pm install` commands, allowing dependency usage and management from anywhere in the file system. + +*NOTE*: You can install dependencies that don't compile out-of-the-box. +Sometimes, dependencies are only collections of source files not meant to compile on their own but instead be used in projects via import statements. +You can change the settings of a dependency using `config_override:` to compile dependencies after installed, if needed, and the `api/` cache always refers to the latest used during installation or compilation. ## Types of Dependencies @@ -93,26 +100,17 @@ You can also install and / or compile dependencies using the `pm` CLI. ### list -To list information about the dependencies in your local project, run: +To list information about installed dependencies, run: ```shell ape pm list ``` -To list information about all installed dependencies across all projects, run: - -```shell -ape pm list --all -``` - You should see information like: ```shell -Packages: - OpenZeppelin v4.6.0, compiled! - vault master - vault v0.4.5 - gnosis v1.3.0 +NAME VERSION COMPILED +openzeppelin 4.9.3 - ``` ### install @@ -149,6 +147,16 @@ ape pm install gh:OpenZeppelin/openzeppelin-contracts \ --config-override '{"solidity": {"version": "0.8.12"}}' ``` +You can also use Python to install dependencies, using `**kwargs` as the same fields you put in your `dependencies:` config: + +```python +from ape import project + +project.dependencies.install( + github="OpenZeppelin/openzeppelin-contracts", name="openzeppelin", version="4.4.2" +) +``` + ### uninstall Remove previously installed packages using the `uninstall` command: @@ -285,7 +293,8 @@ You can achieve this using the project manager: from ape import accounts, project # NOTE: This will compile the dependency -dependency_contract = project.dependencies["my_dependency"]["1.0.0"].DependencyContractType +dependency_project = project.dependencies["my_dependency"]["1.0.0"] +dependency_contract = dependency_project.DependencyContractType my_account = accounts.load("alias") deployed_contract = my_account.deploy(dependency_contract, "argument") print(deployed_contract.address) diff --git a/docs/userguides/projects.md b/docs/userguides/projects.md index e792b785bd..bd7431727e 100644 --- a/docs/userguides/projects.md +++ b/docs/userguides/projects.md @@ -17,64 +17,56 @@ project # The root project directory Notice that you can configure you ape project using the `ape-config.yaml` file. See the [configuration guide](./config.html) for a more detailed explanation of settings you can adjust. -## Adding Plugins +## The Local Project -Your project may require plugins. -To install plugins, use the `ape plugins install .` command. -Learn more about configuring your project's required plugins by following [this guide](./installing_plugins.html). - -## Compiling Contracts - -The project manager object is a representation of your current project. -Access it from the root `ape` namespace: +After you have a local project and you are in the directory of that project, the global `project` reference in Ape will refer to this project. +You can see this by typing `project` in the `ape console`: ```python -from ape import project -``` - -Your `project` contains all the "relevant" files, such as source files in the `contracts/` directory. -Use the following command to compile all contracts in the `contracts/` directory: - -```bash -ape compile +In [1]: project +Out[1]: ``` -For more information on compiling your project, see [this guide](./compile.html). +In this case, my terminal's current working directory is the same as a local project named `ape-demo-project`. -## Deploying Contracts +## Other Projects -After compiling, the contract containers are accessible from the `project` manager. -Deploy them in the `console` or in scripts; for example: +You can reference other local projects on your computer by using the `Project` factory class (notice the capital `P`): ```python -from ape import accounts, project +from ape import Project -account = accounts.load("my_account_alias") -account.deploy(project.MyContract) +my_other_project = Project("../path/to/my/other/project") +_ = my_other_project.MyContract # Do anything you can do to the root-level project. ``` -**NOTE**: You can also deploy contracts from the container itself: +## Project Manifests + +Ape stores and caches artifacts in an [EthPM package manifest](https://eips.ethereum.org/EIPS/eip-2678). +When working with local projects, the manifests get placed in the `/.build/__local__.json`. +However, you may obtain a manifest from a different location. +If that is the case, you can create a project directly from the manifest itself: ```python -from ape import accounts, project +from ape import Project -account = accounts.load("my_account_alias") -project.MyContract.deploy(sender=account) +# Pass in a manifest (object or dictionary), or a path to a manifest's JSON file. +project = Project.from_manifest("path/to/manifest.json") +_ = project.MyContract # Do anything you can do to the root-level project. ``` -### Dependencies - -To set up and use dependencies in your project, follow [this guide](./dependencies.html). +## Dependencies -## Scripts +Use other projects as dependencies in Ape. +There is an extensive guide you can read on this [here](./dependencies.html). +But it is important to note that the dependency system largely is dependent on the project system. +Dependencies are just projects after all; projects containing source files you both use in your projects or compile independently. -The scripts folder contains project automation scripts, such as deploy scripts, as well as other executable jobs, such as scripts for running simulations. -To learn more about scripting in Ape, see [the scripting guide](./scripts.html). +For example, access a dependency project and treat it like any other project this way: -## Testing +```python +from ape import project -Use tests to verify your project. -You can test your project using the `ape test` command. -The `ape test` command comes with the core-plugin `ape-test`. -The `ape-test` plugin extends the popular python testing framework [pytest](https://docs.pytest.org/en/6.2.x/contents.html). -Testing is a complex topic; learn more about testing using Ape framework [here](./testing.html). +dependency = project.dependencies.get_dependency("my-dependency", "1.0.0") +contract_type = dependency.project.ContractFromDependency +``` diff --git a/docs/userguides/publishing.md b/docs/userguides/publishing.md index 3cfe4d905c..b7962e45a7 100644 --- a/docs/userguides/publishing.md +++ b/docs/userguides/publishing.md @@ -16,7 +16,7 @@ Once your project has successfully compiled, you will have the start of your `Pa ## Tracking Deployments -If your project contains deployments that you wish to include in its package manifest, use the [track_deployment()](../methoddocs/managers.html#ape.managers.project.manager.ProjectManager.track_deployment) method. +If your project contains deployments that you wish to include in its package manifest, use the [project.deployments.track](../methoddocs/managers.html#ape.managers.project.manager.DeploymentManager.track) method. Example: ```python @@ -26,7 +26,7 @@ account = accounts.load("mainnet-account") # Assume your project has a contract named 'MyContract' with constructor that accepts argument '123'. contract = project.MyContract.deploy(123, sender=account) -project.track_deployment(contract) +project.deployments.track(contract) ``` If the contract is already deployed, you can use [Contract](../methoddocs/ape.html#ape.Contract) to get a contract instance: @@ -35,7 +35,7 @@ If the contract is already deployed, you can use [Contract](../methoddocs/ape.ht from ape import Contract, project contract = Contract("0x12c17f958d2ee523a2206206994597c13d831e34") -project.track_deployment(contract) +project.deployments.track(contract) ``` For more information on accessing contract instances, follow [this guide](./contracts.html). diff --git a/setup.py b/setup.py index d4bcdbca7b..c674c434c4 100644 --- a/setup.py +++ b/setup.py @@ -99,7 +99,7 @@ install_requires=[ "click>=8.1.6,<9", "ijson>=3.1.4,<4", - "ipython>=8.5.0,<9", + "ipython>=8.18.1,<9", "lazyasd>=0.1.4", "packaging>=23.0,<24", "pandas>=1.3.0,<2", diff --git a/src/ape/__init__.py b/src/ape/__init__.py index b77a6c6a4c..0136919efe 100644 --- a/src/ape/__init__.py +++ b/src/ape/__init__.py @@ -37,7 +37,7 @@ accounts = _ManagerAccessMixin.account_manager """Manages accounts for the current project. See :class:`ape.managers.accounts.AccountManager`.""" -project = _ManagerAccessMixin.project_manager +project = _ManagerAccessMixin.local_project """The currently active project. See :class:`ape.managers.project.ProjectManager`.""" Contract = chain.contracts.instance_at diff --git a/src/ape/_cli.py b/src/ape/_cli.py index aba6346520..c7ba257d24 100644 --- a/src/ape/_cli.py +++ b/src/ape/_cli.py @@ -28,7 +28,7 @@ def display_config(ctx, param, value): click.echo("# Current configuration") # NOTE: Using json-mode as yaml.dump requires JSON-like structure. - model = ManagerAccessMixin.project_manager.config_manager.model_dump(mode="json") + model = ManagerAccessMixin.local_project.config_manager.model_dump(mode="json") click.echo(yaml.dump(model)) @@ -89,7 +89,7 @@ def invoke(self, ctx) -> Any: except click.UsageError as err: self._suggest_cmd(err) except ApeException as err: - path = ctx.obj.project_manager.path + path = ctx.obj.local_project.path # NOTE: isinstance check for type-checkers. if isinstance(path, Path) and handle_ape_exception(err, (path,)): diff --git a/src/ape/api/accounts.py b/src/ape/api/accounts.py index 9d9d073776..8d99e24bb8 100644 --- a/src/ape/api/accounts.py +++ b/src/ape/api/accounts.py @@ -280,10 +280,10 @@ def deploy( self.chain_manager.contracts.cache_deployment(instance) if publish: - self.project_manager.track_deployment(instance) + self.local_project.deployments.track(instance) self.provider.network.publish_contract(address) - instance.base_path = contract.base_path or self.project_manager.contracts_folder + instance.base_path = contract.base_path or self.local_project.path return instance def declare(self, contract: "ContractContainer", *args, **kwargs) -> ReceiptAPI: @@ -462,7 +462,7 @@ def __getitem__(self, address: AddressType) -> AccountAPI: `ChecksumAddress `__. # noqa: E501 Raises: - IndexError: When there is no local account with the given address. + KeyError: When there is no local account with the given address. Returns: :class:`~ape.api.accounts.AccountAPI` @@ -471,7 +471,7 @@ def __getitem__(self, address: AddressType) -> AccountAPI: if account.address == address: return account - raise IndexError(f"No local account {address}.") + raise KeyError(f"No local account {address}.") def append(self, account: AccountAPI): """ @@ -541,7 +541,7 @@ def __contains__(self, address: AddressType) -> bool: self.__getitem__(address) return True - except (IndexError, AttributeError): + except (IndexError, KeyError, AttributeError): return False def _verify_account_type(self, account): diff --git a/src/ape/api/compiler.py b/src/ape/api/compiler.py index 716a9dfdc7..816de6f43a 100644 --- a/src/ape/api/compiler.py +++ b/src/ape/api/compiler.py @@ -1,7 +1,7 @@ -from collections.abc import Iterable +from collections.abc import Iterable, Iterator from functools import cached_property from pathlib import Path -from typing import Optional +from typing import TYPE_CHECKING, Optional from eth_pydantic_types import HexBytes from ethpm_types import ContractType @@ -20,6 +20,9 @@ raises_not_implemented, ) +if TYPE_CHECKING: + from ape.managers.project import ProjectManager + class CompilerAPI(BaseInterfaceModel): """ @@ -44,24 +47,25 @@ def name(self) -> str: The name of the compiler. """ - @property - def config(self) -> PluginConfig: - """ - The provider's configuration. - """ - return self.config_manager.get_config(self.name) - - @property - def settings(self) -> PluginConfig: + def get_config(self, project: Optional["ProjectManager"] = None) -> PluginConfig: """ The combination of settings from ``ape-config.yaml`` and ``.compiler_settings``. + + Args: + project (Optional[:class:`~ape.managers.project.ProjectManager`]): Optionally provide + the project containing the base paths and full source set. Defaults to the local + project. Dependencies will change this value to their respective projects. + + Returns: + :class:`~ape.api.config.PluginConfig` """ - CustomConfig = self.config.__class__ - data = {**self.config.model_dump(by_alias=True), **self.compiler_settings} - return CustomConfig.model_validate(data) + pm = project or self.local_project + config = pm.config.get_config(self.name) + data = {**config.model_dump(mode="json", by_alias=True), **self.compiler_settings} + return config.model_validate(data) - @abstractmethod - def get_versions(self, all_paths: Iterable[Path]) -> set[str]: + @raises_not_implemented + def get_versions(self, all_paths: Iterable[Path]) -> set[str]: # type: ignore[empty-body] """ Retrieve the set of available compiler versions for this plugin to compile ``all_paths``. @@ -74,7 +78,10 @@ def get_versions(self, all_paths: Iterable[Path]) -> set[str]: @raises_not_implemented def get_compiler_settings( # type: ignore[empty-body] - self, contract_filepaths: Iterable[Path], base_path: Optional[Path] = None + self, + contract_filepaths: Iterable[Path], + project: Optional["ProjectManager"] = None, + **overrides, ) -> dict[Version, dict]: """ Get a mapping of the settings that would be used to compile each of the sources @@ -82,7 +89,10 @@ def get_compiler_settings( # type: ignore[empty-body] Args: contract_filepaths (Iterable[pathlib.Path]): The list of paths. - base_path (Optional[pathlib.Path]): The contracts folder base path. + project (Optional[:class:`~ape.managers.project.ProjectManager`]): Optionally provide + the project containing the base paths and full source set. Defaults to the local + project. Dependencies will change this value to their respective projects. + **overrides: Settings overrides. Returns: dict[Version, dict]: A dict of compiler settings by compiler version. @@ -90,26 +100,31 @@ def get_compiler_settings( # type: ignore[empty-body] @abstractmethod def compile( - self, contract_filepaths: Iterable[Path], base_path: Optional[Path] - ) -> Iterable[ContractType]: + self, + contract_filepaths: Iterable[Path], + project: Optional["ProjectManager"], + settings: Optional[dict] = None, + ) -> Iterator[ContractType]: """ Compile the given source files. All compiler plugins must implement this function. Args: contract_filepaths (Iterable[pathlib.Path]): A list of source file paths to compile. - base_path (Optional[pathlib.Path]): Optionally provide the base path, such as the - project ``contracts/`` directory. Defaults to ``None``. When using in a project - via ``ape compile``, gets set to the project's ``contracts/`` directory. + project (Optional[:class:`~ape.managers.project.ProjectManager`]): Optionally provide + the project containing the base paths and full source set. Defaults to the local + project. Dependencies will change this value to their respective projects. + settings (Optional[dict]): Adhoc compiler settings. Returns: - Iterator[``ContractType``] + list[:class:`~ape.type.contract.ContractType`] """ @raises_not_implemented def compile_code( # type: ignore[empty-body] self, code: str, - base_path: Optional[Path] = None, + project: Optional["ProjectManager"], + settings: Optional[dict] = None, **kwargs, ) -> ContractType: """ @@ -117,10 +132,10 @@ def compile_code( # type: ignore[empty-body] Args: code (str): The code to compile. - base_path (Optional[pathlib.Path]): Optionally provide the base path, such as the - project ``contracts/`` directory. Defaults to ``None``. When using in a project - via ``compilers.compile_source()``, gets set to the project's ``contracts/`` - directory. + project (Optional[:class:`~ape.managers.project.ProjectManager`]): Optionally provide + the project containing the base paths and full source set. Defaults to the local + project. Dependencies will change this value to their respective projects. + settings (Optional[Dict]): Adhoc compiler settings. **kwargs: Additional overrides for the ``ethpm_types.ContractType`` model. Returns: @@ -129,7 +144,7 @@ def compile_code( # type: ignore[empty-body] @raises_not_implemented def get_imports( # type: ignore[empty-body] - self, contract_filepaths: Iterable[Path], base_path: Optional[Path] + self, contract_filepaths: Iterable[Path], project: Optional["ProjectManager"] ) -> dict[str, list[str]]: """ Returns a list of imports as source_ids for each contract's source_id in a given @@ -137,9 +152,9 @@ def get_imports( # type: ignore[empty-body] Args: contract_filepaths (Iterable[pathlib.Path]): A list of source file paths to compile. - base_path (Optional[pathlib.Path]): Optionally provide the base path, such as the - project ``contracts/`` directory. Defaults to ``None``. When using in a project - via ``ape compile``, gets set to the project's ``contracts/`` directory. + project (Optional[:class:`~ape.managers.project.ProjectManager`]): Optionally provide + the project containing the base paths and full source set. Defaults to the local + project. Dependencies will change this value to their respective projects. Returns: dict[str, list[str]]: A dictionary like ``{source_id: [import_source_id, ...], ...}`` @@ -149,7 +164,7 @@ def get_imports( # type: ignore[empty-body] def get_version_map( # type: ignore[empty-body] self, contract_filepaths: Iterable[Path], - base_path: Optional[Path] = None, + project: Optional["ProjectManager"] = None, ) -> dict[Version, set[Path]]: """ Get a map of versions to source paths. @@ -157,8 +172,9 @@ def get_version_map( # type: ignore[empty-body] Args: contract_filepaths (Iterable[Path]): Input source paths. Defaults to all source paths per compiler. - base_path (Path): The base path of sources. Defaults to the project's - ``contracts_folder``. + project (Optional[:class:`~ape.managers.project.ProjectManager`]): Optionally provide + the project containing the base paths and full source set. Defaults to the local + project. Dependencies will change this value to their respective projects. Returns: dict[Version, set[Path]] @@ -224,7 +240,9 @@ def trace_source( # type: ignore[empty-body] """ @raises_not_implemented - def flatten_contract(self, path: Path, **kwargs) -> Content: # type: ignore[empty-body] + def flatten_contract( # type: ignore[empty-body] + self, path: Path, project: Optional["ProjectManager"] = None, **kwargs + ) -> Content: """ Get the content of a flattened contract via its source path. Plugin implementations handle import resolution, SPDX de-duplication, @@ -232,6 +250,9 @@ def flatten_contract(self, path: Path, **kwargs) -> Content: # type: ignore[emp Args: path (``pathlib.Path``): The source path of the contract. + project (Optional[:class:`~ape.managers.project.ProjectManager`]): Optionally provide + the project containing the base paths and full source set. Defaults to the local + project. Dependencies will change this value to their respective projects. **kwargs (Any): Additional compiler-specific settings. See specific compiler plugins when applicable. diff --git a/src/ape/api/config.py b/src/ape/api/config.py index 87b391eff6..d4560a451d 100644 --- a/src/ape/api/config.py +++ b/src/ape/api/config.py @@ -1,10 +1,27 @@ +import os +from collections.abc import Iterator from enum import Enum -from typing import TYPE_CHECKING, Any, Optional, TypeVar +from functools import cached_property +from pathlib import Path +from typing import TYPE_CHECKING, Any, Optional, TypeVar, cast -from pydantic import ConfigDict -from pydantic_settings import BaseSettings +import yaml +from ethpm_types import PackageManifest, PackageMeta +from pydantic import ConfigDict, Field, model_validator +from pydantic_settings import BaseSettings, SettingsConfigDict -from ape.utils.basemodel import _assert_not_ipython_check, only_raise_attribute_error +from ape.exceptions import ConfigError +from ape.logging import logger +from ape.types import AddressType +from ape.utils.basemodel import ( + ExtraAttributesMixin, + ExtraModelAttributes, + ManagerAccessMixin, + _assert_not_ipython_check, + get_attribute_with_extras, + only_raise_attribute_error, +) +from ape.utils.misc import load_config if TYPE_CHECKING: from ape.managers.config import ConfigManager @@ -41,11 +58,10 @@ class PluginConfig(BaseSettings): # NOTE: This is probably partially initialized at the time of assignment _config_manager: Optional["ConfigManager"] + model_config = SettingsConfigDict(extra="allow") + @classmethod - def from_overrides( - cls, overrides: dict, config_manager: Optional["ConfigManager"] = None - ) -> "PluginConfig": - cls._config_manager = config_manager + def from_overrides(cls, overrides: dict) -> "PluginConfig": default_values = cls().model_dump() def update(root: dict, value_map: dict): @@ -84,6 +100,16 @@ def __getitem__(self, item: str) -> Any: def __contains__(self, key: str) -> bool: return key in self.__dict__ or key in (self.__pydantic_extra__ or {}) + def __str__(self) -> str: + data = self.model_dump( + mode="json", + by_alias=True, + exclude_none=True, + exclude_unset=True, + exclude_defaults=True, + ) + return yaml.safe_dump(data) + def get(self, key: str, default: Optional[ConfigItemType] = None) -> ConfigItemType: extra: dict = self.__pydantic_extra__ or {} return self.__dict__.get(key, extra.get(key, default)) @@ -93,3 +119,350 @@ class GenericConfig(ConfigDict): """ The default class used when no specialized class is used. """ + + +class DeploymentConfig(PluginConfig): + """ + Add 'deployments' to your config. + """ + + address: AddressType + """ + The address of the deployment. + """ + + contract_type: str + """ + The contract type name reference + (must be a contract in the project). + """ + + +class ApeConfig(ExtraAttributesMixin, BaseSettings, ManagerAccessMixin): + """ + The top-level config. + """ + + contracts_folder: Optional[str] = None + """ + The path to the folder containing the contract source files. + **NOTE**: Non-absolute paths are relative to the project-root. + If not set, defaults to deducing the contracts folder. + When deducing, Ape first tries ``"contracts"``, but if + that folder does not exist, Ape tries to find a folder with + contracts. + """ + + default_ecosystem: str = "ethereum" + """ + The default ecosystem to use in Ape. + """ + + dependencies: list[dict] = [] + """ + Project dependency declarations. + Note: The actual dependency classes are decoded later. + """ + + deployment_data: dict[str, dict[str, list[DeploymentConfig]]] = Field({}, alias="deployments") + """ + Data for deployed contracts from the project. + """ + + interfaces_folder: str = "interfaces" + """ + The path to the project's interfaces. + """ + + meta: PackageMeta = PackageMeta() + """ + Metadata about the active project as per EIP + https://eips.ethereum.org/EIPS/eip-2678#the-package-meta-object + """ + + name: str = "" + """ + The name of the project. + """ + + version: str = "" + """ + The version of the project. + """ + + # NOTE: Plugin configs are technically "extras". + model_config = SettingsConfigDict(extra="allow") + + @model_validator(mode="before") + @classmethod + def validate_model(cls, model): + model = model or {} + fixed_model = {} + for key, val in model.items(): + # Allows hyphens to work anywhere where underscores are. + fixed_model[key.replace("-", "_")] = val + + if project := fixed_model.pop("project", None): + # Resolve local dependencies so relative paths don't cause + # problems when moving the project around (as happens in local + # dependencies). + fixed_deps = [] + for dep in fixed_model.get("dependencies", []): + fixed_dep = {**dep} + if "project" not in fixed_dep: + fixed_dep["project"] = project + # else: we might be told to use a different project. + # when decoding dependencies, the project is mostly used for + # stuff like resolving paths. If this is already set, + # this is likely a dependency of a dependency. + + fixed_deps.append(fixed_dep) + + if fixed_deps: + fixed_model["dependencies"] = fixed_deps + + # field: contracs_folder: Handle if given Path object. + if "contracts_folder" in fixed_model and isinstance(fixed_model["contracts_folder"], Path): + fixed_model["contracts_folder"] = str(fixed_model["contracts_folder"]) + + return fixed_model + + @cached_property + def deployments(self) -> dict[str, dict[str, list[DeploymentConfig]]]: + # Lazily validated. + for ecosystem_name, ecosystem_deploys in self.deployment_data.items(): + if ecosystem_name not in self.network_manager.ecosystems: + raise ConfigError(f"Invalid ecosystem '{ecosystem_name}' in deployments config.") + + ecosystem = self.network_manager.ecosystems[ecosystem_name] + for network_name, network_deploys in ecosystem_deploys.items(): + if network_name not in ecosystem.networks: + raise ConfigError( + f"Invalid network '{ecosystem_name}:{network_name}' in deployments config." + ) + + return self.deployment_data + + def __ape_extra_attributes__(self) -> Iterator[ExtraModelAttributes]: + # This allows `config.my_plugin` to work. + yield ExtraModelAttributes( + name="plugin_configs", + attributes=lambda n: self.get_config(n.replace("-", "_")), + include_getitem=True, + ) + + @classmethod + def validate_file(cls, path: Path, **overrides) -> "ApeConfig": + data = {**load_config(path), **overrides} + + # NOTE: We are including the project path here to assist + # in relative-path resolution, such as for local dependencies. + # You can use relative paths in local dependencies in your + # ape-config.yaml file but Ape needs to know the source to be + # relative from. + data["project"] = path.parent + + return cls.model_validate(data) + + @classmethod + def from_manifest(cls, manifest: PackageManifest, **overrides) -> "ApeConfig": + return cls.model_validate( + { + **_get_compile_configs_from_manifest(manifest), + **_get_dependency_configs_from_manifest(manifest), + **overrides, + } + ) + + @property + def _plugin_configs(self) -> dict: + # NOTE: Ensure a dict exists so we can add to it + # and have it persist. + self.__pydantic_extra__ = self.__pydantic_extra__ or {} + return self.__pydantic_extra__ + + def __repr__(self): + return "" + + def __str__(self) -> str: + data = self.model_dump( + mode="json", + by_alias=True, + exclude_none=True, + exclude_unset=True, + exclude_defaults=True, + ) + return yaml.dump(data) + + @only_raise_attribute_error + def __getattr__(self, attr_name: str) -> Any: + return get_attribute_with_extras(self, attr_name) + + def __getitem__(self, name: str) -> Any: + return self.__getattr__(name) + + def __contains__(self, item): + # Always return True o handle lazy loading plugins. + return True + + def model_dump(self, *args, **kwargs): + res = super().model_dump(*args, **kwargs) + # TODO: For some reason underscore prefixed kwargs + # still show up even though Pydantic says they + # shouldn't. Figure out why. + return {k: v for k, v in res.items() if not k.startswith("_")} + + def get(self, name: str) -> Optional[Any]: + return self.__getattr__(name) + + def get_config(self, plugin_name: str) -> PluginConfig: + name = plugin_name.replace("-", "_") + return ( + self.get_plugin_config(name) + or self.get_custom_ecosystem_config(name) + or self.get_unknown_config(name) + ) + + def get_plugin_config(self, name: str) -> Optional[PluginConfig]: + name = name.replace("-", "_") + cfg = self._plugin_configs.get(name, {}) + if cfg and not isinstance(cfg, dict): + # Already decoded. + return cfg + + for plugin_name, config_class in self.plugin_manager.config_class: + cls: type[PluginConfig] = config_class # type: ignore + if plugin_name != name: + continue + + if cls != ConfigDict: + # NOTE: Will raise if improperly provided keys + config = cls.from_overrides(cfg) + else: + # NOTE: Just use it directly as a dict if `ConfigDict` is passed + config = cfg + + self._plugin_configs[name] = config + return config + + return None + + def get_custom_ecosystem_config(self, name: str) -> Optional[PluginConfig]: + name = name.replace("-", "_") + if not (networks := self.get_plugin_config("networks")): + # Shouldn't happen. + return None + + for network in networks.custom: + if name not in (network.ecosystem, network.ecosystem.replace("-", "_")): + continue + + # Check if has a cached override. + override = self._plugin_configs.get(name, {}) + if not isinstance(override, dict): + return override + + # Custom network found. + from ape_ethereum import EthereumConfig + + ethereum = cast(EthereumConfig, self.get_plugin_config("ethereum")) + return ethereum.from_overrides(override) + + return None + + def get_unknown_config(self, name: str) -> PluginConfig: + # This happens when a plugin is not installed but still configured. + result = (self.__pydantic_extra__ or {}).get(name, PluginConfig()) + if isinstance(result, dict): + return PluginConfig.from_overrides(result) + + return result + + def write_to_disk(self, destination: Path, replace: bool = False): + """ + Write this config to a file. + + Args: + destination (Path): The path to write to. + replace (bool): Set to ``True`` to overwrite the file if it exists. + """ + if destination.exists() and not replace: + raise ValueError(f"Destination {destination} exists.") + elif replace: + destination.unlink(missing_ok=True) + + if destination.suffix in (".yml", ".yaml"): + destination.parent.mkdir(parents=True, exist_ok=True) + with open(destination, "x") as file: + data = self.model_dump(by_alias=True, mode="json") + yaml.safe_dump(data, file) + + elif destination.suffix == ".json": + destination.write_text(self.model_dump_json(by_alias=True)) + + else: + raise ValueError(f"Unsupported destination file type {destination}.") + + +def _get_compile_configs_from_manifest(manifest: PackageManifest) -> dict[str, dict]: + configs: dict[str, dict] = {} + for compiler in [x for x in manifest.compilers or [] if x.settings]: + name = compiler.name.strip().lower() + compiler_data = {} + settings = compiler.settings or {} + remapping_list = [] + for remapping in settings.get("remappings") or []: + parts = remapping.split("=") + key = parts[0] + link = parts[1] + if link.startswith(f".cache{os.path.sep}"): + link = os.path.sep.join(link.split(f".cache{os.path.sep}"))[1:] + + new_entry = f"{key}={link}" + remapping_list.append(new_entry) + + if remapping_list: + compiler_data["import_remapping"] = remapping_list + + if "evm_version" in settings: + compiler_data["evm_version"] = settings["evm_version"] + + if compiler_data: + configs[name] = compiler_data + + return configs + + +def _get_dependency_configs_from_manifest(manifest: PackageManifest) -> dict: + dependencies_config: list[dict] = [] + dependencies = manifest.dependencies or {} + for package_name, uri in dependencies.items(): + if "://" not in str(uri) and hasattr(uri, "scheme"): + uri_str = f"{uri.scheme}://{uri}" + else: + uri_str = str(uri) + + dependency: dict = {"name": str(package_name)} + if uri_str.startswith("https://github.com/") and "releases/tag" in uri_str: + # 'https:', '', 'github.com', org, repo, 'releases', 'tag', version + # Fails with ValueError if not matching + try: + _, _, _, org, repo, _, _, version = uri_str.split("/") + except ValueError: + raise ConfigError("") + + dependency["github"] = f"{org}/{repo}" + + # If version fails, the dependency system will automatically try `ref`. + dependency["version"] = version + + elif uri_str.startswith("file://"): + dependency["local"] = uri_str.replace("file://", "") + + else: + logger.error(f"Manifest URI {uri_str} not a supported dependency.") + continue + + dependencies_config.append(dependency) + + return {"dependencies": dependencies_config} if dependencies_config else {} diff --git a/src/ape/api/networks.py b/src/ape/api/networks.py index ddbe832efb..2e6b957e5b 100644 --- a/src/ape/api/networks.py +++ b/src/ape/api/networks.py @@ -309,10 +309,11 @@ def default_network_name(self) -> str: return network elif network := self.config.get("default_network"): - # Default found in config. - return network + # Default found in config. Ensure is an installed network. + if network in self.networks: + return network - elif LOCAL_NETWORK_NAME in self.networks: + if LOCAL_NETWORK_NAME in self.networks: # Default to the LOCAL_NETWORK_NAME, at last resort. return LOCAL_NETWORK_NAME diff --git a/src/ape/api/projects.py b/src/ape/api/projects.py index 46d99ca69d..86aa4ed5d6 100644 --- a/src/ape/api/projects.py +++ b/src/ape/api/projects.py @@ -1,667 +1,137 @@ -import os.path -import re -from collections.abc import Iterator, Sequence +from functools import cached_property from pathlib import Path -from typing import TYPE_CHECKING, Any, Optional, Union +from typing import Optional -from ethpm_types import Checksum, Compiler, ContractType, PackageManifest, Source -from ethpm_types.source import Content -from packaging.version import InvalidVersion, Version -from pydantic import AnyUrl, ValidationError +from pydantic import Field, field_validator -from ape.exceptions import ProjectError -from ape.logging import logger -from ape.utils import ( - BaseInterfaceModel, - ExtraAttributesMixin, - ExtraModelAttributes, - abstractmethod, - cached_property, - create_tempdir, - get_all_files_in_directory, - get_relative_path, - log_instead_of_fail, -) +from ape.api.config import ApeConfig +from ape.utils import BaseInterfaceModel, abstractmethod -if TYPE_CHECKING: - from ape.contracts import ContractContainer - -class ProjectAPI(BaseInterfaceModel): +class DependencyAPI(BaseInterfaceModel): """ - An abstract base-class for working with projects. - This class can also be extended to a plugin for supporting non-ape projects. + An API for obtaining sources. """ - path: Path - """The project path.""" - - contracts_folder: Path - """The path to the contracts in the project.""" - - name: Optional[str] = None - """The name of this project when another project uses it as a dependency.""" - - version: Optional[str] = None - """The version of the project whe another project uses it as a dependency.""" - - config_file_name: str = "ape-config.yaml" - - _cached_manifest: Optional[PackageManifest] = None - - _contracts: Optional[dict[str, ContractType]] = None + name: str + """ + The package-name of the dependency. + """ - @log_instead_of_fail(default="") - def __repr__(self) -> str: - cls_name = getattr(type(self), "__name__", ProjectAPI.__name__) - return f"<{cls_name} {self.path.name}>" + config_override: dict = Field({}, repr=False) + """ + Set different config than what Ape can deduce. + """ @property @abstractmethod - def is_valid(self) -> bool: + def package_id(self) -> str: """ - ``True`` if the project at the given path matches this project type. - Useful for figuring out the best ``ProjectAPI`` to use when compiling a project. + The full name of the package, used for storage. + Example: ``OpenZeppelin/openzepplin-contracts``. """ @property - def manifest(self) -> PackageManifest: - return self.cached_manifest or PackageManifest() - @abstractmethod - def create_manifest( - self, file_paths: Optional[Sequence[Path]] = None, use_cache: bool = True - ) -> PackageManifest: - """ - Create a manifest from the project. - - Args: - file_paths (Optional[Sequence[Path]]): An optional list of paths to compile - from this project. - use_cache (bool): Set to ``False`` to clear caches and force a re-compile. - - Returns: - ``PackageManifest`` - """ - - @property - def manifest_cachefile(self) -> Path: - """ - The path to the project's cached manifest. The manifest - is a cached file representing the project and is useful - for sharing, such as uploading to IPFS. - - Returns: - pathlib.Path - """ - - file_name = self.name or "__local__" - return self._cache_folder / f"{file_name}.json" - - @property - def cached_manifest(self) -> Optional[PackageManifest]: + def version_id(self) -> str: """ - The ``PackageManifest`` at :py:attr:`~ape.api.projects.ProjectAPI.manifest_cachefile` - if it exists and is valid. + The ID to use as the sub-directory in the download cache. + Most often, this is either a version number or a branch name. """ - if self._cached_manifest is None: - self._cached_manifest = _load_manifest_from_file(self.manifest_cachefile) - if self._cached_manifest is None: - return None - - manifest = self._cached_manifest - if manifest.contract_types and not self.contracts: - # Rely on individual cache files. - self._contracts = manifest.contract_types - manifest.contract_types = {} - - else: - contracts: dict[str, ContractType] = {} - - # Exclude contracts with missing sources, else you'll get validation errors. - # This scenario happens if changing branches and you have some contracts on - # one branch and others on the next. - for name, contract in self.contracts.items(): - if (source_id := contract.source_id) and source_id in (manifest.sources or {}): - contracts[name] = contract - - manifest.contract_types = contracts - - return manifest - - @property - def contracts(self) -> dict[str, ContractType]: - if contracts := self._contracts: - return contracts - - contracts = {} - for p in self._cache_folder.glob("*.json"): - if p == self.manifest_cachefile: - continue - - contract_name = p.stem - contract_type = ContractType.model_validate_json(p.read_text()) - contract_type.name = contract_name if contract_type.name is None else contract_type.name - contracts[contract_type.name] = contract_type - - if contracts: - self._contracts = contracts - - return self._contracts or {} @property - def _cache_folder(self) -> Path: - folder = self.contracts_folder.parent / ".build" - # NOTE: If we use the cache folder, we expect it to exist - folder.mkdir(exist_ok=True, parents=True) - return folder - - def update_manifest(self, **kwargs) -> PackageManifest: - """ - Add additional package manifest parts to the cache. - - Args: - **kwargs: Fields from ``ethpm_types.manifest.PackageManifest``. - """ - new_manifest = self.manifest.model_copy(update=kwargs) - return self.replace_manifest(new_manifest) - - def replace_manifest(self, manifest: PackageManifest) -> PackageManifest: - """ - Replace the entire cached manifest. - - Args: - manifest (``ethpm_types.manifest.PackageManifest``): The manifest - to use. - """ - self.manifest_cachefile.unlink(missing_ok=True) - self.manifest_cachefile.write_text(manifest.model_dump_json()) - self._cached_manifest = manifest - return manifest - - def process_config_file(self, **kwargs) -> bool: + @abstractmethod + def uri(self) -> str: """ - Process the project's config file. - Returns ``True`` if had to create a temporary ``ape-config.yaml`` file. + The URI for the package. """ - return False - - def add_compiler_data(self, compiler_data: Sequence[Compiler]) -> list[Compiler]: + @abstractmethod + def fetch(self, destination: Path): """ - Add compiler data to the existing cached manifest. + Fetch the dependency. E.g. for GitHub dependency, + download the files to the destination. Args: - compiler_data (list[``ethpm_types.Compiler``]): Compilers to add. - - Returns: - list[``ethpm_types.source.Compiler``]: The full list of compilers. + destination (Path): The destination for the dependency + files. """ - # Validate given data. - given_compilers = set(compiler_data) - if len(given_compilers) != len(compiler_data): - raise ProjectError( - f"`{self.add_compiler_data.__name__}()` was given multiple of the same compiler. " - "Please filter inputs." - ) - - # Filter out given compilers without contract types. - given_compilers = {c for c in given_compilers if c.contractTypes} - if len(given_compilers) != len(compiler_data): - logger.warning( - f"`{self.add_compiler_data.__name__}()` given compilers without contract types. " - "Ignoring these inputs." - ) - - for given_compiler in given_compilers: - if not (other_given_compilers := [c for c in given_compilers if c != given_compiler]): - continue - - contract_types_from_others = [ - n for c in other_given_compilers for n in (c.contractTypes or []) - ] - - collisions = { - n for n in (given_compiler.contractTypes or []) if n in contract_types_from_others - } - if collisions: - collide_str = ", ".join(collisions) - raise ProjectError(f"Contract type(s) '{collide_str}' collision across compilers.") - - new_types = [n for c in given_compilers for n in (c.contractTypes or [])] - existing_compilers = self.manifest.compilers or [] - - # Existing compilers remaining after processing new compilers. - remaining_existing_compilers: list[Compiler] = [] - - for existing_compiler in existing_compilers: - # NOTE: For compilers to be equal, their name, version, and settings must be equal. - find_iter = (x for x in compiler_data if x == existing_compiler) - - if matching_given_compiler := next(find_iter, None): - # Compiler already exists in the system, possibly with different contract types. - # Merge contract types. - matching_given_compiler.contractTypes = list( - { - *(existing_compiler.contractTypes or []), - *(matching_given_compiler.contractTypes or []), - } - ) - - # NOTE: Purposely we don't add the existing compiler back, - # as it is the same as the given compiler, (meaning same - # name, version, and settings), and we have - # merged their contract types. - - continue - - else: - # Filter out contract types added now under a different compiler. - existing_compiler.contractTypes = [ - c for c in (existing_compiler.contractTypes or []) if c not in new_types - ] - - # Clear output selection for new types, since they are present in the new compiler. - if existing_compiler.settings and "outputSelection" in existing_compiler.settings: - new_src_ids = { - (self.manifest.contract_types or {})[x].source_id - for x in new_types - if x in (self.manifest.contract_types or {}) - and (self.manifest.contract_types or {})[x].source_id is not None - } - existing_compiler.settings["outputSelection"] = { - k: v - for k, v in existing_compiler.settings["outputSelection"].items() - if k not in new_src_ids - } - - # Remove compilers without contract types. - if existing_compiler.contractTypes: - remaining_existing_compilers.append(existing_compiler) - - # Use Compiler.__hash__ to remove duplicated. - # Also, sort for consistency. - compilers = sorted( - list({*remaining_existing_compilers, *compiler_data}), - key=lambda x: f"{x.name}@{x.version}", - ) - manifest = self.update_manifest(compilers=compilers) - return manifest.compilers or compilers # Or for mypy. - - def update_manifest_sources( - self, - source_paths: list[Path], - contracts_path: Path, - contract_types: dict[str, ContractType], - name: Optional[str] = None, - version: Optional[str] = None, - compiler_data: Optional[list[Compiler]] = None, - **kwargs: Any, - ) -> PackageManifest: - items: dict = { - "contract_types": contract_types, - "sources": self._create_source_dict(source_paths, contracts_path), - "compilers": compiler_data or [], - } - if name is not None: - items["name"] = name.lower() - if version: - items["version"] = version - - return self.update_manifest(**{**items, **kwargs}) + @field_validator("name", mode="before") @classmethod - def _create_source_dict( - cls, contract_filepaths: Union[Path, list[Path]], base_path: Path - ) -> dict[str, Source]: - filepaths = ( - [contract_filepaths] if isinstance(contract_filepaths, Path) else contract_filepaths - ) - source_imports: dict[str, list[str]] = cls.compiler_manager.get_imports( - filepaths, base_path - ) # {source_id: [import_source_ids, ...], ...} - source_references: dict[str, list[str]] = cls.compiler_manager.get_references( - imports_dict=source_imports - ) # {source_id: [referring_source_ids, ...], ...} - - source_dict: dict[str, Source] = {} - for source_path in filepaths: - key = str(get_relative_path(source_path, base_path)) - - try: - text = source_path.read_text("utf8") - except UnicodeDecodeError: - # Let it attempt to find the encoding. - # (this is much slower and a-typical). - text = source_path.read_text() - - source_dict[key] = Source( - checksum=Checksum.from_file(source_path), - urls=[], - content=Content(root={i + 1: x for i, x in enumerate(text.splitlines())}), - imports=source_imports.get(key, []), - references=source_references.get(key, []), - ) + def validate_name(cls, value): + return (value or "").lower().replace("_", "-") - return source_dict # {source_id: Source} + def __hash__(self) -> int: + return hash(f"{self.package_id}@{self.version_id}") -class DependencyAPI(ExtraAttributesMixin, BaseInterfaceModel): - """ - A base-class for dependency sources, such as GitHub or IPFS. - """ - - name: str - """The name of the dependency.""" - - version: Optional[str] = None +class ProjectAPI(BaseInterfaceModel): """ - The version of the dependency. Omit to use the latest. + An API for recognizing different project types, + such as brownie projects versus ape projects. + NOTE: This assumed the project sources are available and unpacked. + Use :class:`~ape.api.projects.DependencyAPI` to fetch different + projects. The main task of the project API is to generate + a configuration needed to compile in Ape. """ - config_override: dict = {} + path: Path """ - Extra settings to include in the dependency's configuration. + The location of the project. """ - _cached_manifest: Optional[PackageManifest] = None - - @log_instead_of_fail(default="") - def __repr__(self) -> str: - cls_name = getattr(type(self), "__name__", DependencyAPI.__name__) - return f"<{cls_name} name='{self.name}'>" - - def __ape_extra_attributes__(self) -> Iterator[ExtraModelAttributes]: - yield ExtraModelAttributes( - name=self.name, - attributes=lambda: self.contracts, - include_getattr=True, - include_getitem=True, - additional_error_message="Do you have the necessary compiler plugins installed?", - ) - @property @abstractmethod - def version_id(self) -> str: - """ - The ID to use as the sub-directory in the download cache. - Most often, this is either a version number or a branch name. - """ - - @property - @abstractmethod - def uri(self) -> AnyUrl: + def is_valid(self) -> bool: """ - The URI to use when listing in a PackageManifest. + Return ``True`` when detecting a project of this type. """ - @cached_property - def _base_cache_path(self) -> Path: - version_id = self.version_id - - try: - _ = Version(version_id) # Will raise if can't parse - if not version_id.startswith("v"): - version_id = f"v{version_id}" - except InvalidVersion: - pass - - return self.config_manager.packages_folder / self.name / version_id - - @property - def _target_manifest_cache_file(self) -> Path: - return self._base_cache_path / f"{self.name}.json" - @abstractmethod - def extract_manifest(self, use_cache: bool = True) -> PackageManifest: + def extract_config(self, **overrides) -> "ApeConfig": """ - Create a ``PackageManifest`` definition, - presumably by downloading and compiling the dependency. - - Implementations may use ``self.project_manager`` to call method - :meth:`~ape.managers.project.ProjectManager.get_project` - to dynamically get the correct :class:`~ape.api.projects.ProjectAPI`. - based on the project's structure. + Extra configuration from the project so that + Ape understands the dependencies and how to compile everything. Args: - use_cache (bool): Defaults to ``True``. Set to ``False`` to force - a re-install. + **overrides: Config overrides. Returns: - ``PackageManifest`` - """ - - @property - def cached_manifest(self) -> Optional[PackageManifest]: - """ - The manifest from the ``.ape/packages//`` - if it exists and is valid. - """ - if self._cached_manifest is None: - self._cached_manifest = _load_manifest_from_file(self._target_manifest_cache_file) - - return self._cached_manifest - - @cached_property - def contracts(self) -> dict[str, "ContractContainer"]: - """ - A mapping of name to contract type of all the contracts - in this dependency. - """ - return { - n: self.chain_manager.contracts.get_container(c) - for n, c in (self.compile().contract_types or {}).items() - } - - def get(self, contract_name: str) -> Optional["ContractContainer"]: - return self.contracts.get(contract_name) - - def compile(self, use_cache: bool = True) -> PackageManifest: - """ - Compile the contract types in this dependency into - a package manifest. - - Args: - use_cache (bool): Defaults to ``True``. Set to ``False`` to force - a re-compile. - - **NOTE**: By default, dependency's compile lazily. + :class:`~ape.managers.config.ApeConfig` """ - manifest = self.extract_manifest() - if use_cache and manifest.contract_types: - # Already compiled - return manifest - - # Figure the config data needed to compile this dependency. - # Use a combination of looking at the manifest's other artifacts - # as well, config overrides, and the base project's config. - config_data: dict[str, Any] = { - **_get_compile_configs_from_manifest(manifest), - **_get_dependency_configs_from_manifest(manifest), - **self.config_override, - } - - with create_tempdir() as path: - contracts_folder = path / config_data.get("contracts_folder", "contracts") - - if "contracts_folder" not in config_data: - config_data["contracts_folder"] = contracts_folder - - contracts_folder.mkdir(exist_ok=True, parents=True) - with self.config_manager.using_project(path, **config_data) as project: - manifest.unpack_sources(contracts_folder) - compiled_manifest = project.local_project.create_manifest() - - if not compiled_manifest.contract_types: - # Manifest is empty. No need to write to disk. - logger.warning( - "Compiled manifest produced no contract types! " - "Are you missing compiler plugins?" - ) - return compiled_manifest - - self.replace_manifest(compiled_manifest) - return compiled_manifest - - def _extract_local_manifest( - self, project_path: Path, use_cache: bool = True - ) -> PackageManifest: - cached_manifest = ( - _load_manifest_from_file(self._target_manifest_cache_file) - if use_cache and self._target_manifest_cache_file.is_file() - else None - ) - if cached_manifest: - return cached_manifest - - if project_path.is_file() and project_path.suffix == ".json": - try: - manifest = PackageManifest.model_validate_json(project_path.read_text()) - except ValueError as err: - if project_path.parent.is_dir(): - project_path = project_path.parent - else: - raise ProjectError(f"Invalid manifest file: '{project_path}'.") from err - - else: - # Was given a path to a manifest JSON. - self.replace_manifest(manifest) - return manifest - - elif (project_path.parent / project_path.name.replace("-", "_")).is_dir(): - project_path = project_path.parent / project_path.name.replace("-", "_") - - elif (project_path.parent / project_path.name.replace("_", "-")).is_dir(): - project_path = project_path.parent / project_path.name.replace("_", "-") - - elif project_path.parent.is_dir(): - project_path = project_path.parent - - contracts_folder = self.config_override.get("contracts_folder", "contracts") - - # NOTE: Dependencies are not compiled here. Instead, the sources are packaged - # for later usage via imports. For legacy reasons, many dependency-esque projects - # are not meant to compile on their own. - - with self.config_manager.using_project( - project_path, - contracts_folder=(project_path / contracts_folder).expanduser().resolve(), - ) as pm: - project = pm.local_project - if sources := self._get_sources(project): - dependencies = self.project_manager._extract_manifest_dependencies() - - extras: dict = {} - if dependencies: - extras["dependencies"] = dependencies - - project.update_manifest_sources( - sources, - project.contracts_folder, - {}, - name=project.name, - version=project.version, - **extras, - ) - else: - raise ProjectError( - f"No source files found in dependency '{self.name}'. " - "Try adjusting its config using `config_override` to " - "get Ape to recognize the project. " - "\nMore information: https://docs.apeworx.io/ape/stable" - "/userguides/dependencies.html#config-override" - ) - - # Replace the dependency's manifest with the temp project's. - self.replace_manifest(project.manifest) - return project.manifest - - def _get_sources(self, project: ProjectAPI) -> list[Path]: - escaped_extensions = [re.escape(ext) for ext in self.compiler_manager.registered_compilers] - extension_pattern = "|".join(escaped_extensions) - pattern = rf".*({extension_pattern})" - all_sources = get_all_files_in_directory(project.contracts_folder, pattern=pattern) - exclude = [ - *(self.config_override.get("compile", {}).get("exclude", []) or []), - ] - excluded_files = set() - for pattern in set(exclude): - excluded_files.update({f for f in project.contracts_folder.glob(pattern)}) - - return [s for s in all_sources if s not in excluded_files] - - def replace_manifest(self, manifest: PackageManifest): - self._target_manifest_cache_file.unlink(missing_ok=True) - self._target_manifest_cache_file.parent.mkdir(exist_ok=True, parents=True) - self._target_manifest_cache_file.write_text(manifest.model_dump_json()) - self._cached_manifest = manifest - - -def _load_manifest_from_file(file_path: Path) -> Optional[PackageManifest]: - if not file_path.is_file(): - return None - - try: - return PackageManifest.model_validate_json(file_path.read_text()) - except ValidationError as err: - logger.warning( - f"Existing manifest file '{file_path}' corrupted (problem={err}). Re-building." - ) - return None - - -def _get_compile_configs_from_manifest(manifest: PackageManifest) -> dict[str, dict]: - configs: dict[str, dict] = {} - for compiler in [x for x in manifest.compilers or [] if x.settings]: - name = compiler.name.strip().lower() - compiler_data = {} - settings = compiler.settings or {} - remapping_list = [] - for remapping in settings.get("remappings") or []: - parts = remapping.split("=") - key = parts[0] - link = parts[1] - if link.startswith(f".cache{os.path.sep}"): - link = os.path.sep.join(link.split(f".cache{os.path.sep}"))[1:] - - new_entry = f"{key}={link}" - remapping_list.append(new_entry) - - if remapping_list: - compiler_data["import_remapping"] = remapping_list - - if "evm_version" in settings: - compiler_data["evm_version"] = settings["evm_version"] - - if compiler_data: - configs[name] = compiler_data + @classmethod + def attempt_validate(cls, **kwargs) -> Optional["ProjectAPI"]: + try: + instance = cls(**kwargs) + except ValueError: + return None - return configs + return instance if instance.is_valid else None -def _get_dependency_configs_from_manifest(manifest: PackageManifest) -> dict: - dependencies_config: list[dict] = [] - dependencies = manifest.dependencies or {} - for package_name, uri in dependencies.items(): - if "://" not in str(uri) and hasattr(uri, "scheme"): - uri_str = f"{uri.scheme}://{uri}" - else: - uri_str = str(uri) +class ApeProject(ProjectAPI): + """ + The default ProjectAPI implementation. + """ - dependency: dict = {"name": str(package_name)} - if uri_str.startswith("https://"): - # Assume GitHub dependency - version = uri_str.split("/")[-1] - dependency["github"] = uri_str.replace(f"/releases/tag/{version}", "") - dependency["github"] = dependency["github"].replace("https://github.com/", "") + CONFIG_FILE_NAME: str = "ape-config" + EXTENSIONS: tuple[str, ...] = (".yaml", ".yml", ".json") - # NOTE: If version fails, the dependency system will automatically try `ref`. - dependency["version"] = version + @property + def is_valid(self) -> bool: + return True # If all else fails, treat as a default Ape project. - elif uri_str.startswith("file://"): - dependency["local"] = uri_str.replace("file://", "") + @cached_property + def config_file(self) -> Path: + for ext in self.EXTENSIONS: + path = self.path / f"{self.CONFIG_FILE_NAME}{ext}" + if path.is_file(): + return path - dependencies_config.append(dependency) + # Default + return self.path / f"{self.CONFIG_FILE_NAME}.yaml" - return {"dependencies": dependencies_config} if dependencies_config else {} + def extract_config(self, **overrides) -> ApeConfig: + return ApeConfig.validate_file(self.config_file, **overrides) diff --git a/src/ape/api/providers.py b/src/ape/api/providers.py index 97bb3389d7..a1b81c91bb 100644 --- a/src/ape/api/providers.py +++ b/src/ape/api/providers.py @@ -894,7 +894,7 @@ def _increment_call_func_coverage_hit_count(self, txn: TransactionAPI): return if not (contract_type := self.chain_manager.contracts.get(txn.receiver)) or not ( - contract_src := self.project_manager._create_contract_source(contract_type) + contract_src := self.local_project._create_contract_source(contract_type) ): return diff --git a/src/ape/api/transactions.py b/src/ape/api/transactions.py index 025658fac8..c29f51ad15 100644 --- a/src/ape/api/transactions.py +++ b/src/ape/api/transactions.py @@ -555,7 +555,7 @@ def track_gas(self): and (method := self.method_called) ): # Can only track top-level gas. - if contract := self.project_manager._create_contract_source(contract_type): + if contract := self.local_project._create_contract_source(contract_type): self._test_runner.gas_tracker.append_toplevel_gas(contract, method, self.gas_used) def track_coverage(self): @@ -587,5 +587,5 @@ def track_coverage(self): if not contract_type or not contract_type.source_id: return - if contract := self.project_manager._create_contract_source(contract_type): + if contract := self.local_project._create_contract_source(contract_type): tracker.hit_function(contract, method) diff --git a/src/ape/cli/__init__.py b/src/ape/cli/__init__.py index 98a3c5f4a9..2a42d7cfbe 100644 --- a/src/ape/cli/__init__.py +++ b/src/ape/cli/__init__.py @@ -23,6 +23,7 @@ incompatible_with, network_option, output_format_option, + project_option, skip_confirmation_option, verbosity_option, ) @@ -49,6 +50,7 @@ "output_format_option", "OutputFormat", "Path", + "project_option", "PromptChoice", "select_account", "skip_confirmation_option", diff --git a/src/ape/cli/arguments.py b/src/ape/cli/arguments.py index ed46d5050e..a3ce2752d3 100644 --- a/src/ape/cli/arguments.py +++ b/src/ape/cli/arguments.py @@ -1,7 +1,7 @@ from collections.abc import Iterable from functools import cached_property from pathlib import Path -from typing import Union +from typing import TYPE_CHECKING, Optional, Union import click from click import BadArgumentUsage @@ -9,9 +9,12 @@ from ape.cli.choices import _ACCOUNT_TYPE_FILTER, Alias from ape.logging import logger from ape.utils.basemodel import ManagerAccessMixin -from ape.utils.os import get_all_files_in_directory, get_full_extension, path_match +from ape.utils.os import get_full_extension from ape.utils.validators import _validate_account_alias +if TYPE_CHECKING: + from ape.managers.project import ProjectManager + def _alias_callback(ctx, param, value): return _validate_account_alias(value) @@ -48,18 +51,18 @@ class _ContractPaths(ManagerAccessMixin): Helper callback class for handling CLI-given contract paths. """ - def __init__(self, value): + def __init__(self, value, project: Optional["ProjectManager"] = None): self.value = value - self._path_set = set() - self.missing_compilers = set() - self.exclude_list = {} + self.missing_compilers: set[str] = set() # set of .ext + self.project = project or ManagerAccessMixin.local_project @classmethod def callback(cls, ctx, param, value) -> set[Path]: """ Use this for click.option / argument callbacks. """ - return cls(value).filtered_paths + project = ctx.params.get("project") + return cls(value, project=project).filtered_paths @cached_property def filtered_paths(self) -> set[Path]: @@ -69,22 +72,18 @@ def filtered_paths(self) -> set[Path]: value = self.value contract_paths: Iterable[Path] - if value and isinstance(value, (list, tuple, set)): - # Given a single list of paths. - contract_paths = value - - elif value and isinstance(value, (Path, str)): + if value and isinstance(value, (Path, str)): # Given single path. contract_paths = (Path(value),) - elif not value or value == "*": # Get all file paths in the project. - contract_paths = get_all_files_in_directory(self.project_manager.contracts_folder) - + return {p for p in self.project.sources.paths} else: - raise ValueError(f"Unknown contracts-paths value '{value}'.") + # Given a sequence of paths. + contract_paths = value - self.lookup(contract_paths) + # Convert source IDs or relative paths to absolute paths. + path_set = self.lookup(contract_paths) # Handle missing compilers. if self.missing_compilers: @@ -102,24 +101,16 @@ def filtered_paths(self) -> set[Path]: logger.warning(message) - return self._path_set + return path_set @property def exclude_patterns(self) -> set[str]: return self.config_manager.get_config("compile").exclude or set() def do_exclude(self, path: Union[Path, str]) -> bool: - name = path if isinstance(path, str) else str(path) - if name not in self.exclude_list: - self.exclude_list[name] = path_match(name, *self.exclude_patterns) - - return self.exclude_list[name] + return self.project.sources.is_excluded(path) def compiler_is_unknown(self, path: Union[Path, str]) -> bool: - path = Path(path) - if self.do_exclude(path): - return False - ext = get_full_extension(path) unknown_compiler = ext and ext not in self.compiler_manager.registered_compilers if unknown_compiler and ext not in self.missing_compilers: @@ -127,28 +118,31 @@ def compiler_is_unknown(self, path: Union[Path, str]) -> bool: return bool(unknown_compiler) - def lookup(self, path_iter): - for path in path_iter: - path = Path(path) - if self.do_exclude(path): - continue + def lookup(self, path_iter: Iterable, path_set: Optional[set] = None) -> set[Path]: + path_set = path_set or set() - contracts_folder = self.project_manager.contracts_folder + for path_id in path_iter: + path = Path(path_id) + contracts_folder = self.project.contracts_folder if ( - self.project_manager.path / path.name + self.project.path / path.name ) == contracts_folder or path.name == contracts_folder.name: # Was given the path to the contracts folder. - self.lookup(p for p in self.project_manager.source_paths) + return {p for p in self.project.sources.paths} - elif (self.project_manager.path / path).is_dir(): + elif (self.project.path / path).is_dir(): # Was given sub-dir in the project folder. - self.lookup(p for p in (self.project_manager.path / path).iterdir()) + return self.lookup( + (p for p in (self.project.path / path).iterdir()), path_set=path_set + ) elif (contracts_folder / path.name).is_dir(): # Was given sub-dir in the contracts folder. - self.lookup(p for p in (contracts_folder / path.name).iterdir()) + return self.lookup( + (p for p in (contracts_folder / path.name).iterdir()), path_set=path_set + ) - elif resolved_path := self.project_manager.lookup_path(path): + elif resolved_path := self.project.sources.lookup(path): # Check compiler missing. if self.compiler_is_unknown(resolved_path): # NOTE: ^ Also tracks. @@ -157,7 +151,7 @@ def lookup(self, path_iter): suffix = get_full_extension(resolved_path) if suffix in self.compiler_manager.registered_compilers: # File exists and is compile-able. - self._path_set.add(resolved_path) + path_set.add(resolved_path) elif suffix: raise BadArgumentUsage(f"Source file '{resolved_path.name}' not found.") @@ -165,6 +159,8 @@ def lookup(self, path_iter): else: raise BadArgumentUsage(f"Source file '{path.name}' not found.") + return path_set + def contract_file_paths_argument(): """ diff --git a/src/ape/cli/options.py b/src/ape/cli/options.py index 611aebb5d8..03b098ca2d 100644 --- a/src/ape/cli/options.py +++ b/src/ape/cli/options.py @@ -1,13 +1,14 @@ import inspect from collections.abc import Callable from functools import partial +from pathlib import Path from typing import NoReturn, Optional, Union import click from click import Option from ethpm_types import ContractType -from ape.api import ProviderAPI +from ape.api.providers import ProviderAPI from ape.cli.choices import ( _ACCOUNT_TYPE_FILTER, _NONE_NETWORK, @@ -362,7 +363,7 @@ def _load_contracts(ctx, param, value) -> Optional[Union[ContractType, list[Cont if not value: return None - if len(ManagerAccessMixin.project_manager.contracts) == 0: + if len(ManagerAccessMixin.local_project.contracts) == 0: raise ProjectError("Project has no contracts.") # If the user passed in `multiple=True`, then `value` is a list, @@ -370,10 +371,10 @@ def _load_contracts(ctx, param, value) -> Optional[Union[ContractType, list[Cont is_multiple = isinstance(value, (tuple, list)) def get_contract(contract_name: str) -> ContractType: - if contract_name not in ManagerAccessMixin.project_manager.contracts: + if contract_name not in ManagerAccessMixin.local_project.contracts: raise ProjectError(f"No contract named '{value}'") - return ManagerAccessMixin.project_manager.contracts[contract_name] + return ManagerAccessMixin.local_project.contracts[contract_name] return [get_contract(c) for c in value] if is_multiple else get_contract(value) @@ -449,6 +450,41 @@ def handle_parse_result(self, ctx, opts, args): return IncompatibleOption +def _project_callback(ctx, param, val): + pm = None + if not val: + pm = ManagerAccessMixin.local_project + + else: + path = Path(val) + if path == ManagerAccessMixin.local_project.path: + pm = ManagerAccessMixin.local_project + + else: + Project = ManagerAccessMixin.Project + if path.is_file() and path.suffix == ".json": + pm = Project.from_manifest(path) + + elif path.is_dir(): + pm = Project(path) + + if pm is None: + raise click.BadOptionUsage("--project", "Not a valid project") + + return pm + + +def project_option(**kwargs): + return click.option( + "--project", + help="The path to a local project or manifest", + callback=_project_callback, + metavar="PATH", + is_eager=True, + **kwargs, + ) + + def _json_option(name, help, **kwargs): return click.option( name, diff --git a/src/ape/contracts/base.py b/src/ape/contracts/base.py index ef5cb541a0..46aca9ad43 100644 --- a/src/ape/contracts/base.py +++ b/src/ape/contracts/base.py @@ -760,7 +760,7 @@ def source_path(self) -> Optional[Path]: if not (source_id := self.contract_type.source_id): return None - base = self.base_path or self.project_manager.contracts_folder + base = self.base_path or self.local_project.path path = base / source_id return path if path.is_file() else None @@ -1394,10 +1394,10 @@ def deploy(self, *args, publish: bool = False, **kwargs) -> ContractInstance: self.chain_manager.contracts.cache_deployment(instance) if publish: - self.project_manager.track_deployment(instance) + self.local_project.deployments.track(instance) self.provider.network.publish_contract(address) - instance.base_path = self.base_path or self.project_manager.contracts_folder + instance.base_path = self.base_path or self.local_project.contracts_folder return instance def _cache_wrap(self, function: Callable) -> ReceiptAPI: diff --git a/src/ape/exceptions.py b/src/ape/exceptions.py index b1db647373..ed041a0302 100644 --- a/src/ape/exceptions.py +++ b/src/ape/exceptions.py @@ -847,7 +847,7 @@ def _get_custom_python_traceback( depth = None idx = len(ape_traceback) - 1 frames = [] - project_path = txn.project_manager.path.as_posix() + project_path = txn.local_project.path.as_posix() while tb is not None: if not tb.tb_frame.f_code.co_filename.startswith(project_path): # Ignore frames outside the project. diff --git a/src/ape/managers/__init__.py b/src/ape/managers/__init__.py index 7513040e03..1b72168f61 100644 --- a/src/ape/managers/__init__.py +++ b/src/ape/managers/__init__.py @@ -1,4 +1,4 @@ -from pathlib import Path as _Path +from pathlib import Path from ape.utils import USER_AGENT, ManagerAccessMixin @@ -9,38 +9,18 @@ from .converters import ConversionManager from .networks import NetworkManager from .plugins import PluginManager -from .project import DependencyManager, ProjectManager +from .project import ProjectManager from .query import QueryManager -# Wiring together the application -_data_folder = _Path.home().joinpath(".ape") -_project_folder = _Path.cwd() - ManagerAccessMixin.plugin_manager = PluginManager() - -ManagerAccessMixin.dependency_manager = DependencyManager(data_folder=_data_folder) - ManagerAccessMixin.config_manager = ConfigManager( - # Store all globally-cached files - DATA_FOLDER=_data_folder, - # NOTE: For all HTTP requests we make - REQUEST_HEADER={ - "User-Agent": USER_AGENT, - }, - # What we are considering to be the starting project directory - PROJECT_FOLDER=_project_folder, + request_header={"User-Agent": USER_AGENT}, ) - ManagerAccessMixin.compiler_manager = CompilerManager() - ManagerAccessMixin.network_manager = NetworkManager() - ManagerAccessMixin.query_manager = QueryManager() - ManagerAccessMixin.conversion_manager = ConversionManager() - ManagerAccessMixin.chain_manager = ChainManager() - ManagerAccessMixin.account_manager = AccountManager() - -ManagerAccessMixin.project_manager = ProjectManager(path=_project_folder) +ManagerAccessMixin.local_project = ProjectManager(Path.cwd()) +ManagerAccessMixin.Project = ProjectManager diff --git a/src/ape/managers/accounts.py b/src/ape/managers/accounts.py index 81b866ecf2..8e834efbfc 100644 --- a/src/ape/managers/accounts.py +++ b/src/ape/managers/accounts.py @@ -100,7 +100,7 @@ def __getitem_str(self, account_str: str): account_id = self.conversion_manager.convert(account_str, AddressType) except ConversionError as err: message = message_fmt.format("ID", account_str) - raise IndexError(message) from err + raise KeyError(message) from err for account in self.accounts: if account.address == account_id: @@ -113,12 +113,12 @@ def __getitem_str(self, account_str: str): can_impersonate = self.provider.unlock_account(account_id) # else: fall through to `IndexError` except NotImplementedError as err: - raise IndexError( + raise KeyError( f"Your provider does not support impersonating accounts:\n{err_message}" ) from err if not can_impersonate: - raise IndexError(err_message) + raise KeyError(err_message) if account_id not in self._impersonated_accounts: acct = ImpersonatedAccount(raw_address=account_id) @@ -252,7 +252,7 @@ def load(self, alias: str) -> AccountAPI: Get an account by its alias. Raises: - IndexError: When there is no local account with the given alias. + KeyError: When there is no local account with the given alias. Returns: :class:`~ape.api.accounts.AccountAPI` @@ -265,7 +265,7 @@ def load(self, alias: str) -> AccountAPI: if account.alias and account.alias == alias: return account - raise IndexError(f"No account with alias '{alias}'.") + raise KeyError(f"No account with alias '{alias}'.") @singledispatchmethod def __getitem__(self, account_id) -> AccountAPI: @@ -327,7 +327,7 @@ def __getitem_str(self, account_str: str) -> AccountAPI: accounts, this method will return an impersonated account at that address. Raises: - IndexError: When there is no local account with the given address. + KeyError: When there is no local account with the given address. Returns: :class:`~ape.api.accounts.AccountAPI` @@ -342,7 +342,7 @@ def __getitem_str(self, account_str: str) -> AccountAPI: else: suffix = "Do you have the necessary conversion plugins installed?" - raise IndexError(f"{prefix}. {suffix}") from err + raise KeyError(f"{prefix}. {suffix}") from err for container in self.containers.values(): if account_id in container.accounts: diff --git a/src/ape/managers/chain.py b/src/ape/managers/chain.py index d78e507351..2324b7179c 100644 --- a/src/ape/managers/chain.py +++ b/src/ape/managers/chain.py @@ -952,8 +952,8 @@ def __getitem__(self, address: AddressType) -> ContractType: err = ContractNotFoundError( address, self.provider.network.explorer is not None, self.provider.network_choice ) - # Must raise IndexError. - raise IndexError(str(err)) + # Must raise KeyError. + raise KeyError(str(err)) return contract_type @@ -1173,7 +1173,7 @@ def instance_at( # Handle both absolute and relative paths abi_path = Path(abi) if not abi_path.is_absolute(): - abi_path = self.project_manager.path / abi + abi_path = self.local_project.path / abi try: abi = json.loads(abi_path.read_text()) @@ -1267,7 +1267,7 @@ def get_deployments(self, contract_container: ContractContainer) -> list[Contrac ecosystem_name = self.provider.network.ecosystem.name network_name = self.provider.network.name all_config_deployments = ( - self.config_manager.deployments.root if self.config_manager.deployments else {} + self.config_manager.deployments if self.config_manager.deployments else {} ) ecosystem_deployments = all_config_deployments.get(ecosystem_name, {}) network_deployments = ecosystem_deployments.get(network_name, {}) diff --git a/src/ape/managers/compilers.py b/src/ape/managers/compilers.py index ede0729f65..b8900c62d2 100644 --- a/src/ape/managers/compilers.py +++ b/src/ape/managers/compilers.py @@ -1,12 +1,14 @@ -from collections.abc import Iterable, Iterator +from collections import defaultdict +from collections.abc import Iterable, Iterator, Sequence +from functools import cached_property from pathlib import Path -from typing import Any, Optional, Union +from typing import TYPE_CHECKING, Any, Optional, Union from eth_pydantic_types import HexBytes from ethpm_types import ContractType from ethpm_types.source import Content -from ape.api import CompilerAPI +from ape.api.compiler import CompilerAPI from ape.contracts import ContractContainer from ape.exceptions import CompilerError, ContractLogicError, CustomError from ape.logging import logger @@ -18,7 +20,10 @@ get_attribute_with_extras, only_raise_attribute_error, ) -from ape.utils.os import get_full_extension, get_relative_path +from ape.utils.os import get_full_extension + +if TYPE_CHECKING: + from ape.managers.project import ProjectManager class CompilerManager(BaseManager, ExtraAttributesMixin): @@ -53,7 +58,7 @@ def __ape_extra_attributes__(self) -> Iterator[ExtraModelAttributes]: def __getattr__(self, attr_name: str) -> Any: return get_attribute_with_extras(self, attr_name) - @property + @cached_property def registered_compilers(self) -> dict[str, CompilerAPI]: """ Each compile-able file extension mapped to its respective @@ -63,25 +68,16 @@ def registered_compilers(self) -> dict[str, CompilerAPI]: dict[str, :class:`~ape.api.compiler.CompilerAPI`]: The mapping of file-extensions to compiler API classes. """ - - cache_key = self.config_manager.PROJECT_FOLDER - if cache_key in self._registered_compilers_cache: - return self._registered_compilers_cache[cache_key] - registered_compilers = {} for plugin_name, (extensions, compiler_class) in self.plugin_manager.register_compiler: - # TODO: Investigate side effects of loading compiler plugins. - # See if this needs to be refactored. self.config_manager.get_config(plugin_name) - compiler = compiler_class() for extension in extensions: if extension not in registered_compilers: registered_compilers[extension] = compiler - self._registered_compilers_cache[cache_key] = registered_compilers return registered_compilers def get_compiler(self, name: str, settings: Optional[dict] = None) -> Optional[CompilerAPI]: @@ -98,7 +94,10 @@ def get_compiler(self, name: str, settings: Optional[dict] = None) -> Optional[C return None def compile( - self, contract_filepaths: Iterable[Union[Path, str]], settings: Optional[dict] = None + self, + contract_filepaths: Union[Path, str, Iterable[Union[Path, str]]], + project: Optional["ProjectManager"] = None, + settings: Optional[dict] = None, ) -> Iterator[ContractType]: """ Invoke :meth:`ape.ape.compiler.CompilerAPI.compile` for each of the given files. @@ -110,104 +109,65 @@ def compile( file-extension as well as when there are contract-type collisions across compilers. Args: - contract_filepaths (Iterable[Union[pathlib.Path], str]): The files to compile, - as ``pathlib.Path`` objects or path-strs. - settings (Optional[dict]): Adhoc compiler settings. Defaults to None. + contract_filepaths (Union[Path, str, Iterable[Union[Path, str]]]): The files to + compile, as ``pathlib.Path`` objects or path-strs. + project (Optional[:class:`~ape.managers.project.ProjectManager`]): Optionally + compile a different project that the one from the current-working directory. + settings (Optional[Dict]): Adhoc compiler settings. Defaults to None. Ensure the compiler name key is present in the dict for it to work. Returns: Iterator[``ContractType``]: An iterator of contract types. """ - contract_file_paths = [Path(p) if isinstance(p, str) else p for p in contract_filepaths] - extensions = self._get_contract_extensions(contract_file_paths) - contracts_folder = self.config_manager.contracts_folder - contract_types_dict: dict[str, ContractType] = {} - cached_manifest = self.project_manager.local_project.cached_manifest - - # Load past compiled contracts for verifying type-collision and other things. - already_compiled_paths: list[Path] = [] - for name, ct in ((cached_manifest.contract_types or {}) if cached_manifest else {}).items(): - if not ct.source_id: - continue - _file = contracts_folder / ct.source_id - if not _file.is_file(): - continue - - contract_types_dict[name] = ct - already_compiled_paths.append(_file) - - exclusions = self.config_manager.get_config("compile").exclude - for extension in extensions: - ignore_path_lists = [contracts_folder.rglob(p) for p in exclusions] - paths_to_ignore = [ - contracts_folder / get_relative_path(p, contracts_folder) - for files in ignore_path_lists - for p in files - ] - - # Filter out in-source cache files from dependencies. - paths_to_compile = [ - path - for path in contract_file_paths - if path.is_file() - and path not in paths_to_ignore - and path not in already_compiled_paths - and get_full_extension(path) == extension - ] - - if not paths_to_compile: - continue + pm = project or self.local_project + files_by_ext = defaultdict(list) - source_ids = [get_relative_path(p, contracts_folder) for p in paths_to_compile] - for source_id in source_ids: - logger.info(f"Compiling '{source_id}'.") + if isinstance(contract_filepaths, (str, Path)): + contract_filepaths = (contract_filepaths,) - name = self.registered_compilers[extension].name - compiler = self.get_compiler(name, settings=settings) - if compiler is None: - # For mypy - should not be possible. - raise ValueError("Compiler should not be None") + for path in map(Path, contract_filepaths): + suffix = get_full_extension(path) + if suffix in self.registered_compilers: + files_by_ext[suffix].append(path) - compiled_contracts = compiler.compile( - paths_to_compile, base_path=self.config_manager.get_config("compile").base_path - ) + errors = [] + tracker: dict[str, str] = {} + settings = settings or {} - # Validate some things about the compile contracts. - for contract_type in compiled_contracts: - contract_name = contract_type.name - if not contract_name: - # Compiler plugins should have let this happen, but just in case we get here, - # raise a better error so the user has some indication of what happened. - if contract_type.source_id: - raise CompilerError( - f"Contract '{contract_type.source_id}' missing name. " - f"Was compiler plugin for '{extension} implemented correctly?" - ) - else: + for next_ext, path_set in files_by_ext.items(): + compiler = self.registered_compilers[next_ext] + try: + compiler_settings = settings.get(compiler.name, {}) + for contract in compiler.compile(path_set, project=pm, settings=compiler_settings): + if contract.name in tracker: raise CompilerError( - f"Empty contract type found in compiler '{extension}'. " - f"Was compiler plugin for '{extension} implemented correctly?" + f"ContractType collision. " + f"Contracts '{tracker[contract.name]}' and '{contract.source_id}' " + f"share the name '{contract.name}'." ) - if contract_name in contract_types_dict: - already_added_contract_type = contract_types_dict[contract_name] - error_message = ( - f"{ContractType.__name__} collision between sources " - f"'{contract_type.source_id}' and " - f"'{already_added_contract_type.source_id}'." - ) - raise CompilerError(error_message) + if contract.name and contract.source_id: + tracker[contract.name] = contract.source_id + + yield contract - # Cache is for collision detection. - contract_types_dict[contract_name] = contract_type + except CompilerError as err: + # One of the compilers failed. Show the error but carry on. + logger.log_debug_stack_trace() + errors.append(err) + continue - yield contract_type + if errors: + formatted_errors = [f"{e}" for e in errors] + error_message = "\n\n".join(formatted_errors) + raise CompilerError(error_message) def compile_source( self, compiler_name: str, code: str, + project: Optional["ProjectManager"] = None, settings: Optional[dict] = None, **kwargs, ) -> ContractContainer: @@ -226,6 +186,8 @@ def compile_source( Args: compiler_name (str): The name of the compiler to use. code (str): The source code to compile. + project (Optional[:class:`~ape.managers.project.ProjectManager`]): Optionally + compile a different project that the one from the current-working directory. settings (Optional[dict]): Compiler settings. **kwargs (Any): Additional overrides for the ``ethpm_types.ContractType`` model. @@ -236,38 +198,34 @@ def compile_source( if not compiler: raise ValueError(f"Compiler '{compiler_name}' not found.") - contract_type = compiler.compile_code( - code, - base_path=self.project_manager.contracts_folder, - **kwargs, - ) + contract_type = compiler.compile_code(code, project=project, **kwargs) return ContractContainer(contract_type=contract_type) def get_imports( - self, contract_filepaths: Iterable[Path], base_path: Optional[Path] = None + self, + contract_filepaths: Sequence[Path], + project: Optional["ProjectManager"] = None, ) -> dict[str, list[str]]: """ Combine import dicts from all compilers, where the key is a contract's source_id and the value is a list of import source_ids. Args: - contract_filepaths (Iterable[pathlib.Path]): A list of source file paths to compile. - base_path (Optional[pathlib.Path]): Optionally provide the base path, such as the - project ``contracts/`` directory. Defaults to ``None``. When using in a project - via ``ape compile``, gets set to the project's ``contracts/`` directory. + contract_filepaths (Sequence[pathlib.Path]): A list of source file paths to compile. + project (Optional[:class:`~ape.managers.project.ProjectManager`]): Optionally provide + the project. Returns: dict[str, list[str]]: A dictionary like ``{source_id: [import_source_id, ...], ...}`` """ imports_dict: dict[str, list[str]] = {} - base_path = base_path or self.project_manager.contracts_folder for ext, compiler in self.registered_compilers.items(): try: sources = [ p for p in contract_filepaths if get_full_extension(p) == ext and p.is_file() ] - imports = compiler.get_imports(contract_filepaths=sources, base_path=base_path) + imports = compiler.get_imports(contract_filepaths=sources, project=project) except NotImplementedError: imports = None @@ -300,15 +258,6 @@ def get_references(self, imports_dict: dict[str, list[str]]) -> dict[str, list[s return references_dict - def _get_contract_extensions(self, contract_filepaths: list[Path]) -> set[str]: - extensions = {get_full_extension(path) for path in contract_filepaths} - unhandled_extensions = {s for s in extensions - set(self.registered_compilers) if s} - if len(unhandled_extensions) > 0: - unhandled_extensions_str = ", ".join(unhandled_extensions) - raise CompilerError(f"No compiler found for extensions [{unhandled_extensions_str}].") - - return {e for e in extensions if e} - def enrich_error(self, err: ContractLogicError) -> ContractLogicError: """ Enrich a contract logic error using compiler information, such @@ -390,11 +339,11 @@ def flatten_contract(self, path: Path, **kwargs) -> Content: ``ethpm_types.source.Content``: The flattened contract content. """ - ext = get_full_extension(path) - if ext not in self.registered_compilers: - raise CompilerError(f"Unable to flatten contract. Missing compiler for '{ext}'.") + suffix = get_full_extension(path) + if suffix not in self.registered_compilers: + raise CompilerError(f"Unable to flatten contract. Missing compiler for '{suffix}'.") - compiler = self.registered_compilers[ext] + compiler = self.registered_compilers[suffix] return compiler.flatten_contract(path, **kwargs) def can_trace_source(self, filename: str) -> bool: diff --git a/src/ape/managers/config.py b/src/ape/managers/config.py index c18fd0e09f..0f725fc46a 100644 --- a/src/ape/managers/config.py +++ b/src/ape/managers/config.py @@ -1,382 +1,124 @@ import os -from collections.abc import Generator -from contextlib import contextmanager +from functools import cached_property from pathlib import Path -from typing import TYPE_CHECKING, Any, Optional, Union - -from ethpm_types import PackageMeta -from pydantic import RootModel, model_validator - -from ape.api import ConfigDict, DependencyAPI, PluginConfig -from ape.exceptions import ConfigError -from ape.logging import logger -from ape.utils import BaseInterfaceModel, load_config, log_instead_of_fail - -if TYPE_CHECKING: - from .project import ProjectManager - +from typing import Any, Optional + +from ethpm_types import PackageManifest + +from ape.api import PluginConfig +from ape.api.config import ApeConfig +from ape.managers.base import BaseManager +from ape.utils import log_instead_of_fail +from ape.utils.basemodel import ( + ExtraAttributesMixin, + ExtraModelAttributes, + get_attribute_with_extras, + get_item_with_extras, + only_raise_attribute_error, +) CONFIG_FILE_NAME = "ape-config.yaml" -class DeploymentConfig(PluginConfig): - address: Union[str, bytes] - contract_type: str - - -class DeploymentConfigCollection(RootModel[dict]): - @model_validator(mode="before") - @classmethod - def validate_deployments(cls, data: dict, info): - valid_ecosystems = data.pop("valid_ecosystems", {}) - valid_networks = data.pop("valid_networks", {}) - valid_data: dict = {} - for ecosystem_name, networks in data.items(): - if ecosystem_name not in valid_ecosystems: - logger.warning(f"Invalid ecosystem '{ecosystem_name}' in deployments config.") - continue - - ecosystem = valid_ecosystems[ecosystem_name] - for network_name, contract_deployments in networks.items(): - if network_name not in valid_networks: - logger.warning(f"Invalid network '{network_name}' in deployments config.") - continue - - valid_deployments = [] - for deployment in [d for d in contract_deployments]: - if not (address := deployment.get("address")): - logger.warning( - f"Missing 'address' field in deployment " - f"(ecosystem={ecosystem_name}, network={network_name})" - ) - continue - - valid_deployment = {**deployment} - try: - valid_deployment["address"] = ecosystem.decode_address(address) - except ValueError as err: - logger.warning(str(err)) - - valid_deployments.append(valid_deployment) - - valid_data[ecosystem_name] = { - **valid_data.get(ecosystem_name, {}), - network_name: valid_deployments, - } - - return valid_data - - -class ConfigManager(BaseInterfaceModel): +class ConfigManager(ExtraAttributesMixin, BaseManager): """ - The singleton responsible for managing the ``ape-config.yaml`` project file. - The config manager is useful for loading plugin configurations which contain - settings that determine how ``ape`` functions. When developing plugins, - you may want to have settings that control how the plugin works. When developing - scripts in a project, you may want to parametrize how it runs. The config manager - is how you can access those settings at runtime. - - Access the ``ConfigManager`` from the ``ape`` namespace directly via: - - Usage example:: - - from ape import config # "config" is the ConfigManager singleton - - # Example: load the "ape-test" plugin and access the mnemonic - test_mnemonic = config.get_config("test").mnemonic + An Ape configuration manager, controlled by ``ape-config.yaml`` + files. **NOTE**: This is a singleton wrapper class that + points to the local project's config. For the config field + definitions, see :class:`~ape.api.config.ApeConfig`. """ - DATA_FOLDER: Path - """The path to the ``ape`` directory such as ``$HOME/.ape``.""" - - REQUEST_HEADER: dict - - PROJECT_FOLDER: Path - """The path to the ``ape`` project.""" - - name: str = "" - """The name of the project.""" - - version: str = "" - """The project's version.""" - - meta: PackageMeta = PackageMeta() - """Metadata about the project.""" - - contracts_folder: Path = None # type: ignore - """ - The path to the project's ``contracts/`` directory - (differs by project structure). - """ - - dependencies: list[DependencyAPI] = [] - """A list of project dependencies.""" - - deployments: Optional[DeploymentConfigCollection] = None - """A dict of contract deployments by address and contract type.""" - - default_ecosystem: str = "ethereum" - """The default ecosystem to use. Defaults to ``"ethereum"``.""" - - _config_override: dict[str, Any] = {} - """Adhoc config overrides.""" - - _cached_configs: dict[str, dict[str, Any]] = {} - - @model_validator(mode="before") - @classmethod - def check_config_for_extra_fields(cls, values: dict[str, Any]) -> dict[str, Any]: - extra = [key for key in values.keys() if key not in cls.model_fields] - if extra: - logger.warning(f"Unprocessed extra config fields not set '{extra}'.") - - return values - - @model_validator(mode="after") - @classmethod - def load_configs(cls, cm): - return cm.load() - - @property - def packages_folder(self) -> Path: - self.dependency_manager.packages_folder.mkdir(parents=True, exist_ok=True) - return self.dependency_manager.packages_folder - - @property - def _project_key(self) -> str: - return self.PROJECT_FOLDER.stem - - @property - def _project_configs(self) -> dict[str, Any]: - return self._cached_configs.get(self._project_key, {}) - - @property - def _plugin_configs(self) -> dict[str, PluginConfig]: - if cache := self._cached_configs.get(self._project_key): - self.name = cache.get("name", "") - self.version = cache.get("version", "") - self.default_ecosystem = cache.get("default_ecosystem", "ethereum") - self.meta = PackageMeta.model_validate(cache.get("meta", {})) - self.dependencies = cache.get("dependencies", []) - self.deployments = cache.get("deployments", {}) - self.contracts_folder = cache.get("contracts_folder", self.PROJECT_FOLDER / "contracts") - return cache - - # First, load top-level configs. Then, load all the plugin configs. - # The configs are popped off the dict for checking if all configs were processed. - - configs = {} - global_config_file = self.DATA_FOLDER / CONFIG_FILE_NAME - global_config = load_config(global_config_file) if global_config_file.is_file() else {} - config_file = self.PROJECT_FOLDER / CONFIG_FILE_NAME - - # NOTE: It is critical that we read in global config values first - # so that project config values will override them as-needed. - project_config = load_config(config_file) if config_file.is_file() else {} - user_config = merge_configs(global_config, project_config, self._config_override) - - self.name = configs["name"] = user_config.pop("name", "") - self.version = configs["version"] = user_config.pop("version", "") - meta_dict = user_config.pop("meta", {}) - meta_obj = PackageMeta.model_validate(meta_dict) - configs["meta"] = meta_dict - self.meta = meta_obj - self.default_ecosystem = configs["default_ecosystem"] = user_config.pop( - "default_ecosystem", "ethereum" + def __init__(self, data_folder: Optional[Path] = None, request_header: Optional[dict] = None): + if not data_folder and "APE_DATA_FOLDER" in os.environ: + self.DATA_FOLDER = Path(os.environ["APE_DATA_FOLDER"]) + else: + self.DATA_FOLDER = data_folder or Path.home() / ".ape" + + self.REQUEST_HEADER = request_header or {} + + def __ape_extra_attributes__(self): + # The "extra" attributes are the local project's + # config attributes. To see the actual ``ape-config.yaml`` + # definitions, see :class:`~ape.api.config.ApeConfig`. + yield ExtraModelAttributes( + name="config", + # Active project's config. + attributes=self.local_project.config, + include_getitem=True, ) - dependencies = user_config.pop("dependencies", []) or [] - if not isinstance(dependencies, list): - raise ConfigError("'dependencies' config item must be a list of dicts.") + @log_instead_of_fail(default="") + def __repr__(self) -> str: + return f"<{CONFIG_FILE_NAME}>" - decode = self.dependency_manager.decode_dependency - configs["dependencies"] = [decode(dep) for dep in dependencies] - self.dependencies = configs["dependencies"] + def __str__(self) -> str: + return str(self.local_project.config) - # NOTE: It is okay for this directory not to exist at this point. - contracts_folder = user_config.pop( - "contracts_folder", user_config.pop("contracts-folder", None) - ) - contracts_folder = ( - (self.PROJECT_FOLDER / Path(contracts_folder)).expanduser().resolve() - if contracts_folder - else self.PROJECT_FOLDER / "contracts" - ) + @only_raise_attribute_error + def __getattr__(self, name: str) -> Any: + """ + The root config manager (funneling to this method) + refers to the local project's config. Config is loaded + per project in Ape to support multi-project environments + and a smarter dependency system. - self.contracts_folder = configs["contracts_folder"] = contracts_folder - deployments = user_config.pop("deployments", {}) - valid_ecosystems = dict(self.plugin_manager.ecosystems) - valid_network_names = [n[1] for n in [e[1] for e in self.plugin_manager.networks]] - self.deployments = configs["deployments"] = DeploymentConfigCollection( - root={ - **deployments, - "valid_ecosystems": valid_ecosystems, - "valid_networks": valid_network_names, - } - ) + See :class:`~ape.api.config.ApeConfig` for field definitions + and model-related controls. + """ - ethereum_config_cls = None - for plugin_name, config_class in self.plugin_manager.config_class: - # `or {}` to handle the case when the empty config is `None`. - user_override = user_config.pop(plugin_name, {}) or {} - - # Store ethereum's class for custom network config loading. - if plugin_name == "ethereum": - ethereum_config_cls = config_class - - if config_class != ConfigDict: - config = config_class.from_overrides( # type: ignore - # NOTE: Will raise if improperly provided keys - user_override, - # NOTE: Sending ourselves in case the PluginConfig needs access to the root - # config vars. - config_manager=self, - ) - else: - # NOTE: Just use it directly as a dict if `ConfigDict` is passed - config = user_override - - configs[plugin_name] = config - - # Load custom ecosystem configs. - if ethereum_config_cls is not None and user_config: - custom_ecosystem_names = { - x.get("ecosystem") - for x in configs.get("networks", {}).get("custom", []) - if x.get("ecosystem") and x["ecosystem"] not in configs - } - custom_ecosystem_configs = { - n: cfg for n, cfg in user_config.items() if n in custom_ecosystem_names - } - - for ecosystem_name, cfg in custom_ecosystem_configs.items(): - config = ethereum_config_cls.from_overrides(cfg) # type: ignore - configs[ecosystem_name] = config - del user_config[ecosystem_name] - - remaining_keys = user_config.keys() - if len(remaining_keys) > 0: - remaining_keys_str = ", ".join(remaining_keys) - logger.warning( - f"Unprocessed plugin config(s): {remaining_keys_str}. " - "Plugins may not be installed yet or keys may be mis-spelled." - ) - - self._cached_configs[self._project_key] = configs - return configs + return get_attribute_with_extras(self, name) - @log_instead_of_fail(default="") - def __repr__(self) -> str: - return f"<{ConfigManager.__name__} project={self.PROJECT_FOLDER.name}>" + def __getitem__(self, name: str) -> Any: + return get_item_with_extras(self, name) - def load(self, force_reload: bool = False, **overrides) -> "ConfigManager": + @cached_property + def global_config(self) -> ApeConfig: """ - Load the user config file and return this class. + Root-level configurations, loaded from the + data folder. **NOTE**: This only needs to load + once and applies to all projects. """ + return self.load_global_config() - if force_reload: - self._cached_configs = {} + def load_global_config(self) -> ApeConfig: + path = self.DATA_FOLDER / CONFIG_FILE_NAME + return ApeConfig.validate_file(path) if path.is_file() else ApeConfig.model_validate({}) - self._config_override = overrides or {} - _ = self._plugin_configs + def merge_with_global(self, project_config: ApeConfig) -> ApeConfig: + global_data = self.global_config.model_dump(by_alias=True) + project_data = project_config.model_dump(by_alias=True) + merged_data = merge_configs(global_data, project_data) + return ApeConfig.model_validate(merged_data) - return self - - def get_config(self, plugin_name: str) -> PluginConfig: + @classmethod + def extract_config(cls, manifest: PackageManifest, **overrides) -> ApeConfig: """ - Get a plugin config. + Calculate the ape-config data from a package manifest. Args: - plugin_name (str): The name of the plugin to get the config for. + manifest (PackageManifest): The manifest. + **overrides: Custom config settings. Returns: - :class:`~ape.api.config.PluginConfig` + :class:`~ape.managers.config.ApeConfig`: Config data. """ + return ApeConfig.from_manifest(manifest, **overrides) - self.load() # Only loads if it needs to. - - if plugin_name not in self._plugin_configs: - # plugin has no registered config class, so return empty config - return PluginConfig() - - return self._plugin_configs[plugin_name] - - @contextmanager - def using_project( - self, project_folder: Path, contracts_folder: Optional[Path] = None, **config - ) -> Generator["ProjectManager", None, None]: + def get_config(self, plugin_name: str) -> PluginConfig: """ - Temporarily change the project context. - - Usage example:: - - from pathlib import Path - from ape import config, Project - - project_path = Path("path/to/project") - contracts_path = project_path / "contracts" - - with config.using_project(project_path): - my_project = Project(project_path) + Get the config for a plugin. Args: - project_folder (pathlib.Path): The path of the context's project. - contracts_folder (Optional[pathlib.Path]): The path to the context's source files. - Defaults to ``/contracts``. + plugin_name (str): The name of the plugin. Returns: - Generator + :class:`~ape.api.config.PluginConfig` """ - - initial_project_folder = self.project_manager.path - initial_contracts_folder = self.contracts_folder - - if initial_project_folder == project_folder and ( - not contracts_folder or initial_contracts_folder == contracts_folder - ): - # Already in project. - yield self.project_manager - return - - self.PROJECT_FOLDER = project_folder - - if isinstance(contracts_folder, str): - contracts_folder = (project_folder / contracts_folder).expanduser().resolve() - elif isinstance(contracts_folder, Path): - contracts_folder = contracts_folder - else: - contracts_folder = project_folder / "contracts" - - self.contracts_folder = contracts_folder - self.project_manager.path = project_folder - os.chdir(project_folder) - clean_config = False - try: - # Process and reload the project's configuration - project = self.project_manager.get_project( - project_folder, contracts_folder=contracts_folder - ) - # Ensure this ends up in the project's config. - if "contracts_folder" not in config: - config["contracts_folder"] = contracts_folder - - clean_config = project.process_config_file(**config) - self.load(force_reload=True) - yield self.project_manager - - finally: - temp_project_path = self.project_manager.path - self.PROJECT_FOLDER = initial_project_folder - self.contracts_folder = initial_contracts_folder - self.project_manager.path = initial_project_folder - - if initial_project_folder.is_dir(): - os.chdir(initial_project_folder) - - config_file = temp_project_path / CONFIG_FILE_NAME - if clean_config and config_file.is_file(): - config_file.unlink() + return self.__getattr__(plugin_name) + except AttributeError: + # Empty config. + return PluginConfig() def merge_configs(*cfgs: dict) -> dict: diff --git a/src/ape/managers/project.py b/src/ape/managers/project.py new file mode 100644 index 0000000000..46ba8b2631 --- /dev/null +++ b/src/ape/managers/project.py @@ -0,0 +1,2302 @@ +import json +import random +import shutil +from collections.abc import Callable, Iterable, Iterator +from contextlib import contextmanager +from functools import cached_property, singledispatchmethod +from pathlib import Path +from typing import Any, Optional, Union, cast + +from eth_typing import HexStr +from ethpm_types import ContractInstance as EthPMContractInstance +from ethpm_types import ContractType, PackageManifest, PackageMeta, Source +from ethpm_types.source import Compiler, ContractSource +from ethpm_types.utils import compute_checksum +from pydantic_core import Url + +from ape.api.projects import ApeProject, DependencyAPI, ProjectAPI +from ape.contracts import ContractContainer, ContractInstance +from ape.exceptions import APINotImplementedError, ChainError, ProjectError +from ape.logging import logger +from ape.managers.base import BaseManager +from ape.managers.config import ApeConfig +from ape.utils.basemodel import ( + ExtraAttributesMixin, + ExtraModelAttributes, + ManagerAccessMixin, + get_attribute_with_extras, + only_raise_attribute_error, +) +from ape.utils.misc import SOURCE_EXCLUDE_PATTERNS, log_instead_of_fail +from ape.utils.os import ( + clean_path, + create_tempdir, + get_all_files_in_directory, + get_full_extension, + get_relative_path, + in_tempdir, + path_match, +) + + +def _path_to_source_id(path: Path, root_path: Path) -> str: + return f"{get_relative_path(path.absolute(), root_path.absolute())}" + + +class SourceManager(BaseManager): + """ + A manager of a local-project's sources-paths. + Access via ``project.sources``. Allows source-access + from both ``source_id`` as well as ``path``. Handles + detecting modified sources as well as excluded sources. + Is meant to resemble a PackageManifest's source dict + but with more functionality for active development. + """ + + _path_cache: Optional[list[Path]] = None + + def __init__( + self, + root_path: Path, + get_contracts_path: Callable, + exclude_globs: Optional[set[str]] = None, + ): + self.root_path = root_path + self.get_contracts_path = get_contracts_path + self.exclude_globs = exclude_globs or set() + self._sources: dict[str, Source] = {} + self._exclude_cache: dict[str, bool] = {} + + @log_instead_of_fail(default="") + def __repr__(self) -> str: + path_str = f" {clean_path(self.get_contracts_path())}" + return f"" + + def __len__(self) -> int: + if self._path_cache is not None: + return len(self._path_cache) + + # Will set _path_cache, eliminates need to iterte (perf). + return len(list(self.paths)) + + def __iter__(self) -> Iterator[str]: + for path in self.paths: + yield self._get_source_id(path) + + def __getitem__(self, source_id: str) -> Source: + src = self.get(source_id) + + # NOTE: Can't use walrus operator here because empty Source objects + # are false-y. + if src is None: + raise KeyError(f"Source '{source_id}' not found.") + + return src + + def get(self, source_id: str) -> Optional[Source]: + """ + Get a Source by source_id. + + Args: + source_id (str): The source identifier. + + Returns: + Source | None + """ + if source_id in self._sources: + return self._sources[source_id] + + for path in self.paths: + if self._get_source_id(path) == source_id: + text: Union[str, dict] + if path.is_file(): + try: + text = path.read_text() + except Exception: + continue + + else: + text = {} + + src = Source.model_validate(text) + self._sources[source_id] = src + return src + + return None + + def items(self) -> Iterator[tuple[str, Source]]: + for source_id in self.keys(): + yield source_id, self[source_id] + + def keys(self) -> Iterator[str]: + for path in self.paths: + yield self._get_source_id(path) + + def values(self) -> Iterator[Source]: + for source_id in self.keys(): + yield self[source_id] + + @singledispatchmethod + def __contains__(self, item) -> bool: + raise APINotImplementedError(f"__contains__ not implemented for {type(item)}.") + + @__contains__.register + def __contains_str(self, source_id: str) -> bool: + for path in self.paths: + if self._get_source_id(path) == source_id: + return True + + return False + + @__contains__.register + def __contains_path(self, source_path: Path) -> bool: + for path in self.paths: + if path == source_path: + return True + + return False + + @property + def _all_files(self) -> list[Path]: + try: + contracts_folder = self.get_contracts_path() + except ProjectError: + # No contracts folder found. Might not be in a project. + return [] + + return get_all_files_in_directory(contracts_folder, max_files=500) + + @property + def paths(self) -> Iterator[Path]: + """ + All contract sources paths. + """ + for path in self._all_files: + if self.is_excluded(path): + continue + + yield path + + def is_excluded(self, path: Path) -> bool: + """ + Check if the given path is considered an "excluded" + file based on the configured ignore-patterns. + + Args: + path (Path): The path to check. + + Returns: + bool + """ + source_id = self._get_source_id(path) + if source_id in self._exclude_cache: + return self._exclude_cache[source_id] + + # Non-files and hidden files are ignored. + is_file = path.is_file() + if not is_file or path.name.startswith("."): + # Ignore random hidden files if they are known source types. + self._exclude_cache[source_id] = True + return True + + # Files with missing compiler extensions are also ignored. + suffix = get_full_extension(path) + registered = self.compiler_manager.registered_compilers + if suffix not in registered: + self._exclude_cache[source_id] = True + return True + + # If we get here, we have a matching compiler and this source exists. + # Check if is excluded. + source_id = self._get_source_id(path) + options = (str(path), path.name, source_id) + parent_dir_name = path.parent.name + + for excl in self.exclude_globs: + # perf: Check parent directory first to exclude faster by marking them all. + if path_match(parent_dir_name, excl): + self._exclude_cache[source_id] = True + for sub in get_all_files_in_directory(path.parent): + sub_source_id = self._get_source_id(sub) + self._exclude_cache[sub_source_id] = True + + return True + + for opt in options: + if path_match(opt, excl): + self._exclude_cache[source_id] = True + return True + + self._exclude_cache[source_id] = False + return False + + def lookup(self, path_id: Union[str, Path]) -> Optional[Path]: + """ + Look-up a path by given a sub-path or a source ID. + + Args: + path_id (Union[str, Path]): Either part of a path + or a source ID. + + Returns: + Path: The full path to the source file. + """ + input_path = Path(path_id) + if input_path.is_file(): + # Already given an existing file. + return input_path.absolute() + + input_stem = input_path.stem + input_extension = get_full_extension(input_path) or None + + def find_in_dir(dir_path: Path, path: Path) -> Optional[Path]: + # Try exact match with or without extension + possible_matches = [] + contracts_folder = self.get_contracts_path() + + if path.is_absolute(): + full_path = path + elif contracts_folder in (dir_path / path).parents: + # Check if a file with an exact match exists. + full_path = dir_path / path + else: + # User did not include contracts-prefix. + full_path = contracts_folder / path + + if full_path.is_file(): + return full_path + + # Check for exact match with no given extension. + if input_extension is None: + if full_path.parent.is_dir(): + for file in full_path.parent.iterdir(): + if not file.is_file(): + continue + elif not (file_ext := get_full_extension(file)): + continue + + # Check exact match w/o extension. + prefix = file_ext.join(str(file).split(file_ext)[:-1]) + + if str(full_path) == prefix: + return file + + # Look for stem-only matches (last resort). + for file_path in dir_path.rglob("*"): + if file_path.stem == input_stem: + possible_matches.append(file_path) + + # If we have possible matches, return the one with the closest relative path + if possible_matches: + # Prioritize the exact relative path or first match in the list + possible_matches.sort(key=lambda p: len(str(p.relative_to(dir_path)))) + return possible_matches[0] + + return None + + # Derive the relative path from the given key_contract_path. + relative_path = input_path.relative_to(input_path.anchor) + return find_in_dir(self.root_path, relative_path) + + def _get_source_id(self, path: Path) -> str: + return _path_to_source_id(path, self.root_path) + + def _get_path(self, source_id: str) -> Path: + return self.root_path / source_id + + +class ContractManager(BaseManager): + """ + Local contract-type loader. Only dict-like behavior is public. + """ + + def __init__(self, project: "LocalProject", sources: SourceManager): + self.project = project + self.sources = sources + + @log_instead_of_fail(default="") + def __repr__(self) -> str: + folder = self.project.contracts_folder + folder_str = f" {clean_path(folder)}" if folder else "" + return f"" + + def __contains__(self, contract_name: str) -> bool: + return self.get(contract_name) is not None + + def __getitem__(self, contract_name: str) -> ContractContainer: + if contract := self.get(contract_name): + return contract + + raise KeyError(f"Contract '{contract_name}' not found.") + + def __iter__(self) -> Iterator[str]: + self._compile_missing_contracts(self.sources.paths) + if contract_types := self.project.manifest.contract_types: + for ct in contract_types.values(): + if ct.name: + yield ct.name + + def get(self, name: str, compile_missing: bool = True) -> Optional[ContractContainer]: + """ + Get a contract by name. + + Args: + name (str): The name of the contract. + compile_missing (bool): Set to ``False`` to not attempt compiling + if the contract can't be found. Note: modified sources are + re-compiled regardless of this flag. + + Returns: + ContractContainer | None + """ + + existing_types = self.project.manifest.contract_types or {} + if contract_type := existing_types.get(name): + source_id = contract_type.source_id or "" + ext = get_full_extension(source_id) + + # Allow us to still get previously-compiled contracts if don't + # have the compiler plugin installed at this time. + if ext not in self.compiler_manager.registered_compilers: + return ContractContainer(contract_type) + + elif source_id in self.sources and self._detect_change(source_id): + # Previous cache is outdated. + compiled = { + ct.name: ct + for ct in self.compiler_manager.compile(source_id, project=self.project) + if ct.name + } + if compiled: + self.project._update_contract_types(compiled) + if name in compiled: + return ContractContainer(compiled[name]) + + elif source_id in self.sources: + # Cached and already compiled. + return ContractContainer(contract_type) + + if compile_missing: + # Try again after compiling all missing. + self._compile_missing_contracts(self.sources.paths) + return self.get(name, compile_missing=False) + + return None + + def keys(self) -> Iterator[str]: + # dict-like behavior. + yield from self + + def values(self) -> Iterator[ContractContainer]: + # dict-like behavior. + for name in self: + yield self[name] + + def _compile_missing_contracts(self, paths: Iterable[Union[Path, str]]): + non_compiled_sources = self._get_needs_compile(paths) + self._compile_contracts(non_compiled_sources) + + def _get_needs_compile(self, paths: Iterable[Union[Path, str]]) -> Iterable[Path]: + for path in paths: + if self._detect_change(path): + if isinstance(path, str): + yield self.sources._get_path(path) + else: + yield path + + def _compile_contracts(self, paths: Iterable[Union[Path, str]]): + if not ( + new_types := { + ct.name: ct + for ct in self.compiler_manager.compile(paths, project=self.project) + if ct.name + } + ): + return + + existing_types = self.project.manifest.contract_types or {} + contract_types = {**existing_types, **new_types} + self.project._update_contract_types(contract_types) + + def _load_contracts(self, use_cache: bool = True) -> dict[str, ContractContainer]: + return { + c.contract_type.name: c + for c in self._compile_all(use_cache=use_cache) + if c.contract_type.name + } + + def _compile_all(self, use_cache: bool = True) -> Iterator[ContractContainer]: + if sources := self.sources: + paths = sources.paths + yield from self._compile(paths, use_cache=use_cache) + + def _compile( + self, paths: Union[Path, str, Iterable[Union[Path, str]]], use_cache: bool = True + ) -> Iterator[ContractContainer]: + path_ls = list([paths] if isinstance(paths, (Path, str)) else paths) + if not path_ls: + return + + path_ls_final = [] + for path in path_ls: + path = Path(path) + if path.is_file() and path.is_absolute(): + path_ls_final.append(path) + elif (self.project.path / path).is_file(): + path_ls_final.append(self.project.path / path) + # else: is no longer a file (deleted). + + # Compile necessary contracts. + if needs_compile := list( + self._get_needs_compile(path_ls_final) if use_cache else path_ls_final + ): + self._compile_contracts(needs_compile) + + src_ids = [ + f"{get_relative_path(Path(p).absolute(), self.project.path)}" for p in path_ls_final + ] + for contract_type in (self.project.manifest.contract_types or {}).values(): + if contract_type.source_id and contract_type.source_id in src_ids: + yield ContractContainer(contract_type) + + def _detect_change(self, path: Union[Path, str]) -> bool: + if not (existing_types := (self.project.manifest.contract_types or {}).values()): + return True # Nothing compiled yet. + + source_id: str + if isinstance(path, Path): + path = path + source_id = self.sources._get_source_id(path) + else: + source_id = str(path) # str wrap for mypy + path = self.sources._get_path(path) + + if source_id not in (self.project.manifest.sources or {}) or source_id not in ( + x.source_id for x in existing_types if x.source_id + ): + return True # New file. + + elif not path.is_file(): + return False # No longer exists. + + # ethpm_types strips trailing white space and ensures + # a newline at the end so content so `splitlines()` works. + # We need to do the same here for to prevent the endless recompiling bug. + text = path.read_text("utf8").rstrip() + content = f"{text}\n" if text else "" + + cached_source = (self.project.manifest.sources or {}).get(source_id) + assert cached_source is not None + missing_source_text = cached_source.content in (None, "") + + # NOTE: Have to handle this case separately because otherwise + # ethpm_types attempts to fetch content. + if missing_source_text and content == "": + return False # Emptiness + elif missing_source_text: + return True # New source text when was previously empty. + + cached_checksum = cached_source.calculate_checksum() + checksum = compute_checksum(content.encode("utf8"), algorithm=cached_checksum.algorithm) + + # The file has not changed if the hashes equal (and thus 'is_compiled') + return checksum != cached_checksum.hash + + +class Dependency(BaseManager, ExtraAttributesMixin): + """ + A wrapper around a dependency. + Users will not create this class directly but access + them from ``project.dependencies``. + """ + + def __init__(self, api: DependencyAPI, project: Optional["ProjectManager"] = None): + self.api = api + # This is the base project using this dependency. + self.base_project = project or self.local_project + # When installed (and set, lazily), this is the dependency project. + self._installation: Optional["ProjectManager"] = None + self._tried_fetch = False + + @log_instead_of_fail(default="") + def __repr__(self) -> str: + pkg_id = self.package_id + + # Handle local dependencies better. + path = Path(pkg_id) + if path.exists(): + pkg_id = clean_path(Path(pkg_id)) + + return f"" + + def __hash__(self): + return hash(f"{self.package_id}@{self.version}") + + @only_raise_attribute_error + def __getattr__(self, name: str) -> Any: + return get_attribute_with_extras(self, name) + + def __ape_extra_attributes__(self) -> Iterator[ExtraModelAttributes]: + yield ExtraModelAttributes(name="project", attributes=lambda: self.project) + + def __eq__(self, other: Any) -> bool: + if not isinstance(other, Dependency): + # We can't handle this type. + # This line causes python to retry from the other end. + return NotImplemented + + return self.package_id == other.package_id and self.version == other.version + + @property + def name(self) -> str: + """ + The short-name of the dependency, used for remappings. + """ + return self.api.name + + @property + def package_id(self) -> str: + """ + The long-name of the dependency, used as an ID. + """ + return self.api.package_id + + @property + def version(self) -> str: + """ + The version of the dependency. Combined with the + package_id, you have a full identifier of the package. + """ + return self.api.version_id + + @property + def project(self) -> "ProjectManager": + """ + The "project" of the dependency, use like any other + project in Ape (compile and interact with its contracts). + """ + return self.install() + + @property + def _cache(self) -> "PackagesCache": + return self.base_project.dependencies.packages_cache + + @property + def project_path(self) -> Path: + return self._cache.get_project_path(self.package_id, self.version) + + @property + def manifest_path(self) -> Path: + return self._cache.get_manifest_path(self.package_id, self.version) + + @property + def api_path(self) -> Path: + return self._cache.get_api_path(self.package_id, self.version) + + @property + def uri(self) -> str: + """ + The dependency's URI for refreshing. + """ + return self.api.uri + + def install( + self, use_cache: bool = True, config_override: Optional[dict] = None + ) -> "ProjectManager": + """ + Install this dependency. + + Args: + use_cache (bool): To force a re-install, like a refresh, set this + to ``False``. + config_override (dict): Optionally change the configurtion during install. + + Returns: + :class:`~ape.managers.project.ProjectManager`: The resulting project, ready + for compiling. + """ + config_override = {**(self.api.config_override or {}), **(config_override or {})} + project = None + did_fetch = False + + if self._installation is not None and use_cache: + if config_override: + self._installation.reconfigure(**config_override) + + return self._installation + + elif (not self.project_path.is_dir()) or not use_cache: + unpacked = False + if use_cache and self.manifest_path.is_file(): + # Attempt using sources from manifest. This may happen + # if having deleted dependencies but not their manifests. + man = PackageManifest.model_validate_json(self.manifest_path.read_text()) + if man.sources: + self.project_path.mkdir(parents=True, exist_ok=True) + man.unpack_sources(self.project_path) + unpacked = True + + # Either never fetched, it is missing but present in manifest, or we are forcing. + if not unpacked and not self._tried_fetch: + logger.debug(f"Fetching {self.api.package_id} {self.api.version_id}") + # No sources found! Fetch the project. + shutil.rmtree(self.project_path, ignore_errors=True) + self.project_path.parent.mkdir(parents=True, exist_ok=True) + self._tried_fetch = True + + try: + self.api.fetch(self.project_path) + except Exception as err: + raise ProjectError(f"Fetching failed: {err}") + + did_fetch = True + + # Reset global tried-fetch if it succeeded, so it can refresh + # if needbe. + self._tried_fetch = False + + # Set name / version for the project, if it needs. + if "name" not in config_override: + config_override["name"] = self.api.name + if "version" not in config_override: + config_override["version"] = self.api.version_id + + if self.project_path.is_dir(): + paths = get_all_files_in_directory(self.project_path) + + # Check if given only a manifest. + if len(paths) == 1: + suffix = get_full_extension(paths[0]) + if suffix == ".json": + path = paths[0] + try: + manifest = PackageManifest.model_validate_json(path.read_text()) + except Exception: + # False alarm. + pass + else: + # Using a manifest project, unless this is just emptiness. + if ( + manifest.sources + or manifest.contract_types + or manifest.name + or manifest.version + ): + project = Project.from_manifest( + manifest, config_override=config_override + ) + + if project is None: + # Using an unpacked local-project. + project = LocalProject( + self.project_path, + manifest_path=self.manifest_path, + config_override=config_override, + ) + + elif self.manifest_path.is_file(): + # Manifest-only project with manifest populated and not project-dir. + project = Project.from_manifest(self.manifest_path, config_override=config_override) + + else: + raise ProjectError("Project install failed.") + + # Cache for next time. + self._installation = project + + # Also, install dependencies of dependencies, if fetching for the + # first time. + if did_fetch: + spec = project.dependencies._get_specified(use_cache=use_cache) + list(spec) + + return project + + def uninstall(self): + self._cache.remove(self.package_id, self.version) + self._installation = None + + def compile( + self, use_cache: bool = True, config_override: Optional[dict] = None + ) -> dict[str, ContractContainer]: + """ + Compile a dependency. + + Args: + use_cache (bool): Set to ``False`` to force a re-compile. + config_override (Optional[dict]): Optionall override the configuration, + which may be needed for compiling. + + Returns: + dict[str, :class:`~ape.contracts.ContractContainer`] + """ + override = {**self.api.config_override, **(config_override or {})} + self.api.config_override = override + if override: + # Ensure is using most up-to-date config override. + self.project.reconfigure(**override) + self._cache.cache_api(self.api) + + return self.project.load_contracts(use_cache=use_cache) + + def unpack(self, path: Path) -> Iterator["Dependency"]: + """ + Move dependencies into a .cache folder. Also unpacks + dependencies of dependencies. Ideal for tmp-projects. + + Args: + path (Path): The destination where to unpack sources. + + Returns: + Iterates over every dependency unpacked, so the user + knows the dependencies of dependencies. + """ + yield from self._unpack(path, set()) + + def _unpack(self, path: Path, tracked: set[str]) -> Iterator["Dependency"]: + key = self.package_id + if key in tracked: + return + + tracked.add(key) + + # NOTE: Don't do the same weird path-ify thing for + # the in-contracts .cache folder. Short names work here. + folder = path / self.name / self.version + + if not folder.is_dir(): + # Not yet unpacked. + contracts_folder_id = get_relative_path( + self.project.contracts_folder, self.project.path + ) + destination = folder / contracts_folder_id + destination.parent.mkdir(parents=True, exist_ok=True) + shutil.copytree(self.project.contracts_folder, destination) + + # self is done! + yield self + + # Unpack dependencies of dependencies (if they aren't already). + for dependency in self.project.dependencies.specified: + for unpacked_dep in dependency._unpack(path, tracked=tracked): + yield unpacked_dep + + +def _get_cache_suffix(package_id: str, version: str, suffix: str = "") -> Path: + package_id_name = package_id.replace("/", "_") + version_name = f"{version.replace('.', '_').replace('/', '_')}{suffix}" + return Path(package_id_name) / version_name + + +class PackagesCache(ManagerAccessMixin): + def __init__(self): + self._api_cache: dict[str, DependencyAPI] = {} + self._project_cache: dict[str, "ProjectManager"] = {} + + def __contains__(self, package: str) -> bool: + return package in self.installed_package_names + + @property + def root(self) -> Path: + return self.config_manager.DATA_FOLDER / "packages" + + @property + def projects_folder(self) -> Path: + return self.root / "projects" + + @property + def api_folder(self) -> Path: + return self.root / "api" + + @property + def manifests_folder(self) -> Path: + return self.root / "manifests" + + @property + def installed_package_names(self) -> set[str]: + return {x.name for x in self.projects_folder.iterdir()} + + def get_project_path(self, package_id: str, version: str) -> Path: + """ + Path to the dir of the cached project. + """ + return self.projects_folder / _get_cache_suffix(package_id, version) + + def get_manifest_path(self, package_id: str, version: str) -> Path: + """ + Path to the manifest filepath the dependency project uses + as a base. + """ + return self.manifests_folder / _get_cache_suffix(package_id, version, suffix=".json") + + def get_api_path(self, package_id: str, version: str) -> Path: + """ + Path to the manifest filepath the dependency project uses + as a base. + """ + return self.api_folder / _get_cache_suffix(package_id, version, suffix=".json") + + def cache_api(self, api: DependencyAPI) -> Path: + """ + Cache a dependency JSON for usage outside of the project. + """ + api_file = self.get_api_path(api.package_id, api.version_id) + api_file.parent.mkdir(parents=True, exist_ok=True) + api_file.unlink(missing_ok=True) + + # NOTE: All the excludes only for sabing disk space. + json_text = api.model_dump_json( + by_alias=True, + mode="json", + exclude_none=True, + exclude_unset=True, + exclude_defaults=True, + ) + + api_file.write_text(json_text) + return api_file + + def remove(self, package_id: str, version: str): + project_path = self.get_project_path(package_id, version) + if project_path.is_dir(): + # Delete version directory (containing the project files) + shutil.rmtree(project_path) + if ( + project_path.parent.is_dir() + and len([x for x in project_path.parent.iterdir() if x.is_dir()]) == 0 + ): + # Delete empty dependency root folder. + shutil.rmtree(project_path.parent) + + api_file = self.get_api_path(package_id, version) + api_file.unlink(missing_ok=True) + manifest_file = self.get_manifest_path(package_id, version) + manifest_file.unlink(missing_ok=True) + + +class DependencyManager(BaseManager): + """ + Manage dependencies for an Ape project. + Note: Every project gets its own dependency-set (DependencyManager). + """ + + # Class-level cache + _cache: dict[DependencyAPI, Dependency] = {} + + def __init__(self, project: Optional["ProjectManager"] = None): + self.project = project or self.local_project + + @log_instead_of_fail(default="") + def __repr__(self) -> str: + result = "" if project_id else f"{result}>" + + def __iter__(self) -> Iterator[Dependency]: + yield from self.specified + + def __len__(self) -> int: + # NOTE: Using the config value keeps use lazy and fast. + return len(self.project.config.dependencies) + + def __getitem__(self, name: str) -> dict[str, "ProjectManager"]: + result: dict[str, "ProjectManager"] = {} + for dependency in self.installed: + if dependency.name != name: + continue + + result[dependency.version] = dependency.project + + if result: + return result + + # Try installing specified. + if versions := {d.version: d.project for d in self._get_specified(name=name)}: + return versions + + return {} + + def __contains__(self, name: str) -> bool: + for dependency in self.installed: + if name == dependency.name: + return True + + return False + + def keys(self) -> Iterator[str]: + _ = [x for x in self.specified] # Install specified if needed. + for dependency in self.installed: + yield dependency.name + + def items(self) -> Iterator[tuple[str, dict[str, "ProjectManager"]]]: + _ = [x for x in self.specified] # Install specified if needed. + for dependency in self.installed: + yield dependency.name, {dependency.version: dependency.project} + + def values(self) -> Iterator[dict[str, "ProjectManager"]]: + _ = [x for x in self.specified] # Install specified if needed. + for dependency in self.installed: + yield {dependency.version: dependency.project} + + @property + def config(self) -> ApeConfig: + return self.project.config + + @cached_property + def packages_cache(self) -> PackagesCache: + """ + Where all dependency files go. + """ + return PackagesCache() + + @cached_property + def types(self) -> dict[str, type[DependencyAPI]]: + dependency_classes: dict[str, type[DependencyAPI]] = {} + + for _, (config_key, dependency_class) in self.plugin_manager.dependencies: + assert issubclass(dependency_class, DependencyAPI) # For mypy + dependency_classes[config_key] = dependency_class + + return dependency_classes + + @property + def specified(self) -> Iterator[Dependency]: + """ + All dependencies specified in the config. + """ + yield from self._get_specified() + + def _get_specified( + self, + use_cache: bool = True, + config_override: Optional[dict] = None, + name: Optional[str] = None, + version: Optional[str] = None, + ) -> Iterator[Dependency]: + for api in self.config_apis: + if (name is not None and api.name != name and api.package_id != name) or ( + version is not None and api.version_id != version + ): + continue + + # Ensure the dependency API data is known. + dependency = self.add(api) + + try: + dependency.install(use_cache=use_cache, config_override=config_override) + except ProjectError: + # This dependency has issues. Let's wait to until the user + # actually requests something before failing, and + # yield an uninstalled version of the specified dependency for + # them to fix. + pass + + yield dependency + + @property + def config_apis(self) -> Iterator[DependencyAPI]: + for data in self.config.dependencies: + yield self.decode_dependency(**data) + + @property + def installed(self) -> Iterator[Dependency]: + """ + All installed dependencies, regardless of their project + affiliation. + """ + if not self.packages_cache.api_folder.is_dir(): + return + + for package_versions in self.packages_cache.api_folder.iterdir(): + if not package_versions.is_dir(): + continue + + for api_file in package_versions.iterdir(): + if not api_file.is_file(): + continue + + data = json.loads(api_file.read_text()) + api = self.decode_dependency(**data) + if api.name == self.project.name: + # Don't include self as a dependency + # (happens when compiling a dependency) + continue + + yield self._create_dependency(api) + + @property + def uri_map(self) -> dict[str, Url]: + """ + A map of URIs for filling out the dependencies + field in a package manifest. + NOTE: Only uses specified dependencies! Make sure + you are specifying all the needed dependencies in your + config file instead of only relying on globally-installed + packages. + """ + return {dep.name: Url(dep.api.uri) for dep in self.specified} + + def get( + self, name: str, version: str, allow_install: bool = True + ) -> Optional["ProjectManager"]: + if dependency := self._get(name, version, allow_install=allow_install, checked=set()): + return dependency.project + + return None + + def _get( + self, name: str, version: str, allow_install: bool = True, checked: Optional[set] = None + ) -> Optional[Dependency]: + checked = checked or set() + + # Check already-installed first to prevent having to install anything. + name_matches = [] + for dependency in self.installed: + if dependency.package_id == name and dependency.version == version: + # If matching package-id, use that no matter what. + return dependency + + elif dependency.name == name and dependency.version == version: + name_matches.append(dependency) + + if name_matches: + if len(name_matches) == 1: + # Return match-by-name after full loop in case was checking by + # package ID, which is more precise. + return name_matches[0] + + if name_matches: + return name_matches[0] + + # Was not found in this project's dependencies. + checked.add(self.project.project_id) + + deps = [*self.installed] + if allow_install: + deps.extend([*self.specified]) + + # Still not found - check dependencies of dependencies. + # NOTE: Purposely checking all specified first. + for dependency in deps: + try: + sub_project = dependency.project + except ProjectError: + continue + + key = sub_project.project_id + if key in checked: + continue + + checked.add(key) + if sub_dependency := sub_project.dependencies._get( + name, version, checked=checked, allow_install=allow_install + ): + return sub_dependency + + return None + + def get_versions(self, name: str) -> Iterator[Dependency]: + """ + Get all installed versions of a dependency. + + Args: + name (str): The name of the dependency. + + Returns: + Iterator[:class:`~ape.managers.project.Dependency`] + """ + # First, check specified. Note: installs if needed. + versions_yielded = set() + for dependency in self._get_specified(name=name): + if dependency.version in versions_yielded: + continue + + yield dependency + versions_yielded.add(dependency.version) + + # Yield any remaining installed. + for dependency in self.installed: + if dependency.name == name: + if dependency.version in versions_yielded: + continue + + yield dependency + versions_yielded.add(dependency.version) + + def _create_dependency(self, api: DependencyAPI) -> Dependency: + if api in self._cache: + return self._cache[api] + + dependency = Dependency(api, project=self.project) + self._cache[api] = dependency + return dependency + + def get_dependency( + self, dependency_id: str, version: str, allow_install: bool = True + ) -> Dependency: + """ + Get a dependency. + + Args: + dependency_id (str): The package ID of the dependency. You can also + provide the short-name of the dependency. + version (str): The version identifier. + allow_install (bool): If the dependendency API is known but the + project is not installed, attempt to install it. Defaults to ``True``. + + Raises: + :class:`~ape.exceptions.ProjectError`: When unable to find the + dependency. + + Returns: + class:`~ape.managers.project.Dependency` + """ + version_options = [version] + if version.startswith("v"): + version_options.append(version[1:]) + elif version and version[0].isnumeric(): + # All try a v-prefix if using a numeric-like version. + version_options.append(f"v{version}") + + # Also try the lower of the name + # so ``OpenZeppelin`` would give you ``openzeppelin``. + id_options = [dependency_id] + if dependency_id.lower() != dependency_id: + # Ensure we try dependency_id without lower first. + id_options.append(dependency_id.lower()) + + def try_get(): + for dep_id in id_options: + for v in version_options: + # NOTE: `allow_install=False` here because we install + # _after_ exhausting all options. + if dependency := self._get(dep_id, v, allow_install=False): + return dependency + + if res := try_get(): + return res + + if allow_install: + # Try installing first. + self.install() + + if res := try_get(): + return res + + raise ProjectError(f"Dependency '{dependency_id}' with version '{version}' not found.") + + def decode_dependency(self, **item: Any) -> DependencyAPI: + """ + Decode data into a :class:`~ape.api.projects.DependencyAPI`. + + Args: + **item: The same data you put in your ``dependencies:`` config. + + Raises: + :class:`~ape.exceptions.ProjectError`: When unable to handle the + given API data. + + Returns: + :class:`~ape.api.projects.DependencyAPI` + """ + for key, cls in self.types.items(): + if key in item: + return cls.model_validate(item) + + name = item.get("name") or json.dumps(item) # NOTE: Using 'or' for short-circuit eval + raise ProjectError( + f"No installed dependency API that supports '{name}'. " + f"Keys={', '.join([x for x in item.keys()])}" + ) + + def add(self, dependency: Union[dict, DependencyAPI]) -> Dependency: + """ + Add the dependency API data. This sets up a dependency such that + it can be fetched. + + Args: + dependency (dict | :class:`~ape.api.projects.DependencyAPI`): The + API data necessary for fetching the dependency. + + Returns: + class:`~ape.managers.project.Dependency` + """ + + api = self.decode_dependency(**dependency) if isinstance(dependency, dict) else dependency + self.packages_cache.cache_api(api) + + # Avoid infinite loop where Ape re-tries installing the dependency + # again and again in error situations. + install_if_not_found = False + + try: + return self.get_dependency( + api.package_id, + api.version_id, + allow_install=install_if_not_found, + ) + except ProjectError: + raise # Avoids bottom except. + except Exception as err: + raise ProjectError( + f"Failed to add dependency {api.name}@{api.version_id}: {err}" + ) from err + + def install(self, **dependency: Any) -> Union[Dependency, list[Dependency]]: + """ + Install dependencies. + + Args: + **dependency: Dependency data, same to what you put in `dependencies:` config. + When excluded, installs all project-specified dependencies. Also, use + ``use_cache=False`` to force a re-install. + + Returns: + :class:`~ape.managers.project.Dependency` when given data else a list + of them, one for each specified. + """ + use_cache: bool = dependency.pop("use_cache", False) + if dependency: + return self.install_dependency(dependency, use_cache=use_cache) + else: + # Install all project's. + result: list[Dependency] = [] + + # Log the errors as they happen but don't crash the full install. + for dep in self._get_specified(): + result.append(dep) + + return result + + def install_dependency( + self, + dependency_data: Union[dict, DependencyAPI], + use_cache: bool = True, + config_override: Optional[dict] = None, + ) -> Dependency: + dependency = self.add(dependency_data) + dependency.install(use_cache=use_cache, config_override=config_override) + return dependency + + def unpack(self, base_path: Path, cache_name: str = ".cache"): + """ + Move dependencies into a .cache folder. + Ideal for isolated, temporary projects. + + Args: + base_path (Path): The target path. + cache_name (str): The cache folder name to create + at the target path. Defaults to ``.cache`` because + that is what is what ``ape-solidity`` uses. + """ + cache_folder = base_path / cache_name + for dependency in self.specified: + dependency.unpack(cache_folder) + + +def _load_manifest(path: Union[Path, str]) -> PackageManifest: + path = Path(path) + return ( + PackageManifest.model_validate_json(path.read_text()) + if path.is_file() + else PackageManifest() + ) + + +class ProjectManager(ExtraAttributesMixin, BaseManager): + """ + The root project manager in Ape that can also create other projects. + """ + + def __new__(cls, *args, **kwargs): + if cls is ProjectManager: + # Using `ape.Project(path)`. + return super(cls, LocalProject).__new__(LocalProject) + + elif len(args) >= 1 and isinstance(args[0], PackageManifest): + # Using `ape.Project.from_manifest()`. + return super(ProjectManager, Project).__new__(Project) + + else: + # Using LocalProject.__init__ (internal). + return super(ProjectManager, LocalProject).__new__(LocalProject) + + @log_instead_of_fail(default="") + def __repr__(self) -> str: + return repr(self._project) + + @only_raise_attribute_error + def __getattr__(self, name: str) -> Any: + return get_attribute_with_extras(self, name) + + def __ape_extra_attributes__(self) -> Iterator[ExtraModelAttributes]: + # NOTE: This causes attributes to use the singleton local project. + # However, you can still create additional projects via the + # factory mixin methods. + yield ExtraModelAttributes(name="contracts", attributes=lambda: self._project) + + @cached_property + def _project(self) -> "LocalProject": + return LocalProject(self.path) + + @classmethod + def from_manifest( + cls, manifest: Union[PackageManifest, Path, str], config_override: Optional[dict] = None + ) -> "Project": + """ + Create an Ape project using only a manifest. + + Args: + manifest (Union[PackageManifest, Path, str]): Either a manifest or a + path to a manifest file. + config_override (Optional[Dict]): Optionally provide a config override. + + Returns: + :class:`~ape.managers.project.ProjectManifest` + """ + return Project.from_manifest(manifest, config_override=config_override) + + @classmethod + @contextmanager + def create_temporary_project( + cls, config_override: Optional[dict] = None + ) -> Iterator["LocalProject"]: + with create_tempdir() as path: + yield LocalProject(path, config_override=config_override) + + +class Project(ProjectManager): + """ + Base class for projects. Projects can come from either + manifests or local source-paths. + """ + + def __init__(self, manifest: PackageManifest, config_override: Optional[dict] = None): + self._manifest = manifest + self._config_override = config_override or {} + + @log_instead_of_fail(default="") + def __repr__(self) -> str: + name = f" {self.project_id}" + # NOTE: 'Project' is meta for 'ProjectManager' (mixin magic). + return f"" + + @only_raise_attribute_error + def __getattr__(self, item: str) -> Any: + return get_attribute_with_extras(self, item) + + def __contains__(self, item): + return item in self.contracts + + @property + def name(self) -> str: + if name := self.config.get("name"): + return name + elif name := self.manifest.name: + return name + + return f"unknown-project-{random.randint(100_000, 999_999)}" + + @property + def version(self) -> str: + if version := self._config_override.get("version"): + return version + + elif version := self.manifest.version: + return version + + else: + return "0.1.0" + + @property + def project_id(self) -> str: + return f"{self.name}_{self.version}" + + @property + def is_compiled(self) -> bool: + """ + True if the project is compiled at all. Does not + ensure the compilation is up-to-date. + """ + return (self._manifest.contract_types or None) is not None + + @classmethod + def from_manifest( + cls, manifest: Union[PackageManifest, Path, str], config_override: Optional[dict] = None + ) -> "Project": + config_override = config_override or {} + manifest = _load_manifest(manifest) if isinstance(manifest, (Path, str)) else manifest + return Project(manifest, config_override=config_override) + + def __ape_extra_attributes__(self) -> Iterator[ExtraModelAttributes]: + extras = ( + ExtraModelAttributes( + name="contracts", + attributes=lambda: self.contracts, + include_getitem=True, + ), + ExtraModelAttributes( + name="manifest", + attributes=lambda: self.manifest, + include_getitem=True, + include_getattr=False, # avoids contract-type confusion. + ), + ) + + # If manifest is not compiled, don't search for contracts right + # away to delay compiling if unnecessary. + yield from extras if self.manifest.contract_types else reversed(extras) + + @property + def manifest(self) -> PackageManifest: + return self._manifest + + @cached_property + def dependencies(self) -> DependencyManager: + """ + Project dependencies. + """ + return DependencyManager(project=self) + + @cached_property + def config(self) -> ApeConfig: + return ApeConfig.from_manifest(self.manifest, **self._config_override) + + @contextmanager + def isolate_in_tempdir(self, **config_override) -> Iterator["LocalProject"]: + """ + Clone this project to a temporary directory and return + its project. + """ + config_override = config_override or {} + name = config_override.get("name", self.name) + with create_tempdir(name=name) as path: + yield self.unpack(path, config_override=config_override) + + @contextmanager + def temp_config(self, **config): + existing_overrides = self._config_override or {} + self.reconfigure(**config) + yield + self.reconfigure(**existing_overrides) + + def get(self, name: str) -> Optional[ContractContainer]: + return self.contracts.get(name) + + def unpack(self, destination: Path, config_override: Optional[dict] = None) -> "LocalProject": + """ + Unpack the project to a location using the information + from the manifest. Converts a manifest-based project + to a local one. + """ + config_override = {**self._config_override, **(config_override or {})} + sources = self.sources or {} + + # Unpack contracts. + for source_id, src in sources.items(): + path = destination / source_id + path.parent.mkdir(parents=True, exist_ok=True) + path.write_text(str(src.content)) + + # Unpack config file. + self.config.write_to_disk(destination / "ape-config.yaml") + + return LocalProject(destination, config_override=config_override) + + def update_manifest(self, **kwargs): + """ + Change manifest values. Overwrites. + + Args: + **kwargs: Top-level manifest attributes. + """ + for k, v in kwargs.items(): + setattr(self._manifest, k, v) + + def add_compiler_data(self, compiler_data: Iterable[Compiler]) -> list[Compiler]: + """ + Add compiler data to the existing cached manifest. + + Args: + compiler_data (Iterable[``ethpm_types.Compiler``]): Compilers to add. + + Returns: + List[``ethpm_types.source.Compiler``]: The full list of compilers. + """ + # Validate given data. + given_compilers = set(compiler_data) + num_compilers = len([x for x in compiler_data]) + if len(given_compilers) != num_compilers: + raise ProjectError( + f"`{self.add_compiler_data.__name__}()` was given multiple of the same compiler. " + "Please filter inputs." + ) + + # Filter out given compilers without contract types. + given_compilers = {c for c in given_compilers if c.contractTypes} + if len(given_compilers) != num_compilers: + logger.warning( + f"`{self.add_compiler_data.__name__}()` given compilers without contract types. " + "Ignoring these inputs." + ) + + for given_compiler in given_compilers: + other_given_compilers = [c for c in given_compilers if c != given_compiler] + contract_types_from_others = [ + n for c in other_given_compilers for n in (c.contractTypes or []) + ] + + collisions = { + n for n in (given_compiler.contractTypes or []) if n in contract_types_from_others + } + if collisions: + collide_str = ", ".join(collisions) + raise ProjectError(f"Contract type(s) '{collide_str}' collision across compilers.") + + new_types = [n for c in given_compilers for n in (c.contractTypes or [])] + + # Merge given compilers with existing compilers. + existing_compilers = self.manifest.compilers or [] + + # Existing compilers remaining after processing new compilers. + remaining_existing_compilers: list[Compiler] = [] + + for existing_compiler in existing_compilers: + find_iter = iter(x for x in compiler_data if x == existing_compiler) + + if matching_given_compiler := next(find_iter, None): + # Compiler already exists in the system, possibly with different contract types. + # Merge contract types. + matching_given_compiler.contractTypes = list( + { + *(existing_compiler.contractTypes or []), + *(matching_given_compiler.contractTypes or []), + } + ) + # NOTE: Purposely we don't add the exising compiler back, + # as it is the same as the given compiler, (meaning same + # name, version, and settings), and we have + # merged their contract types. + + continue + + else: + # Filter out contract types added now under a different compiler. + existing_compiler.contractTypes = [ + c for c in (existing_compiler.contractTypes or []) if c not in new_types + ] + + # Clear output selection for new types, since they are present in the new compiler. + if existing_compiler.settings and "outputSelection" in existing_compiler.settings: + new_src_ids = { + (self.manifest.contract_types or {})[x].source_id + for x in new_types + if x in (self.manifest.contract_types or {}) + and (self.manifest.contract_types or {})[x].source_id is not None + } + existing_compiler.settings["outputSelection"] = { + k: v + for k, v in existing_compiler.settings["outputSelection"].items() + if k not in new_src_ids + } + + # Remove compilers without contract types. + if existing_compiler.contractTypes: + remaining_existing_compilers.append(existing_compiler) + + # Use Compiler.__hash__ to remove duplicated. + # Also, sort for consistency. + compilers = sorted( + list({*remaining_existing_compilers, *compiler_data}), + key=lambda x: f"{x.name}@{x.version}", + ) + self.update_manifest(compilers=compilers) + return self._manifest.compilers or compilers # for mypy. + + @property + def contracts(self) -> dict[str, ContractContainer]: + return self.load_contracts() + + @property + def sources(self) -> dict[str, Source]: + return self.manifest.sources or {} + + def load_contracts( + self, *source_ids: Union[str, Path], use_cache: bool = True + ) -> dict[str, ContractContainer]: + result = { + ct.name: ct + for ct in ((self.manifest.contract_types or {}) if use_cache else {}).values() + if ct.name + } + compiled_source_ids = {ct.source_id for ct in result.values() if ct.source_id} + source_iter: Iterable = source_ids or list(self.manifest.sources or {}) + source_iter = [f"{x}" for x in source_iter] + missing_sources = set() + for src_id in source_iter: + if src_id not in compiled_source_ids: + missing_sources.add(src_id) + + missing_sources_can_compile = { + s + for s in missing_sources + if get_full_extension(Path(s)) in self.compiler_manager.registered_compilers + } + if missing_sources_can_compile: + # Attempt to compile to get missing sources. + with self.isolate_in_tempdir() as temp_project: + new_contracts = { + n: c.contract_type + for n, c in temp_project.load_contracts(*missing_sources_can_compile).items() + } + + if new_contracts: + self._update_contract_types(new_contracts) + result = {**result, **new_contracts} + + return {n: ContractContainer(ct) for n, ct in result.items()} + + def _update_contract_types(self, contract_types: dict[str, ContractType]): + contract_types = {**(self._manifest.contract_types or {}), **contract_types} + sources = dict(self.sources.items()) + self.update_manifest(contract_types=contract_types, sources=sources) + + def reconfigure(self, **overrides): + """ + Change a project's config. + + Args: + **overrides: Config key-value pairs. Completely overridesfe + existing. + """ + + if "config" in self.__dict__: + # Delete cached property. + del self.__dict__["config"] + + self._config_override = overrides + _ = self.config + + def extract_manifest(self) -> PackageManifest: + return self.manifest + + def clean(self): + self._manifest.contract_types = None + + +class DeploymentManager(ManagerAccessMixin): + def __init__(self, project: "LocalProject"): + self.project = project + + @property + def cache_folder(self) -> Path: + return self.config_manager.DATA_FOLDER / "deployments" + + @property + def instance_map(self) -> dict[str, dict[str, EthPMContractInstance]]: + """ + The mapping needed for deployments publishing in an ethpm manifest. + """ + result: dict[str, dict[str, EthPMContractInstance]] = {} + if not self.cache_folder.is_dir(): + return result + + for ecosystem_path in self.cache_folder.iterdir(): + if not ecosystem_path.is_dir(): + continue + + chain = ecosystem_path.name + for deployment in ecosystem_path.iterdir(): + if not self._is_deployment(deployment): + continue + + instance = EthPMContractInstance.model_validate_json(deployment.read_text()) + if not instance.block: + continue + + bip122_uri = f"blockchain://{chain}/block/{instance.block.replace('0x', '')}" + if bip122_uri in result: + result[bip122_uri][deployment.name] = instance + else: + result[bip122_uri] = {deployment.name: instance} + + return result + + def track(self, contract: ContractInstance): + """ + Indicate that a contract deployment should be included in the package manifest + upon publication. + + **NOTE**: Deployments are automatically tracked for contracts. However, only + deployments passed to this method are included in the final, publishable manifest. + + Args: + contract (:class:`~ape.contracts.base.ContractInstance`): The contract + to track as a deployment of the project. + """ + + if self.provider.network.is_dev: + raise ProjectError("Can only publish deployments on a live network.") + + elif not (contract_name := contract.contract_type.name): + raise ProjectError("Contract name required when publishing.") + + receipt = None + err_msg = f"Contract '{contract_name}' transaction receipt is unknown." + try: + if creation := contract.creation_metadata: + receipt = creation.receipt + + except ChainError as err: + raise ProjectError(err_msg) from err + + if not receipt: + raise ProjectError(err_msg) + + block_number = receipt.block_number + block_hash_bytes = self.provider.get_block(block_number).hash + if not block_hash_bytes: + # Mostly for mypy, not sure this can ever happen. + raise ProjectError( + f"Block hash containing transaction for '{contract_name}' " + f"at block_number={block_number} is unknown." + ) + + block_hash = block_hash_bytes.hex() + contract_type_str = ( + f"{contract.contract_type.source_id}:{contract_name}" + if contract.contract_type.source_id + else contract_name + ) + artifact = EthPMContractInstance( + address=contract.address, + block=block_hash, + contractType=contract_type_str, + transaction=cast(HexStr, contract.txn_hash), + runtimeBytecode=contract.contract_type.runtime_bytecode, + ) + + if not (block_0_hash := self.provider.get_block(0).hash): + raise ProjectError("Chain missing hash for block 0 (required for BIP-122 chain ID).") + + bip122_chain_id = f"{block_0_hash.hex()[2:]}" + deployments_folder = self.cache_folder / bip122_chain_id + deployments_folder.mkdir(exist_ok=True, parents=True) + destination = deployments_folder / f"{contract_name}.json" + + if destination.is_file(): + logger.debug("Deployment already tracked. Re-tracking.") + # NOTE: missing_ok=True to handle race condition. + destination.unlink(missing_ok=True) + + destination.write_text(artifact.model_dump_json()) + + def __iter__(self) -> Iterator[EthPMContractInstance]: + """ + Get project deployments. + + Returns: + Iterator[ethpm_types.ContractInstance] + """ + if not self.cache_folder.is_dir(): + return + + for ecosystem_path in self.cache_folder.iterdir(): + if not ecosystem_path.is_dir(): + continue + + for deployment in ecosystem_path.iterdir(): + if not self._is_deployment(deployment): + continue + + yield EthPMContractInstance.model_validate_json(deployment.read_text()) + + def _is_deployment(self, path: Path) -> bool: + return ( + path.is_file() + and get_full_extension(path) == ".json" + and path.stem in (self.project.manifest.contract_types or {}) + ) + + +class LocalProject(Project): + """ + Manage project(s). + + Usage example:: + + from ape import project, Project + + # Interact with local project contracts. + project.MyToken.deploy(sender=...) + + # Interact with projects located elsewhere. + other_project = Project("Path/somewhere/else") + other_project.TokenSwapper.deploy(sender=...) + + """ + + def __init__( + self, + path: Union[Path, str], + manifest_path: Optional[Path] = None, + config_override: Optional[dict] = None, + ) -> None: + # A local project uses a special manifest. + self.path = Path(path).resolve() + self.manifest_path = manifest_path or self.path / ".build" / "__local__.json" + manifest = self.load_manifest() + + # NOTE: Set this before super() because needed for self.config read. + self._config_override = config_override or {} + + super().__init__(manifest, config_override=self._config_override) + + # NOTE: Avoid pointlessly adding info to the __local__ manifest. + # This is mainly for dependencies. + if self.manifest_path.stem != "__local__" and not manifest.sources: + # Perform initial manifest updates. + data: dict = {} + if ( + self.name + and self.version + and (self.version != self.manifest.version or self.name != self.manifest.name) + ): + # Ensure name / version is in the manifest correctly. + data["name"] = self.name.lower().replace("_", "-") + data["version"] = self.version + + try: + src_dict = dict(self.sources.items()) + except Exception as err: + logger.error(str(err)) + else: + if src_dict and not self.manifest.sources: + # Sources file can be added. + # NOTE: Is also updated after compile changes and + # before publishing. + data["sources"] = src_dict + + if data: + self.update_manifest(**data) + + @log_instead_of_fail(default="") + def __repr__(self): + path = f" {clean_path(self.path)}" + # NOTE: 'Project' is meta for 'ProjectManager' (mixin magic). + return f"" + + def __contains__(self, name: str) -> bool: + return name in dir(self) or name in self.contracts + + @only_raise_attribute_error + def __getattr__(self, item: str) -> Any: + try: + return get_attribute_with_extras(self, item) + except AttributeError as err: + message = getattr(err, "message", str(err)) + did_append = False + + all_files = get_all_files_in_directory(self.contracts_folder) + for path in all_files: + # Possibly, the user was trying to use a file name instead. + if path.stem != item: + continue + + message = ( + f"{message} However, there is a source file named '{path.name}', " + "did you mean to reference a contract name from this source file?" + ) + did_append = True + break + + # Possibly, the user does not have compiler plugins installed or working. + missing_exts = set() + for path in all_files: + if ext := get_full_extension(path): + if ext not in self.compiler_manager.registered_compilers: + missing_exts.add(ext) + + if missing_exts: + start = "Else, could" if did_append else "Could" + message = ( + f"{message} {start} it be from one of the " + "missing compilers for extensions: " + f'{", ".join(sorted(missing_exts))}?' + ) + + err.args = (message,) + raise # The same exception (keep the stack the same height). + + @property + def _contract_sources(self) -> list[ContractSource]: + sources = [] + for contract in self.contracts.values(): + if contract_src := self._create_contract_source(contract.contract_type): + sources.append(contract_src) + + return sources + + @cached_property + def _deduced_contracts_folder(self) -> Path: + # NOTE: This helper is only called if not configured and not ordinary. + if not self.path.is_dir(): + # Not even able to try. + return self.path + + common_names = ("contracts", "sources", "src") + for name in common_names: + if (self.path / name).is_dir(): + return self.path / name + + exts_not_json = { + k for k in self.compiler_manager.registered_compilers.keys() if k != ".json" + } + if not exts_not_json: + # Not really able to look anywhere else. + return self.path + + def find_in_subs(pth): + for sub_directory in pth.iterdir(): + if not sub_directory.is_dir(): + continue + + if directory := _find_directory_with_extension(sub_directory, exts_not_json): + return directory + + if res := find_in_subs(self.path): + return res + + if _find_directory_with_extension(self.path, exts_not_json, recurse=False): + return self.path + + # Doesn't exist. Return non-existent default directory. + return self.path / "contracts" + + @cached_property + def project_api(self) -> ProjectAPI: + """ + The 'type' of project this is, such as an Ape project + or a Brownie project (or something else). + """ + project_classes: list[type[ProjectAPI]] = [ + t[1] for t in list(self.plugin_manager.projects) # type: ignore + ] + plugins = [t for t in project_classes if not issubclass(t, ApeProject)] + for api in plugins: + if instance := api.attempt_validate(path=self.path): + return instance + + # Try 'ApeProject' last, in case there was a more specific one earlier. + if instance := ApeProject.attempt_validate(path=self.path): + return instance + + raise ProjectError(f"'{self.path.name}' is not recognized as a project.") + + @property + def name(self) -> str: + if name := self.config.get("name"): + return name + elif name := self.manifest.name: + return name + + return self.path.name.replace("_", "-").lower() + + @cached_property + def config(self) -> ApeConfig: + """ + The project configuration (including global defaults). + """ + # NOTE: Accessing the config this way allows us + # to be a different project than the cwd project. + project_config = self.project_api.extract_config(**self._config_override) + return self.config_manager.merge_with_global(project_config) + + @cached_property + def contracts(self) -> ContractManager: # type: ignore[override] + """ + Container for managing contracts from local sources. + """ + return ContractManager(self, self.sources) + + @property + def contracts_folder(self) -> Path: + """ + The root contract source directory. + """ + if sub_path := self.config.contracts_folder: + return self.path / sub_path + + return self._deduced_contracts_folder + + @cached_property + def deployments(self) -> DeploymentManager: + """ + Project deployment manager for adding and reading + deployments. + """ + return DeploymentManager(self) + + @property + def exclusions(self) -> set[str]: + """ + Source-file exclusion glob patterns. + """ + return {*self.config.compile.exclude, *SOURCE_EXCLUDE_PATTERNS} + + @cached_property + def interfaces_folder(self) -> Path: + """ + The root interface source directory. + """ + name = self.config.interfaces_folder + + for base in (self.path, self.contracts_folder): + path = base / name + if path.is_dir(): + return path + + # Defaults to non-existing path / interfaces + return self.path / name + + @property + def in_tempdir(self) -> bool: + """ + ``True`` when this project is in the temporary directory, + meaning existing only in the temporary directory + namespace. + """ + if not self.path: + return False + + return in_tempdir(self.path) + + @property + def manifest(self) -> PackageManifest: + # Reloads to handle changes from other ongoing sessions. + # If don't need a reload, use `._manifest` instead. + if self.manifest_path.is_file(): + reloaded = PackageManifest.model_validate_json(self.manifest_path.read_text()) + self._manifest = reloaded + + return self._manifest + + @property + def meta(self) -> PackageMeta: + """ + Metadata about the active project as per EIP + https://eips.ethereum.org/EIPS/eip-2678#the-package-meta-object + Use when publishing your package manifest. + """ + return self.config.meta + + @property + def scripts_folder(self) -> Path: + return self.path / "scripts" + + @cached_property + def sources(self) -> SourceManager: # type: ignore[override] + """ + All the sources in the project. + """ + return SourceManager( + self.path, lambda: self.contracts_folder, exclude_globs=self.exclusions + ) + + @property + def tests_folder(self) -> Path: + return self.path / "tests" + + @contextmanager + def isolate_in_tempdir(self, **config_override) -> Iterator["LocalProject"]: + """ + Clone this project to a temporary directory and return + its project.vers_settings["outputSelection"] + """ + if self.in_tempdir: + # Already in a tempdir. + if config_override: + self.reconfigure(**config_override) + + yield self + + else: + # Add sources to manifest memory, in case they are missing. + self._manifest.sources = dict(self.sources.items()) + with super().isolate_in_tempdir(**config_override) as project: + yield project + + def unpack(self, destination: Path, config_override: Optional[dict] = None) -> "LocalProject": + project = super().unpack(destination, config_override=config_override) + + # Unpack scripts folder. + if self.scripts_folder.is_dir(): + scripts_destination = destination / "scripts" + shutil.copytree(self.scripts_folder, scripts_destination, dirs_exist_ok=True) + + # Unpack tests folder. + if self.tests_folder.is_dir(): + tests_destination = destination / "tests" + shutil.copytree(self.tests_folder, tests_destination, dirs_exist_ok=True) + + # Unpack interfaces folder. + if self.interfaces_folder.is_dir(): + prefix = get_relative_path(self.interfaces_folder, self.path) + interfaces_destination = destination / prefix / self.config.interfaces_folder + interfaces_destination.parent.mkdir(parents=True, exist_ok=True) + shutil.copytree(self.interfaces_folder, interfaces_destination, dirs_exist_ok=True) + + return project + + def load_manifest(self) -> PackageManifest: + """ + Load a publish-able manifest. + + Returns: + ethpm_types.PackageManifest + """ + + if not self.manifest_path.is_file(): + return PackageManifest() + + try: + return _load_manifest(self.manifest_path) + except Exception as err: + logger.error(f"__local__.json manifest corrupted! Re-building.\nFull error: {err}.") + self.manifest_path.unlink(missing_ok=True) + return PackageManifest() + + def get_contract(self, name: str) -> Any: + if name in dir(self): + return self.__getattribute__(name) + + elif contract := self.contracts.get(name): + contract.base_path = self.path + return contract + + return None + + def update_manifest(self, **kwargs): + # Update the manifest in memory. + super().update_manifest(**kwargs) + # Write updates to disk. + self.manifest_path.unlink(missing_ok=True) + manifest_text = self.manifest.model_dump_json(mode="json", by_alias=True) + self.manifest_path.parent.mkdir(parents=True, exist_ok=True) + self.manifest_path.write_text(manifest_text) + + def load_contracts( + self, *source_ids: Union[str, Path], use_cache: bool = True + ) -> dict[str, ContractContainer]: + paths: Iterable[Path] + starting: dict[str, ContractContainer] = {} + if source_ids: + paths = [(self.path / src_id) for src_id in source_ids] + else: + starting = { + n: ContractContainer(ct) + for n, ct in (self.manifest.contract_types or {}).items() + if ct.source_id and (self.path / ct.source_id).is_file() + } + paths = self.sources.paths + + new_types = { + c.contract_type.name: c + for c in self.contracts._compile(paths, use_cache=use_cache) + if c.contract_type.name + } + return {**starting, **new_types} + + def extract_manifest(self) -> PackageManifest: + """ + Get a finalized manifest for publishing. + + Returns: + PackageManifest + """ + + sources = dict(self.sources) + contract_types = { + n: ct + for n, ct in (self.manifest.contract_types or {}).items() + if ct.source_id in sources + } + + # Add any remaining data to the manifest here. + self.update_manifest( + contract_types=contract_types, + dependencies=self.dependencies.uri_map, + deployments=self.deployments.instance_map, + meta=self.meta, + name=self.name, + sources=sources, + version=self.version, + ) + + return self.manifest + + def clean(self): + super().clean() + if self.manifest_path.name == "__local__.json": + self.manifest_path.unlink(missing_ok=True) + self._manifest = PackageManifest() + + self.sources._path_cache = None + + def _create_contract_source(self, contract_type: ContractType) -> Optional[ContractSource]: + if not (source_id := contract_type.source_id): + return None + + elif not (src := self.sources.get(source_id)): + # Not found in this project's sources. + try: + cwd = Path.cwd() + except Exception: + # Happens when left in a cleaned-up temp path maybe? + cwd = None + + if cwd is not None and self.path != cwd: + root_project = self.Project(cwd) + if src := root_project._create_contract_source(contract_type): + return src + + return None + + try: + return ContractSource.create(contract_type, src, self.path) + except (ValueError, FileNotFoundError): + return None + + def _update_contract_types(self, contract_types: dict[str, ContractType]): + super()._update_contract_types(contract_types) + + if "ABI" in [x.value for x in self.config.compile.output_extra]: + abi_folder = self.manifest_path.parent / "abi" + shutil.rmtree(abi_folder, ignore_errors=True) + abi_folder.mkdir(parents=True, exist_ok=True) + for name, ct in (self.manifest.contract_types or {}).items(): + file = abi_folder / f"{name}.json" + abi_json = json.dumps( + [x.model_dump_json(by_alias=True, mode="json") for x in ct.abi] + ) + file.write_text(abi_json) + + +def _find_directory_with_extension( + path: Path, extensions: set[str], recurse: bool = True +) -> Optional[Path]: + if not path.is_dir(): + return None + + for file in path.iterdir(): + if file.is_file() and get_full_extension(file) in extensions: + return file.parent + + elif recurse and file.is_dir(): + return _find_directory_with_extension(file, extensions) + + return None diff --git a/src/ape/managers/project/__init__.py b/src/ape/managers/project/__init__.py deleted file mode 100644 index 8e8f569648..0000000000 --- a/src/ape/managers/project/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -from ape.managers.project.dependency import DependencyManager, GithubDependency, LocalDependency -from ape.managers.project.manager import ProjectManager -from ape.managers.project.types import ApeProject, BaseProject, BrownieProject - -__all__ = [ - "ApeProject", - "BaseProject", - "BrownieProject", - "DependencyManager", - "GithubDependency", - "LocalDependency", - "ProjectManager", -] diff --git a/src/ape/managers/project/dependency.py b/src/ape/managers/project/dependency.py deleted file mode 100644 index b6b3aedcad..0000000000 --- a/src/ape/managers/project/dependency.py +++ /dev/null @@ -1,471 +0,0 @@ -import json -import os -import shutil -from collections.abc import Iterable -from pathlib import Path -from typing import Optional - -from ethpm_types import PackageManifest -from packaging.version import Version -from pydantic import AnyUrl, FileUrl, HttpUrl, model_validator - -from ape.api import DependencyAPI -from ape.exceptions import ProjectError, UnknownVersionError -from ape.logging import logger -from ape.utils import ( - ManagerAccessMixin, - cached_property, - load_config, - log_instead_of_fail, - pragma_str_to_specifier_set, - run_in_tempdir, -) -from ape.utils._github import github_client - - -class DependencyManager(ManagerAccessMixin): - DATA_FOLDER: Path - _cached_dependencies: dict[str, dict[str, dict[str, DependencyAPI]]] = {} - - def __init__(self, data_folder: Path): - self.DATA_FOLDER = data_folder - - @property - def packages_folder(self) -> Path: - return self.DATA_FOLDER / "packages" - - @cached_property - def dependency_types(self) -> dict[str, type[DependencyAPI]]: - dependency_classes: dict[str, type[DependencyAPI]] = { - "github": GithubDependency, - "local": LocalDependency, - "npm": NpmDependency, - } - - for _, (config_key, dependency_class) in self.plugin_manager.dependencies: - assert issubclass(dependency_class, DependencyAPI) # For mypy - dependency_classes[config_key] = dependency_class - - return dependency_classes - - def decode_dependency(self, config_dependency_data: dict) -> DependencyAPI: - for key, dependency_cls in self.dependency_types.items(): - if key in config_dependency_data: - return dependency_cls(**config_dependency_data) - - dep_id = config_dependency_data.get("name", json.dumps(config_dependency_data)) - raise ProjectError(f"No installed dependency API that supports '{dep_id}'.") - - def load_dependencies( - self, project_id: str, use_cache: bool = True - ) -> dict[str, dict[str, DependencyAPI]]: - if use_cache and project_id in self._cached_dependencies: - return self._cached_dependencies[project_id] - - for dependency_config in self.config_manager.dependencies: - dependency_name = dependency_config.name - version_id = dependency_config.version_id - project_dependencies = self._cached_dependencies.get(project_id, {}) - - if ( - use_cache - and dependency_name in project_dependencies - and version_id in project_dependencies[dependency_name] - ): - # Already cached - continue - - # Cache manifest for next time. - if dependency_name in project_dependencies: - # Dependency is cached but version is not. - project_dependencies[dependency_name][version_id] = dependency_config - else: - # First time caching dependency - project_dependencies[dependency_name] = {version_id: dependency_config} - - self._cached_dependencies[project_id] = project_dependencies - - # Only extract manifest if wasn't cached and must happen after caching. - dependency_config.extract_manifest(use_cache=use_cache) - - return self._cached_dependencies.get(project_id, {}) - - def get_versions(self, name: str) -> list[Path]: - path = self.packages_folder / name - if not path.is_dir(): - logger.warning("Dependency not installed.") - return [] - - return [x for x in path.iterdir() if x.is_dir()] - - def remove_dependency(self, project_id: str, name: str, versions: Optional[list[str]] = None): - self._remove_local_dependency(project_id, name, versions=versions) - self._remove_disk_dependency(name, versions=versions) - - def _remove_disk_dependency(self, name: str, versions: Optional[list[str]] = None): - versions = versions or [] - available_versions = self.get_versions(name) - if not available_versions: - # Clean up (user was already warned). - if (self.packages_folder / name).is_dir(): - shutil.rmtree(self.packages_folder / name, ignore_errors=True) - - return - - # Use single version if there is one and wasn't given anything. - versions = ( - [x.name for x in available_versions] - if not versions and len(available_versions) == 1 - else versions - ) - if not versions: - raise ProjectError("Please specify versions to remove.") - - path = self.packages_folder / name - for version in versions: - if (path / version).is_dir(): - version_key = version - elif (path / f"v{version}").is_dir(): - version_key = f"v{version}" - else: - raise ProjectError(f"Version '{version}' of package '{name}' is not installed.") - - path = self.packages_folder / name / version_key - if not path.is_dir(): - available_versions_str = ", ".join([x.name for x in available_versions]) - raise ProjectError( - f"Version '{version}' not found in dependency {name}. " - f"Available versions: {available_versions_str}" - ) - - shutil.rmtree(path) - - # If there are no more versions, delete the whole package directory. - remaining_versions = self.get_versions(name) - if not remaining_versions: - shutil.rmtree(self.packages_folder / name, ignore_errors=True) - - def _remove_local_dependency( - self, project_id: str, name: str, versions: Optional[list[str]] = None - ): - versions = versions or [] - if name in self._cached_dependencies.get(project_id, {}): - versions_available = self.dependency_manager.get_versions(name) - if not versions and len(versions_available) == 1: - versions = [x.name for x in versions_available] - elif not versions: - raise ProjectError("`versions` kwarg required.") - - local_versions = self._cached_dependencies.get(project_id, {}).get(name, {}) - for version in versions: - if version in local_versions: - version_key = version - elif f"v{version}" in local_versions: - version_key = f"v{version}" - else: - logger.warning(f"Version '{version}' not installed.") - continue - - del self._cached_dependencies[project_id][name][version_key] - - # Local clean ups. - if ( - project_id in self._cached_dependencies - and name in self._cached_dependencies[project_id] - and not self._cached_dependencies[project_id][name] - ): - del self._cached_dependencies[project_id][name] - - if project_id in self._cached_dependencies and not self._cached_dependencies[project_id]: - del self._cached_dependencies[project_id] - - -class GithubDependency(DependencyAPI): - """ - A dependency from Github. Use the ``github`` key in your ``dependencies:`` - section of your ``ape-config.yaml`` file to declare a dependency from GitHub. - - Config example:: - - dependencies: - - name: OpenZeppelin - github: OpenZeppelin/openzeppelin-contracts - version: 4.4.0 - """ - - github: str - """ - The Github repo ID e.g. the organization name followed by the repo name, - such as ``dapphub/erc20``. - """ - - ref: Optional[str] = None - """ - The branch or tag to use. - - **NOTE**: Will be ignored if given a version. - """ - - @model_validator(mode="after") - @classmethod - def ensure_ref_or_version(cls, dep): - if dep.ref is None and dep.version is None: - raise ValueError("GitHub dependency must have either ref or version specified.") - - return dep - - @cached_property - def version_id(self) -> str: - if self.ref: - return self.ref - - elif self.version and self.version != "latest": - return self.version - - latest_release = github_client.get_latest_release(self.org_name, self.repo_name) - return latest_release["tag_name"] - - @cached_property - def org_name(self) -> str: - return self.github.split("/")[0] - - @cached_property - def repo_name(self) -> str: - return self.github.split("/")[1] - - @property - def uri(self) -> AnyUrl: - _uri = f"https://github.com/{self.github.strip('/')}" - if self.version: - version = f"v{self.version}" if not self.version.startswith("v") else self.version - _uri = f"{_uri}/releases/tag/{version}" - elif self.ref: - _uri = f"{_uri}/tree/{self.ref}" - - return HttpUrl(_uri) - - @log_instead_of_fail(default="") - def __repr__(self) -> str: - cls_name = getattr(type(self), "__name__", GithubDependency.__name__) - return f"<{cls_name} github={self.github}>" - - def extract_manifest(self, use_cache: bool = True) -> PackageManifest: - if use_cache and self.cached_manifest: - # Already downloaded - return self.cached_manifest - - return run_in_tempdir(lambda p: self._extract_manifest_in_path(p, use_cache=use_cache)) - - def _extract_manifest_in_path(self, path: Path, use_cache: bool = True) -> PackageManifest: - if self.ref: - github_client.clone_repo(self.org_name, self.repo_name, path, branch=self.ref) - - else: - try: - github_client.download_package( - self.org_name, self.repo_name, self.version or "latest", path - ) - except UnknownVersionError as err: - logger.warning( - f"No official release found for version '{self.version}'. " - "Use `ref:` instead of `version:` for release tags. " - "Checking for matching tags..." - ) - try: - github_client.clone_repo( - self.org_name, self.repo_name, path, branch=self.version - ) - except Exception: - # Raise the UnknownVersionError. - raise err - - return self._extract_local_manifest(path, use_cache=use_cache) - - -class LocalDependency(DependencyAPI): - """ - A dependency that is already downloaded on the local machine. - - Config example:: - - dependencies: - - name: Dependency - local: path/to/dependency - """ - - local: str - version: str = "local" - - @model_validator(mode="before") - @classmethod - def validate_contracts_folder(cls, value): - if value.get("config_override", {}).get("contracts_folder"): - # Already set. - return value - - # If using default value, check if exists. - local_path_value = value.get("local") or os.getcwd() - local_project_path = Path(local_path_value) - try_contracts_path = local_project_path / "contracts" - if try_contracts_path.is_dir(): - return value - - # Attempt to read value from config - config_file = local_project_path / "ape-config.yaml" - if config_file.is_file(): - config_data = load_config(config_file) - if "contracts_folder" in config_data: - value["contracts_folder"] = config_data["contracts_folder"] - - return value - - @property - def path(self) -> Path: - return Path(self.local).resolve().absolute() - - @property - def version_id(self) -> str: - return self.version - - @property - def uri(self) -> AnyUrl: - return FileUrl(self.path.as_uri()) - - def extract_manifest(self, use_cache: bool = True) -> PackageManifest: - return self._extract_local_manifest(self.path, use_cache=use_cache) - - -class NpmDependency(DependencyAPI): - """ - A dependency from the Node Package Manager (NPM). - - Config example:: - - dependencies: - - name: safe-singleton-factory - npm: "@gnosis.pm/safe-singleton-factory" - version: 1.0.14 - """ - - npm: str - """ - The NPM repo ID e.g. the organization name followed by the repo name, - such as ``"@gnosis.pm/safe-singleton-factory"``. - """ - - @cached_property - def version_id(self) -> str: - version_from_config = self.version - version_from_json = self.version_from_json - version_from_local_json = self.version_from_local_json - if version_from_config: - for other_version in (version_from_json, version_from_local_json): - if not other_version: - continue - - if semver := pragma_str_to_specifier_set(other_version): - if other_version and not next( - semver.filter([Version(version_from_config)]), None - ): - raise ProjectError( - f"Version mismatch for {self.npm}. Is {self.version} in ape config " - f"but {other_version} in package.json. " - f"Try aligning versions and/or running `npm install`." - ) - - if version_from_config: - return version_from_config - elif version_from_json: - return version_from_json - elif version_from_local_json: - return version_from_local_json - else: - raise ProjectError( - f"Missing version for NPM dependency '{self.name}'. " "Have you run `npm install`?" - ) - - @property - def package_suffix(self) -> Path: - return Path("node_modules") / str(self.npm) - - @property - def package_folder(self) -> Path: - return Path.cwd() / self.package_suffix - - @property - def global_package_folder(self) -> Path: - return Path.home() / self.package_suffix - - @cached_property - def version_from_json(self) -> Optional[str]: - """ - The version from package.json in the installed package. - Requires having run `npm install`. - """ - return _get_version_from_package_json(self.package_folder) - - @cached_property - def version_from_local_json(self) -> Optional[str]: - """ - The version from your project's package.json, if exists. - """ - return _get_version_from_package_json( - self.project_manager.path, path=("dependencies", self.npm) - ) - - @property - def uri(self) -> AnyUrl: - _uri = f"https://www.npmjs.com/package/{self.npm}/v/{self.version}" - return HttpUrl(_uri) - - def extract_manifest(self, use_cache: bool = True) -> PackageManifest: - if use_cache and self.cached_manifest: - # Already downloaded - return self.cached_manifest - - if self.package_folder.is_dir(): - if ( - self.version - and self.version_from_json - and self.version not in self.version_from_json - ): - raise ProjectError( - f"Version mismatch for {self.npm}. Is {self.version} in ape config" - f"but {self.version_from_json} in package.json." - ) - - return self._extract_local_manifest(self.package_folder, use_cache=use_cache) - - elif self.global_package_folder.is_dir(): - return self._extract_local_manifest(self.global_package_folder, use_cache=use_cache) - - else: - raise ProjectError(f"NPM package '{self.npm}' not installed.") - - -def _get_version_from_package_json( - base_path: Path, path: Optional[Iterable[str]] = None -) -> Optional[str]: - package_json = base_path / "package.json" - if not package_json.is_file(): - return None - - try: - data = json.loads(package_json.read_text()) - except Exception as err: - logger.warning(f"Failed to parse package.json: {err}") - return None - - for key in path or []: - if key not in data: - return None - - data = data[key] - - if isinstance(data, str): - return data - - elif not isinstance(data, dict): - return None - - return data.get("version") diff --git a/src/ape/managers/project/manager.py b/src/ape/managers/project/manager.py deleted file mode 100644 index 9b26468cb1..0000000000 --- a/src/ape/managers/project/manager.py +++ /dev/null @@ -1,892 +0,0 @@ -import shutil -from collections.abc import Iterable -from pathlib import Path -from typing import Any, Optional, Union, cast - -from eth_pydantic_types import Bip122Uri, HexStr -from ethpm_types import ContractInstance as EthPMContractInstance -from ethpm_types import ContractType, PackageManifest, PackageMeta, Source -from ethpm_types.manifest import PackageName -from ethpm_types.source import Compiler, ContractSource -from pydantic import AnyUrl - -from ape.api import DependencyAPI, ProjectAPI -from ape.contracts import ContractContainer, ContractInstance, ContractNamespace -from ape.exceptions import ( - ApeAttributeError, - APINotImplementedError, - ChainError, - ProjectError, - TransactionNotFoundError, -) -from ape.logging import logger -from ape.managers.base import BaseManager -from ape.managers.project.types import ApeProject, BrownieProject -from ape.utils import get_relative_path, log_instead_of_fail -from ape.utils.basemodel import _assert_not_ipython_check, only_raise_attribute_error -from ape.utils.os import clean_path, get_full_extension - - -class ProjectManager(BaseManager): - """ - A manager for accessing contract-types, dependencies, and other project resources. - Additionally, compile contracts using the - :meth:`~ape.managers.project.ProjectManager.load_contracts` method. - - Use ``ape.project`` to reference the current project and ``ape.Project`` to reference - this class uninitialized. - - Raises: - :class:`~ape.exceptions.ProjectError`: When the project's dependencies are invalid. - - Usage example:: - - from ape import project # "project" is the ProjectManager for the active project - from ape import Project # Is a ProjectManager - - # MyContractType (example) is contract type in the active project - contract_type = project.MyContactType - """ - - path: Path - """The project path.""" - - _cached_projects: dict[str, ProjectAPI] = {} - _getattr_contracts: bool = True - - def __init__( - self, - path: Path, - ) -> None: - self.path = Path(path) if isinstance(path, str) else path - if self.path.is_file(): - self.path = self.path.parent - - def __str__(self) -> str: - return f'Project("{clean_path(self.path)}")' - - @log_instead_of_fail(default="") - def __repr__(self) -> str: - path = f" {clean_path(self.path)}" if self.path else "" - return f"" - - @property - def dependencies(self) -> dict[str, dict[str, DependencyAPI]]: - """ - The package manifests of all dependencies mentioned - in this project's ``ape-config.yaml`` file. - """ - - return self.load_dependencies() - - @property - def sources(self) -> dict[str, Source]: - """ - A mapping of source identifier to ``ethpm_types.Source`` object. - """ - - return ProjectAPI._create_source_dict(self.source_paths, self.contracts_folder) - - # NOTE: Using these paths should handle the case when the folder doesn't exist - @property - def contracts_folder(self) -> Path: - """ - The path to project's ``contracts/`` directory. - - Returns: - pathlib.Path - """ - - folder = self.config_manager.contracts_folder - if folder is None: - # This happens when using normal Python REPL - # and perhaps other times when loading a project before config. - self.config_manager.load() - folder = self.config_manager.contracts_folder - if folder is None: - # Was set explicitly to `None` in config. - return self.path / "contracts" - - elif isinstance(folder, str): - return self.path / folder - - return folder - - @property - def compiler_cache_folder(self) -> Path: - """ - The path to the project's compiler source cache folder. - """ - # NOTE: as long as config has come up properly, this should not be None - compile_conf = self.config_manager.get_config("compile") - assert compile_conf.cache_folder is not None - return compile_conf.cache_folder - - @property - def source_paths(self) -> list[Path]: - """ - All the source files in the project. - Excludes files with extensions that don't have a registered compiler. - - Returns: - list[pathlib.Path]: A list of a source file paths in the project. - """ - contracts_folder = self.contracts_folder - if not contracts_folder or not self.contracts_folder.is_dir(): - return [] - - files: list[Path] = [] - - # Dependency sources should be ignored, as they are pulled in - # independently to compiler via import. - for extension in self.compiler_manager.registered_compilers: - files.extend( - ( - x - for x in contracts_folder.rglob(f"*{extension}") - if x.is_file() and self.compiler_cache_folder not in x.parents - ) - ) - - return files - - @property - def sources_missing(self) -> bool: - """ - ``True`` when there are no contracts anywhere to be found - in the project. ``False`` otherwise. - """ - - return len(self.source_paths) <= 0 - - @property - def interfaces_folder(self) -> Path: - """ - The path to the ``interfaces/`` directory of the project. - - Returns: - pathlib.Path - """ - - return self.path / "interfaces" - - @property - def scripts_folder(self) -> Path: - """ - The path to the ``scripts/`` directory of the project. - - Returns: - pathlib.Path - """ - - return self.path / "scripts" - - @property - def tests_folder(self) -> Path: - """ - The path to the ``tests/`` directory of the project. - - Returns: - pathlib.Path - """ - - return self.path / "tests" - - @property - def compiler_data(self) -> list[Compiler]: - """ - A list of ``Compiler`` objects representing the raw-data specifics of a compiler. - """ - return self.get_compiler_data() - - def get_compiler_data(self, compile_if_needed: bool = True) -> list[Compiler]: - """ - A list of ``Compiler`` objects representing the raw-data specifics of a compiler. - - Args: - compile_if_needed (bool): Set to ``False`` to only return cached compiler data. - Defaults to ``True``. - - Returns: - list[Compiler] - """ - if compilers := self._get_cached_compiler_data(): - # Compiler data was already in manifest - # (from compiler plugins). - return compilers - - elif compile_if_needed: - return self._derive_settings() - - return [] - - def _get_cached_compiler_data(self) -> list[Compiler]: - if not (cached_manifest := self.local_project.cached_manifest): - return [] - - elif not (compilers := cached_manifest.compilers): - return [] - - return compilers - - def _derive_settings(self) -> list[Compiler]: - contract_types: Iterable[ContractType] = self.load_contracts().values() - compiler_list: list[Compiler] = [] - contracts_folder = self.config_manager.contracts_folder - for ext, compiler in self.compiler_manager.registered_compilers.items(): - sources = [x for x in self.source_paths if x.is_file() and get_full_extension(x) == ext] - if not sources: - continue - - try: - version_map = compiler.get_version_map(sources, contracts_folder) - except APINotImplementedError: - versions = list(compiler.get_versions(sources)) - if len(versions) == 0: - # Skipping compilers that don't use versions - # These are unlikely to be part of the published manifest - continue - elif len(versions) > 1: - raise (ProjectError(f"Unable to create version map for '{ext}'.")) - - version = versions[0] - version_map = {version: sources} - - settings = compiler.get_compiler_settings(sources, base_path=contracts_folder) - for version, paths in version_map.items(): - version_settings = settings.get(version, {}) if version and settings else {} - source_ids = [str(get_relative_path(p, contracts_folder)) for p in paths] - filtered_contract_types = [ - ct for ct in contract_types if ct.source_id in source_ids - ] - contract_type_names = [ct.name for ct in filtered_contract_types if ct.name] - compiler_list.append( - Compiler( - name=compiler.name.lower(), - version=str(version), - settings=version_settings, - contractTypes=contract_type_names, - ) - ) - return compiler_list - - @property - def meta(self) -> PackageMeta: - """ - Metadata about the active project as per EIP - https://eips.ethereum.org/EIPS/eip-2678#the-package-meta-object - Use when publishing your package manifest. - """ - - return self.config_manager.meta - - @property - def tracked_deployments(self) -> dict[Bip122Uri, dict[str, EthPMContractInstance]]: - """ - Deployments that have been explicitly tracked via - :meth:`~ape.managers.project.manager.ProjectManager.track_deployment`. - These deployments will be included in the final package manifest upon publication - of this package. - """ - - deployments: dict[Bip122Uri, dict[str, EthPMContractInstance]] = {} - if not self._package_deployments_folder.is_dir(): - return deployments - - for ecosystem_path in [x for x in self._package_deployments_folder.iterdir() if x.is_dir()]: - for deployment_path in [ - x for x in ecosystem_path.iterdir() if get_full_extension(x) == ".json" - ]: - text = deployment_path.read_text() - ethpm_instance = EthPMContractInstance.model_validate_json(text) - if not ethpm_instance: - continue - - uri = Bip122Uri(f"blockchain://{ecosystem_path.name}/block/{ethpm_instance.block}") - deployments[uri] = {deployment_path.stem: ethpm_instance} - - return deployments - - @property - def project_types(self) -> list[type[ProjectAPI]]: - """ - The available :class:`~ape.api.project.ProjectAPI` types available, - such as :class:`~ape.managers.project.ApeProject`, which is the default. - """ - - project_classes = [] - for _, (project_class,) in self.plugin_manager.projects: - project_classes.append(project_class) - - project_classes.append(BrownieProject) - project_classes.append(ApeProject) - - return project_classes - - @property - def local_project(self) -> ProjectAPI: - return self.get_project(self.path, contracts_folder=self.contracts_folder) - - def extract_manifest(self) -> PackageManifest: - """ - Extracts a package manifest from the project. - - Returns: - ethpm_types.manifest.PackageManifest - """ - manifest = self.local_project.create_manifest() - manifest.meta = self.meta - manifest.compilers = self.compiler_data - manifest.deployments = self.tracked_deployments - manifest.dependencies = self._extract_manifest_dependencies() - return manifest - - def _extract_manifest_dependencies(self) -> Optional[dict[PackageName, AnyUrl]]: - package_dependencies: dict[str, AnyUrl] = {} - for dependency_config in self.config_manager.dependencies: - package_name = dependency_config.name.replace("_", "-").lower() - package_dependencies[package_name] = dependency_config.uri - - return cast(Optional[dict[PackageName, AnyUrl]], package_dependencies) - - @property - def _package_deployments_folder(self) -> Path: - return self.local_project._cache_folder / "deployments" - - @property - def _contract_sources(self) -> list[ContractSource]: - sources = [] - for contract in self.contracts.values(): - contract_src = self._create_contract_source(contract) - if contract_src: - sources.append(contract_src) - - return sources - - def get_project( - self, - path: Path, - contracts_folder: Optional[Path] = None, - name: Optional[str] = None, - version: Optional[str] = None, - ) -> ProjectAPI: - """ - Get the project at the given path. - Returns the first :class:`~ape.api.projects.ProjectAPI` it finds where it - is valid. - - Args: - path (pathlib.Path): The path to the project. - contracts_folder (pathlib.Path): The path to the contracts folder. Defaults - to ``/contracts``. - name (str): The name of the project. Only necessary when this project is - a dependency. Defaults to ``None``. - version (str): The project's version. Only necessary when this project is - a dependency. Defaults to ``None``. - - Returns: - :class:`~ape.api.projects.ProjectAPI` - """ - - if path.name in self._cached_projects: - cached_project = self._cached_projects[path.name] - if ( - version == cached_project.version - and contracts_folder is not None - and contracts_folder == cached_project.contracts_folder - ): - return cached_project - - contracts_folder = ( - (path / contracts_folder).expanduser().resolve() - if contracts_folder - else path / "contracts" - ) - if not contracts_folder.is_dir(): - extensions = list(self.compiler_manager.registered_compilers.keys()) - - def find_contracts_folder( - sub_dir: Path, exclusions: Optional[list[str]] = None - ) -> Optional[Path]: - # Check if config file exists - exclusions = exclusions or [] - files_to_ignore = [] - for pattern in exclusions: - files_to_ignore.extend(list(sub_dir.glob(pattern))) - - next_subs = [] - for sub in sub_dir.iterdir(): - if sub.name.startswith("."): - continue - - if sub.is_file() and sub not in files_to_ignore: - if get_full_extension(sub) in extensions: - return sub.parent - - elif sub.is_dir(): - next_subs.append(sub) - - # No source was found. Search next level of dirs. - for next_sub in next_subs: - if found := find_contracts_folder(next_sub, exclusions=exclusions): - return found - - return None - - if cfg := self.config_manager._project_configs.get("compile"): - excls = cfg.model_dump().get("exclude", []) - else: - excls = [] - - contracts_folder = find_contracts_folder(path, exclusions=excls) or contracts_folder - - def _try_create_project(proj_cls: type[ProjectAPI]) -> Optional[ProjectAPI]: - with self.config_manager.using_project( - path, contracts_folder=contracts_folder - ) as _project: - proj = proj_cls( - contracts_folder=_project.contracts_folder, - name=name, - path=path, - version=version, - ) - if proj.is_valid: - return proj - - return None - - project_plugin_types = [pt for pt in self.project_types if not issubclass(pt, ApeProject)] - for project_cls in project_plugin_types: - if project := _try_create_project(project_cls): - self._cached_projects[path.name] = project - return project - - # Try 'ApeProject' last, in case there was a more specific one earlier. - ape_project = _try_create_project(ApeProject) - if ape_project: - self._cached_projects[path.name] = ape_project - return ape_project - - raise ProjectError(f"'{self.path.name}' is not recognized as a project.") - - @property - def contracts(self) -> dict[str, ContractType]: - """ - A dictionary of contract names to their type. - See :meth:`~ape.managers.project.ProjectManager.load_contracts` for more information. - - Returns: - dict[str, ``ContractType``] - """ - if self.local_project.cached_manifest and (contracts := self.local_project.contracts): - return contracts - - return self.load_contracts() - - @only_raise_attribute_error - def __getattr__(self, attr_name: str) -> Any: - """ - Get a contract container from an existing contract type in - the local project using ``.`` access. - - **NOTE**: To get a dependency contract, use - :py:attr:`~ape.managers.project.ProjectManager.dependencies`. - - Usage example:: - - from ape import project - - contract = project.MyContract - - Raises: - :class:`~ape.exceptions.ApeAttributeError`: When the given name is not - a contract in the project. - - Args: - attr_name (str): The name of the contract in the project. - - Returns: - :class:`~ape.contracts.ContractContainer`, - a :class:`~ape.contracts.ContractNamespace`, or any attribute. - """ - _assert_not_ipython_check(attr_name) - result = self._get_attr(attr_name) - if result: - return result - - # Contract not found. Seek and re-compile missing contract types from sources. - # This assists when build artifacts accidentally get deleted. - all_source_ids = list(self.project_manager.sources.keys()) - compiled_source_ids = [x.source_id for x in self.contracts.values()] - missing_sources = [ - self.contracts_folder / x for x in all_source_ids if x not in compiled_source_ids - ] - contract_types = self.compiler_manager.compile(missing_sources) - - # Cache all contract types that were missing for next time. - contract_type = None - for ct in contract_types: - if not ct.name: - continue - - # We know if we get here that the path does not exist. - path = self.local_project._cache_folder / f"{ct.name}.json" - path.write_text(ct.model_dump_json()) - if self.local_project._contracts is None: - self.local_project._contracts = {ct.name: ct} - else: - self.local_project._contracts[ct.name] = ct - - # Grab the matching contract-type - if attr_name == ct.name: - contract_type = ct - - if not contract_type: - # Still not found. Contract likely doesn't exist. - return self._handle_attr_or_contract_not_found(attr_name) - - result = self._get_attr(attr_name) - if not result: - # Shouldn't happen. - return self._handle_attr_or_contract_not_found(attr_name) - - return result - - def _get_attr(self, attr_name: str) -> Any: - # Fixes anomaly when accessing non-ContractType attributes. - # Returns normal attribute if exists. Raises 'AttributeError' otherwise. - try: - return self.__getattribute__(attr_name) - except AttributeError: - # NOTE: Also handles IPython attributes such as _ipython_display_ - if not self._getattr_contracts: - # Raise the attribute error as if this method didn't exist. - raise - - try: - # NOTE: Will compile project (if needed) - if contract := self._get_contract(attr_name): - return contract - - # Check if using namespacing. - namespaced_contracts = [ - ct - for ct in [ - self._get_contract(ct.name) - for n, ct in self.contracts.items() - if ct.name and "." in n and n.split(".")[0] == attr_name - ] - if ct - ] - if namespaced_contracts: - return ContractNamespace(attr_name, namespaced_contracts) - - except Exception as err: - # __getattr__ has to raise `AttributeError` - raise ApeAttributeError(str(err)) from err - - return None - - def _handle_attr_or_contract_not_found(self, attr_name: str): - cls_name = getattr(type(self), "__name__", ProjectManager.__name__) - message = f"{cls_name} has no attribute or contract named '{attr_name}'." - - file_check_appended = False - for file in self.contracts_folder.glob("**/*"): - # Possibly, the user was trying to use a source ID instead of a contract name. - if file.stem != attr_name: - continue - - message = ( - f"{message} However, there is a source file named '{file.name}', " - "did you mean to reference a contract name from this source file?" - ) - file_check_appended = True - break - - # Possibly, the user does not have compiler plugins installed or working. - missing_exts = self.extensions_with_missing_compilers([]) - if missing_exts: - start = "Else, could" if file_check_appended else "Could" - message = ( - f"{message} {start} it be from one of the missing compilers for extensions: " - + f'{", ".join(sorted(missing_exts))}?' - ) - - raise ApeAttributeError(message) - - def get_contract(self, contract_name: str) -> ContractContainer: - """ - Get a contract container from an existing contract type in - the local project by name. - - **NOTE**: To get a dependency contract, use - :py:attr:`~ape.managers.project.ProjectManager.dependencies`. - - Raises: - KeyError: When the given name is not a contract in the project. - - Args: - contract_name (str): The name of the contract in the project. - - Returns: - :class:`~ape.contracts.ContractContainer` - """ - - if contract := self._get_contract(contract_name): - return contract - - raise ProjectError(f"No contract found with name '{contract_name}'.") - - def extensions_with_missing_compilers(self, extensions: Optional[list[str]] = None) -> set[str]: - """ - All file extensions in the ``contracts/`` directory (recursively) - that do not correspond to a registered compiler. - - Args: - extensions (list[str], optional): If provided, returns only extensions that - are in this list. Useful for checking against a subset of source files. - - Returns: - set[str]: A list of file extensions found in the ``contracts/`` directory - that do not have associated compilers installed. - """ - extensions_found = set() - - def _append_extensions_in_dir(directory: Path): - if not directory.is_dir(): - return - - for file in directory.iterdir(): - if file.is_dir(): - _append_extensions_in_dir(file) - elif ext := get_full_extension(file): - # NOTE: Also ignores files without extensions for simplicity. - extensions_found.add(ext) - - _append_extensions_in_dir(self.contracts_folder) - - # Filter out extensions that have associated compilers. - extensions_found = { - x for x in extensions_found if x not in self.compiler_manager.registered_compilers - } - - # Filer by the given extensions. - if extensions: - extensions_found = {e for e in extensions_found if e in extensions} - - return extensions_found - - def lookup_path(self, key_contract_path: Union[Path, str]) -> Optional[Path]: - """ - Figure out the full path of the contract from the given ``key_contract_path``. - - For example, give it ``HelloWorld`` and it returns - ``//HelloWorld.sol``. - - Another example is to give it ``contracts/HelloWorld.sol`` and it also - returns ``//HelloWorld.sol``. - - Args: - key_contract_path (pathlib.Path, str): A sub-path to a contract or a source ID. - - Returns: - pathlib.Path: The path if it exists, else ``None``. - """ - - input_path = Path(key_contract_path) - if input_path.is_file(): - # Already given an existing file. - return input_path.absolute() - - input_stem = input_path.stem - input_extension = get_full_extension(input_path) or None - - def find_in_dir(dir_path: Path, path_id: Path) -> Optional[Path]: - # Try exact match with or without extension - possible_matches = [] - - if path_id.is_absolute(): - full_path = path_id - else: - # Check if a file with an exact match exists. - full_path = dir_path / path_id - - if full_path.is_file(): - return full_path - - # Check for exact match with no given extension. - if input_extension is None: - if full_path.parent.is_dir(): - for file in full_path.parent.iterdir(): - if not file.is_file(): - continue - elif not (file_ext := get_full_extension(file)): - continue - - # Check exact match w/o extension. - prefix = file_ext.join(str(file).split(file_ext)[:-1]) - if str(full_path) == prefix: - return file - - # Look for stem-only matches (last resort). - for file_path in dir_path.rglob("*"): - if file_path.stem == input_stem: - possible_matches.append(file_path) - - # If we have possible matches, return the one with the closest relative path - if possible_matches: - # Prioritize the exact relative path or first match in the list - possible_matches.sort(key=lambda p: len(str(p.relative_to(dir_path)))) - return possible_matches[0] - - return None - - # Derive the relative path from the given key_contract_path. - relative_path = input_path.relative_to(input_path.anchor) - return find_in_dir(self.contracts_folder, relative_path) - - def load_contracts( - self, file_paths: Optional[Union[Iterable[Path], Path]] = None, use_cache: bool = True - ) -> dict[str, ContractType]: - """ - Compile and get the contract types in the project. - This is called when invoking the CLI command ``ape compile`` as well as prior to running - scripts or tests in ``ape``, such as from ``ape run`` or ``ape test``. - - Args: - file_paths (Optional[Union[Iterable[Path], Path]]): - Provide one or more contract file-paths to load. If excluded, - will load all the contracts. - use_cache (Optional[bool]): Set to ``False`` to force a re-compile. - Defaults to ``True``. - - Returns: - dict[str, ``ContractType``]: A dictionary of contract names to their - types for each compiled contract. - """ - - if not use_cache and self.compiler_cache_folder.is_dir(): - shutil.rmtree(str(self.compiler_cache_folder)) - - if isinstance(file_paths, Path): - file_path_list = [file_paths] - elif file_paths is not None: - file_path_list = list(file_paths) - else: - file_path_list = None - - manifest = self.local_project.create_manifest( - file_paths=file_path_list, use_cache=use_cache - ) - return manifest.contract_types or {} - - def load_dependencies(self, use_cache: bool = True) -> dict[str, dict[str, DependencyAPI]]: - return self.dependency_manager.load_dependencies(self.path.as_posix(), use_cache=use_cache) - - def remove_dependency(self, dependency_name: str, versions: Optional[list[str]] = None): - self.dependency_manager.remove_dependency( - self.path.as_posix(), dependency_name, versions=versions - ) - - def track_deployment(self, contract: ContractInstance): - """ - Indicate that a contract deployment should be included in the package manifest - upon publication. - - **NOTE**: Deployments are automatically tracked for contracts. However, only - deployments passed to this method are included in the final, publishable manifest. - - Args: - contract (:class:`~ape.contracts.base.ContractInstance`): The contract - to track as a deployment of the project. - """ - - if self.provider.network.is_dev: - raise ProjectError("Can only publish deployments on a live network.") - - elif not (contract_name := contract.contract_type.name): - raise ProjectError("Contract name required when publishing.") - - elif not (creation := contract.creation_metadata): - raise ProjectError("Unable to find contract creation.") - - try: - receipt = creation.receipt - except (ChainError, TransactionNotFoundError) as err: - raise ProjectError( - f"Contract '{contract_name}' transaction receipt is unknown." - ) from err - - block_number = receipt.block_number - block_hash_bytes = self.provider.get_block(block_number).hash - if not block_hash_bytes: - # Mostly for mypy, not sure this can ever happen. - raise ProjectError( - f"Block hash containing transaction for '{contract_name}' " - f"at block_number={block_number} is unknown." - ) - - block_hash = block_hash_bytes.hex() - artifact = EthPMContractInstance( - address=contract.address, - block=block_hash, - contractType=contract_name, - transaction=cast(HexStr, contract.txn_hash), - runtimeBytecode=contract.contract_type.runtime_bytecode, - ) - - block_0_hash = self.provider.get_block(0).hash - if not block_0_hash: - raise ProjectError("Chain missing hash for block 0 (required for BIP-122 chain ID).") - - bip122_chain_id = block_0_hash.hex() - deployments_folder = self._package_deployments_folder / bip122_chain_id - deployments_folder.mkdir(exist_ok=True, parents=True) - destination = deployments_folder / f"{contract_name}.json" - - if destination.is_file(): - logger.debug("Deployment already tracked. Re-tracking.") - # NOTE: missing_ok=True to handle race condition. - destination.unlink(missing_ok=True) - - destination.write_text(artifact.model_dump_json()) - - def _create_contract_source(self, contract_type: ContractType) -> Optional[ContractSource]: - if not (source_id := contract_type.source_id): - return None - - if not (src := self._lookup_source(source_id)): - return None - - try: - return ContractSource.create(contract_type, src, self.contracts_folder) - except (ValueError, FileNotFoundError): - return None - - def _lookup_source(self, source_id: str) -> Optional[Source]: - source_path = self.lookup_path(source_id) - if source_path and source_path.is_file(): - result = self.local_project._create_source_dict(source_path, self.contracts_folder) - return next(iter(result.values())) if result else None - - return None - - def _get_contract(self, name: str) -> Optional[ContractContainer]: - # NOTE: Use `load_contracts()` to re-compile changed contracts if needed. - # Else, if you make changes to a contract, it won't catch the need to re-compile. - if name in self.load_contracts(): - return self.chain_manager.contracts.get_container(self.contracts[name]) - - return None - - # def publish_manifest(self): - # NOTE: Using JSON mode for maximum publishing compatibility. - # manifest = self.manifest.model_dump(mode="json") - # if not manifest["name"]: - # raise ProjectError("Need name to release manifest") - # if not manifest["version"]: - # raise ProjectError("Need version to release manifest") - - # TODO: Publish sources to IPFS and replace with CIDs - # TODO: Publish to IPFS diff --git a/src/ape/managers/project/types.py b/src/ape/managers/project/types.py deleted file mode 100644 index 9dfea0e529..0000000000 --- a/src/ape/managers/project/types.py +++ /dev/null @@ -1,374 +0,0 @@ -import os -from collections.abc import Sequence -from pathlib import Path -from typing import Any, Optional - -from ethpm_types import ContractType, PackageManifest, Source -from ethpm_types.utils import compute_checksum -from yaml import safe_dump, safe_load - -from ape.api import ProjectAPI -from ape.logging import logger -from ape.managers.config import CONFIG_FILE_NAME as APE_CONFIG_FILE_NAME -from ape.utils import cached_property, get_all_files_in_directory, get_relative_path, path_match - - -class _ProjectSources: - # NOTE: This class is an implementation detail and excluded from the public API. - # It helps with diff calculations between the project's cached manifest sources - # and the current, active sources. It's used to determine what files to compile when - # running `ape compile`. - - def __init__( - self, - cached_manifest: PackageManifest, - active_sources: Sequence[Path], - contracts_folder: Path, - cache_folder: Path, - ): - self.cached_manifest = cached_manifest - self.active_sources = active_sources - self.contracts_folder = contracts_folder - self.cache_folder = cache_folder - - @cached_property - def cached_sources(self) -> dict[str, Source]: - return self.cached_manifest.sources or {} - - @cached_property - def remaining_cached_contract_types(self) -> dict[str, ContractType]: - cached_contract_types = self.cached_manifest.contract_types or {} - - # Filter out deleted sources. - deleted_source_ids = self.cached_sources.keys() - set( - map(str, [get_relative_path(p, self.contracts_folder) for p in self.active_sources]) - ) - return { - name: contract_type - for name, contract_type in cached_contract_types.items() - if contract_type.source_id not in deleted_source_ids - } - - @cached_property - def sources_needing_compilation(self) -> list[Path]: - needs_compile = set(filter(self._check_needs_compiling, self.active_sources)) - - # NOTE: Add referring path imports for each source path - all_referenced_paths: list[Path] = [] - sources_to_check_refs = needs_compile.copy() - while sources_to_check_refs: - source_id = str(get_relative_path(sources_to_check_refs.pop(), self.contracts_folder)) - reference_paths = [ - s for s in self._source_reference_paths.get(source_id, []) if s.is_file() - ] - all_referenced_paths.extend(reference_paths) - needs_compile.update(reference_paths) - - needs_compile.update(all_referenced_paths) - return list(needs_compile) - - @cached_property - def _source_reference_paths(self) -> dict[str, list[Path]]: - return { - source_id: [self.contracts_folder.joinpath(Path(s)) for s in source.references or []] - for source_id, source in self.cached_sources.items() - } - - def _check_needs_compiling(self, source_path: Path) -> bool: - source_id = str(get_relative_path(source_path, self.contracts_folder)) - - if source_id not in self.cached_sources: - return True # New file added - - cached_source = self.cached_sources[source_id] - cached_checksum = cached_source.calculate_checksum() - source_file = self.contracts_folder / source_path - - # ethpm_types strips trailing white space and ensures - # a newline at the end so content so `splitlines()` works. - # We need to do the same here for to prevent the endless recompiling bug. - text = source_file.read_text("utf8").rstrip() - content = f"{text}\n" if text else "" - - checksum = compute_checksum(content.encode("utf8"), algorithm=cached_checksum.algorithm) - return checksum != cached_checksum.hash # Contents changed - - def get_source_reference_paths(self, source_id: str) -> list[Path]: - return [s for s in self._source_reference_paths.get(source_id, []) if s.is_file()] - - -class BaseProject(ProjectAPI): - @property - def config_file(self) -> Path: - return self.path / APE_CONFIG_FILE_NAME - - @property - def is_valid(self) -> bool: - if self.config_file.is_file(): - return True - - logger.debug( - f"'{self.path.name}' is not an 'ApeProject', but attempting to process as one." - ) - - # NOTE: We always return True as a last-chance attempt because it often - # works anyway and prevents unnecessary plugin requirements. - return True - - @property - def source_paths(self) -> list[Path]: - """ - All the source files in the project. - Excludes files with extensions that don't have a registered compiler. - - Returns: - list[pathlib.Path]: A list of a source file paths in the project. - """ - files: list[Path] = [] - - if not self.contracts_folder.is_dir(): - return files - - compilers = self.compiler_manager.registered_compilers - for extension in compilers: - ext = extension.replace(".", "\\.") - pattern = rf"[\w|-]+{ext}" - ext_files = get_all_files_in_directory(self.contracts_folder, pattern=pattern) - files.extend(ext_files) - - return files - - def process_config_file(self, **kwargs) -> bool: - if self.config_file.is_file(): - # Don't override existing config file. - return False - - # Create a temporary config file that should be cleaned up after. - config_data = {**kwargs} - if self.name: - config_data["name"] = self.name - if self.version: - config_data["version"] = self.version - - contracts_folder = kwargs.get("contracts_folder") or self.contracts_folder - - if contracts_folder == self.path: - # Handle projects pointed at root path. - contracts_folder_config_item = "." - elif isinstance(contracts_folder, Path): - # Strip of path prefix. - contracts_folder_config_item = os.path.relpath(contracts_folder, self.path) - else: - # Was given a str. - contracts_folder_config_item = contracts_folder - - config_data["contracts_folder"] = contracts_folder_config_item - self.config_file.parent.mkdir(parents=True, exist_ok=True) - self.config_file.touch() - with open(self.config_file, "w") as file: - safe_dump(config_data, file) - - return True - - def create_manifest( - self, file_paths: Optional[Sequence[Path]] = None, use_cache: bool = True - ) -> PackageManifest: - # Read the project config and migrate project-settings to Ape settings if needed. - compile_config = self.config_manager.get_config("compile") - self.project_manager.load_dependencies() - source_paths: list[Path] = list( - set( - [p for p in self.source_paths if p in file_paths] - if file_paths - else [p for p in self.source_paths if not path_match(p, *compile_config.exclude)] - ) - ) - - if use_cache: - manifest = self.manifest - else: - self._contracts = None - manifest = PackageManifest() - - # Generate sources and contract types. - project_sources = _ProjectSources( - manifest, source_paths, self.contracts_folder, self._cache_folder - ) - contract_types = project_sources.remaining_cached_contract_types - compiled_contract_types = self._compile(project_sources) - contract_types.update(compiled_contract_types) - - # NOTE: We need to prevent compilation or else we get an endless loop, because - # compilation results in creating a manifest, which triggers compilation, etc. - compiler_data = self.project_manager.get_compiler_data(compile_if_needed=False) - - # Apply source and contracts to manifest. - self.update_manifest_sources( - source_paths, - self.contracts_folder, - contract_types, - name=self.name, - version=self.version, - compiler_data=compiler_data, - ) - - if compiled_contract_types: - for name, contract_type in compiled_contract_types.items(): - file = self.project_manager.local_project._cache_folder / f"{name}.json" - file.write_text(contract_type.model_dump_json()) - self._contracts = self._contracts or {} - self._contracts[name] = contract_type - - # Is cached. - return self.manifest - - def _compile( - self, project_sources: _ProjectSources, use_cache: bool = True - ) -> dict[str, ContractType]: - def _compile_sources(proj_srcs: _ProjectSources) -> dict[str, ContractType]: - contracts_folder = self.contracts_folder - srcs_to_compile = proj_srcs.sources_needing_compilation - - # Figure out what contracts have changed and delete them from the cache - # so they can be compiled. - exising_contract_types = ( - (self.cached_manifest.contract_types or {}) - if self.cached_manifest is not None - else {} - ) - contracts_to_remove = [ - ct - for ct in exising_contract_types.values() - if ct.source_id and (contracts_folder / ct.source_id) in srcs_to_compile - ] - - for contract in contracts_to_remove: - path = self._cache_folder / f"{contract.name}.json" - path.unlink(missing_ok=True) - - if cached_manifest := self.cached_manifest: - source_ids_to_remove = [ct.source_id for ct in contracts_to_remove] - filtered_contract_types = { - n: ct - for n, ct in (cached_manifest.contract_types or {}).items() - if ct.source_id not in source_ids_to_remove - } - - if self._cached_manifest is None: - # Shouldn't happen, but type-safety's sake. - self._cached_manifest = PackageManifest.model_validate({}) - - self._cached_manifest.contract_types = filtered_contract_types - self._contracts = filtered_contract_types - - # NOTE: `ct.name is not None` more of a formality (for type-checking), - # as the CompilerManager ensures contracts have names. - return { - ct.name: ct - for ct in self.compiler_manager.compile(srcs_to_compile) - if ct.name is not None - } - - if self.project_manager.path.absolute() != self.path.absolute(): - # In case compiling a dependency (or anything outside the root project). - with self.config_manager.using_project( - self.path, contracts_folder=self.contracts_folder - ): - self.project_manager.load_dependencies() - return _compile_sources(project_sources) - else: - # Already in project - return _compile_sources(project_sources) - - -class ApeProject(BaseProject): - """ - The default implementation of the :class:`~ape.api.projects.ProjectAPI`. - By default, the `:class:`~ape.managers.project.ProjectManager` uses an - ``ApeProject`` at the current-working directory. - """ - - -class BrownieProject(BaseProject): - config_file_name: str = "brownie-config.yaml" - - @property - def brownie_config_path(self) -> Path: - return self.path / self.config_file_name - - @property - def is_valid(self) -> bool: - return self.brownie_config_path.is_file() - - def process_config_file(self, **kwargs) -> bool: - # Migrate the brownie-config.yaml file to ape-config.yaml - - migrated_config_data: dict[str, Any] = {} - with open(self.brownie_config_path) as brownie_config_file: - brownie_config_data = safe_load(brownie_config_file) or {} - - # Migrate dependencies - dependencies = [] - for dependency in brownie_config_data.get("dependencies", []): - dependency_dict = {} - dep_parts = dependency.split("/") - dep_name = dep_parts[0] - if len(dep_parts) > 1: - dependency_dict["name"] = dep_name - if "@" in dep_parts[1]: - suffix_parts = dep_parts[1].split("@") - dependency_dict["github"] = f"{dep_name}/{suffix_parts[0]}" - dependency_dict["version"] = suffix_parts[1] - else: - dependency_dict["github"] = dep_parts[1] - - if dependency_dict: - dependencies.append(dependency_dict) - - if dependencies: - migrated_config_data["dependencies"] = dependencies - - # Migrate solidity remapping - import_remapping = [] - solidity_version = None - if "compiler" in brownie_config_data: - compiler_config = brownie_config_data["compiler"] - if "solc" in compiler_config: - solidity_config = compiler_config["solc"] - solidity_version = solidity_config.get("version") - - available_dependencies = [d["name"] for d in dependencies] - brownie_import_remapping = solidity_config.get("remappings", []) - - for remapping in brownie_import_remapping: - parts = remapping.split("=") - map_key = parts[0] - real_path = parts[1] - - real_path_parts = real_path.split("/") - dependency_name = real_path_parts[0] - - if dependency_name in available_dependencies: - suffix = real_path_parts[1] - if "@" in suffix: - version_id = suffix.split("@")[1] - key = f"{map_key}/{self.contracts_folder.stem}" - entry = f"{dependency_name}/{version_id}" - import_remapping.append(f"{key}={entry}") - else: - import_remapping.append( - f"{parts[0]}/{self.contracts_folder.stem}={dependency_name}" - ) - - if import_remapping or solidity_version: - migrated_solidity_config: dict[str, Any] = {} - - if import_remapping: - migrated_solidity_config["import_remapping"] = import_remapping - - if solidity_version: - migrated_solidity_config["version"] = solidity_version - - migrated_config_data["solidity"] = migrated_solidity_config - - return super().process_config_file(**kwargs, **migrated_config_data) diff --git a/src/ape/managers/query.py b/src/ape/managers/query.py index f085bc246f..17ba3c36bd 100644 --- a/src/ape/managers/query.py +++ b/src/ape/managers/query.py @@ -140,7 +140,8 @@ def query( engine_to_use (Optional[str]): Short-circuit selection logic using a specific engine. Defaults is set by performance-based selection logic. - Raises: :class:`~ape.exceptions.QueryEngineError`: When given an invalid or + Raises: + :class:`~ape.exceptions.QueryEngineError`: When given an invalid or inaccessible ``engine_to_use`` value. Returns: diff --git a/src/ape/pytest/coverage.py b/src/ape/pytest/coverage.py index 1065182aca..39fc300418 100644 --- a/src/ape/pytest/coverage.py +++ b/src/ape/pytest/coverage.py @@ -15,13 +15,10 @@ CoverageReport, SourceTraceback, ) -from ape.utils import ( - ManagerAccessMixin, - get_current_timestamp_ms, - get_relative_path, - parse_coverage_tables, -) -from ape.utils.os import get_full_extension +from ape.utils.basemodel import ManagerAccessMixin +from ape.utils.misc import get_current_timestamp_ms +from ape.utils.os import get_full_extension, get_relative_path +from ape.utils.trace import parse_coverage_tables class CoverageData(ManagerAccessMixin): @@ -63,7 +60,7 @@ def _init_coverage_profile( timestamp = get_current_timestamp_ms() report = CoverageReport( projects=[project_coverage], - source_folders=[self.project_manager.contracts_folder], + source_folders=[self.local_project.contracts_folder], timestamp=timestamp, ) @@ -125,10 +122,10 @@ def cover( class CoverageTracker(ManagerAccessMixin): def __init__(self, config_wrapper: ConfigWrapper): self.config_wrapper = config_wrapper - sources = self.project_manager._contract_sources + sources = self.local_project._contract_sources self.data: Optional[CoverageData] = ( - CoverageData(self.project_manager.contracts_folder, sources) + CoverageData(self.local_project.path, sources) if self.config_wrapper.track_coverage else None ) @@ -183,7 +180,7 @@ def cover( for src in project.sources: # NOTE: We will allow this check to skip if there is no source is the # traceback. This helps increment methods that are missing from the source map. - path = self.project_manager.contracts_folder / src.source_id + path = self.local_project.contracts_folder / src.source_id if source_path is not None and path != source_path: continue @@ -282,7 +279,7 @@ def show_session_coverage(self) -> bool: # Reports are set in ape-config.yaml. reports = self.config_wrapper.ape_test_config.coverage.reports - out_folder = self.project_manager.local_project._cache_folder + out_folder = self.local_project.manifest_path.parent if reports.terminal: verbose = ( reports.terminal.get("verbose", False) diff --git a/src/ape/pytest/fixtures.py b/src/ape/pytest/fixtures.py index 27a0f88fc8..5d7f68f0a4 100644 --- a/src/ape/pytest/fixtures.py +++ b/src/ape/pytest/fixtures.py @@ -73,7 +73,7 @@ def project(self) -> ProjectManager: Access contract types and dependencies. """ - return self.project_manager + return self.local_project @pytest.fixture(scope="session") def Contract(self): diff --git a/src/ape/pytest/plugin.py b/src/ape/pytest/plugin.py index c26d010ea8..cc95dfab57 100644 --- a/src/ape/pytest/plugin.py +++ b/src/ape/pytest/plugin.py @@ -106,21 +106,21 @@ def pytest_load_initial_conftests(early_config): Compile contracts before loading ``conftest.py``s. """ capture_manager = early_config.pluginmanager.get_plugin("capturemanager") - - if not ManagerAccessMixin.project_manager.sources_missing: - # Suspend stdout capture to display compilation data - capture_manager.suspend() - try: - ManagerAccessMixin.project_manager.load_contracts() - except Exception as err: - logger.log_debug_stack_trace() - message = "Unable to load project. " - if logger.level > LogLevel.DEBUG: - message = f"{message}Use `-v DEBUG` to see more info.\n" - - err_type_name = getattr(type(err), "__name__", "Exception") - message = f"{message}Failure reason: ({err_type_name}) {err}" - raise pytest.UsageError(message) - - finally: - capture_manager.resume() + pm = ManagerAccessMixin.local_project + + # Suspend stdout capture to display compilation data + capture_manager.suspend() + try: + pm.load_contracts() + except Exception as err: + logger.log_debug_stack_trace() + message = "Unable to load project. " + if logger.level > LogLevel.DEBUG: + message = f"{message}Use `-v DEBUG` to see more info.\n" + + err_type_name = getattr(type(err), "__name__", "Exception") + message = f"{message}Failure reason: ({err_type_name}) {err}" + raise pytest.UsageError(message) + + finally: + capture_manager.resume() diff --git a/src/ape/pytest/runners.py b/src/ape/pytest/runners.py index 5bb0a57b59..132638d15d 100644 --- a/src/ape/pytest/runners.py +++ b/src/ape/pytest/runners.py @@ -51,7 +51,7 @@ def pytest_exception_interact(self, report, call): # Find the last traceback frame within the active project tb_frames: PytestTraceback = call.excinfo.traceback - base = self.project_manager.path.as_posix() + base = self.local_project.path.as_posix() if self.config_wrapper.show_internal: relevant_tb = list(tb_frames) @@ -114,7 +114,7 @@ def pytest_exception_interact(self, report, call): click.echo("Starting interactive mode. Type `exit` to halt current test.") namespace = {"_callinfo": call, **globals_dict, **locals_dict} - console(extra_locals=namespace, project=self.project_manager, embed=True) + console(extra_locals=namespace, project=self.local_project, embed=True) if capman: capman.resume_global_capture() diff --git a/src/ape/types/coverage.py b/src/ape/types/coverage.py index dab6290766..f343b04c93 100644 --- a/src/ape/types/coverage.py +++ b/src/ape/types/coverage.py @@ -333,7 +333,7 @@ def __getitem__(self, function_name: str) -> FunctionCoverage: if func: return func - raise IndexError(f"Function '{function_name}' not found.") + raise KeyError(f"Function '{function_name}' not found.") def model_dump(self, *args, **kwargs) -> dict: attribs = super().model_dump(*args, **kwargs) diff --git a/src/ape/utils/__init__.py b/src/ape/utils/__init__.py index cd4ceff670..6ac504d878 100644 --- a/src/ape/utils/__init__.py +++ b/src/ape/utils/__init__.py @@ -47,11 +47,13 @@ to_int, ) from ape.utils.os import ( + clean_path, create_tempdir, expand_environment_variables, get_all_files_in_directory, get_full_extension, get_relative_path, + in_tempdir, path_match, run_in_tempdir, use_temp_sys_path, @@ -74,6 +76,7 @@ "BaseInterface", "BaseInterfaceModel", "cached_property", + "clean_path", "create_tempdir", "DEFAULT_LIVE_NETWORK_BASE_FEE_MULTIPLIER", "DEFAULT_LOCAL_TRANSACTION_ACCEPTANCE_TIMEOUT", @@ -96,6 +99,7 @@ "get_current_timestamp_ms", "get_full_extension", "pragma_str_to_specifier_set", + "in_tempdir", "injected_before_use", "is_array", "is_dynamic_sized_type", diff --git a/src/ape/utils/_github.py b/src/ape/utils/_github.py index 7912dd8d3a..832b12ccd3 100644 --- a/src/ape/utils/_github.py +++ b/src/ape/utils/_github.py @@ -172,8 +172,9 @@ def clone_repo( raise ValueError(f"Scheme '{scheme}' not supported.") target_path = Path(target_path) + target_path.parent.mkdir(parents=True, exist_ok=True) if target_path.exists(): - # Else, cloning will fail! + # Target repo cannot exist. target_path = target_path / repo_name self.git.clone(url, branch=branch, target_path=target_path) diff --git a/src/ape/utils/basemodel.py b/src/ape/utils/basemodel.py index e9c1c4d09c..c4a345a5d2 100644 --- a/src/ape/utils/basemodel.py +++ b/src/ape/utils/basemodel.py @@ -23,7 +23,7 @@ from ape.managers.converters import ConversionManager from ape.managers.networks import NetworkManager from ape.managers.plugins import PluginManager - from ape.managers.project import DependencyManager, ProjectManager + from ape.managers.project import ProjectManager from ape.managers.query import QueryManager from ape.pytest.runners import PytestApeRunner @@ -121,15 +121,13 @@ class ManagerAccessMixin: "ConversionManager", injected_before_use() ) - dependency_manager: ClassVar["DependencyManager"] = cast( - "DependencyManager", injected_before_use() - ) - network_manager: ClassVar["NetworkManager"] = cast("NetworkManager", injected_before_use()) plugin_manager: ClassVar["PluginManager"] = cast("PluginManager", injected_before_use()) - project_manager: ClassVar["ProjectManager"] = cast("ProjectManager", injected_before_use()) + local_project: ClassVar["ProjectManager"] = cast("ProjectManager", injected_before_use()) + + Project: ClassVar[type["ProjectManager"]] = cast(type["ProjectManager"], injected_before_use()) query_manager: ClassVar["QueryManager"] = cast("QueryManager", injected_before_use()) diff --git a/src/ape/utils/misc.py b/src/ape/utils/misc.py index c057abe4aa..4e333831ac 100644 --- a/src/ape/utils/misc.py +++ b/src/ape/utils/misc.py @@ -39,13 +39,14 @@ ".DS_Store", ".git", ".gitkeep", + "*.adoc", + "*.css", + "*.html", "*.md", + "*.pdf", + "*.py*", "*.rst", "*.txt", - "*.py*", - "*.html", - "*.css", - "*.adoc", "*package.json", "*package-lock.json", "*tsconfig.json", diff --git a/src/ape/utils/os.py b/src/ape/utils/os.py index 4c149c9172..34c3123f8a 100644 --- a/src/ape/utils/os.py +++ b/src/ape/utils/os.py @@ -6,7 +6,7 @@ from fnmatch import fnmatch from pathlib import Path from re import Pattern -from tempfile import TemporaryDirectory +from tempfile import TemporaryDirectory, gettempdir from typing import Any, Optional, Union @@ -63,7 +63,7 @@ def get_relative_path(target: Path, anchor: Path) -> Path: def get_all_files_in_directory( - path: Path, pattern: Optional[Union[Pattern, str]] = None + path: Path, pattern: Optional[Union[Pattern, str]] = None, max_files: Optional[int] = None ) -> list[Path]: """ Returns all the files in a directory structure (recursive). @@ -80,6 +80,8 @@ def get_all_files_in_directory( path (pathlib.Path): A directory containing files of interest. pattern (Optional[Union[Pattern, str]]): Optionally provide a regex pattern to match. + max_files (Optional[int]): Optionally set a max file count. This is useful + because huge file structures will be very slow. Returns: list[pathlib.Path]: A list of files in the given directory. @@ -89,15 +91,21 @@ def get_all_files_in_directory( elif not path.is_dir(): return [] - # is dir - all_files = [p for p in list(path.rglob("*.*")) if p.is_file()] - if pattern: - if isinstance(pattern, str): - pattern = re.compile(pattern) + pattern_obj: Optional[Pattern] = None + if isinstance(pattern, str): + pattern_obj = re.compile(pattern) + elif pattern is not None: + pattern_obj = pattern - return [f for f in all_files if pattern.match(f.name)] + # is dir + result: list[Path] = [] + for file in (p for p in path.rglob("*.*") if p.is_file()): + if (max_files is None or max_files is not None and len(result) < max_files) and ( + pattern_obj is None or pattern_obj.match(file.name) + ): + result.append(file) - return all_files + return result def expand_environment_variables(contents: str) -> str: @@ -145,12 +153,22 @@ def __exit__(self, *exc): sys.path.append(path) -def get_full_extension(path: Path) -> str: +def get_full_extension(path: Union[Path, str]) -> str: """ For a path like ``Path("Contract.t.sol")``, returns ``.t.sol``, unlike the regular Path property ``.suffix`` which returns ``.sol``. + + Args: + path (Path | str): The path with an extension. + + Returns: + str: The full suffix """ + if not path: + return "" + + path = Path(path) if path.is_dir(): return "" @@ -206,8 +224,7 @@ def run_in_tempdir( Args: fn (Callable): A function that takes a path. It gets called with the resolved path to the temporary directory. - name (Optional[str]): Optionally provide a name for the temporary - directory. + name (Optional[str]): Optionally name the temporary directory. Returns: Any: The result of the function call. @@ -216,6 +233,21 @@ def run_in_tempdir( return fn(temp_dir) +def in_tempdir(path: Path) -> bool: + """ + Returns ``True`` when the given path is in a temporary directory. + + Args: + path (Path): The path to check. + + Returns: + bool + """ + temp_dir = os.path.normpath(f"{Path(gettempdir()).resolve()}") + normalized_path = os.path.normpath(path) + return normalized_path.startswith(temp_dir) + + def path_match(path: Union[str, Path], *exclusions: str) -> bool: """ A better glob-matching function. For example: @@ -254,6 +286,17 @@ def path_match(path: Union[str, Path], *exclusions: str) -> bool: def clean_path(path: Path) -> str: + """ + Replace the home directory with key ``$HOME`` and return + the path as a str. This is used for outputting paths + with less doxxing. + + Args: + path (Path): The path to sanitize. + + Returns: + str: A sanitized path-str. + """ home = Path.home() if path.is_relative_to(home): return f"$HOME{os.path.sep}{path.relative_to(home)}" diff --git a/src/ape_compile/__init__.py b/src/ape_compile/__init__.py index d724c52716..e5154686e9 100644 --- a/src/ape_compile/__init__.py +++ b/src/ape_compile/__init__.py @@ -1,25 +1,27 @@ -from pathlib import Path -from typing import Optional - -from pydantic import field_validator, model_validator +from pydantic import field_validator from ape import plugins -from ape.api import PluginConfig +from ape.api.config import ConfigEnum, PluginConfig from ape.utils.misc import SOURCE_EXCLUDE_PATTERNS -DEFAULT_CACHE_FOLDER_NAME = ".cache" # default relative to contracts/ + +class OutputExtras(ConfigEnum): + """ + Extra stuff you can output. It will + appear in ``.build/{key.lower()/`` + """ + + ABI = "ABI" + """ + Include this value to output the ABIs of your contracts + to minified JSONs. This is useful for hosting purposes + for web-apps. + """ class Config(PluginConfig): - include_dependencies: bool = False """ - Set to ``True`` to compile dependencies during ``ape compile``. - Generally, dependencies are not compiled during ``ape compile`` - This is because dependencies may not compile in Ape on their own, - but you can still reference them in your project's contracts' imports. - Some projects may be more dependency-based and wish to have the - contract types always compiled during ``ape compile``, and these projects - should configure ``include_dependencies`` to be ``True``. + Configure general compiler settings. """ exclude: set[str] = set() @@ -30,55 +32,21 @@ class Config(PluginConfig): included in this set. """ - cache_folder: Optional[Path] = None + include_dependencies: bool = False """ - Path to contract dependency cache directory (e.g. `contracts/.cache`) + Set to ``True`` to compile dependencies during ``ape compile``. + Generally, dependencies are not compiled during ``ape compile`` + This is because dependencies may not compile in Ape on their own, + but you can still reference them in your project's contracts' imports. + Some projects may be more dependency-based and wish to have the + contract types always compiled during ``ape compile``, and these projects + should configure ``include_dependencies`` to be ``True``. """ - @property - def base_path(self) -> Path: - """The base directory for compilation file path references""" - - # These should be initialized by plugin config loading and pydantic validators before the - # time this prop is accessed. - assert self._config_manager is not None - assert self.cache_folder is not None - - # If the dependency cache folder is configured, to be outside of the contracts dir, we want - # to use the projects folder to be the base dir for compilation. - if self._config_manager.contracts_folder not in self.cache_folder.parents: - return self._config_manager.PROJECT_FOLDER - - # Otherwise, we're defaulting to contracts folder for backwards compatibility. Changing this - # will cause existing projects to compile to different bytecode. - return self._config_manager.contracts_folder - - @model_validator(mode="after") - def validate_cache_folder(self): - if self._config_manager is None: - return # Not enough information to continue at this time - - contracts_folder = self._config_manager.contracts_folder - project_folder = self._config_manager.PROJECT_FOLDER - - # Set unconfigured default - if self.cache_folder is None: - self.cache_folder = contracts_folder / DEFAULT_CACHE_FOLDER_NAME - - # If we get a relative path, assume it's relative to project root (where the config file - # lives) - elif not self.cache_folder.is_absolute(): - self.cache_folder = project_folder / self.cache_folder - - # Do not allow escape of the project folder for security and functionality reasons. Paths - # outside the relative compilation root are not portable and will cause bytecode changes. - project_resolved = project_folder.resolve() - cache_resolved = self.cache_folder.resolve() - if project_resolved not in cache_resolved.parents: - raise ValueError( - "cache_folder must be a child of the project directory. " - f"{project_resolved} not in {cache_resolved}" - ) + output_extra: list[OutputExtras] = [] + """ + Extra selections to output. Outputs to ``.build/{key.lower()}``. + """ @field_validator("exclude", mode="before") @classmethod diff --git a/src/ape_compile/_cli.py b/src/ape_compile/_cli.py index 989d2fa5ee..8e5bba71e9 100644 --- a/src/ape_compile/_cli.py +++ b/src/ape_compile/_cli.py @@ -1,22 +1,20 @@ +import sys from pathlib import Path import click from ethpm_types import ContractType -from ape.cli import ape_cli_context, config_override_option, contract_file_paths_argument +from ape.cli.arguments import contract_file_paths_argument +from ape.cli.options import ape_cli_context, config_override_option, project_option def _include_dependencies_callback(ctx, param, value): return value or ctx.obj.config_manager.get_config("compile").include_dependencies -def _config_override_callback(ctx, param, value): - if value: - ctx.obj.config_manager.load(force_reload=True, **value) - - @click.command(short_help="Compile select contract source files") @ape_cli_context() +@project_option() @contract_file_paths_argument() @click.option( "-f", @@ -41,9 +39,10 @@ def _config_override_callback(ctx, param, value): help="Also compile dependencies", callback=_include_dependencies_callback, ) -@config_override_option(callback=_config_override_callback) +@config_override_option() def cli( cli_ctx, + project, file_paths: set[Path], use_cache: bool, display_size: bool, @@ -57,26 +56,47 @@ def cli( Note that ape automatically recompiles any changed contracts each time a project is loaded. You do not have to manually trigger a recompile. """ - sources_missing = cli_ctx.project_manager.sources_missing - if not file_paths and sources_missing and len(cli_ctx.project_manager.dependencies) == 0: + compiled = False + errored = False + + if cfg := config_override: + project.reconfigure(**cfg) + + if file_paths: + contracts = { + k: v.contract_type + for k, v in project.load_contracts(*file_paths, use_cache=use_cache).items() + } + cli_ctx.logger.success("'local project' compiled.") + compiled = True + if display_size: + _display_byte_code_sizes(cli_ctx, contracts) + + if (include_dependencies or project.config.compile.include_dependencies) and len( + project.dependencies + ) > 0: + for dependency in project.dependencies: + # Even if compiling we failed, we at least tried + # and so we don't need to warn "Nothing to compile". + compiled = True + + try: + contract_types = dependency.project.load_contracts(use_cache=use_cache) + except Exception as err: + cli_ctx.logger.log_error(err) + errored = True + continue + + cli_ctx.logger.success(f"'{dependency.project.name}' compiled.") + if display_size: + _display_byte_code_sizes(cli_ctx, contract_types) + + if not compiled: cli_ctx.logger.warning("Nothing to compile.") - return - contract_types = cli_ctx.project_manager.load_contracts( - file_paths=file_paths, use_cache=use_cache - ) - - if include_dependencies: - for versions in cli_ctx.project_manager.dependencies.values(): - for dependency in versions.values(): - try: - dependency.compile(use_cache=use_cache) - except Exception as err: - # Log error and try to compile the remaining dependencies. - cli_ctx.logger.error(err) - - if display_size: - _display_byte_code_sizes(cli_ctx, contract_types) + if errored: + # Ensure exit code. + sys.exit(1) def _display_byte_code_sizes(cli_ctx, contract_types: dict[str, ContractType]): diff --git a/src/ape_console/_cli.py b/src/ape_console/_cli.py index a0156586c8..7e65dbb316 100644 --- a/src/ape_console/_cli.py +++ b/src/ape_console/_cli.py @@ -12,8 +12,9 @@ import IPython from IPython.terminal.ipapp import Config as IPythonConfig -from ape.cli import ConnectedProviderCommand, ape_cli_context -from ape.managers import ProjectManager +from ape.cli.commands import ConnectedProviderCommand +from ape.cli.options import ape_cli_context, project_option +from ape.managers.project import ProjectManager from ape.utils.basemodel import ManagerAccessMixin from ape.utils.misc import _python_version from ape.version import version as ape_version @@ -28,10 +29,11 @@ context_settings=dict(ignore_unknown_options=True), ) @ape_cli_context() -def cli(cli_ctx): +@project_option(hidden=True) # Hidden as mostly used for test purposes. +def cli(cli_ctx, project): """Opens a console for the local project.""" verbose = cli_ctx.logger.level == logging.DEBUG - return console(verbose=verbose) + return console(project=project, verbose=verbose) def import_extras_file(file_path) -> ModuleType: @@ -50,7 +52,7 @@ def import_extras_file(file_path) -> ModuleType: def load_console_extras(**namespace: Any) -> dict[str, Any]: """load and return namespace updates from ape_console_extras.py files if they exist""" - pm = namespace.get("project", ManagerAccessMixin.project_manager) + pm = namespace.get("project", ManagerAccessMixin.local_project) global_extras = pm.config_manager.DATA_FOLDER.joinpath(CONSOLE_EXTRAS_FILENAME) project_extras = pm.path.joinpath(CONSOLE_EXTRAS_FILENAME) @@ -96,7 +98,7 @@ def console( ): import ape - project = project or ManagerAccessMixin.project_manager + project = project or ManagerAccessMixin.local_project banner = "" if verbose: banner = """ diff --git a/src/ape_console/plugin.py b/src/ape_console/plugin.py index c97f173ca7..30802abfb8 100644 --- a/src/ape_console/plugin.py +++ b/src/ape_console/plugin.py @@ -12,7 +12,7 @@ from ape._cli import cli from ape.exceptions import Abort, ApeException, handle_ape_exception from ape.logging import logger -from ape.managers import ProjectManager +from ape.managers.project import LocalProject from ape.types import AddressType from ape.utils import ManagerAccessMixin, cached_property from ape.utils.os import clean_path @@ -80,12 +80,12 @@ def bal(self, line: str = ""): def custom_exception_handler(self, etype, value, tb, tb_offset=None): project = self.user_ns["project"] - if isinstance(project, ProjectManager): + if isinstance(project, LocalProject): path = project.path else: # This happens if assigned the variable `project` in your session # to something other than ``ape.project``. - path = ManagerAccessMixin.project_manager.path + path = ManagerAccessMixin.local_project.path if not handle_ape_exception(value, [path]): logger.error(Abort.from_ape_exception(value).format_message()) diff --git a/src/ape_ethereum/ecosystem.py b/src/ape_ethereum/ecosystem.py index 207622c813..47d5feebf9 100644 --- a/src/ape_ethereum/ecosystem.py +++ b/src/ape_ethereum/ecosystem.py @@ -373,7 +373,6 @@ class Ethereum(EcosystemAPI): # NOTE: `default_transaction_type` should be overridden # if the chain doesn't support EIP-1559. - name: str = "ethereum" fee_token_symbol: str = "ETH" @property diff --git a/src/ape_ethereum/provider.py b/src/ape_ethereum/provider.py index 582991f0e7..a1ad2cbe2f 100644 --- a/src/ape_ethereum/provider.py +++ b/src/ape_ethereum/provider.py @@ -461,7 +461,7 @@ def send_call( if track_coverage and self._test_runner is not None and txn.receiver: if contract_type := self.chain_manager.contracts.get(txn.receiver): - if contract_src := self.project_manager._create_contract_source(contract_type): + if contract_src := self.local_project._create_contract_source(contract_type): method_id = HexBytes(txn.data) selector = ( contract_type.methods[method_id].selector @@ -501,7 +501,7 @@ def _eth_call(self, arguments: list) -> HexBytes: method_id = arguments[0].get("data", "")[:10] or None tb = None if contract_type and method_id: - if contract_src := self.project_manager._create_contract_source(contract_type): + if contract_src := self.local_project._create_contract_source(contract_type): tb = SourceTraceback.create(contract_src, trace, method_id) raise self.get_virtual_machine_error( diff --git a/src/ape_ethereum/transactions.py b/src/ape_ethereum/transactions.py index 58bc1063c3..9097ad19c5 100644 --- a/src/ape_ethereum/transactions.py +++ b/src/ape_ethereum/transactions.py @@ -243,7 +243,7 @@ def method_called(self) -> Optional[MethodABI]: @cached_property def source_traceback(self) -> SourceTraceback: if contract_type := self.contract_type: - if contract_src := self.project_manager._create_contract_source(contract_type): + if contract_src := self.local_project._create_contract_source(contract_type): try: return SourceTraceback.create(contract_src, self.trace, HexBytes(self.data)) except Exception as err: diff --git a/src/ape_node/provider.py b/src/ape_node/provider.py index 83be131936..ff4e0ec8a5 100644 --- a/src/ape_node/provider.py +++ b/src/ape_node/provider.py @@ -238,7 +238,7 @@ def chain_id(self) -> int: @property def data_dir(self) -> Path: # Overridden from base class for placing debug logs in ape data folder. - return self.settings.data_dir or self.data_folder / self.name + return self.settings.data_dir or self.config_manager.DATA_FOLDER / self.name @log_instead_of_fail(default="") def __repr__(self) -> str: diff --git a/src/ape_pm/__init__.py b/src/ape_pm/__init__.py index 420a198792..8cdca0b26f 100644 --- a/src/ape_pm/__init__.py +++ b/src/ape_pm/__init__.py @@ -1,8 +1,31 @@ from ape import plugins from .compiler import InterfaceCompiler +from .dependency import GithubDependency, LocalDependency, NpmDependency +from .projects import BrownieProject @plugins.register(plugins.CompilerPlugin) def register_compiler(): return (".json",), InterfaceCompiler + + +@plugins.register(plugins.DependencyPlugin) +def dependencies(): + yield "github", GithubDependency + yield "local", LocalDependency + yield "npm", NpmDependency + + +@plugins.register(plugins.ProjectPlugin) +def projects(): + yield BrownieProject + + +__all__ = [ + "BrownieProject", + "GithubDependency", + "InterfaceCompiler", + "LocalDependency", + "NpmDependency", +] diff --git a/src/ape_pm/_cli.py b/src/ape_pm/_cli.py index 335e58620b..e6a97fc0e1 100644 --- a/src/ape_pm/_cli.py +++ b/src/ape_pm/_cli.py @@ -1,10 +1,13 @@ -import json +import sys from pathlib import Path from typing import Optional import click -from ape.cli import ape_cli_context, config_override_option +from ape.cli.options import ape_cli_context, config_override_option +from ape.exceptions import ProjectError +from ape.logging import logger +from ape.managers.project import Dependency @click.group() @@ -14,64 +17,36 @@ def cli(): """ -def _echo_no_packages(project: bool): - message = "No packages installed" - if project: - message = f"{message} for this project" - - click.echo(f"{message}.") - - @cli.command("list") @ape_cli_context() -@click.option( - "_all", "--all", is_flag=True, help="Include packages not referenced by the local project" -) -def _list(cli_ctx, _all): +@click.option("--all", "list_all", help="List all installed dependencies", is_flag=True) +def _list(cli_ctx, list_all): """ List installed packages """ + pm = cli_ctx.local_project packages = [] - packages_folder = cli_ctx.dependency_manager.DATA_FOLDER / "packages" - if _all: - if not packages_folder.is_dir(): - _echo_no_packages(False) - return - - for dependency in packages_folder.iterdir(): - base_item = {"name": dependency.name} - for version_dir in dependency.iterdir(): - item = { - "version": version_dir.name, - **base_item, - "compiled": _check_compiled(version_dir), - } - packages.append(item) + dependencies = [*list(pm.dependencies.specified)] + if list_all: + dependencies = list(set([*dependencies, *pm.dependencies.installed])) - else: - # Limit to local project. - for dependency in cli_ctx.config_manager.dependencies: - item = {"name": dependency.name, "version": dependency.version_id, "compiled": False} - - # Check if compiled. - if packages_folder.is_dir(): - for package_dir in packages_folder.iterdir(): - if package_dir.is_dir() and package_dir.name == dependency.name: - for version_dir in package_dir.iterdir(): - versions = [dependency.version_id] - if versions[0].startswith("v"): - versions.append(dependency.version_id[1:]) - else: - versions.append(f"v{dependency.version_id}") - - if version_dir.is_dir() and version_dir.name in versions: - item["compiled"] = _check_compiled(version_dir) - - packages.append(item) + for dependency in dependencies: + try: + is_compiled = dependency.project.is_compiled + except ProjectError: + # Project may not even be installed right. + is_compiled = False + + item = { + "name": dependency.name, + "version": dependency.version, + "compiled": is_compiled, + } + packages.append(item) if not packages: - _echo_no_packages(not _all) + click.echo("No packages installed.") return # Output gathered packages. @@ -94,7 +69,7 @@ def get_package_str(_package) -> str: def rows(): yield f"NAME{header_name_space}VERSION{version_name_space}COMPILED\n" - for _package in packages: + for _package in sorted(packages, key=lambda p: f"{p['name']}{p['version']}"): yield f"{get_package_str(_package)}\n" if len(packages) > 16: @@ -104,15 +79,6 @@ def rows(): click.echo(row.strip()) -def _check_compiled(version_dir: Path) -> bool: - file = next(version_dir.iterdir(), None) - return ( - bool(json.loads(file.read_text()).get("contractTypes")) - if file and file.is_file() - else False - ) - - def _handle_package_path(path: Path, original_value: Optional[str] = None) -> dict: if not path.exists(): value = original_value or path.as_posix() @@ -139,7 +105,7 @@ def _package_callback(ctx, param, value): elif value.startswith("npm:"): # Is an NPM style dependency - return {"npm:": value[4:]} + return {"npm": value[4:]} elif value == ".": return value @@ -162,7 +128,7 @@ def _package_callback(ctx, param, value): @cli.command() @ape_cli_context() -@click.argument("package", nargs=1, required=False, callback=_package_callback) +@click.argument("package", required=False, callback=_package_callback) @click.option("--name", help="The name of the dependency", metavar="NAME") @click.option("--version", help="The dependency's version", metavar="VERSION") @click.option( @@ -177,73 +143,47 @@ def install(cli_ctx, package, name, version, ref, force, config_override): Download and cache packages """ - log_name = None - + pm = cli_ctx.local_project if not package or package == ".": - if config_override: - # TODO: Handle correctly in project-refactor for feat/08 - cli_ctx.abort("Cannot provide 'config_override' option without specific package(s).") - - # `ape pm install`: Load all dependencies from current package. - try: - cli_ctx.project_manager.load_dependencies(use_cache=not force) - except Exception as err: - cli_ctx.logger.log_debug_stack_trace() - cli_ctx.abort(f"Failed loading dependencies: {err}") - - elif name: - # `ape pm install `: Is a specific package. - data = {"name": name, **package} - if version is not None: - data["version"] = version - if ref is not None: - data["ref"] = ref - if config_override: - data["config_override"] = config_override + if version: + cli_ctx.abort("Cannot specify version when installing from config.") - try: - dependency_obj = cli_ctx.dependency_manager.decode_dependency(data) - except Exception as err: - try: - data_str = ", ".join([f"{k}={v}" for k, v in data.items()]) - except Exception: - try: - data_str = f"{data}" - except Exception: - data_str = "" + pm.dependencies.install(use_cache=not force) + message = "All project packages installed." + if not force: + message = f"{message} Use `--force` to re-install." - message = "Issue with dependency data" - if data_str: - message = f"{message}: {data_str}" - - message = f"{message}. Err={err}" - cli_ctx.abort(message) - - else: - dependency_obj.extract_manifest(use_cache=not force) - log_name = f"{dependency_obj.name}@{dependency_obj.version_id}" + cli_ctx.logger.success(message) + return - else: - # This is **not** the local project, but no --name was given. - # NOTE: `--version` is not required when using local dependencies. - cli_ctx.abort("Must provide --name") + if name: + package["name"] = name + if ref: + package["ref"] = ref + if version: + package["version"] = version + if config_override: + package["config_override"] = config_override - if log_name: - cli_ctx.logger.success(f"Package '{log_name}' installed.") + try: + dependency = pm.dependencies.install(**package, use_cache=not force) + except Exception as err: + cli_ctx.logger.log_error(err) else: - cli_ctx.logger.success("All project packages installed.") + assert isinstance(dependency, Dependency) # for mypy + cli_ctx.logger.success(f"Package '{dependency.name}@{dependency.version}' installed.") @cli.command() @ape_cli_context() -@click.argument("package", nargs=1, required=True) +@click.argument("name", required=False) @click.argument("versions", nargs=-1, required=False) @click.option( "-y", "--yes", is_flag=True, help="Automatically confirm the removal of the package(s)" ) -def uninstall(cli_ctx, package, versions, yes): +def uninstall(cli_ctx, name, versions, yes): """ - Remove a package + Uninstall a package This command removes a package from the installed packages. @@ -256,62 +196,75 @@ def uninstall(cli_ctx, package, versions, yes): - Prompt to choose versions: ape pm remove \n - Remove all versions: ape pm remove -y """ - package_dir = cli_ctx.dependency_manager.DATA_FOLDER / "packages" / package - if not package_dir.is_dir(): - cli_ctx.abort(f"Package '{package}' is not installed.") - # Remove multiple versions if no version is specified - versions_to_remove = versions if versions else [] - if len(versions_to_remove) == 1 and versions_to_remove[0] == "all": - versions_to_remove = [d.name for d in package_dir.iterdir() if d.is_dir()] + pm = cli_ctx.local_project + + # NOTE: Purposely don't call `get_dependency` or anything so we for sure + # are only checking the installed. + installed = {d for d in pm.dependencies.installed} + + did_error = False + did_find = False - elif not versions_to_remove: - available_versions = [d.name for d in package_dir.iterdir() if d.is_dir()] - if not available_versions: - cli_ctx.abort(f"No installed versions of package '{package}' found.") + if not name or name == ".": + if versions: + cli_ctx.abort("Cannot specify version when uninstalling from config.") - # If there is only one version, use that. - if len(available_versions) == 1 or yes: - versions_to_remove = available_versions + # Uninstall all dependencies from the config. + for cfg in pm.config.dependencies: + api = pm.dependencies.decode_dependency(**cfg) + for dependency in installed: + if dependency.name != api.name or dependency.version != api.version_id: + continue + did_find = True + res = _uninstall(dependency, yes=yes) + if res is False: + did_error = True + + else: + deps_to_remove = { + d for d in installed if d.name == name and (d.version in versions if versions else True) + } + for dependency in deps_to_remove: + did_find = True + res = _uninstall(dependency, yes=yes) + if res is False: + did_error = True + + if not did_find: + if name: + name = ", ".join([f"{name}={v}" for v in versions]) if versions else name + cli_ctx.logger.error(f"Package(s) '{name}' not installed.") else: - version_prompt = ( - f"Which versions of package '{package}' do you want to remove? " - f"{available_versions} (separate multiple versions with comma, or 'all')" + cli_ctx.logger.error( + "No package(s) installed in local project. " + "Please specify a package to uninstall or go to a local project." ) - versions_input = click.prompt(version_prompt) - if versions_input.strip() == "all": - versions_to_remove = available_versions - else: - versions_to_remove = [v.strip() for v in versions_input.split(",") if v.strip()] - # Prevents a double-prompt. - yes = True + did_error = True - if not versions_to_remove: - cli_ctx.logger.info("No versions selected for removal.") - return + sys.exit(int(did_error)) - # Remove all the versions specified - for version in versions_to_remove: - if not (package_dir / version).is_dir() and not (package_dir / f"v{version}").is_dir(): - cli_ctx.logger.warning( - f"Version '{version}' of package '{package_dir.name}' is not installed." - ) - continue - elif yes or click.confirm( - f"Are you sure you want to remove version '{version}' of package '{package}'?" - ): - cli_ctx.project_manager.remove_dependency(package_dir.name, versions=[version]) - cli_ctx.logger.success( - f"Version '{version}' of package '{package_dir.name}' uninstalled." - ) +def _uninstall(dependency: Dependency, yes: bool = False) -> bool: + key = f"{dependency.name}={dependency.version}" + if not yes and not click.confirm(f"Remove '{key}'"): + return True # Not an error. + + try: + dependency.uninstall() + except Exception as err: + logger.error(f"Failed uninstalling '{key}': {err}") + return False + + logger.success(f"Uninstalled '{key}'.") + return True @cli.command() @ape_cli_context() -@click.argument("name", nargs=1, required=False) +@click.argument("name", required=False) @click.option("--version", help="The dependency version", metavar="VERSION") @click.option("--force", "-f", help="Force a re-compile", is_flag=True) @config_override_option() @@ -319,68 +272,50 @@ def compile(cli_ctx, name, version, force, config_override): """ Compile a package """ + pm = cli_ctx.local_project + if not name or name == ".": + if version: + cli_ctx.abort("Cannot specify 'version' without 'name'.") + + # Compile all from config. + did_error = False + for cfg in pm.config.dependencies: + if config_override: + cfg["config_override"] = config_override + + dependency = pm.dependencies.install(**cfg) + try: + dependency.compile(use_cache=not force) + except Exception as err: + cli_ctx.logger.error(str(err)) + continue + else: + cli_ctx.logger.success( + f"Package '{dependency.name}@{dependency.version}' compiled." + ) - if not name: - # Compile all local project dependencies. - for dep_name, versions in cli_ctx.project_manager.dependencies.items(): - for version, dependency in versions.items(): - log_line = dep_name - if version != "local": - log_line += f"@{version}" - - if config_override: - dependency.config_override = config_override - try: - dependency.compile(use_cache=not force) - except Exception as err: - cli_ctx.logger.error(err) - else: - cli_ctx.logger.success(f"Package '{log_line}' compiled.") + if did_error: + sys.exit(1) return - elif name not in cli_ctx.project_manager.dependencies: - cli_ctx.abort(f"Dependency '{name}' unknown. Is it installed?") - - if not (versions := cli_ctx.project_manager.dependencies[name]): - # This shouldn't happen. - cli_ctx.abort("No versions.") - - if not version and len(versions) == 1: - # Version is not specified but we can use the only existing version. - version = list(versions.keys())[0] - - elif not version: - cli_ctx.abort("Please specify --version.") - - version_opts: tuple - if version == "local": - version_opts = (version,) - elif version.startswith("v"): - version_opts = (f"v{version}", str(version)) + if version: + to_compile = [pm.dependencies.get_dependency(name, version)] else: - version_opts = (str(version), str(version[1:])) - - version_found = None - for version_i in version_opts: - if version_i in versions: - version_found = version_i - break + to_compile = [d for d in pm.dependencies.get_versions(name)] - if not version_found: - cli_ctx.abort(f"Version '{version}' for dependency '{name}' not found. Is it installed?") + if not to_compile: + key = f"{name}@{version}" if version else name + cli_ctx.abort(f"Dependency '{key}' unknown. Is it installed?") - dependency = versions[version_found] - if config_override: - dependency.config_override = config_override - - try: - dependency.compile(use_cache=not force) - except Exception as err: - cli_ctx.logger.error(err) - else: - log_line = name - if version_found and version_found != "local": - log_line = f"{log_line}@{version_found}" + for dependency in to_compile: + if config_override: + dependency.api.config_override = config_override - cli_ctx.logger.success(f"Package '{log_line}' compiled.") + try: + dependency.compile(use_cache=not force) + except Exception as err: + cli_ctx.logger.error(str(err)) + continue + else: + cli_ctx.logger.success(f"Package '{dependency.name}@{dependency.version}' compiled.") diff --git a/src/ape_pm/compiler.py b/src/ape_pm/compiler.py index b83c50af05..ad7ac652b5 100644 --- a/src/ape_pm/compiler.py +++ b/src/ape_pm/compiler.py @@ -1,5 +1,6 @@ import json from collections.abc import Iterable, Iterator +from json import JSONDecodeError from pathlib import Path from typing import Optional @@ -7,13 +8,20 @@ from eth_utils import is_0x_prefixed from ethpm_types import ContractType -from ape.api import CompilerAPI +from ape.api.compiler import CompilerAPI from ape.exceptions import CompilerError, ContractLogicError from ape.logging import logger -from ape.utils import get_relative_path +from ape.managers.project import ProjectManager +from ape.utils.os import get_relative_path class InterfaceCompiler(CompilerAPI): + """ + A compiler plugin for interface JSONs (ABIs). Also, this + compiler can "compile" already-compiled ``ContractType`` + JSON files. + """ + @property def name(self) -> str: return "ethpm" @@ -24,44 +32,55 @@ def get_versions(self, all_paths: Iterable[Path]) -> set[str]: return set() def compile( - self, filepaths: Iterable[Path], base_path: Optional[Path] = None + self, + contract_filepaths: Iterable[Path], + project: Optional["ProjectManager"], + settings: Optional[dict] = None, ) -> Iterator[ContractType]: - for path in filepaths: - source_path = ( - get_relative_path(path, base_path) if base_path and path.is_absolute() else path - ) - source_id = str(source_path) - code = path.read_text() - if not code: - continue - + project = project or self.local_project + source_ids = { + p: f"{get_relative_path(p, project.path.absolute())}" if p.is_absolute() else str(p) + for p in contract_filepaths + } + logger.info(f"Compiling {', '.join(source_ids.values())}.") + for path in contract_filepaths: + if not path.is_file() and (project.path / path).is_file(): + # Was given a relative path. + src_path = project.path / path + elif not path.is_file(): + raise CompilerError(f"'{path}' is not a file.") + else: + src_path = path + + code = src_path.read_text() + source_id = source_ids[path] try: # NOTE: Always set the source ID to the source of the JSON file # to avoid manifest corruptions later on. - contract_type = self.compile_code( - code, - base_path=base_path, - sourceId=source_id, + contract_type = self.compile_code(code, project=project, sourceId=source_id) + except CompilerError as err: + logger.warning( + f"Unable to parse {ContractType.__name__} from '{source_id}'. Reason: {err}" ) - - # NOTE: Try getting name/ ID from code-JSON first. - # That's why this is not part of `contract_type_overrides`. - if not contract_type.name: - contract_type.name = path.stem - - except CompilerError: - logger.warning(f"Unable to parse {ContractType.__name__} from '{source_id}'.") continue + # NOTE: Try getting name/ ID from code-JSON first. + # That's why this is not part of `**kwargs` in `compile_code()`. + contract_type.name = contract_type.name or src_path.stem yield contract_type def compile_code( self, code: str, - base_path: Optional[Path] = None, + project: Optional[ProjectManager] = None, **kwargs, ) -> ContractType: - data = json.loads(code) + code = code or "[]" + try: + data = json.loads(code) + except JSONDecodeError as err: + raise CompilerError(str(err)) from err + if isinstance(data, list): # ABI JSON list contract_type_data = {"abi": data, **kwargs} diff --git a/src/ape_pm/dependency.py b/src/ape_pm/dependency.py new file mode 100644 index 0000000000..7fea71a224 --- /dev/null +++ b/src/ape_pm/dependency.py @@ -0,0 +1,338 @@ +import json +import os +import shutil +from collections.abc import Iterable +from functools import cached_property +from pathlib import Path +from typing import Optional, Union + +from pydantic import model_validator + +from ape.api.projects import DependencyAPI +from ape.exceptions import ProjectError +from ape.logging import logger +from ape.utils import clean_path, in_tempdir +from ape.utils._github import github_client + + +class LocalDependency(DependencyAPI): + """ + A dependency located on the local machine. + """ + + local: Path + """ + The root path (and API defining key) to the dependency files. + """ + + version: Optional[str] = None + """ + Specified version. + """ + + @model_validator(mode="before") + @classmethod + def validate_local_path(cls, model): + # Resolves the relative path so if the dependency API + # data moves, it will still work. + path = Path(model["local"]) + if path.is_absolute(): + return model + + elif "project" in model: + # Just in case relative paths didn't get resolved. + # Note: Generally, they should be resolved at model + # construction time, if parsing a config file normally. + project = model.pop("project") + model["local"] = (project / path).resolve() + + return model + + def __repr__(self) -> str: + path = clean_path(self.local) + return f"" + + @property + def package_id(self) -> str: + path = self.local + if in_tempdir(path): + # Avoids never-ending tmp paths. + return self.name + + else: + return self.local.as_posix() + + @property + def version_id(self) -> str: + return self.version or "local" + + @property + def uri(self) -> str: + return self.local.as_uri() + + def fetch(self, destination: Path): + if destination.is_dir(): + destination = destination / self.name + + if self.local.is_dir(): + project = self.Project(self.local, config_override=self.config_override) + project.unpack(destination) + elif self.local.is_file() and self.local.suffix == ".json": + # Using a manifest directly as a dependency. + if not destination.suffix: + destination = destination / self.local.name + + destination.unlink(missing_ok=True) + destination.parent.mkdir(parents=True, exist_ok=True) + destination.write_text(self.local.read_text()) + + +class GithubDependency(DependencyAPI): + """ + A dependency from Github. Use the ``github`` key in your ``dependencies:`` + section of your ``ape-config.yaml`` file to declare a dependency from GitHub. + + Config example:: + + dependencies: + - name: OpenZeppelin + github: OpenZeppelin/openzeppelin-contracts + version: 4.4.0 + """ + + github: str + """ + The Github repo ID e.g. the organization name followed by the repo name, + such as ``dapphub/erc20``. + """ + + ref: Optional[str] = None + """ + The branch or tag to use. When using this field + instead of the 'release' field, the repository + gets cloned instead of downloaded via the + official GitHub release API. + + **NOTE**: Will be ignored if given a 'release'. + """ + + version: Optional[str] = None + """ + The release version to use. When using this + field instead of the 'ref' field, the GitHub + release API is used to fetch instead of cloning. + + **NOTE**: Will be ignored if given a 'ref'. + """ + + @model_validator(mode="before") + @classmethod + def branch_to_ref(cls, model): + if "branch" in model and "ref" not in model: + # Handle branch as an alias. + model["ref"] = model.pop("branch") + + return model + + @model_validator(mode="after") + @classmethod + def ensure_ref_or_version(cls, dep): + if dep.ref is None and dep.version is None: + raise ValueError("GitHub dependency must have either ref or version specified.") + + return dep + + @property + def package_id(self) -> str: + return self.github + + @cached_property + def version_id(self) -> str: + if self.ref: + return self.ref + + elif self.version and self.version != "latest": + return self.version + + latest_release = github_client.get_latest_release(self.org_name, self.repo_name) + return latest_release["tag_name"] + + @cached_property + def org_name(self) -> str: + return self.github.split("/")[0] + + @cached_property + def repo_name(self) -> str: + return self.github.split("/")[1] + + @property + def uri(self) -> str: + _uri = f"https://github.com/{self.github.strip('/')}" + if self.version: + version = f"v{self.version}" if not self.version.startswith("v") else self.version + _uri = f"{_uri}/releases/tag/{version}" + elif self.ref: + _uri = f"{_uri}/tree/{self.ref}" + + return _uri + + def __repr__(self): + cls_name = getattr(type(self), "__name__", GithubDependency.__name__) + return f"<{cls_name} github={self.github}>" + + def fetch(self, destination: Path): + destination.parent.mkdir(exist_ok=True, parents=True) + if self.ref: + # NOTE: Destination path should not exist at this point! + github_client.clone_repo(self.org_name, self.repo_name, destination, branch=self.ref) + + else: + destination.mkdir(exist_ok=True) # parents already made. + try: + github_client.download_package( + self.org_name, self.repo_name, self.version or "latest", destination + ) + except Exception as err: + logger.warning( + f"No official release found for version '{self.version}'. " + "Use `ref:` instead of `version:` for release tags. " + "Checking for matching tags..." + ) + try: + github_client.clone_repo( + self.org_name, self.repo_name, destination, branch=self.version + ) + except Exception: + # Raise the UnknownVersionError. + raise err + + +class NpmDependency(DependencyAPI): + """ + A dependency from the Node Package Manager (NPM). + + Config example:: + + dependencies: + - name: safe-singleton-factory + npm: "@gnosis.pm/safe-singleton-factory" + version: 1.0.14 + """ + + npm: Path + """ + The NPM repo ID e.g. the organization name followed by the repo name, + such as ``"@gnosis.pm/safe-singleton-factory"``. + Note: Resolves to a 'path' after serialization. + The package must already be installed! + """ + + version: Optional[str] = None + """ + Specify the version, if not wanting to use discovered version + from install. + """ + + @model_validator(mode="before") + @classmethod + def validate_local_npm(cls, model): + # Resolves the relative path so if the dependency API + # data moves, it will still work. + npm = Path(model["npm"]) + if npm.is_absolute(): + return model + + elif "project" in model: + # Just in case relative paths didn't get resolved. + # Note: Generally, they should be resolved at model + # construction time, if parsing a config file normally. + project = model.pop("project") + if isinstance(project, str): + project_path = Path(project) + elif isinstance(project, Path): + project_path = project + else: + project_path = project.path + + for base_path in (project_path, Path.home()): + path = base_path / "node_modules" / npm + if path.is_dir(): + model["npm"] = npm = path + break + + return model + + @cached_property + def version_id(self) -> str: + if version := ( + self.version + or self.version_from_installed_package_json + or self.version_from_project_package_json + ): + return version + + raise ProjectError( + f"Missing version for NPM dependency '{self.name}'. Have you run `npm install`?" + ) + + @property + def package_id(self) -> str: + return str(self.npm).split("node_modules")[-1].strip(os.path.sep) + + @cached_property + def version_from_installed_package_json(self) -> Optional[str]: + """ + The version from package.json in the installed package. + Requires having run `npm install`. + """ + return _get_version_from_package_json(self.npm) + + @cached_property + def version_from_project_package_json(self) -> Optional[str]: + """ + The version from your project's package.json, if exists. + """ + return _get_version_from_package_json( + self.local_project.path, dict_path=("dependencies", self.package_id) + ) + + @property + def uri(self) -> str: + return f"https://www.npmjs.com/package/{self.npm}/v/{self.version_id}" + + def fetch(self, destination: Path): + if self.npm.is_dir(): + if destination.is_dir(): + destination = destination / self.name + + shutil.copytree(self.npm, destination) + else: + raise ProjectError(f"NPM package '{self.package_id}' not installed.") + + +def _get_version_from_package_json( + base_path: Path, dict_path: Optional[Iterable[Union[str, Path]]] = None +) -> Optional[str]: + package_json = base_path / "package.json" + if not package_json.is_file(): + return None + + try: + data = json.loads(package_json.read_text()) + except Exception as err: + logger.warning(f"Failed to parse package.json: {err}") + return None + + for key in dict_path or []: + if key not in data: + return None + + data = data[key] + + if isinstance(data, str): + return data + + elif not isinstance(data, dict): + return None + + return data.get("version") diff --git a/src/ape_pm/projects.py b/src/ape_pm/projects.py new file mode 100644 index 0000000000..b33655f4f5 --- /dev/null +++ b/src/ape_pm/projects.py @@ -0,0 +1,103 @@ +from pathlib import Path +from typing import Any + +from yaml import safe_load + +from ape.api.config import ApeConfig +from ape.api.projects import ProjectAPI +from ape.utils.os import expand_environment_variables + + +class BrownieProject(ProjectAPI): + """ + Allows traditional Brownie projects to work with Ape. + This class implements the necessary methods in order + to detect config settings in a Brownie project and + treat it like an Ape project. + """ + + @property + def brownie_config_file(self) -> Path: + return self.path / "brownie-config.yaml" + + @property + def is_valid(self) -> bool: + return self.brownie_config_file.is_file() + + def extract_config(self, **overrides) -> ApeConfig: + migrated_config_data: dict[str, Any] = {} + text = self.brownie_config_file.read_text() + text = expand_environment_variables(text) + + try: + brownie_config_data = safe_load(text) or {} + except Exception: + brownie_config_data = {} + + contracts_folder = brownie_config_data.get("contracts_folder", "contracts") + migrated_config_data["contracts_folder"] = contracts_folder + + # Migrate dependencies + dependencies = [] + for dependency in brownie_config_data.get("dependencies", []): + dependency_dict = {} + dep_parts = dependency.split("/") + gh_name = dep_parts[0] + dep_name = gh_name.lower() + if len(dep_parts) > 1: + dependency_dict["name"] = dep_name + if "@" in dep_parts[1]: + suffix_parts = dep_parts[1].split("@") + dependency_dict["github"] = f"{gh_name}/{suffix_parts[0]}" + dependency_dict["version"] = suffix_parts[1] + else: + dependency_dict["github"] = dep_parts[1] + + if dependency_dict: + dependencies.append(dependency_dict) + + if dependencies: + migrated_config_data["dependencies"] = dependencies + + # Migrate solidity remapping + import_remapping = [] + solidity_version = None + if "compiler" in brownie_config_data: + compiler_config = brownie_config_data["compiler"] + if "solc" in compiler_config: + solidity_config = compiler_config["solc"] + solidity_version = solidity_config.get("version") + + available_dependencies = [d["name"] for d in dependencies] + brownie_import_remapping = solidity_config.get("remappings", []) + + for remapping in brownie_import_remapping: + parts = remapping.split("=") + map_key = parts[0] + real_path = parts[1] + + real_path_parts = real_path.split("/") + dependency_name = real_path_parts[0].lower() + + if dependency_name in available_dependencies: + suffix = real_path_parts[1] + if "@" in suffix: + version_id = suffix.split("@")[1] + entry = f"{dependency_name}/{version_id}" + import_remapping.append(f"{map_key}={entry}") + else: + import_remapping.append(f"{map_key}={dependency_name}") + + if import_remapping or solidity_version: + migrated_solidity_config: dict[str, Any] = {} + + if import_remapping: + migrated_solidity_config["import_remapping"] = import_remapping + + if solidity_version: + migrated_solidity_config["version"] = solidity_version + + migrated_config_data["solidity"] = migrated_solidity_config + + model = {**migrated_config_data, **overrides} + return ApeConfig.model_validate(model) diff --git a/src/ape_run/_cli.py b/src/ape_run/_cli.py index 30e30f224a..ac452ebb34 100644 --- a/src/ape_run/_cli.py +++ b/src/ape_run/_cli.py @@ -82,7 +82,7 @@ def invoke(self, ctx: Context) -> Any: with self.network_manager.parse_network_choice( network_value, disconnect_on_exit=False ): - path = ctx.obj.project_manager.path + path = ctx.obj.local_project.path assert isinstance(path, Path) # For mypy. if not isinstance(err, ApeException) or not handle_ape_exception(err, (path,)): err_info = traceback.format_exc() @@ -94,7 +94,7 @@ def invoke(self, ctx: Context) -> Any: raise def _get_command(self, filepath: Path) -> Union[click.Command, click.Group, None]: - relative_filepath = get_relative_path(filepath, ManagerAccessMixin.project_manager.path) + relative_filepath = get_relative_path(filepath, ManagerAccessMixin.local_project.path) # First load the code module by compiling it # NOTE: This does not execute the module @@ -172,10 +172,10 @@ def call(): @property def commands(self) -> dict[str, Union[click.Command, click.Group]]: - if not self.project_manager.scripts_folder.is_dir(): + if not self.local_project.scripts_folder.is_dir(): return {} - return self._get_cli_commands(self.project_manager.scripts_folder) + return self._get_cli_commands(self.local_project.scripts_folder) def _get_cli_commands(self, base_path: Path) -> dict: commands: dict[str, Command] = {} @@ -222,7 +222,7 @@ def result_callback(self, result, interactive): def _launch_console(self): trace = inspect.trace() trace_frames = [ - x for x in trace if x.filename.startswith(str(self.project_manager.scripts_folder)) + x for x in trace if x.filename.startswith(str(self.local_project.scripts_folder)) ] if not trace_frames: # Error from Ape internals; avoid launching console. @@ -244,7 +244,7 @@ def _launch_console(self): if frame: del frame - return console(project=self.project_manager, extra_locals=extra_locals, embed=True) + return console(project=self.local_project, extra_locals=extra_locals, embed=True) @click.command( diff --git a/tests/conftest.py b/tests/conftest.py index b7dc0bbb93..3e5c4e33a5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,35 +1,27 @@ import json +import os import shutil import subprocess import sys +import tempfile import time from collections.abc import Callable, Sequence from contextlib import contextmanager from pathlib import Path -from tempfile import mkdtemp -from typing import Any, Optional +from typing import Any, Optional, Union import pytest -import yaml from click.testing import CliRunner import ape -from ape.exceptions import APINotImplementedError, UnknownSnapshotError +from ape.exceptions import APINotImplementedError, ProviderNotConnectedError, UnknownSnapshotError from ape.logging import LogLevel, logger -from ape.managers.config import CONFIG_FILE_NAME from ape.pytest.config import ConfigWrapper from ape.pytest.gas import GasTracker from ape.types import AddressType -from ape.utils import DEFAULT_TEST_CHAIN_ID, ZERO_ADDRESS, create_tempdir +from ape.utils import DEFAULT_TEST_CHAIN_ID, ZERO_ADDRESS from ape.utils.basemodel import only_raise_attribute_error -# NOTE: Ensure that we don't use local paths for these -DATA_FOLDER = Path(mkdtemp()).resolve() -ape.config.DATA_FOLDER = DATA_FOLDER -ape.config.dependency_manager.DATA_FOLDER = DATA_FOLDER -PROJECT_FOLDER = Path(mkdtemp()).resolve() -ape.config.PROJECT_FOLDER = PROJECT_FOLDER - # Needed to test tracing support in core `ape test` command. pytest_plugins = ["pytester"] GETH_URI = "http://127.0.0.1:5550" @@ -37,6 +29,10 @@ geth_process_test = pytest.mark.xdist_group(name="geth-tests") explorer_test = pytest.mark.xdist_group(name="explorer-tests") +# Ensure we don't persist any .ape data or using existing. +DATA_FOLDER = Path(tempfile.mkdtemp()).resolve() +ape.config.DATA_FOLDER = DATA_FOLDER + def pytest_addoption(parser): parser.addoption( @@ -60,6 +56,36 @@ def setenviron(monkeypatch): monkeypatch.setenv("APE_TESTING", "1") +@pytest.fixture(scope="session", autouse=True) +def clean_temp_data_folder(): + yield + shutil.rmtree(DATA_FOLDER) + + +@pytest.fixture(scope="session", autouse=True) +def start_dir(): + return os.getcwd() + + +@pytest.fixture(autouse=True) +def validate_cwd(start_dir): + # Handle weird issues with cwd breaking everything. + # Possibly dur to chdir to a tempdir and then it gets deleted. my guess. + # TODO: Find root cause and fix there. + try: + os.getcwd() + except Exception: + # Change back to project root, hopefully. + os.chdir(start_dir) + + +@pytest.fixture(scope="session") +def project(config): + path = "functional/data/contracts/local" + with ape.project.temp_config(contracts_folder=path): + yield ape.project + + @pytest.fixture(scope="session") def config(): return ape.config @@ -80,6 +106,16 @@ def data_folder(config): return DATA_FOLDER +@pytest.fixture(scope="session") +def projects_path(): + return Path(__file__).parent / "integration" / "cli" / "projects" + + +@pytest.fixture(scope="session") +def with_dependencies_project_path(projects_path): + return projects_path / "with-dependencies" + + @pytest.fixture(scope="session") def plugin_manager(): return ape.networks.plugin_manager @@ -105,11 +141,6 @@ def chain(): return ape.chain -@pytest.fixture(scope="session") -def project_folder(): - return PROJECT_FOLDER - - @pytest.fixture(scope="session") def test_accounts(accounts): return accounts.test_accounts @@ -155,18 +186,6 @@ def geth_second_account(test_accounts): return test_accounts[7] -@pytest.fixture -def project(config, project_folder): - project_folder.mkdir(parents=True, exist_ok=True) - with config.using_project(project_folder) as project: - yield project - - -@pytest.fixture -def dependency_manager(project): - return project.dependency_manager - - @pytest.fixture(scope="session") def keyparams(): # NOTE: password is 'asdf1234' @@ -191,17 +210,6 @@ def keyparams(): } -@pytest.fixture(scope="session") -def temp_accounts_path(config): - path = Path(config.DATA_FOLDER) / "accounts" - path.mkdir(exist_ok=True, parents=True) - - yield path - - if path.is_dir(): - shutil.rmtree(path) - - @pytest.fixture def runner(): return CliRunner() @@ -272,7 +280,7 @@ def _isolation(): try: snapshot = ape.chain.snapshot() - except APINotImplementedError: + except (APINotImplementedError, ProviderNotConnectedError): # Provider not used or connected in test. snapshot = None @@ -288,7 +296,7 @@ def _isolation(): try: ape.chain.restore(snapshot) - except UnknownSnapshotError: + except (UnknownSnapshotError, ProviderNotConnectedError): # Assume snapshot removed for testing reasons # or the provider was not needed to be connected for the test. pass @@ -300,39 +308,20 @@ def eth_tester_isolation(eth_tester_provider): yield -@pytest.fixture(scope="session") -def temp_config(config): - @contextmanager - def func(data: Optional[dict] = None): - data = data or {} - with create_tempdir() as temp_dir: - config._cached_configs = {} - config_file = temp_dir / CONFIG_FILE_NAME - config_file.touch() - config_file.write_text(yaml.dump(data)) - - with config.using_project(temp_dir) as temp_project: - yield temp_project - - config_file.unlink() - config._cached_configs = {} - - return func - - @pytest.fixture def empty_data_folder(): - current_data_folder = ape.config.DATA_FOLDER - ape.config.DATA_FOLDER = Path(mkdtemp()).resolve() - ape.config.dependency_manager.DATA_FOLDER = ape.config.DATA_FOLDER + # Avoid user's global ape-config data. + if "global_config" in (ape.config.__dict__ or {}): + del ape.config.__dict__["global_config"] + + shutil.rmtree(DATA_FOLDER, ignore_errors=True) + DATA_FOLDER.mkdir(parents=True, exist_ok=True) yield - ape.config.DATA_FOLDER = current_data_folder - ape.config.dependency_manager.DATA_FOLDER = ape.config.DATA_FOLDER @pytest.fixture -def keyfile_account(owner, keyparams, temp_accounts_path, temp_keyfile_account_ctx): - with temp_keyfile_account_ctx(temp_accounts_path, ALIAS, keyparams, owner) as account: +def keyfile_account(owner, keyparams, temp_keyfile_account_ctx): + with temp_keyfile_account_ctx(ALIAS, keyparams, owner) as account: # Ensure starts off locked. account.lock() yield account @@ -341,13 +330,15 @@ def keyfile_account(owner, keyparams, temp_accounts_path, temp_keyfile_account_c @pytest.fixture def temp_keyfile_account_ctx(): @contextmanager - def _temp_keyfile_account(base_path: Path, alias: str, keyparams, sender): - test_keyfile_path = base_path / f"{alias}.json" + def _temp_keyfile_account(alias: str, keyparams, sender): + accts_folder = DATA_FOLDER / "accounts" + accts_folder.mkdir(parents=True, exist_ok=True) + test_keyfile_path = accts_folder / f"{alias}.json" - if not test_keyfile_path.is_file(): - account = _make_keyfile_account(base_path, alias, keyparams, sender) - else: + if test_keyfile_path.is_file(): account = ape.accounts.load(ALIAS) + else: + account = _make_keyfile_account(accts_folder, alias, keyparams, sender) try: yield account @@ -366,7 +357,6 @@ def _make_keyfile_account(base_path: Path, alias: str, params: dict, funder): test_keyfile_path.unlink() test_keyfile_path.write_text(json.dumps(params)) - acct = ape.accounts.load(alias) funder.transfer(acct, "25 ETH") # Auto-fund this account return acct @@ -421,6 +411,7 @@ def zero_address(): def ape_caplog(caplog): class ApeCaplog: def __init__(self, caplog_level: LogLevel = LogLevel.WARNING): + self.level = caplog_level self.messages_at_start = list(caplog.messages) self.set_levels(caplog_level=caplog_level) @@ -428,6 +419,13 @@ def __init__(self, caplog_level: LogLevel = LogLevel.WARNING): def __getattr__(self, name: str) -> Any: return getattr(caplog, name) + @contextmanager + def at_level(self, level: LogLevel): + original = self.level + self.set_levels(level) + yield + self.set_levels(original) + @property def fail_message(self) -> str: if caplog.messages: @@ -452,8 +450,8 @@ def head(self) -> str: """ return caplog.messages[-1] if len(caplog.messages) else "" - @classmethod - def set_levels(cls, caplog_level: LogLevel = LogLevel.WARNING): + def set_levels(self, caplog_level: LogLevel = LogLevel.WARNING): + self.level = caplog_level logger.set_level(LogLevel.INFO) caplog.set_level(caplog_level) @@ -504,14 +502,26 @@ class SubprocessRunner: modify installed plugins. """ - def __init__(self, root_cmd: Optional[Sequence[str]] = None): + def __init__( + self, root_cmd: Optional[Sequence[str]] = None, data_folder: Optional[Path] = None + ): self.root_cmd = root_cmd or [] + self.data_folder = data_folder - def invoke(self, subcommand: Optional[Sequence[str]] = None): - subcommand = subcommand or [] + def invoke(self, *subcommand: str, input=None, timeout: int = 40): + subcommand = subcommand or () cmd_ls = [*self.root_cmd, *subcommand] - completed_process = subprocess.run(cmd_ls, capture_output=True, text=True) - return SubprocessResult(completed_process) + + env = dict(os.environ) + if self.data_folder: + env["APE_DATA_FOLDER"] = str(self.data_folder) + + completed_process = subprocess.run( + cmd_ls, capture_output=True, env=env, input=input, text=True, timeout=timeout + ) + result = SubprocessResult(completed_process) + sys.stdin = sys.__stdin__ + return result class ApeSubprocessRunner(SubprocessRunner): @@ -519,9 +529,37 @@ class ApeSubprocessRunner(SubprocessRunner): Subprocess runner for Ape-specific commands. """ - def __init__(self, root_cmd: Optional[Sequence[str]] = None): + def __init__( + self, + root_cmd: Optional[Union[str, Sequence[str]]] = None, + data_folder: Optional[Path] = None, + ): ape_path = Path(sys.executable).parent / "ape" - super().__init__([str(ape_path), *(root_cmd or [])]) + + root = root_cmd or () + if isinstance(root, str): + root = (root,) + + super().__init__([str(ape_path), *root], data_folder=data_folder) + self.project = None + + def invoke(self, *subcommand: str, input=None, timeout: int = 40): + if self.project: + try: + here = os.getcwd() + except Exception: + here = None + + os.chdir(f"{self.project.path}") + + else: + here = None + + result = super().invoke(*subcommand, input=input, timeout=timeout) + if here: + os.chdir(here) + + return result class SubprocessResult: @@ -563,12 +601,6 @@ def custom_networks_config_dict(): return CUSTOM_NETWORKS_CONFIG -@pytest.fixture(scope="session") -def custom_networks_config(temp_config, custom_networks_config_dict): - with temp_config(custom_networks_config_dict): - yield custom_networks_config_dict - - @pytest.fixture(scope="session") def custom_network_name_0(): return CUSTOM_NETWORK_0 @@ -590,8 +622,9 @@ def custom_network_chain_id_1(): @pytest.fixture -def custom_network(ethereum, custom_networks_config): - return ethereum.apenet +def custom_network(ethereum, project, custom_networks_config_dict): + with project.temp_config(**custom_networks_config_dict): + yield ethereum.apenet @pytest.fixture diff --git a/tests/functional/conftest.py b/tests/functional/conftest.py index dd2723891e..19a0fc2ed8 100644 --- a/tests/functional/conftest.py +++ b/tests/functional/conftest.py @@ -177,8 +177,8 @@ def address(): @pytest.fixture -def second_keyfile_account(sender, keyparams, temp_accounts_path, temp_keyfile_account_ctx): - with temp_keyfile_account_ctx(temp_accounts_path, ALIAS_2, keyparams, sender) as account: +def second_keyfile_account(sender, keyparams, temp_keyfile_account_ctx): + with temp_keyfile_account_ctx(ALIAS_2, keyparams, sender) as account: # Ensure starts off locked. account.lock() yield account @@ -305,25 +305,21 @@ def ds_note_test_contract(eth_tester_provider, vyper_contract_type, owner, get_c return contract_container.deploy(sender=owner) -@pytest.fixture -def project_with_contract(temp_config): - with temp_config() as project: - copytree(str(APE_PROJECT_FOLDER), str(project.path), dirs_exist_ok=True) - project.local_project._cached_manifest = None # Clean manifest - project.config_manager.load(force_reload=True) # Reload after copying config file. - +@pytest.fixture(scope="session") +def project_with_contract(): + with ape.Project(APE_PROJECT_FOLDER).isolate_in_tempdir() as project: yield project -@pytest.fixture -def project_with_source_files_contract(temp_config): +@pytest.fixture(scope="session") +def project_with_source_files_contract(project_with_contract): bases_source_dir = BASE_SOURCES_DIRECTORY - project_source_dir = APE_PROJECT_FOLDER + project_source_dir = project_with_contract.path - with temp_config() as project: - copytree(str(project_source_dir), str(project.path), dirs_exist_ok=True) - copytree(str(bases_source_dir), f"{project.path}/contracts/", dirs_exist_ok=True) - yield project + with ape.Project.create_temporary_project() as tmp_project: + copytree(project_source_dir, str(tmp_project.path), dirs_exist_ok=True) + copytree(bases_source_dir, tmp_project.path / "contracts", dirs_exist_ok=True) + yield tmp_project @pytest.fixture @@ -335,8 +331,9 @@ def clean_contracts_cache(chain): @pytest.fixture -def project_with_dependency_config(temp_config): +def project_with_dependency_config(project): dependencies_config = { + "contracts_folder": "functional/data/contracts/local", "dependencies": [ { "local": str(PROJECT_WITH_LONG_CONTRACTS_FOLDER), @@ -344,11 +341,12 @@ def project_with_dependency_config(temp_config): "config_override": { "contracts_folder": "source/v0.1", }, + "version": "releases/v6", # Testing having a slash in version. } - ] + ], } - with temp_config(dependencies_config) as project: - yield project + with project.isolate_in_tempdir(**dependencies_config) as tmp_project: + yield tmp_project @pytest.fixture(scope="session") @@ -681,9 +679,11 @@ def mock_compiler(mocker): mock = mocker.MagicMock() mock.name = "mock" mock.ext = ".__mock__" + mock.tracked_settings = [] - def mock_compile(paths, base_path=None): - mock.tracked_settings.append(mock.compiler_settings) + def mock_compile(paths, project=None, settings=None): + settings = settings or {} + mock.tracked_settings.append(settings) result = [] for path in paths: if path.suffix == mock.ext: @@ -693,7 +693,7 @@ def mock_compile(paths, base_path=None): "contractName": name, "abi": [], "deploymentBytecode": code, - "sourceId": path.name, + "sourceId": f"{project.contracts_folder.name}/{path.name}", } # Check for mocked overrides @@ -759,7 +759,6 @@ def fake_partial(*args, **kwargs): ethereum.sepolia_fork._default_provider = "mock" ethereum.sepolia_fork.__dict__["providers"] = {"mock": fake_partial} yield mock_provider - if initial_providers: ethereum.sepolia_fork.__dict__["providers"] = initial_providers if initial_default: diff --git a/tests/functional/data/manifests/OpenZeppelin/v3.1.0/OpenZeppelin.json b/tests/functional/data/manifests/OpenZeppelin/v3.1.0/OpenZeppelin.json deleted file mode 100644 index 983a108b1c..0000000000 --- a/tests/functional/data/manifests/OpenZeppelin/v3.1.0/OpenZeppelin.json +++ /dev/null @@ -1 +0,0 @@ -{"manifest": "ethpm/3", "sources": {"mocks/ERC20SnapshotMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x8718d04ab852e932fd01798a18c3753a"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20Snapshot.sol\";\n\n\ncontract ERC20SnapshotMock is ERC20Snapshot {\n constructor(\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) public ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n\n function snapshot() public {\n _snapshot();\n }\n\n function mint(address account, uint256 amount) public {\n _mint(account, amount);\n }\n\n function burn(address account, uint256 amount) public {\n _burn(account, amount);\n }\n}\n"}, "GSN/IRelayHub.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x013284dab88792d544470bdc2eaea7f3"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface for `RelayHub`, the core contract of the GSN. Users should not need to interact with this contract\n * directly.\n *\n * See the https://github.com/OpenZeppelin/openzeppelin-gsn-helpers[OpenZeppelin GSN helpers] for more information on\n * how to deploy an instance of `RelayHub` on your local test network.\n */\ninterface IRelayHub {\n // Relay management\n\n /**\n * @dev Adds stake to a relay and sets its `unstakeDelay`. If the relay does not exist, it is created, and the caller\n * of this function becomes its owner. If the relay already exists, only the owner can call this function. A relay\n * cannot be its own owner.\n *\n * All Ether in this function call will be added to the relay's stake.\n * Its unstake delay will be assigned to `unstakeDelay`, but the new value must be greater or equal to the current one.\n *\n * Emits a {Staked} event.\n */\n function stake(address relayaddr, uint256 unstakeDelay) external payable;\n\n /**\n * @dev Emitted when a relay's stake or unstakeDelay are increased\n */\n event Staked(address indexed relay, uint256 stake, uint256 unstakeDelay);\n\n /**\n * @dev Registers the caller as a relay.\n * The relay must be staked for, and not be a contract (i.e. this function must be called directly from an EOA).\n *\n * This function can be called multiple times, emitting new {RelayAdded} events. Note that the received\n * `transactionFee` is not enforced by {relayCall}.\n *\n * Emits a {RelayAdded} event.\n */\n function registerRelay(uint256 transactionFee, string calldata url) external;\n\n /**\n * @dev Emitted when a relay is registered or re-registerd. Looking at these events (and filtering out\n * {RelayRemoved} events) lets a client discover the list of available relays.\n */\n event RelayAdded(address indexed relay, address indexed owner, uint256 transactionFee, uint256 stake, uint256 unstakeDelay, string url);\n\n /**\n * @dev Removes (deregisters) a relay. Unregistered (but staked for) relays can also be removed.\n *\n * Can only be called by the owner of the relay. After the relay's `unstakeDelay` has elapsed, {unstake} will be\n * callable.\n *\n * Emits a {RelayRemoved} event.\n */\n function removeRelayByOwner(address relay) external;\n\n /**\n * @dev Emitted when a relay is removed (deregistered). `unstakeTime` is the time when unstake will be callable.\n */\n event RelayRemoved(address indexed relay, uint256 unstakeTime);\n\n /** Deletes the relay from the system, and gives back its stake to the owner.\n *\n * Can only be called by the relay owner, after `unstakeDelay` has elapsed since {removeRelayByOwner} was called.\n *\n * Emits an {Unstaked} event.\n */\n function unstake(address relay) external;\n\n /**\n * @dev Emitted when a relay is unstaked for, including the returned stake.\n */\n event Unstaked(address indexed relay, uint256 stake);\n\n // States a relay can be in\n enum RelayState {\n Unknown, // The relay is unknown to the system: it has never been staked for\n Staked, // The relay has been staked for, but it is not yet active\n Registered, // The relay has registered itself, and is active (can relay calls)\n Removed // The relay has been removed by its owner and can no longer relay calls. It must wait for its unstakeDelay to elapse before it can unstake\n }\n\n /**\n * @dev Returns a relay's status. Note that relays can be deleted when unstaked or penalized, causing this function\n * to return an empty entry.\n */\n function getRelay(address relay) external view returns (uint256 totalStake, uint256 unstakeDelay, uint256 unstakeTime, address payable owner, RelayState state);\n\n // Balance management\n\n /**\n * @dev Deposits Ether for a contract, so that it can receive (and pay for) relayed transactions.\n *\n * Unused balance can only be withdrawn by the contract itself, by calling {withdraw}.\n *\n * Emits a {Deposited} event.\n */\n function depositFor(address target) external payable;\n\n /**\n * @dev Emitted when {depositFor} is called, including the amount and account that was funded.\n */\n event Deposited(address indexed recipient, address indexed from, uint256 amount);\n\n /**\n * @dev Returns an account's deposits. These can be either a contracts's funds, or a relay owner's revenue.\n */\n function balanceOf(address target) external view returns (uint256);\n\n /**\n * Withdraws from an account's balance, sending it back to it. Relay owners call this to retrieve their revenue, and\n * contracts can use it to reduce their funding.\n *\n * Emits a {Withdrawn} event.\n */\n function withdraw(uint256 amount, address payable dest) external;\n\n /**\n * @dev Emitted when an account withdraws funds from `RelayHub`.\n */\n event Withdrawn(address indexed account, address indexed dest, uint256 amount);\n\n // Relaying\n\n /**\n * @dev Checks if the `RelayHub` will accept a relayed operation.\n * Multiple things must be true for this to happen:\n * - all arguments must be signed for by the sender (`from`)\n * - the sender's nonce must be the current one\n * - the recipient must accept this transaction (via {acceptRelayedCall})\n *\n * Returns a `PreconditionCheck` value (`OK` when the transaction can be relayed), or a recipient-specific error\n * code if it returns one in {acceptRelayedCall}.\n */\n function canRelay(\n address relay,\n address from,\n address to,\n bytes calldata encodedFunction,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256 gasLimit,\n uint256 nonce,\n bytes calldata signature,\n bytes calldata approvalData\n ) external view returns (uint256 status, bytes memory recipientContext);\n\n // Preconditions for relaying, checked by canRelay and returned as the corresponding numeric values.\n enum PreconditionCheck {\n OK, // All checks passed, the call can be relayed\n WrongSignature, // The transaction to relay is not signed by requested sender\n WrongNonce, // The provided nonce has already been used by the sender\n AcceptRelayedCallReverted, // The recipient rejected this call via acceptRelayedCall\n InvalidRecipientStatusCode // The recipient returned an invalid (reserved) status code\n }\n\n /**\n * @dev Relays a transaction.\n *\n * For this to succeed, multiple conditions must be met:\n * - {canRelay} must `return PreconditionCheck.OK`\n * - the sender must be a registered relay\n * - the transaction's gas price must be larger or equal to the one that was requested by the sender\n * - the transaction must have enough gas to not run out of gas if all internal transactions (calls to the\n * recipient) use all gas available to them\n * - the recipient must have enough balance to pay the relay for the worst-case scenario (i.e. when all gas is\n * spent)\n *\n * If all conditions are met, the call will be relayed and the recipient charged. {preRelayedCall}, the encoded\n * function and {postRelayedCall} will be called in that order.\n *\n * Parameters:\n * - `from`: the client originating the request\n * - `to`: the target {IRelayRecipient} contract\n * - `encodedFunction`: the function call to relay, including data\n * - `transactionFee`: fee (%) the relay takes over actual gas cost\n * - `gasPrice`: gas price the client is willing to pay\n * - `gasLimit`: gas to forward when calling the encoded function\n * - `nonce`: client's nonce\n * - `signature`: client's signature over all previous params, plus the relay and RelayHub addresses\n * - `approvalData`: dapp-specific data forwared to {acceptRelayedCall}. This value is *not* verified by the\n * `RelayHub`, but it still can be used for e.g. a signature.\n *\n * Emits a {TransactionRelayed} event.\n */\n function relayCall(\n address from,\n address to,\n bytes calldata encodedFunction,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256 gasLimit,\n uint256 nonce,\n bytes calldata signature,\n bytes calldata approvalData\n ) external;\n\n /**\n * @dev Emitted when an attempt to relay a call failed.\n *\n * This can happen due to incorrect {relayCall} arguments, or the recipient not accepting the relayed call. The\n * actual relayed call was not executed, and the recipient not charged.\n *\n * The `reason` parameter contains an error code: values 1-10 correspond to `PreconditionCheck` entries, and values\n * over 10 are custom recipient error codes returned from {acceptRelayedCall}.\n */\n event CanRelayFailed(address indexed relay, address indexed from, address indexed to, bytes4 selector, uint256 reason);\n\n /**\n * @dev Emitted when a transaction is relayed.\n * Useful when monitoring a relay's operation and relayed calls to a contract\n *\n * Note that the actual encoded function might be reverted: this is indicated in the `status` parameter.\n *\n * `charge` is the Ether value deducted from the recipient's balance, paid to the relay's owner.\n */\n event TransactionRelayed(address indexed relay, address indexed from, address indexed to, bytes4 selector, RelayCallStatus status, uint256 charge);\n\n // Reason error codes for the TransactionRelayed event\n enum RelayCallStatus {\n OK, // The transaction was successfully relayed and execution successful - never included in the event\n RelayedCallFailed, // The transaction was relayed, but the relayed call failed\n PreRelayedFailed, // The transaction was not relayed due to preRelatedCall reverting\n PostRelayedFailed, // The transaction was relayed and reverted due to postRelatedCall reverting\n RecipientBalanceChanged // The transaction was relayed and reverted due to the recipient's balance changing\n }\n\n /**\n * @dev Returns how much gas should be forwarded to a call to {relayCall}, in order to relay a transaction that will\n * spend up to `relayedCallStipend` gas.\n */\n function requiredGas(uint256 relayedCallStipend) external view returns (uint256);\n\n /**\n * @dev Returns the maximum recipient charge, given the amount of gas forwarded, gas price and relay fee.\n */\n function maxPossibleCharge(uint256 relayedCallStipend, uint256 gasPrice, uint256 transactionFee) external view returns (uint256);\n\n // Relay penalization.\n // Any account can penalize relays, removing them from the system immediately, and rewarding the\n // reporter with half of the relay's stake. The other half is burned so that, even if the relay penalizes itself, it\n // still loses half of its stake.\n\n /**\n * @dev Penalize a relay that signed two transactions using the same nonce (making only the first one valid) and\n * different data (gas price, gas limit, etc. may be different).\n *\n * The (unsigned) transaction data and signature for both transactions must be provided.\n */\n function penalizeRepeatedNonce(bytes calldata unsignedTx1, bytes calldata signature1, bytes calldata unsignedTx2, bytes calldata signature2) external;\n\n /**\n * @dev Penalize a relay that sent a transaction that didn't target ``RelayHub``'s {registerRelay} or {relayCall}.\n */\n function penalizeIllegalTransaction(bytes calldata unsignedTx, bytes calldata signature) external;\n\n /**\n * @dev Emitted when a relay is penalized.\n */\n event Penalized(address indexed relay, address sender, uint256 amount);\n\n /**\n * @dev Returns an account's nonce in `RelayHub`.\n */\n function getNonce(address from) external view returns (uint256);\n}\n\n"}, "mocks/ArraysImpl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x18b24ed00de9c9df4c81a1295cc0e5d5"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Arrays.sol\";\n\ncontract ArraysImpl {\n using Arrays for uint256[];\n\n uint256[] private _array;\n\n constructor (uint256[] memory array) public {\n _array = array;\n }\n\n function findUpperBound(uint256 element) external view returns (uint256) {\n return _array.findUpperBound(element);\n }\n}\n"}, "mocks/CountersImpl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x2de69ca9cefd362d42d2d4f23aa266cd"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Counters.sol\";\n\ncontract CountersImpl {\n using Counters for Counters.Counter;\n\n Counters.Counter private _counter;\n\n function current() public view returns (uint256) {\n return _counter.current();\n }\n\n function increment() public {\n _counter.increment();\n }\n\n function decrement() public {\n _counter.decrement();\n }\n}\n"}, "token/ERC721/IERC721Receiver.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x2d2dcc9d59c7447cc1cfbc446137b700"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @title ERC721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC721 asset contracts.\n */\ninterface IERC721Receiver {\n /**\n * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n * by `operator` from `from`, this function is called.\n *\n * It must return its Solidity selector to confirm the token transfer.\n * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\n *\n * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.\n */\n function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data)\n external returns (bytes4);\n}\n"}, "GSN/GSNRecipientSignature.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x3acdb3d516c31f192c424618a6447f66"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./GSNRecipient.sol\";\nimport \"../cryptography/ECDSA.sol\";\n\n/**\n * @dev A xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategy] that allows relayed transactions through when they are\n * accompanied by the signature of a trusted signer. The intent is for this signature to be generated by a server that\n * performs validations off-chain. Note that nothing is charged to the user in this scheme. Thus, the server should make\n * sure to account for this in their economic and threat model.\n */\ncontract GSNRecipientSignature is GSNRecipient {\n using ECDSA for bytes32;\n\n address private _trustedSigner;\n\n enum GSNRecipientSignatureErrorCodes {\n INVALID_SIGNER\n }\n\n /**\n * @dev Sets the trusted signer that is going to be producing signatures to approve relayed calls.\n */\n constructor(address trustedSigner) public {\n require(trustedSigner != address(0), \"GSNRecipientSignature: trusted signer is the zero address\");\n _trustedSigner = trustedSigner;\n }\n\n /**\n * @dev Ensures that only transactions with a trusted signature can be relayed through the GSN.\n */\n function acceptRelayedCall(\n address relay,\n address from,\n bytes memory encodedFunction,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256 gasLimit,\n uint256 nonce,\n bytes memory approvalData,\n uint256\n )\n public\n view\n virtual\n override\n returns (uint256, bytes memory)\n {\n bytes memory blob = abi.encodePacked(\n relay,\n from,\n encodedFunction,\n transactionFee,\n gasPrice,\n gasLimit,\n nonce, // Prevents replays on RelayHub\n getHubAddr(), // Prevents replays in multiple RelayHubs\n address(this) // Prevents replays in multiple recipients\n );\n if (keccak256(blob).toEthSignedMessageHash().recover(approvalData) == _trustedSigner) {\n return _approveRelayedCall();\n } else {\n return _rejectRelayedCall(uint256(GSNRecipientSignatureErrorCodes.INVALID_SIGNER));\n }\n }\n\n function _preRelayedCall(bytes memory) internal virtual override returns (bytes32) { }\n\n function _postRelayedCall(bytes memory, bool, uint256, bytes32) internal virtual override { }\n}\n"}, "token/ERC777/IERC777.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x267e797e1d112942f4b176d4f85c89df"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the ERC777Token standard as defined in the EIP.\n *\n * This contract uses the\n * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let\n * token holders and recipients react to token movements by using setting implementers\n * for the associated interfaces in said registry. See {IERC1820Registry} and\n * {ERC1820Implementer}.\n */\ninterface IERC777 {\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, usually a shorter version of the\n * name.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the smallest part of the token that is not divisible. This\n * means all token operations (creation, movement and destruction) must have\n * amounts that are a multiple of this number.\n *\n * For most token contracts, this value will equal 1.\n */\n function granularity() external view returns (uint256);\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 an account (`owner`).\n */\n function balanceOf(address owner) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `recipient`.\n *\n * If send or receive hooks are registered for the caller and `recipient`,\n * the corresponding functions will be called with `data` and empty\n * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.\n *\n * Emits a {Sent} event.\n *\n * Requirements\n *\n * - the caller must have at least `amount` tokens.\n * - `recipient` cannot be the zero address.\n * - if `recipient` is a contract, it must implement the {IERC777Recipient}\n * interface.\n */\n function send(address recipient, uint256 amount, bytes calldata data) external;\n\n /**\n * @dev Destroys `amount` tokens from the caller's account, reducing the\n * total supply.\n *\n * If a send hook is registered for the caller, the corresponding function\n * will be called with `data` and empty `operatorData`. See {IERC777Sender}.\n *\n * Emits a {Burned} event.\n *\n * Requirements\n *\n * - the caller must have at least `amount` tokens.\n */\n function burn(uint256 amount, bytes calldata data) external;\n\n /**\n * @dev Returns true if an account is an operator of `tokenHolder`.\n * Operators can send and burn tokens on behalf of their owners. All\n * accounts are their own operator.\n *\n * See {operatorSend} and {operatorBurn}.\n */\n function isOperatorFor(address operator, address tokenHolder) external view returns (bool);\n\n /**\n * @dev Make an account an operator of the caller.\n *\n * See {isOperatorFor}.\n *\n * Emits an {AuthorizedOperator} event.\n *\n * Requirements\n *\n * - `operator` cannot be calling address.\n */\n function authorizeOperator(address operator) external;\n\n /**\n * @dev Revoke an account's operator status for the caller.\n *\n * See {isOperatorFor} and {defaultOperators}.\n *\n * Emits a {RevokedOperator} event.\n *\n * Requirements\n *\n * - `operator` cannot be calling address.\n */\n function revokeOperator(address operator) external;\n\n /**\n * @dev Returns the list of default operators. These accounts are operators\n * for all token holders, even if {authorizeOperator} was never called on\n * them.\n *\n * This list is immutable, but individual holders may revoke these via\n * {revokeOperator}, in which case {isOperatorFor} will return false.\n */\n function defaultOperators() external view returns (address[] memory);\n\n /**\n * @dev Moves `amount` tokens from `sender` to `recipient`. The caller must\n * be an operator of `sender`.\n *\n * If send or receive hooks are registered for `sender` and `recipient`,\n * the corresponding functions will be called with `data` and\n * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.\n *\n * Emits a {Sent} event.\n *\n * Requirements\n *\n * - `sender` cannot be the zero address.\n * - `sender` must have at least `amount` tokens.\n * - the caller must be an operator for `sender`.\n * - `recipient` cannot be the zero address.\n * - if `recipient` is a contract, it must implement the {IERC777Recipient}\n * interface.\n */\n function operatorSend(\n address sender,\n address recipient,\n uint256 amount,\n bytes calldata data,\n bytes calldata operatorData\n ) external;\n\n /**\n * @dev Destroys `amount` tokens from `account`, reducing the total supply.\n * The caller must be an operator of `account`.\n *\n * If a send hook is registered for `account`, the corresponding function\n * will be called with `data` and `operatorData`. See {IERC777Sender}.\n *\n * Emits a {Burned} event.\n *\n * Requirements\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens.\n * - the caller must be an operator for `account`.\n */\n function operatorBurn(\n address account,\n uint256 amount,\n bytes calldata data,\n bytes calldata operatorData\n ) external;\n\n event Sent(\n address indexed operator,\n address indexed from,\n address indexed to,\n uint256 amount,\n bytes data,\n bytes operatorData\n );\n\n event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData);\n\n event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData);\n\n event AuthorizedOperator(address indexed operator, address indexed tokenHolder);\n\n event RevokedOperator(address indexed operator, address indexed tokenHolder);\n}\n"}, "access/AccessControl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf60e3ddea9dc23bc52984afdb18d59ec"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/EnumerableSet.sol\";\nimport \"../utils/Address.sol\";\nimport \"../GSN/Context.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms.\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 AccessControl is Context {\n using EnumerableSet for EnumerableSet.AddressSet;\n using Address for address;\n\n struct RoleData {\n EnumerableSet.AddressSet 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 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 {_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) public view returns (bool) {\n return _roles[role].members.contains(account);\n }\n\n /**\n * @dev Returns the number of accounts that have `role`. Can be used\n * together with {getRoleMember} to enumerate all bearers of a role.\n */\n function getRoleMemberCount(bytes32 role) public view returns (uint256) {\n return _roles[role].members.length();\n }\n\n /**\n * @dev Returns one of the accounts that have `role`. `index` must be a\n * value between 0 and {getRoleMemberCount}, non-inclusive.\n *\n * Role bearers are not sorted in any particular way, and their ordering may\n * change at any point.\n *\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\n * you perform all queries on the same block. See the following\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\n * for more information.\n */\n function getRoleMember(bytes32 role, uint256 index) public view returns (address) {\n return _roles[role].members.at(index);\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 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 function grantRole(bytes32 role, address account) public virtual {\n require(hasRole(_roles[role].adminRole, _msgSender()), \"AccessControl: sender must be an admin to grant\");\n\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 function revokeRole(bytes32 role, address account) public virtual {\n require(hasRole(_roles[role].adminRole, _msgSender()), \"AccessControl: sender must be an admin to revoke\");\n\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 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) public virtual {\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 * [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 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 emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);\n _roles[role].adminRole = adminRole;\n }\n\n function _grantRole(bytes32 role, address account) private {\n if (_roles[role].members.add(account)) {\n emit RoleGranted(role, account, _msgSender());\n }\n }\n\n function _revokeRole(bytes32 role, address account) private {\n if (_roles[role].members.remove(account)) {\n emit RoleRevoked(role, account, _msgSender());\n }\n }\n}\n"}, "token/ERC1155/ERC1155Burnable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x86d8146585fb1c15692c605d76dc60a3"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC1155.sol\";\n\n/**\n * @dev Extension of {ERC1155} that allows token holders to destroy both their\n * own tokens and those that they have been approved to use.\n *\n * _Available since v3.1._\n */\nabstract contract ERC1155Burnable is ERC1155 {\n function burn(address account, uint256 id, uint256 value) public virtual {\n require(\n account == _msgSender() || isApprovedForAll(account, _msgSender()),\n \"ERC1155: caller is not owner nor approved\"\n );\n\n _burn(account, id, value);\n }\n\n function burnBatch(address account, uint256[] memory ids, uint256[] memory values) public virtual {\n require(\n account == _msgSender() || isApprovedForAll(account, _msgSender()),\n \"ERC1155: caller is not owner nor approved\"\n );\n\n _burnBatch(account, ids, values);\n }\n}\n"}, "mocks/ERC20PausableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x222f3abc5d9eecd2d7612f6ad20d8258"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20Pausable.sol\";\n\n// mock class using ERC20Pausable\ncontract ERC20PausableMock is ERC20Pausable {\n constructor (\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) public ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n\n function mint(address to, uint256 amount) public {\n _mint(to, amount);\n }\n\n function burn(address from, uint256 amount) public {\n _burn(from, amount);\n }\n}\n"}, "token/ERC20/ERC20Snapshot.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4ed72e1899c314a3c0359220dec7a18d"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Arrays.sol\";\nimport \"../../utils/Counters.sol\";\nimport \"./ERC20.sol\";\n\n/**\n * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and\n * total supply at the time are recorded for later access.\n *\n * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting.\n * In naive implementations it's possible to perform a \"double spend\" attack by reusing the same balance from different\n * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be\n * used to create an efficient ERC20 forking mechanism.\n *\n * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a\n * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot\n * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id\n * and the account address.\n *\n * ==== Gas Costs\n *\n * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log\n * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much\n * smaller since identical balances in subsequent snapshots are stored as a single entry.\n *\n * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is\n * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent\n * transfers will have normal cost until the next snapshot, and so on.\n */\nabstract contract ERC20Snapshot is ERC20 {\n // Inspired by Jordi Baylina's MiniMeToken to record historical balances:\n // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol\n\n using SafeMath for uint256;\n using Arrays for uint256[];\n using Counters for Counters.Counter;\n\n // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a\n // Snapshot struct, but that would impede usage of functions that work on an array.\n struct Snapshots {\n uint256[] ids;\n uint256[] values;\n }\n\n mapping (address => Snapshots) private _accountBalanceSnapshots;\n Snapshots private _totalSupplySnapshots;\n\n // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid.\n Counters.Counter private _currentSnapshotId;\n\n /**\n * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created.\n */\n event Snapshot(uint256 id);\n\n /**\n * @dev Creates a new snapshot and returns its snapshot id.\n *\n * Emits a {Snapshot} event that contains the same id.\n *\n * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a\n * set of accounts, for example using {AccessControl}, or it may be open to the public.\n *\n * [WARNING]\n * ====\n * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking,\n * you must consider that it can potentially be used by attackers in two ways.\n *\n * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow\n * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target\n * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs\n * section above.\n *\n * We haven't measured the actual numbers; if this is something you're interested in please reach out to us.\n * ====\n */\n function _snapshot() internal virtual returns (uint256) {\n _currentSnapshotId.increment();\n\n uint256 currentId = _currentSnapshotId.current();\n emit Snapshot(currentId);\n return currentId;\n }\n\n /**\n * @dev Retrieves the balance of `account` at the time `snapshotId` was created.\n */\n function balanceOfAt(address account, uint256 snapshotId) public view returns (uint256) {\n (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]);\n\n return snapshotted ? value : balanceOf(account);\n }\n\n /**\n * @dev Retrieves the total supply at the time `snapshotId` was created.\n */\n function totalSupplyAt(uint256 snapshotId) public view returns(uint256) {\n (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots);\n\n return snapshotted ? value : totalSupply();\n }\n\n // _transfer, _mint and _burn are the only functions where the balances are modified, so it is there that the\n // snapshots are updated. Note that the update happens _before_ the balance change, with the pre-modified value.\n // The same is true for the total supply and _mint and _burn.\n function _transfer(address from, address to, uint256 value) internal virtual override {\n _updateAccountSnapshot(from);\n _updateAccountSnapshot(to);\n\n super._transfer(from, to, value);\n }\n\n function _mint(address account, uint256 value) internal virtual override {\n _updateAccountSnapshot(account);\n _updateTotalSupplySnapshot();\n\n super._mint(account, value);\n }\n\n function _burn(address account, uint256 value) internal virtual override {\n _updateAccountSnapshot(account);\n _updateTotalSupplySnapshot();\n\n super._burn(account, value);\n }\n\n function _valueAt(uint256 snapshotId, Snapshots storage snapshots)\n private view returns (bool, uint256)\n {\n require(snapshotId > 0, \"ERC20Snapshot: id is 0\");\n // solhint-disable-next-line max-line-length\n require(snapshotId <= _currentSnapshotId.current(), \"ERC20Snapshot: nonexistent id\");\n\n // When a valid snapshot is queried, there are three possibilities:\n // a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never\n // created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds\n // to this id is the current one.\n // b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the\n // requested id, and its value is the one to return.\n // c) More snapshots were created after the requested one, and the queried value was later modified. There will be\n // no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is\n // larger than the requested one.\n //\n // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if\n // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does\n // exactly this.\n\n uint256 index = snapshots.ids.findUpperBound(snapshotId);\n\n if (index == snapshots.ids.length) {\n return (false, 0);\n } else {\n return (true, snapshots.values[index]);\n }\n }\n\n function _updateAccountSnapshot(address account) private {\n _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account));\n }\n\n function _updateTotalSupplySnapshot() private {\n _updateSnapshot(_totalSupplySnapshots, totalSupply());\n }\n\n function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private {\n uint256 currentId = _currentSnapshotId.current();\n if (_lastSnapshotId(snapshots.ids) < currentId) {\n snapshots.ids.push(currentId);\n snapshots.values.push(currentValue);\n }\n }\n\n function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) {\n if (ids.length == 0) {\n return 0;\n } else {\n return ids[ids.length - 1];\n }\n }\n}\n"}, "utils/EnumerableMap.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x587bbaf85d8405a72ea86e19e796d18d"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Library for managing an enumerable variant of Solidity's\n * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]\n * type.\n *\n * Maps have the following properties:\n *\n * - Entries are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Entries are enumerated in O(n). No guarantees are made on the ordering.\n *\n * ```\n * contract Example {\n * // Add the library methods\n * using EnumerableMap for EnumerableMap.UintToAddressMap;\n *\n * // Declare a set state variable\n * EnumerableMap.UintToAddressMap private myMap;\n * }\n * ```\n *\n * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are\n * supported.\n */\nlibrary EnumerableMap {\n // To implement this library for multiple types with as little code\n // repetition as possible, we write it in terms of a generic Map type with\n // bytes32 keys and values.\n // The Map implementation uses private functions, and user-facing\n // implementations (such as Uint256ToAddressMap) are just wrappers around\n // the underlying Map.\n // This means that we can only create new EnumerableMaps for types that fit\n // in bytes32.\n\n struct MapEntry {\n bytes32 _key;\n bytes32 _value;\n }\n\n struct Map {\n // Storage of map keys and values\n MapEntry[] _entries;\n\n // Position of the entry defined by a key in the `entries` array, plus 1\n // because index 0 means a key is not in the map.\n mapping (bytes32 => uint256) _indexes;\n }\n\n /**\n * @dev Adds a key-value pair to a map, or updates the value for an existing\n * key. O(1).\n *\n * Returns true if the key was added to the map, that is if it was not\n * already present.\n */\n function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {\n // We read and store the key's index to prevent multiple reads from the same storage slot\n uint256 keyIndex = map._indexes[key];\n\n if (keyIndex == 0) { // Equivalent to !contains(map, key)\n map._entries.push(MapEntry({ _key: key, _value: value }));\n // The entry is stored at length-1, but we add 1 to all indexes\n // and use 0 as a sentinel value\n map._indexes[key] = map._entries.length;\n return true;\n } else {\n map._entries[keyIndex - 1]._value = value;\n return false;\n }\n }\n\n /**\n * @dev Removes a key-value pair from a map. O(1).\n *\n * Returns true if the key was removed from the map, that is if it was present.\n */\n function _remove(Map storage map, bytes32 key) private returns (bool) {\n // We read and store the key's index to prevent multiple reads from the same storage slot\n uint256 keyIndex = map._indexes[key];\n\n if (keyIndex != 0) { // Equivalent to contains(map, key)\n // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one\n // in the array, and then remove the last entry (sometimes called as 'swap and pop').\n // This modifies the order of the array, as noted in {at}.\n\n uint256 toDeleteIndex = keyIndex - 1;\n uint256 lastIndex = map._entries.length - 1;\n\n // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs\n // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.\n\n MapEntry storage lastEntry = map._entries[lastIndex];\n\n // Move the last entry to the index where the entry to delete is\n map._entries[toDeleteIndex] = lastEntry;\n // Update the index for the moved entry\n map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based\n\n // Delete the slot where the moved entry was stored\n map._entries.pop();\n\n // Delete the index for the deleted slot\n delete map._indexes[key];\n\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @dev Returns true if the key is in the map. O(1).\n */\n function _contains(Map storage map, bytes32 key) private view returns (bool) {\n return map._indexes[key] != 0;\n }\n\n /**\n * @dev Returns the number of key-value pairs in the map. O(1).\n */\n function _length(Map storage map) private view returns (uint256) {\n return map._entries.length;\n }\n\n /**\n * @dev Returns the key-value pair stored at position `index` in the map. O(1).\n *\n * Note that there are no guarantees on the ordering of entries inside the\n * array, and it may change when more entries are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {\n require(map._entries.length > index, \"EnumerableMap: index out of bounds\");\n\n MapEntry storage entry = map._entries[index];\n return (entry._key, entry._value);\n }\n\n /**\n * @dev Returns the value associated with `key`. O(1).\n *\n * Requirements:\n *\n * - `key` must be in the map.\n */\n function _get(Map storage map, bytes32 key) private view returns (bytes32) {\n return _get(map, key, \"EnumerableMap: nonexistent key\");\n }\n\n /**\n * @dev Same as {_get}, with a custom error message when `key` is not in the map.\n */\n function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {\n uint256 keyIndex = map._indexes[key];\n require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)\n return map._entries[keyIndex - 1]._value; // All indexes are 1-based\n }\n\n // UintToAddressMap\n\n struct UintToAddressMap {\n Map _inner;\n }\n\n /**\n * @dev Adds a key-value pair to a map, or updates the value for an existing\n * key. O(1).\n *\n * Returns true if the key was added to the map, that is if it was not\n * already present.\n */\n function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {\n return _set(map._inner, bytes32(key), bytes32(uint256(value)));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the key was removed from the map, that is if it was present.\n */\n function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {\n return _remove(map._inner, bytes32(key));\n }\n\n /**\n * @dev Returns true if the key is in the map. O(1).\n */\n function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {\n return _contains(map._inner, bytes32(key));\n }\n\n /**\n * @dev Returns the number of elements in the map. O(1).\n */\n function length(UintToAddressMap storage map) internal view returns (uint256) {\n return _length(map._inner);\n }\n\n /**\n * @dev Returns the element stored at position `index` in the set. O(1).\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {\n (bytes32 key, bytes32 value) = _at(map._inner, index);\n return (uint256(key), address(uint256(value)));\n }\n\n /**\n * @dev Returns the value associated with `key`. O(1).\n *\n * Requirements:\n *\n * - `key` must be in the map.\n */\n function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {\n return address(uint256(_get(map._inner, bytes32(key))));\n }\n\n /**\n * @dev Same as {get}, with a custom error message when `key` is not in the map.\n */\n function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {\n return address(uint256(_get(map._inner, bytes32(key), errorMessage)));\n }\n}\n"}, "token/ERC20/TokenTimelock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xe81eb206344e66625c3ac7abf6d2c39b"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./SafeERC20.sol\";\n\n/**\n * @dev A token holder contract that will allow a beneficiary to extract the\n * tokens after a given release time.\n *\n * Useful for simple vesting schedules like \"advisors get all of their tokens\n * after 1 year\".\n */\ncontract TokenTimelock {\n using SafeERC20 for IERC20;\n\n // ERC20 basic token contract being held\n IERC20 private _token;\n\n // beneficiary of tokens after they are released\n address private _beneficiary;\n\n // timestamp when token release is enabled\n uint256 private _releaseTime;\n\n constructor (IERC20 token, address beneficiary, uint256 releaseTime) public {\n // solhint-disable-next-line not-rely-on-time\n require(releaseTime > block.timestamp, \"TokenTimelock: release time is before current time\");\n _token = token;\n _beneficiary = beneficiary;\n _releaseTime = releaseTime;\n }\n\n /**\n * @return the token being held.\n */\n function token() public view returns (IERC20) {\n return _token;\n }\n\n /**\n * @return the beneficiary of the tokens.\n */\n function beneficiary() public view returns (address) {\n return _beneficiary;\n }\n\n /**\n * @return the time when the tokens are released.\n */\n function releaseTime() public view returns (uint256) {\n return _releaseTime;\n }\n\n /**\n * @notice Transfers tokens held by timelock to beneficiary.\n */\n function release() public virtual {\n // solhint-disable-next-line not-rely-on-time\n require(block.timestamp >= _releaseTime, \"TokenTimelock: current time is before release time\");\n\n uint256 amount = _token.balanceOf(address(this));\n require(amount > 0, \"TokenTimelock: no tokens to release\");\n\n _token.safeTransfer(_beneficiary, amount);\n }\n}\n"}, "token/ERC1155/IERC1155Receiver.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x837aa60d99e32635f3b72bd8eecd910c"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../introspection/IERC165.sol\";\n\n/**\n * _Available since v3.1._\n */\ninterface IERC1155Receiver is IERC165 {\n\n /**\n @dev Handles the receipt of a single ERC1155 token type. This function is\n called at the end of a `safeTransferFrom` after the balance has been updated.\n To accept the transfer, this must return\n `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))`\n (i.e. 0xf23a6e61, or its own function selector).\n @param operator The address which initiated the transfer (i.e. msg.sender)\n @param from The address which previously owned the token\n @param id The ID of the token being transferred\n @param value The amount of tokens being transferred\n @param data Additional data with no specified format\n @return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed\n */\n function onERC1155Received(\n address operator,\n address from,\n uint256 id,\n uint256 value,\n bytes calldata data\n )\n external\n returns(bytes4);\n\n /**\n @dev Handles the receipt of a multiple ERC1155 token types. This function\n is called at the end of a `safeBatchTransferFrom` after the balances have\n been updated. To accept the transfer(s), this must return\n `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))`\n (i.e. 0xbc197c81, or its own function selector).\n @param operator The address which initiated the batch transfer (i.e. msg.sender)\n @param from The address which previously owned the token\n @param ids An array containing ids of each token being transferred (order and length must match values array)\n @param values An array containing amounts of each token being transferred (order and length must match ids array)\n @param data Additional data with no specified format\n @return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed\n */\n function onERC1155BatchReceived(\n address operator,\n address from,\n uint256[] calldata ids,\n uint256[] calldata values,\n bytes calldata data\n )\n external\n returns(bytes4);\n}\n"}, "utils/Address.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x123f93732b38fa4a14febeab42234999"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\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 function isContract(address account) internal view returns (bool) {\n // According to EIP-1052, 0x0 is the value returned for not-yet created accounts\n // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned\n // for accounts without code, i.e. `keccak256('')`\n bytes32 codehash;\n bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;\n // solhint-disable-next-line no-inline-assembly\n assembly { codehash := extcodehash(account) }\n return (codehash != accountHash && codehash != 0x0);\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 // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\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 functionCall(target, data, \"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(address target, bytes memory data, string memory errorMessage) 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(address target, bytes memory data, uint256 value) 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(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n return _functionCallWithValue(target, data, value, errorMessage);\n }\n\n function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {\n require(isContract(target), \"Address: call to non-contract\");\n\n // solhint-disable-next-line avoid-low-level-calls\n (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);\n if (success) {\n return returndata;\n } else {\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\n // solhint-disable-next-line no-inline-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}\n"}, "introspection/IERC1820Implementer.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4338cf7f4966ea93b5cf21e0e93d7ba5"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface for an ERC1820 implementer, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1820#interface-implementation-erc1820implementerinterface[EIP].\n * Used by contracts that will be registered as implementers in the\n * {IERC1820Registry}.\n */\ninterface IERC1820Implementer {\n /**\n * @dev Returns a special value (`ERC1820_ACCEPT_MAGIC`) if this contract\n * implements `interfaceHash` for `account`.\n *\n * See {IERC1820Registry-setInterfaceImplementer}.\n */\n function canImplementInterfaceForAddress(bytes32 interfaceHash, address account) external view returns (bytes32);\n}\n"}, "mocks/OwnableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x533267bcc8c8c138bd8e6c862bf33058"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/Ownable.sol\";\n\ncontract OwnableMock is Ownable { }\n"}, "mocks/ContextMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x04cf2951293c617b1f9df4737909381f"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\n\ncontract ContextMock is Context {\n event Sender(address sender);\n\n function msgSender() public {\n emit Sender(_msgSender());\n }\n\n event Data(bytes data, uint256 integerValue, string stringValue);\n\n function msgData(uint256 integerValue, string memory stringValue) public {\n emit Data(_msgData(), integerValue, stringValue);\n }\n}\n\ncontract ContextMockCaller {\n function callSender(ContextMock context) public {\n context.msgSender();\n }\n\n function callData(ContextMock context, uint256 integerValue, string memory stringValue) public {\n context.msgData(integerValue, stringValue);\n }\n}\n"}, "token/ERC1155/ERC1155.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x9aea29fcb7f1fe67447e29a23da4f8b6"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC1155.sol\";\nimport \"./IERC1155MetadataURI.sol\";\nimport \"./IERC1155Receiver.sol\";\nimport \"../../GSN/Context.sol\";\nimport \"../../introspection/ERC165.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.sol\";\n\n/**\n *\n * @dev Implementation of the basic standard multi-token.\n * See https://eips.ethereum.org/EIPS/eip-1155\n * Originally based on code by Enjin: https://github.com/enjin/erc-1155\n *\n * _Available since v3.1._\n */\ncontract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {\n using SafeMath for uint256;\n using Address for address;\n\n // Mapping from token ID to account balances\n mapping (uint256 => mapping(address => uint256)) private _balances;\n\n // Mapping from account to operator approvals\n mapping (address => mapping(address => bool)) private _operatorApprovals;\n\n // Used as the URI for all token types by relying on ID substition, e.g. https://token-cdn-domain/{id}.json\n string private _uri;\n\n /*\n * bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e\n * bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4\n * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465\n * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5\n * bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a\n * bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6\n *\n * => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^\n * 0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26\n */\n bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26;\n\n /*\n * bytes4(keccak256('uri(uint256)')) == 0x0e89341c\n */\n bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c;\n\n /**\n * @dev See {_setURI}.\n */\n constructor (string memory uri) public {\n _setURI(uri);\n\n // register the supported interfaces to conform to ERC1155 via ERC165\n _registerInterface(_INTERFACE_ID_ERC1155);\n\n // register the supported interfaces to conform to ERC1155MetadataURI via ERC165\n _registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI);\n }\n\n /**\n * @dev See {IERC1155MetadataURI-uri}.\n *\n * This implementation returns the same URI for *all* token types. It relies\n * on the token type ID substituion mechanism\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\n *\n * Clients calling this function must replace the `\\{id\\}` substring with the\n * actual token type ID.\n */\n function uri(uint256) external view override returns (string memory) {\n return _uri;\n }\n\n /**\n * @dev See {IERC1155-balanceOf}.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function balanceOf(address account, uint256 id) public view override returns (uint256) {\n require(account != address(0), \"ERC1155: balance query for the zero address\");\n return _balances[id][account];\n }\n\n /**\n * @dev See {IERC1155-balanceOfBatch}.\n *\n * Requirements:\n *\n * - `accounts` and `ids` must have the same length.\n */\n function balanceOfBatch(\n address[] memory accounts,\n uint256[] memory ids\n )\n public\n view\n override\n returns (uint256[] memory)\n {\n require(accounts.length == ids.length, \"ERC1155: accounts and ids length mismatch\");\n\n uint256[] memory batchBalances = new uint256[](accounts.length);\n\n for (uint256 i = 0; i < accounts.length; ++i) {\n require(accounts[i] != address(0), \"ERC1155: batch balance query for the zero address\");\n batchBalances[i] = _balances[ids[i]][accounts[i]];\n }\n\n return batchBalances;\n }\n\n /**\n * @dev See {IERC1155-setApprovalForAll}.\n */\n function setApprovalForAll(address operator, bool approved) public virtual override {\n require(_msgSender() != operator, \"ERC1155: setting approval status for self\");\n\n _operatorApprovals[_msgSender()][operator] = approved;\n emit ApprovalForAll(_msgSender(), operator, approved);\n }\n\n /**\n * @dev See {IERC1155-isApprovedForAll}.\n */\n function isApprovedForAll(address account, address operator) public view override returns (bool) {\n return _operatorApprovals[account][operator];\n }\n\n /**\n * @dev See {IERC1155-safeTransferFrom}.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 id,\n uint256 amount,\n bytes memory data\n )\n public\n virtual\n override\n {\n require(to != address(0), \"ERC1155: transfer to the zero address\");\n require(\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\n \"ERC1155: caller is not owner nor approved\"\n );\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);\n\n _balances[id][from] = _balances[id][from].sub(amount, \"ERC1155: insufficient balance for transfer\");\n _balances[id][to] = _balances[id][to].add(amount);\n\n emit TransferSingle(operator, from, to, id, amount);\n\n _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);\n }\n\n /**\n * @dev See {IERC1155-safeBatchTransferFrom}.\n */\n function safeBatchTransferFrom(\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n public\n virtual\n override\n {\n require(ids.length == amounts.length, \"ERC1155: ids and amounts length mismatch\");\n require(to != address(0), \"ERC1155: transfer to the zero address\");\n require(\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\n \"ERC1155: transfer caller is not owner nor approved\"\n );\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, from, to, ids, amounts, data);\n\n for (uint256 i = 0; i < ids.length; ++i) {\n uint256 id = ids[i];\n uint256 amount = amounts[i];\n\n _balances[id][from] = _balances[id][from].sub(\n amount,\n \"ERC1155: insufficient balance for transfer\"\n );\n _balances[id][to] = _balances[id][to].add(amount);\n }\n\n emit TransferBatch(operator, from, to, ids, amounts);\n\n _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);\n }\n\n /**\n * @dev Sets a new URI for all token types, by relying on the token type ID\n * substituion mechanism\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\n *\n * By this mechanism, any occurence of the `\\{id\\}` substring in either the\n * URI or any of the amounts in the JSON file at said URI will be replaced by\n * clients with the token type ID.\n *\n * For example, the `https://token-cdn-domain/\\{id\\}.json` URI would be\n * interpreted by clients as\n * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`\n * for token type ID 0x4cce0.\n *\n * See {uri}.\n *\n * Because these URIs cannot be meaningfully represented by the {URI} event,\n * this function emits no events.\n */\n function _setURI(string memory newuri) internal virtual {\n _uri = newuri;\n }\n\n /**\n * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.\n *\n * Emits a {TransferSingle} event.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\n * acceptance magic value.\n */\n function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal virtual {\n require(account != address(0), \"ERC1155: mint to the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);\n\n _balances[id][account] = _balances[id][account].add(amount);\n emit TransferSingle(operator, address(0), account, id, amount);\n\n _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);\n }\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\n * acceptance magic value.\n */\n function _mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual {\n require(to != address(0), \"ERC1155: mint to the zero address\");\n require(ids.length == amounts.length, \"ERC1155: ids and amounts length mismatch\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);\n\n for (uint i = 0; i < ids.length; i++) {\n _balances[ids[i]][to] = amounts[i].add(_balances[ids[i]][to]);\n }\n\n emit TransferBatch(operator, address(0), to, ids, amounts);\n\n _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);\n }\n\n /**\n * @dev Destroys `amount` tokens of token type `id` from `account`\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens of token type `id`.\n */\n function _burn(address account, uint256 id, uint256 amount) internal virtual {\n require(account != address(0), \"ERC1155: burn from the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), \"\");\n\n _balances[id][account] = _balances[id][account].sub(\n amount,\n \"ERC1155: burn amount exceeds balance\"\n );\n\n emit TransferSingle(operator, account, address(0), id, amount);\n }\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n */\n function _burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) internal virtual {\n require(account != address(0), \"ERC1155: burn from the zero address\");\n require(ids.length == amounts.length, \"ERC1155: ids and amounts length mismatch\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, account, address(0), ids, amounts, \"\");\n\n for (uint i = 0; i < ids.length; i++) {\n _balances[ids[i]][account] = _balances[ids[i]][account].sub(\n amounts[i],\n \"ERC1155: burn amount exceeds balance\"\n );\n }\n\n emit TransferBatch(operator, account, address(0), ids, amounts);\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes minting\n * and burning, as well as batched variants.\n *\n * The same hook is called on both single and batched variants. For single\n * transfers, the length of the `id` and `amount` arrays will be 1.\n *\n * Calling conditions (for each `id` and `amount` pair):\n *\n * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * of token type `id` will be transferred to `to`.\n * - When `from` is zero, `amount` tokens of token type `id` will be minted\n * for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`\n * will be burned.\n * - `from` and `to` are never both zero.\n * - `ids` and `amounts` have the same, non-zero length.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n internal virtual\n { }\n\n function _doSafeTransferAcceptanceCheck(\n address operator,\n address from,\n address to,\n uint256 id,\n uint256 amount,\n bytes memory data\n )\n private\n {\n if (to.isContract()) {\n try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {\n if (response != IERC1155Receiver(to).onERC1155Received.selector) {\n revert(\"ERC1155: ERC1155Receiver rejected tokens\");\n }\n } catch Error(string memory reason) {\n revert(reason);\n } catch {\n revert(\"ERC1155: transfer to non ERC1155Receiver implementer\");\n }\n }\n }\n\n function _doSafeBatchTransferAcceptanceCheck(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n private\n {\n if (to.isContract()) {\n try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (bytes4 response) {\n if (response != IERC1155Receiver(to).onERC1155BatchReceived.selector) {\n revert(\"ERC1155: ERC1155Receiver rejected tokens\");\n }\n } catch Error(string memory reason) {\n revert(reason);\n } catch {\n revert(\"ERC1155: transfer to non ERC1155Receiver implementer\");\n }\n }\n }\n\n function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {\n uint256[] memory array = new uint256[](1);\n array[0] = element;\n\n return array;\n }\n}\n"}, "mocks/ERC1155BurnableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x506a1bf54da5fdb51a72c4ac96c61a1f"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC1155/ERC1155Burnable.sol\";\n\ncontract ERC1155BurnableMock is ERC1155Burnable {\n constructor(string memory uri) public ERC1155(uri) { }\n\n function mint(address to, uint256 id, uint256 value, bytes memory data) public {\n _mint(to, id, value, data);\n }\n}\n"}, "mocks/ConditionalEscrowMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x23b3667f652518d58c2e9ce14c0a5b87"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../payment/escrow/ConditionalEscrow.sol\";\n\n// mock class using ConditionalEscrow\ncontract ConditionalEscrowMock is ConditionalEscrow {\n mapping(address => bool) private _allowed;\n\n function setAllowed(address payee, bool allowed) public {\n _allowed[payee] = allowed;\n }\n\n function withdrawalAllowed(address payee) public view override returns (bool) {\n return _allowed[payee];\n }\n}\n"}, "mocks/ERC165CheckerMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x6d638f2c072109194fef80edcebf3433"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../introspection/ERC165Checker.sol\";\n\ncontract ERC165CheckerMock {\n using ERC165Checker for address;\n\n function supportsERC165(address account) public view returns (bool) {\n return account.supportsERC165();\n }\n\n function supportsInterface(address account, bytes4 interfaceId) public view returns (bool) {\n return account.supportsInterface(interfaceId);\n }\n\n function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) public view returns (bool) {\n return account.supportsAllInterfaces(interfaceIds);\n }\n}\n"}, "mocks/PullPaymentMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x83a0a817fbc6257afd0d9f592ef6358d"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../payment/PullPayment.sol\";\n\n// mock class using PullPayment\ncontract PullPaymentMock is PullPayment {\n constructor () public payable { }\n\n // test helper function to call asyncTransfer\n function callTransfer(address dest, uint256 amount) public {\n _asyncTransfer(dest, amount);\n }\n}\n"}, "token/ERC721/ERC721Pausable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xcc162080e8c5d3988dd50ceed8359aac"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC721.sol\";\nimport \"../../utils/Pausable.sol\";\n\n/**\n * @dev ERC721 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 ERC721Pausable is ERC721, Pausable {\n /**\n * @dev See {ERC721-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {\n super._beforeTokenTransfer(from, to, tokenId);\n\n require(!paused(), \"ERC721Pausable: token transfer while paused\");\n }\n}\n"}, "mocks/ERC721Mock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x05d26627682494e4ab956ffdaf9fcb36"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/ERC721.sol\";\n\n/**\n * @title ERC721Mock\n * This mock just provides a public safeMint, mint, and burn functions for testing purposes\n */\ncontract ERC721Mock is ERC721 {\n constructor (string memory name, string memory symbol) public ERC721(name, symbol) { }\n\n function exists(uint256 tokenId) public view returns (bool) {\n return _exists(tokenId);\n }\n\n function setTokenURI(uint256 tokenId, string memory uri) public {\n _setTokenURI(tokenId, uri);\n }\n\n function setBaseURI(string memory baseURI) public {\n _setBaseURI(baseURI);\n }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n\n function safeMint(address to, uint256 tokenId) public {\n _safeMint(to, tokenId);\n }\n\n function safeMint(address to, uint256 tokenId, bytes memory _data) public {\n _safeMint(to, tokenId, _data);\n }\n\n function burn(uint256 tokenId) public {\n _burn(tokenId);\n }\n}\n"}, "introspection/ERC165.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xcd8a4a4c1e298943d96dd5ed09ad27f3"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts may inherit from this and call {_registerInterface} to declare\n * their support of an interface.\n */\ncontract ERC165 is IERC165 {\n /*\n * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7\n */\n bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;\n\n /**\n * @dev Mapping of interface ids to whether or not it's supported.\n */\n mapping(bytes4 => bool) private _supportedInterfaces;\n\n constructor () internal {\n // Derived contracts need only register support for their own interfaces,\n // we register support for ERC165 itself here\n _registerInterface(_INTERFACE_ID_ERC165);\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n *\n * Time complexity O(1), guaranteed to always use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) public view override returns (bool) {\n return _supportedInterfaces[interfaceId];\n }\n\n /**\n * @dev Registers the contract as an implementer of the interface defined by\n * `interfaceId`. Support of the actual ERC165 interface is automatic and\n * registering its interface id is not required.\n *\n * See {IERC165-supportsInterface}.\n *\n * Requirements:\n *\n * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).\n */\n function _registerInterface(bytes4 interfaceId) internal virtual {\n require(interfaceId != 0xffffffff, \"ERC165: invalid interface id\");\n _supportedInterfaces[interfaceId] = true;\n }\n}\n"}, "token/ERC1155/IERC1155MetadataURI.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x561146e5a317176f08a42178416506b3"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"./IERC1155.sol\";\n\n/**\n * @dev Interface of the optional ERC1155MetadataExtension interface, as defined\n * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].\n *\n * _Available since v3.1._\n */\ninterface IERC1155MetadataURI is IERC1155 {\n /**\n * @dev Returns the URI for token type `id`.\n *\n * If the `\\{id\\}` substring is present in the URI, it must be replaced by\n * clients with the actual token type ID.\n */\n function uri(uint256 id) external view returns (string memory);\n}\n"}, "GSN/GSNRecipientERC20Fee.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xe3089e31692de74f4adbbd00df4c673a"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./GSNRecipient.sol\";\nimport \"../math/SafeMath.sol\";\nimport \"../access/Ownable.sol\";\nimport \"../token/ERC20/SafeERC20.sol\";\nimport \"../token/ERC20/ERC20.sol\";\n\n/**\n * @dev A xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategy] that charges transaction fees in a special purpose ERC20\n * token, which we refer to as the gas payment token. The amount charged is exactly the amount of Ether charged to the\n * recipient. This means that the token is essentially pegged to the value of Ether.\n *\n * The distribution strategy of the gas payment token to users is not defined by this contract. It's a mintable token\n * whose only minter is the recipient, so the strategy must be implemented in a derived contract, making use of the\n * internal {_mint} function.\n */\ncontract GSNRecipientERC20Fee is GSNRecipient {\n using SafeERC20 for __unstable__ERC20Owned;\n using SafeMath for uint256;\n\n enum GSNRecipientERC20FeeErrorCodes {\n INSUFFICIENT_BALANCE\n }\n\n __unstable__ERC20Owned private _token;\n\n /**\n * @dev The arguments to the constructor are the details that the gas payment token will have: `name` and `symbol`. `decimals` is hard-coded to 18.\n */\n constructor(string memory name, string memory symbol) public {\n _token = new __unstable__ERC20Owned(name, symbol);\n }\n\n /**\n * @dev Returns the gas payment token.\n */\n function token() public view returns (IERC20) {\n return IERC20(_token);\n }\n\n /**\n * @dev Internal function that mints the gas payment token. Derived contracts should expose this function in their public API, with proper access control mechanisms.\n */\n function _mint(address account, uint256 amount) internal virtual {\n _token.mint(account, amount);\n }\n\n /**\n * @dev Ensures that only users with enough gas payment token balance can have transactions relayed through the GSN.\n */\n function acceptRelayedCall(\n address,\n address from,\n bytes memory,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256,\n uint256,\n bytes memory,\n uint256 maxPossibleCharge\n )\n public\n view\n virtual\n override\n returns (uint256, bytes memory)\n {\n if (_token.balanceOf(from) < maxPossibleCharge) {\n return _rejectRelayedCall(uint256(GSNRecipientERC20FeeErrorCodes.INSUFFICIENT_BALANCE));\n }\n\n return _approveRelayedCall(abi.encode(from, maxPossibleCharge, transactionFee, gasPrice));\n }\n\n /**\n * @dev Implements the precharge to the user. The maximum possible charge (depending on gas limit, gas price, and\n * fee) will be deducted from the user balance of gas payment token. Note that this is an overestimation of the\n * actual charge, necessary because we cannot predict how much gas the execution will actually need. The remainder\n * is returned to the user in {_postRelayedCall}.\n */\n function _preRelayedCall(bytes memory context) internal virtual override returns (bytes32) {\n (address from, uint256 maxPossibleCharge) = abi.decode(context, (address, uint256));\n\n // The maximum token charge is pre-charged from the user\n _token.safeTransferFrom(from, address(this), maxPossibleCharge);\n }\n\n /**\n * @dev Returns to the user the extra amount that was previously charged, once the actual execution cost is known.\n */\n function _postRelayedCall(bytes memory context, bool, uint256 actualCharge, bytes32) internal virtual override {\n (address from, uint256 maxPossibleCharge, uint256 transactionFee, uint256 gasPrice) =\n abi.decode(context, (address, uint256, uint256, uint256));\n\n // actualCharge is an _estimated_ charge, which assumes postRelayedCall will use all available gas.\n // This implementation's gas cost can be roughly estimated as 10k gas, for the two SSTORE operations in an\n // ERC20 transfer.\n uint256 overestimation = _computeCharge(_POST_RELAYED_CALL_MAX_GAS.sub(10000), gasPrice, transactionFee);\n actualCharge = actualCharge.sub(overestimation);\n\n // After the relayed call has been executed and the actual charge estimated, the excess pre-charge is returned\n _token.safeTransfer(from, maxPossibleCharge.sub(actualCharge));\n }\n}\n\n/**\n * @title __unstable__ERC20Owned\n * @dev An ERC20 token owned by another contract, which has minting permissions and can use transferFrom to receive\n * anyone's tokens. This contract is an internal helper for GSNRecipientERC20Fee, and should not be used\n * outside of this context.\n */\n// solhint-disable-next-line contract-name-camelcase\ncontract __unstable__ERC20Owned is ERC20, Ownable {\n uint256 private constant _UINT256_MAX = 2**256 - 1;\n\n constructor(string memory name, string memory symbol) public ERC20(name, symbol) { }\n\n // The owner (GSNRecipientERC20Fee) can mint tokens\n function mint(address account, uint256 amount) public onlyOwner {\n _mint(account, amount);\n }\n\n // The owner has 'infinite' allowance for all token holders\n function allowance(address tokenOwner, address spender) public view override returns (uint256) {\n if (spender == owner()) {\n return _UINT256_MAX;\n } else {\n return super.allowance(tokenOwner, spender);\n }\n }\n\n // Allowance for the owner cannot be changed (it is always 'infinite')\n function _approve(address tokenOwner, address spender, uint256 value) internal override {\n if (spender == owner()) {\n return;\n } else {\n super._approve(tokenOwner, spender, value);\n }\n }\n\n function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {\n if (recipient == owner()) {\n _transfer(sender, recipient, amount);\n return true;\n } else {\n return super.transferFrom(sender, recipient, amount);\n }\n }\n}\n"}, "token/ERC20/ERC20Pausable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x26e130d2743a47f3142a1666457672f6"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC20.sol\";\nimport \"../../utils/Pausable.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 ERC20Pausable is ERC20, Pausable {\n /**\n * @dev See {ERC20-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\n super._beforeTokenTransfer(from, to, amount);\n\n require(!paused(), \"ERC20Pausable: token transfer while paused\");\n }\n}\n"}, "GSN/GSNRecipient.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x2c32a9ee9227f2e7c27167a08fda08f4"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IRelayRecipient.sol\";\nimport \"./IRelayHub.sol\";\nimport \"./Context.sol\";\n\n/**\n * @dev Base GSN recipient contract: includes the {IRelayRecipient} interface\n * and enables GSN support on all contracts in the inheritance tree.\n *\n * TIP: This contract is abstract. The functions {IRelayRecipient-acceptRelayedCall},\n * {_preRelayedCall}, and {_postRelayedCall} are not implemented and must be\n * provided by derived contracts. See the\n * xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategies] for more\n * information on how to use the pre-built {GSNRecipientSignature} and\n * {GSNRecipientERC20Fee}, or how to write your own.\n */\nabstract contract GSNRecipient is IRelayRecipient, Context {\n // Default RelayHub address, deployed on mainnet and all testnets at the same address\n address private _relayHub = 0xD216153c06E857cD7f72665E0aF1d7D82172F494;\n\n uint256 constant private _RELAYED_CALL_ACCEPTED = 0;\n uint256 constant private _RELAYED_CALL_REJECTED = 11;\n\n // How much gas is forwarded to postRelayedCall\n uint256 constant internal _POST_RELAYED_CALL_MAX_GAS = 100000;\n\n /**\n * @dev Emitted when a contract changes its {IRelayHub} contract to a new one.\n */\n event RelayHubChanged(address indexed oldRelayHub, address indexed newRelayHub);\n\n /**\n * @dev Returns the address of the {IRelayHub} contract for this recipient.\n */\n function getHubAddr() public view override returns (address) {\n return _relayHub;\n }\n\n /**\n * @dev Switches to a new {IRelayHub} instance. This method is added for future-proofing: there's no reason to not\n * use the default instance.\n *\n * IMPORTANT: After upgrading, the {GSNRecipient} will no longer be able to receive relayed calls from the old\n * {IRelayHub} instance. Additionally, all funds should be previously withdrawn via {_withdrawDeposits}.\n */\n function _upgradeRelayHub(address newRelayHub) internal virtual {\n address currentRelayHub = _relayHub;\n require(newRelayHub != address(0), \"GSNRecipient: new RelayHub is the zero address\");\n require(newRelayHub != currentRelayHub, \"GSNRecipient: new RelayHub is the current one\");\n\n emit RelayHubChanged(currentRelayHub, newRelayHub);\n\n _relayHub = newRelayHub;\n }\n\n /**\n * @dev Returns the version string of the {IRelayHub} for which this recipient implementation was built. If\n * {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version.\n */\n // This function is view for future-proofing, it may require reading from\n // storage in the future.\n function relayHubVersion() public view returns (string memory) {\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\n return \"1.0.0\";\n }\n\n /**\n * @dev Withdraws the recipient's deposits in `RelayHub`.\n *\n * Derived contracts should expose this in an external interface with proper access control.\n */\n function _withdrawDeposits(uint256 amount, address payable payee) internal virtual {\n IRelayHub(_relayHub).withdraw(amount, payee);\n }\n\n // Overrides for Context's functions: when called from RelayHub, sender and\n // data require some pre-processing: the actual sender is stored at the end\n // of the call data, which in turns means it needs to be removed from it\n // when handling said data.\n\n /**\n * @dev Replacement for msg.sender. Returns the actual sender of a transaction: msg.sender for regular transactions,\n * and the end-user for GSN relayed calls (where msg.sender is actually `RelayHub`).\n *\n * IMPORTANT: Contracts derived from {GSNRecipient} should never use `msg.sender`, and use {_msgSender} instead.\n */\n function _msgSender() internal view virtual override returns (address payable) {\n if (msg.sender != _relayHub) {\n return msg.sender;\n } else {\n return _getRelayedCallSender();\n }\n }\n\n /**\n * @dev Replacement for msg.data. Returns the actual calldata of a transaction: msg.data for regular transactions,\n * and a reduced version for GSN relayed calls (where msg.data contains additional information).\n *\n * IMPORTANT: Contracts derived from {GSNRecipient} should never use `msg.data`, and use {_msgData} instead.\n */\n function _msgData() internal view virtual override returns (bytes memory) {\n if (msg.sender != _relayHub) {\n return msg.data;\n } else {\n return _getRelayedCallData();\n }\n }\n\n // Base implementations for pre and post relayedCall: only RelayHub can invoke them, and data is forwarded to the\n // internal hook.\n\n /**\n * @dev See `IRelayRecipient.preRelayedCall`.\n *\n * This function should not be overriden directly, use `_preRelayedCall` instead.\n *\n * * Requirements:\n *\n * - the caller must be the `RelayHub` contract.\n */\n function preRelayedCall(bytes memory context) public virtual override returns (bytes32) {\n require(msg.sender == getHubAddr(), \"GSNRecipient: caller is not RelayHub\");\n return _preRelayedCall(context);\n }\n\n /**\n * @dev See `IRelayRecipient.preRelayedCall`.\n *\n * Called by `GSNRecipient.preRelayedCall`, which asserts the caller is the `RelayHub` contract. Derived contracts\n * must implement this function with any relayed-call preprocessing they may wish to do.\n *\n */\n function _preRelayedCall(bytes memory context) internal virtual returns (bytes32);\n\n /**\n * @dev See `IRelayRecipient.postRelayedCall`.\n *\n * This function should not be overriden directly, use `_postRelayedCall` instead.\n *\n * * Requirements:\n *\n * - the caller must be the `RelayHub` contract.\n */\n function postRelayedCall(bytes memory context, bool success, uint256 actualCharge, bytes32 preRetVal) public virtual override {\n require(msg.sender == getHubAddr(), \"GSNRecipient: caller is not RelayHub\");\n _postRelayedCall(context, success, actualCharge, preRetVal);\n }\n\n /**\n * @dev See `IRelayRecipient.postRelayedCall`.\n *\n * Called by `GSNRecipient.postRelayedCall`, which asserts the caller is the `RelayHub` contract. Derived contracts\n * must implement this function with any relayed-call postprocessing they may wish to do.\n *\n */\n function _postRelayedCall(bytes memory context, bool success, uint256 actualCharge, bytes32 preRetVal) internal virtual;\n\n /**\n * @dev Return this in acceptRelayedCall to proceed with the execution of a relayed call. Note that this contract\n * will be charged a fee by RelayHub\n */\n function _approveRelayedCall() internal pure returns (uint256, bytes memory) {\n return _approveRelayedCall(\"\");\n }\n\n /**\n * @dev See `GSNRecipient._approveRelayedCall`.\n *\n * This overload forwards `context` to _preRelayedCall and _postRelayedCall.\n */\n function _approveRelayedCall(bytes memory context) internal pure returns (uint256, bytes memory) {\n return (_RELAYED_CALL_ACCEPTED, context);\n }\n\n /**\n * @dev Return this in acceptRelayedCall to impede execution of a relayed call. No fees will be charged.\n */\n function _rejectRelayedCall(uint256 errorCode) internal pure returns (uint256, bytes memory) {\n return (_RELAYED_CALL_REJECTED + errorCode, \"\");\n }\n\n /*\n * @dev Calculates how much RelayHub will charge a recipient for using `gas` at a `gasPrice`, given a relayer's\n * `serviceFee`.\n */\n function _computeCharge(uint256 gas, uint256 gasPrice, uint256 serviceFee) internal pure returns (uint256) {\n // The fee is expressed as a percentage. E.g. a value of 40 stands for a 40% fee, so the recipient will be\n // charged for 1.4 times the spent amount.\n return (gas * gasPrice * (100 + serviceFee)) / 100;\n }\n\n function _getRelayedCallSender() private pure returns (address payable result) {\n // We need to read 20 bytes (an address) located at array index msg.data.length - 20. In memory, the array\n // is prefixed with a 32-byte length value, so we first add 32 to get the memory read index. However, doing\n // so would leave the address in the upper 20 bytes of the 32-byte word, which is inconvenient and would\n // require bit shifting. We therefore subtract 12 from the read index so the address lands on the lower 20\n // bytes. This can always be done due to the 32-byte prefix.\n\n // The final memory read index is msg.data.length - 20 + 32 - 12 = msg.data.length. Using inline assembly is the\n // easiest/most-efficient way to perform this operation.\n\n // These fields are not accessible from assembly\n bytes memory array = msg.data;\n uint256 index = msg.data.length;\n\n // solhint-disable-next-line no-inline-assembly\n assembly {\n // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.\n result := and(mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff)\n }\n return result;\n }\n\n function _getRelayedCallData() private pure returns (bytes memory) {\n // RelayHub appends the sender address at the end of the calldata, so in order to retrieve the actual msg.data,\n // we must strip the last 20 bytes (length of an address type) from it.\n\n uint256 actualDataLength = msg.data.length - 20;\n bytes memory actualData = new bytes(actualDataLength);\n\n for (uint256 i = 0; i < actualDataLength; ++i) {\n actualData[i] = msg.data[i];\n }\n\n return actualData;\n }\n}\n"}, "mocks/ERC165/ERC165NotSupported.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4bc0654a2644d01db7f3ebf5ed7ef785"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\ncontract ERC165NotSupported { }\n"}, "mocks/EnumerableSetMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x68c13f0b1526b7716b182e8d49df8f1c"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/EnumerableSet.sol\";\n\n// AddressSet\ncontract EnumerableAddressSetMock {\n using EnumerableSet for EnumerableSet.AddressSet;\n\n event OperationResult(bool result);\n\n EnumerableSet.AddressSet private _set;\n\n function contains(address value) public view returns (bool) {\n return _set.contains(value);\n }\n\n function add(address value) public {\n bool result = _set.add(value);\n emit OperationResult(result);\n }\n\n function remove(address value) public {\n bool result = _set.remove(value);\n emit OperationResult(result);\n }\n\n function length() public view returns (uint256) {\n return _set.length();\n }\n\n function at(uint256 index) public view returns (address) {\n return _set.at(index);\n }\n}\n\n// UintSet\ncontract EnumerableUintSetMock {\n using EnumerableSet for EnumerableSet.UintSet;\n\n event OperationResult(bool result);\n\n EnumerableSet.UintSet private _set;\n\n function contains(uint256 value) public view returns (bool) {\n return _set.contains(value);\n }\n\n function add(uint256 value) public {\n bool result = _set.add(value);\n emit OperationResult(result);\n }\n\n function remove(uint256 value) public {\n bool result = _set.remove(value);\n emit OperationResult(result);\n }\n\n function length() public view returns (uint256) {\n return _set.length();\n }\n\n function at(uint256 index) public view returns (uint256) {\n return _set.at(index);\n }\n}"}, "GSN/Context.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xaf1b36323856d0d1550abc7f878a8208"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\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 GSN 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 Context {\n function _msgSender() internal view virtual returns (address payable) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes memory) {\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\n return msg.data;\n }\n}\n"}, "utils/EnumerableSet.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x335c4591d8f63429138e843e91156f03"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Library for managing\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\n * types.\n *\n * Sets have the following properties:\n *\n * - Elements are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\n *\n * ```\n * contract Example {\n * // Add the library methods\n * using EnumerableSet for EnumerableSet.AddressSet;\n *\n * // Declare a set state variable\n * EnumerableSet.AddressSet private mySet;\n * }\n * ```\n *\n * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`\n * (`UintSet`) are supported.\n */\nlibrary EnumerableSet {\n // To implement this library for multiple types with as little code\n // repetition as possible, we write it in terms of a generic Set type with\n // bytes32 values.\n // The Set implementation uses private functions, and user-facing\n // implementations (such as AddressSet) are just wrappers around the\n // underlying Set.\n // This means that we can only create new EnumerableSets for types that fit\n // in bytes32.\n\n struct Set {\n // Storage of set values\n bytes32[] _values;\n\n // Position of the value in the `values` array, plus 1 because index 0\n // means a value is not in the set.\n mapping (bytes32 => uint256) _indexes;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function _add(Set storage set, bytes32 value) private returns (bool) {\n if (!_contains(set, value)) {\n set._values.push(value);\n // The value is stored at length-1, but we add 1 to all indexes\n // and use 0 as a sentinel value\n set._indexes[value] = set._values.length;\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function _remove(Set storage set, bytes32 value) private returns (bool) {\n // We read and store the value's index to prevent multiple reads from the same storage slot\n uint256 valueIndex = set._indexes[value];\n\n if (valueIndex != 0) { // Equivalent to contains(set, value)\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n // the array, and then remove the last element (sometimes called as 'swap and pop').\n // This modifies the order of the array, as noted in {at}.\n\n uint256 toDeleteIndex = valueIndex - 1;\n uint256 lastIndex = set._values.length - 1;\n\n // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs\n // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.\n\n bytes32 lastvalue = set._values[lastIndex];\n\n // Move the last value to the index where the value to delete is\n set._values[toDeleteIndex] = lastvalue;\n // Update the index for the moved value\n set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based\n\n // Delete the slot where the moved value was stored\n set._values.pop();\n\n // Delete the index for the deleted slot\n delete set._indexes[value];\n\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\n return set._indexes[value] != 0;\n }\n\n /**\n * @dev Returns the number of values on the set. O(1).\n */\n function _length(Set storage set) private view returns (uint256) {\n return set._values.length;\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\n require(set._values.length > index, \"EnumerableSet: index out of bounds\");\n return set._values[index];\n }\n\n // AddressSet\n\n struct AddressSet {\n Set _inner;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function add(AddressSet storage set, address value) internal returns (bool) {\n return _add(set._inner, bytes32(uint256(value)));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function remove(AddressSet storage set, address value) internal returns (bool) {\n return _remove(set._inner, bytes32(uint256(value)));\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function contains(AddressSet storage set, address value) internal view returns (bool) {\n return _contains(set._inner, bytes32(uint256(value)));\n }\n\n /**\n * @dev Returns the number of values in the set. O(1).\n */\n function length(AddressSet storage set) internal view returns (uint256) {\n return _length(set._inner);\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\n return address(uint256(_at(set._inner, index)));\n }\n\n\n // UintSet\n\n struct UintSet {\n Set _inner;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function add(UintSet storage set, uint256 value) internal returns (bool) {\n return _add(set._inner, bytes32(value));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\n return _remove(set._inner, bytes32(value));\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\n return _contains(set._inner, bytes32(value));\n }\n\n /**\n * @dev Returns the number of values on the set. O(1).\n */\n function length(UintSet storage set) internal view returns (uint256) {\n return _length(set._inner);\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\n return uint256(_at(set._inner, index));\n }\n}\n"}, "payment/PaymentSplitter.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd131da7471a0653d388cf310221b2b62"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\nimport \"../math/SafeMath.sol\";\n\n/**\n * @title PaymentSplitter\n * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware\n * that the Ether will be split in this way, since it is handled transparently by the contract.\n *\n * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each\n * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim\n * an amount proportional to the percentage of total shares they were assigned.\n *\n * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the\n * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}\n * function.\n */\ncontract PaymentSplitter is Context {\n using SafeMath for uint256;\n\n event PayeeAdded(address account, uint256 shares);\n event PaymentReleased(address to, uint256 amount);\n event PaymentReceived(address from, uint256 amount);\n\n uint256 private _totalShares;\n uint256 private _totalReleased;\n\n mapping(address => uint256) private _shares;\n mapping(address => uint256) private _released;\n address[] private _payees;\n\n /**\n * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at\n * the matching position in the `shares` array.\n *\n * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no\n * duplicates in `payees`.\n */\n constructor (address[] memory payees, uint256[] memory shares) public payable {\n // solhint-disable-next-line max-line-length\n require(payees.length == shares.length, \"PaymentSplitter: payees and shares length mismatch\");\n require(payees.length > 0, \"PaymentSplitter: no payees\");\n\n for (uint256 i = 0; i < payees.length; i++) {\n _addPayee(payees[i], shares[i]);\n }\n }\n\n /**\n * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully\n * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the\n * reliability of the events, and not the actual splitting of Ether.\n *\n * To learn more about this see the Solidity documentation for\n * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback\n * functions].\n */\n receive () external payable virtual {\n emit PaymentReceived(_msgSender(), msg.value);\n }\n\n /**\n * @dev Getter for the total shares held by payees.\n */\n function totalShares() public view returns (uint256) {\n return _totalShares;\n }\n\n /**\n * @dev Getter for the total amount of Ether already released.\n */\n function totalReleased() public view returns (uint256) {\n return _totalReleased;\n }\n\n /**\n * @dev Getter for the amount of shares held by an account.\n */\n function shares(address account) public view returns (uint256) {\n return _shares[account];\n }\n\n /**\n * @dev Getter for the amount of Ether already released to a payee.\n */\n function released(address account) public view returns (uint256) {\n return _released[account];\n }\n\n /**\n * @dev Getter for the address of the payee number `index`.\n */\n function payee(uint256 index) public view returns (address) {\n return _payees[index];\n }\n\n /**\n * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the\n * total shares and their previous withdrawals.\n */\n function release(address payable account) public virtual {\n require(_shares[account] > 0, \"PaymentSplitter: account has no shares\");\n\n uint256 totalReceived = address(this).balance.add(_totalReleased);\n uint256 payment = totalReceived.mul(_shares[account]).div(_totalShares).sub(_released[account]);\n\n require(payment != 0, \"PaymentSplitter: account is not due payment\");\n\n _released[account] = _released[account].add(payment);\n _totalReleased = _totalReleased.add(payment);\n\n account.transfer(payment);\n emit PaymentReleased(account, payment);\n }\n\n /**\n * @dev Add a new payee to the contract.\n * @param account The address of the payee to add.\n * @param shares_ The number of shares owned by the payee.\n */\n function _addPayee(address account, uint256 shares_) private {\n require(account != address(0), \"PaymentSplitter: account is the zero address\");\n require(shares_ > 0, \"PaymentSplitter: shares are 0\");\n require(_shares[account] == 0, \"PaymentSplitter: account already has shares\");\n\n _payees.push(account);\n _shares[account] = shares_;\n _totalShares = _totalShares.add(shares_);\n emit PayeeAdded(account, shares_);\n }\n}\n"}, "token/ERC1155/ERC1155Pausable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x1bbfd8a9cf81ff8d9fdc7d6090d30188"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC1155.sol\";\nimport \"../../utils/Pausable.sol\";\n\n/**\n * @dev ERC1155 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 *\n * _Available since v3.1._\n */\nabstract contract ERC1155Pausable is ERC1155, Pausable {\n /**\n * @dev See {ERC1155-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n internal virtual override\n {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n\n require(!paused(), \"ERC1155Pausable: token transfer while paused\");\n }\n}\n"}, "mocks/ERC1155PausableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x336f26b00c47b1ae18fcba3b5c4a4585"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC1155Mock.sol\";\nimport \"../token/ERC1155/ERC1155Pausable.sol\";\n\ncontract ERC1155PausableMock is ERC1155Mock, ERC1155Pausable {\n constructor(string memory uri) public ERC1155Mock(uri) { }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n internal virtual override(ERC1155, ERC1155Pausable)\n {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n }\n}\n"}, "introspection/IERC1820Registry.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xe4007711675473a0131babb0645d04c7"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the global ERC1820 Registry, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register\n * implementers for interfaces in this registry, as well as query support.\n *\n * Implementers may be shared by multiple accounts, and can also implement more\n * than a single interface for each account. Contracts can implement interfaces\n * for themselves, but externally-owned accounts (EOA) must delegate this to a\n * contract.\n *\n * {IERC165} interfaces can also be queried via the registry.\n *\n * For an in-depth explanation and source code analysis, see the EIP text.\n */\ninterface IERC1820Registry {\n /**\n * @dev Sets `newManager` as the manager for `account`. A manager of an\n * account is able to set interface implementers for it.\n *\n * By default, each account is its own manager. Passing a value of `0x0` in\n * `newManager` will reset the manager to this initial state.\n *\n * Emits a {ManagerChanged} event.\n *\n * Requirements:\n *\n * - the caller must be the current manager for `account`.\n */\n function setManager(address account, address newManager) external;\n\n /**\n * @dev Returns the manager for `account`.\n *\n * See {setManager}.\n */\n function getManager(address account) external view returns (address);\n\n /**\n * @dev Sets the `implementer` contract as ``account``'s implementer for\n * `interfaceHash`.\n *\n * `account` being the zero address is an alias for the caller's address.\n * The zero address can also be used in `implementer` to remove an old one.\n *\n * See {interfaceHash} to learn how these are created.\n *\n * Emits an {InterfaceImplementerSet} event.\n *\n * Requirements:\n *\n * - the caller must be the current manager for `account`.\n * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not\n * end in 28 zeroes).\n * - `implementer` must implement {IERC1820Implementer} and return true when\n * queried for support, unless `implementer` is the caller. See\n * {IERC1820Implementer-canImplementInterfaceForAddress}.\n */\n function setInterfaceImplementer(address account, bytes32 interfaceHash, address implementer) external;\n\n /**\n * @dev Returns the implementer of `interfaceHash` for `account`. If no such\n * implementer is registered, returns the zero address.\n *\n * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28\n * zeroes), `account` will be queried for support of it.\n *\n * `account` being the zero address is an alias for the caller's address.\n */\n function getInterfaceImplementer(address account, bytes32 interfaceHash) external view returns (address);\n\n /**\n * @dev Returns the interface hash for an `interfaceName`, as defined in the\n * corresponding\n * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP].\n */\n function interfaceHash(string calldata interfaceName) external pure returns (bytes32);\n\n /**\n * @notice Updates the cache with whether the contract implements an ERC165 interface or not.\n * @param account Address of the contract for which to update the cache.\n * @param interfaceId ERC165 interface for which to update the cache.\n */\n function updateERC165Cache(address account, bytes4 interfaceId) external;\n\n /**\n * @notice Checks whether a contract implements an ERC165 interface or not.\n * If the result is not cached a direct lookup on the contract address is performed.\n * If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling\n * {updateERC165Cache} with the contract address.\n * @param account Address of the contract to check.\n * @param interfaceId ERC165 interface to check.\n * @return True if `account` implements `interfaceId`, false otherwise.\n */\n function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool);\n\n /**\n * @notice Checks whether a contract implements an ERC165 interface or not without using nor updating the cache.\n * @param account Address of the contract to check.\n * @param interfaceId ERC165 interface to check.\n * @return True if `account` implements `interfaceId`, false otherwise.\n */\n function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool);\n\n event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer);\n\n event ManagerChanged(address indexed account, address indexed newManager);\n}\n"}, "utils/SafeCast.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x135c97adf8509d5a256174357b73d472"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n *\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\n * all math on `uint256` and `int256` and then downcasting.\n */\nlibrary SafeCast {\n\n /**\n * @dev Returns the downcasted uint128 from uint256, reverting on\n * overflow (when the input is greater than largest uint128).\n *\n * Counterpart to Solidity's `uint128` operator.\n *\n * Requirements:\n *\n * - input must fit into 128 bits\n */\n function toUint128(uint256 value) internal pure returns (uint128) {\n require(value < 2**128, \"SafeCast: value doesn\\'t fit in 128 bits\");\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint64 from uint256, reverting on\n * overflow (when the input is greater than largest uint64).\n *\n * Counterpart to Solidity's `uint64` operator.\n *\n * Requirements:\n *\n * - input must fit into 64 bits\n */\n function toUint64(uint256 value) internal pure returns (uint64) {\n require(value < 2**64, \"SafeCast: value doesn\\'t fit in 64 bits\");\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint32 from uint256, reverting on\n * overflow (when the input is greater than largest uint32).\n *\n * Counterpart to Solidity's `uint32` operator.\n *\n * Requirements:\n *\n * - input must fit into 32 bits\n */\n function toUint32(uint256 value) internal pure returns (uint32) {\n require(value < 2**32, \"SafeCast: value doesn\\'t fit in 32 bits\");\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint16 from uint256, reverting on\n * overflow (when the input is greater than largest uint16).\n *\n * Counterpart to Solidity's `uint16` operator.\n *\n * Requirements:\n *\n * - input must fit into 16 bits\n */\n function toUint16(uint256 value) internal pure returns (uint16) {\n require(value < 2**16, \"SafeCast: value doesn\\'t fit in 16 bits\");\n return uint16(value);\n }\n\n /**\n * @dev Returns the downcasted uint8 from uint256, reverting on\n * overflow (when the input is greater than largest uint8).\n *\n * Counterpart to Solidity's `uint8` operator.\n *\n * Requirements:\n *\n * - input must fit into 8 bits.\n */\n function toUint8(uint256 value) internal pure returns (uint8) {\n require(value < 2**8, \"SafeCast: value doesn\\'t fit in 8 bits\");\n return uint8(value);\n }\n\n /**\n * @dev Converts a signed int256 into an unsigned uint256.\n *\n * Requirements:\n *\n * - input must be greater than or equal to 0.\n */\n function toUint256(int256 value) internal pure returns (uint256) {\n require(value >= 0, \"SafeCast: value must be positive\");\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int128 from int256, reverting on\n * overflow (when the input is less than smallest int128 or\n * greater than largest int128).\n *\n * Counterpart to Solidity's `int128` operator.\n *\n * Requirements:\n *\n * - input must fit into 128 bits\n *\n * _Available since v3.1._\n */\n function toInt128(int256 value) internal pure returns (int128) {\n require(value >= -2**127 && value < 2**127, \"SafeCast: value doesn\\'t fit in 128 bits\");\n return int128(value);\n }\n\n /**\n * @dev Returns the downcasted int64 from int256, reverting on\n * overflow (when the input is less than smallest int64 or\n * greater than largest int64).\n *\n * Counterpart to Solidity's `int64` operator.\n *\n * Requirements:\n *\n * - input must fit into 64 bits\n *\n * _Available since v3.1._\n */\n function toInt64(int256 value) internal pure returns (int64) {\n require(value >= -2**63 && value < 2**63, \"SafeCast: value doesn\\'t fit in 64 bits\");\n return int64(value);\n }\n\n /**\n * @dev Returns the downcasted int32 from int256, reverting on\n * overflow (when the input is less than smallest int32 or\n * greater than largest int32).\n *\n * Counterpart to Solidity's `int32` operator.\n *\n * Requirements:\n *\n * - input must fit into 32 bits\n *\n * _Available since v3.1._\n */\n function toInt32(int256 value) internal pure returns (int32) {\n require(value >= -2**31 && value < 2**31, \"SafeCast: value doesn\\'t fit in 32 bits\");\n return int32(value);\n }\n\n /**\n * @dev Returns the downcasted int16 from int256, reverting on\n * overflow (when the input is less than smallest int16 or\n * greater than largest int16).\n *\n * Counterpart to Solidity's `int16` operator.\n *\n * Requirements:\n *\n * - input must fit into 16 bits\n *\n * _Available since v3.1._\n */\n function toInt16(int256 value) internal pure returns (int16) {\n require(value >= -2**15 && value < 2**15, \"SafeCast: value doesn\\'t fit in 16 bits\");\n return int16(value);\n }\n\n /**\n * @dev Returns the downcasted int8 from int256, reverting on\n * overflow (when the input is less than smallest int8 or\n * greater than largest int8).\n *\n * Counterpart to Solidity's `int8` operator.\n *\n * Requirements:\n *\n * - input must fit into 8 bits.\n *\n * _Available since v3.1._\n */\n function toInt8(int256 value) internal pure returns (int8) {\n require(value >= -2**7 && value < 2**7, \"SafeCast: value doesn\\'t fit in 8 bits\");\n return int8(value);\n }\n\n /**\n * @dev Converts an unsigned uint256 into a signed int256.\n *\n * Requirements:\n *\n * - input must be less than or equal to maxInt256.\n */\n function toInt256(uint256 value) internal pure returns (int256) {\n require(value < 2**255, \"SafeCast: value doesn't fit in an int256\");\n return int256(value);\n }\n}\n"}, "token/ERC20/IERC20.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x95e76adf687e1a31a4b8ece4e9bb757a"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\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 `recipient`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address recipient, 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 `sender` to `recipient` 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(address sender, address recipient, uint256 amount) external returns (bool);\n\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"}, "presets/ERC1155PresetMinterPauser.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x54d61f91fded9161db409d5b49a1cb06"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/AccessControl.sol\";\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC1155/ERC1155.sol\";\nimport \"../token/ERC1155/ERC1155Burnable.sol\";\nimport \"../token/ERC1155/ERC1155Pausable.sol\";\n\n/**\n * @dev {ERC1155} token, including:\n *\n * - ability for holders to burn (destroy) their tokens\n * - a minter role that allows for token minting (creation)\n * - a pauser role that allows to stop all token transfers\n *\n * This contract uses {AccessControl} to lock permissioned functions using the\n * different roles - head to its documentation for details.\n *\n * The account that deploys the contract will be granted the minter and pauser\n * roles, as well as the default admin role, which will let it grant both minter\n * and pauser roles to other accounts.\n */\ncontract ERC1155PresetMinterPauser is Context, AccessControl, ERC1155Burnable, ERC1155Pausable {\n bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n\n /**\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, and `PAUSER_ROLE` to the account that\n * deploys the contract.\n */\n constructor(string memory uri) public ERC1155(uri) {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n\n _setupRole(MINTER_ROLE, _msgSender());\n _setupRole(PAUSER_ROLE, _msgSender());\n }\n\n /**\n * @dev Creates `amount` new tokens for `to`, of token type `id`.\n *\n * See {ERC1155-_mint}.\n *\n * Requirements:\n *\n * - the caller must have the `MINTER_ROLE`.\n */\n function mint(address to, uint256 id, uint256 amount, bytes memory data) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have minter role to mint\");\n\n _mint(to, id, amount, data);\n }\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}.\n */\n function mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have minter role to mint\");\n\n _mintBatch(to, ids, amounts, data);\n }\n\n /**\n * @dev Pauses all token transfers.\n *\n * See {ERC1155Pausable} and {Pausable-_pause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function pause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have pauser role to pause\");\n _pause();\n }\n\n /**\n * @dev Unpauses all token transfers.\n *\n * See {ERC1155Pausable} and {Pausable-_unpause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function unpause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have pauser role to unpause\");\n _unpause();\n }\n\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n internal virtual override(ERC1155, ERC1155Pausable)\n {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n }\n}\n"}, "token/ERC777/ERC777.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xc61bce18c2237ddb534967dce79869a2"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./IERC777.sol\";\nimport \"./IERC777Recipient.sol\";\nimport \"./IERC777Sender.sol\";\nimport \"../../token/ERC20/IERC20.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.sol\";\nimport \"../../introspection/IERC1820Registry.sol\";\n\n/**\n * @dev Implementation of the {IERC777} 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 *\n * Support for ERC20 is included in this contract, as specified by the EIP: both\n * the ERC777 and ERC20 interfaces can be safely used when interacting with it.\n * Both {IERC777-Sent} and {IERC20-Transfer} events are emitted on token\n * movements.\n *\n * Additionally, the {IERC777-granularity} value is hard-coded to `1`, meaning that there\n * are no special restrictions in the amount of tokens that created, moved, or\n * destroyed. This makes integration with ERC20 applications seamless.\n */\ncontract ERC777 is Context, IERC777, IERC20 {\n using SafeMath for uint256;\n using Address for address;\n\n IERC1820Registry constant internal _ERC1820_REGISTRY = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);\n\n mapping(address => uint256) private _balances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n\n // We inline the result of the following hashes because Solidity doesn't resolve them at compile time.\n // See https://github.com/ethereum/solidity/issues/4024.\n\n // keccak256(\"ERC777TokensSender\")\n bytes32 constant private _TOKENS_SENDER_INTERFACE_HASH =\n 0x29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe895;\n\n // keccak256(\"ERC777TokensRecipient\")\n bytes32 constant private _TOKENS_RECIPIENT_INTERFACE_HASH =\n 0xb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b;\n\n // This isn't ever read from - it's only used to respond to the defaultOperators query.\n address[] private _defaultOperatorsArray;\n\n // Immutable, but accounts may revoke them (tracked in __revokedDefaultOperators).\n mapping(address => bool) private _defaultOperators;\n\n // For each account, a mapping of its operators and revoked default operators.\n mapping(address => mapping(address => bool)) private _operators;\n mapping(address => mapping(address => bool)) private _revokedDefaultOperators;\n\n // ERC20-allowances\n mapping (address => mapping (address => uint256)) private _allowances;\n\n /**\n * @dev `defaultOperators` may be an empty array.\n */\n constructor(\n string memory name,\n string memory symbol,\n address[] memory defaultOperators\n ) public {\n _name = name;\n _symbol = symbol;\n\n _defaultOperatorsArray = defaultOperators;\n for (uint256 i = 0; i < _defaultOperatorsArray.length; i++) {\n _defaultOperators[_defaultOperatorsArray[i]] = true;\n }\n\n // register interfaces\n _ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256(\"ERC777Token\"), address(this));\n _ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256(\"ERC20Token\"), address(this));\n }\n\n /**\n * @dev See {IERC777-name}.\n */\n function name() public view override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev See {IERC777-symbol}.\n */\n function symbol() public view override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev See {ERC20-decimals}.\n *\n * Always returns 18, as per the\n * [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility).\n */\n function decimals() public pure returns (uint8) {\n return 18;\n }\n\n /**\n * @dev See {IERC777-granularity}.\n *\n * This implementation always returns `1`.\n */\n function granularity() public view override returns (uint256) {\n return 1;\n }\n\n /**\n * @dev See {IERC777-totalSupply}.\n */\n function totalSupply() public view override(IERC20, IERC777) returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev Returns the amount of tokens owned by an account (`tokenHolder`).\n */\n function balanceOf(address tokenHolder) public view override(IERC20, IERC777) returns (uint256) {\n return _balances[tokenHolder];\n }\n\n /**\n * @dev See {IERC777-send}.\n *\n * Also emits a {IERC20-Transfer} event for ERC20 compatibility.\n */\n function send(address recipient, uint256 amount, bytes memory data) public override {\n _send(_msgSender(), recipient, amount, data, \"\", true);\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient}\n * interface if it is a contract.\n *\n * Also emits a {Sent} event.\n */\n function transfer(address recipient, uint256 amount) public override returns (bool) {\n require(recipient != address(0), \"ERC777: transfer to the zero address\");\n\n address from = _msgSender();\n\n _callTokensToSend(from, from, recipient, amount, \"\", \"\");\n\n _move(from, from, recipient, amount, \"\", \"\");\n\n _callTokensReceived(from, from, recipient, amount, \"\", \"\", false);\n\n return true;\n }\n\n /**\n * @dev See {IERC777-burn}.\n *\n * Also emits a {IERC20-Transfer} event for ERC20 compatibility.\n */\n function burn(uint256 amount, bytes memory data) public override {\n _burn(_msgSender(), amount, data, \"\");\n }\n\n /**\n * @dev See {IERC777-isOperatorFor}.\n */\n function isOperatorFor(\n address operator,\n address tokenHolder\n ) public view override returns (bool) {\n return operator == tokenHolder ||\n (_defaultOperators[operator] && !_revokedDefaultOperators[tokenHolder][operator]) ||\n _operators[tokenHolder][operator];\n }\n\n /**\n * @dev See {IERC777-authorizeOperator}.\n */\n function authorizeOperator(address operator) public override {\n require(_msgSender() != operator, \"ERC777: authorizing self as operator\");\n\n if (_defaultOperators[operator]) {\n delete _revokedDefaultOperators[_msgSender()][operator];\n } else {\n _operators[_msgSender()][operator] = true;\n }\n\n emit AuthorizedOperator(operator, _msgSender());\n }\n\n /**\n * @dev See {IERC777-revokeOperator}.\n */\n function revokeOperator(address operator) public override {\n require(operator != _msgSender(), \"ERC777: revoking self as operator\");\n\n if (_defaultOperators[operator]) {\n _revokedDefaultOperators[_msgSender()][operator] = true;\n } else {\n delete _operators[_msgSender()][operator];\n }\n\n emit RevokedOperator(operator, _msgSender());\n }\n\n /**\n * @dev See {IERC777-defaultOperators}.\n */\n function defaultOperators() public view override returns (address[] memory) {\n return _defaultOperatorsArray;\n }\n\n /**\n * @dev See {IERC777-operatorSend}.\n *\n * Emits {Sent} and {IERC20-Transfer} events.\n */\n function operatorSend(\n address sender,\n address recipient,\n uint256 amount,\n bytes memory data,\n bytes memory operatorData\n )\n public override\n {\n require(isOperatorFor(_msgSender(), sender), \"ERC777: caller is not an operator for holder\");\n _send(sender, recipient, amount, data, operatorData, true);\n }\n\n /**\n * @dev See {IERC777-operatorBurn}.\n *\n * Emits {Burned} and {IERC20-Transfer} events.\n */\n function operatorBurn(address account, uint256 amount, bytes memory data, bytes memory operatorData) public override {\n require(isOperatorFor(_msgSender(), account), \"ERC777: caller is not an operator for holder\");\n _burn(account, amount, data, operatorData);\n }\n\n /**\n * @dev See {IERC20-allowance}.\n *\n * Note that operator and allowance concepts are orthogonal: operators may\n * not have allowance, and accounts with allowance may not be operators\n * themselves.\n */\n function allowance(address holder, address spender) public view override returns (uint256) {\n return _allowances[holder][spender];\n }\n\n /**\n * @dev See {IERC20-approve}.\n *\n * Note that accounts cannot have allowance issued by their operators.\n */\n function approve(address spender, uint256 value) public override returns (bool) {\n address holder = _msgSender();\n _approve(holder, spender, value);\n return true;\n }\n\n /**\n * @dev See {IERC20-transferFrom}.\n *\n * Note that operator and allowance concepts are orthogonal: operators cannot\n * call `transferFrom` (unless they have allowance), and accounts with\n * allowance cannot call `operatorSend` (unless they are operators).\n *\n * Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events.\n */\n function transferFrom(address holder, address recipient, uint256 amount) public override returns (bool) {\n require(recipient != address(0), \"ERC777: transfer to the zero address\");\n require(holder != address(0), \"ERC777: transfer from the zero address\");\n\n address spender = _msgSender();\n\n _callTokensToSend(spender, holder, recipient, amount, \"\", \"\");\n\n _move(spender, holder, recipient, amount, \"\", \"\");\n _approve(holder, spender, _allowances[holder][spender].sub(amount, \"ERC777: transfer amount exceeds allowance\"));\n\n _callTokensReceived(spender, holder, recipient, amount, \"\", \"\", false);\n\n return true;\n }\n\n /**\n * @dev Creates `amount` tokens and assigns them to `account`, increasing\n * the total supply.\n *\n * If a send hook is registered for `account`, the corresponding function\n * will be called with `operator`, `data` and `operatorData`.\n *\n * See {IERC777Sender} and {IERC777Recipient}.\n *\n * Emits {Minted} and {IERC20-Transfer} events.\n *\n * Requirements\n *\n * - `account` cannot be the zero address.\n * - if `account` is a contract, it must implement the {IERC777Recipient}\n * interface.\n */\n function _mint(\n address account,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n )\n internal virtual\n {\n require(account != address(0), \"ERC777: mint to the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, address(0), account, amount);\n\n // Update state variables\n _totalSupply = _totalSupply.add(amount);\n _balances[account] = _balances[account].add(amount);\n\n _callTokensReceived(operator, address(0), account, amount, userData, operatorData, true);\n\n emit Minted(operator, account, amount, userData, operatorData);\n emit Transfer(address(0), account, amount);\n }\n\n /**\n * @dev Send tokens\n * @param from address token holder address\n * @param to address recipient address\n * @param amount uint256 amount of tokens to transfer\n * @param userData bytes extra information provided by the token holder (if any)\n * @param operatorData bytes extra information provided by the operator (if any)\n * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient\n */\n function _send(\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData,\n bool requireReceptionAck\n )\n internal\n {\n require(from != address(0), \"ERC777: send from the zero address\");\n require(to != address(0), \"ERC777: send to the zero address\");\n\n address operator = _msgSender();\n\n _callTokensToSend(operator, from, to, amount, userData, operatorData);\n\n _move(operator, from, to, amount, userData, operatorData);\n\n _callTokensReceived(operator, from, to, amount, userData, operatorData, requireReceptionAck);\n }\n\n /**\n * @dev Burn tokens\n * @param from address token holder address\n * @param amount uint256 amount of tokens to burn\n * @param data bytes extra information provided by the token holder\n * @param operatorData bytes extra information provided by the operator (if any)\n */\n function _burn(\n address from,\n uint256 amount,\n bytes memory data,\n bytes memory operatorData\n )\n internal virtual\n {\n require(from != address(0), \"ERC777: burn from the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, from, address(0), amount);\n\n _callTokensToSend(operator, from, address(0), amount, data, operatorData);\n\n // Update state variables\n _balances[from] = _balances[from].sub(amount, \"ERC777: burn amount exceeds balance\");\n _totalSupply = _totalSupply.sub(amount);\n\n emit Burned(operator, from, amount, data, operatorData);\n emit Transfer(from, address(0), amount);\n }\n\n function _move(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n )\n private\n {\n _beforeTokenTransfer(operator, from, to, amount);\n\n _balances[from] = _balances[from].sub(amount, \"ERC777: transfer amount exceeds balance\");\n _balances[to] = _balances[to].add(amount);\n\n emit Sent(operator, from, to, amount, userData, operatorData);\n emit Transfer(from, to, amount);\n }\n\n /**\n * @dev See {ERC20-_approve}.\n *\n * Note that accounts cannot have allowance issued by their operators.\n */\n function _approve(address holder, address spender, uint256 value) internal {\n require(holder != address(0), \"ERC777: approve from the zero address\");\n require(spender != address(0), \"ERC777: approve to the zero address\");\n\n _allowances[holder][spender] = value;\n emit Approval(holder, spender, value);\n }\n\n /**\n * @dev Call from.tokensToSend() if the interface is registered\n * @param operator address operator requesting the transfer\n * @param from address token holder address\n * @param to address recipient address\n * @param amount uint256 amount of tokens to transfer\n * @param userData bytes extra information provided by the token holder (if any)\n * @param operatorData bytes extra information provided by the operator (if any)\n */\n function _callTokensToSend(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n )\n private\n {\n address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(from, _TOKENS_SENDER_INTERFACE_HASH);\n if (implementer != address(0)) {\n IERC777Sender(implementer).tokensToSend(operator, from, to, amount, userData, operatorData);\n }\n }\n\n /**\n * @dev Call to.tokensReceived() if the interface is registered. Reverts if the recipient is a contract but\n * tokensReceived() was not registered for the recipient\n * @param operator address operator requesting the transfer\n * @param from address token holder address\n * @param to address recipient address\n * @param amount uint256 amount of tokens to transfer\n * @param userData bytes extra information provided by the token holder (if any)\n * @param operatorData bytes extra information provided by the operator (if any)\n * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient\n */\n function _callTokensReceived(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData,\n bool requireReceptionAck\n )\n private\n {\n address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(to, _TOKENS_RECIPIENT_INTERFACE_HASH);\n if (implementer != address(0)) {\n IERC777Recipient(implementer).tokensReceived(operator, from, to, amount, userData, operatorData);\n } else if (requireReceptionAck) {\n require(!to.isContract(), \"ERC777: token recipient contract has no implementer for ERC777TokensRecipient\");\n }\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes\n * calls to {send}, {transfer}, {operatorSend}, 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 to 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(address operator, address from, address to, uint256 amount) internal virtual { }\n}\n"}, "cryptography/MerkleProof.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x237702fa0499578679f19d86853fa55b"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev These functions deal with verification of Merkle trees (hash trees),\n */\nlibrary MerkleProof {\n /**\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\n * defined by `root`. For this, a `proof` must be provided, containing\n * sibling hashes on the branch from the leaf to the root of the tree. Each\n * pair of leaves and each pair of pre-images are assumed to be sorted.\n */\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\n bytes32 computedHash = leaf;\n\n for (uint256 i = 0; i < proof.length; i++) {\n bytes32 proofElement = proof[i];\n\n if (computedHash <= proofElement) {\n // Hash(current computed hash + current element of the proof)\n computedHash = keccak256(abi.encodePacked(computedHash, proofElement));\n } else {\n // Hash(current element of the proof + current computed hash)\n computedHash = keccak256(abi.encodePacked(proofElement, computedHash));\n }\n }\n\n // Check if the computed hash (root) is equal to the provided root\n return computedHash == root;\n }\n}\n"}, "token/ERC1155/IERC1155.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf0886999d880b8d51def26232c4156a8"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"../../introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC1155 compliant contract, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1155[EIP].\n *\n * _Available since v3.1._\n */\ninterface IERC1155 is IERC165 {\n /**\n * @dev Emitted when `value` tokens of token type `id` are transfered from `from` to `to` by `operator`.\n */\n event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);\n\n /**\n * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all\n * transfers.\n */\n event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);\n\n /**\n * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to\n * `approved`.\n */\n event ApprovalForAll(address indexed account, address indexed operator, bool approved);\n\n /**\n * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.\n *\n * If an {URI} event was emitted for `id`, the standard\n * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value\n * returned by {IERC1155MetadataURI-uri}.\n */\n event URI(string value, uint256 indexed id);\n\n /**\n * @dev Returns the amount of tokens of token type `id` owned by `account`.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function balanceOf(address account, uint256 id) external view returns (uint256);\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.\n *\n * Requirements:\n *\n * - `accounts` and `ids` must have the same length.\n */\n function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);\n\n /**\n * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,\n *\n * Emits an {ApprovalForAll} event.\n *\n * Requirements:\n *\n * - `operator` cannot be the caller.\n */\n function setApprovalForAll(address operator, bool approved) external;\n\n /**\n * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.\n *\n * See {setApprovalForAll}.\n */\n function isApprovedForAll(address account, address operator) external view returns (bool);\n\n /**\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\n *\n * Emits a {TransferSingle} event.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\n * acceptance magic value.\n */\n function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.\n *\n * Emits a {TransferBatch} event.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\n * acceptance magic value.\n */\n function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;\n}\n"}, "mocks/StringsMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd70adefe709b809be3f1c073dcb541ee"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Strings.sol\";\n\ncontract StringsMock {\n function fromUint256(uint256 value) public pure returns (string memory) {\n return Strings.toString(value);\n }\n}\n"}, "mocks/Create2Impl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xdbb9428115c6fe3278b1f15b4ed92be4"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Create2.sol\";\nimport \"../introspection/ERC1820Implementer.sol\";\n\ncontract Create2Impl {\n function deploy(uint256 value, bytes32 salt, bytes memory code) public {\n Create2.deploy(value, salt, code);\n }\n\n function deployERC1820Implementer(uint256 value, bytes32 salt) public {\n // solhint-disable-next-line indent\n Create2.deploy(value, salt, type(ERC1820Implementer).creationCode);\n }\n\n function computeAddress(bytes32 salt, bytes32 codeHash) public view returns (address) {\n return Create2.computeAddress(salt, codeHash);\n }\n\n function computeAddressWithDeployer(bytes32 salt, bytes32 codeHash, address deployer) public pure returns (address) {\n return Create2.computeAddress(salt, codeHash, deployer);\n }\n\n receive() payable external {}\n}\n"}, "token/ERC20/ERC20.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x84e7212989184a404420e487dc9bf91d"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./IERC20.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * We have followed general OpenZeppelin guidelines: functions revert instead\n * of returning `false` on failure. This behavior is nonetheless conventional\n * and does not conflict with the expectations of ERC20 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 ERC20 is Context, IERC20 {\n using SafeMath for uint256;\n using Address for address;\n\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 uint8 private _decimals;\n\n /**\n * @dev Sets the values for {name} and {symbol}, initializes {decimals} with\n * a default value of 18.\n *\n * To select a different value for {decimals}, use {_setupDecimals}.\n *\n * All three of these values are immutable: they can only be set once during\n * construction.\n */\n constructor (string memory name, string memory symbol) public {\n _name = name;\n _symbol = symbol;\n _decimals = 18;\n }\n\n /**\n * @dev Returns the name of the token.\n */\n function name() public view 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 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 {_setupDecimals} is\n * called.\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 returns (uint8) {\n return _decimals;\n }\n\n /**\n * @dev See {IERC20-totalSupply}.\n */\n function totalSupply() public view override returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev See {IERC20-balanceOf}.\n */\n function balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Requirements:\n *\n * - `recipient` cannot be the zero address.\n * - the caller must have a balance of at least `amount`.\n */\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, 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 * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\n _approve(_msgSender(), 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 * Requirements:\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(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\n _transfer(sender, recipient, amount);\n _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, \"ERC20: transfer amount exceeds allowance\"));\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 _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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 _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, \"ERC20: decreased allowance below zero\"));\n return true;\n }\n\n /**\n * @dev Moves tokens `amount` from `sender` to `recipient`.\n *\n * This is 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 * - `sender` cannot be the zero address.\n * - `recipient` cannot be the zero address.\n * - `sender` must have a balance of at least `amount`.\n */\n function _transfer(address sender, address recipient, uint256 amount) internal virtual {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(sender, recipient, amount);\n\n _balances[sender] = _balances[sender].sub(amount, \"ERC20: transfer amount exceeds balance\");\n _balances[recipient] = _balances[recipient].add(amount);\n emit Transfer(sender, recipient, 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 * - `to` 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 = _totalSupply.add(amount);\n _balances[account] = _balances[account].add(amount);\n emit Transfer(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 _balances[account] = _balances[account].sub(amount, \"ERC20: burn amount exceeds balance\");\n _totalSupply = _totalSupply.sub(amount);\n emit Transfer(account, address(0), amount);\n }\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.\n *\n * This is 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(address owner, address spender, uint256 amount) 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 Sets {decimals} to a value other than the default one of 18.\n *\n * WARNING: This function should only be called from the constructor. Most\n * applications that interact with token contracts will not expect\n * {decimals} to ever change, and may work incorrectly if it does.\n */\n function _setupDecimals(uint8 decimals_) internal {\n _decimals = decimals_;\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 to 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(address from, address to, uint256 amount) internal virtual { }\n}\n"}, "token/ERC721/ERC721Holder.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x849153ba2eabc98b7d4b106fca42537f"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC721Receiver.sol\";\n\n /**\n * @dev Implementation of the {IERC721Receiver} interface.\n *\n * Accepts all token transfers. \n * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.\n */\ncontract ERC721Holder is IERC721Receiver {\n\n /**\n * @dev See {IERC721Receiver-onERC721Received}.\n *\n * Always returns `IERC721Receiver.onERC721Received.selector`.\n */\n function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) {\n return this.onERC721Received.selector;\n }\n}\n"}, "access/Ownable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x140e80ebd07ed05e7fe907c531e6746f"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\ncontract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n constructor () internal {\n address msgSender = _msgSender();\n _owner = msgSender;\n emit OwnershipTransferred(address(0), msgSender);\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(_owner == _msgSender(), \"Ownable: caller is not the owner\");\n _;\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions anymore. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby removing any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n emit OwnershipTransferred(_owner, address(0));\n _owner = address(0);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n emit OwnershipTransferred(_owner, newOwner);\n _owner = newOwner;\n }\n}\n"}, "mocks/ERC721BurnableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xb8dc87a3f8fe1bfde8153f6823c310c8"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/ERC721Burnable.sol\";\n\ncontract ERC721BurnableMock is ERC721Burnable {\n constructor(string memory name, string memory symbol) public ERC721(name, symbol) { }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n}\n"}, "math/SafeMath.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x168f50d923a8f64094d8e761ca2e5fe6"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\n * checks.\n *\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\n * in bugs, because programmers usually assume that an overflow raises an\n * error, which is the standard behavior in high level programming languages.\n * `SafeMath` restores this intuition by reverting the transaction when an\n * operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeMath {\n /**\n * @dev Returns the addition of two unsigned integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `+` operator.\n *\n * Requirements:\n *\n * - Addition cannot overflow.\n */\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n require(c >= a, \"SafeMath: addition overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting on\n * overflow (when the result is negative).\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n return sub(a, b, \"SafeMath: subtraction overflow\");\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\n * overflow (when the result is negative).\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b <= a, errorMessage);\n uint256 c = a - b;\n\n return c;\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `*` operator.\n *\n * Requirements:\n *\n * - Multiplication cannot overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n // benefit is lost if 'b' is also tested.\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n if (a == 0) {\n return 0;\n }\n\n uint256 c = a * b;\n require(c / a == b, \"SafeMath: multiplication overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the integer division of two unsigned integers. Reverts on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n return div(a, b, \"SafeMath: division by zero\");\n }\n\n /**\n * @dev Returns the integer division of two unsigned integers. Reverts with custom message on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b > 0, errorMessage);\n uint256 c = a / b;\n // assert(a == b * c + a % b); // There is no case in which this doesn't hold\n\n return c;\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n * Reverts when dividing by zero.\n *\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\n * opcode (which leaves remaining gas untouched) while Solidity uses an\n * invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\n return mod(a, b, \"SafeMath: modulo by zero\");\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n * Reverts with custom message when dividing by zero.\n *\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\n * opcode (which leaves remaining gas untouched) while Solidity uses an\n * invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b != 0, errorMessage);\n return a % b;\n }\n}\n"}, "token/ERC1155/ERC1155Receiver.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x590a5e8f1db978fd811a9998e70c38e2"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC1155Receiver.sol\";\nimport \"../../introspection/ERC165.sol\";\n\n/**\n * @dev _Available since v3.1._\n */\nabstract contract ERC1155Receiver is ERC165, IERC1155Receiver {\n constructor() public {\n _registerInterface(\n ERC1155Receiver(0).onERC1155Received.selector ^\n ERC1155Receiver(0).onERC1155BatchReceived.selector\n );\n }\n}\n"}, "token/ERC721/IERC721Enumerable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xe282e7d4aa6b40bfc9ee622b0f006ed5"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"./IERC721.sol\";\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721Enumerable is IERC721 {\n\n /**\n * @dev Returns the total amount of tokens stored by the contract.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns a token ID owned by `owner` at a given `index` of its token list.\n * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.\n */\n function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);\n\n /**\n * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.\n * Use along with {totalSupply} to enumerate all tokens.\n */\n function tokenByIndex(uint256 index) external view returns (uint256);\n}\n"}, "mocks/GSNRecipientSignatureMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xab7ac384a272a6009e0240461c64c09a"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/GSNRecipient.sol\";\nimport \"../GSN/GSNRecipientSignature.sol\";\n\ncontract GSNRecipientSignatureMock is GSNRecipient, GSNRecipientSignature {\n constructor(address trustedSigner) public GSNRecipientSignature(trustedSigner) { }\n\n event MockFunctionCalled();\n\n function mockFunction() public {\n emit MockFunctionCalled();\n }\n}\n"}, "mocks/PausableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x779953a03ecdbd351d63c712885e03f2"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Pausable.sol\";\n\ncontract PausableMock is Pausable {\n bool public drasticMeasureTaken;\n uint256 public count;\n\n constructor () public {\n drasticMeasureTaken = false;\n count = 0;\n }\n\n function normalProcess() external whenNotPaused {\n count++;\n }\n\n function drasticMeasure() external whenPaused {\n drasticMeasureTaken = true;\n }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n}\n"}, "mocks/ERC20DecimalsMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x96359a68d0dcbc24d205b3a2a79f19ca"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20.sol\";\n\ncontract ERC20DecimalsMock is ERC20 {\n constructor (string memory name, string memory symbol, uint8 decimals) public ERC20(name, symbol) {\n _setupDecimals(decimals);\n }\n}\n"}, "token/ERC20/ERC20Capped.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xc5ca9c630f692b96b5a4f2cb5123f04e"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC20.sol\";\n\n/**\n * @dev Extension of {ERC20} that adds a cap to the supply of tokens.\n */\nabstract contract ERC20Capped is ERC20 {\n uint256 private _cap;\n\n /**\n * @dev Sets the value of the `cap`. This value is immutable, it can only be\n * set once during construction.\n */\n constructor (uint256 cap) public {\n require(cap > 0, \"ERC20Capped: cap is 0\");\n _cap = cap;\n }\n\n /**\n * @dev Returns the cap on the token's total supply.\n */\n function cap() public view returns (uint256) {\n return _cap;\n }\n\n /**\n * @dev See {ERC20-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - minted tokens must not cause the total supply to go over the cap.\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\n super._beforeTokenTransfer(from, to, amount);\n\n if (from == address(0)) { // When minting tokens\n require(totalSupply().add(amount) <= _cap, \"ERC20Capped: cap exceeded\");\n }\n }\n}\n"}, "mocks/ERC1155ReceiverMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x5267440e11e7ba04f66511ed78e70ecc"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC1155/IERC1155Receiver.sol\";\nimport \"./ERC165Mock.sol\";\n\ncontract ERC1155ReceiverMock is IERC1155Receiver, ERC165Mock {\n bytes4 private _recRetval;\n bool private _recReverts;\n bytes4 private _batRetval;\n bool private _batReverts;\n\n event Received(address operator, address from, uint256 id, uint256 value, bytes data, uint256 gas);\n event BatchReceived(address operator, address from, uint256[] ids, uint256[] values, bytes data, uint256 gas);\n\n constructor (\n bytes4 recRetval,\n bool recReverts,\n bytes4 batRetval,\n bool batReverts\n )\n public\n {\n _recRetval = recRetval;\n _recReverts = recReverts;\n _batRetval = batRetval;\n _batReverts = batReverts;\n }\n\n function onERC1155Received(\n address operator,\n address from,\n uint256 id,\n uint256 value,\n bytes calldata data\n )\n external\n override\n returns(bytes4)\n {\n require(!_recReverts, \"ERC1155ReceiverMock: reverting on receive\");\n emit Received(operator, from, id, value, data, gasleft());\n return _recRetval;\n }\n\n function onERC1155BatchReceived(\n address operator,\n address from,\n uint256[] calldata ids,\n uint256[] calldata values,\n bytes calldata data\n )\n external\n override\n returns(bytes4)\n {\n require(!_batReverts, \"ERC1155ReceiverMock: reverting on batch receive\");\n emit BatchReceived(operator, from, ids, values, data, gasleft());\n return _batRetval;\n }\n}\n"}, "mocks/ERC1820ImplementerMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x86dbb4b25547086a829db4678ffe62b0"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../introspection/ERC1820Implementer.sol\";\n\ncontract ERC1820ImplementerMock is ERC1820Implementer {\n function registerInterfaceForAddress(bytes32 interfaceHash, address account) public {\n _registerInterfaceForAddress(interfaceHash, account);\n }\n}\n"}, "mocks/CallReceiverMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x46a156029b59b541d74a0bf30d78e558"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\ncontract CallReceiverMock {\n\n event MockFunctionCalled();\n\n uint256[] private _array;\n\n function mockFunction() public payable returns (string memory) {\n emit MockFunctionCalled();\n\n return \"0x1234\";\n }\n\n function mockFunctionNonPayable() public returns (string memory) {\n emit MockFunctionCalled();\n\n return \"0x1234\";\n }\n\n function mockFunctionRevertsNoReason() public payable {\n revert();\n }\n\n function mockFunctionRevertsReason() public payable {\n revert(\"CallReceiverMock: reverting\");\n }\n\n function mockFunctionThrows() public payable {\n assert(false);\n }\n\n function mockFunctionOutOfGas() public payable {\n for (uint256 i = 0; ; ++i) {\n _array.push(i);\n }\n }\n}\n"}, "utils/Counters.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x5414dbd62bbfba220645349dad9685ea"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/SafeMath.sol\";\n\n/**\n * @title Counters\n * @author Matt Condon (@shrugs)\n * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number\n * of elements in a mapping, issuing ERC721 ids, or counting request ids.\n *\n * Include with `using Counters for Counters.Counter;`\n * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}\n * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never\n * directly accessed.\n */\nlibrary Counters {\n using SafeMath for uint256;\n\n struct Counter {\n // This variable should never be directly accessed by users of the library: interactions must be restricted to\n // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add\n // this feature: see https://github.com/ethereum/solidity/issues/4637\n uint256 _value; // default: 0\n }\n\n function current(Counter storage counter) internal view returns (uint256) {\n return counter._value;\n }\n\n function increment(Counter storage counter) internal {\n // The {SafeMath} overflow check can be skipped here, see the comment at the top\n counter._value += 1;\n }\n\n function decrement(Counter storage counter) internal {\n counter._value = counter._value.sub(1);\n }\n}\n"}, "introspection/ERC165Checker.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x57e11c5bb86710b859c71220a4067e31"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\n/**\n * @dev Library used to query support of an interface declared via {IERC165}.\n *\n * Note that these functions return the actual result of the query: they do not\n * `revert` if an interface is not supported. It is up to the caller to decide\n * what to do in these cases.\n */\nlibrary ERC165Checker {\n // As per the EIP-165 spec, no interface should ever match 0xffffffff\n bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;\n\n /*\n * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7\n */\n bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;\n\n /**\n * @dev Returns true if `account` supports the {IERC165} interface,\n */\n function supportsERC165(address account) internal view returns (bool) {\n // Any contract that implements ERC165 must explicitly indicate support of\n // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid\n return _supportsERC165Interface(account, _INTERFACE_ID_ERC165) &&\n !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);\n }\n\n /**\n * @dev Returns true if `account` supports the interface defined by\n * `interfaceId`. Support for {IERC165} itself is queried automatically.\n *\n * See {IERC165-supportsInterface}.\n */\n function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {\n // query support of both ERC165 as per the spec and support of _interfaceId\n return supportsERC165(account) &&\n _supportsERC165Interface(account, interfaceId);\n }\n\n /**\n * @dev Returns true if `account` supports all the interfaces defined in\n * `interfaceIds`. Support for {IERC165} itself is queried automatically.\n *\n * Batch-querying can lead to gas savings by skipping repeated checks for\n * {IERC165} support.\n *\n * See {IERC165-supportsInterface}.\n */\n function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {\n // query support of ERC165 itself\n if (!supportsERC165(account)) {\n return false;\n }\n\n // query support of each interface in _interfaceIds\n for (uint256 i = 0; i < interfaceIds.length; i++) {\n if (!_supportsERC165Interface(account, interfaceIds[i])) {\n return false;\n }\n }\n\n // all interfaces supported\n return true;\n }\n\n /**\n * @notice Query if a contract implements an interface, does not check ERC165 support\n * @param account The address of the contract to query for support of an interface\n * @param interfaceId The interface identifier, as specified in ERC-165\n * @return true if the contract at account indicates support of the interface with\n * identifier interfaceId, false otherwise\n * @dev Assumes that account contains a contract that supports ERC165, otherwise\n * the behavior of this method is undefined. This precondition can be checked\n * with {supportsERC165}.\n * Interface identification is specified in ERC-165.\n */\n function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {\n // success determines whether the staticcall succeeded and result determines\n // whether the contract at account indicates support of _interfaceId\n (bool success, bool result) = _callERC165SupportsInterface(account, interfaceId);\n\n return (success && result);\n }\n\n /**\n * @notice Calls the function with selector 0x01ffc9a7 (ERC165) and suppresses throw\n * @param account The address of the contract to query for support of an interface\n * @param interfaceId The interface identifier, as specified in ERC-165\n * @return success true if the STATICCALL succeeded, false otherwise\n * @return result true if the STATICCALL succeeded and the contract at account\n * indicates support of the interface with identifier interfaceId, false otherwise\n */\n function _callERC165SupportsInterface(address account, bytes4 interfaceId)\n private\n view\n returns (bool, bool)\n {\n bytes memory encodedParams = abi.encodeWithSelector(_INTERFACE_ID_ERC165, interfaceId);\n (bool success, bytes memory result) = account.staticcall{ gas: 30000 }(encodedParams);\n if (result.length < 32) return (false, false);\n return (success, abi.decode(result, (bool)));\n }\n}\n"}, "token/ERC777/IERC777Recipient.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xa42fd413c2f338128a3e3ef6eaf9ccab"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the ERC777TokensRecipient standard as defined in the EIP.\n *\n * Accounts can be notified of {IERC777} tokens being sent to them by having a\n * contract implement this interface (contract holders can be their own\n * implementer) and registering it on the\n * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].\n *\n * See {IERC1820Registry} and {ERC1820Implementer}.\n */\ninterface IERC777Recipient {\n /**\n * @dev Called by an {IERC777} token contract whenever tokens are being\n * moved or created into a registered account (`to`). The type of operation\n * is conveyed by `from` being the zero address or not.\n *\n * This call occurs _after_ the token contract's state is updated, so\n * {IERC777-balanceOf}, etc., can be used to query the post-operation state.\n *\n * This function may revert to prevent the operation from being executed.\n */\n function tokensReceived(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external;\n}\n"}, "mocks/ERC165/ERC165InterfacesSupported.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x0aa6213b79446bc21b046940dbfaad3f"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../introspection/IERC165.sol\";\n\n/**\n * https://eips.ethereum.org/EIPS/eip-214#specification\n * From the specification:\n * > Any attempts to make state-changing operations inside an execution instance with STATIC set to true will instead\n * throw an exception.\n * > These operations include [...], LOG0, LOG1, LOG2, [...]\n *\n * therefore, because this contract is staticcall'd we need to not emit events (which is how solidity-coverage works)\n * solidity-coverage ignores the /mocks folder, so we duplicate its implementation here to avoid instrumenting it\n */\ncontract SupportsInterfaceWithLookupMock is IERC165 {\n /*\n * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7\n */\n bytes4 public constant INTERFACE_ID_ERC165 = 0x01ffc9a7;\n\n /**\n * @dev A mapping of interface id to whether or not it's supported.\n */\n mapping(bytes4 => bool) private _supportedInterfaces;\n\n /**\n * @dev A contract implementing SupportsInterfaceWithLookup\n * implement ERC165 itself.\n */\n constructor () public {\n _registerInterface(INTERFACE_ID_ERC165);\n }\n\n /**\n * @dev Implement supportsInterface(bytes4) using a lookup table.\n */\n function supportsInterface(bytes4 interfaceId) public view override returns (bool) {\n return _supportedInterfaces[interfaceId];\n }\n\n /**\n * @dev Private method for registering an interface.\n */\n function _registerInterface(bytes4 interfaceId) internal {\n require(interfaceId != 0xffffffff, \"ERC165InterfacesSupported: invalid interface id\");\n _supportedInterfaces[interfaceId] = true;\n }\n}\n\ncontract ERC165InterfacesSupported is SupportsInterfaceWithLookupMock {\n constructor (bytes4[] memory interfaceIds) public {\n for (uint256 i = 0; i < interfaceIds.length; i++) {\n _registerInterface(interfaceIds[i]);\n }\n }\n}\n"}, "GSN/IRelayRecipient.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xa084b0fb2690126db8dff705523ae7a0"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Base interface for a contract that will be called via the GSN from {IRelayHub}.\n *\n * TIP: You don't need to write an implementation yourself! Inherit from {GSNRecipient} instead.\n */\ninterface IRelayRecipient {\n /**\n * @dev Returns the address of the {IRelayHub} instance this recipient interacts with.\n */\n function getHubAddr() external view returns (address);\n\n /**\n * @dev Called by {IRelayHub} to validate if this recipient accepts being charged for a relayed call. Note that the\n * recipient will be charged regardless of the execution result of the relayed call (i.e. if it reverts or not).\n *\n * The relay request was originated by `from` and will be served by `relay`. `encodedFunction` is the relayed call\n * calldata, so its first four bytes are the function selector. The relayed call will be forwarded `gasLimit` gas,\n * and the transaction executed with a gas price of at least `gasPrice`. ``relay``'s fee is `transactionFee`, and the\n * recipient will be charged at most `maxPossibleCharge` (in wei). `nonce` is the sender's (`from`) nonce for\n * replay attack protection in {IRelayHub}, and `approvalData` is a optional parameter that can be used to hold a signature\n * over all or some of the previous values.\n *\n * Returns a tuple, where the first value is used to indicate approval (0) or rejection (custom non-zero error code,\n * values 1 to 10 are reserved) and the second one is data to be passed to the other {IRelayRecipient} functions.\n *\n * {acceptRelayedCall} is called with 50k gas: if it runs out during execution, the request will be considered\n * rejected. A regular revert will also trigger a rejection.\n */\n function acceptRelayedCall(\n address relay,\n address from,\n bytes calldata encodedFunction,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256 gasLimit,\n uint256 nonce,\n bytes calldata approvalData,\n uint256 maxPossibleCharge\n )\n external\n view\n returns (uint256, bytes memory);\n\n /**\n * @dev Called by {IRelayHub} on approved relay call requests, before the relayed call is executed. This allows to e.g.\n * pre-charge the sender of the transaction.\n *\n * `context` is the second value returned in the tuple by {acceptRelayedCall}.\n *\n * Returns a value to be passed to {postRelayedCall}.\n *\n * {preRelayedCall} is called with 100k gas: if it runs out during exection or otherwise reverts, the relayed call\n * will not be executed, but the recipient will still be charged for the transaction's cost.\n */\n function preRelayedCall(bytes calldata context) external returns (bytes32);\n\n /**\n * @dev Called by {IRelayHub} on approved relay call requests, after the relayed call is executed. This allows to e.g.\n * charge the user for the relayed call costs, return any overcharges from {preRelayedCall}, or perform\n * contract-specific bookkeeping.\n *\n * `context` is the second value returned in the tuple by {acceptRelayedCall}. `success` is the execution status of\n * the relayed call. `actualCharge` is an estimate of how much the recipient will be charged for the transaction,\n * not including any gas used by {postRelayedCall} itself. `preRetVal` is {preRelayedCall}'s return value.\n *\n *\n * {postRelayedCall} is called with 100k gas: if it runs out during execution or otherwise reverts, the relayed call\n * and the call to {preRelayedCall} will be reverted retroactively, but the recipient will still be charged for the\n * transaction's cost.\n */\n function postRelayedCall(bytes calldata context, bool success, uint256 actualCharge, bytes32 preRetVal) external;\n}\n"}, "mocks/ERC165Mock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x008bd90d08ace18e095cf2a53cc8f927"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../introspection/ERC165.sol\";\n\ncontract ERC165Mock is ERC165 {\n function registerInterface(bytes4 interfaceId) public {\n _registerInterface(interfaceId);\n }\n}\n"}, "mocks/ERC777SenderRecipientMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd8906a8a9d56b81380fbf4e764a69bef"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC777/IERC777.sol\";\nimport \"../token/ERC777/IERC777Sender.sol\";\nimport \"../token/ERC777/IERC777Recipient.sol\";\nimport \"../introspection/IERC1820Registry.sol\";\nimport \"../introspection/ERC1820Implementer.sol\";\n\ncontract ERC777SenderRecipientMock is Context, IERC777Sender, IERC777Recipient, ERC1820Implementer {\n event TokensToSendCalled(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes data,\n bytes operatorData,\n address token,\n uint256 fromBalance,\n uint256 toBalance\n );\n\n event TokensReceivedCalled(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes data,\n bytes operatorData,\n address token,\n uint256 fromBalance,\n uint256 toBalance\n );\n\n bool private _shouldRevertSend;\n bool private _shouldRevertReceive;\n\n IERC1820Registry private _erc1820 = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);\n\n bytes32 constant private _TOKENS_SENDER_INTERFACE_HASH = keccak256(\"ERC777TokensSender\");\n bytes32 constant private _TOKENS_RECIPIENT_INTERFACE_HASH = keccak256(\"ERC777TokensRecipient\");\n\n function tokensToSend(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external override {\n if (_shouldRevertSend) {\n revert();\n }\n\n IERC777 token = IERC777(_msgSender());\n\n uint256 fromBalance = token.balanceOf(from);\n // when called due to burn, to will be the zero address, which will have a balance of 0\n uint256 toBalance = token.balanceOf(to);\n\n emit TokensToSendCalled(\n operator,\n from,\n to,\n amount,\n userData,\n operatorData,\n address(token),\n fromBalance,\n toBalance\n );\n }\n\n function tokensReceived(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external override {\n if (_shouldRevertReceive) {\n revert();\n }\n\n IERC777 token = IERC777(_msgSender());\n\n uint256 fromBalance = token.balanceOf(from);\n // when called due to burn, to will be the zero address, which will have a balance of 0\n uint256 toBalance = token.balanceOf(to);\n\n emit TokensReceivedCalled(\n operator,\n from,\n to,\n amount,\n userData,\n operatorData,\n address(token),\n fromBalance,\n toBalance\n );\n }\n\n function senderFor(address account) public {\n _registerInterfaceForAddress(_TOKENS_SENDER_INTERFACE_HASH, account);\n\n address self = address(this);\n if (account == self) {\n registerSender(self);\n }\n }\n\n function registerSender(address sender) public {\n _erc1820.setInterfaceImplementer(address(this), _TOKENS_SENDER_INTERFACE_HASH, sender);\n }\n\n function recipientFor(address account) public {\n _registerInterfaceForAddress(_TOKENS_RECIPIENT_INTERFACE_HASH, account);\n\n address self = address(this);\n if (account == self) {\n registerRecipient(self);\n }\n }\n\n function registerRecipient(address recipient) public {\n _erc1820.setInterfaceImplementer(address(this), _TOKENS_RECIPIENT_INTERFACE_HASH, recipient);\n }\n\n function setShouldRevertSend(bool shouldRevert) public {\n _shouldRevertSend = shouldRevert;\n }\n\n function setShouldRevertReceive(bool shouldRevert) public {\n _shouldRevertReceive = shouldRevert;\n }\n\n function send(IERC777 token, address to, uint256 amount, bytes memory data) public {\n // This is 777's send function, not the Solidity send function\n token.send(to, amount, data); // solhint-disable-line check-send-result\n }\n\n function burn(IERC777 token, uint256 amount, bytes memory data) public {\n token.burn(amount, data);\n }\n}\n\n"}, "token/ERC721/ERC721.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x449aafedea7ae428f27c303b54a38647"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./IERC721.sol\";\nimport \"./IERC721Metadata.sol\";\nimport \"./IERC721Enumerable.sol\";\nimport \"./IERC721Receiver.sol\";\nimport \"../../introspection/ERC165.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.sol\";\nimport \"../../utils/EnumerableSet.sol\";\nimport \"../../utils/EnumerableMap.sol\";\nimport \"../../utils/Strings.sol\";\n\n/**\n * @title ERC721 Non-Fungible Token Standard basic implementation\n * @dev see https://eips.ethereum.org/EIPS/eip-721\n */\ncontract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {\n using SafeMath for uint256;\n using Address for address;\n using EnumerableSet for EnumerableSet.UintSet;\n using EnumerableMap for EnumerableMap.UintToAddressMap;\n using Strings for uint256;\n\n // Equals to `bytes4(keccak256(\"onERC721Received(address,address,uint256,bytes)\"))`\n // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`\n bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;\n\n // Mapping from holder address to their (enumerable) set of owned tokens\n mapping (address => EnumerableSet.UintSet) private _holderTokens;\n\n // Enumerable mapping from token ids to their owners\n EnumerableMap.UintToAddressMap private _tokenOwners;\n\n // Mapping from token ID to approved address\n mapping (uint256 => address) private _tokenApprovals;\n\n // Mapping from owner to operator approvals\n mapping (address => mapping (address => bool)) private _operatorApprovals;\n\n // Token name\n string private _name;\n\n // Token symbol\n string private _symbol;\n\n // Optional mapping for token URIs\n mapping(uint256 => string) private _tokenURIs;\n\n // Base URI\n string private _baseURI;\n\n /*\n * bytes4(keccak256('balanceOf(address)')) == 0x70a08231\n * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e\n * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3\n * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc\n * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465\n * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5\n * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd\n * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e\n * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde\n *\n * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^\n * 0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd\n */\n bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;\n\n /*\n * bytes4(keccak256('name()')) == 0x06fdde03\n * bytes4(keccak256('symbol()')) == 0x95d89b41\n * bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd\n *\n * => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f\n */\n bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;\n\n /*\n * bytes4(keccak256('totalSupply()')) == 0x18160ddd\n * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59\n * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7\n *\n * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63\n */\n bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;\n\n /**\n * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.\n */\n constructor (string memory name, string memory symbol) public {\n _name = name;\n _symbol = symbol;\n\n // register the supported interfaces to conform to ERC721 via ERC165\n _registerInterface(_INTERFACE_ID_ERC721);\n _registerInterface(_INTERFACE_ID_ERC721_METADATA);\n _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);\n }\n\n /**\n * @dev See {IERC721-balanceOf}.\n */\n function balanceOf(address owner) public view override returns (uint256) {\n require(owner != address(0), \"ERC721: balance query for the zero address\");\n\n return _holderTokens[owner].length();\n }\n\n /**\n * @dev See {IERC721-ownerOf}.\n */\n function ownerOf(uint256 tokenId) public view override returns (address) {\n return _tokenOwners.get(tokenId, \"ERC721: owner query for nonexistent token\");\n }\n\n /**\n * @dev See {IERC721Metadata-name}.\n */\n function name() public view override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev See {IERC721Metadata-symbol}.\n */\n function symbol() public view override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev See {IERC721Metadata-tokenURI}.\n */\n function tokenURI(uint256 tokenId) public view override returns (string memory) {\n require(_exists(tokenId), \"ERC721Metadata: URI query for nonexistent token\");\n\n string memory _tokenURI = _tokenURIs[tokenId];\n\n // If there is no base URI, return the token URI.\n if (bytes(_baseURI).length == 0) {\n return _tokenURI;\n }\n // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).\n if (bytes(_tokenURI).length > 0) {\n return string(abi.encodePacked(_baseURI, _tokenURI));\n }\n // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.\n return string(abi.encodePacked(_baseURI, tokenId.toString()));\n }\n\n /**\n * @dev Returns the base URI set via {_setBaseURI}. This will be\n * automatically added as a prefix in {tokenURI} to each token's URI, or\n * to the token ID if no specific URI is set for that token ID.\n */\n function baseURI() public view returns (string memory) {\n return _baseURI;\n }\n\n /**\n * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.\n */\n function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {\n return _holderTokens[owner].at(index);\n }\n\n /**\n * @dev See {IERC721Enumerable-totalSupply}.\n */\n function totalSupply() public view override returns (uint256) {\n // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds\n return _tokenOwners.length();\n }\n\n /**\n * @dev See {IERC721Enumerable-tokenByIndex}.\n */\n function tokenByIndex(uint256 index) public view override returns (uint256) {\n (uint256 tokenId, ) = _tokenOwners.at(index);\n return tokenId;\n }\n\n /**\n * @dev See {IERC721-approve}.\n */\n function approve(address to, uint256 tokenId) public virtual override {\n address owner = ownerOf(tokenId);\n require(to != owner, \"ERC721: approval to current owner\");\n\n require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()),\n \"ERC721: approve caller is not owner nor approved for all\"\n );\n\n _approve(to, tokenId);\n }\n\n /**\n * @dev See {IERC721-getApproved}.\n */\n function getApproved(uint256 tokenId) public view override returns (address) {\n require(_exists(tokenId), \"ERC721: approved query for nonexistent token\");\n\n return _tokenApprovals[tokenId];\n }\n\n /**\n * @dev See {IERC721-setApprovalForAll}.\n */\n function setApprovalForAll(address operator, bool approved) public virtual override {\n require(operator != _msgSender(), \"ERC721: approve to caller\");\n\n _operatorApprovals[_msgSender()][operator] = approved;\n emit ApprovalForAll(_msgSender(), operator, approved);\n }\n\n /**\n * @dev See {IERC721-isApprovedForAll}.\n */\n function isApprovedForAll(address owner, address operator) public view override returns (bool) {\n return _operatorApprovals[owner][operator];\n }\n\n /**\n * @dev See {IERC721-transferFrom}.\n */\n function transferFrom(address from, address to, uint256 tokenId) public virtual override {\n //solhint-disable-next-line max-line-length\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721: transfer caller is not owner nor approved\");\n\n _transfer(from, to, tokenId);\n }\n\n /**\n * @dev See {IERC721-safeTransferFrom}.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {\n safeTransferFrom(from, to, tokenId, \"\");\n }\n\n /**\n * @dev See {IERC721-safeTransferFrom}.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721: transfer caller is not owner nor approved\");\n _safeTransfer(from, to, tokenId, _data);\n }\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * `_data` is additional data, it has no specified format and it is sent in call to `to`.\n *\n * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.\n * implement alternative mecanisms to perform token transfer, such as signature-based.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {\n _transfer(from, to, tokenId);\n require(_checkOnERC721Received(from, to, tokenId, _data), \"ERC721: transfer to non ERC721Receiver implementer\");\n }\n\n /**\n * @dev Returns whether `tokenId` exists.\n *\n * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.\n *\n * Tokens start existing when they are minted (`_mint`),\n * and stop existing when they are burned (`_burn`).\n */\n function _exists(uint256 tokenId) internal view returns (bool) {\n return _tokenOwners.contains(tokenId);\n }\n\n /**\n * @dev Returns whether `spender` is allowed to manage `tokenId`.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {\n require(_exists(tokenId), \"ERC721: operator query for nonexistent token\");\n address owner = ownerOf(tokenId);\n return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));\n }\n\n /**\n * @dev Safely mints `tokenId` and transfers it to `to`.\n *\n * Requirements:\n d*\n * - `tokenId` must not exist.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function _safeMint(address to, uint256 tokenId) internal virtual {\n _safeMint(to, tokenId, \"\");\n }\n\n /**\n * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is\n * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n */\n function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {\n _mint(to, tokenId);\n require(_checkOnERC721Received(address(0), to, tokenId, _data), \"ERC721: transfer to non ERC721Receiver implementer\");\n }\n\n /**\n * @dev Mints `tokenId` and transfers it to `to`.\n *\n * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible\n *\n * Requirements:\n *\n * - `tokenId` must not exist.\n * - `to` cannot be the zero address.\n *\n * Emits a {Transfer} event.\n */\n function _mint(address to, uint256 tokenId) internal virtual {\n require(to != address(0), \"ERC721: mint to the zero address\");\n require(!_exists(tokenId), \"ERC721: token already minted\");\n\n _beforeTokenTransfer(address(0), to, tokenId);\n\n _holderTokens[to].add(tokenId);\n\n _tokenOwners.set(tokenId, to);\n\n emit Transfer(address(0), to, tokenId);\n }\n\n /**\n * @dev Destroys `tokenId`.\n * The approval is cleared when the token is burned.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n *\n * Emits a {Transfer} event.\n */\n function _burn(uint256 tokenId) internal virtual {\n address owner = ownerOf(tokenId);\n\n _beforeTokenTransfer(owner, address(0), tokenId);\n\n // Clear approvals\n _approve(address(0), tokenId);\n\n // Clear metadata (if any)\n if (bytes(_tokenURIs[tokenId]).length != 0) {\n delete _tokenURIs[tokenId];\n }\n\n _holderTokens[owner].remove(tokenId);\n\n _tokenOwners.remove(tokenId);\n\n emit Transfer(owner, address(0), tokenId);\n }\n\n /**\n * @dev Transfers `tokenId` from `from` to `to`.\n * As opposed to {transferFrom}, this imposes no restrictions on msg.sender.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n *\n * Emits a {Transfer} event.\n */\n function _transfer(address from, address to, uint256 tokenId) internal virtual {\n require(ownerOf(tokenId) == from, \"ERC721: transfer of token that is not own\");\n require(to != address(0), \"ERC721: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, tokenId);\n\n // Clear approvals from the previous owner\n _approve(address(0), tokenId);\n\n _holderTokens[from].remove(tokenId);\n _holderTokens[to].add(tokenId);\n\n _tokenOwners.set(tokenId, to);\n\n emit Transfer(from, to, tokenId);\n }\n\n /**\n * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {\n require(_exists(tokenId), \"ERC721Metadata: URI set of nonexistent token\");\n _tokenURIs[tokenId] = _tokenURI;\n }\n\n /**\n * @dev Internal function to set the base URI for all token IDs. It is\n * automatically added as a prefix to the value returned in {tokenURI},\n * or to the token ID if {tokenURI} is empty.\n */\n function _setBaseURI(string memory baseURI_) internal virtual {\n _baseURI = baseURI_;\n }\n\n /**\n * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.\n * The call is not executed if the target address is not a contract.\n *\n * @param from address representing the previous owner of the given token ID\n * @param to target address that will receive the tokens\n * @param tokenId uint256 ID of the token to be transferred\n * @param _data bytes optional data to send along with the call\n * @return bool whether the call correctly returned the expected magic value\n */\n function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)\n private returns (bool)\n {\n if (!to.isContract()) {\n return true;\n }\n bytes memory returndata = to.functionCall(abi.encodeWithSelector(\n IERC721Receiver(to).onERC721Received.selector,\n _msgSender(),\n from,\n tokenId,\n _data\n ), \"ERC721: transfer to non ERC721Receiver implementer\");\n bytes4 retval = abi.decode(returndata, (bytes4));\n return (retval == _ERC721_RECEIVED);\n }\n\n function _approve(address to, uint256 tokenId) private {\n _tokenApprovals[tokenId] = to;\n emit Approval(ownerOf(tokenId), to, tokenId);\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes minting\n * and burning.\n *\n * Calling conditions:\n *\n * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be\n * transferred to `to`.\n * - When `from` is zero, `tokenId` will be minted for `to`.\n * - When `to` is zero, ``from``'s `tokenId` will be burned.\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }\n}\n"}, "payment/escrow/ConditionalEscrow.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xfdc807bf6aee1b0e209ae865ad71e58e"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./Escrow.sol\";\n\n/**\n * @title ConditionalEscrow\n * @dev Base abstract escrow to only allow withdrawal if a condition is met.\n * @dev Intended usage: See {Escrow}. Same usage guidelines apply here.\n */\nabstract contract ConditionalEscrow is Escrow {\n /**\n * @dev Returns whether an address is allowed to withdraw their funds. To be\n * implemented by derived contracts.\n * @param payee The destination address of the funds.\n */\n function withdrawalAllowed(address payee) public view virtual returns (bool);\n\n function withdraw(address payable payee) public virtual override {\n require(withdrawalAllowed(payee), \"ConditionalEscrow: payee is not allowed to withdraw\");\n super.withdraw(payee);\n }\n}\n"}, "mocks/ERC20CappedMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x765c3db6aee44d776df952460c5006c7"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20Capped.sol\";\n\ncontract ERC20CappedMock is ERC20Capped {\n constructor (string memory name, string memory symbol, uint256 cap)\n public ERC20(name, symbol) ERC20Capped(cap)\n { }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n}\n"}, "mocks/ERC777Mock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x51c9c3b393c0efbcca9aa5e449bf5f8d"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC777/ERC777.sol\";\n\ncontract ERC777Mock is Context, ERC777 {\n constructor(\n address initialHolder,\n uint256 initialBalance,\n string memory name,\n string memory symbol,\n address[] memory defaultOperators\n ) public ERC777(name, symbol, defaultOperators) {\n _mint(initialHolder, initialBalance, \"\", \"\");\n }\n\n function mintInternal (\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n ) public {\n _mint(to, amount, userData, operatorData);\n }\n\n function approveInternal(address holder, address spender, uint256 value) public {\n _approve(holder, spender, value);\n }\n}\n"}, "utils/Create2.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd96ebca53b723fbb148bf43ec4921f4b"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\n * `CREATE2` can be used to compute in advance the address where a smart\n * contract will be deployed, which allows for interesting new mechanisms known\n * as 'counterfactual interactions'.\n *\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\n * information.\n */\nlibrary Create2 {\n /**\n * @dev Deploys a contract using `CREATE2`. The address where the contract\n * will be deployed can be known in advance via {computeAddress}.\n *\n * The bytecode for a contract can be obtained from Solidity with\n * `type(contractName).creationCode`.\n *\n * Requirements:\n *\n * - `bytecode` must not be empty.\n * - `salt` must have not been used for `bytecode` already.\n * - the factory must have a balance of at least `amount`.\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\n */\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address) {\n address addr;\n require(address(this).balance >= amount, \"Create2: insufficient balance\");\n require(bytecode.length != 0, \"Create2: bytecode length is zero\");\n // solhint-disable-next-line no-inline-assembly\n assembly {\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\n }\n require(addr != address(0), \"Create2: Failed on deploy\");\n return addr;\n }\n\n /**\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\n * `bytecodeHash` or `salt` will result in a new destination address.\n */\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\n return computeAddress(salt, bytecodeHash, address(this));\n }\n\n /**\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\n */\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address) {\n bytes32 _data = keccak256(\n abi.encodePacked(bytes1(0xff), deployer, salt, bytecodeHash)\n );\n return address(uint256(_data));\n }\n}\n"}, "mocks/MathMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x9ff46084f44edf19dbb44c8bcab9c933"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/Math.sol\";\n\ncontract MathMock {\n function max(uint256 a, uint256 b) public pure returns (uint256) {\n return Math.max(a, b);\n }\n\n function min(uint256 a, uint256 b) public pure returns (uint256) {\n return Math.min(a, b);\n }\n\n function average(uint256 a, uint256 b) public pure returns (uint256) {\n return Math.average(a, b);\n }\n}\n"}, "mocks/ERC721ReceiverMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x28d58da69ab92a1ee57448ddb682cf28"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/IERC721Receiver.sol\";\n\ncontract ERC721ReceiverMock is IERC721Receiver {\n bytes4 private _retval;\n bool private _reverts;\n\n event Received(address operator, address from, uint256 tokenId, bytes data, uint256 gas);\n\n constructor (bytes4 retval, bool reverts) public {\n _retval = retval;\n _reverts = reverts;\n }\n\n function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data)\n public override returns (bytes4)\n {\n require(!_reverts, \"ERC721ReceiverMock: reverting\");\n emit Received(operator, from, tokenId, data, gasleft());\n return _retval;\n }\n}\n"}, "mocks/GSNRecipientERC20FeeMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xcee02fe683f6fd1060bf4024cc9b1f4d"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/GSNRecipient.sol\";\nimport \"../GSN/GSNRecipientERC20Fee.sol\";\n\ncontract GSNRecipientERC20FeeMock is GSNRecipient, GSNRecipientERC20Fee {\n constructor(string memory name, string memory symbol) public GSNRecipientERC20Fee(name, symbol) { }\n\n function mint(address account, uint256 amount) public {\n _mint(account, amount);\n }\n\n event MockFunctionCalled(uint256 senderBalance);\n\n function mockFunction() public {\n emit MockFunctionCalled(token().balanceOf(_msgSender()));\n }\n}\n"}, "mocks/SafeERC20Helper.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x7c9583d50152ad6b7b2dcf88fbec45b0"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC20/IERC20.sol\";\nimport \"../token/ERC20/SafeERC20.sol\";\n\ncontract ERC20ReturnFalseMock is Context {\n uint256 private _allowance;\n\n // IERC20's functions are not pure, but these mock implementations are: to prevent Solidity from issuing warnings,\n // we write to a dummy state variable.\n uint256 private _dummy;\n\n function transfer(address, uint256) public returns (bool) {\n _dummy = 0;\n return false;\n }\n\n function transferFrom(address, address, uint256) public returns (bool) {\n _dummy = 0;\n return false;\n }\n\n function approve(address, uint256) public returns (bool) {\n _dummy = 0;\n return false;\n }\n\n function allowance(address, address) public view returns (uint256) {\n require(_dummy == 0); // Duummy read from a state variable so that the function is view\n return 0;\n }\n}\n\ncontract ERC20ReturnTrueMock is Context {\n mapping (address => uint256) private _allowances;\n\n // IERC20's functions are not pure, but these mock implementations are: to prevent Solidity from issuing warnings,\n // we write to a dummy state variable.\n uint256 private _dummy;\n\n function transfer(address, uint256) public returns (bool) {\n _dummy = 0;\n return true;\n }\n\n function transferFrom(address, address, uint256) public returns (bool) {\n _dummy = 0;\n return true;\n }\n\n function approve(address, uint256) public returns (bool) {\n _dummy = 0;\n return true;\n }\n\n function setAllowance(uint256 allowance_) public {\n _allowances[_msgSender()] = allowance_;\n }\n\n function allowance(address owner, address) public view returns (uint256) {\n return _allowances[owner];\n }\n}\n\ncontract ERC20NoReturnMock is Context {\n mapping (address => uint256) private _allowances;\n\n // IERC20's functions are not pure, but these mock implementations are: to prevent Solidity from issuing warnings,\n // we write to a dummy state variable.\n uint256 private _dummy;\n\n function transfer(address, uint256) public {\n _dummy = 0;\n }\n\n function transferFrom(address, address, uint256) public {\n _dummy = 0;\n }\n\n function approve(address, uint256) public {\n _dummy = 0;\n }\n\n function setAllowance(uint256 allowance_) public {\n _allowances[_msgSender()] = allowance_;\n }\n\n function allowance(address owner, address) public view returns (uint256) {\n return _allowances[owner];\n }\n}\n\ncontract SafeERC20Wrapper is Context {\n using SafeERC20 for IERC20;\n\n IERC20 private _token;\n\n constructor (IERC20 token) public {\n _token = token;\n }\n\n function transfer() public {\n _token.safeTransfer(address(0), 0);\n }\n\n function transferFrom() public {\n _token.safeTransferFrom(address(0), address(0), 0);\n }\n\n function approve(uint256 amount) public {\n _token.safeApprove(address(0), amount);\n }\n\n function increaseAllowance(uint256 amount) public {\n _token.safeIncreaseAllowance(address(0), amount);\n }\n\n function decreaseAllowance(uint256 amount) public {\n _token.safeDecreaseAllowance(address(0), amount);\n }\n\n function setAllowance(uint256 allowance_) public {\n ERC20ReturnTrueMock(address(_token)).setAllowance(allowance_);\n }\n\n function allowance() public view returns (uint256) {\n return _token.allowance(address(0), address(0));\n }\n}\n"}, "utils/Pausable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x60a059f8750f0a453332f9a06a2cc3e1"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.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 */\ncontract Pausable is Context {\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 constructor () internal {\n _paused = false;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view returns (bool) {\n return _paused;\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 require(!_paused, \"Pausable: paused\");\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 require(_paused, \"Pausable: not paused\");\n _;\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"}, "token/ERC777/IERC777Sender.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x6e180bb0131dcdfb9aed306dc1ee078c"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the ERC777TokensSender standard as defined in the EIP.\n *\n * {IERC777} Token holders can be notified of operations performed on their\n * tokens by having a contract implement this interface (contract holders can be\n * their own implementer) and registering it on the\n * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].\n *\n * See {IERC1820Registry} and {ERC1820Implementer}.\n */\ninterface IERC777Sender {\n /**\n * @dev Called by an {IERC777} token contract whenever a registered holder's\n * (`from`) tokens are about to be moved or destroyed. The type of operation\n * is conveyed by `to` being the zero address or not.\n *\n * This call occurs _before_ the token contract's state is updated, so\n * {IERC777-balanceOf}, etc., can be used to query the pre-operation state.\n *\n * This function may revert to prevent the operation from being executed.\n */\n function tokensToSend(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external;\n}\n"}, "token/ERC20/SafeERC20.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x9ad439345c515e1367ef104675b36e7b"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC20.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n using SafeMath for uint256;\n using Address for address;\n\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n }\n\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n }\n\n /**\n * @dev Deprecated. This function has issues similar to the ones found in\n * {IERC20-approve}, and its usage is discouraged.\n *\n * Whenever possible, use {safeIncreaseAllowance} and\n * {safeDecreaseAllowance} instead.\n */\n function safeApprove(IERC20 token, address spender, uint256 value) internal {\n // safeApprove should only be called when setting an initial allowance,\n // or when resetting it to zero. To increase and decrease it, use\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n // solhint-disable-next-line max-line-length\n require((value == 0) || (token.allowance(address(this), spender) == 0),\n \"SafeERC20: approve from non-zero to non-zero allowance\"\n );\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n }\n\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 newAllowance = token.allowance(address(this), spender).add(value);\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 newAllowance = token.allowance(address(this), spender).sub(value, \"SafeERC20: decreased allowance below zero\");\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\n // the target address contains contract code and also asserts for success in the low-level call.\n\n bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n if (returndata.length > 0) { // Return data is optional\n // solhint-disable-next-line max-line-length\n require(abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n }\n }\n}\n"}, "mocks/AccessControlMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x7c675861833b4f6c1f9dc42e8eb28310"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/AccessControl.sol\";\n\ncontract AccessControlMock is AccessControl {\n constructor() public {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n }\n\n function setRoleAdmin(bytes32 roleId, bytes32 adminRoleId) public {\n _setRoleAdmin(roleId, adminRoleId);\n }\n}\n"}, "token/ERC721/IERC721Metadata.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xc747635b7aafc7aaef8ff5783ed25e6b"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"./IERC721.sol\";\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional metadata extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721Metadata is IERC721 {\n\n /**\n * @dev Returns the token collection name.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the token collection symbol.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.\n */\n function tokenURI(uint256 tokenId) external view returns (string memory);\n}\n"}, "utils/ReentrancyGuard.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd7295fcfe1e67e8b5e0099bdba192e19"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\ncontract ReentrancyGuard {\n // Booleans are more expensive than uint256 or any type that takes up a full\n // word because each write operation emits an extra SLOAD to first read the\n // slot's contents, replace the bits taken up by the boolean, and then write\n // back. This is the compiler's defense against contract upgrades and\n // pointer aliasing, and it cannot be disabled.\n\n // The values being non-zero value makes deployment a bit more expensive,\n // but in exchange the refund on every call to nonReentrant will be lower in\n // amount. Since refunds are capped to a percentage of the total\n // transaction's gas, it is best to keep them low in cases like this one, to\n // increase the likelihood of the full refund coming into effect.\n uint256 private constant _NOT_ENTERED = 1;\n uint256 private constant _ENTERED = 2;\n\n uint256 private _status;\n\n constructor () internal {\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Prevents a contract from calling itself, directly or indirectly.\n * Calling a `nonReentrant` function from another `nonReentrant`\n * function is not supported. It is possible to prevent this from happening\n * by making the `nonReentrant` function external, and make it call a\n * `private` function that does the actual work.\n */\n modifier nonReentrant() {\n // On the first call to nonReentrant, _notEntered will be true\n require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n // Any calls to nonReentrant after this point will fail\n _status = _ENTERED;\n\n _;\n\n // By storing the original value once again, a refund is triggered (see\n // https://eips.ethereum.org/EIPS/eip-2200)\n _status = _NOT_ENTERED;\n }\n}\n"}, "token/ERC721/IERC721.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xc859be45d4e9a8e9234c730c5da2c123"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"../../introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC721 compliant contract.\n */\ninterface IERC721 is IERC165 {\n /**\n * @dev Emitted when `tokenId` token is transfered from `from` to `to`.\n */\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n */\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n */\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n /**\n * @dev Returns the number of tokens in ``owner``'s account.\n */\n function balanceOf(address owner) external view returns (uint256 balance);\n\n /**\n * @dev Returns the owner of the `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function ownerOf(uint256 tokenId) external view returns (address owner);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId) external;\n\n /**\n * @dev Transfers `tokenId` token from `from` to `to`.\n *\n * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address from, address to, uint256 tokenId) external;\n\n /**\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n * The approval is cleared when the token is transferred.\n *\n * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n *\n * Requirements:\n *\n * - The caller must own the token or be an approved operator.\n * - `tokenId` must exist.\n *\n * Emits an {Approval} event.\n */\n function approve(address to, uint256 tokenId) external;\n\n /**\n * @dev Returns the account approved for `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function getApproved(uint256 tokenId) external view returns (address operator);\n\n /**\n * @dev Approve or remove `operator` as an operator for the caller.\n * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n *\n * Requirements:\n *\n * - The `operator` cannot be the caller.\n *\n * Emits an {ApprovalForAll} event.\n */\n function setApprovalForAll(address operator, bool _approved) external;\n\n /**\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n *\n * See {setApprovalForAll}\n */\n function isApprovedForAll(address owner, address operator) external view returns (bool);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;\n}\n"}, "mocks/ERC20Mock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x27188f8bd49d64d4fc38fee828b9b116"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20.sol\";\n\n// mock class using ERC20\ncontract ERC20Mock is ERC20 {\n constructor (\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) public payable ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n\n function mint(address account, uint256 amount) public {\n _mint(account, amount);\n }\n\n function burn(address account, uint256 amount) public {\n _burn(account, amount);\n }\n\n function transferInternal(address from, address to, uint256 value) public {\n _transfer(from, to, value);\n }\n\n function approveInternal(address owner, address spender, uint256 value) public {\n _approve(owner, spender, value);\n }\n}\n"}, "token/ERC721/ERC721Burnable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x0994460d332fcb71bac0394eef366204"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./ERC721.sol\";\n\n/**\n * @title ERC721 Burnable Token\n * @dev ERC721 Token that can be irreversibly burned (destroyed).\n */\nabstract contract ERC721Burnable is Context, ERC721 {\n /**\n * @dev Burns `tokenId`. See {ERC721-_burn}.\n *\n * Requirements:\n *\n * - The caller must own `tokenId` or be an approved operator.\n */\n function burn(uint256 tokenId) public virtual {\n //solhint-disable-next-line max-line-length\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721Burnable: caller is not owner nor approved\");\n _burn(tokenId);\n }\n}\n"}, "mocks/ERC20BurnableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x9a84ded6a93b4aa01a620f0dd7c481c4"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20Burnable.sol\";\n\ncontract ERC20BurnableMock is ERC20Burnable {\n constructor (\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) public ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n}\n"}, "mocks/EnumerableMapMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x50fd36a12258baff5d0cb021907e2fd0"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/EnumerableMap.sol\";\n\ncontract EnumerableMapMock {\n using EnumerableMap for EnumerableMap.UintToAddressMap;\n\n event OperationResult(bool result);\n\n EnumerableMap.UintToAddressMap private _map;\n\n function contains(uint256 key) public view returns (bool) {\n return _map.contains(key);\n }\n\n function set(uint256 key, address value) public {\n bool result = _map.set(key, value);\n emit OperationResult(result);\n }\n\n function remove(uint256 key) public {\n bool result = _map.remove(key);\n emit OperationResult(result);\n }\n\n function length() public view returns (uint256) {\n return _map.length();\n }\n\n function at(uint256 index) public view returns (uint256 key, address value) {\n return _map.at(index);\n }\n\n\n function get(uint256 key) public view returns (address) {\n return _map.get(key);\n }\n}\n"}, "mocks/ERC721PausableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x0cf8e54da850503081103469f656366d"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/ERC721Pausable.sol\";\n\n/**\n * @title ERC721PausableMock\n * This mock just provides a public mint, burn and exists functions for testing purposes\n */\ncontract ERC721PausableMock is ERC721Pausable {\n constructor (string memory name, string memory symbol) public ERC721(name, symbol) { }\n\n function mint(address to, uint256 tokenId) public {\n super._mint(to, tokenId);\n }\n\n function burn(uint256 tokenId) public {\n super._burn(tokenId);\n }\n\n function exists(uint256 tokenId) public view returns (bool) {\n return super._exists(tokenId);\n }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n}\n"}, "mocks/MerkleProofWrapper.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xcc1178674f68bc5747648335f14abc24"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport { MerkleProof } from \"../cryptography/MerkleProof.sol\";\n\ncontract MerkleProofWrapper {\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) public pure returns (bool) {\n return MerkleProof.verify(proof, root, leaf);\n }\n}\n"}, "mocks/ReentrancyAttack.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xadba009be08741fd8ff4de9166fb2d8e"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\ncontract ReentrancyAttack is Context {\n function callSender(bytes4 data) public {\n // solhint-disable-next-line avoid-low-level-calls\n (bool success,) = _msgSender().call(abi.encodeWithSelector(data));\n require(success, \"ReentrancyAttack: failed call\");\n }\n}\n"}, "mocks/SafeCastMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf54ca6f4637f9e27151dadb1288f73af"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/SafeCast.sol\";\n\ncontract SafeCastMock {\n using SafeCast for uint;\n using SafeCast for int;\n\n function toUint256(int a) public pure returns (uint256) {\n return a.toUint256();\n }\n\n function toInt256(uint a) public pure returns (int256) {\n return a.toInt256();\n }\n\n function toUint128(uint a) public pure returns (uint128) {\n return a.toUint128();\n }\n\n function toUint64(uint a) public pure returns (uint64) {\n return a.toUint64();\n }\n\n function toUint32(uint a) public pure returns (uint32) {\n return a.toUint32();\n }\n\n function toUint16(uint a) public pure returns (uint16) {\n return a.toUint16();\n }\n\n function toUint8(uint a) public pure returns (uint8) {\n return a.toUint8();\n }\n\n function toInt128(int a) public pure returns (int128) {\n return a.toInt128();\n }\n\n function toInt64(int a) public pure returns (int64) {\n return a.toInt64();\n }\n\n function toInt32(int a) public pure returns (int32) {\n return a.toInt32();\n }\n\n function toInt16(int a) public pure returns (int16) {\n return a.toInt16();\n }\n\n function toInt8(int a) public pure returns (int8) {\n return a.toInt8();\n }\n}\n"}, "token/ERC20/ERC20Burnable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xe7d9974ca7596843e7515c1b27a2d0a8"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./ERC20.sol\";\n\n/**\n * @dev Extension of {ERC20} that allows token holders to destroy both their own\n * tokens and those that they have an allowance for, in a way that can be\n * recognized off-chain (via event analysis).\n */\nabstract contract ERC20Burnable is Context, ERC20 {\n /**\n * @dev Destroys `amount` tokens from the caller.\n *\n * See {ERC20-_burn}.\n */\n function burn(uint256 amount) public virtual {\n _burn(_msgSender(), amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`, deducting from the caller's\n * allowance.\n *\n * See {ERC20-_burn} and {ERC20-allowance}.\n *\n * Requirements:\n *\n * - the caller must have allowance for ``accounts``'s tokens of at least\n * `amount`.\n */\n function burnFrom(address account, uint256 amount) public virtual {\n uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, \"ERC20: burn amount exceeds allowance\");\n\n _approve(account, _msgSender(), decreasedAllowance);\n _burn(account, amount);\n }\n}\n"}, "math/SignedSafeMath.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xb89f896065342db5c60b9288674254b9"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @title SignedSafeMath\n * @dev Signed math operations with safety checks that revert on error.\n */\nlibrary SignedSafeMath {\n int256 constant private _INT256_MIN = -2**255;\n\n /**\n * @dev Returns the multiplication of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `*` operator.\n *\n * Requirements:\n *\n * - Multiplication cannot overflow.\n */\n function mul(int256 a, int256 b) internal pure returns (int256) {\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n // benefit is lost if 'b' is also tested.\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n if (a == 0) {\n return 0;\n }\n\n require(!(a == -1 && b == _INT256_MIN), \"SignedSafeMath: multiplication overflow\");\n\n int256 c = a * b;\n require(c / a == b, \"SignedSafeMath: multiplication overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the integer division of two signed integers. Reverts on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(int256 a, int256 b) internal pure returns (int256) {\n require(b != 0, \"SignedSafeMath: division by zero\");\n require(!(b == -1 && a == _INT256_MIN), \"SignedSafeMath: division overflow\");\n\n int256 c = a / b;\n\n return c;\n }\n\n /**\n * @dev Returns the subtraction of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(int256 a, int256 b) internal pure returns (int256) {\n int256 c = a - b;\n require((b >= 0 && c <= a) || (b < 0 && c > a), \"SignedSafeMath: subtraction overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the addition of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `+` operator.\n *\n * Requirements:\n *\n * - Addition cannot overflow.\n */\n function add(int256 a, int256 b) internal pure returns (int256) {\n int256 c = a + b;\n require((b >= 0 && c >= a) || (b < 0 && c < a), \"SignedSafeMath: addition overflow\");\n\n return c;\n }\n}\n"}, "utils/Strings.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x35959f8ce36e9188c1d9b4348e125e48"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n /**\n * @dev Converts a `uint256` to its ASCII `string` representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n // Inspired by OraclizeAPI's implementation - MIT licence\n // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\n\n if (value == 0) {\n return \"0\";\n }\n uint256 temp = value;\n uint256 digits;\n while (temp != 0) {\n digits++;\n temp /= 10;\n }\n bytes memory buffer = new bytes(digits);\n uint256 index = digits - 1;\n temp = value;\n while (temp != 0) {\n buffer[index--] = byte(uint8(48 + temp % 10));\n temp /= 10;\n }\n return string(buffer);\n }\n}\n"}, "introspection/ERC1820Implementer.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xccb7c1be24f76e73048a1a90621e0db7"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC1820Implementer.sol\";\n\n/**\n * @dev Implementation of the {IERC1820Implementer} interface.\n *\n * Contracts may inherit from this and call {_registerInterfaceForAddress} to\n * declare their willingness to be implementers.\n * {IERC1820Registry-setInterfaceImplementer} should then be called for the\n * registration to be complete.\n */\ncontract ERC1820Implementer is IERC1820Implementer {\n bytes32 constant private _ERC1820_ACCEPT_MAGIC = keccak256(abi.encodePacked(\"ERC1820_ACCEPT_MAGIC\"));\n\n mapping(bytes32 => mapping(address => bool)) private _supportedInterfaces;\n\n /**\n * See {IERC1820Implementer-canImplementInterfaceForAddress}.\n */\n function canImplementInterfaceForAddress(bytes32 interfaceHash, address account) public view override returns (bytes32) {\n return _supportedInterfaces[interfaceHash][account] ? _ERC1820_ACCEPT_MAGIC : bytes32(0x00);\n }\n\n /**\n * @dev Declares the contract as willing to be an implementer of\n * `interfaceHash` for `account`.\n *\n * See {IERC1820Registry-setInterfaceImplementer} and\n * {IERC1820Registry-interfaceHash}.\n */\n function _registerInterfaceForAddress(bytes32 interfaceHash, address account) internal virtual {\n _supportedInterfaces[interfaceHash][account] = true;\n }\n}\n"}, "mocks/ECDSAMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xe403750fbf6df6491ee0ad2b5f1a6f5f"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../cryptography/ECDSA.sol\";\n\ncontract ECDSAMock {\n using ECDSA for bytes32;\n\n function recover(bytes32 hash, bytes memory signature) public pure returns (address) {\n return hash.recover(signature);\n }\n\n function toEthSignedMessageHash(bytes32 hash) public pure returns (bytes32) {\n return hash.toEthSignedMessageHash();\n }\n}\n"}, "mocks/SafeMathMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x95f3f0e7913b822691eccebdf9970a60"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/SafeMath.sol\";\n\ncontract SafeMathMock {\n function mul(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.mul(a, b);\n }\n\n function div(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.div(a, b);\n }\n\n function sub(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.sub(a, b);\n }\n\n function add(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.add(a, b);\n }\n\n function mod(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.mod(a, b);\n }\n}\n"}, "cryptography/ECDSA.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xde499ecd49c1c3d9b455a0551b669b14"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\n *\n * These functions can be used to verify that a message was signed by the holder\n * of the private keys of a given address.\n */\nlibrary ECDSA {\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with\n * `signature`. This address can then be used for verification purposes.\n *\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n * this function rejects them by requiring the `s` value to be in the lower\n * half order, and the `v` value to be either 27 or 28.\n *\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n * verification to be secure: it is possible to craft signatures that\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n * this is by receiving a hash of the original message (which may otherwise\n * be too long), and then calling {toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n // Check the signature length\n if (signature.length != 65) {\n revert(\"ECDSA: invalid signature length\");\n }\n\n // Divide the signature in r, s and v variables\n bytes32 r;\n bytes32 s;\n uint8 v;\n\n // ecrecover takes the signature parameters, and the only way to get them\n // currently is to use assembly.\n // solhint-disable-next-line no-inline-assembly\n assembly {\n r := mload(add(signature, 0x20))\n s := mload(add(signature, 0x40))\n v := byte(0, mload(add(signature, 0x60)))\n }\n\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\n // the valid range for s in (281): 0 < s < secp256k1n \u00f7 2 + 1, and for v in (282): v \u2208 {27, 28}. Most\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\n //\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\n // these malleable signatures as well.\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\n revert(\"ECDSA: invalid signature 's' value\");\n }\n\n if (v != 27 && v != 28) {\n revert(\"ECDSA: invalid signature 'v' value\");\n }\n\n // If the signature is valid (and not malleable), return the signer address\n address signer = ecrecover(hash, v, r, s);\n require(signer != address(0), \"ECDSA: invalid signature\");\n\n return signer;\n }\n\n /**\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\n * replicates the behavior of the\n * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]\n * JSON-RPC method.\n *\n * See {recover}.\n */\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\n // 32 is the length in bytes of hash,\n // enforced by the type signature above\n return keccak256(abi.encodePacked(\"\\x19Ethereum Signed Message:\\n32\", hash));\n }\n}\n"}, "token/ERC1155/ERC1155Holder.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xfe126d8ec9855e5561f8364a736917b5"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC1155Receiver.sol\";\n\n/**\n * @dev _Available since v3.1._\n */\ncontract ERC1155Holder is ERC1155Receiver {\n function onERC1155Received(address, address, uint256, uint256, bytes memory) public virtual override returns (bytes4) {\n return this.onERC1155Received.selector;\n }\n\n function onERC1155BatchReceived(address, address, uint256[] memory, uint256[] memory, bytes memory) public virtual override returns (bytes4) {\n return this.onERC1155BatchReceived.selector;\n }\n}\n"}, "mocks/AddressImpl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xaf8143e92bf02651235abf46ba46ba6e"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Address.sol\";\n\ncontract AddressImpl {\n event CallReturnValue(string data);\n\n function isContract(address account) external view returns (bool) {\n return Address.isContract(account);\n }\n\n function sendValue(address payable receiver, uint256 amount) external {\n Address.sendValue(receiver, amount);\n }\n\n function functionCall(address target, bytes calldata data) external {\n bytes memory returnData = Address.functionCall(target, data);\n\n emit CallReturnValue(abi.decode(returnData, (string)));\n }\n\n function functionCallWithValue(address target, bytes calldata data, uint256 value) external payable {\n bytes memory returnData = Address.functionCallWithValue(target, data, value);\n\n emit CallReturnValue(abi.decode(returnData, (string)));\n }\n\n // sendValue's tests require the contract to hold Ether\n receive () external payable { }\n}\n"}, "mocks/ERC721GSNRecipientMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xca6292ef46d86b9d11987f301e8566d7"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/ERC721.sol\";\nimport \"../GSN/GSNRecipient.sol\";\nimport \"../GSN/GSNRecipientSignature.sol\";\n\n/**\n * @title ERC721GSNRecipientMock\n * A simple ERC721 mock that has GSN support enabled\n */\ncontract ERC721GSNRecipientMock is ERC721, GSNRecipient, GSNRecipientSignature {\n constructor(string memory name, string memory symbol, address trustedSigner)\n public\n ERC721(name, symbol)\n GSNRecipientSignature(trustedSigner)\n { }\n\n function mint(uint256 tokenId) public {\n _mint(_msgSender(), tokenId);\n }\n\n function _msgSender() internal view override(Context, GSNRecipient) returns (address payable) {\n return GSNRecipient._msgSender();\n }\n\n function _msgData() internal view override(Context, GSNRecipient) returns (bytes memory) {\n return GSNRecipient._msgData();\n }\n}\n"}, "introspection/IERC165.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x39dfa4b6cbda90995ba59378dd6d9969"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.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 IERC165 {\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"}, "mocks/ReentrancyMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x14f0710668959bbac4f61f3af5e06d37"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/ReentrancyGuard.sol\";\nimport \"./ReentrancyAttack.sol\";\n\ncontract ReentrancyMock is ReentrancyGuard {\n uint256 public counter;\n\n constructor () public {\n counter = 0;\n }\n\n function callback() external nonReentrant {\n _count();\n }\n\n function countLocalRecursive(uint256 n) public nonReentrant {\n if (n > 0) {\n _count();\n countLocalRecursive(n - 1);\n }\n }\n\n function countThisRecursive(uint256 n) public nonReentrant {\n if (n > 0) {\n _count();\n // solhint-disable-next-line avoid-low-level-calls\n (bool success,) = address(this).call(abi.encodeWithSignature(\"countThisRecursive(uint256)\", n - 1));\n require(success, \"ReentrancyMock: failed call\");\n }\n }\n\n function countAndCall(ReentrancyAttack attacker) public nonReentrant {\n _count();\n bytes4 func = bytes4(keccak256(\"callback()\"));\n attacker.callSender(func);\n }\n\n function _count() private {\n counter += 1;\n }\n}\n"}, "presets/ERC721PresetMinterPauserAutoId.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4ef1178f765249c74fd46b450de8e205"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/AccessControl.sol\";\nimport \"../GSN/Context.sol\";\nimport \"../utils/Counters.sol\";\nimport \"../token/ERC721/ERC721.sol\";\nimport \"../token/ERC721/ERC721Burnable.sol\";\nimport \"../token/ERC721/ERC721Pausable.sol\";\n\n/**\n * @dev {ERC721} token, including:\n *\n * - ability for holders to burn (destroy) their tokens\n * - a minter role that allows for token minting (creation)\n * - a pauser role that allows to stop all token transfers\n * - token ID and URI autogeneration\n *\n * This contract uses {AccessControl} to lock permissioned functions using the\n * different roles - head to its documentation for details.\n *\n * The account that deploys the contract will be granted the minter and pauser\n * roles, as well as the default admin role, which will let it grant both minter\n * and pauser roles to other accounts.\n */\ncontract ERC721PresetMinterPauserAutoId is Context, AccessControl, ERC721Burnable, ERC721Pausable {\n using Counters for Counters.Counter;\n\n bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n\n Counters.Counter private _tokenIdTracker;\n\n /**\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the\n * account that deploys the contract.\n *\n * Token URIs will be autogenerated based on `baseURI` and their token IDs.\n * See {ERC721-tokenURI}.\n */\n constructor(string memory name, string memory symbol, string memory baseURI) public ERC721(name, symbol) {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n\n _setupRole(MINTER_ROLE, _msgSender());\n _setupRole(PAUSER_ROLE, _msgSender());\n\n _setBaseURI(baseURI);\n }\n\n /**\n * @dev Creates a new token for `to`. Its token ID will be automatically\n * assigned (and available on the emitted {IERC721-Transfer} event), and the token\n * URI autogenerated based on the base URI passed at construction.\n *\n * See {ERC721-_mint}.\n *\n * Requirements:\n *\n * - the caller must have the `MINTER_ROLE`.\n */\n function mint(address to) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC721PresetMinterPauserAutoId: must have minter role to mint\");\n\n // We can just use balanceOf to create the new tokenId because tokens\n // can be burned (destroyed), so we need a separate counter.\n _mint(to, _tokenIdTracker.current());\n _tokenIdTracker.increment();\n }\n\n /**\n * @dev Pauses all token transfers.\n *\n * See {ERC721Pausable} and {Pausable-_pause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function pause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC721PresetMinterPauserAutoId: must have pauser role to pause\");\n _pause();\n }\n\n /**\n * @dev Unpauses all token transfers.\n *\n * See {ERC721Pausable} and {Pausable-_unpause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function unpause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC721PresetMinterPauserAutoId: must have pauser role to unpause\");\n _unpause();\n }\n\n function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Pausable) {\n super._beforeTokenTransfer(from, to, tokenId);\n }\n}\n"}, "presets/ERC20PresetMinterPauser.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x52e38bee0c37102d0aa6631b7263c99b"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/AccessControl.sol\";\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC20/ERC20.sol\";\nimport \"../token/ERC20/ERC20Burnable.sol\";\nimport \"../token/ERC20/ERC20Pausable.sol\";\n\n/**\n * @dev {ERC20} token, including:\n *\n * - ability for holders to burn (destroy) their tokens\n * - a minter role that allows for token minting (creation)\n * - a pauser role that allows to stop all token transfers\n *\n * This contract uses {AccessControl} to lock permissioned functions using the\n * different roles - head to its documentation for details.\n *\n * The account that deploys the contract will be granted the minter and pauser\n * roles, as well as the default admin role, which will let it grant both minter\n * and pauser roles to other accounts.\n */\ncontract ERC20PresetMinterPauser is Context, AccessControl, ERC20Burnable, ERC20Pausable {\n bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n\n /**\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the\n * account that deploys the contract.\n *\n * See {ERC20-constructor}.\n */\n constructor(string memory name, string memory symbol) public ERC20(name, symbol) {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n\n _setupRole(MINTER_ROLE, _msgSender());\n _setupRole(PAUSER_ROLE, _msgSender());\n }\n\n /**\n * @dev Creates `amount` new tokens for `to`.\n *\n * See {ERC20-_mint}.\n *\n * Requirements:\n *\n * - the caller must have the `MINTER_ROLE`.\n */\n function mint(address to, uint256 amount) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have minter role to mint\");\n _mint(to, amount);\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 virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have pauser role to pause\");\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 virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have pauser role to unpause\");\n _unpause();\n }\n\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20, ERC20Pausable) {\n super._beforeTokenTransfer(from, to, amount);\n }\n}\n"}, "utils/Arrays.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xb6ffa573cbe936f2acd965991895e653"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/Math.sol\";\n\n/**\n * @dev Collection of functions related to array types.\n */\nlibrary Arrays {\n /**\n * @dev Searches a sorted `array` and returns the first index that contains\n * a value greater or equal to `element`. If no such index exists (i.e. all\n * values in the array are strictly less than `element`), the array length is\n * returned. Time complexity O(log n).\n *\n * `array` is expected to be sorted in ascending order, and to contain no\n * repeated elements.\n */\n function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {\n if (array.length == 0) {\n return 0;\n }\n\n uint256 low = 0;\n uint256 high = array.length;\n\n while (low < high) {\n uint256 mid = Math.average(low, high);\n\n // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n // because Math.average rounds down (it does integer division with truncation).\n if (array[mid] > element) {\n high = mid;\n } else {\n low = mid + 1;\n }\n }\n\n // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.\n if (low > 0 && array[low - 1] == element) {\n return low - 1;\n } else {\n return low;\n }\n }\n}\n"}, "payment/escrow/Escrow.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x84ed05c521e6a76a91f65f6b72038ef5"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../math/SafeMath.sol\";\nimport \"../../access/Ownable.sol\";\nimport \"../../utils/Address.sol\";\n\n /**\n * @title Escrow\n * @dev Base escrow contract, holds funds designated for a payee until they\n * withdraw them.\n *\n * Intended usage: This contract (and derived escrow contracts) should be a\n * standalone contract, that only interacts with the contract that instantiated\n * it. That way, it is guaranteed that all Ether will be handled according to\n * the `Escrow` rules, and there is no need to check for payable functions or\n * transfers in the inheritance tree. The contract that uses the escrow as its\n * payment method should be its owner, and provide public methods redirecting\n * to the escrow's deposit and withdraw.\n */\ncontract Escrow is Ownable {\n using SafeMath for uint256;\n using Address for address payable;\n\n event Deposited(address indexed payee, uint256 weiAmount);\n event Withdrawn(address indexed payee, uint256 weiAmount);\n\n mapping(address => uint256) private _deposits;\n\n function depositsOf(address payee) public view returns (uint256) {\n return _deposits[payee];\n }\n\n /**\n * @dev Stores the sent amount as credit to be withdrawn.\n * @param payee The destination address of the funds.\n */\n function deposit(address payee) public virtual payable onlyOwner {\n uint256 amount = msg.value;\n _deposits[payee] = _deposits[payee].add(amount);\n\n emit Deposited(payee, amount);\n }\n\n /**\n * @dev Withdraw accumulated balance for a payee, forwarding all gas to the\n * recipient.\n *\n * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.\n * Make sure you trust the recipient, or are either following the\n * checks-effects-interactions pattern or using {ReentrancyGuard}.\n *\n * @param payee The address whose funds will be withdrawn and transferred to.\n */\n function withdraw(address payable payee) public virtual onlyOwner {\n uint256 payment = _deposits[payee];\n\n _deposits[payee] = 0;\n\n payee.sendValue(payment);\n\n emit Withdrawn(payee, payment);\n }\n}\n"}, "payment/PullPayment.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x02fc7757e896691cbe8a659ff20ba69b"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"./escrow/Escrow.sol\";\n\n/**\n * @dev Simple implementation of a\n * https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment]\n * strategy, where the paying contract doesn't interact directly with the\n * receiver account, which must withdraw its payments itself.\n *\n * Pull-payments are often considered the best practice when it comes to sending\n * Ether, security-wise. It prevents recipients from blocking execution, and\n * eliminates reentrancy concerns.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n *\n * To use, derive from the `PullPayment` contract, and use {_asyncTransfer}\n * instead of Solidity's `transfer` function. Payees can query their due\n * payments with {payments}, and retrieve them with {withdrawPayments}.\n */\ncontract PullPayment {\n Escrow private _escrow;\n\n constructor () internal {\n _escrow = new Escrow();\n }\n\n /**\n * @dev Withdraw accumulated payments, forwarding all gas to the recipient.\n *\n * Note that _any_ account can call this function, not just the `payee`.\n * This means that contracts unaware of the `PullPayment` protocol can still\n * receive funds this way, by having a separate account call\n * {withdrawPayments}.\n *\n * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.\n * Make sure you trust the recipient, or are either following the\n * checks-effects-interactions pattern or using {ReentrancyGuard}.\n *\n * @param payee Whose payments will be withdrawn.\n */\n function withdrawPayments(address payable payee) public virtual {\n _escrow.withdraw(payee);\n }\n\n /**\n * @dev Returns the payments owed to an address.\n * @param dest The creditor's address.\n */\n function payments(address dest) public view returns (uint256) {\n return _escrow.depositsOf(dest);\n }\n\n /**\n * @dev Called by the payer to store the sent amount as credit to be pulled.\n * Funds sent in this way are stored in an intermediate {Escrow} contract, so\n * there is no danger of them being spent before withdrawal.\n *\n * @param dest The destination address of the funds.\n * @param amount The amount to transfer.\n */\n function _asyncTransfer(address dest, uint256 amount) internal virtual {\n _escrow.deposit{ value: amount }(dest);\n }\n}\n"}, "mocks/GSNRecipientMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xb4e08fba2d602ac1923c61f67c80df87"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ContextMock.sol\";\nimport \"../GSN/GSNRecipient.sol\";\n\n// By inheriting from GSNRecipient, Context's internal functions are overridden automatically\ncontract GSNRecipientMock is ContextMock, GSNRecipient {\n function withdrawDeposits(uint256 amount, address payable payee) public {\n _withdrawDeposits(amount, payee);\n }\n\n function acceptRelayedCall(address, address, bytes calldata, uint256, uint256, uint256, uint256, bytes calldata, uint256)\n external\n view\n override\n returns (uint256, bytes memory)\n {\n return (0, \"\");\n }\n\n function _preRelayedCall(bytes memory) internal override returns (bytes32) { }\n\n function _postRelayedCall(bytes memory, bool, uint256, bytes32) internal override { }\n\n function upgradeRelayHub(address newRelayHub) public {\n return _upgradeRelayHub(newRelayHub);\n }\n\n function _msgSender() internal override(Context, GSNRecipient) view virtual returns (address payable) {\n return GSNRecipient._msgSender();\n }\n\n function _msgData() internal override(Context, GSNRecipient) view virtual returns (bytes memory) {\n return GSNRecipient._msgData();\n }\n}\n"}, "math/Math.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd9d26ff981b836b0e3bb45940cd56321"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\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, so we distribute\n return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);\n }\n}\n"}, "payment/escrow/RefundEscrow.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4c1f258f032d089e6009841a1cd2fdd8"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ConditionalEscrow.sol\";\n\n/**\n * @title RefundEscrow\n * @dev Escrow that holds funds for a beneficiary, deposited from multiple\n * parties.\n * @dev Intended usage: See {Escrow}. Same usage guidelines apply here.\n * @dev The owner account (that is, the contract that instantiates this\n * contract) may deposit, close the deposit period, and allow for either\n * withdrawal by the beneficiary, or refunds to the depositors. All interactions\n * with `RefundEscrow` will be made through the owner contract.\n */\ncontract RefundEscrow is ConditionalEscrow {\n enum State { Active, Refunding, Closed }\n\n event RefundsClosed();\n event RefundsEnabled();\n\n State private _state;\n address payable private _beneficiary;\n\n /**\n * @dev Constructor.\n * @param beneficiary The beneficiary of the deposits.\n */\n constructor (address payable beneficiary) public {\n require(beneficiary != address(0), \"RefundEscrow: beneficiary is the zero address\");\n _beneficiary = beneficiary;\n _state = State.Active;\n }\n\n /**\n * @return The current state of the escrow.\n */\n function state() public view returns (State) {\n return _state;\n }\n\n /**\n * @return The beneficiary of the escrow.\n */\n function beneficiary() public view returns (address) {\n return _beneficiary;\n }\n\n /**\n * @dev Stores funds that may later be refunded.\n * @param refundee The address funds will be sent to if a refund occurs.\n */\n function deposit(address refundee) public payable virtual override {\n require(_state == State.Active, \"RefundEscrow: can only deposit while active\");\n super.deposit(refundee);\n }\n\n /**\n * @dev Allows for the beneficiary to withdraw their funds, rejecting\n * further deposits.\n */\n function close() public onlyOwner virtual {\n require(_state == State.Active, \"RefundEscrow: can only close while active\");\n _state = State.Closed;\n emit RefundsClosed();\n }\n\n /**\n * @dev Allows for refunds to take place, rejecting further deposits.\n */\n function enableRefunds() public onlyOwner virtual {\n require(_state == State.Active, \"RefundEscrow: can only enable refunds while active\");\n _state = State.Refunding;\n emit RefundsEnabled();\n }\n\n /**\n * @dev Withdraws the beneficiary's funds.\n */\n function beneficiaryWithdraw() public virtual {\n require(_state == State.Closed, \"RefundEscrow: beneficiary can only withdraw while closed\");\n _beneficiary.transfer(address(this).balance);\n }\n\n /**\n * @dev Returns whether refundees can withdraw their deposits (be refunded). The overridden function receives a\n * 'payee' argument, but we ignore it here since the condition is global, not per-payee.\n */\n function withdrawalAllowed(address) public view override returns (bool) {\n return _state == State.Refunding;\n }\n}\n"}, "mocks/EtherReceiverMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xbbbf39ce2cab5a93136d45390d9cd408"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\ncontract EtherReceiverMock {\n bool private _acceptEther;\n\n function setAcceptEther(bool acceptEther) public {\n _acceptEther = acceptEther;\n }\n\n receive () external payable {\n if (!_acceptEther) {\n revert();\n }\n }\n}\n"}, "mocks/ERC1155Mock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x737b3b3e4bdf5aae82f4360f10dd8000"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC1155/ERC1155.sol\";\n\n/**\n * @title ERC1155Mock\n * This mock just publicizes internal functions for testing purposes\n */\ncontract ERC1155Mock is ERC1155 {\n constructor (string memory uri) public ERC1155(uri) {\n // solhint-disable-previous-line no-empty-blocks\n }\n\n function setURI(string memory newuri) public {\n _setURI(newuri);\n }\n\n function mint(address to, uint256 id, uint256 value, bytes memory data) public {\n _mint(to, id, value, data);\n }\n\n function mintBatch(address to, uint256[] memory ids, uint256[] memory values, bytes memory data) public {\n _mintBatch(to, ids, values, data);\n }\n\n function burn(address owner, uint256 id, uint256 value) public {\n _burn(owner, id, value);\n }\n\n function burnBatch(address owner, uint256[] memory ids, uint256[] memory values) public {\n _burnBatch(owner, ids, values);\n }\n}\n"}, "mocks/SignedSafeMathMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x6770a09edc0656885d0798f9f8278366"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/SignedSafeMath.sol\";\n\ncontract SignedSafeMathMock {\n function mul(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.mul(a, b);\n }\n\n function div(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.div(a, b);\n }\n\n function sub(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.sub(a, b);\n }\n\n function add(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.add(a, b);\n }\n}\n"}}, "contractTypes": {"Context": {"contractName": "Context", "sourceId": "GSN/Context.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "GSNRecipient": {"contractName": "GSNRecipient", "sourceId": "GSN/GSNRecipient.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "RelayHubChanged", "inputs": [{"name": "oldRelayHub", "type": "address", "internalType": "address", "indexed": true}, {"name": "newRelayHub", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "acceptRelayedCall", "stateMutability": "view", "inputs": [{"name": "relay", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "encodedFunction", "type": "bytes", "internalType": "bytes"}, {"name": "transactionFee", "type": "uint256", "internalType": "uint256"}, {"name": "gasPrice", "type": "uint256", "internalType": "uint256"}, {"name": "gasLimit", "type": "uint256", "internalType": "uint256"}, {"name": "nonce", "type": "uint256", "internalType": "uint256"}, {"name": "approvalData", "type": "bytes", "internalType": "bytes"}, {"name": "maxPossibleCharge", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}]}, {"type": "function", "name": "getHubAddr", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "postRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}, {"name": "success", "type": "bool", "internalType": "bool"}, {"name": "actualCharge", "type": "uint256", "internalType": "uint256"}, {"name": "preRetVal", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "preRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "relayHubVersion", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Base GSN recipient contract: includes the {IRelayRecipient} interface and enables GSN support on all contracts in the inheritance tree. TIP: This contract is abstract. The functions {IRelayRecipient-acceptRelayedCall}, {_preRelayedCall}, and {_postRelayedCall} are not implemented and must be provided by derived contracts. See the xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategies] for more information on how to use the pre-built {GSNRecipientSignature} and {GSNRecipientERC20Fee}, or how to write your own.", "events": {"RelayHubChanged(address,address)": {"details": "Emitted when a contract changes its {IRelayHub} contract to a new one."}}, "kind": "dev", "methods": {"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)": {"details": "Called by {IRelayHub} to validate if this recipient accepts being charged for a relayed call. Note that the recipient will be charged regardless of the execution result of the relayed call (i.e. if it reverts or not). The relay request was originated by `from` and will be served by `relay`. `encodedFunction` is the relayed call calldata, so its first four bytes are the function selector. The relayed call will be forwarded `gasLimit` gas, and the transaction executed with a gas price of at least `gasPrice`. ``relay``'s fee is `transactionFee`, and the recipient will be charged at most `maxPossibleCharge` (in wei). `nonce` is the sender's (`from`) nonce for replay attack protection in {IRelayHub}, and `approvalData` is a optional parameter that can be used to hold a signature over all or some of the previous values. Returns a tuple, where the first value is used to indicate approval (0) or rejection (custom non-zero error code, values 1 to 10 are reserved) and the second one is data to be passed to the other {IRelayRecipient} functions. {acceptRelayedCall} is called with 50k gas: if it runs out during execution, the request will be considered rejected. A regular revert will also trigger a rejection."}, "getHubAddr()": {"details": "Returns the address of the {IRelayHub} contract for this recipient."}, "postRelayedCall(bytes,bool,uint256,bytes32)": {"details": "See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "preRelayedCall(bytes)": {"details": "See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "relayHubVersion()": {"details": "Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}}, "version": 1}}, "GSNRecipientERC20Fee": {"contractName": "GSNRecipientERC20Fee", "sourceId": "GSN/GSNRecipientERC20Fee.sol", "deploymentBytecode": {"bytecode": "0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f4941790553480156200003757600080fd5b50604051620020cd380380620020cd833981810160405260408110156200005d57600080fd5b81019080805160405193929190846401000000008211156200007e57600080fd5b9083019060208201858111156200009457600080fd5b8251640100000000811182820188101715620000af57600080fd5b82525081516020918201929091019080838360005b83811015620000de578181015183820152602001620000c4565b50505050905090810190601f1680156200010c5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200013057600080fd5b9083019060208201858111156200014657600080fd5b82516401000000008111828201881017156200016157600080fd5b82525081516020918201929091019080838360005b838110156200019057818101518382015260200162000176565b50505050905090810190601f168015620001be5780820380516001836020036101000a031916815260200191505b506040525050508181604051620001d590620002f1565b604080825283519082015282518190602080830191606084019187019080838360005b8381101562000212578181015183820152602001620001f8565b50505050905090810190601f168015620002405780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015620002755781810151838201526020016200025b565b50505050905090810190601f168015620002a35780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f080158015620002c7573d6000803e3d6000fd5b50600180546001600160a01b0319166001600160a01b039290921691909117905550620002ff9050565b6111ea8062000ee383390190565b610bd4806200030f6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806374e861d61461006757806380274db71461008b57806383947ea014610141578063ad61ccd51461031d578063e06e0e221461039a578063fc0c546a1461044d575b600080fd5b61006f610455565b604080516001600160a01b039092168252519081900360200190f35b61012f600480360360208110156100a157600080fd5b810190602081018135600160201b8111156100bb57600080fd5b8201836020820111156100cd57600080fd5b803590602001918460018302840111600160201b831117156100ee57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610464945050505050565b60408051918252519081900360200190f35b61029e600480360361012081101561015857600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561018b57600080fd5b82018360208201111561019d57600080fd5b803590602001918460018302840111600160201b831117156101be57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561022857600080fd5b82018360208201111561023a57600080fd5b803590602001918460018302840111600160201b8311171561025b57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104cc915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102e15781810151838201526020016102c9565b50505050905090810190601f16801561030e5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103256105bb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035f578181015183820152602001610347565b50505050905090810190601f16801561038c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61044b600480360360808110156103b057600080fd5b810190602081018135600160201b8111156103ca57600080fd5b8201836020820111156103dc57600080fd5b803590602001918460018302840111600160201b831117156103fd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050803515159150602081013590604001356105da565b005b61006f610643565b6000546001600160a01b031690565b600061046e610455565b6001600160a01b0316336001600160a01b0316146104bd5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b516024913960400191505060405180910390fd5b6104c682610652565b92915050565b600154604080516370a0823160e01b81526001600160a01b038b81166004830152915160009360609386939116916370a0823191602480820192602092909190829003018186803b15801561052057600080fd5b505afa158015610534573d6000803e3d6000fd5b505050506040513d602081101561054a57600080fd5b505110156105655761055c6000610699565b915091506105ad565b604080516001600160a01b038c166020820152808201859052606081018a905260808082018a90528251808303909101815260a09091019091526105a8906106b1565b915091505b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b6105e2610455565b6001600160a01b0316336001600160a01b0316146106315760405162461bcd60e51b8152600401808060200182810382526024815260200180610b516024913960400191505060405180910390fd5b61063d848484846106b6565b50505050565b6001546001600160a01b031690565b600080600083806020019051604081101561066c57600080fd5b5080516020909101516001549193509150610692906001600160a01b0316833084610743565b5050919050565b604080516020810190915260008152600b9190910191565b600091565b6000806000808780602001905160808110156106d157600080fd5b50805160208201516040830151606090930151919650945090925090506000610709610702620186a061271061079d565b83856107e6565b9050610715878261079d565b965061073885610725868a61079d565b6001546001600160a01b031691906107f4565b505050505050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261063d90859061084b565b60006107df83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108fc565b9392505050565b606490810191909202020490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261084690849061084b565b505050565b60606108a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109939092919063ffffffff16565b805190915015610846578080602001905160208110156108bf57600080fd5b50516108465760405162461bcd60e51b815260040180806020018281038252602a815260200180610b75602a913960400191505060405180910390fd5b6000818484111561098b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610950578181015183820152602001610938565b50505050905090810190601f16801561097d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606109a284846000856109aa565b949350505050565b60606109b585610b17565b610a06576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610a455780518252601f199092019160209182019101610a26565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610aa7576040519150601f19603f3d011682016040523d82523d6000602084013e610aac565b606091505b50915091508115610ac05791506109a29050565b805115610ad05780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315610950578181015183820152602001610938565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906109a257505015159291505056fe47534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875625361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220a876ea0a1eb7a196ce31515b35d6a89beef993b0d05ea7496e78baae792971f564736f6c634300060c003360806040523480156200001157600080fd5b50604051620011ea380380620011ea833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001b89060039060208501906200024c565b508051620001ce9060049060208401906200024c565b50506005805460ff19166012179055506000620001ea62000248565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505050620002e8565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028f57805160ff1916838001178555620002bf565b82800160010185558215620002bf579182015b82811115620002bf578251825591602001919060010190620002a2565b50620002cd929150620002d1565b5090565b5b80821115620002cd5760008155600101620002d2565b610ef280620002f86000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d7146102d9578063a9059cbb14610305578063dd62ed3e14610331578063f2fde38b1461035f576100f5565b806370a082311461027f578063715018a6146102a55780638da5cb5b146102ad57806395d89b41146102d1576100f5565b806323b872dd116100d357806323b872dd146101d1578063313ce56714610207578063395093511461022557806340c10f1914610251576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b610102610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b03813516906020013561041b565b604080519115158252519081900360200190f35b6101bf610439565b60408051918252519081900360200190f35b6101a3600480360360608110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040013561043f565b61020f61048a565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561023b57600080fd5b506001600160a01b038135169060200135610493565b61027d6004803603604081101561026757600080fd5b506001600160a01b0381351690602001356104e6565b005b6101bf6004803603602081101561029557600080fd5b50356001600160a01b0316610563565b61027d61057e565b6102b561063d565b604080516001600160a01b039092168252519081900360200190f35b610102610651565b6101a3600480360360408110156102ef57600080fd5b506001600160a01b0381351690602001356106b2565b6101a36004803603604081101561031b57600080fd5b506001600160a01b03813516906020013561071a565b6101bf6004803603604081101561034757600080fd5b506001600160a01b038135811691602001351661072e565b61027d6004803603602081101561037557600080fd5b50356001600160a01b031661076b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b820191906000526020600020905b8154815290600101906020018083116103f457829003601f168201915b5050505050905090565b600061042f610428610886565b848461088a565b5060015b92915050565b60025490565b600061044961063d565b6001600160a01b0316836001600160a01b031614156104755761046d8484846108c0565b506001610483565b610480848484610a1b565b90505b9392505050565b60055460ff1690565b600061042f6104a0610886565b846104e185600160006104b1610886565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610a9d565b61088a565b6104ee610886565b60055461010090046001600160a01b03908116911614610555576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61055f8282610af7565b5050565b6001600160a01b031660009081526020819052604090205490565b610586610886565b60055461010090046001600160a01b039081169116146105ed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b600061042f6106bf610886565b846104e185604051806060016040528060258152602001610e9860259139600160006106e9610886565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610be7565b600061042f610727610886565b84846108c0565b600061073861063d565b6001600160a01b0316826001600160a01b0316141561075a5750600019610433565b6107648383610c7e565b9050610433565b610773610886565b60055461010090046001600160a01b039081169116146107da576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661081f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610db96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b61089261063d565b6001600160a01b0316826001600160a01b031614156108b0576108bb565b6108bb838383610ca9565b505050565b6001600160a01b0383166109055760405162461bcd60e51b8152600401808060200182810382526025815260200180610e4f6025913960400191505060405180910390fd5b6001600160a01b03821661094a5760405162461bcd60e51b8152600401808060200182810382526023815260200180610d966023913960400191505060405180910390fd5b6109558383836108bb565b61099281604051806060016040528060268152602001610e01602691396001600160a01b0386166000908152602081905260409020549190610be7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546109c19082610a9d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000610a288484846108c0565b610a9384610a34610886565b6104e185604051806060016040528060288152602001610e27602891396001600160a01b038a16600090815260016020526040812090610a72610886565b6001600160a01b031681526020810191909152604001600020549190610be7565b5060019392505050565b600082820183811015610483576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610b52576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610b5e600083836108bb565b600254610b6b9082610a9d565b6002556001600160a01b038216600090815260208190526040902054610b919082610a9d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115610c765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c3b578181015183820152602001610c23565b50505050905090810190601f168015610c685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610cee5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e746024913960400191505060405180910390fd5b6001600160a01b038216610d335760405162461bcd60e51b8152600401808060200182810382526022815260200180610ddf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122077eb27e6a10d97592e35573b5156d5c0cae38fffa94a100a485f1ec992ea1af764736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100625760003560e01c806374e861d61461006757806380274db71461008b57806383947ea014610141578063ad61ccd51461031d578063e06e0e221461039a578063fc0c546a1461044d575b600080fd5b61006f610455565b604080516001600160a01b039092168252519081900360200190f35b61012f600480360360208110156100a157600080fd5b810190602081018135600160201b8111156100bb57600080fd5b8201836020820111156100cd57600080fd5b803590602001918460018302840111600160201b831117156100ee57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610464945050505050565b60408051918252519081900360200190f35b61029e600480360361012081101561015857600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561018b57600080fd5b82018360208201111561019d57600080fd5b803590602001918460018302840111600160201b831117156101be57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561022857600080fd5b82018360208201111561023a57600080fd5b803590602001918460018302840111600160201b8311171561025b57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104cc915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102e15781810151838201526020016102c9565b50505050905090810190601f16801561030e5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103256105bb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035f578181015183820152602001610347565b50505050905090810190601f16801561038c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61044b600480360360808110156103b057600080fd5b810190602081018135600160201b8111156103ca57600080fd5b8201836020820111156103dc57600080fd5b803590602001918460018302840111600160201b831117156103fd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050803515159150602081013590604001356105da565b005b61006f610643565b6000546001600160a01b031690565b600061046e610455565b6001600160a01b0316336001600160a01b0316146104bd5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b516024913960400191505060405180910390fd5b6104c682610652565b92915050565b600154604080516370a0823160e01b81526001600160a01b038b81166004830152915160009360609386939116916370a0823191602480820192602092909190829003018186803b15801561052057600080fd5b505afa158015610534573d6000803e3d6000fd5b505050506040513d602081101561054a57600080fd5b505110156105655761055c6000610699565b915091506105ad565b604080516001600160a01b038c166020820152808201859052606081018a905260808082018a90528251808303909101815260a09091019091526105a8906106b1565b915091505b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b6105e2610455565b6001600160a01b0316336001600160a01b0316146106315760405162461bcd60e51b8152600401808060200182810382526024815260200180610b516024913960400191505060405180910390fd5b61063d848484846106b6565b50505050565b6001546001600160a01b031690565b600080600083806020019051604081101561066c57600080fd5b5080516020909101516001549193509150610692906001600160a01b0316833084610743565b5050919050565b604080516020810190915260008152600b9190910191565b600091565b6000806000808780602001905160808110156106d157600080fd5b50805160208201516040830151606090930151919650945090925090506000610709610702620186a061271061079d565b83856107e6565b9050610715878261079d565b965061073885610725868a61079d565b6001546001600160a01b031691906107f4565b505050505050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261063d90859061084b565b60006107df83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108fc565b9392505050565b606490810191909202020490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261084690849061084b565b505050565b60606108a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109939092919063ffffffff16565b805190915015610846578080602001905160208110156108bf57600080fd5b50516108465760405162461bcd60e51b815260040180806020018281038252602a815260200180610b75602a913960400191505060405180910390fd5b6000818484111561098b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610950578181015183820152602001610938565b50505050905090810190601f16801561097d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606109a284846000856109aa565b949350505050565b60606109b585610b17565b610a06576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610a455780518252601f199092019160209182019101610a26565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610aa7576040519150601f19603f3d011682016040523d82523d6000602084013e610aac565b606091505b50915091508115610ac05791506109a29050565b805115610ad05780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315610950578181015183820152602001610938565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906109a257505015159291505056fe47534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875625361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220a876ea0a1eb7a196ce31515b35d6a89beef993b0d05ea7496e78baae792971f564736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "RelayHubChanged", "inputs": [{"name": "oldRelayHub", "type": "address", "internalType": "address", "indexed": true}, {"name": "newRelayHub", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "acceptRelayedCall", "stateMutability": "view", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "", "type": "bytes", "internalType": "bytes"}, {"name": "transactionFee", "type": "uint256", "internalType": "uint256"}, {"name": "gasPrice", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}, {"name": "maxPossibleCharge", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}]}, {"type": "function", "name": "getHubAddr", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "postRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}, {"name": "success", "type": "bool", "internalType": "bool"}, {"name": "actualCharge", "type": "uint256", "internalType": "uint256"}, {"name": "preRetVal", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "preRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "relayHubVersion", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract IERC20"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "A xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategy] that charges transaction fees in a special purpose ERC20 token, which we refer to as the gas payment token. The amount charged is exactly the amount of Ether charged to the recipient. This means that the token is essentially pegged to the value of Ether. The distribution strategy of the gas payment token to users is not defined by this contract. It's a mintable token whose only minter is the recipient, so the strategy must be implemented in a derived contract, making use of the internal {_mint} function.", "kind": "dev", "methods": {"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)": {"details": "Ensures that only users with enough gas payment token balance can have transactions relayed through the GSN."}, "constructor": {"details": "The arguments to the constructor are the details that the gas payment token will have: `name` and `symbol`. `decimals` is hard-coded to 18."}, "getHubAddr()": {"details": "Returns the address of the {IRelayHub} contract for this recipient."}, "postRelayedCall(bytes,bool,uint256,bytes32)": {"details": "See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "preRelayedCall(bytes)": {"details": "See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "relayHubVersion()": {"details": "Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}, "token()": {"details": "Returns the gas payment token."}}, "version": 1}}, "__unstable__ERC20Owned": {"contractName": "__unstable__ERC20Owned", "sourceId": "GSN/GSNRecipientERC20Fee.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b50604051620011ea380380620011ea833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001b89060039060208501906200024c565b508051620001ce9060049060208401906200024c565b50506005805460ff19166012179055506000620001ea62000248565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505050620002e8565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028f57805160ff1916838001178555620002bf565b82800160010185558215620002bf579182015b82811115620002bf578251825591602001919060010190620002a2565b50620002cd929150620002d1565b5090565b5b80821115620002cd5760008155600101620002d2565b610ef280620002f86000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d7146102d9578063a9059cbb14610305578063dd62ed3e14610331578063f2fde38b1461035f576100f5565b806370a082311461027f578063715018a6146102a55780638da5cb5b146102ad57806395d89b41146102d1576100f5565b806323b872dd116100d357806323b872dd146101d1578063313ce56714610207578063395093511461022557806340c10f1914610251576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b610102610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b03813516906020013561041b565b604080519115158252519081900360200190f35b6101bf610439565b60408051918252519081900360200190f35b6101a3600480360360608110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040013561043f565b61020f61048a565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561023b57600080fd5b506001600160a01b038135169060200135610493565b61027d6004803603604081101561026757600080fd5b506001600160a01b0381351690602001356104e6565b005b6101bf6004803603602081101561029557600080fd5b50356001600160a01b0316610563565b61027d61057e565b6102b561063d565b604080516001600160a01b039092168252519081900360200190f35b610102610651565b6101a3600480360360408110156102ef57600080fd5b506001600160a01b0381351690602001356106b2565b6101a36004803603604081101561031b57600080fd5b506001600160a01b03813516906020013561071a565b6101bf6004803603604081101561034757600080fd5b506001600160a01b038135811691602001351661072e565b61027d6004803603602081101561037557600080fd5b50356001600160a01b031661076b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b820191906000526020600020905b8154815290600101906020018083116103f457829003601f168201915b5050505050905090565b600061042f610428610886565b848461088a565b5060015b92915050565b60025490565b600061044961063d565b6001600160a01b0316836001600160a01b031614156104755761046d8484846108c0565b506001610483565b610480848484610a1b565b90505b9392505050565b60055460ff1690565b600061042f6104a0610886565b846104e185600160006104b1610886565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610a9d565b61088a565b6104ee610886565b60055461010090046001600160a01b03908116911614610555576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61055f8282610af7565b5050565b6001600160a01b031660009081526020819052604090205490565b610586610886565b60055461010090046001600160a01b039081169116146105ed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b600061042f6106bf610886565b846104e185604051806060016040528060258152602001610e9860259139600160006106e9610886565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610be7565b600061042f610727610886565b84846108c0565b600061073861063d565b6001600160a01b0316826001600160a01b0316141561075a5750600019610433565b6107648383610c7e565b9050610433565b610773610886565b60055461010090046001600160a01b039081169116146107da576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661081f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610db96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b61089261063d565b6001600160a01b0316826001600160a01b031614156108b0576108bb565b6108bb838383610ca9565b505050565b6001600160a01b0383166109055760405162461bcd60e51b8152600401808060200182810382526025815260200180610e4f6025913960400191505060405180910390fd5b6001600160a01b03821661094a5760405162461bcd60e51b8152600401808060200182810382526023815260200180610d966023913960400191505060405180910390fd5b6109558383836108bb565b61099281604051806060016040528060268152602001610e01602691396001600160a01b0386166000908152602081905260409020549190610be7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546109c19082610a9d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000610a288484846108c0565b610a9384610a34610886565b6104e185604051806060016040528060288152602001610e27602891396001600160a01b038a16600090815260016020526040812090610a72610886565b6001600160a01b031681526020810191909152604001600020549190610be7565b5060019392505050565b600082820183811015610483576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610b52576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610b5e600083836108bb565b600254610b6b9082610a9d565b6002556001600160a01b038216600090815260208190526040902054610b919082610a9d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115610c765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c3b578181015183820152602001610c23565b50505050905090810190601f168015610c685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610cee5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e746024913960400191505060405180910390fd5b6001600160a01b038216610d335760405162461bcd60e51b8152600401808060200182810382526022815260200180610ddf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122077eb27e6a10d97592e35573b5156d5c0cae38fffa94a100a485f1ec992ea1af764736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d7146102d9578063a9059cbb14610305578063dd62ed3e14610331578063f2fde38b1461035f576100f5565b806370a082311461027f578063715018a6146102a55780638da5cb5b146102ad57806395d89b41146102d1576100f5565b806323b872dd116100d357806323b872dd146101d1578063313ce56714610207578063395093511461022557806340c10f1914610251576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b610102610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b03813516906020013561041b565b604080519115158252519081900360200190f35b6101bf610439565b60408051918252519081900360200190f35b6101a3600480360360608110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040013561043f565b61020f61048a565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561023b57600080fd5b506001600160a01b038135169060200135610493565b61027d6004803603604081101561026757600080fd5b506001600160a01b0381351690602001356104e6565b005b6101bf6004803603602081101561029557600080fd5b50356001600160a01b0316610563565b61027d61057e565b6102b561063d565b604080516001600160a01b039092168252519081900360200190f35b610102610651565b6101a3600480360360408110156102ef57600080fd5b506001600160a01b0381351690602001356106b2565b6101a36004803603604081101561031b57600080fd5b506001600160a01b03813516906020013561071a565b6101bf6004803603604081101561034757600080fd5b506001600160a01b038135811691602001351661072e565b61027d6004803603602081101561037557600080fd5b50356001600160a01b031661076b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b820191906000526020600020905b8154815290600101906020018083116103f457829003601f168201915b5050505050905090565b600061042f610428610886565b848461088a565b5060015b92915050565b60025490565b600061044961063d565b6001600160a01b0316836001600160a01b031614156104755761046d8484846108c0565b506001610483565b610480848484610a1b565b90505b9392505050565b60055460ff1690565b600061042f6104a0610886565b846104e185600160006104b1610886565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610a9d565b61088a565b6104ee610886565b60055461010090046001600160a01b03908116911614610555576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61055f8282610af7565b5050565b6001600160a01b031660009081526020819052604090205490565b610586610886565b60055461010090046001600160a01b039081169116146105ed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b600061042f6106bf610886565b846104e185604051806060016040528060258152602001610e9860259139600160006106e9610886565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610be7565b600061042f610727610886565b84846108c0565b600061073861063d565b6001600160a01b0316826001600160a01b0316141561075a5750600019610433565b6107648383610c7e565b9050610433565b610773610886565b60055461010090046001600160a01b039081169116146107da576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661081f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610db96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b61089261063d565b6001600160a01b0316826001600160a01b031614156108b0576108bb565b6108bb838383610ca9565b505050565b6001600160a01b0383166109055760405162461bcd60e51b8152600401808060200182810382526025815260200180610e4f6025913960400191505060405180910390fd5b6001600160a01b03821661094a5760405162461bcd60e51b8152600401808060200182810382526023815260200180610d966023913960400191505060405180910390fd5b6109558383836108bb565b61099281604051806060016040528060268152602001610e01602691396001600160a01b0386166000908152602081905260409020549190610be7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546109c19082610a9d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000610a288484846108c0565b610a9384610a34610886565b6104e185604051806060016040528060288152602001610e27602891396001600160a01b038a16600090815260016020526040812090610a72610886565b6001600160a01b031681526020810191909152604001600020549190610be7565b5060019392505050565b600082820183811015610483576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610b52576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610b5e600083836108bb565b600254610b6b9082610a9d565b6002556001600160a01b038216600090815260208190526040902054610b919082610a9d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115610c765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c3b578181015183820152602001610c23565b50505050905090810190601f168015610c685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610cee5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e746024913960400191505060405180910390fd5b6001600160a01b038216610d335760405162461bcd60e51b8152600401808060200182810382526022815260200180610ddf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122077eb27e6a10d97592e35573b5156d5c0cae38fffa94a100a485f1ec992ea1af764736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "tokenOwner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "An ERC20 token owned by another contract, which has minting permissions and can use transferFrom to receive anyone's tokens. This contract is an internal helper for GSNRecipientERC20Fee, and should not be used outside of this context.", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}}, "title": "__unstable__ERC20Owned", "version": 1}}, "GSNRecipientSignature": {"contractName": "GSNRecipientSignature", "sourceId": "GSN/GSNRecipientSignature.sol", "deploymentBytecode": {"bytecode": "0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f49417905534801561003657600080fd5b50604051610aa7380380610aa78339818101604052602081101561005957600080fd5b50516001600160a01b0381166100a05760405162461bcd60e51b8152600401808060200182810382526039815260200180610a6e6039913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b039290921691909117905561099f806100cf6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806374e861d61461005c57806380274db71461008057806383947ea014610136578063ad61ccd514610312578063e06e0e221461038f575b600080fd5b610064610442565b604080516001600160a01b039092168252519081900360200190f35b6101246004803603602081101561009657600080fd5b810190602081018135600160201b8111156100b057600080fd5b8201836020820111156100c257600080fd5b803590602001918460018302840111600160201b831117156100e357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610451945050505050565b60408051918252519081900360200190f35b610293600480360361012081101561014d57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561018057600080fd5b82018360208201111561019257600080fd5b803590602001918460018302840111600160201b831117156101b357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561021d57600080fd5b82018360208201111561022f57600080fd5b803590602001918460018302840111600160201b8311171561025057600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104b9915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102d65781810151838201526020016102be565b50505050905090810190601f1680156103035780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b61031a6105fa565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035457818101518382015260200161033c565b50505050905090810190601f1680156103815780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610440600480360360808110156103a557600080fd5b810190602081018135600160201b8111156103bf57600080fd5b8201836020820111156103d157600080fd5b803590602001918460018302840111600160201b831117156103f257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505080351515915060208101359060400135610619565b005b6000546001600160a01b031690565b600061045b610442565b6001600160a01b0316336001600160a01b0316146104aa5760405162461bcd60e51b81526004018080602001828103825260248152602001806109466024913960400191505060405180910390fd5b6104b38261067e565b92915050565b60006060808b8b8b8b8b8b8b6104cd610442565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b602083106105245780518252601f199092019160209182019101610505565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a890930190526001548251918301919091209195506001600160a01b031693506105c192508891506105bb90610684565b906106d5565b6001600160a01b031614156105e2576105d86108c0565b92509250506105ec565b6105d860006108e4565b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610621610442565b6001600160a01b0316336001600160a01b0316146106705760405162461bcd60e51b81526004018080602001828103825260248152602001806109466024913960400191505060405180910390fd5b610678848484845b50505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461072d576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561079e5760405162461bcd60e51b81526004018080602001828103825260228152602001806109026022913960400191505060405180910390fd5b8060ff16601b141580156107b657508060ff16601c14155b156107f25760405162461bcd60e51b81526004018080602001828103825260228152602001806109246022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561084e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108b6576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600060606108dc604051806020016040528060008152506108fc565b915091509091565b604080516020810190915260008152600b9190910191565b60009156fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a26469706673582212209f136bcf0b37d321fe69bf109902236d351a00b914a5a9660251dfe7b90506f364736f6c634300060c003347534e526563697069656e745369676e61747572653a2074727573746564207369676e657220697320746865207a65726f2061646472657373"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c806374e861d61461005c57806380274db71461008057806383947ea014610136578063ad61ccd514610312578063e06e0e221461038f575b600080fd5b610064610442565b604080516001600160a01b039092168252519081900360200190f35b6101246004803603602081101561009657600080fd5b810190602081018135600160201b8111156100b057600080fd5b8201836020820111156100c257600080fd5b803590602001918460018302840111600160201b831117156100e357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610451945050505050565b60408051918252519081900360200190f35b610293600480360361012081101561014d57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561018057600080fd5b82018360208201111561019257600080fd5b803590602001918460018302840111600160201b831117156101b357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561021d57600080fd5b82018360208201111561022f57600080fd5b803590602001918460018302840111600160201b8311171561025057600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104b9915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102d65781810151838201526020016102be565b50505050905090810190601f1680156103035780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b61031a6105fa565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035457818101518382015260200161033c565b50505050905090810190601f1680156103815780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610440600480360360808110156103a557600080fd5b810190602081018135600160201b8111156103bf57600080fd5b8201836020820111156103d157600080fd5b803590602001918460018302840111600160201b831117156103f257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505080351515915060208101359060400135610619565b005b6000546001600160a01b031690565b600061045b610442565b6001600160a01b0316336001600160a01b0316146104aa5760405162461bcd60e51b81526004018080602001828103825260248152602001806109466024913960400191505060405180910390fd5b6104b38261067e565b92915050565b60006060808b8b8b8b8b8b8b6104cd610442565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b602083106105245780518252601f199092019160209182019101610505565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a890930190526001548251918301919091209195506001600160a01b031693506105c192508891506105bb90610684565b906106d5565b6001600160a01b031614156105e2576105d86108c0565b92509250506105ec565b6105d860006108e4565b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610621610442565b6001600160a01b0316336001600160a01b0316146106705760405162461bcd60e51b81526004018080602001828103825260248152602001806109466024913960400191505060405180910390fd5b610678848484845b50505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461072d576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561079e5760405162461bcd60e51b81526004018080602001828103825260228152602001806109026022913960400191505060405180910390fd5b8060ff16601b141580156107b657508060ff16601c14155b156107f25760405162461bcd60e51b81526004018080602001828103825260228152602001806109246022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561084e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108b6576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600060606108dc604051806020016040528060008152506108fc565b915091509091565b604080516020810190915260008152600b9190910191565b60009156fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a26469706673582212209f136bcf0b37d321fe69bf109902236d351a00b914a5a9660251dfe7b90506f364736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "trustedSigner", "type": "address", "internalType": "address"}]}, {"type": "event", "name": "RelayHubChanged", "inputs": [{"name": "oldRelayHub", "type": "address", "internalType": "address", "indexed": true}, {"name": "newRelayHub", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "acceptRelayedCall", "stateMutability": "view", "inputs": [{"name": "relay", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "encodedFunction", "type": "bytes", "internalType": "bytes"}, {"name": "transactionFee", "type": "uint256", "internalType": "uint256"}, {"name": "gasPrice", "type": "uint256", "internalType": "uint256"}, {"name": "gasLimit", "type": "uint256", "internalType": "uint256"}, {"name": "nonce", "type": "uint256", "internalType": "uint256"}, {"name": "approvalData", "type": "bytes", "internalType": "bytes"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}]}, {"type": "function", "name": "getHubAddr", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "postRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}, {"name": "success", "type": "bool", "internalType": "bool"}, {"name": "actualCharge", "type": "uint256", "internalType": "uint256"}, {"name": "preRetVal", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "preRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "relayHubVersion", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "A xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategy] that allows relayed transactions through when they are accompanied by the signature of a trusted signer. The intent is for this signature to be generated by a server that performs validations off-chain. Note that nothing is charged to the user in this scheme. Thus, the server should make sure to account for this in their economic and threat model.", "kind": "dev", "methods": {"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)": {"details": "Ensures that only transactions with a trusted signature can be relayed through the GSN."}, "constructor": {"details": "Sets the trusted signer that is going to be producing signatures to approve relayed calls."}, "getHubAddr()": {"details": "Returns the address of the {IRelayHub} contract for this recipient."}, "postRelayedCall(bytes,bool,uint256,bytes32)": {"details": "See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "preRelayedCall(bytes)": {"details": "See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "relayHubVersion()": {"details": "Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}}, "version": 1}}, "IRelayHub": {"contractName": "IRelayHub", "sourceId": "GSN/IRelayHub.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "CanRelayFailed", "inputs": [{"name": "relay", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "selector", "type": "bytes4", "internalType": "bytes4", "indexed": false}, {"name": "reason", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Deposited", "inputs": [{"name": "recipient", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Penalized", "inputs": [{"name": "relay", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": false}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RelayAdded", "inputs": [{"name": "relay", "type": "address", "internalType": "address", "indexed": true}, {"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "transactionFee", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "stake", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "unstakeDelay", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "url", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RelayRemoved", "inputs": [{"name": "relay", "type": "address", "internalType": "address", "indexed": true}, {"name": "unstakeTime", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Staked", "inputs": [{"name": "relay", "type": "address", "internalType": "address", "indexed": true}, {"name": "stake", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "unstakeDelay", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransactionRelayed", "inputs": [{"name": "relay", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "selector", "type": "bytes4", "internalType": "bytes4", "indexed": false}, {"name": "status", "type": "uint8", "internalType": "enum IRelayHub.RelayCallStatus", "indexed": false}, {"name": "charge", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Unstaked", "inputs": [{"name": "relay", "type": "address", "internalType": "address", "indexed": true}, {"name": "stake", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Withdrawn", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "dest", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "target", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "canRelay", "stateMutability": "view", "inputs": [{"name": "relay", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "encodedFunction", "type": "bytes", "internalType": "bytes"}, {"name": "transactionFee", "type": "uint256", "internalType": "uint256"}, {"name": "gasPrice", "type": "uint256", "internalType": "uint256"}, {"name": "gasLimit", "type": "uint256", "internalType": "uint256"}, {"name": "nonce", "type": "uint256", "internalType": "uint256"}, {"name": "signature", "type": "bytes", "internalType": "bytes"}, {"name": "approvalData", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "status", "type": "uint256", "internalType": "uint256"}, {"name": "recipientContext", "type": "bytes", "internalType": "bytes"}]}, {"type": "function", "name": "depositFor", "stateMutability": "payable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "getNonce", "stateMutability": "view", "inputs": [{"name": "from", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getRelay", "stateMutability": "view", "inputs": [{"name": "relay", "type": "address", "internalType": "address"}], "outputs": [{"name": "totalStake", "type": "uint256", "internalType": "uint256"}, {"name": "unstakeDelay", "type": "uint256", "internalType": "uint256"}, {"name": "unstakeTime", "type": "uint256", "internalType": "uint256"}, {"name": "owner", "type": "address", "internalType": "address payable"}, {"name": "state", "type": "uint8", "internalType": "enum IRelayHub.RelayState"}]}, {"type": "function", "name": "maxPossibleCharge", "stateMutability": "view", "inputs": [{"name": "relayedCallStipend", "type": "uint256", "internalType": "uint256"}, {"name": "gasPrice", "type": "uint256", "internalType": "uint256"}, {"name": "transactionFee", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "penalizeIllegalTransaction", "stateMutability": "nonpayable", "inputs": [{"name": "unsignedTx", "type": "bytes", "internalType": "bytes"}, {"name": "signature", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "penalizeRepeatedNonce", "stateMutability": "nonpayable", "inputs": [{"name": "unsignedTx1", "type": "bytes", "internalType": "bytes"}, {"name": "signature1", "type": "bytes", "internalType": "bytes"}, {"name": "unsignedTx2", "type": "bytes", "internalType": "bytes"}, {"name": "signature2", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "registerRelay", "stateMutability": "nonpayable", "inputs": [{"name": "transactionFee", "type": "uint256", "internalType": "uint256"}, {"name": "url", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "relayCall", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "encodedFunction", "type": "bytes", "internalType": "bytes"}, {"name": "transactionFee", "type": "uint256", "internalType": "uint256"}, {"name": "gasPrice", "type": "uint256", "internalType": "uint256"}, {"name": "gasLimit", "type": "uint256", "internalType": "uint256"}, {"name": "nonce", "type": "uint256", "internalType": "uint256"}, {"name": "signature", "type": "bytes", "internalType": "bytes"}, {"name": "approvalData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "removeRelayByOwner", "stateMutability": "nonpayable", "inputs": [{"name": "relay", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "requiredGas", "stateMutability": "view", "inputs": [{"name": "relayedCallStipend", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "stake", "stateMutability": "payable", "inputs": [{"name": "relayaddr", "type": "address", "internalType": "address"}, {"name": "unstakeDelay", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "unstake", "stateMutability": "nonpayable", "inputs": [{"name": "relay", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "withdraw", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "dest", "type": "address", "internalType": "address payable"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {"unstake(address)": {"notice": "Deletes the relay from the system, and gives back its stake to the owner. Can only be called by the relay owner, after `unstakeDelay` has elapsed since {removeRelayByOwner} was called. Emits an {Unstaked} event."}, "withdraw(uint256,address)": {"notice": "Withdraws from an account's balance, sending it back to it. Relay owners call this to retrieve their revenue, and contracts can use it to reduce their funding. Emits a {Withdrawn} event."}}, "version": 1}, "devdoc": {"details": "Interface for `RelayHub`, the core contract of the GSN. Users should not need to interact with this contract directly. See the https://github.com/OpenZeppelin/openzeppelin-gsn-helpers[OpenZeppelin GSN helpers] for more information on how to deploy an instance of `RelayHub` on your local test network.", "events": {"CanRelayFailed(address,address,address,bytes4,uint256)": {"details": "Emitted when an attempt to relay a call failed. This can happen due to incorrect {relayCall} arguments, or the recipient not accepting the relayed call. The actual relayed call was not executed, and the recipient not charged. The `reason` parameter contains an error code: values 1-10 correspond to `PreconditionCheck` entries, and values over 10 are custom recipient error codes returned from {acceptRelayedCall}."}, "Deposited(address,address,uint256)": {"details": "Emitted when {depositFor} is called, including the amount and account that was funded."}, "Penalized(address,address,uint256)": {"details": "Emitted when a relay is penalized."}, "RelayAdded(address,address,uint256,uint256,uint256,string)": {"details": "Emitted when a relay is registered or re-registerd. Looking at these events (and filtering out {RelayRemoved} events) lets a client discover the list of available relays."}, "RelayRemoved(address,uint256)": {"details": "Emitted when a relay is removed (deregistered). `unstakeTime` is the time when unstake will be callable."}, "Staked(address,uint256,uint256)": {"details": "Emitted when a relay's stake or unstakeDelay are increased"}, "TransactionRelayed(address,address,address,bytes4,uint8,uint256)": {"details": "Emitted when a transaction is relayed. Useful when monitoring a relay's operation and relayed calls to a contract Note that the actual encoded function might be reverted: this is indicated in the `status` parameter. `charge` is the Ether value deducted from the recipient's balance, paid to the relay's owner."}, "Unstaked(address,uint256)": {"details": "Emitted when a relay is unstaked for, including the returned stake."}, "Withdrawn(address,address,uint256)": {"details": "Emitted when an account withdraws funds from `RelayHub`."}}, "kind": "dev", "methods": {"balanceOf(address)": {"details": "Returns an account's deposits. These can be either a contracts's funds, or a relay owner's revenue."}, "canRelay(address,address,address,bytes,uint256,uint256,uint256,uint256,bytes,bytes)": {"details": "Checks if the `RelayHub` will accept a relayed operation. Multiple things must be true for this to happen: - all arguments must be signed for by the sender (`from`) - the sender's nonce must be the current one - the recipient must accept this transaction (via {acceptRelayedCall}) Returns a `PreconditionCheck` value (`OK` when the transaction can be relayed), or a recipient-specific error code if it returns one in {acceptRelayedCall}."}, "depositFor(address)": {"details": "Deposits Ether for a contract, so that it can receive (and pay for) relayed transactions. Unused balance can only be withdrawn by the contract itself, by calling {withdraw}. Emits a {Deposited} event."}, "getNonce(address)": {"details": "Returns an account's nonce in `RelayHub`."}, "getRelay(address)": {"details": "Returns a relay's status. Note that relays can be deleted when unstaked or penalized, causing this function to return an empty entry."}, "maxPossibleCharge(uint256,uint256,uint256)": {"details": "Returns the maximum recipient charge, given the amount of gas forwarded, gas price and relay fee."}, "penalizeIllegalTransaction(bytes,bytes)": {"details": "Penalize a relay that sent a transaction that didn't target ``RelayHub``'s {registerRelay} or {relayCall}."}, "penalizeRepeatedNonce(bytes,bytes,bytes,bytes)": {"details": "Penalize a relay that signed two transactions using the same nonce (making only the first one valid) and different data (gas price, gas limit, etc. may be different). The (unsigned) transaction data and signature for both transactions must be provided."}, "registerRelay(uint256,string)": {"details": "Registers the caller as a relay. The relay must be staked for, and not be a contract (i.e. this function must be called directly from an EOA). This function can be called multiple times, emitting new {RelayAdded} events. Note that the received `transactionFee` is not enforced by {relayCall}. Emits a {RelayAdded} event."}, "relayCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,bytes)": {"details": "Relays a transaction. For this to succeed, multiple conditions must be met: - {canRelay} must `return PreconditionCheck.OK` - the sender must be a registered relay - the transaction's gas price must be larger or equal to the one that was requested by the sender - the transaction must have enough gas to not run out of gas if all internal transactions (calls to the recipient) use all gas available to them - the recipient must have enough balance to pay the relay for the worst-case scenario (i.e. when all gas is spent) If all conditions are met, the call will be relayed and the recipient charged. {preRelayedCall}, the encoded function and {postRelayedCall} will be called in that order. Parameters: - `from`: the client originating the request - `to`: the target {IRelayRecipient} contract - `encodedFunction`: the function call to relay, including data - `transactionFee`: fee (%) the relay takes over actual gas cost - `gasPrice`: gas price the client is willing to pay - `gasLimit`: gas to forward when calling the encoded function - `nonce`: client's nonce - `signature`: client's signature over all previous params, plus the relay and RelayHub addresses - `approvalData`: dapp-specific data forwared to {acceptRelayedCall}. This value is *not* verified by the `RelayHub`, but it still can be used for e.g. a signature. Emits a {TransactionRelayed} event."}, "removeRelayByOwner(address)": {"details": "Removes (deregisters) a relay. Unregistered (but staked for) relays can also be removed. Can only be called by the owner of the relay. After the relay's `unstakeDelay` has elapsed, {unstake} will be callable. Emits a {RelayRemoved} event."}, "requiredGas(uint256)": {"details": "Returns how much gas should be forwarded to a call to {relayCall}, in order to relay a transaction that will spend up to `relayedCallStipend` gas."}, "stake(address,uint256)": {"details": "Adds stake to a relay and sets its `unstakeDelay`. If the relay does not exist, it is created, and the caller of this function becomes its owner. If the relay already exists, only the owner can call this function. A relay cannot be its own owner. All Ether in this function call will be added to the relay's stake. Its unstake delay will be assigned to `unstakeDelay`, but the new value must be greater or equal to the current one. Emits a {Staked} event."}}, "version": 1}}, "IRelayRecipient": {"contractName": "IRelayRecipient", "sourceId": "GSN/IRelayRecipient.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "acceptRelayedCall", "stateMutability": "view", "inputs": [{"name": "relay", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "encodedFunction", "type": "bytes", "internalType": "bytes"}, {"name": "transactionFee", "type": "uint256", "internalType": "uint256"}, {"name": "gasPrice", "type": "uint256", "internalType": "uint256"}, {"name": "gasLimit", "type": "uint256", "internalType": "uint256"}, {"name": "nonce", "type": "uint256", "internalType": "uint256"}, {"name": "approvalData", "type": "bytes", "internalType": "bytes"}, {"name": "maxPossibleCharge", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}]}, {"type": "function", "name": "getHubAddr", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "postRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}, {"name": "success", "type": "bool", "internalType": "bool"}, {"name": "actualCharge", "type": "uint256", "internalType": "uint256"}, {"name": "preRetVal", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "preRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Base interface for a contract that will be called via the GSN from {IRelayHub}. TIP: You don't need to write an implementation yourself! Inherit from {GSNRecipient} instead.", "kind": "dev", "methods": {"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)": {"details": "Called by {IRelayHub} to validate if this recipient accepts being charged for a relayed call. Note that the recipient will be charged regardless of the execution result of the relayed call (i.e. if it reverts or not). The relay request was originated by `from` and will be served by `relay`. `encodedFunction` is the relayed call calldata, so its first four bytes are the function selector. The relayed call will be forwarded `gasLimit` gas, and the transaction executed with a gas price of at least `gasPrice`. ``relay``'s fee is `transactionFee`, and the recipient will be charged at most `maxPossibleCharge` (in wei). `nonce` is the sender's (`from`) nonce for replay attack protection in {IRelayHub}, and `approvalData` is a optional parameter that can be used to hold a signature over all or some of the previous values. Returns a tuple, where the first value is used to indicate approval (0) or rejection (custom non-zero error code, values 1 to 10 are reserved) and the second one is data to be passed to the other {IRelayRecipient} functions. {acceptRelayedCall} is called with 50k gas: if it runs out during execution, the request will be considered rejected. A regular revert will also trigger a rejection."}, "getHubAddr()": {"details": "Returns the address of the {IRelayHub} instance this recipient interacts with."}, "postRelayedCall(bytes,bool,uint256,bytes32)": {"details": "Called by {IRelayHub} on approved relay call requests, after the relayed call is executed. This allows to e.g. charge the user for the relayed call costs, return any overcharges from {preRelayedCall}, or perform contract-specific bookkeeping. `context` is the second value returned in the tuple by {acceptRelayedCall}. `success` is the execution status of the relayed call. `actualCharge` is an estimate of how much the recipient will be charged for the transaction, not including any gas used by {postRelayedCall} itself. `preRetVal` is {preRelayedCall}'s return value. {postRelayedCall} is called with 100k gas: if it runs out during execution or otherwise reverts, the relayed call and the call to {preRelayedCall} will be reverted retroactively, but the recipient will still be charged for the transaction's cost."}, "preRelayedCall(bytes)": {"details": "Called by {IRelayHub} on approved relay call requests, before the relayed call is executed. This allows to e.g. pre-charge the sender of the transaction. `context` is the second value returned in the tuple by {acceptRelayedCall}. Returns a value to be passed to {postRelayedCall}. {preRelayedCall} is called with 100k gas: if it runs out during exection or otherwise reverts, the relayed call will not be executed, but the recipient will still be charged for the transaction's cost."}}, "version": 1}}, "AccessControl": {"contractName": "AccessControl", "sourceId": "access/AccessControl.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleMember", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getRoleMemberCount", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Contract module that allows children to implement role-based access control mechanisms. Roles are referred to by their `bytes32` identifier. These should be exposed in the external API and be unique. The best way to achieve this is by using `public constant` hash digests: ``` bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\"); ``` Roles can be used to represent a set of permissions. To restrict access to a function call, use {hasRole}: ``` function foo() public { require(hasRole(MY_ROLE, msg.sender)); ... } ``` Roles can be granted and revoked dynamically via the {grantRole} and {revokeRole} functions. Each role has an associated admin role, and only accounts that have a role's admin role can call {grantRole} and {revokeRole}. By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means that only accounts with this role will be able to grant or revoke other roles. More complex role relationships can be created by using {_setRoleAdmin}. WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to grant and revoke this role. Extra precautions should be taken to secure accounts that have been granted it.", "events": {"RoleAdminChanged(bytes32,bytes32,bytes32)": {"details": "Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._"}, "RoleGranted(bytes32,address,address)": {"details": "Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {_setupRole}."}, "RoleRevoked(bytes32,address,address)": {"details": "Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call: - if using `revokeRole`, it is the admin role bearer - if using `renounceRole`, it is the role bearer (i.e. `account`)"}}, "kind": "dev", "methods": {"getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."}, "getRoleMember(bytes32,uint256)": {"details": "Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."}, "getRoleMemberCount(bytes32)": {"details": "Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}}, "version": 1}}, "Ownable": {"contractName": "Ownable", "sourceId": "access/Ownable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.", "kind": "dev", "methods": {"constructor": {"details": "Initializes the contract setting the deployer as the initial owner."}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}}, "version": 1}}, "ECDSA": {"contractName": "ECDSA", "sourceId": "cryptography/ECDSA.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220f0f0467064d72e7ff40088dd62be129642488ae0d06c5703441c505dfbbf205664736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220f0f0467064d72e7ff40088dd62be129642488ae0d06c5703441c505dfbbf205664736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Elliptic Curve Digital Signature Algorithm (ECDSA) operations. These functions can be used to verify that a message was signed by the holder of the private keys of a given address.", "kind": "dev", "methods": {}, "version": 1}}, "MerkleProof": {"contractName": "MerkleProof", "sourceId": "cryptography/MerkleProof.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220822a6be6665d8eda1ad3d878e572a931ed364300d0a562d6c024e2e61d1e34d064736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220822a6be6665d8eda1ad3d878e572a931ed364300d0a562d6c024e2e61d1e34d064736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "These functions deal with verification of Merkle trees (hash trees),", "kind": "dev", "methods": {}, "version": 1}}, "ERC165": {"contractName": "ERC165", "sourceId": "introspection/ERC165.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of the {IERC165} interface. Contracts may inherit from this and call {_registerInterface} to declare their support of an interface.", "kind": "dev", "methods": {"supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}}, "stateVariables": {"_supportedInterfaces": {"details": "Mapping of interface ids to whether or not it's supported."}}, "version": 1}}, "ERC165Checker": {"contractName": "ERC165Checker", "sourceId": "introspection/ERC165Checker.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122092856247de1e32a6255953deeba84173f280f5ad7e862ae36f06429d193e820f64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122092856247de1e32a6255953deeba84173f280f5ad7e862ae36f06429d193e820f64736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Library used to query support of an interface declared via {IERC165}. Note that these functions return the actual result of the query: they do not `revert` if an interface is not supported. It is up to the caller to decide what to do in these cases.", "kind": "dev", "methods": {}, "version": 1}}, "ERC1820Implementer": {"contractName": "ERC1820Implementer", "sourceId": "introspection/ERC1820Implementer.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610111806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b605660048036036040811015604157600080fd5b50803590602001356001600160a01b03166068565b60408051918252519081900360200190f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16609557600060d4565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b939250505056fea2646970667358221220c17d4acbf77803b24a3db1d6c667fe273e060c7218b69628e5297bbff5867c4064736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b605660048036036040811015604157600080fd5b50803590602001356001600160a01b03166068565b60408051918252519081900360200190f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16609557600060d4565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b939250505056fea2646970667358221220c17d4acbf77803b24a3db1d6c667fe273e060c7218b69628e5297bbff5867c4064736f6c634300060c0033"}, "abi": [{"type": "function", "name": "canImplementInterfaceForAddress", "stateMutability": "view", "inputs": [{"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}], "userdoc": {"kind": "user", "methods": {"canImplementInterfaceForAddress(bytes32,address)": {"notice": "See {IERC1820Implementer-canImplementInterfaceForAddress}."}}, "version": 1}, "devdoc": {"details": "Implementation of the {IERC1820Implementer} interface. Contracts may inherit from this and call {_registerInterfaceForAddress} to declare their willingness to be implementers. {IERC1820Registry-setInterfaceImplementer} should then be called for the registration to be complete.", "kind": "dev", "methods": {}, "version": 1}}, "IERC165": {"contractName": "IERC165", "sourceId": "introspection/IERC165.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC165 standard, as defined in the https://eips.ethereum.org/EIPS/eip-165[EIP]. Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}.", "kind": "dev", "methods": {"supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}}, "version": 1}}, "IERC1820Implementer": {"contractName": "IERC1820Implementer", "sourceId": "introspection/IERC1820Implementer.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "canImplementInterfaceForAddress", "stateMutability": "view", "inputs": [{"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface for an ERC1820 implementer, as defined in the https://eips.ethereum.org/EIPS/eip-1820#interface-implementation-erc1820implementerinterface[EIP]. Used by contracts that will be registered as implementers in the {IERC1820Registry}.", "kind": "dev", "methods": {"canImplementInterfaceForAddress(bytes32,address)": {"details": "Returns a special value (`ERC1820_ACCEPT_MAGIC`) if this contract implements `interfaceHash` for `account`. See {IERC1820Registry-setInterfaceImplementer}."}}, "version": 1}}, "IERC1820Registry": {"contractName": "IERC1820Registry", "sourceId": "introspection/IERC1820Registry.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "InterfaceImplementerSet", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "implementer", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ManagerChanged", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "newManager", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "getInterfaceImplementer", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getManager", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "implementsERC165Interface", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "implementsERC165InterfaceNoCache", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "interfaceHash", "stateMutability": "pure", "inputs": [{"name": "interfaceName", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "setInterfaceImplementer", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "implementer", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "setManager", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "newManager", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "updateERC165Cache", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {"implementsERC165Interface(address,bytes4)": {"notice": "Checks whether a contract implements an ERC165 interface or not. If the result is not cached a direct lookup on the contract address is performed. If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling {updateERC165Cache} with the contract address."}, "implementsERC165InterfaceNoCache(address,bytes4)": {"notice": "Checks whether a contract implements an ERC165 interface or not without using nor updating the cache."}, "updateERC165Cache(address,bytes4)": {"notice": "Updates the cache with whether the contract implements an ERC165 interface or not."}}, "version": 1}, "devdoc": {"details": "Interface of the global ERC1820 Registry, as defined in the https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register implementers for interfaces in this registry, as well as query support. Implementers may be shared by multiple accounts, and can also implement more than a single interface for each account. Contracts can implement interfaces for themselves, but externally-owned accounts (EOA) must delegate this to a contract. {IERC165} interfaces can also be queried via the registry. For an in-depth explanation and source code analysis, see the EIP text.", "kind": "dev", "methods": {"getInterfaceImplementer(address,bytes32)": {"details": "Returns the implementer of `interfaceHash` for `account`. If no such implementer is registered, returns the zero address. If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28 zeroes), `account` will be queried for support of it. `account` being the zero address is an alias for the caller's address."}, "getManager(address)": {"details": "Returns the manager for `account`. See {setManager}."}, "implementsERC165Interface(address,bytes4)": {"params": {"account": "Address of the contract to check.", "interfaceId": "ERC165 interface to check."}, "returns": {"_0": "True if `account` implements `interfaceId`, false otherwise."}}, "implementsERC165InterfaceNoCache(address,bytes4)": {"params": {"account": "Address of the contract to check.", "interfaceId": "ERC165 interface to check."}, "returns": {"_0": "True if `account` implements `interfaceId`, false otherwise."}}, "interfaceHash(string)": {"details": "Returns the interface hash for an `interfaceName`, as defined in the corresponding https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP]."}, "setInterfaceImplementer(address,bytes32,address)": {"details": "Sets the `implementer` contract as ``account``'s implementer for `interfaceHash`. `account` being the zero address is an alias for the caller's address. The zero address can also be used in `implementer` to remove an old one. See {interfaceHash} to learn how these are created. Emits an {InterfaceImplementerSet} event. Requirements: - the caller must be the current manager for `account`. - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not end in 28 zeroes). - `implementer` must implement {IERC1820Implementer} and return true when queried for support, unless `implementer` is the caller. See {IERC1820Implementer-canImplementInterfaceForAddress}."}, "setManager(address,address)": {"details": "Sets `newManager` as the manager for `account`. A manager of an account is able to set interface implementers for it. By default, each account is its own manager. Passing a value of `0x0` in `newManager` will reset the manager to this initial state. Emits a {ManagerChanged} event. Requirements: - the caller must be the current manager for `account`."}, "updateERC165Cache(address,bytes4)": {"params": {"account": "Address of the contract for which to update the cache.", "interfaceId": "ERC165 interface for which to update the cache."}}}, "version": 1}}, "Math": {"contractName": "Math", "sourceId": "math/Math.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202df01f2d16c321877318c5d1661fb2b032e1db5fbc88685aeee7ee6de65bcc9c64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202df01f2d16c321877318c5d1661fb2b032e1db5fbc88685aeee7ee6de65bcc9c64736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Standard math utilities missing in the Solidity language.", "kind": "dev", "methods": {}, "version": 1}}, "SafeMath": {"contractName": "SafeMath", "sourceId": "math/SafeMath.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220113f57c0dde3a4fa3821c4ca74b812d7cff998db6ba05af5d24ac662c5b14b1864736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220113f57c0dde3a4fa3821c4ca74b812d7cff998db6ba05af5d24ac662c5b14b1864736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restores this intuition by reverting the transaction when an operation overflows. Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always.", "kind": "dev", "methods": {}, "version": 1}}, "SignedSafeMath": {"contractName": "SignedSafeMath", "sourceId": "math/SignedSafeMath.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122028193fee9ee6996500bb2c5c7821def451690d3b3e779a3774507b2d39ac680364736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122028193fee9ee6996500bb2c5c7821def451690d3b3e779a3774507b2d39ac680364736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Signed math operations with safety checks that revert on error.", "kind": "dev", "methods": {}, "title": "SignedSafeMath", "version": 1}}, "AccessControlMock": {"contractName": "AccessControlMock", "sourceId": "mocks/AccessControlMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610023600061001e610028565b61002c565b61012d565b3390565b610036828261003a565b5050565b60008281526020818152604090912061005c9183906103ae6100ad821b17901c565b1561003657610069610028565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006100c2836001600160a01b0384166100cb565b90505b92915050565b60006100d78383610115565b61010d575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556100c5565b5060006100c5565b60009081526001919091016020526040902054151590565b6107a28061013c6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80639010d07c116100665780639010d07c1461014457806391d1485414610183578063a217fddf146101c3578063ca15c873146101cb578063d547741f146101e857610093565b80631e4e009114610098578063248a9ca3146100bd5780632f2ff15d146100ec57806336568abe14610118575b600080fd5b6100bb600480360360408110156100ae57600080fd5b5080359060200135610214565b005b6100da600480360360208110156100d357600080fd5b5035610222565b60408051918252519081900360200190f35b6100bb6004803603604081101561010257600080fd5b50803590602001356001600160a01b0316610237565b6100bb6004803603604081101561012e57600080fd5b50803590602001356001600160a01b031661029f565b6101676004803603604081101561015a57600080fd5b5080359060200135610300565b604080516001600160a01b039092168252519081900360200190f35b6101af6004803603604081101561019957600080fd5b50803590602001356001600160a01b0316610321565b604080519115158252519081900360200190f35b6100da610339565b6100da600480360360208110156101e157600080fd5b503561033e565b6100bb600480360360408110156101fe57600080fd5b50803590602001356001600160a01b0316610355565b61021e82826103c3565b5050565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461025a90610255610415565b610321565b6102955760405162461bcd60e51b815260040180806020018281038252602f8152602001806106df602f913960400191505060405180910390fd5b61021e8282610419565b6102a7610415565b6001600160a01b0316816001600160a01b0316146102f65760405162461bcd60e51b815260040180806020018281038252602f81526020018061073e602f913960400191505060405180910390fd5b61021e8282610482565b600082815260208190526040812061031890836104eb565b90505b92915050565b600082815260208190526040812061031890836104f7565b600081565b600081815260208190526040812061031b9061050c565b60008281526020819052604090206002015461037390610255610415565b6102f65760405162461bcd60e51b815260040180806020018281038252603081526020018061070e6030913960400191505060405180910390fd5b6000610318836001600160a01b038416610517565b600082815260208190526040808220600201549051839285917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a460009182526020829052604090912060020155565b3390565b600082815260208190526040902061043190826103ae565b1561021e5761043e610415565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260208190526040902061049a9082610561565b1561021e576104a7610415565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006103188383610576565b6000610318836001600160a01b0384166105da565b600061031b826105f2565b600061052383836105da565b6105595750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561031b565b50600061031b565b6000610318836001600160a01b0384166105f6565b815460009082106105b85760405162461bcd60e51b81526004018080602001828103825260228152602001806106bd6022913960400191505060405180910390fd5b8260000182815481106105c757fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156106b2578354600019808301919081019060009087908390811061062957fe5b906000526020600020015490508087600001848154811061064657fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061067657fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061031b565b600091505061031b56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212203275a634070fc43b1fdc0d22438db58426ec8422122be1bbe3d9788c8c00515e64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100935760003560e01c80639010d07c116100665780639010d07c1461014457806391d1485414610183578063a217fddf146101c3578063ca15c873146101cb578063d547741f146101e857610093565b80631e4e009114610098578063248a9ca3146100bd5780632f2ff15d146100ec57806336568abe14610118575b600080fd5b6100bb600480360360408110156100ae57600080fd5b5080359060200135610214565b005b6100da600480360360208110156100d357600080fd5b5035610222565b60408051918252519081900360200190f35b6100bb6004803603604081101561010257600080fd5b50803590602001356001600160a01b0316610237565b6100bb6004803603604081101561012e57600080fd5b50803590602001356001600160a01b031661029f565b6101676004803603604081101561015a57600080fd5b5080359060200135610300565b604080516001600160a01b039092168252519081900360200190f35b6101af6004803603604081101561019957600080fd5b50803590602001356001600160a01b0316610321565b604080519115158252519081900360200190f35b6100da610339565b6100da600480360360208110156101e157600080fd5b503561033e565b6100bb600480360360408110156101fe57600080fd5b50803590602001356001600160a01b0316610355565b61021e82826103c3565b5050565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461025a90610255610415565b610321565b6102955760405162461bcd60e51b815260040180806020018281038252602f8152602001806106df602f913960400191505060405180910390fd5b61021e8282610419565b6102a7610415565b6001600160a01b0316816001600160a01b0316146102f65760405162461bcd60e51b815260040180806020018281038252602f81526020018061073e602f913960400191505060405180910390fd5b61021e8282610482565b600082815260208190526040812061031890836104eb565b90505b92915050565b600082815260208190526040812061031890836104f7565b600081565b600081815260208190526040812061031b9061050c565b60008281526020819052604090206002015461037390610255610415565b6102f65760405162461bcd60e51b815260040180806020018281038252603081526020018061070e6030913960400191505060405180910390fd5b6000610318836001600160a01b038416610517565b600082815260208190526040808220600201549051839285917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a460009182526020829052604090912060020155565b3390565b600082815260208190526040902061043190826103ae565b1561021e5761043e610415565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260208190526040902061049a9082610561565b1561021e576104a7610415565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006103188383610576565b6000610318836001600160a01b0384166105da565b600061031b826105f2565b600061052383836105da565b6105595750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561031b565b50600061031b565b6000610318836001600160a01b0384166105f6565b815460009082106105b85760405162461bcd60e51b81526004018080602001828103825260228152602001806106bd6022913960400191505060405180910390fd5b8260000182815481106105c757fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156106b2578354600019808301919081019060009087908390811061062957fe5b906000526020600020015490508087600001848154811061064657fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061067657fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061031b565b600091505061031b56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212203275a634070fc43b1fdc0d22438db58426ec8422122be1bbe3d9788c8c00515e64736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": []}, {"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleMember", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getRoleMemberCount", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "setRoleAdmin", "stateMutability": "nonpayable", "inputs": [{"name": "roleId", "type": "bytes32", "internalType": "bytes32"}, {"name": "adminRoleId", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."}, "getRoleMember(bytes32,uint256)": {"details": "Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."}, "getRoleMemberCount(bytes32)": {"details": "Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}}, "version": 1}}, "AddressImpl": {"contractName": "AddressImpl", "sourceId": "mocks/AddressImpl.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061099c806100206000396000f3fe6080604052600436106100435760003560e01c8063162790551461004f57806324a084df146100965780632a011594146100d1578063a0b5ffb01461014f5761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b506100826004803603602081101561007257600080fd5b50356001600160a01b03166101da565b604080519115158252519081900360200190f35b3480156100a257600080fd5b506100cf600480360360408110156100b957600080fd5b506001600160a01b0381351690602001356101eb565b005b6100cf600480360360608110156100e757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561011157600080fd5b82018360208201111561012357600080fd5b803590602001918460018302840111600160201b8311171561014457600080fd5b9193509150356101f9565b34801561015b57600080fd5b506100cf6004803603604081101561017257600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561019c57600080fd5b8201836020820111156101ae57600080fd5b803590602001918460018302840111600160201b831117156101cf57600080fd5b50909250905061039c565b60006101e58261053c565b92915050565b6101f58282610578565b5050565b606061023d8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250610662915050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c81806020019051602081101561027557600080fd5b8101908080516040519392919084600160201b82111561029457600080fd5b9083019060208201858111156102a957600080fd5b8251600160201b8111828201881017156102c257600080fd5b82525081516020918201929091019080838360005b838110156102ef5781810151838201526020016102d7565b50505050905090810190601f16801561031c5780820380516001836020036101000a031916815260200191505b50604081815260208083528651818401528651929550859450908401925085019080838360005b8381101561035b578181015183820152602001610343565b50505050905090810190601f1680156103885780820380516001836020036101000a031916815260200191505b509250505060405180910390a15050505050565b60606103de8484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061068892505050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c81806020019051602081101561041657600080fd5b8101908080516040519392919084600160201b82111561043557600080fd5b90830190602082018581111561044a57600080fd5b8251600160201b81118282018810171561046357600080fd5b82525081516020918201929091019080838360005b83811015610490578181015183820152602001610478565b50505050905090810190601f1680156104bd5780820380516001836020036101000a031916815260200191505b50604081815260208083528651818401528651929550859450908401925085019080838360005b838110156104fc5781810151838201526020016104e4565b50505050905090810190601f1680156105295780820380516001836020036101000a031916815260200191505b509250505060405180910390a150505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061057057508115155b949350505050565b804710156105cd576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610618576040519150601f19603f3d011682016040523d82523d6000602084013e61061d565b606091505b505090508061065d5760405162461bcd60e51b815260040180806020018281038252603a8152602001806108de603a913960400191505060405180910390fd5b505050565b606061057084848460405180606001604052806029815260200161093e602991396106d1565b60606106ca83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610727565b9392505050565b6060824710156107125760405162461bcd60e51b81526004018080602001828103825260268152602001806109186026913960400191505060405180910390fd5b61071e85858585610732565b95945050505050565b606061057084846000855b606061073d8561053c565b61078e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106107cd5780518252601f1990920191602091820191016107ae565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461082f576040519150601f19603f3d011682016040523d82523d6000602084013e610834565b606091505b509150915081156108485791506105709050565b8051156108585780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108a257818101518382015260200161088a565b50505050905090810190601f1680156108cf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a264697066735822122079af6cc3f99eb8096b32994409db084f2105d94fa151f83685a074bd0178f59a64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100435760003560e01c8063162790551461004f57806324a084df146100965780632a011594146100d1578063a0b5ffb01461014f5761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b506100826004803603602081101561007257600080fd5b50356001600160a01b03166101da565b604080519115158252519081900360200190f35b3480156100a257600080fd5b506100cf600480360360408110156100b957600080fd5b506001600160a01b0381351690602001356101eb565b005b6100cf600480360360608110156100e757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561011157600080fd5b82018360208201111561012357600080fd5b803590602001918460018302840111600160201b8311171561014457600080fd5b9193509150356101f9565b34801561015b57600080fd5b506100cf6004803603604081101561017257600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561019c57600080fd5b8201836020820111156101ae57600080fd5b803590602001918460018302840111600160201b831117156101cf57600080fd5b50909250905061039c565b60006101e58261053c565b92915050565b6101f58282610578565b5050565b606061023d8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250610662915050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c81806020019051602081101561027557600080fd5b8101908080516040519392919084600160201b82111561029457600080fd5b9083019060208201858111156102a957600080fd5b8251600160201b8111828201881017156102c257600080fd5b82525081516020918201929091019080838360005b838110156102ef5781810151838201526020016102d7565b50505050905090810190601f16801561031c5780820380516001836020036101000a031916815260200191505b50604081815260208083528651818401528651929550859450908401925085019080838360005b8381101561035b578181015183820152602001610343565b50505050905090810190601f1680156103885780820380516001836020036101000a031916815260200191505b509250505060405180910390a15050505050565b60606103de8484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061068892505050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c81806020019051602081101561041657600080fd5b8101908080516040519392919084600160201b82111561043557600080fd5b90830190602082018581111561044a57600080fd5b8251600160201b81118282018810171561046357600080fd5b82525081516020918201929091019080838360005b83811015610490578181015183820152602001610478565b50505050905090810190601f1680156104bd5780820380516001836020036101000a031916815260200191505b50604081815260208083528651818401528651929550859450908401925085019080838360005b838110156104fc5781810151838201526020016104e4565b50505050905090810190601f1680156105295780820380516001836020036101000a031916815260200191505b509250505060405180910390a150505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061057057508115155b949350505050565b804710156105cd576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610618576040519150601f19603f3d011682016040523d82523d6000602084013e61061d565b606091505b505090508061065d5760405162461bcd60e51b815260040180806020018281038252603a8152602001806108de603a913960400191505060405180910390fd5b505050565b606061057084848460405180606001604052806029815260200161093e602991396106d1565b60606106ca83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610727565b9392505050565b6060824710156107125760405162461bcd60e51b81526004018080602001828103825260268152602001806109186026913960400191505060405180910390fd5b61071e85858585610732565b95945050505050565b606061057084846000855b606061073d8561053c565b61078e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106107cd5780518252601f1990920191602091820191016107ae565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461082f576040519150601f19603f3d011682016040523d82523d6000602084013e610834565b606091505b509150915081156108485791506105709050565b8051156108585780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108a257818101518382015260200161088a565b50505050905090810190601f1680156108cf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a264697066735822122079af6cc3f99eb8096b32994409db084f2105d94fa151f83685a074bd0178f59a64736f6c634300060c0033"}, "abi": [{"type": "event", "name": "CallReturnValue", "inputs": [{"name": "data", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "functionCall", "stateMutability": "nonpayable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "functionCallWithValue", "stateMutability": "payable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "isContract", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "sendValue", "stateMutability": "nonpayable", "inputs": [{"name": "receiver", "type": "address", "internalType": "address payable"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ArraysImpl": {"contractName": "ArraysImpl", "sourceId": "mocks/ArraysImpl.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506040516102b73803806102b78339818101604052602081101561003357600080fd5b810190808051604051939291908464010000000082111561005357600080fd5b90830190602082018581111561006857600080fd5b825186602082028301116401000000008211171561008557600080fd5b82525081516020918201928201910280838360005b838110156100b257818101518382015260200161009a565b5050505091909101604052505082516100d492506000915060208401906100db565b505061013b565b828054828255906000526020600020908101928215610116579160200282015b828111156101165782518255916020019190600101906100fb565b50610122929150610126565b5090565b5b808211156101225760008155600101610127565b61016d8061014a6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806333e3a58a14610030575b600080fd5b61004d6004803603602081101561004657600080fd5b503561005f565b60408051918252519081900360200190f35b600061006b8183610071565b92915050565b81546000906100825750600061006b565b82546000905b808210156100d157600061009c8383610112565b9050848682815481106100ab57fe5b906000526020600020015411156100c4578091506100cb565b8060010192505b50610088565b6000821180156100f95750838560018403815481106100ec57fe5b9060005260206000200154145b1561010a575060001901905061006b565b509392505050565b6000600280830660028506018161012557fe5b0460028304600285040101939250505056fea26469706673582212204330283ec776444fe2d6638f2178e4fdd51d3e35f2567f23b9ba5420710305ae64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806333e3a58a14610030575b600080fd5b61004d6004803603602081101561004657600080fd5b503561005f565b60408051918252519081900360200190f35b600061006b8183610071565b92915050565b81546000906100825750600061006b565b82546000905b808210156100d157600061009c8383610112565b9050848682815481106100ab57fe5b906000526020600020015411156100c4578091506100cb565b8060010192505b50610088565b6000821180156100f95750838560018403815481106100ec57fe5b9060005260206000200154145b1561010a575060001901905061006b565b509392505050565b6000600280830660028506018161012557fe5b0460028304600285040101939250505056fea26469706673582212204330283ec776444fe2d6638f2178e4fdd51d3e35f2567f23b9ba5420710305ae64736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "array", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "findUpperBound", "stateMutability": "view", "inputs": [{"name": "element", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "CallReceiverMock": {"contractName": "CallReceiverMock", "sourceId": "mocks/CallReceiverMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061021c806100206000396000f3fe6080604052600436106100555760003560e01c80630c0349681461005a5780630f63e42c146100645780632c81d638146100ee5780633bcfaa14146100f65780633e6fec04146100fe578063a793ab4714610106575b600080fd5b61006261010e565b005b34801561007057600080fd5b5061007961015b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100b357818101518382015260200161009b565b50505050905090810190601f1680156100e05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610062610055565b6100626101a8565b61007961015b565b6100626101aa565b6040805162461bcd60e51b815260206004820152601b60248201527f43616c6c52656365697665724d6f636b3a20726576657274696e670000000000604482015290519081900360640190fd5b6040516060907f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1506040805180820190915260068152650c1e0c4c8ccd60d21b602082015290565bfe5b60005b60008054600181810183559180527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56301829055016101ad56fea264697066735822122093cd956a76f041d157d851486b3832aab511d716bf255e335beb7c9f179b37fa64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100555760003560e01c80630c0349681461005a5780630f63e42c146100645780632c81d638146100ee5780633bcfaa14146100f65780633e6fec04146100fe578063a793ab4714610106575b600080fd5b61006261010e565b005b34801561007057600080fd5b5061007961015b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100b357818101518382015260200161009b565b50505050905090810190601f1680156100e05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610062610055565b6100626101a8565b61007961015b565b6100626101aa565b6040805162461bcd60e51b815260206004820152601b60248201527f43616c6c52656365697665724d6f636b3a20726576657274696e670000000000604482015290519081900360640190fd5b6040516060907f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1506040805180820190915260068152650c1e0c4c8ccd60d21b602082015290565bfe5b60005b60008054600181810183559180527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56301829055016101ad56fea264697066735822122093cd956a76f041d157d851486b3832aab511d716bf255e335beb7c9f179b37fa64736f6c634300060c0033"}, "abi": [{"type": "event", "name": "MockFunctionCalled", "inputs": [], "anonymous": false}, {"type": "function", "name": "mockFunction", "stateMutability": "payable", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "mockFunctionNonPayable", "stateMutability": "nonpayable", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "mockFunctionOutOfGas", "stateMutability": "payable", "inputs": [], "outputs": []}, {"type": "function", "name": "mockFunctionRevertsNoReason", "stateMutability": "payable", "inputs": [], "outputs": []}, {"type": "function", "name": "mockFunctionRevertsReason", "stateMutability": "payable", "inputs": [], "outputs": []}, {"type": "function", "name": "mockFunctionThrows", "stateMutability": "payable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ConditionalEscrowMock": {"contractName": "ConditionalEscrowMock", "sourceId": "mocks/ConditionalEscrowMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6108468061007d6000396000f3fe60806040526004361061007b5760003560e01c80638da5cb5b1161004e5780638da5cb5b1461014c578063e3a9db1a1461017d578063f2fde38b146101c2578063f340fa01146101f55761007b565b80634697f05d1461008057806351cff8d9146100bd578063685ca194146100f0578063715018a614610137575b600080fd5b34801561008c57600080fd5b506100bb600480360360408110156100a357600080fd5b506001600160a01b038135169060200135151561021b565b005b3480156100c957600080fd5b506100bb600480360360208110156100e057600080fd5b50356001600160a01b0316610246565b3480156100fc57600080fd5b506101236004803603602081101561011357600080fd5b50356001600160a01b0316610296565b604080519115158252519081900360200190f35b34801561014357600080fd5b506100bb6102b4565b34801561015857600080fd5b50610161610356565b604080516001600160a01b039092168252519081900360200190f35b34801561018957600080fd5b506101b0600480360360208110156101a057600080fd5b50356001600160a01b0316610365565b60408051918252519081900360200190f35b3480156101ce57600080fd5b506100bb600480360360208110156101e557600080fd5b50356001600160a01b0316610380565b6100bb6004803603602081101561020b57600080fd5b50356001600160a01b0316610478565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b61024f81610296565b61028a5760405162461bcd60e51b81526004018080602001828103825260338152602001806107be6033913960400191505060405180910390fd5b6102938161054b565b50565b6001600160a01b031660009081526002602052604090205460ff1690565b6102bc61060e565b6000546001600160a01b0390811691161461030c576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61038861060e565b6000546001600160a01b039081169116146103d8576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811661041d5760405162461bcd60e51b815260040180806020018281038252602681526020018061075e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61048061060e565b6000546001600160a01b039081169116146104d0576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205434906104f59082610612565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b61055361060e565b6000546001600160a01b039081169116146105a3576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906105cb9082610673565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b3390565b60008282018381101561066c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b804710156106c8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610713576040519150601f19603f3d011682016040523d82523d6000602084013e610718565b606091505b50509050806107585760405162461bcd60e51b815260040180806020018281038252603a815260200180610784603a913960400191505060405180910390fd5b50505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420616c6c6f77656420746f2077697468647261774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212207c5289d622b838c90a2775c3f1e6581ec1b34ce86f7a612cad663daf05cb6c8264736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x60806040526004361061007b5760003560e01c80638da5cb5b1161004e5780638da5cb5b1461014c578063e3a9db1a1461017d578063f2fde38b146101c2578063f340fa01146101f55761007b565b80634697f05d1461008057806351cff8d9146100bd578063685ca194146100f0578063715018a614610137575b600080fd5b34801561008c57600080fd5b506100bb600480360360408110156100a357600080fd5b506001600160a01b038135169060200135151561021b565b005b3480156100c957600080fd5b506100bb600480360360208110156100e057600080fd5b50356001600160a01b0316610246565b3480156100fc57600080fd5b506101236004803603602081101561011357600080fd5b50356001600160a01b0316610296565b604080519115158252519081900360200190f35b34801561014357600080fd5b506100bb6102b4565b34801561015857600080fd5b50610161610356565b604080516001600160a01b039092168252519081900360200190f35b34801561018957600080fd5b506101b0600480360360208110156101a057600080fd5b50356001600160a01b0316610365565b60408051918252519081900360200190f35b3480156101ce57600080fd5b506100bb600480360360208110156101e557600080fd5b50356001600160a01b0316610380565b6100bb6004803603602081101561020b57600080fd5b50356001600160a01b0316610478565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b61024f81610296565b61028a5760405162461bcd60e51b81526004018080602001828103825260338152602001806107be6033913960400191505060405180910390fd5b6102938161054b565b50565b6001600160a01b031660009081526002602052604090205460ff1690565b6102bc61060e565b6000546001600160a01b0390811691161461030c576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61038861060e565b6000546001600160a01b039081169116146103d8576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811661041d5760405162461bcd60e51b815260040180806020018281038252602681526020018061075e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61048061060e565b6000546001600160a01b039081169116146104d0576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205434906104f59082610612565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b61055361060e565b6000546001600160a01b039081169116146105a3576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906105cb9082610673565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b3390565b60008282018381101561066c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b804710156106c8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610713576040519150601f19603f3d011682016040523d82523d6000602084013e610718565b606091505b50509050806107585760405162461bcd60e51b815260040180806020018281038252603a815260200180610784603a913960400191505060405180910390fd5b50505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420616c6c6f77656420746f2077697468647261774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212207c5289d622b838c90a2775c3f1e6581ec1b34ce86f7a612cad663daf05cb6c8264736f6c634300060c0033"}, "abi": [{"type": "event", "name": "Deposited", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Withdrawn", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "deposit", "stateMutability": "payable", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "depositsOf", "stateMutability": "view", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "setAllowed", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}, {"name": "allowed", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "withdraw", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address payable"}], "outputs": []}, {"type": "function", "name": "withdrawalAllowed", "stateMutability": "view", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"deposit(address)": {"details": "Stores the sent amount as credit to be withdrawn.", "params": {"payee": "The destination address of the funds."}}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}, "withdraw(address)": {"details": "Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.", "params": {"payee": "The address whose funds will be withdrawn and transferred to."}}, "withdrawalAllowed(address)": {"details": "Returns whether an address is allowed to withdraw their funds. To be implemented by derived contracts.", "params": {"payee": "The destination address of the funds."}}}, "version": 1}}, "ContextMock": {"contractName": "ContextMock", "sourceId": "mocks/ContextMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506102c4806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063376bf2621461003b578063d737d0c7146100ea575b600080fd5b6100e86004803603604081101561005157600080fd5b8135919081019060408101602082013564010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506100f2945050505050565b005b6100e8610205565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea061011b61024b565b8383604051808060200184815260200180602001838103835286818151815260200191508051906020019080838360005b8381101561016457818101518382015260200161014c565b50505050905090810190601f1680156101915780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156101c45781810151838201526020016101ac565b50505050905090810190601f1680156101f15780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc61022e61028a565b604080516001600160a01b039092168252519081900360200190a1565b60606000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935050505090565b339056fea2646970667358221220b4665ee093d7f8f7d2b6a224cd13a648dea5036f8fdf375a6fc2549a95d9c35364736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063376bf2621461003b578063d737d0c7146100ea575b600080fd5b6100e86004803603604081101561005157600080fd5b8135919081019060408101602082013564010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506100f2945050505050565b005b6100e8610205565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea061011b61024b565b8383604051808060200184815260200180602001838103835286818151815260200191508051906020019080838360005b8381101561016457818101518382015260200161014c565b50505050905090810190601f1680156101915780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156101c45781810151838201526020016101ac565b50505050905090810190601f1680156101f15780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc61022e61028a565b604080516001600160a01b039092168252519081900360200190a1565b60606000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935050505090565b339056fea2646970667358221220b4665ee093d7f8f7d2b6a224cd13a648dea5036f8fdf375a6fc2549a95d9c35364736f6c634300060c0033"}, "abi": [{"type": "event", "name": "Data", "inputs": [{"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "integerValue", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "stringValue", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Sender", "inputs": [{"name": "sender", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "msgData", "stateMutability": "nonpayable", "inputs": [{"name": "integerValue", "type": "uint256", "internalType": "uint256"}, {"name": "stringValue", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "msgSender", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ContextMockCaller": {"contractName": "ContextMockCaller", "sourceId": "mocks/ContextMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610277806100206000396000f3fe608060405234801561001057600080fd5b50600436106100355760003560e01c80628604591461003a5780633207ad96146100f7575b600080fd5b6100f56004803603606081101561005057600080fd5b6001600160a01b038235169160208101359181019060608101604082013564010000000081111561008057600080fd5b82018360208201111561009257600080fd5b803590602001918460018302840111640100000000831117156100b457600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061011d945050505050565b005b6100f56004803603602081101561010d57600080fd5b50356001600160a01b03166101eb565b60408051631bb5f93160e11b815260048101848152602482019283528351604483015283516001600160a01b0387169363376bf262938793879390929160640190602085019080838360005b83811015610181578181015183820152602001610169565b50505050905090810190601f1680156101ae5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b1580156101ce57600080fd5b505af11580156101e2573d6000803e3d6000fd5b50505050505050565b806001600160a01b031663d737d0c76040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022657600080fd5b505af115801561023a573d6000803e3d6000fd5b505050505056fea264697066735822122048e9a33be56578af81d1f912c894b730d2d55c71052c4534467f3eb8ef28c41864736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100355760003560e01c80628604591461003a5780633207ad96146100f7575b600080fd5b6100f56004803603606081101561005057600080fd5b6001600160a01b038235169160208101359181019060608101604082013564010000000081111561008057600080fd5b82018360208201111561009257600080fd5b803590602001918460018302840111640100000000831117156100b457600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061011d945050505050565b005b6100f56004803603602081101561010d57600080fd5b50356001600160a01b03166101eb565b60408051631bb5f93160e11b815260048101848152602482019283528351604483015283516001600160a01b0387169363376bf262938793879390929160640190602085019080838360005b83811015610181578181015183820152602001610169565b50505050905090810190601f1680156101ae5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b1580156101ce57600080fd5b505af11580156101e2573d6000803e3d6000fd5b50505050505050565b806001600160a01b031663d737d0c76040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022657600080fd5b505af115801561023a573d6000803e3d6000fd5b505050505056fea264697066735822122048e9a33be56578af81d1f912c894b730d2d55c71052c4534467f3eb8ef28c41864736f6c634300060c0033"}, "abi": [{"type": "function", "name": "callData", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "address", "internalType": "contract ContextMock"}, {"name": "integerValue", "type": "uint256", "internalType": "uint256"}, {"name": "stringValue", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "callSender", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "address", "internalType": "contract ContextMock"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "CountersImpl": {"contractName": "CountersImpl", "sourceId": "mocks/CountersImpl.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506101cd806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80632baeceb7146100465780639fa6a6e314610050578063d09de08a1461006a575b600080fd5b61004e610072565b005b61005861007e565b60408051918252519081900360200190f35b61004e61008f565b61007c6000610099565b565b600061008a60006100aa565b905090565b61007c60006100ae565b80546100a69060016100b7565b9055565b5490565b80546001019055565b60006100f983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610100565b9392505050565b6000818484111561018f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561015457818101518382015260200161013c565b50505050905090810190601f1680156101815780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fea2646970667358221220019dfed5f4760935e97e2045282ef412f393d16987a38f9fe806dce153c1c27164736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80632baeceb7146100465780639fa6a6e314610050578063d09de08a1461006a575b600080fd5b61004e610072565b005b61005861007e565b60408051918252519081900360200190f35b61004e61008f565b61007c6000610099565b565b600061008a60006100aa565b905090565b61007c60006100ae565b80546100a69060016100b7565b9055565b5490565b80546001019055565b60006100f983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610100565b9392505050565b6000818484111561018f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561015457818101518382015260200161013c565b50505050905090810190601f1680156101815780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fea2646970667358221220019dfed5f4760935e97e2045282ef412f393d16987a38f9fe806dce153c1c27164736f6c634300060c0033"}, "abi": [{"type": "function", "name": "current", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decrement", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "increment", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "Create2Impl": {"contractName": "Create2Impl", "sourceId": "mocks/Create2Impl.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061051f806100206000396000f3fe6080604052600436106100435760003560e01c8063076c37b21461004f578063481286e61461008157806356299481146100cd57806366cfa0571461010c5761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b5061007f6004803603604081101561007257600080fd5b50803590602001356101cb565b005b34801561008d57600080fd5b506100b1600480360360408110156100a457600080fd5b50803590602001356101fd565b604080516001600160a01b039092168252519081900360200190f35b3480156100d957600080fd5b506100b1600480360360608110156100f057600080fd5b50803590602081013590604001356001600160a01b0316610210565b34801561011857600080fd5b5061007f6004803603606081101561012f57600080fd5b81359160208101359181019060608101604082013564010000000081111561015657600080fd5b82018360208201111561016857600080fd5b8035906020019184600183028401116401000000008311171561018a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610225945050505050565b6101f88282604051806020016101e0906103ab565b601f1982820381018352601f90910116604052610236565b505050565b60006102098383610347565b9392505050565b600061021d848484610350565b949350505050565b610230838383610236565b50505050565b6000808447101561028e576040805162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b82516102e1576040805162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015290519081900360640190fd5b8383516020850187f590506001600160a01b03811661021d576040805162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015290519081900360640190fd5b60006102098383305b604080516001600160f81b031960208083019190915260609390931b6bffffffffffffffffffffffff191660218201526035810194909452605580850193909352805180850390930183526075909301909252805191012090565b610131806103b98339019056fe608060405234801561001057600080fd5b50610111806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b605660048036036040811015604157600080fd5b50803590602001356001600160a01b03166068565b60408051918252519081900360200190f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16609557600060d4565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b939250505056fea2646970667358221220c17d4acbf77803b24a3db1d6c667fe273e060c7218b69628e5297bbff5867c4064736f6c634300060c0033a2646970667358221220b162c362bafa63a807d6591915baa4a74f9a6b73b796cf94a75678d5175153f164736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100435760003560e01c8063076c37b21461004f578063481286e61461008157806356299481146100cd57806366cfa0571461010c5761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b5061007f6004803603604081101561007257600080fd5b50803590602001356101cb565b005b34801561008d57600080fd5b506100b1600480360360408110156100a457600080fd5b50803590602001356101fd565b604080516001600160a01b039092168252519081900360200190f35b3480156100d957600080fd5b506100b1600480360360608110156100f057600080fd5b50803590602081013590604001356001600160a01b0316610210565b34801561011857600080fd5b5061007f6004803603606081101561012f57600080fd5b81359160208101359181019060608101604082013564010000000081111561015657600080fd5b82018360208201111561016857600080fd5b8035906020019184600183028401116401000000008311171561018a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610225945050505050565b6101f88282604051806020016101e0906103ab565b601f1982820381018352601f90910116604052610236565b505050565b60006102098383610347565b9392505050565b600061021d848484610350565b949350505050565b610230838383610236565b50505050565b6000808447101561028e576040805162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b82516102e1576040805162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015290519081900360640190fd5b8383516020850187f590506001600160a01b03811661021d576040805162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015290519081900360640190fd5b60006102098383305b604080516001600160f81b031960208083019190915260609390931b6bffffffffffffffffffffffff191660218201526035810194909452605580850193909352805180850390930183526075909301909252805191012090565b610131806103b98339019056fe608060405234801561001057600080fd5b50610111806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b605660048036036040811015604157600080fd5b50803590602001356001600160a01b03166068565b60408051918252519081900360200190f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16609557600060d4565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b939250505056fea2646970667358221220c17d4acbf77803b24a3db1d6c667fe273e060c7218b69628e5297bbff5867c4064736f6c634300060c0033a2646970667358221220b162c362bafa63a807d6591915baa4a74f9a6b73b796cf94a75678d5175153f164736f6c634300060c0033"}, "abi": [{"type": "function", "name": "computeAddress", "stateMutability": "view", "inputs": [{"name": "salt", "type": "bytes32", "internalType": "bytes32"}, {"name": "codeHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "computeAddressWithDeployer", "stateMutability": "pure", "inputs": [{"name": "salt", "type": "bytes32", "internalType": "bytes32"}, {"name": "codeHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "deployer", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "deploy", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}, {"name": "code", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "deployERC1820Implementer", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ECDSAMock": {"contractName": "ECDSAMock", "sourceId": "mocks/ECDSAMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061040d806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806319045a251461003b578063918a15cf14610104575b600080fd5b6100e86004803603604081101561005157600080fd5b8135919081019060408101602082013564010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610133945050505050565b604080516001600160a01b039092168252519081900360200190f35b6101216004803603602081101561011a57600080fd5b5035610146565b60408051918252519081900360200190f35b600061013f8383610157565b9392505050565b600061015182610342565b92915050565b600081516041146101af576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156102205760405162461bcd60e51b81526004018080602001828103825260228152602001806103946022913960400191505060405180910390fd5b8060ff16601b1415801561023857508060ff16601c14155b156102745760405162461bcd60e51b81526004018080602001828103825260228152602001806103b66022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156102d0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610338576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c90910190915281519101209056fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c7565a2646970667358221220fb75ba98ceb33958c99f7166a88038fd77586885a35a44feeb2ef89f824d8fe264736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c806319045a251461003b578063918a15cf14610104575b600080fd5b6100e86004803603604081101561005157600080fd5b8135919081019060408101602082013564010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610133945050505050565b604080516001600160a01b039092168252519081900360200190f35b6101216004803603602081101561011a57600080fd5b5035610146565b60408051918252519081900360200190f35b600061013f8383610157565b9392505050565b600061015182610342565b92915050565b600081516041146101af576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156102205760405162461bcd60e51b81526004018080602001828103825260228152602001806103946022913960400191505060405180910390fd5b8060ff16601b1415801561023857508060ff16601c14155b156102745760405162461bcd60e51b81526004018080602001828103825260228152602001806103b66022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156102d0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610338576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c90910190915281519101209056fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c7565a2646970667358221220fb75ba98ceb33958c99f7166a88038fd77586885a35a44feeb2ef89f824d8fe264736f6c634300060c0033"}, "abi": [{"type": "function", "name": "recover", "stateMutability": "pure", "inputs": [{"name": "hash", "type": "bytes32", "internalType": "bytes32"}, {"name": "signature", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "toEthSignedMessageHash", "stateMutability": "pure", "inputs": [{"name": "hash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC1155BurnableMock": {"contractName": "ERC1155BurnableMock", "sourceId": "mocks/ERC1155BurnableMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b506040516200217f3803806200217f833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052508291506200010290506301ffc9a760e01b62000139565b6200010d81620001be565b6200011f636cdb3d1360e11b62000139565b620001316303a24d0760e21b62000139565b505062000273565b6001600160e01b0319808216141562000199576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001d3906003906020840190620001d7565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200021a57805160ff19168380011785556200024a565b828001600101855582156200024a579182015b828111156200024a5782518255916020019190600101906200022d565b50620002589291506200025c565b5090565b5b808211156200025857600081556001016200025d565b611efc80620002836000396000f3fe608060405234801561001057600080fd5b50600436106100a85760003560e01c80636b20c454116100715780636b20c454146104ee578063731133e914610621578063a22cb465146106e1578063e985e9c51461070f578063f242432a1461073d578063f5298aca14610806576100a8565b8062fdd58e146100ad57806301ffc9a7146100eb5780630e89341c146101265780632eb2c2d6146101b85780634e1273f41461037b575b600080fd5b6100d9600480360360408110156100c357600080fd5b506001600160a01b038135169060200135610838565b60408051918252519081900360200190f35b6101126004803603602081101561010157600080fd5b50356001600160e01b0319166108a7565b604080519115158252519081900360200190f35b6101436004803603602081101561013c57600080fd5b50356108c6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017d578181015183820152602001610165565b50505050905090810190601f1680156101aa5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610379600480360360a08110156101ce57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561020157600080fd5b82018360208201111561021357600080fd5b803590602001918460208302840111600160201b8311171561023457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561028357600080fd5b82018360208201111561029557600080fd5b803590602001918460208302840111600160201b831117156102b657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561030557600080fd5b82018360208201111561031757600080fd5b803590602001918460018302840111600160201b8311171561033857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061095e945050505050565b005b61049e6004803603604081101561039157600080fd5b810190602081018135600160201b8111156103ab57600080fd5b8201836020820111156103bd57600080fd5b803590602001918460208302840111600160201b831117156103de57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561042d57600080fd5b82018360208201111561043f57600080fd5b803590602001918460208302840111600160201b8311171561046057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c5c945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104da5781810151838201526020016104c2565b505050509050019250505060405180910390f35b6103796004803603606081101561050457600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561052e57600080fd5b82018360208201111561054057600080fd5b803590602001918460208302840111600160201b8311171561056157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105b057600080fd5b8201836020820111156105c257600080fd5b803590602001918460208302840111600160201b831117156105e357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610dda945050505050565b6103796004803603608081101561063757600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561066d57600080fd5b82018360208201111561067f57600080fd5b803590602001918460018302840111600160201b831117156106a057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610e53945050505050565b610379600480360360408110156106f757600080fd5b506001600160a01b0381351690602001351515610e65565b6101126004803603604081101561072557600080fd5b506001600160a01b0381358116916020013516610f54565b610379600480360360a081101561075357600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561079257600080fd5b8201836020820111156107a457600080fd5b803590602001918460018302840111600160201b831117156107c557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f82945050505050565b6103796004803603606081101561081c57600080fd5b506001600160a01b03813516906020810135906040013561114d565b60006001600160a01b03831661087f5760405162461bcd60e51b815260040180806020018281038252602b815260200180611cdf602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109525780601f1061092757610100808354040283529160200191610952565b820191906000526020600020905b81548152906001019060200180831161093557829003601f168201915b50505050509050919050565b815183511461099e5760405162461bcd60e51b8152600401808060200182810382526028815260200180611e7e6028913960400191505060405180910390fd5b6001600160a01b0384166109e35760405162461bcd60e51b8152600401808060200182810382526025815260200180611d886025913960400191505060405180910390fd5b6109eb6111c1565b6001600160a01b0316856001600160a01b03161480610a165750610a1685610a116111c1565b610f54565b610a515760405162461bcd60e51b8152600401808060200182810382526032815260200180611dad6032913960400191505060405180910390fd5b6000610a5b6111c1565b9050610a6b818787878787610c54565b60005b8451811015610b6c576000858281518110610a8557fe5b602002602001015190506000858381518110610a9d57fe5b60200260200101519050610b0a816040518060600160405280602a8152602001611e02602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546111c69092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610b41908261125d565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610a6e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610bf2578181015183820152602001610bda565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610c31578181015183820152602001610c19565b5050505090500194505050505060405180910390a4610c548187878787876112be565b505050505050565b60608151835114610c9e5760405162461bcd60e51b8152600401808060200182810382526029815260200180611e556029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610cb857600080fd5b50604051908082528060200260200182016040528015610ce2578160200160208202803683370190505b50905060005b8451811015610dd25760006001600160a01b0316858281518110610d0857fe5b60200260200101516001600160a01b03161415610d565760405162461bcd60e51b8152600401808060200182810382526031815260200180611d0a6031913960400191505060405180910390fd5b60016000858381518110610d6657fe5b602002602001015181526020019081526020016000206000868381518110610d8a57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054828281518110610dbf57fe5b6020908102919091010152600101610ce8565b509392505050565b610de26111c1565b6001600160a01b0316836001600160a01b03161480610e085750610e0883610a116111c1565b610e435760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b610e4e83838361153d565b505050565b610e5f848484846117ab565b50505050565b816001600160a01b0316610e776111c1565b6001600160a01b03161415610ebd5760405162461bcd60e51b8152600401808060200182810382526029815260200180611e2c6029913960400191505060405180910390fd5b8060026000610eca6111c1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f0e6111c1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610fc75760405162461bcd60e51b8152600401808060200182810382526025815260200180611d886025913960400191505060405180910390fd5b610fcf6111c1565b6001600160a01b0316856001600160a01b03161480610ff55750610ff585610a116111c1565b6110305760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b600061103a6111c1565b905061105a81878761104b886118b3565b611054886118b3565b87610c54565b6110a1836040518060600160405280602a8152602001611e02602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906111c6565b60008581526001602090815260408083206001600160a01b038b811685529252808320939093558716815220546110d8908461125d565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610c548187878787876118f7565b6111556111c1565b6001600160a01b0316836001600160a01b0316148061117b575061117b83610a116111c1565b6111b65760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b610e4e838383611a68565b335b90565b600081848411156112555760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561121a578181015183820152602001611202565b50505050905090810190601f1680156112475780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156112b7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6112d0846001600160a01b0316611b9b565b15610c5457836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561135e578181015183820152602001611346565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561139d578181015183820152602001611385565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156113d95781810151838201526020016113c1565b50505050905090810190601f1680156114065780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561142b57600080fd5b505af192505050801561145057506040513d602081101561144b57600080fd5b505160015b6114e55761145c611bdd565b8061146757506114ae565b60405162461bcd60e51b815260206004820181815283516024840152835184939192839260440191908501908083836000831561121a578181015183820152602001611202565b60405162461bcd60e51b8152600401808060200182810382526034815260200180611c836034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146115345760405162461bcd60e51b8152600401808060200182810382526028815260200180611cb76028913960400191505060405180910390fd5b50505050505050565b6001600160a01b0383166115825760405162461bcd60e51b8152600401808060200182810382526023815260200180611ddf6023913960400191505060405180910390fd5b80518251146115c25760405162461bcd60e51b8152600401808060200182810382526028815260200180611e7e6028913960400191505060405180910390fd5b60006115cc6111c1565b90506115ec81856000868660405180602001604052806000815250610c54565b60005b83518110156116ca5761168183828151811061160757fe5b6020026020010151604051806060016040528060248152602001611d3b602491396001600088868151811061163857fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546111c69092919063ffffffff16565b6001600086848151811061169157fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a1682529092529020556001016115ef565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611751578181015183820152602001611739565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611790578181015183820152602001611778565b5050505090500194505050505060405180910390a450505050565b6001600160a01b0384166117f05760405162461bcd60e51b8152600401808060200182810382526021815260200180611ea66021913960400191505060405180910390fd5b60006117fa6111c1565b905061180c8160008761104b886118b3565b60008481526001602090815260408083206001600160a01b0389168452909152902054611839908461125d565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46118ac816000878787876118f7565b5050505050565b6040805160018082528183019092526060918291906020808301908036833701905050905082816000815181106118e657fe5b602090810291909101015292915050565b611909846001600160a01b0316611b9b565b15610c5457836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611998578181015183820152602001611980565b50505050905090810190601f1680156119c55780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156119e857600080fd5b505af1925050508015611a0d57506040513d6020811015611a0857600080fd5b505160015b611a195761145c611bdd565b6001600160e01b0319811663f23a6e6160e01b146115345760405162461bcd60e51b8152600401808060200182810382526028815260200180611cb76028913960400191505060405180910390fd5b6001600160a01b038316611aad5760405162461bcd60e51b8152600401808060200182810382526023815260200180611ddf6023913960400191505060405180910390fd5b6000611ab76111c1565b9050611ae781856000611ac9876118b3565b611ad2876118b3565b60405180602001604052806000815250610c54565b611b2e82604051806060016040528060248152602001611d3b6024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906111c6565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611bcf57508115155b949350505050565b60e01c90565b600060443d1015611bed576111c3565b600481823e6308c379a0611c018251611bd7565b14611c0b576111c3565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715611c3b57505050506111c3565b82840192508251915080821115611c5557505050506111c3565b503d83016020828401011115611c6d575050506111c3565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a26469706673582212208a561d760d18db91fcfe39745b12b92f71ad8985c3dc14343cf5d612a8d21d6e64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100a85760003560e01c80636b20c454116100715780636b20c454146104ee578063731133e914610621578063a22cb465146106e1578063e985e9c51461070f578063f242432a1461073d578063f5298aca14610806576100a8565b8062fdd58e146100ad57806301ffc9a7146100eb5780630e89341c146101265780632eb2c2d6146101b85780634e1273f41461037b575b600080fd5b6100d9600480360360408110156100c357600080fd5b506001600160a01b038135169060200135610838565b60408051918252519081900360200190f35b6101126004803603602081101561010157600080fd5b50356001600160e01b0319166108a7565b604080519115158252519081900360200190f35b6101436004803603602081101561013c57600080fd5b50356108c6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017d578181015183820152602001610165565b50505050905090810190601f1680156101aa5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610379600480360360a08110156101ce57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561020157600080fd5b82018360208201111561021357600080fd5b803590602001918460208302840111600160201b8311171561023457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561028357600080fd5b82018360208201111561029557600080fd5b803590602001918460208302840111600160201b831117156102b657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561030557600080fd5b82018360208201111561031757600080fd5b803590602001918460018302840111600160201b8311171561033857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061095e945050505050565b005b61049e6004803603604081101561039157600080fd5b810190602081018135600160201b8111156103ab57600080fd5b8201836020820111156103bd57600080fd5b803590602001918460208302840111600160201b831117156103de57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561042d57600080fd5b82018360208201111561043f57600080fd5b803590602001918460208302840111600160201b8311171561046057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c5c945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104da5781810151838201526020016104c2565b505050509050019250505060405180910390f35b6103796004803603606081101561050457600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561052e57600080fd5b82018360208201111561054057600080fd5b803590602001918460208302840111600160201b8311171561056157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105b057600080fd5b8201836020820111156105c257600080fd5b803590602001918460208302840111600160201b831117156105e357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610dda945050505050565b6103796004803603608081101561063757600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561066d57600080fd5b82018360208201111561067f57600080fd5b803590602001918460018302840111600160201b831117156106a057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610e53945050505050565b610379600480360360408110156106f757600080fd5b506001600160a01b0381351690602001351515610e65565b6101126004803603604081101561072557600080fd5b506001600160a01b0381358116916020013516610f54565b610379600480360360a081101561075357600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561079257600080fd5b8201836020820111156107a457600080fd5b803590602001918460018302840111600160201b831117156107c557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f82945050505050565b6103796004803603606081101561081c57600080fd5b506001600160a01b03813516906020810135906040013561114d565b60006001600160a01b03831661087f5760405162461bcd60e51b815260040180806020018281038252602b815260200180611cdf602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109525780601f1061092757610100808354040283529160200191610952565b820191906000526020600020905b81548152906001019060200180831161093557829003601f168201915b50505050509050919050565b815183511461099e5760405162461bcd60e51b8152600401808060200182810382526028815260200180611e7e6028913960400191505060405180910390fd5b6001600160a01b0384166109e35760405162461bcd60e51b8152600401808060200182810382526025815260200180611d886025913960400191505060405180910390fd5b6109eb6111c1565b6001600160a01b0316856001600160a01b03161480610a165750610a1685610a116111c1565b610f54565b610a515760405162461bcd60e51b8152600401808060200182810382526032815260200180611dad6032913960400191505060405180910390fd5b6000610a5b6111c1565b9050610a6b818787878787610c54565b60005b8451811015610b6c576000858281518110610a8557fe5b602002602001015190506000858381518110610a9d57fe5b60200260200101519050610b0a816040518060600160405280602a8152602001611e02602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546111c69092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610b41908261125d565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610a6e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610bf2578181015183820152602001610bda565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610c31578181015183820152602001610c19565b5050505090500194505050505060405180910390a4610c548187878787876112be565b505050505050565b60608151835114610c9e5760405162461bcd60e51b8152600401808060200182810382526029815260200180611e556029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610cb857600080fd5b50604051908082528060200260200182016040528015610ce2578160200160208202803683370190505b50905060005b8451811015610dd25760006001600160a01b0316858281518110610d0857fe5b60200260200101516001600160a01b03161415610d565760405162461bcd60e51b8152600401808060200182810382526031815260200180611d0a6031913960400191505060405180910390fd5b60016000858381518110610d6657fe5b602002602001015181526020019081526020016000206000868381518110610d8a57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054828281518110610dbf57fe5b6020908102919091010152600101610ce8565b509392505050565b610de26111c1565b6001600160a01b0316836001600160a01b03161480610e085750610e0883610a116111c1565b610e435760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b610e4e83838361153d565b505050565b610e5f848484846117ab565b50505050565b816001600160a01b0316610e776111c1565b6001600160a01b03161415610ebd5760405162461bcd60e51b8152600401808060200182810382526029815260200180611e2c6029913960400191505060405180910390fd5b8060026000610eca6111c1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f0e6111c1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610fc75760405162461bcd60e51b8152600401808060200182810382526025815260200180611d886025913960400191505060405180910390fd5b610fcf6111c1565b6001600160a01b0316856001600160a01b03161480610ff55750610ff585610a116111c1565b6110305760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b600061103a6111c1565b905061105a81878761104b886118b3565b611054886118b3565b87610c54565b6110a1836040518060600160405280602a8152602001611e02602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906111c6565b60008581526001602090815260408083206001600160a01b038b811685529252808320939093558716815220546110d8908461125d565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610c548187878787876118f7565b6111556111c1565b6001600160a01b0316836001600160a01b0316148061117b575061117b83610a116111c1565b6111b65760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b610e4e838383611a68565b335b90565b600081848411156112555760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561121a578181015183820152602001611202565b50505050905090810190601f1680156112475780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156112b7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6112d0846001600160a01b0316611b9b565b15610c5457836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561135e578181015183820152602001611346565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561139d578181015183820152602001611385565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156113d95781810151838201526020016113c1565b50505050905090810190601f1680156114065780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561142b57600080fd5b505af192505050801561145057506040513d602081101561144b57600080fd5b505160015b6114e55761145c611bdd565b8061146757506114ae565b60405162461bcd60e51b815260206004820181815283516024840152835184939192839260440191908501908083836000831561121a578181015183820152602001611202565b60405162461bcd60e51b8152600401808060200182810382526034815260200180611c836034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146115345760405162461bcd60e51b8152600401808060200182810382526028815260200180611cb76028913960400191505060405180910390fd5b50505050505050565b6001600160a01b0383166115825760405162461bcd60e51b8152600401808060200182810382526023815260200180611ddf6023913960400191505060405180910390fd5b80518251146115c25760405162461bcd60e51b8152600401808060200182810382526028815260200180611e7e6028913960400191505060405180910390fd5b60006115cc6111c1565b90506115ec81856000868660405180602001604052806000815250610c54565b60005b83518110156116ca5761168183828151811061160757fe5b6020026020010151604051806060016040528060248152602001611d3b602491396001600088868151811061163857fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546111c69092919063ffffffff16565b6001600086848151811061169157fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a1682529092529020556001016115ef565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611751578181015183820152602001611739565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611790578181015183820152602001611778565b5050505090500194505050505060405180910390a450505050565b6001600160a01b0384166117f05760405162461bcd60e51b8152600401808060200182810382526021815260200180611ea66021913960400191505060405180910390fd5b60006117fa6111c1565b905061180c8160008761104b886118b3565b60008481526001602090815260408083206001600160a01b0389168452909152902054611839908461125d565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46118ac816000878787876118f7565b5050505050565b6040805160018082528183019092526060918291906020808301908036833701905050905082816000815181106118e657fe5b602090810291909101015292915050565b611909846001600160a01b0316611b9b565b15610c5457836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611998578181015183820152602001611980565b50505050905090810190601f1680156119c55780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156119e857600080fd5b505af1925050508015611a0d57506040513d6020811015611a0857600080fd5b505160015b611a195761145c611bdd565b6001600160e01b0319811663f23a6e6160e01b146115345760405162461bcd60e51b8152600401808060200182810382526028815260200180611cb76028913960400191505060405180910390fd5b6001600160a01b038316611aad5760405162461bcd60e51b8152600401808060200182810382526023815260200180611ddf6023913960400191505060405180910390fd5b6000611ab76111c1565b9050611ae781856000611ac9876118b3565b611ad2876118b3565b60405180602001604052806000815250610c54565b611b2e82604051806060016040528060248152602001611d3b6024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906111c6565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611bcf57508115155b949350505050565b60e01c90565b600060443d1015611bed576111c3565b600481823e6308c379a0611c018251611bd7565b14611c0b576111c3565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715611c3b57505050506111c3565b82840192508251915080821115611c5557505050506111c3565b503d83016020828401011115611c6d575050506111c3565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a26469706673582212208a561d760d18db91fcfe39745b12b92f71ad8985c3dc14343cf5d612a8d21d6e64736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "uri", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnBatch", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "ERC1155Mock": {"contractName": "ERC1155Mock", "sourceId": "mocks/ERC1155Mock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b506040516200263f3803806200263f833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052508291506200010290506301ffc9a760e01b62000139565b6200010d81620001be565b6200011f636cdb3d1360e11b62000139565b620001316303a24d0760e21b62000139565b505062000273565b6001600160e01b0319808216141562000199576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001d3906003906020840190620001d7565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200021a57805160ff19168380011785556200024a565b828001600101855582156200024a579182015b828111156200024a5782518255916020019190600101906200022d565b50620002589291506200025c565b5090565b5b808211156200025857600081556001016200025d565b6123bc80620002836000396000f3fe608060405234801561001057600080fd5b50600436106100ce5760003560e01c80634e1273f41161008c578063a22cb46511610066578063a22cb46514610963578063e985e9c514610991578063f242432a146109bf578063f5298aca14610a88576100ce565b80634e1273f4146105fd5780636b20c45414610770578063731133e9146108a3576100ce565b8062fdd58e146100d357806301ffc9a71461011157806302fe53051461014c5780630e89341c146101f25780631f7fdffa146102845780632eb2c2d61461043c575b600080fd5b6100ff600480360360408110156100e957600080fd5b506001600160a01b038135169060200135610aba565b60408051918252519081900360200190f35b6101386004803603602081101561012757600080fd5b50356001600160e01b031916610b29565b604080519115158252519081900360200190f35b6101f06004803603602081101561016257600080fd5b810190602081018135600160201b81111561017c57600080fd5b82018360208201111561018e57600080fd5b803590602001918460018302840111600160201b831117156101af57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b48945050505050565b005b61020f6004803603602081101561020857600080fd5b5035610b54565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610249578181015183820152602001610231565b50505050905090810190601f1680156102765780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101f06004803603608081101561029a57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102c457600080fd5b8201836020820111156102d657600080fd5b803590602001918460208302840111600160201b831117156102f757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561034657600080fd5b82018360208201111561035857600080fd5b803590602001918460208302840111600160201b8311171561037957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103c857600080fd5b8201836020820111156103da57600080fd5b803590602001918460018302840111600160201b831117156103fb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bec945050505050565b6101f0600480360360a081101561045257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561048557600080fd5b82018360208201111561049757600080fd5b803590602001918460208302840111600160201b831117156104b857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561050757600080fd5b82018360208201111561051957600080fd5b803590602001918460208302840111600160201b8311171561053a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561058957600080fd5b82018360208201111561059b57600080fd5b803590602001918460018302840111600160201b831117156105bc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bfe945050505050565b6107206004803603604081101561061357600080fd5b810190602081018135600160201b81111561062d57600080fd5b82018360208201111561063f57600080fd5b803590602001918460208302840111600160201b8311171561066057600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106af57600080fd5b8201836020820111156106c157600080fd5b803590602001918460208302840111600160201b831117156106e257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610efc945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561075c578181015183820152602001610744565b505050509050019250505060405180910390f35b6101f06004803603606081101561078657600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156107b057600080fd5b8201836020820111156107c257600080fd5b803590602001918460208302840111600160201b831117156107e357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561083257600080fd5b82018360208201111561084457600080fd5b803590602001918460208302840111600160201b8311171561086557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061107a945050505050565b6101f0600480360360808110156108b957600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b8111156108ef57600080fd5b82018360208201111561090157600080fd5b803590602001918460018302840111600160201b8311171561092257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061108a945050505050565b6101f06004803603604081101561097957600080fd5b506001600160a01b0381351690602001351515611096565b610138600480360360408110156109a757600080fd5b506001600160a01b0381358116916020013516611185565b6101f0600480360360a08110156109d557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a1457600080fd5b820183602082011115610a2657600080fd5b803590602001918460018302840111600160201b83111715610a4757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506111b3945050505050565b6101f060048036036060811015610a9e57600080fd5b506001600160a01b03813516906020810135906040013561137e565b60006001600160a01b038316610b015760405162461bcd60e51b815260040180806020018281038252602b81526020018061219f602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b610b5181611389565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610be05780601f10610bb557610100808354040283529160200191610be0565b820191906000526020600020905b815481529060010190602001808311610bc357829003601f168201915b50505050509050919050565b610bf8848484846113a0565b50505050565b8151835114610c3e5760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b6001600160a01b038416610c835760405162461bcd60e51b81526004018080602001828103825260258152602001806122486025913960400191505060405180910390fd5b610c8b6115f5565b6001600160a01b0316856001600160a01b03161480610cb65750610cb685610cb16115f5565b611185565b610cf15760405162461bcd60e51b815260040180806020018281038252603281526020018061226d6032913960400191505060405180910390fd5b6000610cfb6115f5565b9050610d0b818787878787610ef4565b60005b8451811015610e0c576000858281518110610d2557fe5b602002602001015190506000858381518110610d3d57fe5b60200260200101519050610daa816040518060600160405280602a81526020016122c2602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546115fa9092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610de19082611691565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610d0e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610e92578181015183820152602001610e7a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610ed1578181015183820152602001610eb9565b5050505090500194505050505060405180910390a4610ef48187878787876116f2565b505050505050565b60608151835114610f3e5760405162461bcd60e51b81526004018080602001828103825260298152602001806123156029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610f5857600080fd5b50604051908082528060200260200182016040528015610f82578160200160208202803683370190505b50905060005b84518110156110725760006001600160a01b0316858281518110610fa857fe5b60200260200101516001600160a01b03161415610ff65760405162461bcd60e51b81526004018080602001828103825260318152602001806121ca6031913960400191505060405180910390fd5b6001600085838151811061100657fe5b60200260200101518152602001908152602001600020600086838151811061102a57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061105f57fe5b6020908102919091010152600101610f88565b509392505050565b611085838383611971565b505050565b610bf884848484611bdf565b816001600160a01b03166110a86115f5565b6001600160a01b031614156110ee5760405162461bcd60e51b81526004018080602001828103825260298152602001806122ec6029913960400191505060405180910390fd5b80600260006110fb6115f5565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561113f6115f5565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166111f85760405162461bcd60e51b81526004018080602001828103825260258152602001806122486025913960400191505060405180910390fd5b6112006115f5565b6001600160a01b0316856001600160a01b03161480611226575061122685610cb16115f5565b6112615760405162461bcd60e51b815260040180806020018281038252602981526020018061221f6029913960400191505060405180910390fd5b600061126b6115f5565b905061128b81878761127c88611ce0565b61128588611ce0565b87610ef4565b6112d2836040518060600160405280602a81526020016122c2602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906115fa565b60008581526001602090815260408083206001600160a01b038b811685529252808320939093558716815220546113099084611691565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610ef4818787878787611d24565b611085838383611e95565b805161139c906003906020840190612004565b5050565b6001600160a01b0384166113e55760405162461bcd60e51b81526004018080602001828103825260218152602001806123666021913960400191505060405180910390fd5b81518351146114255760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b600061142f6115f5565b905061144081600087878787610ef4565b60005b8451811015611504576114bb6001600087848151811061145f57fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020548583815181106114a557fe5b602002602001015161169190919063ffffffff16565b600160008784815181106114cb57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b168252909252902055600101611443565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561158b578181015183820152602001611573565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156115ca5781810151838201526020016115b2565b5050505090500194505050505060405180910390a46115ee816000878787876116f2565b5050505050565b335b90565b600081848411156116895760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561164e578181015183820152602001611636565b50505050905090810190601f16801561167b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156116eb576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611704846001600160a01b0316611fc8565b15610ef457836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561179257818101518382015260200161177a565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156117d15781810151838201526020016117b9565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561180d5781810151838201526020016117f5565b50505050905090810190601f16801561183a5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561185f57600080fd5b505af192505050801561188457506040513d602081101561187f57600080fd5b505160015b6119195761189061209d565b8061189b57506118e2565b60405162461bcd60e51b815260206004820181815283516024840152835184939192839260440191908501908083836000831561164e578181015183820152602001611636565b60405162461bcd60e51b81526004018080602001828103825260348152602001806121436034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146119685760405162461bcd60e51b81526004018080602001828103825260288152602001806121776028913960400191505060405180910390fd5b50505050505050565b6001600160a01b0383166119b65760405162461bcd60e51b815260040180806020018281038252602381526020018061229f6023913960400191505060405180910390fd5b80518251146119f65760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b6000611a006115f5565b9050611a2081856000868660405180602001604052806000815250610ef4565b60005b8351811015611afe57611ab5838281518110611a3b57fe5b60200260200101516040518060600160405280602481526020016121fb6024913960016000888681518110611a6c57fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546115fa9092919063ffffffff16565b60016000868481518110611ac557fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a168252909252902055600101611a23565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611b85578181015183820152602001611b6d565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611bc4578181015183820152602001611bac565b5050505090500194505050505060405180910390a450505050565b6001600160a01b038416611c245760405162461bcd60e51b81526004018080602001828103825260218152602001806123666021913960400191505060405180910390fd5b6000611c2e6115f5565b9050611c408160008761127c88611ce0565b60008481526001602090815260408083206001600160a01b0389168452909152902054611c6d9084611691565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46115ee81600087878787611d24565b604080516001808252818301909252606091829190602080830190803683370190505090508281600081518110611d1357fe5b602090810291909101015292915050565b611d36846001600160a01b0316611fc8565b15610ef457836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611dc5578181015183820152602001611dad565b50505050905090810190601f168015611df25780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015611e1557600080fd5b505af1925050508015611e3a57506040513d6020811015611e3557600080fd5b505160015b611e465761189061209d565b6001600160e01b0319811663f23a6e6160e01b146119685760405162461bcd60e51b81526004018080602001828103825260288152602001806121776028913960400191505060405180910390fd5b6001600160a01b038316611eda5760405162461bcd60e51b815260040180806020018281038252602381526020018061229f6023913960400191505060405180910390fd5b6000611ee46115f5565b9050611f1481856000611ef687611ce0565b611eff87611ce0565b60405180602001604052806000815250610ef4565b611f5b826040518060600160405280602481526020016121fb6024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906115fa565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611ffc57508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061204557805160ff1916838001178555612072565b82800160010185558215612072579182015b82811115612072578251825591602001919060010190612057565b5061207e929150612082565b5090565b5b8082111561207e5760008155600101612083565b60e01c90565b600060443d10156120ad576115f7565b600481823e6308c379a06120c18251612097565b146120cb576115f7565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156120fb57505050506115f7565b8284019250825191508082111561211557505050506115f7565b503d8301602082840101111561212d575050506115f7565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a26469706673582212208c3986276ccf8d4739635935edbcdafe1bc503a16ffb8377948da46c6fc6b29064736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100ce5760003560e01c80634e1273f41161008c578063a22cb46511610066578063a22cb46514610963578063e985e9c514610991578063f242432a146109bf578063f5298aca14610a88576100ce565b80634e1273f4146105fd5780636b20c45414610770578063731133e9146108a3576100ce565b8062fdd58e146100d357806301ffc9a71461011157806302fe53051461014c5780630e89341c146101f25780631f7fdffa146102845780632eb2c2d61461043c575b600080fd5b6100ff600480360360408110156100e957600080fd5b506001600160a01b038135169060200135610aba565b60408051918252519081900360200190f35b6101386004803603602081101561012757600080fd5b50356001600160e01b031916610b29565b604080519115158252519081900360200190f35b6101f06004803603602081101561016257600080fd5b810190602081018135600160201b81111561017c57600080fd5b82018360208201111561018e57600080fd5b803590602001918460018302840111600160201b831117156101af57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b48945050505050565b005b61020f6004803603602081101561020857600080fd5b5035610b54565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610249578181015183820152602001610231565b50505050905090810190601f1680156102765780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101f06004803603608081101561029a57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102c457600080fd5b8201836020820111156102d657600080fd5b803590602001918460208302840111600160201b831117156102f757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561034657600080fd5b82018360208201111561035857600080fd5b803590602001918460208302840111600160201b8311171561037957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103c857600080fd5b8201836020820111156103da57600080fd5b803590602001918460018302840111600160201b831117156103fb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bec945050505050565b6101f0600480360360a081101561045257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561048557600080fd5b82018360208201111561049757600080fd5b803590602001918460208302840111600160201b831117156104b857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561050757600080fd5b82018360208201111561051957600080fd5b803590602001918460208302840111600160201b8311171561053a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561058957600080fd5b82018360208201111561059b57600080fd5b803590602001918460018302840111600160201b831117156105bc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bfe945050505050565b6107206004803603604081101561061357600080fd5b810190602081018135600160201b81111561062d57600080fd5b82018360208201111561063f57600080fd5b803590602001918460208302840111600160201b8311171561066057600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106af57600080fd5b8201836020820111156106c157600080fd5b803590602001918460208302840111600160201b831117156106e257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610efc945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561075c578181015183820152602001610744565b505050509050019250505060405180910390f35b6101f06004803603606081101561078657600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156107b057600080fd5b8201836020820111156107c257600080fd5b803590602001918460208302840111600160201b831117156107e357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561083257600080fd5b82018360208201111561084457600080fd5b803590602001918460208302840111600160201b8311171561086557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061107a945050505050565b6101f0600480360360808110156108b957600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b8111156108ef57600080fd5b82018360208201111561090157600080fd5b803590602001918460018302840111600160201b8311171561092257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061108a945050505050565b6101f06004803603604081101561097957600080fd5b506001600160a01b0381351690602001351515611096565b610138600480360360408110156109a757600080fd5b506001600160a01b0381358116916020013516611185565b6101f0600480360360a08110156109d557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a1457600080fd5b820183602082011115610a2657600080fd5b803590602001918460018302840111600160201b83111715610a4757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506111b3945050505050565b6101f060048036036060811015610a9e57600080fd5b506001600160a01b03813516906020810135906040013561137e565b60006001600160a01b038316610b015760405162461bcd60e51b815260040180806020018281038252602b81526020018061219f602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b610b5181611389565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610be05780601f10610bb557610100808354040283529160200191610be0565b820191906000526020600020905b815481529060010190602001808311610bc357829003601f168201915b50505050509050919050565b610bf8848484846113a0565b50505050565b8151835114610c3e5760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b6001600160a01b038416610c835760405162461bcd60e51b81526004018080602001828103825260258152602001806122486025913960400191505060405180910390fd5b610c8b6115f5565b6001600160a01b0316856001600160a01b03161480610cb65750610cb685610cb16115f5565b611185565b610cf15760405162461bcd60e51b815260040180806020018281038252603281526020018061226d6032913960400191505060405180910390fd5b6000610cfb6115f5565b9050610d0b818787878787610ef4565b60005b8451811015610e0c576000858281518110610d2557fe5b602002602001015190506000858381518110610d3d57fe5b60200260200101519050610daa816040518060600160405280602a81526020016122c2602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546115fa9092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610de19082611691565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610d0e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610e92578181015183820152602001610e7a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610ed1578181015183820152602001610eb9565b5050505090500194505050505060405180910390a4610ef48187878787876116f2565b505050505050565b60608151835114610f3e5760405162461bcd60e51b81526004018080602001828103825260298152602001806123156029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610f5857600080fd5b50604051908082528060200260200182016040528015610f82578160200160208202803683370190505b50905060005b84518110156110725760006001600160a01b0316858281518110610fa857fe5b60200260200101516001600160a01b03161415610ff65760405162461bcd60e51b81526004018080602001828103825260318152602001806121ca6031913960400191505060405180910390fd5b6001600085838151811061100657fe5b60200260200101518152602001908152602001600020600086838151811061102a57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061105f57fe5b6020908102919091010152600101610f88565b509392505050565b611085838383611971565b505050565b610bf884848484611bdf565b816001600160a01b03166110a86115f5565b6001600160a01b031614156110ee5760405162461bcd60e51b81526004018080602001828103825260298152602001806122ec6029913960400191505060405180910390fd5b80600260006110fb6115f5565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561113f6115f5565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166111f85760405162461bcd60e51b81526004018080602001828103825260258152602001806122486025913960400191505060405180910390fd5b6112006115f5565b6001600160a01b0316856001600160a01b03161480611226575061122685610cb16115f5565b6112615760405162461bcd60e51b815260040180806020018281038252602981526020018061221f6029913960400191505060405180910390fd5b600061126b6115f5565b905061128b81878761127c88611ce0565b61128588611ce0565b87610ef4565b6112d2836040518060600160405280602a81526020016122c2602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906115fa565b60008581526001602090815260408083206001600160a01b038b811685529252808320939093558716815220546113099084611691565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610ef4818787878787611d24565b611085838383611e95565b805161139c906003906020840190612004565b5050565b6001600160a01b0384166113e55760405162461bcd60e51b81526004018080602001828103825260218152602001806123666021913960400191505060405180910390fd5b81518351146114255760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b600061142f6115f5565b905061144081600087878787610ef4565b60005b8451811015611504576114bb6001600087848151811061145f57fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020548583815181106114a557fe5b602002602001015161169190919063ffffffff16565b600160008784815181106114cb57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b168252909252902055600101611443565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561158b578181015183820152602001611573565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156115ca5781810151838201526020016115b2565b5050505090500194505050505060405180910390a46115ee816000878787876116f2565b5050505050565b335b90565b600081848411156116895760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561164e578181015183820152602001611636565b50505050905090810190601f16801561167b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156116eb576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611704846001600160a01b0316611fc8565b15610ef457836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561179257818101518382015260200161177a565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156117d15781810151838201526020016117b9565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561180d5781810151838201526020016117f5565b50505050905090810190601f16801561183a5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561185f57600080fd5b505af192505050801561188457506040513d602081101561187f57600080fd5b505160015b6119195761189061209d565b8061189b57506118e2565b60405162461bcd60e51b815260206004820181815283516024840152835184939192839260440191908501908083836000831561164e578181015183820152602001611636565b60405162461bcd60e51b81526004018080602001828103825260348152602001806121436034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146119685760405162461bcd60e51b81526004018080602001828103825260288152602001806121776028913960400191505060405180910390fd5b50505050505050565b6001600160a01b0383166119b65760405162461bcd60e51b815260040180806020018281038252602381526020018061229f6023913960400191505060405180910390fd5b80518251146119f65760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b6000611a006115f5565b9050611a2081856000868660405180602001604052806000815250610ef4565b60005b8351811015611afe57611ab5838281518110611a3b57fe5b60200260200101516040518060600160405280602481526020016121fb6024913960016000888681518110611a6c57fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546115fa9092919063ffffffff16565b60016000868481518110611ac557fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a168252909252902055600101611a23565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611b85578181015183820152602001611b6d565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611bc4578181015183820152602001611bac565b5050505090500194505050505060405180910390a450505050565b6001600160a01b038416611c245760405162461bcd60e51b81526004018080602001828103825260218152602001806123666021913960400191505060405180910390fd5b6000611c2e6115f5565b9050611c408160008761127c88611ce0565b60008481526001602090815260408083206001600160a01b0389168452909152902054611c6d9084611691565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46115ee81600087878787611d24565b604080516001808252818301909252606091829190602080830190803683370190505090508281600081518110611d1357fe5b602090810291909101015292915050565b611d36846001600160a01b0316611fc8565b15610ef457836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611dc5578181015183820152602001611dad565b50505050905090810190601f168015611df25780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015611e1557600080fd5b505af1925050508015611e3a57506040513d6020811015611e3557600080fd5b505160015b611e465761189061209d565b6001600160e01b0319811663f23a6e6160e01b146119685760405162461bcd60e51b81526004018080602001828103825260288152602001806121776028913960400191505060405180910390fd5b6001600160a01b038316611eda5760405162461bcd60e51b815260040180806020018281038252602381526020018061229f6023913960400191505060405180910390fd5b6000611ee46115f5565b9050611f1481856000611ef687611ce0565b611eff87611ce0565b60405180602001604052806000815250610ef4565b611f5b826040518060600160405280602481526020016121fb6024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906115fa565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611ffc57508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061204557805160ff1916838001178555612072565b82800160010185558215612072579182015b82811115612072578251825591602001919060010190612057565b5061207e929150612082565b5090565b5b8082111561207e5760008155600101612083565b60e01c90565b600060443d10156120ad576115f7565b600481823e6308c379a06120c18251612097565b146120cb576115f7565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156120fb57505050506115f7565b8284019250825191508082111561211557505050506115f7565b503d8301602082840101111561212d575050506115f7565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a26469706673582212208c3986276ccf8d4739635935edbcdafe1bc503a16ffb8377948da46c6fc6b29064736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "uri", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnBatch", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "mintBatch", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "setURI", "stateMutability": "nonpayable", "inputs": [{"name": "newuri", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "title": "ERC1155Mock This mock just publicizes internal functions for testing purposes", "version": 1}}, "ERC1155PausableMock": {"contractName": "ERC1155PausableMock", "sourceId": "mocks/ERC1155PausableMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b506040516200285a3803806200285a833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b5060405250829150819050620001036301ffc9a760e01b62000145565b6200010e81620001ca565b62000120636cdb3d1360e11b62000145565b620001326303a24d0760e21b62000145565b50506004805460ff19169055506200027f565b6001600160e01b03198082161415620001a5576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001df906003906020840190620001e3565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200022657805160ff191683800117855562000256565b8280016001018555821562000256579182015b828111156200025657825182559160200191906001019062000239565b506200026492915062000268565b5090565b5b8082111562000264576000815560010162000269565b6125cb806200028f6000396000f3fe608060405234801561001057600080fd5b50600436106100ff5760003560e01c80635c975abb11610097578063a22cb46511610066578063a22cb465146109ac578063e985e9c5146109da578063f242432a14610a08578063f5298aca14610ad1576100ff565b80635c975abb146107a95780636b20c454146107b1578063731133e9146108e45780638456cb59146109a4576100ff565b80631f7fdffa116100d35780631f7fdffa146102b55780632eb2c2d61461046d5780633f4ba83a1461062e5780634e1273f414610636576100ff565b8062fdd58e1461010457806301ffc9a71461014257806302fe53051461017d5780630e89341c14610223575b600080fd5b6101306004803603604081101561011a57600080fd5b506001600160a01b038135169060200135610b03565b60408051918252519081900360200190f35b6101696004803603602081101561015857600080fd5b50356001600160e01b031916610b72565b604080519115158252519081900360200190f35b6102216004803603602081101561019357600080fd5b810190602081018135600160201b8111156101ad57600080fd5b8201836020820111156101bf57600080fd5b803590602001918460018302840111600160201b831117156101e057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b91945050505050565b005b6102406004803603602081101561023957600080fd5b5035610b9d565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027a578181015183820152602001610262565b50505050905090810190601f1680156102a75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610221600480360360808110156102cb57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102f557600080fd5b82018360208201111561030757600080fd5b803590602001918460208302840111600160201b8311171561032857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561037757600080fd5b82018360208201111561038957600080fd5b803590602001918460208302840111600160201b831117156103aa57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103f957600080fd5b82018360208201111561040b57600080fd5b803590602001918460018302840111600160201b8311171561042c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c35945050505050565b610221600480360360a081101561048357600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104b657600080fd5b8201836020820111156104c857600080fd5b803590602001918460208302840111600160201b831117156104e957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561053857600080fd5b82018360208201111561054a57600080fd5b803590602001918460208302840111600160201b8311171561056b57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105ba57600080fd5b8201836020820111156105cc57600080fd5b803590602001918460018302840111600160201b831117156105ed57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c47945050505050565b610221610f45565b6107596004803603604081101561064c57600080fd5b810190602081018135600160201b81111561066657600080fd5b82018360208201111561067857600080fd5b803590602001918460208302840111600160201b8311171561069957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106e857600080fd5b8201836020820111156106fa57600080fd5b803590602001918460208302840111600160201b8311171561071b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610f4f945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561079557818101518382015260200161077d565b505050509050019250505060405180910390f35b6101696110cd565b610221600480360360608110156107c757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156107f157600080fd5b82018360208201111561080357600080fd5b803590602001918460208302840111600160201b8311171561082457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561087357600080fd5b82018360208201111561088557600080fd5b803590602001918460208302840111600160201b831117156108a657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506110d7945050505050565b610221600480360360808110156108fa57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561093057600080fd5b82018360208201111561094257600080fd5b803590602001918460018302840111600160201b8311171561096357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506110e7945050505050565b6102216110f3565b610221600480360360408110156109c257600080fd5b506001600160a01b03813516906020013515156110fb565b610169600480360360408110156109f057600080fd5b506001600160a01b03813581169160200135166111ea565b610221600480360360a0811015610a1e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a5d57600080fd5b820183602082011115610a6f57600080fd5b803590602001918460018302840111600160201b83111715610a9057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611218945050505050565b61022160048036036060811015610ae757600080fd5b506001600160a01b0381351690602081013590604001356113e3565b60006001600160a01b038316610b4a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612382602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b610b9a816113ee565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c295780601f10610bfe57610100808354040283529160200191610c29565b820191906000526020600020905b815481529060010190602001808311610c0c57829003601f168201915b50505050509050919050565b610c4184848484611405565b50505050565b8151835114610c875760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b6001600160a01b038416610ccc5760405162461bcd60e51b81526004018080602001828103825260258152602001806124576025913960400191505060405180910390fd5b610cd461165a565b6001600160a01b0316856001600160a01b03161480610cff5750610cff85610cfa61165a565b6111ea565b610d3a5760405162461bcd60e51b815260040180806020018281038252603281526020018061247c6032913960400191505060405180910390fd5b6000610d4461165a565b9050610d5481878787878761165e565b60005b8451811015610e55576000858281518110610d6e57fe5b602002602001015190506000858381518110610d8657fe5b60200260200101519050610df3816040518060600160405280602a81526020016124d1602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000205461166c9092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610e2a9082611703565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610d57565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610edb578181015183820152602001610ec3565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610f1a578181015183820152602001610f02565b5050505090500194505050505060405180910390a4610f3d818787878787611764565b505050505050565b610f4d6119e3565b565b60608151835114610f915760405162461bcd60e51b81526004018080602001828103825260298152602001806125246029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610fab57600080fd5b50604051908082528060200260200182016040528015610fd5578160200160208202803683370190505b50905060005b84518110156110c55760006001600160a01b0316858281518110610ffb57fe5b60200260200101516001600160a01b031614156110495760405162461bcd60e51b81526004018080602001828103825260318152602001806123ad6031913960400191505060405180910390fd5b6001600085838151811061105957fe5b60200260200101518152602001908152602001600020600086838151811061107d57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106110b257fe5b6020908102919091010152600101610fdb565b509392505050565b60045460ff165b90565b6110e2838383611a81565b505050565b610c4184848484611cef565b610f4d611df0565b816001600160a01b031661110d61165a565b6001600160a01b031614156111535760405162461bcd60e51b81526004018080602001828103825260298152602001806124fb6029913960400191505060405180910390fd5b806002600061116061165a565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556111a461165a565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b03841661125d5760405162461bcd60e51b81526004018080602001828103825260258152602001806124576025913960400191505060405180910390fd5b61126561165a565b6001600160a01b0316856001600160a01b0316148061128b575061128b85610cfa61165a565b6112c65760405162461bcd60e51b815260040180806020018281038252602981526020018061242e6029913960400191505060405180910390fd5b60006112d061165a565b90506112f08187876112e188611e71565b6112ea88611e71565b8761165e565b611337836040518060600160405280602a81526020016124d1602a913960008781526001602090815260408083206001600160a01b038d168452909152902054919061166c565b60008581526001602090815260408083206001600160a01b038b8116855292528083209390935587168152205461136e9084611703565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610f3d818787878787611eb5565b6110e2838383612026565b80516114019060039060208401906121e7565b5050565b6001600160a01b03841661144a5760405162461bcd60e51b81526004018080602001828103825260218152602001806125756021913960400191505060405180910390fd5b815183511461148a5760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b600061149461165a565b90506114a58160008787878761165e565b60005b845181101561156957611520600160008784815181106114c457fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205485838151811061150a57fe5b602002602001015161170390919063ffffffff16565b6001600087848151811061153057fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b1682529092529020556001016114a8565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156115f05781810151838201526020016115d8565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561162f578181015183820152602001611617565b5050505090500194505050505060405180910390a461165381600087878787611764565b5050505050565b3390565b610f3d868686868686612159565b600081848411156116fb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116c05781810151838201526020016116a8565b50505050905090810190601f1680156116ed5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561175d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611776846001600160a01b03166121ab565b15610f3d57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156118045781810151838201526020016117ec565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561184357818101518382015260200161182b565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561187f578181015183820152602001611867565b50505050905090810190601f1680156118ac5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156118d157600080fd5b505af19250505080156118f657506040513d60208110156118f157600080fd5b505160015b61198b57611902612280565b8061190d5750611954565b60405162461bcd60e51b81526020600482018181528351602484015283518493919283926044019190850190808383600083156116c05781810151838201526020016116a8565b60405162461bcd60e51b81526004018080602001828103825260348152602001806123266034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146119da5760405162461bcd60e51b815260040180806020018281038252602881526020018061235a6028913960400191505060405180910390fd5b50505050505050565b60045460ff16611a31576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611a6461165a565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038316611ac65760405162461bcd60e51b81526004018080602001828103825260238152602001806124ae6023913960400191505060405180910390fd5b8051825114611b065760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b6000611b1061165a565b9050611b308185600086866040518060200160405280600081525061165e565b60005b8351811015611c0e57611bc5838281518110611b4b57fe5b60200260200101516040518060600160405280602481526020016123de6024913960016000888681518110611b7c57fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b031681526020019081526020016000205461166c9092919063ffffffff16565b60016000868481518110611bd557fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a168252909252902055600101611b33565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611c95578181015183820152602001611c7d565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611cd4578181015183820152602001611cbc565b5050505090500194505050505060405180910390a450505050565b6001600160a01b038416611d345760405162461bcd60e51b81526004018080602001828103825260218152602001806125756021913960400191505060405180910390fd5b6000611d3e61165a565b9050611d50816000876112e188611e71565b60008481526001602090815260408083206001600160a01b0389168452909152902054611d7d9084611703565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a461165381600087878787611eb5565b60045460ff1615611e3b576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a6461165a565b604080516001808252818301909252606091829190602080830190803683370190505090508281600081518110611ea457fe5b602090810291909101015292915050565b611ec7846001600160a01b03166121ab565b15610f3d57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611f56578181015183820152602001611f3e565b50505050905090810190601f168015611f835780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015611fa657600080fd5b505af1925050508015611fcb57506040513d6020811015611fc657600080fd5b505160015b611fd757611902612280565b6001600160e01b0319811663f23a6e6160e01b146119da5760405162461bcd60e51b815260040180806020018281038252602881526020018061235a6028913960400191505060405180910390fd5b6001600160a01b03831661206b5760405162461bcd60e51b81526004018080602001828103825260238152602001806124ae6023913960400191505060405180910390fd5b600061207561165a565b90506120a58185600061208787611e71565b61209087611e71565b6040518060200160405280600081525061165e565b6120ec826040518060600160405280602481526020016123de6024913960008681526001602090815260408083206001600160a01b038b168452909152902054919061166c565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b612167868686868686610f3d565b61216f6110cd565b15610f3d5760405162461bcd60e51b815260040180806020018281038252602c815260200180612402602c913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906121df57508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061222857805160ff1916838001178555612255565b82800160010185558215612255579182015b8281111561225557825182559160200191906001019061223a565b50612261929150612265565b5090565b5b808211156122615760008155600101612266565b60e01c90565b600060443d1015612290576110d4565b600481823e6308c379a06122a4825161227a565b146122ae576110d4565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156122de57505050506110d4565b828401925082519150808211156122f857505050506110d4565b503d83016020828401011115612310575050506110d4565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a26469706673582212203343e1f6f08f89c23da2e7c599fc1081ffb92eed84732e9da2d9e221dddccf1d64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100ff5760003560e01c80635c975abb11610097578063a22cb46511610066578063a22cb465146109ac578063e985e9c5146109da578063f242432a14610a08578063f5298aca14610ad1576100ff565b80635c975abb146107a95780636b20c454146107b1578063731133e9146108e45780638456cb59146109a4576100ff565b80631f7fdffa116100d35780631f7fdffa146102b55780632eb2c2d61461046d5780633f4ba83a1461062e5780634e1273f414610636576100ff565b8062fdd58e1461010457806301ffc9a71461014257806302fe53051461017d5780630e89341c14610223575b600080fd5b6101306004803603604081101561011a57600080fd5b506001600160a01b038135169060200135610b03565b60408051918252519081900360200190f35b6101696004803603602081101561015857600080fd5b50356001600160e01b031916610b72565b604080519115158252519081900360200190f35b6102216004803603602081101561019357600080fd5b810190602081018135600160201b8111156101ad57600080fd5b8201836020820111156101bf57600080fd5b803590602001918460018302840111600160201b831117156101e057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b91945050505050565b005b6102406004803603602081101561023957600080fd5b5035610b9d565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027a578181015183820152602001610262565b50505050905090810190601f1680156102a75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610221600480360360808110156102cb57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102f557600080fd5b82018360208201111561030757600080fd5b803590602001918460208302840111600160201b8311171561032857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561037757600080fd5b82018360208201111561038957600080fd5b803590602001918460208302840111600160201b831117156103aa57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103f957600080fd5b82018360208201111561040b57600080fd5b803590602001918460018302840111600160201b8311171561042c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c35945050505050565b610221600480360360a081101561048357600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104b657600080fd5b8201836020820111156104c857600080fd5b803590602001918460208302840111600160201b831117156104e957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561053857600080fd5b82018360208201111561054a57600080fd5b803590602001918460208302840111600160201b8311171561056b57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105ba57600080fd5b8201836020820111156105cc57600080fd5b803590602001918460018302840111600160201b831117156105ed57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c47945050505050565b610221610f45565b6107596004803603604081101561064c57600080fd5b810190602081018135600160201b81111561066657600080fd5b82018360208201111561067857600080fd5b803590602001918460208302840111600160201b8311171561069957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106e857600080fd5b8201836020820111156106fa57600080fd5b803590602001918460208302840111600160201b8311171561071b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610f4f945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561079557818101518382015260200161077d565b505050509050019250505060405180910390f35b6101696110cd565b610221600480360360608110156107c757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156107f157600080fd5b82018360208201111561080357600080fd5b803590602001918460208302840111600160201b8311171561082457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561087357600080fd5b82018360208201111561088557600080fd5b803590602001918460208302840111600160201b831117156108a657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506110d7945050505050565b610221600480360360808110156108fa57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561093057600080fd5b82018360208201111561094257600080fd5b803590602001918460018302840111600160201b8311171561096357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506110e7945050505050565b6102216110f3565b610221600480360360408110156109c257600080fd5b506001600160a01b03813516906020013515156110fb565b610169600480360360408110156109f057600080fd5b506001600160a01b03813581169160200135166111ea565b610221600480360360a0811015610a1e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a5d57600080fd5b820183602082011115610a6f57600080fd5b803590602001918460018302840111600160201b83111715610a9057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611218945050505050565b61022160048036036060811015610ae757600080fd5b506001600160a01b0381351690602081013590604001356113e3565b60006001600160a01b038316610b4a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612382602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b610b9a816113ee565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c295780601f10610bfe57610100808354040283529160200191610c29565b820191906000526020600020905b815481529060010190602001808311610c0c57829003601f168201915b50505050509050919050565b610c4184848484611405565b50505050565b8151835114610c875760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b6001600160a01b038416610ccc5760405162461bcd60e51b81526004018080602001828103825260258152602001806124576025913960400191505060405180910390fd5b610cd461165a565b6001600160a01b0316856001600160a01b03161480610cff5750610cff85610cfa61165a565b6111ea565b610d3a5760405162461bcd60e51b815260040180806020018281038252603281526020018061247c6032913960400191505060405180910390fd5b6000610d4461165a565b9050610d5481878787878761165e565b60005b8451811015610e55576000858281518110610d6e57fe5b602002602001015190506000858381518110610d8657fe5b60200260200101519050610df3816040518060600160405280602a81526020016124d1602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000205461166c9092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610e2a9082611703565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610d57565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610edb578181015183820152602001610ec3565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610f1a578181015183820152602001610f02565b5050505090500194505050505060405180910390a4610f3d818787878787611764565b505050505050565b610f4d6119e3565b565b60608151835114610f915760405162461bcd60e51b81526004018080602001828103825260298152602001806125246029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610fab57600080fd5b50604051908082528060200260200182016040528015610fd5578160200160208202803683370190505b50905060005b84518110156110c55760006001600160a01b0316858281518110610ffb57fe5b60200260200101516001600160a01b031614156110495760405162461bcd60e51b81526004018080602001828103825260318152602001806123ad6031913960400191505060405180910390fd5b6001600085838151811061105957fe5b60200260200101518152602001908152602001600020600086838151811061107d57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106110b257fe5b6020908102919091010152600101610fdb565b509392505050565b60045460ff165b90565b6110e2838383611a81565b505050565b610c4184848484611cef565b610f4d611df0565b816001600160a01b031661110d61165a565b6001600160a01b031614156111535760405162461bcd60e51b81526004018080602001828103825260298152602001806124fb6029913960400191505060405180910390fd5b806002600061116061165a565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556111a461165a565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b03841661125d5760405162461bcd60e51b81526004018080602001828103825260258152602001806124576025913960400191505060405180910390fd5b61126561165a565b6001600160a01b0316856001600160a01b0316148061128b575061128b85610cfa61165a565b6112c65760405162461bcd60e51b815260040180806020018281038252602981526020018061242e6029913960400191505060405180910390fd5b60006112d061165a565b90506112f08187876112e188611e71565b6112ea88611e71565b8761165e565b611337836040518060600160405280602a81526020016124d1602a913960008781526001602090815260408083206001600160a01b038d168452909152902054919061166c565b60008581526001602090815260408083206001600160a01b038b8116855292528083209390935587168152205461136e9084611703565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610f3d818787878787611eb5565b6110e2838383612026565b80516114019060039060208401906121e7565b5050565b6001600160a01b03841661144a5760405162461bcd60e51b81526004018080602001828103825260218152602001806125756021913960400191505060405180910390fd5b815183511461148a5760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b600061149461165a565b90506114a58160008787878761165e565b60005b845181101561156957611520600160008784815181106114c457fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205485838151811061150a57fe5b602002602001015161170390919063ffffffff16565b6001600087848151811061153057fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b1682529092529020556001016114a8565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156115f05781810151838201526020016115d8565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561162f578181015183820152602001611617565b5050505090500194505050505060405180910390a461165381600087878787611764565b5050505050565b3390565b610f3d868686868686612159565b600081848411156116fb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116c05781810151838201526020016116a8565b50505050905090810190601f1680156116ed5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561175d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611776846001600160a01b03166121ab565b15610f3d57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156118045781810151838201526020016117ec565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561184357818101518382015260200161182b565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561187f578181015183820152602001611867565b50505050905090810190601f1680156118ac5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156118d157600080fd5b505af19250505080156118f657506040513d60208110156118f157600080fd5b505160015b61198b57611902612280565b8061190d5750611954565b60405162461bcd60e51b81526020600482018181528351602484015283518493919283926044019190850190808383600083156116c05781810151838201526020016116a8565b60405162461bcd60e51b81526004018080602001828103825260348152602001806123266034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146119da5760405162461bcd60e51b815260040180806020018281038252602881526020018061235a6028913960400191505060405180910390fd5b50505050505050565b60045460ff16611a31576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611a6461165a565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038316611ac65760405162461bcd60e51b81526004018080602001828103825260238152602001806124ae6023913960400191505060405180910390fd5b8051825114611b065760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b6000611b1061165a565b9050611b308185600086866040518060200160405280600081525061165e565b60005b8351811015611c0e57611bc5838281518110611b4b57fe5b60200260200101516040518060600160405280602481526020016123de6024913960016000888681518110611b7c57fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b031681526020019081526020016000205461166c9092919063ffffffff16565b60016000868481518110611bd557fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a168252909252902055600101611b33565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611c95578181015183820152602001611c7d565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611cd4578181015183820152602001611cbc565b5050505090500194505050505060405180910390a450505050565b6001600160a01b038416611d345760405162461bcd60e51b81526004018080602001828103825260218152602001806125756021913960400191505060405180910390fd5b6000611d3e61165a565b9050611d50816000876112e188611e71565b60008481526001602090815260408083206001600160a01b0389168452909152902054611d7d9084611703565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a461165381600087878787611eb5565b60045460ff1615611e3b576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a6461165a565b604080516001808252818301909252606091829190602080830190803683370190505090508281600081518110611ea457fe5b602090810291909101015292915050565b611ec7846001600160a01b03166121ab565b15610f3d57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611f56578181015183820152602001611f3e565b50505050905090810190601f168015611f835780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015611fa657600080fd5b505af1925050508015611fcb57506040513d6020811015611fc657600080fd5b505160015b611fd757611902612280565b6001600160e01b0319811663f23a6e6160e01b146119da5760405162461bcd60e51b815260040180806020018281038252602881526020018061235a6028913960400191505060405180910390fd5b6001600160a01b03831661206b5760405162461bcd60e51b81526004018080602001828103825260238152602001806124ae6023913960400191505060405180910390fd5b600061207561165a565b90506120a58185600061208787611e71565b61209087611e71565b6040518060200160405280600081525061165e565b6120ec826040518060600160405280602481526020016123de6024913960008681526001602090815260408083206001600160a01b038b168452909152902054919061166c565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b612167868686868686610f3d565b61216f6110cd565b15610f3d5760405162461bcd60e51b815260040180806020018281038252602c815260200180612402602c913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906121df57508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061222857805160ff1916838001178555612255565b82800160010185558215612255579182015b8281111561225557825182559160200191906001019061223a565b50612261929150612265565b5090565b5b808211156122615760008155600101612266565b60e01c90565b600060443d1015612290576110d4565b600481823e6308c379a06122a4825161227a565b146122ae576110d4565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156122de57505050506110d4565b828401925082519150808211156122f857505050506110d4565b503d83016020828401011115612310575050506110d4565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a26469706673582212203343e1f6f08f89c23da2e7c599fc1081ffb92eed84732e9da2d9e221dddccf1d64736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "uri", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnBatch", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "mintBatch", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "setURI", "stateMutability": "nonpayable", "inputs": [{"name": "newuri", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "ERC1155ReceiverMock": {"contractName": "ERC1155ReceiverMock", "sourceId": "mocks/ERC1155ReceiverMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5060405161076e38038061076e8339818101604052608081101561003357600080fd5b508051602082015160408301516060909301519192909161005a6301ffc9a760e01b6100c4565b6001805463ffffffff191660e095861c1760ff60201b1916640100000000941515949094029390931763ffffffff60281b1916650100000000009290941c919091029290921760ff60481b1916690100000000000000000092151592909202919091179055610148565b6001600160e01b03198082161415610123576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610617806101576000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806301ffc9a714610051578063214cdb801461008c578063bc197c81146100b5578063f23a6e61146101f9575b600080fd5b6100786004803603602081101561006757600080fd5b50356001600160e01b03191661028c565b604080519115158252519081900360200190f35b6100b3600480360360208110156100a257600080fd5b50356001600160e01b0319166102ab565b005b6101dc600480360360a08110156100cb57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156100fe57600080fd5b82018360208201111561011057600080fd5b803590602001918460208302840111600160201b8311171561013157600080fd5b919390929091602081019035600160201b81111561014e57600080fd5b82018360208201111561016057600080fd5b803590602001918460208302840111600160201b8311171561018157600080fd5b919390929091602081019035600160201b81111561019e57600080fd5b8201836020820111156101b057600080fd5b803590602001918460018302840111600160201b831117156101d157600080fd5b5090925090506102b7565b604080516001600160e01b03199092168252519081900360200190f35b6101dc600480360360a081101561020f57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561024e57600080fd5b82018360208201111561026057600080fd5b803590602001918460018302840111600160201b8311171561028157600080fd5b50909250905061040e565b6001600160e01b03191660009081526020819052604090205460ff1690565b6102b481610505565b50565b6001546000906901000000000000000000900460ff16156103095760405162461bcd60e51b815260040180806020018281038252602f8152602001806105b3602f913960400191505060405180910390fd5b7f0bcad9224ba33b574e9c85298de2f44b4c80015a21aa5df474896444909863d889898989898989895a604051808a6001600160a01b03168152602001896001600160a01b0316815260200180602001806020018060200185815260200184810384528b8b82818152602001925060200280828437600083820152601f01601f19169091018581038452898152602090810191508a908a0280828437600083820152601f01601f191690910185810383528781526020019050878780828437600083820152604051601f909101601f19169092018290039e50909c50505050505050505050505050a15060015465010000000000900460e01b98975050505050505050565b600154600090600160201b900460ff161561045a5760405162461bcd60e51b815260040180806020018281038252602981526020018061058a6029913960400191505060405180910390fd5b7f20dfa9f79060c8c4d7fe892c97c71bcf6e3b63d1dcf66fea7aefc0211628cf298787878787875a60405180886001600160a01b03168152602001876001600160a01b03168152602001868152602001858152602001806020018381526020018281038252858582818152602001925080828437600083820152604051601f909101601f19169092018290039a509098505050505050505050a15060015460e01b9695505050505050565b6001600160e01b03198082161415610564576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff1916600117905556fe4552433131353552656365697665724d6f636b3a20726576657274696e67206f6e20726563656976654552433131353552656365697665724d6f636b3a20726576657274696e67206f6e2062617463682072656365697665a2646970667358221220ccca811d46d1482eeda9202ac49972c7d2abf99acb8bafb81c134f8223fd51d464736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806301ffc9a714610051578063214cdb801461008c578063bc197c81146100b5578063f23a6e61146101f9575b600080fd5b6100786004803603602081101561006757600080fd5b50356001600160e01b03191661028c565b604080519115158252519081900360200190f35b6100b3600480360360208110156100a257600080fd5b50356001600160e01b0319166102ab565b005b6101dc600480360360a08110156100cb57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156100fe57600080fd5b82018360208201111561011057600080fd5b803590602001918460208302840111600160201b8311171561013157600080fd5b919390929091602081019035600160201b81111561014e57600080fd5b82018360208201111561016057600080fd5b803590602001918460208302840111600160201b8311171561018157600080fd5b919390929091602081019035600160201b81111561019e57600080fd5b8201836020820111156101b057600080fd5b803590602001918460018302840111600160201b831117156101d157600080fd5b5090925090506102b7565b604080516001600160e01b03199092168252519081900360200190f35b6101dc600480360360a081101561020f57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561024e57600080fd5b82018360208201111561026057600080fd5b803590602001918460018302840111600160201b8311171561028157600080fd5b50909250905061040e565b6001600160e01b03191660009081526020819052604090205460ff1690565b6102b481610505565b50565b6001546000906901000000000000000000900460ff16156103095760405162461bcd60e51b815260040180806020018281038252602f8152602001806105b3602f913960400191505060405180910390fd5b7f0bcad9224ba33b574e9c85298de2f44b4c80015a21aa5df474896444909863d889898989898989895a604051808a6001600160a01b03168152602001896001600160a01b0316815260200180602001806020018060200185815260200184810384528b8b82818152602001925060200280828437600083820152601f01601f19169091018581038452898152602090810191508a908a0280828437600083820152601f01601f191690910185810383528781526020019050878780828437600083820152604051601f909101601f19169092018290039e50909c50505050505050505050505050a15060015465010000000000900460e01b98975050505050505050565b600154600090600160201b900460ff161561045a5760405162461bcd60e51b815260040180806020018281038252602981526020018061058a6029913960400191505060405180910390fd5b7f20dfa9f79060c8c4d7fe892c97c71bcf6e3b63d1dcf66fea7aefc0211628cf298787878787875a60405180886001600160a01b03168152602001876001600160a01b03168152602001868152602001858152602001806020018381526020018281038252858582818152602001925080828437600083820152604051601f909101601f19169092018290039a509098505050505050505050a15060015460e01b9695505050505050565b6001600160e01b03198082161415610564576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff1916600117905556fe4552433131353552656365697665724d6f636b3a20726576657274696e67206f6e20726563656976654552433131353552656365697665724d6f636b3a20726576657274696e67206f6e2062617463682072656365697665a2646970667358221220ccca811d46d1482eeda9202ac49972c7d2abf99acb8bafb81c134f8223fd51d464736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "recRetval", "type": "bytes4", "internalType": "bytes4"}, {"name": "recReverts", "type": "bool", "internalType": "bool"}, {"name": "batRetval", "type": "bytes4", "internalType": "bytes4"}, {"name": "batReverts", "type": "bool", "internalType": "bool"}]}, {"type": "event", "name": "BatchReceived", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": false}, {"name": "from", "type": "address", "internalType": "address", "indexed": false}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "gas", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Received", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": false}, {"name": "from", "type": "address", "internalType": "address", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "gas", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "onERC1155BatchReceived", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "onERC1155Received", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "registerInterface", "stateMutability": "nonpayable", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": {"details": "Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` (i.e. 0xbc197c81, or its own function selector).", "params": {"data": "Additional data with no specified format", "from": "The address which previously owned the token", "ids": "An array containing ids of each token being transferred (order and length must match values array)", "operator": "The address which initiated the batch transfer (i.e. msg.sender)", "values": "An array containing amounts of each token being transferred (order and length must match ids array)"}, "returns": {"_0": "`bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed"}}, "onERC1155Received(address,address,uint256,uint256,bytes)": {"details": "Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` (i.e. 0xf23a6e61, or its own function selector).", "params": {"data": "Additional data with no specified format", "from": "The address which previously owned the token", "id": "The ID of the token being transferred", "operator": "The address which initiated the transfer (i.e. msg.sender)", "value": "The amount of tokens being transferred"}, "returns": {"_0": "`bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed"}}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}}, "version": 1}}, "ERC165InterfacesSupported": {"contractName": "ERC165InterfacesSupported", "sourceId": "mocks/ERC165/ERC165InterfacesSupported.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506040516102af3803806102af8339818101604052602081101561003357600080fd5b810190808051604051939291908464010000000082111561005357600080fd5b90830190602082018581111561006857600080fd5b825186602082028301116401000000008211171561008557600080fd5b82525081516020918201928201910280838360005b838110156100b257818101518382015260200161009a565b505050509050016040525050506100d56301ffc9a760e01b61011260201b60201c565b60005b815181101561010b576101038282815181106100f057fe5b602002602001015161011260201b60201c565b6001016100d8565b5050610180565b6001600160e01b0319808216141561015b5760405162461bcd60e51b815260040180806020018281038252602f815260200180610280602f913960400191505060405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b60f28061018e6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c14606f575b600080fd5b605b60048036036020811015604b57600080fd5b50356001600160e01b0319166092565b604080519115158252519081900360200190f35b607560b1565b604080516001600160e01b03199092168252519081900360200190f35b6001600160e01b03191660009081526020819052604090205460ff1690565b6301ffc9a760e01b8156fea26469706673582212207cb07967e2c799dbd0fc1bb0317b1a58a302e5caa62ac8fb554fbc4db80519b664736f6c634300060c0033455243313635496e7465726661636573537570706f727465643a20696e76616c696420696e74657266616365206964"}, "runtimeBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c14606f575b600080fd5b605b60048036036020811015604b57600080fd5b50356001600160e01b0319166092565b604080519115158252519081900360200190f35b607560b1565b604080516001600160e01b03199092168252519081900360200190f35b6001600160e01b03191660009081526020819052604090205460ff1690565b6301ffc9a760e01b8156fea26469706673582212207cb07967e2c799dbd0fc1bb0317b1a58a302e5caa62ac8fb554fbc4db80519b664736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "interfaceIds", "type": "bytes4[]", "internalType": "bytes4[]"}]}, {"type": "function", "name": "INTERFACE_ID_ERC165", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"supportsInterface(bytes4)": {"details": "Implement supportsInterface(bytes4) using a lookup table."}}, "version": 1}}, "SupportsInterfaceWithLookupMock": {"contractName": "SupportsInterfaceWithLookupMock", "sourceId": "mocks/ERC165/ERC165InterfacesSupported.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506100216301ffc9a760e01b610026565b610094565b6001600160e01b0319808216141561006f5760405162461bcd60e51b815260040180806020018281038252602f815260200180610194602f913960400191505060405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b60f2806100a26000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c14606f575b600080fd5b605b60048036036020811015604b57600080fd5b50356001600160e01b0319166092565b604080519115158252519081900360200190f35b607560b1565b604080516001600160e01b03199092168252519081900360200190f35b6001600160e01b03191660009081526020819052604090205460ff1690565b6301ffc9a760e01b8156fea26469706673582212208bf22bfdfb527c42ccb35c08c5891591c6de51574449b1a4a01a1fcc00296f0864736f6c634300060c0033455243313635496e7465726661636573537570706f727465643a20696e76616c696420696e74657266616365206964"}, "runtimeBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c14606f575b600080fd5b605b60048036036020811015604b57600080fd5b50356001600160e01b0319166092565b604080519115158252519081900360200190f35b607560b1565b604080516001600160e01b03199092168252519081900360200190f35b6001600160e01b03191660009081526020819052604090205460ff1690565b6301ffc9a760e01b8156fea26469706673582212208bf22bfdfb527c42ccb35c08c5891591c6de51574449b1a4a01a1fcc00296f0864736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": []}, {"type": "function", "name": "INTERFACE_ID_ERC165", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "notice": "https://eips.ethereum.org/EIPS/eip-214#specification From the specification: > Any attempts to make state-changing operations inside an execution instance with STATIC set to true will instead throw an exception. > These operations include [...], LOG0, LOG1, LOG2, [...] therefore, because this contract is staticcall'd we need to not emit events (which is how solidity-coverage works) solidity-coverage ignores the /mocks folder, so we duplicate its implementation here to avoid instrumenting it", "version": 1}, "devdoc": {"kind": "dev", "methods": {"constructor": {"details": "A contract implementing SupportsInterfaceWithLookup implement ERC165 itself."}, "supportsInterface(bytes4)": {"details": "Implement supportsInterface(bytes4) using a lookup table."}}, "stateVariables": {"_supportedInterfaces": {"details": "A mapping of interface id to whether or not it's supported."}}, "version": 1}}, "ERC165NotSupported": {"contractName": "ERC165NotSupported", "sourceId": "mocks/ERC165/ERC165NotSupported.sol", "deploymentBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea264697066735822122040b3cde30f2ed27020961b25497c655311cc4e115950c03b4a78494faff9694564736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600080fdfea264697066735822122040b3cde30f2ed27020961b25497c655311cc4e115950c03b4a78494faff9694564736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC165CheckerMock": {"contractName": "ERC165CheckerMock", "sourceId": "mocks/ERC165CheckerMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506103eb806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634b9dd90414610046578063c398a9251461010d578063d905700714610133575b600080fd5b6100f96004803603604081101561005c57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561008757600080fd5b82018360208201111561009957600080fd5b803590602001918460208302840111640100000000831117156100bb57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610169945050505050565b604080519115158252519081900360200190f35b6100f96004803603602081101561012357600080fd5b50356001600160a01b0316610187565b6100f96004803603604081101561014957600080fd5b5080356001600160a01b031690602001356001600160e01b03191661019b565b600061017e6001600160a01b038416836101b0565b90505b92915050565b6000610181826001600160a01b0316610210565b600061017e6001600160a01b03841683610243565b60006101bb83610210565b6101c757506000610181565b60005b8251811015610206576101f0848483815181106101e357fe5b602002602001015161025b565b6101fe576000915050610181565b6001016101ca565b5060019392505050565b6000610223826301ffc9a760e01b61025b565b8015610181575061023c826001600160e01b031961025b565b1592915050565b600061024e83610210565b801561017e575061017e83835b600080600061026a8585610281565b915091508180156102785750805b95945050505050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166301ffc9a760e01b1781529151815160009384939284926060926001600160a01b038a169261753092879282918083835b602083106103095780518252601f1990920191602091820191016102ea565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303818686fa925050503d806000811461036a576040519150601f19603f3d011682016040523d82523d6000602084013e61036f565b606091505b509150915060208151101561038d57600080945094505050506103ae565b818180602001905160208110156103a357600080fd5b505190955093505050505b925092905056fea2646970667358221220b931d96b7b7c2e0c36fc34cfd0e91121a8bd9384703c011230a622a4be9e114c64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634b9dd90414610046578063c398a9251461010d578063d905700714610133575b600080fd5b6100f96004803603604081101561005c57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561008757600080fd5b82018360208201111561009957600080fd5b803590602001918460208302840111640100000000831117156100bb57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610169945050505050565b604080519115158252519081900360200190f35b6100f96004803603602081101561012357600080fd5b50356001600160a01b0316610187565b6100f96004803603604081101561014957600080fd5b5080356001600160a01b031690602001356001600160e01b03191661019b565b600061017e6001600160a01b038416836101b0565b90505b92915050565b6000610181826001600160a01b0316610210565b600061017e6001600160a01b03841683610243565b60006101bb83610210565b6101c757506000610181565b60005b8251811015610206576101f0848483815181106101e357fe5b602002602001015161025b565b6101fe576000915050610181565b6001016101ca565b5060019392505050565b6000610223826301ffc9a760e01b61025b565b8015610181575061023c826001600160e01b031961025b565b1592915050565b600061024e83610210565b801561017e575061017e83835b600080600061026a8585610281565b915091508180156102785750805b95945050505050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166301ffc9a760e01b1781529151815160009384939284926060926001600160a01b038a169261753092879282918083835b602083106103095780518252601f1990920191602091820191016102ea565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303818686fa925050503d806000811461036a576040519150601f19603f3d011682016040523d82523d6000602084013e61036f565b606091505b509150915060208151101561038d57600080945094505050506103ae565b818180602001905160208110156103a357600080fd5b505190955093505050505b925092905056fea2646970667358221220b931d96b7b7c2e0c36fc34cfd0e91121a8bd9384703c011230a622a4be9e114c64736f6c634300060c0033"}, "abi": [{"type": "function", "name": "supportsAllInterfaces", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "interfaceIds", "type": "bytes4[]", "internalType": "bytes4[]"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "supportsERC165", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC165Mock": {"contractName": "ERC165Mock", "sourceId": "mocks/ERC165Mock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506100216301ffc9a760e01b610026565b6100aa565b6001600160e01b03198082161415610085576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610184806100b96000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806301ffc9a71461003b578063214cdb8014610076575b600080fd5b6100626004803603602081101561005157600080fd5b50356001600160e01b03191661009f565b604080519115158252519081900360200190f35b61009d6004803603602081101561008c57600080fd5b50356001600160e01b0319166100be565b005b6001600160e01b03191660009081526020819052604090205460ff1690565b6100c7816100ca565b50565b6001600160e01b03198082161415610129576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff1916600117905556fea2646970667358221220a6a6941620ba3139197f9dff954b0f602713c42d59d9c70d37cc8eee0023dfb864736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c806301ffc9a71461003b578063214cdb8014610076575b600080fd5b6100626004803603602081101561005157600080fd5b50356001600160e01b03191661009f565b604080519115158252519081900360200190f35b61009d6004803603602081101561008c57600080fd5b50356001600160e01b0319166100be565b005b6001600160e01b03191660009081526020819052604090205460ff1690565b6100c7816100ca565b50565b6001600160e01b03198082161415610129576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff1916600117905556fea2646970667358221220a6a6941620ba3139197f9dff954b0f602713c42d59d9c70d37cc8eee0023dfb864736f6c634300060c0033"}, "abi": [{"type": "function", "name": "registerInterface", "stateMutability": "nonpayable", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}}, "version": 1}}, "ERC1820ImplementerMock": {"contractName": "ERC1820ImplementerMock", "sourceId": "mocks/ERC1820ImplementerMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061018e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063249cb3fa1461003b5780635536e45d14610079575b600080fd5b6100676004803603604081101561005157600080fd5b50803590602001356001600160a01b03166100a7565b60408051918252519081900360200190f35b6100a56004803603604081101561008f57600080fd5b50803590602001356001600160a01b031661011c565b005b6000828152602081815260408083206001600160a01b038516845290915281205460ff166100d6576000610115565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b9392505050565b610126828261012a565b5050565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff1916600117905556fea26469706673582212209c60356340f512782c6829567a37799a405bf10a37c75c8fc300186ed96800be64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063249cb3fa1461003b5780635536e45d14610079575b600080fd5b6100676004803603604081101561005157600080fd5b50803590602001356001600160a01b03166100a7565b60408051918252519081900360200190f35b6100a56004803603604081101561008f57600080fd5b50803590602001356001600160a01b031661011c565b005b6000828152602081815260408083206001600160a01b038516845290915281205460ff166100d6576000610115565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b9392505050565b610126828261012a565b5050565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff1916600117905556fea26469706673582212209c60356340f512782c6829567a37799a405bf10a37c75c8fc300186ed96800be64736f6c634300060c0033"}, "abi": [{"type": "function", "name": "canImplementInterfaceForAddress", "stateMutability": "view", "inputs": [{"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "registerInterfaceForAddress", "stateMutability": "nonpayable", "inputs": [{"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {"canImplementInterfaceForAddress(bytes32,address)": {"notice": "See {IERC1820Implementer-canImplementInterfaceForAddress}."}}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC20BurnableMock": {"contractName": "ERC20BurnableMock", "sourceId": "mocks/ERC20BurnableMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b506040516200109438038062001094833981810160405260808110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604090815260208281015192909101518651929450925085918591620001c59160039185019062000377565b508051620001db90600490602084019062000377565b50506005805460ff1916601217905550620001f7828262000201565b5050505062000413565b6001600160a01b0382166200025d576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6200026b6000838362000310565b62000287816002546200031560201b620006521790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620002ba9183906200065262000315821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b60008282018381101562000370576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003ba57805160ff1916838001178555620003ea565b82800160010185558215620003ea579182015b82811115620003ea578251825591602001919060010190620003cd565b50620003f8929150620003fc565b5090565b5b80821115620003f85760008155600101620003fd565b610c7180620004236000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b411461029c578063a457c2d7146102a4578063a9059cbb146102d0578063dd62ed3e146102fc576100cf565b806342966c681461022b57806370a082311461024a57806379cc679014610270576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e157806339509351146101ff575b600080fd5b6100dc61032a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103c0565b604080519115158252519081900360200190f35b6101996103dd565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103e3565b6101e961046a565b6040805160ff9092168252519081900360200190f35b61017d6004803603604081101561021557600080fd5b506001600160a01b038135169060200135610473565b6102486004803603602081101561024157600080fd5b50356104c1565b005b6101996004803603602081101561026057600080fd5b50356001600160a01b03166104d5565b6102486004803603604081101561028657600080fd5b506001600160a01b0381351690602001356104f0565b6100dc61054a565b61017d600480360360408110156102ba57600080fd5b506001600160a01b0381351690602001356105ab565b61017d600480360360408110156102e657600080fd5b506001600160a01b038135169060200135610613565b6101996004803603604081101561031257600080fd5b506001600160a01b0381358116916020013516610627565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b65780601f1061038b576101008083540402835291602001916103b6565b820191906000526020600020905b81548152906001019060200180831161039957829003601f168201915b5050505050905090565b60006103d46103cd6106b3565b84846106b7565b50600192915050565b60025490565b60006103f08484846107a3565b610460846103fc6106b3565b61045b85604051806060016040528060288152602001610b61602891396001600160a01b038a1660009081526001602052604081209061043a6106b3565b6001600160a01b0316815260208101919091526040016000205491906108fe565b6106b7565b5060019392505050565b60055460ff1690565b60006103d46104806106b3565b8461045b85600160006104916106b3565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610652565b6104d26104cc6106b3565b82610995565b50565b6001600160a01b031660009081526020819052604090205490565b600061052782604051806060016040528060248152602001610b89602491396105208661051b6106b3565b610627565b91906108fe565b905061053b836105356106b3565b836106b7565b6105458383610995565b505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b65780601f1061038b576101008083540402835291602001916103b6565b60006103d46105b86106b3565b8461045b85604051806060016040528060258152602001610c1760259139600160006105e26106b3565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906108fe565b60006103d46106206106b3565b84846107a3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156106ac576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166106fc5760405162461bcd60e51b8152600401808060200182810382526024815260200180610bf36024913960400191505060405180910390fd5b6001600160a01b0382166107415760405162461bcd60e51b8152600401808060200182810382526022815260200180610b196022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107e85760405162461bcd60e51b8152600401808060200182810382526025815260200180610bce6025913960400191505060405180910390fd5b6001600160a01b03821661082d5760405162461bcd60e51b8152600401808060200182810382526023815260200180610ad46023913960400191505060405180910390fd5b610838838383610545565b61087581604051806060016040528060268152602001610b3b602691396001600160a01b03861660009081526020819052604090205491906108fe565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108a49082610652565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561098d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561095257818101518382015260200161093a565b50505050905090810190601f16801561097f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166109da5760405162461bcd60e51b8152600401808060200182810382526021815260200180610bad6021913960400191505060405180910390fd5b6109e682600083610545565b610a2381604051806060016040528060228152602001610af7602291396001600160a01b03851660009081526020819052604090205491906108fe565b6001600160a01b038316600090815260208190526040902055600254610a499082610a91565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60006106ac83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108fe56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212204c9d6d3c255da77b654fec07d30fe2164ddfa7d415d3ae99d9ef3f568311167064736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b411461029c578063a457c2d7146102a4578063a9059cbb146102d0578063dd62ed3e146102fc576100cf565b806342966c681461022b57806370a082311461024a57806379cc679014610270576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e157806339509351146101ff575b600080fd5b6100dc61032a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103c0565b604080519115158252519081900360200190f35b6101996103dd565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103e3565b6101e961046a565b6040805160ff9092168252519081900360200190f35b61017d6004803603604081101561021557600080fd5b506001600160a01b038135169060200135610473565b6102486004803603602081101561024157600080fd5b50356104c1565b005b6101996004803603602081101561026057600080fd5b50356001600160a01b03166104d5565b6102486004803603604081101561028657600080fd5b506001600160a01b0381351690602001356104f0565b6100dc61054a565b61017d600480360360408110156102ba57600080fd5b506001600160a01b0381351690602001356105ab565b61017d600480360360408110156102e657600080fd5b506001600160a01b038135169060200135610613565b6101996004803603604081101561031257600080fd5b506001600160a01b0381358116916020013516610627565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b65780601f1061038b576101008083540402835291602001916103b6565b820191906000526020600020905b81548152906001019060200180831161039957829003601f168201915b5050505050905090565b60006103d46103cd6106b3565b84846106b7565b50600192915050565b60025490565b60006103f08484846107a3565b610460846103fc6106b3565b61045b85604051806060016040528060288152602001610b61602891396001600160a01b038a1660009081526001602052604081209061043a6106b3565b6001600160a01b0316815260208101919091526040016000205491906108fe565b6106b7565b5060019392505050565b60055460ff1690565b60006103d46104806106b3565b8461045b85600160006104916106b3565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610652565b6104d26104cc6106b3565b82610995565b50565b6001600160a01b031660009081526020819052604090205490565b600061052782604051806060016040528060248152602001610b89602491396105208661051b6106b3565b610627565b91906108fe565b905061053b836105356106b3565b836106b7565b6105458383610995565b505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b65780601f1061038b576101008083540402835291602001916103b6565b60006103d46105b86106b3565b8461045b85604051806060016040528060258152602001610c1760259139600160006105e26106b3565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906108fe565b60006103d46106206106b3565b84846107a3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156106ac576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166106fc5760405162461bcd60e51b8152600401808060200182810382526024815260200180610bf36024913960400191505060405180910390fd5b6001600160a01b0382166107415760405162461bcd60e51b8152600401808060200182810382526022815260200180610b196022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107e85760405162461bcd60e51b8152600401808060200182810382526025815260200180610bce6025913960400191505060405180910390fd5b6001600160a01b03821661082d5760405162461bcd60e51b8152600401808060200182810382526023815260200180610ad46023913960400191505060405180910390fd5b610838838383610545565b61087581604051806060016040528060268152602001610b3b602691396001600160a01b03861660009081526020819052604090205491906108fe565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108a49082610652565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561098d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561095257818101518382015260200161093a565b50505050905090810190601f16801561097f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166109da5760405162461bcd60e51b8152600401808060200182810382526021815260200180610bad6021913960400191505060405180910390fd5b6109e682600083610545565b610a2381604051806060016040528060228152602001610af7602291396001600160a01b03851660009081526020819052604090205491906108fe565b6001600160a01b038316600090815260208190526040902055600254610a499082610a91565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60006106ac83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108fe56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212204c9d6d3c255da77b654fec07d30fe2164ddfa7d415d3ae99d9ef3f568311167064736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "initialAccount", "type": "address", "internalType": "address"}, {"name": "initialBalance", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnFrom", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "burn(uint256)": {"details": "Destroys `amount` tokens from the caller. See {ERC20-_burn}."}, "burnFrom(address,uint256)": {"details": "Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20CappedMock": {"contractName": "ERC20CappedMock", "sourceId": "mocks/ERC20CappedMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162000ec538038062000ec5833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052602090810151855190935083925085918591620001c0916003919085019062000246565b508051620001d690600490602084019062000246565b50506005805460ff19166012179055508062000239576040805162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a2063617020697320300000000000000000000000604482015290519081900360640190fd5b60065550620002e2915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028957805160ff1916838001178555620002b9565b82800160010185558215620002b9579182015b82811115620002b95782518255916020019190600101906200029c565b50620002c7929150620002cb565b5090565b5b80821115620002c75760008155600101620002cc565b610bd380620002f26000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063395093511161008c57806395d89b411161006657806395d89b4114610287578063a457c2d71461028f578063a9059cbb146102bb578063dd62ed3e146102e7576100cf565b8063395093511461020757806340c10f191461023357806370a0823114610261576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e1578063355274ea146101ff575b600080fd5b6100dc610315565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103ab565b604080519115158252519081900360200190f35b6101996103c8565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103ce565b6101e9610455565b6040805160ff9092168252519081900360200190f35b61019961045e565b61017d6004803603604081101561021d57600080fd5b506001600160a01b038135169060200135610464565b61025f6004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104b2565b005b6101996004803603602081101561027757600080fd5b50356001600160a01b03166104c0565b6100dc6104db565b61017d600480360360408110156102a557600080fd5b506001600160a01b03813516906020013561053c565b61017d600480360360408110156102d157600080fd5b506001600160a01b0381351690602001356105a4565b610199600480360360408110156102fd57600080fd5b506001600160a01b03813581169160200135166105b8565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a15780601f10610376576101008083540402835291602001916103a1565b820191906000526020600020905b81548152906001019060200180831161038457829003601f168201915b5050505050905090565b60006103bf6103b86105e3565b84846105e7565b50600192915050565b60025490565b60006103db8484846106d3565b61044b846103e76105e3565b61044685604051806060016040528060288152602001610b08602891396001600160a01b038a166000908152600160205260408120906104256105e3565b6001600160a01b03168152602081019190915260400160002054919061082e565b6105e7565b5060019392505050565b60055460ff1690565b60065490565b60006103bf6104716105e3565b8461044685600160006104826105e3565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906108c5565b6104bc8282610926565b5050565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a15780601f10610376576101008083540402835291602001916103a1565b60006103bf6105496105e3565b8461044685604051806060016040528060258152602001610b7960259139600160006105736105e3565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061082e565b60006103bf6105b16105e3565b84846106d3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661062c5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b556024913960400191505060405180910390fd5b6001600160a01b0382166106715760405162461bcd60e51b8152600401808060200182810382526022815260200180610ac06022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107185760405162461bcd60e51b8152600401808060200182810382526025815260200180610b306025913960400191505060405180910390fd5b6001600160a01b03821661075d5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a9d6023913960400191505060405180910390fd5b610768838383610a16565b6107a581604051806060016040528060268152602001610ae2602691396001600160a01b038616600090815260208190526040902054919061082e565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107d490826108c5565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108bd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561088257818101518382015260200161086a565b50505050905090810190601f1680156108af5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561091f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610981576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61098d60008383610a16565b60025461099a90826108c5565b6002556001600160a01b0382166000908152602081905260409020546109c090826108c5565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b610a21838383610a97565b6001600160a01b038316610a9757600654610a4482610a3e6103c8565b906108c5565b1115610a97576040805162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015290519081900360640190fd5b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f072699eb74495ccfa543a2eb09468c0858f86e4c5f96117f856431e680124b164736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063395093511161008c57806395d89b411161006657806395d89b4114610287578063a457c2d71461028f578063a9059cbb146102bb578063dd62ed3e146102e7576100cf565b8063395093511461020757806340c10f191461023357806370a0823114610261576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e1578063355274ea146101ff575b600080fd5b6100dc610315565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103ab565b604080519115158252519081900360200190f35b6101996103c8565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103ce565b6101e9610455565b6040805160ff9092168252519081900360200190f35b61019961045e565b61017d6004803603604081101561021d57600080fd5b506001600160a01b038135169060200135610464565b61025f6004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104b2565b005b6101996004803603602081101561027757600080fd5b50356001600160a01b03166104c0565b6100dc6104db565b61017d600480360360408110156102a557600080fd5b506001600160a01b03813516906020013561053c565b61017d600480360360408110156102d157600080fd5b506001600160a01b0381351690602001356105a4565b610199600480360360408110156102fd57600080fd5b506001600160a01b03813581169160200135166105b8565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a15780601f10610376576101008083540402835291602001916103a1565b820191906000526020600020905b81548152906001019060200180831161038457829003601f168201915b5050505050905090565b60006103bf6103b86105e3565b84846105e7565b50600192915050565b60025490565b60006103db8484846106d3565b61044b846103e76105e3565b61044685604051806060016040528060288152602001610b08602891396001600160a01b038a166000908152600160205260408120906104256105e3565b6001600160a01b03168152602081019190915260400160002054919061082e565b6105e7565b5060019392505050565b60055460ff1690565b60065490565b60006103bf6104716105e3565b8461044685600160006104826105e3565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906108c5565b6104bc8282610926565b5050565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a15780601f10610376576101008083540402835291602001916103a1565b60006103bf6105496105e3565b8461044685604051806060016040528060258152602001610b7960259139600160006105736105e3565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061082e565b60006103bf6105b16105e3565b84846106d3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661062c5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b556024913960400191505060405180910390fd5b6001600160a01b0382166106715760405162461bcd60e51b8152600401808060200182810382526022815260200180610ac06022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107185760405162461bcd60e51b8152600401808060200182810382526025815260200180610b306025913960400191505060405180910390fd5b6001600160a01b03821661075d5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a9d6023913960400191505060405180910390fd5b610768838383610a16565b6107a581604051806060016040528060268152602001610ae2602691396001600160a01b038616600090815260208190526040902054919061082e565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107d490826108c5565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108bd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561088257818101518382015260200161086a565b50505050905090810190601f1680156108af5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561091f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610981576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61098d60008383610a16565b60025461099a90826108c5565b6002556001600160a01b0382166000908152602081905260409020546109c090826108c5565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b610a21838383610a97565b6001600160a01b038316610a9757600654610a4482610a3e6103c8565b906108c5565b1115610a97576040805162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015290519081900360640190fd5b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f072699eb74495ccfa543a2eb09468c0858f86e4c5f96117f856431e680124b164736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "cap", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "cap", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "cap()": {"details": "Returns the cap on the token's total supply."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20DecimalsMock": {"contractName": "ERC20DecimalsMock", "sourceId": "mocks/ERC20DecimalsMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162000cab38038062000cab833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260209081015185519093508592508491620001bd916003918501906200020d565b508051620001d39060049060208401906200020d565b50506005805460ff1916601217905550620001ee81620001f7565b505050620002a9565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200025057805160ff191683800117855562000280565b8280016001018555821562000280579182015b828111156200028057825182559160200191906001019062000263565b506200028e92915062000292565b5090565b5b808211156200028e576000815560010162000293565b6109f280620002b96000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610573565b8484610577565b50600192915050565b60025490565b600061037f848484610663565b6103ef8461038b610573565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c9610573565b6001600160a01b0316815260208101919091526040016000205491906107be565b610577565b5060019392505050565b60055460ff1690565b600061036361040f610573565b846103ea8560016000610420610573565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610855565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d9610573565b846103ea856040518060600160405280602581526020016109986025913960016000610503610573565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906107be565b6000610363610541610573565b8484610663565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105bc5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106015760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106a85760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b0382166106ed5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6106f88383836108b6565b61073581604051806060016040528060268152602001610901602691396001600160a01b03861660009081526020819052604090205491906107be565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107649082610855565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561084d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108af576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220d6f675acde48b6080d8580aff5a472fc5b3ef6f647fd1e277a7cb79687ad5b5564736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610573565b8484610577565b50600192915050565b60025490565b600061037f848484610663565b6103ef8461038b610573565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c9610573565b6001600160a01b0316815260208101919091526040016000205491906107be565b610577565b5060019392505050565b60055460ff1690565b600061036361040f610573565b846103ea8560016000610420610573565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610855565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d9610573565b846103ea856040518060600160405280602581526020016109986025913960016000610503610573565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906107be565b6000610363610541610573565b8484610663565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105bc5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106015760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106a85760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b0382166106ed5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6106f88383836108b6565b61073581604051806060016040528060268152602001610901602691396001600160a01b03861660009081526020819052604090205491906107be565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107649082610855565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561084d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108af576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220d6f675acde48b6080d8580aff5a472fc5b3ef6f647fd1e277a7cb79687ad5b5564736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "decimals", "type": "uint8", "internalType": "uint8"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20Mock": {"contractName": "ERC20Mock", "sourceId": "mocks/ERC20Mock.sol", "deploymentBytecode": {"bytecode": "0x6080604052604051620011b8380380620011b8833981810160405260808110156200002957600080fd5b81019080805160405193929190846401000000008211156200004a57600080fd5b9083019060208201858111156200006057600080fd5b82516401000000008111828201881017156200007b57600080fd5b82525081516020918201929091019080838360005b83811015620000aa57818101518382015260200162000090565b50505050905090810190601f168015620000d85780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620000fc57600080fd5b9083019060208201858111156200011257600080fd5b82516401000000008111828201881017156200012d57600080fd5b82525081516020918201929091019080838360005b838110156200015c57818101518382015260200162000142565b50505050905090810190601f1680156200018a5780820380516001836020036101000a031916815260200191505b50604090815260208281015192909101518651929450925085918591620001b79160039185019062000369565b508051620001cd90600490602084019062000369565b50506005805460ff1916601217905550620001e98282620001f3565b5050505062000405565b6001600160a01b0382166200024f576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6200025d6000838362000302565b62000279816002546200030760201b620006b81790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620002ac918390620006b862000307821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b60008282018381101562000362576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003ac57805160ff1916838001178555620003dc565b82800160010185558215620003dc579182015b82811115620003dc578251825591602001919060010190620003bf565b50620003ea929150620003ee565b5090565b5b80821115620003ea5760008155600101620003ef565b610da380620004156000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806340c10f19116100975780639dc29fac116100665780639dc29fac14610319578063a457c2d714610345578063a9059cbb14610371578063dd62ed3e1461039d576100f5565b806340c10f191461028957806356189cb4146102b557806370a08231146102eb57806395d89b4114610311576100f5565b8063222f5be0116100d3578063222f5be0146101d157806323b872dd14610209578063313ce5671461023f578063395093511461025d576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b6101026103cb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b038135169060200135610461565b604080519115158252519081900360200190f35b6101bf61047e565b60408051918252519081900360200190f35b610207600480360360608110156101e757600080fd5b506001600160a01b03813581169160208101359091169060400135610484565b005b6101a36004803603606081101561021f57600080fd5b506001600160a01b03813581169160208101359091169060400135610494565b61024761051b565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561027357600080fd5b506001600160a01b038135169060200135610524565b6102076004803603604081101561029f57600080fd5b506001600160a01b038135169060200135610572565b610207600480360360608110156102cb57600080fd5b506001600160a01b03813581169160208101359091169060400135610580565b6101bf6004803603602081101561030157600080fd5b50356001600160a01b031661058b565b6101026105a6565b6102076004803603604081101561032f57600080fd5b506001600160a01b038135169060200135610607565b6101a36004803603604081101561035b57600080fd5b506001600160a01b038135169060200135610611565b6101a36004803603604081101561038757600080fd5b506001600160a01b038135169060200135610679565b6101bf600480360360408110156103b357600080fd5b506001600160a01b038135811691602001351661068d565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104575780601f1061042c57610100808354040283529160200191610457565b820191906000526020600020905b81548152906001019060200180831161043a57829003601f168201915b5050505050905090565b600061047561046e610719565b848461071d565b50600192915050565b60025490565b61048f838383610809565b505050565b60006104a1848484610809565b610511846104ad610719565b61050c85604051806060016040528060288152602001610cb7602891396001600160a01b038a166000908152600160205260408120906104eb610719565b6001600160a01b031681526020810191909152604001600020549190610964565b61071d565b5060019392505050565b60055460ff1690565b6000610475610531610719565b8461050c8560016000610542610719565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906106b8565b61057c82826109fb565b5050565b61048f83838361071d565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104575780601f1061042c57610100808354040283529160200191610457565b61057c8282610aeb565b600061047561061e610719565b8461050c85604051806060016040528060258152602001610d496025913960016000610648610719565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610964565b6000610475610686610719565b8484610809565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600082820183811015610712576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166107625760405162461bcd60e51b8152600401808060200182810382526024815260200180610d256024913960400191505060405180910390fd5b6001600160a01b0382166107a75760405162461bcd60e51b8152600401808060200182810382526022815260200180610c6f6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661084e5760405162461bcd60e51b8152600401808060200182810382526025815260200180610d006025913960400191505060405180910390fd5b6001600160a01b0382166108935760405162461bcd60e51b8152600401808060200182810382526023815260200180610c2a6023913960400191505060405180910390fd5b61089e83838361048f565b6108db81604051806060016040528060268152602001610c91602691396001600160a01b0386166000908152602081905260409020549190610964565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461090a90826106b8565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109f35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109b85781810151838201526020016109a0565b50505050905090810190601f1680156109e55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610a56576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610a626000838361048f565b600254610a6f90826106b8565b6002556001600160a01b038216600090815260208190526040902054610a9590826106b8565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610b305760405162461bcd60e51b8152600401808060200182810382526021815260200180610cdf6021913960400191505060405180910390fd5b610b3c8260008361048f565b610b7981604051806060016040528060228152602001610c4d602291396001600160a01b0385166000908152602081905260409020549190610964565b6001600160a01b038316600090815260208190526040902055600254610b9f9082610be7565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061071283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061096456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212203c8e5f6f37be6acafbb771b82f49dfeff48439c3c34efdc3ef71879cb642661a64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806340c10f19116100975780639dc29fac116100665780639dc29fac14610319578063a457c2d714610345578063a9059cbb14610371578063dd62ed3e1461039d576100f5565b806340c10f191461028957806356189cb4146102b557806370a08231146102eb57806395d89b4114610311576100f5565b8063222f5be0116100d3578063222f5be0146101d157806323b872dd14610209578063313ce5671461023f578063395093511461025d576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b6101026103cb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b038135169060200135610461565b604080519115158252519081900360200190f35b6101bf61047e565b60408051918252519081900360200190f35b610207600480360360608110156101e757600080fd5b506001600160a01b03813581169160208101359091169060400135610484565b005b6101a36004803603606081101561021f57600080fd5b506001600160a01b03813581169160208101359091169060400135610494565b61024761051b565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561027357600080fd5b506001600160a01b038135169060200135610524565b6102076004803603604081101561029f57600080fd5b506001600160a01b038135169060200135610572565b610207600480360360608110156102cb57600080fd5b506001600160a01b03813581169160208101359091169060400135610580565b6101bf6004803603602081101561030157600080fd5b50356001600160a01b031661058b565b6101026105a6565b6102076004803603604081101561032f57600080fd5b506001600160a01b038135169060200135610607565b6101a36004803603604081101561035b57600080fd5b506001600160a01b038135169060200135610611565b6101a36004803603604081101561038757600080fd5b506001600160a01b038135169060200135610679565b6101bf600480360360408110156103b357600080fd5b506001600160a01b038135811691602001351661068d565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104575780601f1061042c57610100808354040283529160200191610457565b820191906000526020600020905b81548152906001019060200180831161043a57829003601f168201915b5050505050905090565b600061047561046e610719565b848461071d565b50600192915050565b60025490565b61048f838383610809565b505050565b60006104a1848484610809565b610511846104ad610719565b61050c85604051806060016040528060288152602001610cb7602891396001600160a01b038a166000908152600160205260408120906104eb610719565b6001600160a01b031681526020810191909152604001600020549190610964565b61071d565b5060019392505050565b60055460ff1690565b6000610475610531610719565b8461050c8560016000610542610719565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906106b8565b61057c82826109fb565b5050565b61048f83838361071d565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104575780601f1061042c57610100808354040283529160200191610457565b61057c8282610aeb565b600061047561061e610719565b8461050c85604051806060016040528060258152602001610d496025913960016000610648610719565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610964565b6000610475610686610719565b8484610809565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600082820183811015610712576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166107625760405162461bcd60e51b8152600401808060200182810382526024815260200180610d256024913960400191505060405180910390fd5b6001600160a01b0382166107a75760405162461bcd60e51b8152600401808060200182810382526022815260200180610c6f6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661084e5760405162461bcd60e51b8152600401808060200182810382526025815260200180610d006025913960400191505060405180910390fd5b6001600160a01b0382166108935760405162461bcd60e51b8152600401808060200182810382526023815260200180610c2a6023913960400191505060405180910390fd5b61089e83838361048f565b6108db81604051806060016040528060268152602001610c91602691396001600160a01b0386166000908152602081905260409020549190610964565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461090a90826106b8565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109f35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109b85781810151838201526020016109a0565b50505050905090810190601f1680156109e55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610a56576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610a626000838361048f565b600254610a6f90826106b8565b6002556001600160a01b038216600090815260208190526040902054610a9590826106b8565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610b305760405162461bcd60e51b8152600401808060200182810382526021815260200180610cdf6021913960400191505060405180910390fd5b610b3c8260008361048f565b610b7981604051806060016040528060228152602001610c4d602291396001600160a01b0385166000908152602081905260409020549190610964565b6001600160a01b038316600090815260208190526040902055600254610b9f9082610be7565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061071283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061096456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212203c8e5f6f37be6acafbb771b82f49dfeff48439c3c34efdc3ef71879cb642661a64736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "payable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "initialAccount", "type": "address", "internalType": "address"}, {"name": "initialBalance", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "approveInternal", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferInternal", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20PausableMock": {"contractName": "ERC20PausableMock", "sourceId": "mocks/ERC20PausableMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b50604051620013cb380380620013cb833981810160405260808110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604090815260208281015192909101518651929450925085918591620001c591600391850190620003ec565b508051620001db906004906020840190620003ec565b50506005805461ff001960ff1990911660121716905550620001fe828262000208565b5050505062000488565b6001600160a01b03821662000264576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620002726000838362000317565b6200028e816002546200037c60201b620006741790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620002c1918390620006746200037c821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6200032f8383836200037760201b620006d51760201c565b62000339620003de565b15620003775760405162461bcd60e51b815260040180806020018281038252602a815260200180620013a1602a913960400191505060405180910390fd5b505050565b600082820183811015620003d7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600554610100900460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200042f57805160ff19168380011785556200045f565b828001600101855582156200045f579182015b828111156200045f57825182559160200191906001019062000442565b506200046d92915062000471565b5090565b5b808211156200046d576000815560010162000472565b610f0980620004986000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80635c975abb116100975780639dc29fac116100665780639dc29fac146102d0578063a457c2d7146102fc578063a9059cbb14610328578063dd62ed3e1461035457610100565b80635c975abb1461029257806370a082311461029a5780638456cb59146102c057806395d89b41146102c857610100565b8063313ce567116100d3578063313ce5671461021257806339509351146102305780633f4ba83a1461025c57806340c10f191461026657610100565b806306fdde0314610105578063095ea7b31461018257806318160ddd146101c257806323b872dd146101dc575b600080fd5b61010d610382565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610418565b604080519115158252519081900360200190f35b6101ca610435565b60408051918252519081900360200190f35b6101ae600480360360608110156101f257600080fd5b506001600160a01b0381358116916020810135909116906040013561043b565b61021a6104c2565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024657600080fd5b506001600160a01b0381351690602001356104cb565b610264610519565b005b6102646004803603604081101561027c57600080fd5b506001600160a01b038135169060200135610523565b6101ae610531565b6101ca600480360360208110156102b057600080fd5b50356001600160a01b031661053f565b61026461055a565b61010d610562565b610264600480360360408110156102e657600080fd5b506001600160a01b0381351690602001356105c3565b6101ae6004803603604081101561031257600080fd5b506001600160a01b0381351690602001356105cd565b6101ae6004803603604081101561033e57600080fd5b506001600160a01b038135169060200135610635565b6101ca6004803603604081101561036a57600080fd5b506001600160a01b0381358116916020013516610649565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561040e5780601f106103e35761010080835404028352916020019161040e565b820191906000526020600020905b8154815290600101906020018083116103f157829003601f168201915b5050505050905090565b600061042c6104256106da565b84846106de565b50600192915050565b60025490565b60006104488484846107ca565b6104b8846104546106da565b6104b385604051806060016040528060288152602001610df3602891396001600160a01b038a166000908152600160205260408120906104926106da565b6001600160a01b031681526020810191909152604001600020549190610925565b6106de565b5060019392505050565b60055460ff1690565b600061042c6104d86106da565b846104b385600160006104e96106da565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610674565b6105216109bc565b565b61052d8282610a60565b5050565b600554610100900460ff1690565b6001600160a01b031660009081526020819052604090205490565b610521610b50565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561040e5780601f106103e35761010080835404028352916020019161040e565b61052d8282610bd8565b600061042c6105da6106da565b846104b385604051806060016040528060258152602001610e8560259139600160006106046106da565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610925565b600061042c6106426106da565b84846107ca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156106ce576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b505050565b3390565b6001600160a01b0383166107235760405162461bcd60e51b8152600401808060200182810382526024815260200180610e616024913960400191505060405180910390fd5b6001600160a01b0382166107685760405162461bcd60e51b8152600401808060200182810382526022815260200180610dab6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661080f5760405162461bcd60e51b8152600401808060200182810382526025815260200180610e3c6025913960400191505060405180910390fd5b6001600160a01b0382166108545760405162461bcd60e51b8152600401808060200182810382526023815260200180610d666023913960400191505060405180910390fd5b61085f838383610cd4565b61089c81604051806060016040528060268152602001610dcd602691396001600160a01b0386166000908152602081905260409020549190610925565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108cb9082610674565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109b45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610979578181015183820152602001610961565b50505050905090810190601f1680156109a65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600554610100900460ff16610a0f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6005805461ff00191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a436106da565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216610abb576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610ac760008383610cd4565b600254610ad49082610674565b6002556001600160a01b038216600090815260208190526040902054610afa9082610674565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600554610100900460ff1615610ba0576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6005805461ff0019166101001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610a436106da565b6001600160a01b038216610c1d5760405162461bcd60e51b8152600401808060200182810382526021815260200180610e1b6021913960400191505060405180910390fd5b610c2982600083610cd4565b610c6681604051806060016040528060228152602001610d89602291396001600160a01b0385166000908152602081905260409020549190610925565b6001600160a01b038316600090815260208190526040902055600254610c8c9082610d23565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b610cdf8383836106d5565b610ce7610531565b156106d55760405162461bcd60e51b815260040180806020018281038252602a815260200180610eaa602a913960400191505060405180910390fd5b60006106ce83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061092556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f45524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564a2646970667358221220543cd9d4501c52e08b9d80255ed22b7e992a6a393826e29d26f1aa1447a7910464736f6c634300060c003345524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c80635c975abb116100975780639dc29fac116100665780639dc29fac146102d0578063a457c2d7146102fc578063a9059cbb14610328578063dd62ed3e1461035457610100565b80635c975abb1461029257806370a082311461029a5780638456cb59146102c057806395d89b41146102c857610100565b8063313ce567116100d3578063313ce5671461021257806339509351146102305780633f4ba83a1461025c57806340c10f191461026657610100565b806306fdde0314610105578063095ea7b31461018257806318160ddd146101c257806323b872dd146101dc575b600080fd5b61010d610382565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610418565b604080519115158252519081900360200190f35b6101ca610435565b60408051918252519081900360200190f35b6101ae600480360360608110156101f257600080fd5b506001600160a01b0381358116916020810135909116906040013561043b565b61021a6104c2565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024657600080fd5b506001600160a01b0381351690602001356104cb565b610264610519565b005b6102646004803603604081101561027c57600080fd5b506001600160a01b038135169060200135610523565b6101ae610531565b6101ca600480360360208110156102b057600080fd5b50356001600160a01b031661053f565b61026461055a565b61010d610562565b610264600480360360408110156102e657600080fd5b506001600160a01b0381351690602001356105c3565b6101ae6004803603604081101561031257600080fd5b506001600160a01b0381351690602001356105cd565b6101ae6004803603604081101561033e57600080fd5b506001600160a01b038135169060200135610635565b6101ca6004803603604081101561036a57600080fd5b506001600160a01b0381358116916020013516610649565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561040e5780601f106103e35761010080835404028352916020019161040e565b820191906000526020600020905b8154815290600101906020018083116103f157829003601f168201915b5050505050905090565b600061042c6104256106da565b84846106de565b50600192915050565b60025490565b60006104488484846107ca565b6104b8846104546106da565b6104b385604051806060016040528060288152602001610df3602891396001600160a01b038a166000908152600160205260408120906104926106da565b6001600160a01b031681526020810191909152604001600020549190610925565b6106de565b5060019392505050565b60055460ff1690565b600061042c6104d86106da565b846104b385600160006104e96106da565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610674565b6105216109bc565b565b61052d8282610a60565b5050565b600554610100900460ff1690565b6001600160a01b031660009081526020819052604090205490565b610521610b50565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561040e5780601f106103e35761010080835404028352916020019161040e565b61052d8282610bd8565b600061042c6105da6106da565b846104b385604051806060016040528060258152602001610e8560259139600160006106046106da565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610925565b600061042c6106426106da565b84846107ca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156106ce576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b505050565b3390565b6001600160a01b0383166107235760405162461bcd60e51b8152600401808060200182810382526024815260200180610e616024913960400191505060405180910390fd5b6001600160a01b0382166107685760405162461bcd60e51b8152600401808060200182810382526022815260200180610dab6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661080f5760405162461bcd60e51b8152600401808060200182810382526025815260200180610e3c6025913960400191505060405180910390fd5b6001600160a01b0382166108545760405162461bcd60e51b8152600401808060200182810382526023815260200180610d666023913960400191505060405180910390fd5b61085f838383610cd4565b61089c81604051806060016040528060268152602001610dcd602691396001600160a01b0386166000908152602081905260409020549190610925565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108cb9082610674565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109b45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610979578181015183820152602001610961565b50505050905090810190601f1680156109a65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600554610100900460ff16610a0f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6005805461ff00191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a436106da565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216610abb576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610ac760008383610cd4565b600254610ad49082610674565b6002556001600160a01b038216600090815260208190526040902054610afa9082610674565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600554610100900460ff1615610ba0576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6005805461ff0019166101001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610a436106da565b6001600160a01b038216610c1d5760405162461bcd60e51b8152600401808060200182810382526021815260200180610e1b6021913960400191505060405180910390fd5b610c2982600083610cd4565b610c6681604051806060016040528060228152602001610d89602291396001600160a01b0385166000908152602081905260409020549190610925565b6001600160a01b038316600090815260208190526040902055600254610c8c9082610d23565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b610cdf8383836106d5565b610ce7610531565b156106d55760405162461bcd60e51b815260040180806020018281038252602a815260200180610eaa602a913960400191505060405180910390fd5b60006106ce83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061092556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f45524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564a2646970667358221220543cd9d4501c52e08b9d80255ed22b7e992a6a393826e29d26f1aa1447a7910464736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "initialAccount", "type": "address", "internalType": "address"}, {"name": "initialBalance", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20SnapshotMock": {"contractName": "ERC20SnapshotMock", "sourceId": "mocks/ERC20SnapshotMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b506040516200168b3803806200168b833981810160405260808110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604090815260208281015192909101518651929450925085918591620001c591600391850190620004a8565b508051620001db906004906020840190620004a8565b50506005805460ff1916601217905550620001f7828262000201565b5050505062000544565b6200020c8262000231565b6200021662000262565b6200022d82826200027460201b620007161760201c565b5050565b6001600160a01b03811660009081526006602052604090206200025f90620002598362000383565b620003a2565b50565b6200027260076200025962000403565b565b6001600160a01b038216620002d0576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620002de60008383620003fe565b620002fa816002546200040960201b620008061790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200032d9183906200080662000409821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0381166000908152602081905260409020545b919050565b6000620003bb60096200046b60201b620008671760201c565b905080620003c9846200046f565b1015620003fe578254600181810185556000858152602080822090930184905581860180549283018155815291909120018290555b505050565b60025490565b60008282018381101562000464576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b5490565b805460009062000482575060006200039d565b8154829060001981019081106200049557fe5b906000526020600020015490506200039d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004eb57805160ff19168380011785556200051b565b828001600101855582156200051b579182015b828111156200051b578251825591602001919060010190620004fe565b50620005299291506200052d565b5090565b5b808211156200052957600081556001016200052e565b61113780620005546000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806370a08231116100975780639dc29fac116100665780639dc29fac14610309578063a457c2d714610335578063a9059cbb14610361578063dd62ed3e1461038d57610100565b806370a08231146102b657806395d89b41146102dc5780639711715a146102e4578063981b24d0146102ec57610100565b8063313ce567116100d3578063313ce56714610212578063395093511461023057806340c10f191461025c5780634ee2cd7e1461028a57610100565b806306fdde0314610105578063095ea7b31461018257806318160ddd146101c257806323b872dd146101dc575b600080fd5b61010d6103bb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610451565b604080519115158252519081900360200190f35b6101ca61046f565b60408051918252519081900360200190f35b6101ae600480360360608110156101f257600080fd5b506001600160a01b03813581169160208101359091169060400135610475565b61021a6104fc565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024657600080fd5b506001600160a01b038135169060200135610505565b6102886004803603604081101561027257600080fd5b506001600160a01b038135169060200135610553565b005b6101ca600480360360408110156102a057600080fd5b506001600160a01b038135169060200135610561565b6101ca600480360360208110156102cc57600080fd5b50356001600160a01b03166105aa565b61010d6105c9565b61028861062a565b6101ca6004803603602081101561030257600080fd5b5035610635565b6102886004803603604081101561031f57600080fd5b506001600160a01b038135169060200135610665565b6101ae6004803603604081101561034b57600080fd5b506001600160a01b03813516906020013561066f565b6101ae6004803603604081101561037757600080fd5b506001600160a01b0381351690602001356106d7565b6101ca600480360360408110156103a357600080fd5b506001600160a01b03813581169160200135166106eb565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104475780601f1061041c57610100808354040283529160200191610447565b820191906000526020600020905b81548152906001019060200180831161042a57829003601f168201915b5050505050905090565b600061046561045e61086b565b848461086f565b5060015b92915050565b60025490565b600061048284848461095b565b6104f28461048e61086b565b6104ed8560405180606001604052806028815260200161104b602891396001600160a01b038a166000908152600160205260408120906104cc61086b565b6001600160a01b03168152602081019190915260400160002054919061097d565b61086f565b5060019392505050565b60055460ff1690565b600061046561051261086b565b846104ed856001600061052361086b565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610806565b61055d8282610a14565b5050565b6001600160a01b038216600090815260066020526040812081908190610588908590610a2f565b915091508161059f5761059a856105aa565b6105a1565b805b95945050505050565b6001600160a01b0381166000908152602081905260409020545b919050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104475780601f1061041c57610100808354040283529160200191610447565b610632610b2c565b50565b6000806000610645846007610a2f565b915091508161065b5761065661046f565b61065d565b805b949350505050565b61055d8282610b80565b600061046561067c61086b565b846104ed856040518060600160405280602581526020016110dd60259139600160006106a661086b565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061097d565b60006104656106e461086b565b848461095b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038216610771576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61077d60008383610978565b60025461078a9082610806565b6002556001600160a01b0382166000908152602081905260409020546107b09082610806565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082820183811015610860576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b5490565b3390565b6001600160a01b0383166108b45760405162461bcd60e51b81526004018080602001828103825260248152602001806110b96024913960400191505060405180910390fd5b6001600160a01b0382166108f95760405162461bcd60e51b81526004018080602001828103825260228152602001806110036022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b61096483610b9b565b61096d82610b9b565b610978838383610bc5565b505050565b60008184841115610a0c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109d15781810151838201526020016109b9565b50505050905090810190601f1680156109fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b610a1d82610b9b565b610a25610d20565b61055d8282610716565b60008060008411610a80576040805162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b604482015290519081900360640190fd5b610a8a6009610867565b841115610ade576040805162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e74206964000000604482015290519081900360640190fd5b6000610aea8486610d2f565b8454909150811415610b03576000809250925050610b25565b6001846001018281548110610b1457fe5b906000526020600020015492509250505b9250929050565b6000610b386009610dd0565b6000610b446009610867565b6040805182815290519192507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67919081900360200190a1905090565b610b8982610b9b565b610b91610d20565b61055d8282610dd9565b6001600160a01b038116600090815260066020526040902061063290610bc0836105aa565b610ed5565b6001600160a01b038316610c0a5760405162461bcd60e51b81526004018080602001828103825260258152602001806110946025913960400191505060405180910390fd5b6001600160a01b038216610c4f5760405162461bcd60e51b8152600401808060200182810382526023815260200180610fbe6023913960400191505060405180910390fd5b610c5a838383610978565b610c9781604051806060016040528060268152602001611025602691396001600160a01b038616600090815260208190526040902054919061097d565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610cc69082610806565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b610d2d6007610bc061046f565b565b8154600090610d4057506000610469565b82546000905b80821015610d8f576000610d5a8383610f21565b905084868281548110610d6957fe5b90600052602060002001541115610d8257809150610d89565b8060010192505b50610d46565b600082118015610db7575083856001840381548110610daa57fe5b9060005260206000200154145b15610dc85750600019019050610469565b509050610469565b80546001019055565b6001600160a01b038216610e1e5760405162461bcd60e51b81526004018080602001828103825260218152602001806110736021913960400191505060405180910390fd5b610e2a82600083610978565b610e6781604051806060016040528060228152602001610fe1602291396001600160a01b038516600090815260208190526040902054919061097d565b6001600160a01b038316600090815260208190526040902055600254610e8d9082610f46565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000610ee16009610867565b905080610eed84610f88565b1015610978578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b60006002808306600285060181610f3457fe5b04600283046002850401019392505050565b600061086083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061097d565b8054600090610f99575060006105c4565b815482906000198101908110610fab57fe5b906000526020600020015490506105c456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202317f7031e9e554476a8ce72545cac3c18ba673bf5d53d145f730e108e71228764736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c806370a08231116100975780639dc29fac116100665780639dc29fac14610309578063a457c2d714610335578063a9059cbb14610361578063dd62ed3e1461038d57610100565b806370a08231146102b657806395d89b41146102dc5780639711715a146102e4578063981b24d0146102ec57610100565b8063313ce567116100d3578063313ce56714610212578063395093511461023057806340c10f191461025c5780634ee2cd7e1461028a57610100565b806306fdde0314610105578063095ea7b31461018257806318160ddd146101c257806323b872dd146101dc575b600080fd5b61010d6103bb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610451565b604080519115158252519081900360200190f35b6101ca61046f565b60408051918252519081900360200190f35b6101ae600480360360608110156101f257600080fd5b506001600160a01b03813581169160208101359091169060400135610475565b61021a6104fc565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024657600080fd5b506001600160a01b038135169060200135610505565b6102886004803603604081101561027257600080fd5b506001600160a01b038135169060200135610553565b005b6101ca600480360360408110156102a057600080fd5b506001600160a01b038135169060200135610561565b6101ca600480360360208110156102cc57600080fd5b50356001600160a01b03166105aa565b61010d6105c9565b61028861062a565b6101ca6004803603602081101561030257600080fd5b5035610635565b6102886004803603604081101561031f57600080fd5b506001600160a01b038135169060200135610665565b6101ae6004803603604081101561034b57600080fd5b506001600160a01b03813516906020013561066f565b6101ae6004803603604081101561037757600080fd5b506001600160a01b0381351690602001356106d7565b6101ca600480360360408110156103a357600080fd5b506001600160a01b03813581169160200135166106eb565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104475780601f1061041c57610100808354040283529160200191610447565b820191906000526020600020905b81548152906001019060200180831161042a57829003601f168201915b5050505050905090565b600061046561045e61086b565b848461086f565b5060015b92915050565b60025490565b600061048284848461095b565b6104f28461048e61086b565b6104ed8560405180606001604052806028815260200161104b602891396001600160a01b038a166000908152600160205260408120906104cc61086b565b6001600160a01b03168152602081019190915260400160002054919061097d565b61086f565b5060019392505050565b60055460ff1690565b600061046561051261086b565b846104ed856001600061052361086b565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610806565b61055d8282610a14565b5050565b6001600160a01b038216600090815260066020526040812081908190610588908590610a2f565b915091508161059f5761059a856105aa565b6105a1565b805b95945050505050565b6001600160a01b0381166000908152602081905260409020545b919050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104475780601f1061041c57610100808354040283529160200191610447565b610632610b2c565b50565b6000806000610645846007610a2f565b915091508161065b5761065661046f565b61065d565b805b949350505050565b61055d8282610b80565b600061046561067c61086b565b846104ed856040518060600160405280602581526020016110dd60259139600160006106a661086b565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061097d565b60006104656106e461086b565b848461095b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038216610771576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61077d60008383610978565b60025461078a9082610806565b6002556001600160a01b0382166000908152602081905260409020546107b09082610806565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082820183811015610860576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b5490565b3390565b6001600160a01b0383166108b45760405162461bcd60e51b81526004018080602001828103825260248152602001806110b96024913960400191505060405180910390fd5b6001600160a01b0382166108f95760405162461bcd60e51b81526004018080602001828103825260228152602001806110036022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b61096483610b9b565b61096d82610b9b565b610978838383610bc5565b505050565b60008184841115610a0c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109d15781810151838201526020016109b9565b50505050905090810190601f1680156109fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b610a1d82610b9b565b610a25610d20565b61055d8282610716565b60008060008411610a80576040805162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b604482015290519081900360640190fd5b610a8a6009610867565b841115610ade576040805162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e74206964000000604482015290519081900360640190fd5b6000610aea8486610d2f565b8454909150811415610b03576000809250925050610b25565b6001846001018281548110610b1457fe5b906000526020600020015492509250505b9250929050565b6000610b386009610dd0565b6000610b446009610867565b6040805182815290519192507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67919081900360200190a1905090565b610b8982610b9b565b610b91610d20565b61055d8282610dd9565b6001600160a01b038116600090815260066020526040902061063290610bc0836105aa565b610ed5565b6001600160a01b038316610c0a5760405162461bcd60e51b81526004018080602001828103825260258152602001806110946025913960400191505060405180910390fd5b6001600160a01b038216610c4f5760405162461bcd60e51b8152600401808060200182810382526023815260200180610fbe6023913960400191505060405180910390fd5b610c5a838383610978565b610c9781604051806060016040528060268152602001611025602691396001600160a01b038616600090815260208190526040902054919061097d565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610cc69082610806565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b610d2d6007610bc061046f565b565b8154600090610d4057506000610469565b82546000905b80821015610d8f576000610d5a8383610f21565b905084868281548110610d6957fe5b90600052602060002001541115610d8257809150610d89565b8060010192505b50610d46565b600082118015610db7575083856001840381548110610daa57fe5b9060005260206000200154145b15610dc85750600019019050610469565b509050610469565b80546001019055565b6001600160a01b038216610e1e5760405162461bcd60e51b81526004018080602001828103825260218152602001806110736021913960400191505060405180910390fd5b610e2a82600083610978565b610e6781604051806060016040528060228152602001610fe1602291396001600160a01b038516600090815260208190526040902054919061097d565b6001600160a01b038316600090815260208190526040902055600254610e8d9082610f46565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000610ee16009610867565b905080610eed84610f88565b1015610978578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b60006002808306600285060181610f3457fe5b04600283046002850401019392505050565b600061086083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061097d565b8054600090610f99575060006105c4565b815482906000198101908110610fab57fe5b906000526020600020015490506105c456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202317f7031e9e554476a8ce72545cac3c18ba673bf5d53d145f730e108e71228764736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "initialAccount", "type": "address", "internalType": "address"}, {"name": "initialBalance", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Snapshot", "inputs": [{"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfAt", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "snapshotId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "snapshot", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "totalSupplyAt", "stateMutability": "view", "inputs": [{"name": "snapshotId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "balanceOfAt(address,uint256)": {"details": "Retrieves the balance of `account` at the time `snapshotId` was created."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "totalSupplyAt(uint256)": {"details": "Retrieves the total supply at the time `snapshotId` was created."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC721BurnableMock": {"contractName": "ERC721BurnableMock", "sourceId": "mocks/ERC721BurnableMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b506040516200214938038062002149833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250839150829050620001b56301ffc9a760e01b62000221565b8151620001ca906006906020850190620002a6565b508051620001e0906007906020840190620002a6565b50620001f36380ac58cd60e01b62000221565b62000205635b5e139f60e01b62000221565b6200021763780e9d6360e01b62000221565b5050505062000342565b6001600160e01b0319808216141562000281576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002e957805160ff191683800117855562000319565b8280016001018555821562000319579182015b8281111562000319578251825591602001919060010190620002fc565b50620003279291506200032b565b5090565b5b808211156200032757600081556001016200032c565b611df780620003526000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806342966c68116100ad57806395d89b411161007157806395d89b41146103a8578063a22cb465146103b0578063b88d4fde146103de578063c87b56dd146104a4578063e985e9c5146104c157610121565b806342966c68146103235780634f6ccce7146103405780636352211e1461035d5780636c0360eb1461037a57806370a082311461038257610121565b806318160ddd116100f457806318160ddd1461024557806323b872dd1461025f5780632f745c591461029557806340c10f19146102c157806342842e0e146102ed57610121565b806301ffc9a71461012657806306fdde0314610161578063081812fc146101de578063095ea7b314610217575b600080fd5b61014d6004803603602081101561013c57600080fd5b50356001600160e01b0319166104ef565b604080519115158252519081900360200190f35b610169610512565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a357818101518382015260200161018b565b50505050905090810190601f1680156101d05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101fb600480360360208110156101f457600080fd5b50356105a8565b604080516001600160a01b039092168252519081900360200190f35b6102436004803603604081101561022d57600080fd5b506001600160a01b03813516906020013561060a565b005b61024d6106e5565b60408051918252519081900360200190f35b6102436004803603606081101561027557600080fd5b506001600160a01b038135811691602081013590911690604001356106f6565b61024d600480360360408110156102ab57600080fd5b506001600160a01b03813516906020013561074d565b610243600480360360408110156102d757600080fd5b506001600160a01b038135169060200135610778565b6102436004803603606081101561030357600080fd5b506001600160a01b03813581169160208101359091169060400135610786565b6102436004803603602081101561033957600080fd5b50356107a1565b61024d6004803603602081101561035657600080fd5b50356107f3565b6101fb6004803603602081101561037357600080fd5b5035610809565b610169610831565b61024d6004803603602081101561039857600080fd5b50356001600160a01b0316610892565b6101696108fa565b610243600480360360408110156103c657600080fd5b506001600160a01b038135169060200135151561095b565b610243600480360360808110156103f457600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561042f57600080fd5b82018360208201111561044157600080fd5b8035906020019184600183028401116401000000008311171561046357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a60945050505050565b610169600480360360208110156104ba57600080fd5b5035610abe565b61014d600480360360408110156104d757600080fd5b506001600160a01b0381358116916020013516610d65565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b820191906000526020600020905b81548152906001019060200180831161058157829003601f168201915b5050505050905090565b60006105b382610d93565b6105ee5760405162461bcd60e51b815260040180806020018281038252602c815260200180611cbc602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061061582610809565b9050806001600160a01b0316836001600160a01b031614156106685760405162461bcd60e51b8152600401808060200182810382526021815260200180611d406021913960400191505060405180910390fd5b806001600160a01b031661067a610da0565b6001600160a01b0316148061069b575061069b81610696610da0565b610d65565b6106d65760405162461bcd60e51b8152600401808060200182810382526038815260200180611c0f6038913960400191505060405180910390fd5b6106e08383610da4565b505050565b60006106f16002610e12565b905090565b610707610701610da0565b82610e1d565b6107425760405162461bcd60e51b8152600401808060200182810382526031815260200180611d616031913960400191505060405180910390fd5b6106e0838383610ec1565b6001600160a01b038216600090815260016020526040812061076f908361100d565b90505b92915050565b6107828282611019565b5050565b6106e083838360405180602001604052806000815250610a60565b6107ac610701610da0565b6107e75760405162461bcd60e51b8152600401808060200182810382526030815260200180611d926030913960400191505060405180910390fd5b6107f081611147565b50565b600080610801600284611214565b509392505050565b600061077282604051806060016040528060298152602001611c716029913960029190611230565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b60006001600160a01b0382166108d95760405162461bcd60e51b815260040180806020018281038252602a815260200180611c47602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061077290610e12565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b610963610da0565b6001600160a01b0316826001600160a01b031614156109c9576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b80600560006109d6610da0565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a1a610da0565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610a71610a6b610da0565b83610e1d565b610aac5760405162461bcd60e51b8152600401808060200182810382526031815260200180611d616031913960400191505060405180910390fd5b610ab884848484611247565b50505050565b6060610ac982610d93565b610b045760405162461bcd60e51b815260040180806020018281038252602f815260200180611d11602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610b995780601f10610b6e57610100808354040283529160200191610b99565b820191906000526020600020905b815481529060010190602001808311610b7c57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610bc257905061050d565b805115610c93576009816040516020018083805460018160011615610100020316600290048015610c2a5780601f10610c08576101008083540402835291820191610c2a565b820191906000526020600020905b815481529060010190602001808311610c16575b5050825160208401908083835b60208310610c565780518252601f199092019160209182019101610c37565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061050d565b6009610c9e84611299565b6040516020018083805460018160011615610100020316600290048015610cfc5780601f10610cda576101008083540402835291820191610cfc565b820191906000526020600020905b815481529060010190602001808311610ce8575b5050825160208401908083835b60208310610d285780518252601f199092019160209182019101610d09565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610772600283611374565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610dd982610809565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061077282611380565b6000610e2882610d93565b610e635760405162461bcd60e51b815260040180806020018281038252602c815260200180611be3602c913960400191505060405180910390fd5b6000610e6e83610809565b9050806001600160a01b0316846001600160a01b03161480610ea95750836001600160a01b0316610e9e846105a8565b6001600160a01b0316145b80610eb95750610eb98185610d65565b949350505050565b826001600160a01b0316610ed482610809565b6001600160a01b031614610f195760405162461bcd60e51b8152600401808060200182810382526029815260200180611ce86029913960400191505060405180910390fd5b6001600160a01b038216610f5e5760405162461bcd60e51b8152600401808060200182810382526024815260200180611bbf6024913960400191505060405180910390fd5b610f698383836106e0565b610f74600082610da4565b6001600160a01b0383166000908152600160205260409020610f969082611384565b506001600160a01b0382166000908152600160205260409020610fb99082611390565b50610fc66002828461139c565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061076f83836113b2565b6001600160a01b038216611074576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61107d81610d93565b156110cf576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6110db600083836106e0565b6001600160a01b03821660009081526001602052604090206110fd9082611390565b5061110a6002828461139c565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061115282610809565b9050611160816000846106e0565b61116b600083610da4565b60008281526008602052604090205460026000196101006001841615020190911604156111a95760008281526008602052604081206111a991611b12565b6001600160a01b03811660009081526001602052604090206111cb9083611384565b506111d7600283611416565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806112238686611422565b9097909650945050505050565b600061123d84848461149d565b90505b9392505050565b611252848484610ec1565b61125e84848484611567565b610ab85760405162461bcd60e51b8152600401808060200182810382526032815260200180611b8d6032913960400191505060405180910390fd5b6060816112be57506040805180820190915260018152600360fc1b602082015261050d565b8160005b81156112d657600101600a820491506112c2565b60608167ffffffffffffffff811180156112ef57600080fd5b506040519080825280601f01601f19166020018201604052801561131a576020820181803683370190505b50859350905060001982015b831561136b57600a840660300160f81b8282806001900393508151811061134957fe5b60200101906001600160f81b031916908160001a905350600a84049350611326565b50949350505050565b600061076f83836116cf565b5490565b600061076f83836116e7565b600061076f83836117ad565b600061123d84846001600160a01b0385166117f7565b815460009082106113f45760405162461bcd60e51b8152600401808060200182810382526022815260200180611b6b6022913960400191505060405180910390fd5b82600001828154811061140357fe5b9060005260206000200154905092915050565b600061076f838361188e565b8154600090819083106114665760405162461bcd60e51b8152600401808060200182810382526022815260200180611c9a6022913960400191505060405180910390fd5b600084600001848154811061147757fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816115385760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114fd5781810151838201526020016114e5565b50505050905090810190601f16801561152a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061154b57fe5b9060005260206000209060020201600101549150509392505050565b600061157b846001600160a01b0316611962565b61158757506001610eb9565b6060611695630a85bd0160e11b61159c610da0565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156116035781810151838201526020016115eb565b50505050905090810190601f1680156116305780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611b8d603291396001600160a01b038816919061199b565b905060008180602001905160208110156116ae57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156117a3578354600019808301919081019060009087908390811061171a57fe5b906000526020600020015490508087600001848154811061173757fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061176757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610772565b6000915050610772565b60006117b983836116cf565b6117ef57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610772565b506000610772565b60008281526001840160205260408120548061185c575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611240565b8285600001600183038154811061186f57fe5b9060005260206000209060020201600101819055506000915050611240565b600081815260018301602052604081205480156117a357835460001980830191908101906000908790839081106118c157fe5b90600052602060002090600202019050808760000184815481106118e157fe5b60009182526020808320845460029093020191825560019384015491840191909155835482528983019052604090209084019055865487908061192057fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506107729350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610eb9575050151592915050565b606061123d848460008560606119b085611962565b611a01576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611a405780518252601f199092019160209182019101611a21565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611aa2576040519150601f19603f3d011682016040523d82523d6000602084013e611aa7565b606091505b50915091508115611abb579150610eb99050565b805115611acb5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156114fd5781810151838201526020016114e5565b50805460018160011615610100020316600290046000825580601f10611b3857506107f0565b601f0160209004906000526020600020908101906107f091905b80821115611b665760008155600101611b52565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732314275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220d57310d91875bfb1efee349fc18c59693d63944fb23eec0af1bd4cdc7cf94ad064736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101215760003560e01c806342966c68116100ad57806395d89b411161007157806395d89b41146103a8578063a22cb465146103b0578063b88d4fde146103de578063c87b56dd146104a4578063e985e9c5146104c157610121565b806342966c68146103235780634f6ccce7146103405780636352211e1461035d5780636c0360eb1461037a57806370a082311461038257610121565b806318160ddd116100f457806318160ddd1461024557806323b872dd1461025f5780632f745c591461029557806340c10f19146102c157806342842e0e146102ed57610121565b806301ffc9a71461012657806306fdde0314610161578063081812fc146101de578063095ea7b314610217575b600080fd5b61014d6004803603602081101561013c57600080fd5b50356001600160e01b0319166104ef565b604080519115158252519081900360200190f35b610169610512565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a357818101518382015260200161018b565b50505050905090810190601f1680156101d05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101fb600480360360208110156101f457600080fd5b50356105a8565b604080516001600160a01b039092168252519081900360200190f35b6102436004803603604081101561022d57600080fd5b506001600160a01b03813516906020013561060a565b005b61024d6106e5565b60408051918252519081900360200190f35b6102436004803603606081101561027557600080fd5b506001600160a01b038135811691602081013590911690604001356106f6565b61024d600480360360408110156102ab57600080fd5b506001600160a01b03813516906020013561074d565b610243600480360360408110156102d757600080fd5b506001600160a01b038135169060200135610778565b6102436004803603606081101561030357600080fd5b506001600160a01b03813581169160208101359091169060400135610786565b6102436004803603602081101561033957600080fd5b50356107a1565b61024d6004803603602081101561035657600080fd5b50356107f3565b6101fb6004803603602081101561037357600080fd5b5035610809565b610169610831565b61024d6004803603602081101561039857600080fd5b50356001600160a01b0316610892565b6101696108fa565b610243600480360360408110156103c657600080fd5b506001600160a01b038135169060200135151561095b565b610243600480360360808110156103f457600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561042f57600080fd5b82018360208201111561044157600080fd5b8035906020019184600183028401116401000000008311171561046357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a60945050505050565b610169600480360360208110156104ba57600080fd5b5035610abe565b61014d600480360360408110156104d757600080fd5b506001600160a01b0381358116916020013516610d65565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b820191906000526020600020905b81548152906001019060200180831161058157829003601f168201915b5050505050905090565b60006105b382610d93565b6105ee5760405162461bcd60e51b815260040180806020018281038252602c815260200180611cbc602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061061582610809565b9050806001600160a01b0316836001600160a01b031614156106685760405162461bcd60e51b8152600401808060200182810382526021815260200180611d406021913960400191505060405180910390fd5b806001600160a01b031661067a610da0565b6001600160a01b0316148061069b575061069b81610696610da0565b610d65565b6106d65760405162461bcd60e51b8152600401808060200182810382526038815260200180611c0f6038913960400191505060405180910390fd5b6106e08383610da4565b505050565b60006106f16002610e12565b905090565b610707610701610da0565b82610e1d565b6107425760405162461bcd60e51b8152600401808060200182810382526031815260200180611d616031913960400191505060405180910390fd5b6106e0838383610ec1565b6001600160a01b038216600090815260016020526040812061076f908361100d565b90505b92915050565b6107828282611019565b5050565b6106e083838360405180602001604052806000815250610a60565b6107ac610701610da0565b6107e75760405162461bcd60e51b8152600401808060200182810382526030815260200180611d926030913960400191505060405180910390fd5b6107f081611147565b50565b600080610801600284611214565b509392505050565b600061077282604051806060016040528060298152602001611c716029913960029190611230565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b60006001600160a01b0382166108d95760405162461bcd60e51b815260040180806020018281038252602a815260200180611c47602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061077290610e12565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b610963610da0565b6001600160a01b0316826001600160a01b031614156109c9576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b80600560006109d6610da0565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a1a610da0565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610a71610a6b610da0565b83610e1d565b610aac5760405162461bcd60e51b8152600401808060200182810382526031815260200180611d616031913960400191505060405180910390fd5b610ab884848484611247565b50505050565b6060610ac982610d93565b610b045760405162461bcd60e51b815260040180806020018281038252602f815260200180611d11602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610b995780601f10610b6e57610100808354040283529160200191610b99565b820191906000526020600020905b815481529060010190602001808311610b7c57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610bc257905061050d565b805115610c93576009816040516020018083805460018160011615610100020316600290048015610c2a5780601f10610c08576101008083540402835291820191610c2a565b820191906000526020600020905b815481529060010190602001808311610c16575b5050825160208401908083835b60208310610c565780518252601f199092019160209182019101610c37565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061050d565b6009610c9e84611299565b6040516020018083805460018160011615610100020316600290048015610cfc5780601f10610cda576101008083540402835291820191610cfc565b820191906000526020600020905b815481529060010190602001808311610ce8575b5050825160208401908083835b60208310610d285780518252601f199092019160209182019101610d09565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610772600283611374565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610dd982610809565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061077282611380565b6000610e2882610d93565b610e635760405162461bcd60e51b815260040180806020018281038252602c815260200180611be3602c913960400191505060405180910390fd5b6000610e6e83610809565b9050806001600160a01b0316846001600160a01b03161480610ea95750836001600160a01b0316610e9e846105a8565b6001600160a01b0316145b80610eb95750610eb98185610d65565b949350505050565b826001600160a01b0316610ed482610809565b6001600160a01b031614610f195760405162461bcd60e51b8152600401808060200182810382526029815260200180611ce86029913960400191505060405180910390fd5b6001600160a01b038216610f5e5760405162461bcd60e51b8152600401808060200182810382526024815260200180611bbf6024913960400191505060405180910390fd5b610f698383836106e0565b610f74600082610da4565b6001600160a01b0383166000908152600160205260409020610f969082611384565b506001600160a01b0382166000908152600160205260409020610fb99082611390565b50610fc66002828461139c565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061076f83836113b2565b6001600160a01b038216611074576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61107d81610d93565b156110cf576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6110db600083836106e0565b6001600160a01b03821660009081526001602052604090206110fd9082611390565b5061110a6002828461139c565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061115282610809565b9050611160816000846106e0565b61116b600083610da4565b60008281526008602052604090205460026000196101006001841615020190911604156111a95760008281526008602052604081206111a991611b12565b6001600160a01b03811660009081526001602052604090206111cb9083611384565b506111d7600283611416565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806112238686611422565b9097909650945050505050565b600061123d84848461149d565b90505b9392505050565b611252848484610ec1565b61125e84848484611567565b610ab85760405162461bcd60e51b8152600401808060200182810382526032815260200180611b8d6032913960400191505060405180910390fd5b6060816112be57506040805180820190915260018152600360fc1b602082015261050d565b8160005b81156112d657600101600a820491506112c2565b60608167ffffffffffffffff811180156112ef57600080fd5b506040519080825280601f01601f19166020018201604052801561131a576020820181803683370190505b50859350905060001982015b831561136b57600a840660300160f81b8282806001900393508151811061134957fe5b60200101906001600160f81b031916908160001a905350600a84049350611326565b50949350505050565b600061076f83836116cf565b5490565b600061076f83836116e7565b600061076f83836117ad565b600061123d84846001600160a01b0385166117f7565b815460009082106113f45760405162461bcd60e51b8152600401808060200182810382526022815260200180611b6b6022913960400191505060405180910390fd5b82600001828154811061140357fe5b9060005260206000200154905092915050565b600061076f838361188e565b8154600090819083106114665760405162461bcd60e51b8152600401808060200182810382526022815260200180611c9a6022913960400191505060405180910390fd5b600084600001848154811061147757fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816115385760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114fd5781810151838201526020016114e5565b50505050905090810190601f16801561152a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061154b57fe5b9060005260206000209060020201600101549150509392505050565b600061157b846001600160a01b0316611962565b61158757506001610eb9565b6060611695630a85bd0160e11b61159c610da0565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156116035781810151838201526020016115eb565b50505050905090810190601f1680156116305780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611b8d603291396001600160a01b038816919061199b565b905060008180602001905160208110156116ae57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156117a3578354600019808301919081019060009087908390811061171a57fe5b906000526020600020015490508087600001848154811061173757fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061176757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610772565b6000915050610772565b60006117b983836116cf565b6117ef57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610772565b506000610772565b60008281526001840160205260408120548061185c575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611240565b8285600001600183038154811061186f57fe5b9060005260206000209060020201600101819055506000915050611240565b600081815260018301602052604081205480156117a357835460001980830191908101906000908790839081106118c157fe5b90600052602060002090600202019050808760000184815481106118e157fe5b60009182526020808320845460029093020191825560019384015491840191909155835482528983019052604090209084019055865487908061192057fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506107729350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610eb9575050151592915050565b606061123d848460008560606119b085611962565b611a01576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611a405780518252601f199092019160209182019101611a21565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611aa2576040519150601f19603f3d011682016040523d82523d6000602084013e611aa7565b606091505b50915091508115611abb579150610eb99050565b805115611acb5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156114fd5781810151838201526020016114e5565b50805460018160011615610100020316600290046000825580601f10611b3857506107f0565b601f0160209004906000526020600020908101906107f091905b80821115611b665760008155600101611b52565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732314275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220d57310d91875bfb1efee349fc18c59693d63944fb23eec0af1bd4cdc7cf94ad064736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "baseURI", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenByIndex", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenOfOwnerByIndex", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "baseURI()": {"details": "Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."}, "burn(uint256)": {"details": "Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenByIndex(uint256)": {"details": "See {IERC721Enumerable-tokenByIndex}."}, "tokenOfOwnerByIndex(address,uint256)": {"details": "See {IERC721Enumerable-tokenOfOwnerByIndex}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "totalSupply()": {"details": "See {IERC721Enumerable-totalSupply}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "version": 1}}, "ERC721GSNRecipientMock": {"contractName": "ERC721GSNRecipientMock", "sourceId": "mocks/ERC721GSNRecipientMock.sol", "deploymentBytecode": {"bytecode": "0x6080604052600a80546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f4941790553480156200003757600080fd5b506040516200287138038062002871833981810160405260608110156200005d57600080fd5b81019080805160405193929190846401000000008211156200007e57600080fd5b9083019060208201858111156200009457600080fd5b8251640100000000811182820188101715620000af57600080fd5b82525081516020918201929091019080838360005b83811015620000de578181015183820152602001620000c4565b50505050905090810190601f1680156200010c5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200013057600080fd5b9083019060208201858111156200014657600080fd5b82516401000000008111828201881017156200016157600080fd5b82525081516020918201929091019080838360005b838110156200019057818101518382015260200162000176565b50505050905090810190601f168015620001be5780820380516001836020036101000a031916815260200191505b506040526020015191508190508383620001df6301ffc9a760e01b620002b4565b8151620001f490600690602085019062000339565b5080516200020a90600790602084019062000339565b506200021d6380ac58cd60e01b620002b4565b6200022f635b5e139f60e01b620002b4565b6200024163780e9d6360e01b620002b4565b50506001600160a01b0381166200028a5760405162461bcd60e51b8152600401808060200182810382526039815260200180620028386039913960400191505060405180910390fd5b600b80546001600160a01b0319166001600160a01b039290921691909117905550620003d5915050565b6001600160e01b0319808216141562000314576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200037c57805160ff1916838001178555620003ac565b82800160010185558215620003ac579182015b82811115620003ac5782518255916020019190600101906200038f565b50620003ba929150620003be565b5090565b5b80821115620003ba5760008155600101620003bf565b61245380620003e56000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c806370a08231116100c3578063a22cb4651161007c578063a22cb46514610638578063ad61ccd514610666578063b88d4fde1461066e578063c87b56dd14610732578063e06e0e221461074f578063e985e9c5146108005761014d565b806370a082311461036557806374e861d61461038b57806380274db71461039357806383947ea01461043757806395d89b4114610613578063a0712d681461061b5761014d565b806323b872dd1161011557806323b872dd1461028b5780632f745c59146102c157806342842e0e146102ed5780634f6ccce7146103235780636352211e146103405780636c0360eb1461035d5761014d565b806301ffc9a71461015257806306fdde031461018d578063081812fc1461020a578063095ea7b31461024357806318160ddd14610271575b600080fd5b6101796004803603602081101561016857600080fd5b50356001600160e01b03191661082e565b604080519115158252519081900360200190f35b610195610851565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cf5781810151838201526020016101b7565b50505050905090810190601f1680156101fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102276004803603602081101561022057600080fd5b50356108e8565b604080516001600160a01b039092168252519081900360200190f35b61026f6004803603604081101561025957600080fd5b506001600160a01b03813516906020013561094a565b005b610279610a25565b60408051918252519081900360200190f35b61026f600480360360608110156102a157600080fd5b506001600160a01b03813581169160208101359091169060400135610a36565b610279600480360360408110156102d757600080fd5b506001600160a01b038135169060200135610a8d565b61026f6004803603606081101561030357600080fd5b506001600160a01b03813581169160208101359091169060400135610ab8565b6102796004803603602081101561033957600080fd5b5035610ad3565b6102276004803603602081101561035657600080fd5b5035610ae9565b610195610b11565b6102796004803603602081101561037b57600080fd5b50356001600160a01b0316610b72565b610227610bda565b610279600480360360208110156103a957600080fd5b810190602081018135600160201b8111156103c357600080fd5b8201836020820111156103d557600080fd5b803590602001918460018302840111600160201b831117156103f657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610be9945050505050565b610594600480360361012081101561044e57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561048157600080fd5b82018360208201111561049357600080fd5b803590602001918460018302840111600160201b831117156104b457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561051e57600080fd5b82018360208201111561053057600080fd5b803590602001918460018302840111600160201b8311171561055157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250610c4b915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156105d75781810151838201526020016105bf565b50505050905090810190601f1680156106045780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610195610d8c565b61026f6004803603602081101561063157600080fd5b5035610ded565b61026f6004803603604081101561064e57600080fd5b506001600160a01b0381351690602001351515610e01565b610195610f06565b61026f6004803603608081101561068457600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156106be57600080fd5b8201836020820111156106d057600080fd5b803590602001918460018302840111600160201b831117156106f157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f25945050505050565b6101956004803603602081101561074857600080fd5b5035610f83565b61026f6004803603608081101561076557600080fd5b810190602081018135600160201b81111561077f57600080fd5b82018360208201111561079157600080fd5b803590602001918460018302840111600160201b831117156107b257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050508035151591506020810135906040013561122a565b6101796004803603604081101561081657600080fd5b506001600160a01b038135811691602001351661128d565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b820191906000526020600020905b8154815290600101906020018083116108c057829003601f168201915b505050505090505b90565b60006108f3826112bb565b61092e5760405162461bcd60e51b815260040180806020018281038252602c815260200180612324602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061095582610ae9565b9050806001600160a01b0316836001600160a01b031614156109a85760405162461bcd60e51b81526004018080602001828103825260218152602001806123a86021913960400191505060405180910390fd5b806001600160a01b03166109ba6112c8565b6001600160a01b031614806109db57506109db816109d66112c8565b61128d565b610a165760405162461bcd60e51b81526004018080602001828103825260388152602001806122556038913960400191505060405180910390fd5b610a2083836112d2565b505050565b6000610a316002611340565b905090565b610a47610a416112c8565b8261134b565b610a825760405162461bcd60e51b81526004018080602001828103825260318152602001806123ed6031913960400191505060405180910390fd5b610a208383836113ef565b6001600160a01b0382166000908152600160205260408120610aaf908361153b565b90505b92915050565b610a2083838360405180602001604052806000815250610f25565b600080610ae1600284611547565b509392505050565b6000610ab2826040518060600160405280602981526020016122b76029913960029190611563565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b60006001600160a01b038216610bb95760405162461bcd60e51b815260040180806020018281038252602a81526020018061228d602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610ab290611340565b600a546001600160a01b031690565b6000610bf3610bda565b6001600160a01b0316336001600160a01b031614610c425760405162461bcd60e51b81526004018080602001828103825260248152602001806123c96024913960400191505060405180910390fd5b610ab28261157a565b60006060808b8b8b8b8b8b8b610c5f610bda565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b60208310610cb65780518252601f199092019160209182019101610c97565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a89093019052600b548251918301919091209195506001600160a01b03169350610d539250889150610d4d90611580565b906115d1565b6001600160a01b03161415610d7457610d6a6117bc565b9250925050610d7e565b610d6a60006117e0565b995099975050505050505050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b610dfe610df86112c8565b826117f8565b50565b610e096112c8565b6001600160a01b0316826001600160a01b03161415610e6f576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610e7c6112c8565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ec06112c8565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610f36610f306112c8565b8361134b565b610f715760405162461bcd60e51b81526004018080602001828103825260318152602001806123ed6031913960400191505060405180910390fd5b610f7d84848484611926565b50505050565b6060610f8e826112bb565b610fc95760405162461bcd60e51b815260040180806020018281038252602f815260200180612379602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561105e5780601f106110335761010080835404028352916020019161105e565b820191906000526020600020905b81548152906001019060200180831161104157829003601f168201915b50506009549394505050506002600019610100600184161502019091160461108757905061084c565b8051156111585760098160405160200180838054600181600116156101000203166002900480156110ef5780601f106110cd5761010080835404028352918201916110ef565b820191906000526020600020905b8154815290600101906020018083116110db575b5050825160208401908083835b6020831061111b5780518252601f1990920191602091820191016110fc565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061084c565b600961116384611978565b60405160200180838054600181600116156101000203166002900480156111c15780601f1061119f5761010080835404028352918201916111c1565b820191906000526020600020905b8154815290600101906020018083116111ad575b5050825160208401908083835b602083106111ed5780518252601f1990920191602091820191016111ce565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b611232610bda565b6001600160a01b0316336001600160a01b0316146112815760405162461bcd60e51b81526004018080602001828103825260248152602001806123c96024913960400191505060405180910390fd5b610f7d84848484610f7d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610ab2600283611a53565b6000610a31611a5f565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061130782610ae9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610ab282611a8a565b6000611356826112bb565b6113915760405162461bcd60e51b815260040180806020018281038252602c815260200180612229602c913960400191505060405180910390fd5b600061139c83610ae9565b9050806001600160a01b0316846001600160a01b031614806113d75750836001600160a01b03166113cc846108e8565b6001600160a01b0316145b806113e757506113e7818561128d565b949350505050565b826001600160a01b031661140282610ae9565b6001600160a01b0316146114475760405162461bcd60e51b81526004018080602001828103825260298152602001806123506029913960400191505060405180910390fd5b6001600160a01b03821661148c5760405162461bcd60e51b81526004018080602001828103825260248152602001806121e36024913960400191505060405180910390fd5b611497838383610a20565b6114a26000826112d2565b6001600160a01b03831660009081526001602052604090206114c49082611a8e565b506001600160a01b03821660009081526001602052604090206114e79082611a9a565b506114f460028284611aa6565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610aaf8383611abc565b60008080806115568686611b20565b9097909650945050505050565b6000611570848484611b9b565b90505b9392505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b60008151604114611629576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561169a5760405162461bcd60e51b81526004018080602001828103825260228152602001806122076022913960400191505060405180910390fd5b8060ff16601b141580156116b257508060ff16601c14155b156116ee5760405162461bcd60e51b81526004018080602001828103825260228152602001806122e06022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561174a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117b2576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600060606117d860405180602001604052806000815250611c65565b915091509091565b604080516020810190915260008152600b9190910191565b6001600160a01b038216611853576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61185c816112bb565b156118ae576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6118ba60008383610a20565b6001600160a01b03821660009081526001602052604090206118dc9082611a9a565b506118e960028284611aa6565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6119318484846113ef565b61193d84848484611c6a565b610f7d5760405162461bcd60e51b81526004018080602001828103825260328152602001806121b16032913960400191505060405180910390fd5b60608161199d57506040805180820190915260018152600360fc1b602082015261084c565b8160005b81156119b557600101600a820491506119a1565b60608167ffffffffffffffff811180156119ce57600080fd5b506040519080825280601f01601f1916602001820160405280156119f9576020820181803683370190505b50859350905060001982015b8315611a4a57600a840660300160f81b82828060019003935081518110611a2857fe5b60200101906001600160f81b031916908160001a905350600a84049350611a05565b50949350505050565b6000610aaf8383611dd2565b600a546000906001600160a01b03163314611a7b5750336108e5565b611a83611dea565b90506108e5565b5490565b6000610aaf8383611e37565b6000610aaf8383611efd565b600061157084846001600160a01b038516611f47565b81546000908210611afe5760405162461bcd60e51b815260040180806020018281038252602281526020018061218f6022913960400191505060405180910390fd5b826000018281548110611b0d57fe5b9060005260206000200154905092915050565b815460009081908310611b645760405162461bcd60e51b81526004018080602001828103825260228152602001806123026022913960400191505060405180910390fd5b6000846000018481548110611b7557fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611c365760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611bfb578181015183820152602001611be3565b50505050905090810190601f168015611c285780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611c4957fe5b9060005260206000209060020201600101549150509392505050565b600091565b6000611c7e846001600160a01b0316611fde565b611c8a575060016113e7565b6060611d98630a85bd0160e11b611c9f6112c8565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611d06578181015183820152602001611cee565b50505050905090810190601f168015611d335780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060600160405280603281526020016121b1603291396001600160a01b0388169190612017565b90506000818060200190516020811015611db157600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b60008181526001830160205260408120548015611ef35783546000198083019190810190600090879083908110611e6a57fe5b9060005260206000200154905080876000018481548110611e8757fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611eb757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610ab2565b6000915050610ab2565b6000611f098383611dd2565b611f3f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610ab2565b506000610ab2565b600082815260018401602052604081205480611fac575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611573565b82856000016001830381548110611fbf57fe5b9060005260206000209060020201600101819055506000915050611573565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906113e7575050151592915050565b60606115708484600085606061202c85611fde565b61207d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106120bc5780518252601f19909201916020918201910161209d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461211e576040519150601f19603f3d011682016040523d82523d6000602084013e612123565b606091505b509150915081156121375791506113e79050565b8051156121475780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611bfb578181015183820152602001611be356fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f206164647265737345434453413a20696e76616c6964207369676e6174757265202773272076616c75654552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e45434453413a20696e76616c6964207369676e6174757265202776272076616c7565456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e657247534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875624552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220f6a2f20140b3b4eb5998160686037e7108be624d0d5f0d9468d6519f50dcf33964736f6c634300060c003347534e526563697069656e745369676e61747572653a2074727573746564207369676e657220697320746865207a65726f2061646472657373"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061014d5760003560e01c806370a08231116100c3578063a22cb4651161007c578063a22cb46514610638578063ad61ccd514610666578063b88d4fde1461066e578063c87b56dd14610732578063e06e0e221461074f578063e985e9c5146108005761014d565b806370a082311461036557806374e861d61461038b57806380274db71461039357806383947ea01461043757806395d89b4114610613578063a0712d681461061b5761014d565b806323b872dd1161011557806323b872dd1461028b5780632f745c59146102c157806342842e0e146102ed5780634f6ccce7146103235780636352211e146103405780636c0360eb1461035d5761014d565b806301ffc9a71461015257806306fdde031461018d578063081812fc1461020a578063095ea7b31461024357806318160ddd14610271575b600080fd5b6101796004803603602081101561016857600080fd5b50356001600160e01b03191661082e565b604080519115158252519081900360200190f35b610195610851565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cf5781810151838201526020016101b7565b50505050905090810190601f1680156101fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102276004803603602081101561022057600080fd5b50356108e8565b604080516001600160a01b039092168252519081900360200190f35b61026f6004803603604081101561025957600080fd5b506001600160a01b03813516906020013561094a565b005b610279610a25565b60408051918252519081900360200190f35b61026f600480360360608110156102a157600080fd5b506001600160a01b03813581169160208101359091169060400135610a36565b610279600480360360408110156102d757600080fd5b506001600160a01b038135169060200135610a8d565b61026f6004803603606081101561030357600080fd5b506001600160a01b03813581169160208101359091169060400135610ab8565b6102796004803603602081101561033957600080fd5b5035610ad3565b6102276004803603602081101561035657600080fd5b5035610ae9565b610195610b11565b6102796004803603602081101561037b57600080fd5b50356001600160a01b0316610b72565b610227610bda565b610279600480360360208110156103a957600080fd5b810190602081018135600160201b8111156103c357600080fd5b8201836020820111156103d557600080fd5b803590602001918460018302840111600160201b831117156103f657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610be9945050505050565b610594600480360361012081101561044e57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561048157600080fd5b82018360208201111561049357600080fd5b803590602001918460018302840111600160201b831117156104b457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561051e57600080fd5b82018360208201111561053057600080fd5b803590602001918460018302840111600160201b8311171561055157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250610c4b915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156105d75781810151838201526020016105bf565b50505050905090810190601f1680156106045780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610195610d8c565b61026f6004803603602081101561063157600080fd5b5035610ded565b61026f6004803603604081101561064e57600080fd5b506001600160a01b0381351690602001351515610e01565b610195610f06565b61026f6004803603608081101561068457600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156106be57600080fd5b8201836020820111156106d057600080fd5b803590602001918460018302840111600160201b831117156106f157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f25945050505050565b6101956004803603602081101561074857600080fd5b5035610f83565b61026f6004803603608081101561076557600080fd5b810190602081018135600160201b81111561077f57600080fd5b82018360208201111561079157600080fd5b803590602001918460018302840111600160201b831117156107b257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050508035151591506020810135906040013561122a565b6101796004803603604081101561081657600080fd5b506001600160a01b038135811691602001351661128d565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b820191906000526020600020905b8154815290600101906020018083116108c057829003601f168201915b505050505090505b90565b60006108f3826112bb565b61092e5760405162461bcd60e51b815260040180806020018281038252602c815260200180612324602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061095582610ae9565b9050806001600160a01b0316836001600160a01b031614156109a85760405162461bcd60e51b81526004018080602001828103825260218152602001806123a86021913960400191505060405180910390fd5b806001600160a01b03166109ba6112c8565b6001600160a01b031614806109db57506109db816109d66112c8565b61128d565b610a165760405162461bcd60e51b81526004018080602001828103825260388152602001806122556038913960400191505060405180910390fd5b610a2083836112d2565b505050565b6000610a316002611340565b905090565b610a47610a416112c8565b8261134b565b610a825760405162461bcd60e51b81526004018080602001828103825260318152602001806123ed6031913960400191505060405180910390fd5b610a208383836113ef565b6001600160a01b0382166000908152600160205260408120610aaf908361153b565b90505b92915050565b610a2083838360405180602001604052806000815250610f25565b600080610ae1600284611547565b509392505050565b6000610ab2826040518060600160405280602981526020016122b76029913960029190611563565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b60006001600160a01b038216610bb95760405162461bcd60e51b815260040180806020018281038252602a81526020018061228d602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610ab290611340565b600a546001600160a01b031690565b6000610bf3610bda565b6001600160a01b0316336001600160a01b031614610c425760405162461bcd60e51b81526004018080602001828103825260248152602001806123c96024913960400191505060405180910390fd5b610ab28261157a565b60006060808b8b8b8b8b8b8b610c5f610bda565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b60208310610cb65780518252601f199092019160209182019101610c97565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a89093019052600b548251918301919091209195506001600160a01b03169350610d539250889150610d4d90611580565b906115d1565b6001600160a01b03161415610d7457610d6a6117bc565b9250925050610d7e565b610d6a60006117e0565b995099975050505050505050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b610dfe610df86112c8565b826117f8565b50565b610e096112c8565b6001600160a01b0316826001600160a01b03161415610e6f576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610e7c6112c8565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ec06112c8565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610f36610f306112c8565b8361134b565b610f715760405162461bcd60e51b81526004018080602001828103825260318152602001806123ed6031913960400191505060405180910390fd5b610f7d84848484611926565b50505050565b6060610f8e826112bb565b610fc95760405162461bcd60e51b815260040180806020018281038252602f815260200180612379602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561105e5780601f106110335761010080835404028352916020019161105e565b820191906000526020600020905b81548152906001019060200180831161104157829003601f168201915b50506009549394505050506002600019610100600184161502019091160461108757905061084c565b8051156111585760098160405160200180838054600181600116156101000203166002900480156110ef5780601f106110cd5761010080835404028352918201916110ef565b820191906000526020600020905b8154815290600101906020018083116110db575b5050825160208401908083835b6020831061111b5780518252601f1990920191602091820191016110fc565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061084c565b600961116384611978565b60405160200180838054600181600116156101000203166002900480156111c15780601f1061119f5761010080835404028352918201916111c1565b820191906000526020600020905b8154815290600101906020018083116111ad575b5050825160208401908083835b602083106111ed5780518252601f1990920191602091820191016111ce565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b611232610bda565b6001600160a01b0316336001600160a01b0316146112815760405162461bcd60e51b81526004018080602001828103825260248152602001806123c96024913960400191505060405180910390fd5b610f7d84848484610f7d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610ab2600283611a53565b6000610a31611a5f565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061130782610ae9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610ab282611a8a565b6000611356826112bb565b6113915760405162461bcd60e51b815260040180806020018281038252602c815260200180612229602c913960400191505060405180910390fd5b600061139c83610ae9565b9050806001600160a01b0316846001600160a01b031614806113d75750836001600160a01b03166113cc846108e8565b6001600160a01b0316145b806113e757506113e7818561128d565b949350505050565b826001600160a01b031661140282610ae9565b6001600160a01b0316146114475760405162461bcd60e51b81526004018080602001828103825260298152602001806123506029913960400191505060405180910390fd5b6001600160a01b03821661148c5760405162461bcd60e51b81526004018080602001828103825260248152602001806121e36024913960400191505060405180910390fd5b611497838383610a20565b6114a26000826112d2565b6001600160a01b03831660009081526001602052604090206114c49082611a8e565b506001600160a01b03821660009081526001602052604090206114e79082611a9a565b506114f460028284611aa6565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610aaf8383611abc565b60008080806115568686611b20565b9097909650945050505050565b6000611570848484611b9b565b90505b9392505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b60008151604114611629576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561169a5760405162461bcd60e51b81526004018080602001828103825260228152602001806122076022913960400191505060405180910390fd5b8060ff16601b141580156116b257508060ff16601c14155b156116ee5760405162461bcd60e51b81526004018080602001828103825260228152602001806122e06022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561174a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117b2576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600060606117d860405180602001604052806000815250611c65565b915091509091565b604080516020810190915260008152600b9190910191565b6001600160a01b038216611853576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61185c816112bb565b156118ae576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6118ba60008383610a20565b6001600160a01b03821660009081526001602052604090206118dc9082611a9a565b506118e960028284611aa6565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6119318484846113ef565b61193d84848484611c6a565b610f7d5760405162461bcd60e51b81526004018080602001828103825260328152602001806121b16032913960400191505060405180910390fd5b60608161199d57506040805180820190915260018152600360fc1b602082015261084c565b8160005b81156119b557600101600a820491506119a1565b60608167ffffffffffffffff811180156119ce57600080fd5b506040519080825280601f01601f1916602001820160405280156119f9576020820181803683370190505b50859350905060001982015b8315611a4a57600a840660300160f81b82828060019003935081518110611a2857fe5b60200101906001600160f81b031916908160001a905350600a84049350611a05565b50949350505050565b6000610aaf8383611dd2565b600a546000906001600160a01b03163314611a7b5750336108e5565b611a83611dea565b90506108e5565b5490565b6000610aaf8383611e37565b6000610aaf8383611efd565b600061157084846001600160a01b038516611f47565b81546000908210611afe5760405162461bcd60e51b815260040180806020018281038252602281526020018061218f6022913960400191505060405180910390fd5b826000018281548110611b0d57fe5b9060005260206000200154905092915050565b815460009081908310611b645760405162461bcd60e51b81526004018080602001828103825260228152602001806123026022913960400191505060405180910390fd5b6000846000018481548110611b7557fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611c365760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611bfb578181015183820152602001611be3565b50505050905090810190601f168015611c285780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611c4957fe5b9060005260206000209060020201600101549150509392505050565b600091565b6000611c7e846001600160a01b0316611fde565b611c8a575060016113e7565b6060611d98630a85bd0160e11b611c9f6112c8565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611d06578181015183820152602001611cee565b50505050905090810190601f168015611d335780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060600160405280603281526020016121b1603291396001600160a01b0388169190612017565b90506000818060200190516020811015611db157600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b60008181526001830160205260408120548015611ef35783546000198083019190810190600090879083908110611e6a57fe5b9060005260206000200154905080876000018481548110611e8757fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611eb757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610ab2565b6000915050610ab2565b6000611f098383611dd2565b611f3f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610ab2565b506000610ab2565b600082815260018401602052604081205480611fac575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611573565b82856000016001830381548110611fbf57fe5b9060005260206000209060020201600101819055506000915050611573565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906113e7575050151592915050565b60606115708484600085606061202c85611fde565b61207d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106120bc5780518252601f19909201916020918201910161209d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461211e576040519150601f19603f3d011682016040523d82523d6000602084013e612123565b606091505b509150915081156121375791506113e79050565b8051156121475780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611bfb578181015183820152602001611be356fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f206164647265737345434453413a20696e76616c6964207369676e6174757265202773272076616c75654552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e45434453413a20696e76616c6964207369676e6174757265202776272076616c7565456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e657247534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875624552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220f6a2f20140b3b4eb5998160686037e7108be624d0d5f0d9468d6519f50dcf33964736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "trustedSigner", "type": "address", "internalType": "address"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RelayHubChanged", "inputs": [{"name": "oldRelayHub", "type": "address", "internalType": "address", "indexed": true}, {"name": "newRelayHub", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "acceptRelayedCall", "stateMutability": "view", "inputs": [{"name": "relay", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "encodedFunction", "type": "bytes", "internalType": "bytes"}, {"name": "transactionFee", "type": "uint256", "internalType": "uint256"}, {"name": "gasPrice", "type": "uint256", "internalType": "uint256"}, {"name": "gasLimit", "type": "uint256", "internalType": "uint256"}, {"name": "nonce", "type": "uint256", "internalType": "uint256"}, {"name": "approvalData", "type": "bytes", "internalType": "bytes"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "baseURI", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getHubAddr", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "postRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}, {"name": "success", "type": "bool", "internalType": "bool"}, {"name": "actualCharge", "type": "uint256", "internalType": "uint256"}, {"name": "preRetVal", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "preRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "relayHubVersion", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenByIndex", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenOfOwnerByIndex", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)": {"details": "Ensures that only transactions with a trusted signature can be relayed through the GSN."}, "approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "baseURI()": {"details": "Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "getHubAddr()": {"details": "Returns the address of the {IRelayHub} contract for this recipient."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "postRelayedCall(bytes,bool,uint256,bytes32)": {"details": "See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "preRelayedCall(bytes)": {"details": "See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "relayHubVersion()": {"details": "Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenByIndex(uint256)": {"details": "See {IERC721Enumerable-tokenByIndex}."}, "tokenOfOwnerByIndex(address,uint256)": {"details": "See {IERC721Enumerable-tokenOfOwnerByIndex}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "totalSupply()": {"details": "See {IERC721Enumerable-totalSupply}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "title": "ERC721GSNRecipientMock A simple ERC721 mock that has GSN support enabled", "version": 1}}, "ERC721Mock": {"contractName": "ERC721Mock", "sourceId": "mocks/ERC721Mock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b506040516200251538038062002515833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250839150829050620001b56301ffc9a760e01b62000221565b8151620001ca906006906020850190620002a6565b508051620001e0906007906020840190620002a6565b50620001f36380ac58cd60e01b62000221565b62000205635b5e139f60e01b62000221565b6200021763780e9d6360e01b62000221565b5050505062000342565b6001600160e01b0319808216141562000281576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002e957805160ff191683800117855562000319565b8280016001018555821562000319579182015b8281111562000319578251825591602001919060010190620002fc565b50620003279291506200032b565b5090565b5b808211156200032757600081556001016200032c565b6121c380620003526000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80634f6ccce7116100c357806395d89b411161007c57806395d89b4114610604578063a14481941461060c578063a22cb46514610638578063b88d4fde14610666578063c87b56dd1461072a578063e985e9c51461074757610158565b80634f6ccce71461043f57806355f804b31461045c5780636352211e146105005780636c0360eb1461051d57806370a08231146105255780638832e6e31461054b57610158565b806323b872dd1161011557806323b872dd146103415780632f745c591461037757806340c10f19146103a357806342842e0e146103cf57806342966c68146104055780634f558e791461042257610158565b806301ffc9a71461015d57806306fdde0314610198578063081812fc14610215578063095ea7b31461024e578063162094c41461027c57806318160ddd14610327575b600080fd5b6101846004803603602081101561017357600080fd5b50356001600160e01b031916610775565b604080519115158252519081900360200190f35b6101a0610798565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101da5781810151838201526020016101c2565b50505050905090810190601f1680156102075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603602081101561022b57600080fd5b503561082e565b604080516001600160a01b039092168252519081900360200190f35b61027a6004803603604081101561026457600080fd5b506001600160a01b038135169060200135610890565b005b61027a6004803603604081101561029257600080fd5b81359190810190604081016020820135600160201b8111156102b357600080fd5b8201836020820111156102c557600080fd5b803590602001918460018302840111600160201b831117156102e657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061096b945050505050565b61032f610979565b60408051918252519081900360200190f35b61027a6004803603606081101561035757600080fd5b506001600160a01b0381358116916020810135909116906040013561098a565b61032f6004803603604081101561038d57600080fd5b506001600160a01b0381351690602001356109e1565b61027a600480360360408110156103b957600080fd5b506001600160a01b038135169060200135610a0c565b61027a600480360360608110156103e557600080fd5b506001600160a01b03813581169160208101359091169060400135610a16565b61027a6004803603602081101561041b57600080fd5b5035610a31565b6101846004803603602081101561043857600080fd5b5035610a3d565b61032f6004803603602081101561045557600080fd5b5035610a48565b61027a6004803603602081101561047257600080fd5b810190602081018135600160201b81111561048c57600080fd5b82018360208201111561049e57600080fd5b803590602001918460018302840111600160201b831117156104bf57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a5e945050505050565b6102326004803603602081101561051657600080fd5b5035610a67565b6101a0610a8f565b61032f6004803603602081101561053b57600080fd5b50356001600160a01b0316610af0565b61027a6004803603606081101561056157600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561059057600080fd5b8201836020820111156105a257600080fd5b803590602001918460018302840111600160201b831117156105c357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b58945050505050565b6101a0610b63565b61027a6004803603604081101561062257600080fd5b506001600160a01b038135169060200135610bc4565b61027a6004803603604081101561064e57600080fd5b506001600160a01b0381351690602001351515610bce565b61027a6004803603608081101561067c57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156106b657600080fd5b8201836020820111156106c857600080fd5b803590602001918460018302840111600160201b831117156106e957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610cd3945050505050565b6101a06004803603602081101561074057600080fd5b5035610d31565b6101846004803603604081101561075d57600080fd5b506001600160a01b0381358116916020013516610fd8565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b820191906000526020600020905b81548152906001019060200180831161080757829003601f168201915b5050505050905090565b600061083982611006565b6108745760405162461bcd60e51b815260040180806020018281038252602c81526020018061208c602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061089b82610a67565b9050806001600160a01b0316836001600160a01b031614156108ee5760405162461bcd60e51b815260040180806020018281038252602181526020018061213c6021913960400191505060405180910390fd5b806001600160a01b0316610900611013565b6001600160a01b0316148061092157506109218161091c611013565b610fd8565b61095c5760405162461bcd60e51b8152600401808060200182810382526038815260200180611fdf6038913960400191505060405180910390fd5b6109668383611017565b505050565b6109758282611085565b5050565b600061098560026110e8565b905090565b61099b610995611013565b826110f3565b6109d65760405162461bcd60e51b815260040180806020018281038252603181526020018061215d6031913960400191505060405180910390fd5b610966838383611197565b6001600160a01b0382166000908152600160205260408120610a0390836112e3565b90505b92915050565b61097582826112ef565b61096683838360405180602001604052806000815250610cd3565b610a3a8161141d565b50565b6000610a0682611006565b600080610a566002846114ea565b509392505050565b610a3a81611506565b6000610a06826040518060600160405280602981526020016120416029913960029190611519565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b60006001600160a01b038216610b375760405162461bcd60e51b815260040180806020018281038252602a815260200180612017602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610a06906110e8565b610966838383611530565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b6109758282611582565b610bd6611013565b6001600160a01b0316826001600160a01b03161415610c3c576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610c49611013565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c8d611013565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610ce4610cde611013565b836110f3565b610d1f5760405162461bcd60e51b815260040180806020018281038252603181526020018061215d6031913960400191505060405180910390fd5b610d2b8484848461159c565b50505050565b6060610d3c82611006565b610d775760405162461bcd60e51b815260040180806020018281038252602f81526020018061210d602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610e0c5780601f10610de157610100808354040283529160200191610e0c565b820191906000526020600020905b815481529060010190602001808311610def57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610e35579050610793565b805115610f06576009816040516020018083805460018160011615610100020316600290048015610e9d5780601f10610e7b576101008083540402835291820191610e9d565b820191906000526020600020905b815481529060010190602001808311610e89575b5050825160208401908083835b60208310610ec95780518252601f199092019160209182019101610eaa565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610793565b6009610f11846115ee565b6040516020018083805460018160011615610100020316600290048015610f6f5780601f10610f4d576101008083540402835291820191610f6f565b820191906000526020600020905b815481529060010190602001808311610f5b575b5050825160208401908083835b60208310610f9b5780518252601f199092019160209182019101610f7c565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610a066002836116c9565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061104c82610a67565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61108e82611006565b6110c95760405162461bcd60e51b815260040180806020018281038252602c8152602001806120b8602c913960400191505060405180910390fd5b6000828152600860209081526040909120825161096692840190611e67565b6000610a06826116d5565b60006110fe82611006565b6111395760405162461bcd60e51b815260040180806020018281038252602c815260200180611fb3602c913960400191505060405180910390fd5b600061114483610a67565b9050806001600160a01b0316846001600160a01b0316148061117f5750836001600160a01b03166111748461082e565b6001600160a01b0316145b8061118f575061118f8185610fd8565b949350505050565b826001600160a01b03166111aa82610a67565b6001600160a01b0316146111ef5760405162461bcd60e51b81526004018080602001828103825260298152602001806120e46029913960400191505060405180910390fd5b6001600160a01b0382166112345760405162461bcd60e51b8152600401808060200182810382526024815260200180611f8f6024913960400191505060405180910390fd5b61123f838383610966565b61124a600082611017565b6001600160a01b038316600090815260016020526040902061126c90826116d9565b506001600160a01b038216600090815260016020526040902061128f90826116e5565b5061129c600282846116f1565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610a038383611707565b6001600160a01b03821661134a576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61135381611006565b156113a5576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6113b160008383610966565b6001600160a01b03821660009081526001602052604090206113d390826116e5565b506113e0600282846116f1565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061142882610a67565b905061143681600084610966565b611441600083611017565b600082815260086020526040902054600260001961010060018416150201909116041561147f57600082815260086020526040812061147f91611ee5565b6001600160a01b03811660009081526001602052604090206114a190836116d9565b506114ad60028361176b565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806114f98686611777565b9097909650945050505050565b8051610975906009906020840190611e67565b60006115268484846117f2565b90505b9392505050565b61153a83836112ef565b61154760008484846118bc565b6109665760405162461bcd60e51b8152600401808060200182810382526032815260200180611f5d6032913960400191505060405180910390fd5b610975828260405180602001604052806000815250611530565b6115a7848484611197565b6115b3848484846118bc565b610d2b5760405162461bcd60e51b8152600401808060200182810382526032815260200180611f5d6032913960400191505060405180910390fd5b60608161161357506040805180820190915260018152600360fc1b6020820152610793565b8160005b811561162b57600101600a82049150611617565b60608167ffffffffffffffff8111801561164457600080fd5b506040519080825280601f01601f19166020018201604052801561166f576020820181803683370190505b50859350905060001982015b83156116c057600a840660300160f81b8282806001900393508151811061169e57fe5b60200101906001600160f81b031916908160001a905350600a8404935061167b565b50949350505050565b6000610a038383611a24565b5490565b6000610a038383611a3c565b6000610a038383611b02565b600061152684846001600160a01b038516611b4c565b815460009082106117495760405162461bcd60e51b8152600401808060200182810382526022815260200180611f3b6022913960400191505060405180910390fd5b82600001828154811061175857fe5b9060005260206000200154905092915050565b6000610a038383611be3565b8154600090819083106117bb5760405162461bcd60e51b815260040180806020018281038252602281526020018061206a6022913960400191505060405180910390fd5b60008460000184815481106117cc57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b6000828152600184016020526040812054828161188d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561185257818101518382015260200161183a565b50505050905090810190601f16801561187f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106118a057fe5b9060005260206000209060020201600101549150509392505050565b60006118d0846001600160a01b0316611cb7565b6118dc5750600161118f565b60606119ea630a85bd0160e11b6118f1611013565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611958578181015183820152602001611940565b50505050905090810190601f1680156119855780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611f5d603291396001600160a01b0388169190611cf0565b90506000818060200190516020811015611a0357600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b60008181526001830160205260408120548015611af85783546000198083019190810190600090879083908110611a6f57fe5b9060005260206000200154905080876000018481548110611a8c57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611abc57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610a06565b6000915050610a06565b6000611b0e8383611a24565b611b4457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a06565b506000610a06565b600082815260018401602052604081205480611bb1575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611529565b82856000016001830381548110611bc457fe5b9060005260206000209060020201600101819055506000915050611529565b60008181526001830160205260408120548015611af85783546000198083019190810190600090879083908110611c1657fe5b9060005260206000209060020201905080876000018481548110611c3657fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611c7557fe5b6000828152602080822060026000199094019384020182815560019081018390559290935588815289820190925260408220919091559450610a069350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061118f575050151592915050565b606061152684846000856060611d0585611cb7565b611d56576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611d955780518252601f199092019160209182019101611d76565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611df7576040519150601f19603f3d011682016040523d82523d6000602084013e611dfc565b606091505b50915091508115611e1057915061118f9050565b805115611e205780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561185257818101518382015260200161183a565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611ea857805160ff1916838001178555611ed5565b82800160010185558215611ed5579182015b82811115611ed5578251825591602001919060010190611eba565b50611ee1929150611f25565b5090565b50805460018160011615610100020316600290046000825580601f10611f0b5750610a3a565b601f016020900490600052602060002090810190610a3a91905b5b80821115611ee15760008155600101611f2656fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220fb87d8e33146effc67f8139d820e6cc634b82832a0fd19db8efa9a0bbfdf79e264736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101585760003560e01c80634f6ccce7116100c357806395d89b411161007c57806395d89b4114610604578063a14481941461060c578063a22cb46514610638578063b88d4fde14610666578063c87b56dd1461072a578063e985e9c51461074757610158565b80634f6ccce71461043f57806355f804b31461045c5780636352211e146105005780636c0360eb1461051d57806370a08231146105255780638832e6e31461054b57610158565b806323b872dd1161011557806323b872dd146103415780632f745c591461037757806340c10f19146103a357806342842e0e146103cf57806342966c68146104055780634f558e791461042257610158565b806301ffc9a71461015d57806306fdde0314610198578063081812fc14610215578063095ea7b31461024e578063162094c41461027c57806318160ddd14610327575b600080fd5b6101846004803603602081101561017357600080fd5b50356001600160e01b031916610775565b604080519115158252519081900360200190f35b6101a0610798565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101da5781810151838201526020016101c2565b50505050905090810190601f1680156102075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603602081101561022b57600080fd5b503561082e565b604080516001600160a01b039092168252519081900360200190f35b61027a6004803603604081101561026457600080fd5b506001600160a01b038135169060200135610890565b005b61027a6004803603604081101561029257600080fd5b81359190810190604081016020820135600160201b8111156102b357600080fd5b8201836020820111156102c557600080fd5b803590602001918460018302840111600160201b831117156102e657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061096b945050505050565b61032f610979565b60408051918252519081900360200190f35b61027a6004803603606081101561035757600080fd5b506001600160a01b0381358116916020810135909116906040013561098a565b61032f6004803603604081101561038d57600080fd5b506001600160a01b0381351690602001356109e1565b61027a600480360360408110156103b957600080fd5b506001600160a01b038135169060200135610a0c565b61027a600480360360608110156103e557600080fd5b506001600160a01b03813581169160208101359091169060400135610a16565b61027a6004803603602081101561041b57600080fd5b5035610a31565b6101846004803603602081101561043857600080fd5b5035610a3d565b61032f6004803603602081101561045557600080fd5b5035610a48565b61027a6004803603602081101561047257600080fd5b810190602081018135600160201b81111561048c57600080fd5b82018360208201111561049e57600080fd5b803590602001918460018302840111600160201b831117156104bf57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a5e945050505050565b6102326004803603602081101561051657600080fd5b5035610a67565b6101a0610a8f565b61032f6004803603602081101561053b57600080fd5b50356001600160a01b0316610af0565b61027a6004803603606081101561056157600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561059057600080fd5b8201836020820111156105a257600080fd5b803590602001918460018302840111600160201b831117156105c357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b58945050505050565b6101a0610b63565b61027a6004803603604081101561062257600080fd5b506001600160a01b038135169060200135610bc4565b61027a6004803603604081101561064e57600080fd5b506001600160a01b0381351690602001351515610bce565b61027a6004803603608081101561067c57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156106b657600080fd5b8201836020820111156106c857600080fd5b803590602001918460018302840111600160201b831117156106e957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610cd3945050505050565b6101a06004803603602081101561074057600080fd5b5035610d31565b6101846004803603604081101561075d57600080fd5b506001600160a01b0381358116916020013516610fd8565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b820191906000526020600020905b81548152906001019060200180831161080757829003601f168201915b5050505050905090565b600061083982611006565b6108745760405162461bcd60e51b815260040180806020018281038252602c81526020018061208c602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061089b82610a67565b9050806001600160a01b0316836001600160a01b031614156108ee5760405162461bcd60e51b815260040180806020018281038252602181526020018061213c6021913960400191505060405180910390fd5b806001600160a01b0316610900611013565b6001600160a01b0316148061092157506109218161091c611013565b610fd8565b61095c5760405162461bcd60e51b8152600401808060200182810382526038815260200180611fdf6038913960400191505060405180910390fd5b6109668383611017565b505050565b6109758282611085565b5050565b600061098560026110e8565b905090565b61099b610995611013565b826110f3565b6109d65760405162461bcd60e51b815260040180806020018281038252603181526020018061215d6031913960400191505060405180910390fd5b610966838383611197565b6001600160a01b0382166000908152600160205260408120610a0390836112e3565b90505b92915050565b61097582826112ef565b61096683838360405180602001604052806000815250610cd3565b610a3a8161141d565b50565b6000610a0682611006565b600080610a566002846114ea565b509392505050565b610a3a81611506565b6000610a06826040518060600160405280602981526020016120416029913960029190611519565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b60006001600160a01b038216610b375760405162461bcd60e51b815260040180806020018281038252602a815260200180612017602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610a06906110e8565b610966838383611530565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b6109758282611582565b610bd6611013565b6001600160a01b0316826001600160a01b03161415610c3c576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610c49611013565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c8d611013565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610ce4610cde611013565b836110f3565b610d1f5760405162461bcd60e51b815260040180806020018281038252603181526020018061215d6031913960400191505060405180910390fd5b610d2b8484848461159c565b50505050565b6060610d3c82611006565b610d775760405162461bcd60e51b815260040180806020018281038252602f81526020018061210d602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610e0c5780601f10610de157610100808354040283529160200191610e0c565b820191906000526020600020905b815481529060010190602001808311610def57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610e35579050610793565b805115610f06576009816040516020018083805460018160011615610100020316600290048015610e9d5780601f10610e7b576101008083540402835291820191610e9d565b820191906000526020600020905b815481529060010190602001808311610e89575b5050825160208401908083835b60208310610ec95780518252601f199092019160209182019101610eaa565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610793565b6009610f11846115ee565b6040516020018083805460018160011615610100020316600290048015610f6f5780601f10610f4d576101008083540402835291820191610f6f565b820191906000526020600020905b815481529060010190602001808311610f5b575b5050825160208401908083835b60208310610f9b5780518252601f199092019160209182019101610f7c565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610a066002836116c9565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061104c82610a67565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61108e82611006565b6110c95760405162461bcd60e51b815260040180806020018281038252602c8152602001806120b8602c913960400191505060405180910390fd5b6000828152600860209081526040909120825161096692840190611e67565b6000610a06826116d5565b60006110fe82611006565b6111395760405162461bcd60e51b815260040180806020018281038252602c815260200180611fb3602c913960400191505060405180910390fd5b600061114483610a67565b9050806001600160a01b0316846001600160a01b0316148061117f5750836001600160a01b03166111748461082e565b6001600160a01b0316145b8061118f575061118f8185610fd8565b949350505050565b826001600160a01b03166111aa82610a67565b6001600160a01b0316146111ef5760405162461bcd60e51b81526004018080602001828103825260298152602001806120e46029913960400191505060405180910390fd5b6001600160a01b0382166112345760405162461bcd60e51b8152600401808060200182810382526024815260200180611f8f6024913960400191505060405180910390fd5b61123f838383610966565b61124a600082611017565b6001600160a01b038316600090815260016020526040902061126c90826116d9565b506001600160a01b038216600090815260016020526040902061128f90826116e5565b5061129c600282846116f1565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610a038383611707565b6001600160a01b03821661134a576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61135381611006565b156113a5576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6113b160008383610966565b6001600160a01b03821660009081526001602052604090206113d390826116e5565b506113e0600282846116f1565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061142882610a67565b905061143681600084610966565b611441600083611017565b600082815260086020526040902054600260001961010060018416150201909116041561147f57600082815260086020526040812061147f91611ee5565b6001600160a01b03811660009081526001602052604090206114a190836116d9565b506114ad60028361176b565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806114f98686611777565b9097909650945050505050565b8051610975906009906020840190611e67565b60006115268484846117f2565b90505b9392505050565b61153a83836112ef565b61154760008484846118bc565b6109665760405162461bcd60e51b8152600401808060200182810382526032815260200180611f5d6032913960400191505060405180910390fd5b610975828260405180602001604052806000815250611530565b6115a7848484611197565b6115b3848484846118bc565b610d2b5760405162461bcd60e51b8152600401808060200182810382526032815260200180611f5d6032913960400191505060405180910390fd5b60608161161357506040805180820190915260018152600360fc1b6020820152610793565b8160005b811561162b57600101600a82049150611617565b60608167ffffffffffffffff8111801561164457600080fd5b506040519080825280601f01601f19166020018201604052801561166f576020820181803683370190505b50859350905060001982015b83156116c057600a840660300160f81b8282806001900393508151811061169e57fe5b60200101906001600160f81b031916908160001a905350600a8404935061167b565b50949350505050565b6000610a038383611a24565b5490565b6000610a038383611a3c565b6000610a038383611b02565b600061152684846001600160a01b038516611b4c565b815460009082106117495760405162461bcd60e51b8152600401808060200182810382526022815260200180611f3b6022913960400191505060405180910390fd5b82600001828154811061175857fe5b9060005260206000200154905092915050565b6000610a038383611be3565b8154600090819083106117bb5760405162461bcd60e51b815260040180806020018281038252602281526020018061206a6022913960400191505060405180910390fd5b60008460000184815481106117cc57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b6000828152600184016020526040812054828161188d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561185257818101518382015260200161183a565b50505050905090810190601f16801561187f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106118a057fe5b9060005260206000209060020201600101549150509392505050565b60006118d0846001600160a01b0316611cb7565b6118dc5750600161118f565b60606119ea630a85bd0160e11b6118f1611013565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611958578181015183820152602001611940565b50505050905090810190601f1680156119855780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611f5d603291396001600160a01b0388169190611cf0565b90506000818060200190516020811015611a0357600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b60008181526001830160205260408120548015611af85783546000198083019190810190600090879083908110611a6f57fe5b9060005260206000200154905080876000018481548110611a8c57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611abc57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610a06565b6000915050610a06565b6000611b0e8383611a24565b611b4457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a06565b506000610a06565b600082815260018401602052604081205480611bb1575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611529565b82856000016001830381548110611bc457fe5b9060005260206000209060020201600101819055506000915050611529565b60008181526001830160205260408120548015611af85783546000198083019190810190600090879083908110611c1657fe5b9060005260206000209060020201905080876000018481548110611c3657fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611c7557fe5b6000828152602080822060026000199094019384020182815560019081018390559290935588815289820190925260408220919091559450610a069350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061118f575050151592915050565b606061152684846000856060611d0585611cb7565b611d56576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611d955780518252601f199092019160209182019101611d76565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611df7576040519150601f19603f3d011682016040523d82523d6000602084013e611dfc565b606091505b50915091508115611e1057915061118f9050565b805115611e205780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561185257818101518382015260200161183a565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611ea857805160ff1916838001178555611ed5565b82800160010185558215611ed5579182015b82811115611ed5578251825591602001919060010190611eba565b50611ee1929150611f25565b5090565b50805460018160011615610100020316600290046000825580601f10611f0b5750610a3a565b601f016020900490600052602060002090810190610a3a91905b5b80821115611ee15760008155600101611f2656fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220fb87d8e33146effc67f8139d820e6cc634b82832a0fd19db8efa9a0bbfdf79e264736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "baseURI", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "exists", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeMint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeMint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "setBaseURI", "stateMutability": "nonpayable", "inputs": [{"name": "baseURI", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "setTokenURI", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "uri", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenByIndex", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenOfOwnerByIndex", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "baseURI()": {"details": "Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenByIndex(uint256)": {"details": "See {IERC721Enumerable-tokenByIndex}."}, "tokenOfOwnerByIndex(address,uint256)": {"details": "See {IERC721Enumerable-tokenOfOwnerByIndex}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "totalSupply()": {"details": "See {IERC721Enumerable-totalSupply}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "title": "ERC721Mock This mock just provides a public safeMint, mint, and burn functions for testing purposes", "version": 1}}, "ERC721PausableMock": {"contractName": "ERC721PausableMock", "sourceId": "mocks/ERC721PausableMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b50604051620022fe380380620022fe833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250839150829050620001b56301ffc9a760e01b6200022c565b8151620001ca906006906020850190620002b1565b508051620001e0906007906020840190620002b1565b50620001f36380ac58cd60e01b6200022c565b62000205635b5e139f60e01b6200022c565b6200021763780e9d6360e01b6200022c565b5050600a805460ff19169055506200034d9050565b6001600160e01b031980821614156200028c576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002f457805160ff191683800117855562000324565b8280016001018555821562000324579182015b828111156200032457825182559160200191906001019062000307565b506200033292915062000336565b5090565b5b8082111562000332576000815560010162000337565b611fa1806200035d6000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80634f558e79116100c35780638456cb591161007c5780638456cb591461040157806395d89b4114610409578063a22cb46514610411578063b88d4fde1461043f578063c87b56dd14610505578063e985e9c5146105225761014d565b80634f558e79146103745780634f6ccce7146103915780635c975abb146103ae5780636352211e146103b65780636c0360eb146103d357806370a08231146103db5761014d565b806323b872dd1161011557806323b872dd1461028b5780632f745c59146102c15780633f4ba83a146102ed57806340c10f19146102f557806342842e0e1461032157806342966c68146103575761014d565b806301ffc9a71461015257806306fdde031461018d578063081812fc1461020a578063095ea7b31461024357806318160ddd14610271575b600080fd5b6101796004803603602081101561016857600080fd5b50356001600160e01b031916610550565b604080519115158252519081900360200190f35b610195610573565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cf5781810151838201526020016101b7565b50505050905090810190601f1680156101fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102276004803603602081101561022057600080fd5b5035610609565b604080516001600160a01b039092168252519081900360200190f35b61026f6004803603604081101561025957600080fd5b506001600160a01b03813516906020013561066b565b005b610279610746565b60408051918252519081900360200190f35b61026f600480360360608110156102a157600080fd5b506001600160a01b03813581169160208101359091169060400135610757565b610279600480360360408110156102d757600080fd5b506001600160a01b0381351690602001356107ae565b61026f6107d9565b61026f6004803603604081101561030b57600080fd5b506001600160a01b0381351690602001356107e3565b61026f6004803603606081101561033757600080fd5b506001600160a01b038135811691602081013590911690604001356107f1565b61026f6004803603602081101561036d57600080fd5b503561080c565b6101796004803603602081101561038a57600080fd5b5035610818565b610279600480360360208110156103a757600080fd5b5035610823565b610179610839565b610227600480360360208110156103cc57600080fd5b5035610842565b61019561086a565b610279600480360360208110156103f157600080fd5b50356001600160a01b03166108cb565b61026f610933565b61019561093b565b61026f6004803603604081101561042757600080fd5b506001600160a01b038135169060200135151561099c565b61026f6004803603608081101561045557600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561049057600080fd5b8201836020820111156104a257600080fd5b803590602001918460018302840111640100000000831117156104c457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610aa1945050505050565b6101956004803603602081101561051b57600080fd5b5035610aff565b6101796004803603604081101561053857600080fd5b506001600160a01b0381358116916020013516610da6565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b820191906000526020600020905b8154815290600101906020018083116105e257829003601f168201915b5050505050905090565b600061061482610dd4565b61064f5760405162461bcd60e51b815260040180806020018281038252602c815260200180611e96602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061067682610842565b9050806001600160a01b0316836001600160a01b031614156106c95760405162461bcd60e51b8152600401808060200182810382526021815260200180611f1a6021913960400191505060405180910390fd5b806001600160a01b03166106db610de1565b6001600160a01b031614806106fc57506106fc816106f7610de1565b610da6565b6107375760405162461bcd60e51b8152600401808060200182810382526038815260200180611de96038913960400191505060405180910390fd5b6107418383610de5565b505050565b60006107526002610e53565b905090565b610768610762610de1565b82610e5e565b6107a35760405162461bcd60e51b8152600401808060200182810382526031815260200180611f3b6031913960400191505060405180910390fd5b610741838383610f02565b6001600160a01b03821660009081526001602052604081206107d0908361104e565b90505b92915050565b6107e161105a565b565b6107ed82826110f8565b5050565b61074183838360405180602001604052806000815250610aa1565b61081581611226565b50565b60006107d382610dd4565b6000806108316002846112f3565b509392505050565b600a5460ff1690565b60006107d382604051806060016040528060298152602001611e4b602991396002919061130f565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b60006001600160a01b0382166109125760405162461bcd60e51b815260040180806020018281038252602a815260200180611e21602a913960400191505060405180910390fd5b6001600160a01b03821660009081526001602052604090206107d390610e53565b6107e1611326565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b6109a4610de1565b6001600160a01b0316826001600160a01b03161415610a0a576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610a17610de1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a5b610de1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610ab2610aac610de1565b83610e5e565b610aed5760405162461bcd60e51b8152600401808060200182810382526031815260200180611f3b6031913960400191505060405180910390fd5b610af9848484846113a7565b50505050565b6060610b0a82610dd4565b610b455760405162461bcd60e51b815260040180806020018281038252602f815260200180611eeb602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610bda5780601f10610baf57610100808354040283529160200191610bda565b820191906000526020600020905b815481529060010190602001808311610bbd57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610c0357905061056e565b805115610cd4576009816040516020018083805460018160011615610100020316600290048015610c6b5780601f10610c49576101008083540402835291820191610c6b565b820191906000526020600020905b815481529060010190602001808311610c57575b5050825160208401908083835b60208310610c975780518252601f199092019160209182019101610c78565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061056e565b6009610cdf846113f9565b6040516020018083805460018160011615610100020316600290048015610d3d5780601f10610d1b576101008083540402835291820191610d3d565b820191906000526020600020905b815481529060010190602001808311610d29575b5050825160208401908083835b60208310610d695780518252601f199092019160209182019101610d4a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006107d36002836114d4565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610e1a82610842565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006107d3826114e0565b6000610e6982610dd4565b610ea45760405162461bcd60e51b815260040180806020018281038252602c815260200180611dbd602c913960400191505060405180910390fd5b6000610eaf83610842565b9050806001600160a01b0316846001600160a01b03161480610eea5750836001600160a01b0316610edf84610609565b6001600160a01b0316145b80610efa5750610efa8185610da6565b949350505050565b826001600160a01b0316610f1582610842565b6001600160a01b031614610f5a5760405162461bcd60e51b8152600401808060200182810382526029815260200180611ec26029913960400191505060405180910390fd5b6001600160a01b038216610f9f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d996024913960400191505060405180910390fd5b610faa8383836114e4565b610fb5600082610de5565b6001600160a01b0383166000908152600160205260409020610fd79082611533565b506001600160a01b0382166000908152600160205260409020610ffa908261153f565b506110076002828461154b565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006107d08383611561565b600a5460ff166110a8576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6110db610de1565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216611153576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61115c81610dd4565b156111ae576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6111ba600083836114e4565b6001600160a01b03821660009081526001602052604090206111dc908261153f565b506111e96002828461154b565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061123182610842565b905061123f816000846114e4565b61124a600083610de5565b600082815260086020526040902054600260001961010060018416150201909116041561128857600082815260086020526040812061128891611cc1565b6001600160a01b03811660009081526001602052604090206112aa9083611533565b506112b66002836115c5565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080808061130286866115d1565b9097909650945050505050565b600061131c84848461164c565b90505b9392505050565b600a5460ff1615611371576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110db610de1565b6113b2848484610f02565b6113be84848484611716565b610af95760405162461bcd60e51b8152600401808060200182810382526032815260200180611d676032913960400191505060405180910390fd5b60608161141e57506040805180820190915260018152600360fc1b602082015261056e565b8160005b811561143657600101600a82049150611422565b60608167ffffffffffffffff8111801561144f57600080fd5b506040519080825280601f01601f19166020018201604052801561147a576020820181803683370190505b50859350905060001982015b83156114cb57600a840660300160f81b828280600190039350815181106114a957fe5b60200101906001600160f81b031916908160001a905350600a84049350611486565b50949350505050565b60006107d0838361187e565b5490565b6114ef838383610741565b6114f7610839565b156107415760405162461bcd60e51b815260040180806020018281038252602b815260200180611d3c602b913960400191505060405180910390fd5b60006107d08383611896565b60006107d0838361195c565b600061131c84846001600160a01b0385166119a6565b815460009082106115a35760405162461bcd60e51b8152600401808060200182810382526022815260200180611d1a6022913960400191505060405180910390fd5b8260000182815481106115b257fe5b9060005260206000200154905092915050565b60006107d08383611a3d565b8154600090819083106116155760405162461bcd60e51b8152600401808060200182810382526022815260200180611e746022913960400191505060405180910390fd5b600084600001848154811061162657fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816116e75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116ac578181015183820152602001611694565b50505050905090810190601f1680156116d95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106116fa57fe5b9060005260206000209060020201600101549150509392505050565b600061172a846001600160a01b0316611b11565b61173657506001610efa565b6060611844630a85bd0160e11b61174b610de1565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156117b257818101518382015260200161179a565b50505050905090810190601f1680156117df5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611d67603291396001600160a01b0388169190611b4a565b9050600081806020019051602081101561185d57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561195257835460001980830191908101906000908790839081106118c957fe5b90600052602060002001549050808760000184815481106118e657fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061191657fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506107d3565b60009150506107d3565b6000611968838361187e565b61199e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107d3565b5060006107d3565b600082815260018401602052604081205480611a0b57505060408051808201825283815260208082018481528654600181810189556000898152848120955160029093029095019182559151908201558654868452818801909252929091205561131f565b82856000016001830381548110611a1e57fe5b906000526020600020906002020160010181905550600091505061131f565b600081815260018301602052604081205480156119525783546000198083019190810190600090879083908110611a7057fe5b9060005260206000209060020201905080876000018481548110611a9057fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611acf57fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506107d39350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610efa575050151592915050565b606061131c84846000856060611b5f85611b11565b611bb0576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611bef5780518252601f199092019160209182019101611bd0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611c51576040519150601f19603f3d011682016040523d82523d6000602084013e611c56565b606091505b50915091508115611c6a579150610efa9050565b805115611c7a5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156116ac578181015183820152602001611694565b50805460018160011615610100020316600290046000825580601f10611ce75750610815565b601f01602090049060005260206000209081019061081591905b80821115611d155760008155600101611d01565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732315061757361626c653a20746f6b656e207472616e73666572207768696c65207061757365644552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a26469706673582212206e80cbb1bf16d04fa28e93cdb06ed516e88092e702225ba99562fd831e8c82bf64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80634f558e79116100c35780638456cb591161007c5780638456cb591461040157806395d89b4114610409578063a22cb46514610411578063b88d4fde1461043f578063c87b56dd14610505578063e985e9c5146105225761014d565b80634f558e79146103745780634f6ccce7146103915780635c975abb146103ae5780636352211e146103b65780636c0360eb146103d357806370a08231146103db5761014d565b806323b872dd1161011557806323b872dd1461028b5780632f745c59146102c15780633f4ba83a146102ed57806340c10f19146102f557806342842e0e1461032157806342966c68146103575761014d565b806301ffc9a71461015257806306fdde031461018d578063081812fc1461020a578063095ea7b31461024357806318160ddd14610271575b600080fd5b6101796004803603602081101561016857600080fd5b50356001600160e01b031916610550565b604080519115158252519081900360200190f35b610195610573565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cf5781810151838201526020016101b7565b50505050905090810190601f1680156101fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102276004803603602081101561022057600080fd5b5035610609565b604080516001600160a01b039092168252519081900360200190f35b61026f6004803603604081101561025957600080fd5b506001600160a01b03813516906020013561066b565b005b610279610746565b60408051918252519081900360200190f35b61026f600480360360608110156102a157600080fd5b506001600160a01b03813581169160208101359091169060400135610757565b610279600480360360408110156102d757600080fd5b506001600160a01b0381351690602001356107ae565b61026f6107d9565b61026f6004803603604081101561030b57600080fd5b506001600160a01b0381351690602001356107e3565b61026f6004803603606081101561033757600080fd5b506001600160a01b038135811691602081013590911690604001356107f1565b61026f6004803603602081101561036d57600080fd5b503561080c565b6101796004803603602081101561038a57600080fd5b5035610818565b610279600480360360208110156103a757600080fd5b5035610823565b610179610839565b610227600480360360208110156103cc57600080fd5b5035610842565b61019561086a565b610279600480360360208110156103f157600080fd5b50356001600160a01b03166108cb565b61026f610933565b61019561093b565b61026f6004803603604081101561042757600080fd5b506001600160a01b038135169060200135151561099c565b61026f6004803603608081101561045557600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561049057600080fd5b8201836020820111156104a257600080fd5b803590602001918460018302840111640100000000831117156104c457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610aa1945050505050565b6101956004803603602081101561051b57600080fd5b5035610aff565b6101796004803603604081101561053857600080fd5b506001600160a01b0381358116916020013516610da6565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b820191906000526020600020905b8154815290600101906020018083116105e257829003601f168201915b5050505050905090565b600061061482610dd4565b61064f5760405162461bcd60e51b815260040180806020018281038252602c815260200180611e96602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061067682610842565b9050806001600160a01b0316836001600160a01b031614156106c95760405162461bcd60e51b8152600401808060200182810382526021815260200180611f1a6021913960400191505060405180910390fd5b806001600160a01b03166106db610de1565b6001600160a01b031614806106fc57506106fc816106f7610de1565b610da6565b6107375760405162461bcd60e51b8152600401808060200182810382526038815260200180611de96038913960400191505060405180910390fd5b6107418383610de5565b505050565b60006107526002610e53565b905090565b610768610762610de1565b82610e5e565b6107a35760405162461bcd60e51b8152600401808060200182810382526031815260200180611f3b6031913960400191505060405180910390fd5b610741838383610f02565b6001600160a01b03821660009081526001602052604081206107d0908361104e565b90505b92915050565b6107e161105a565b565b6107ed82826110f8565b5050565b61074183838360405180602001604052806000815250610aa1565b61081581611226565b50565b60006107d382610dd4565b6000806108316002846112f3565b509392505050565b600a5460ff1690565b60006107d382604051806060016040528060298152602001611e4b602991396002919061130f565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b60006001600160a01b0382166109125760405162461bcd60e51b815260040180806020018281038252602a815260200180611e21602a913960400191505060405180910390fd5b6001600160a01b03821660009081526001602052604090206107d390610e53565b6107e1611326565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b6109a4610de1565b6001600160a01b0316826001600160a01b03161415610a0a576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610a17610de1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a5b610de1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610ab2610aac610de1565b83610e5e565b610aed5760405162461bcd60e51b8152600401808060200182810382526031815260200180611f3b6031913960400191505060405180910390fd5b610af9848484846113a7565b50505050565b6060610b0a82610dd4565b610b455760405162461bcd60e51b815260040180806020018281038252602f815260200180611eeb602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610bda5780601f10610baf57610100808354040283529160200191610bda565b820191906000526020600020905b815481529060010190602001808311610bbd57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610c0357905061056e565b805115610cd4576009816040516020018083805460018160011615610100020316600290048015610c6b5780601f10610c49576101008083540402835291820191610c6b565b820191906000526020600020905b815481529060010190602001808311610c57575b5050825160208401908083835b60208310610c975780518252601f199092019160209182019101610c78565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061056e565b6009610cdf846113f9565b6040516020018083805460018160011615610100020316600290048015610d3d5780601f10610d1b576101008083540402835291820191610d3d565b820191906000526020600020905b815481529060010190602001808311610d29575b5050825160208401908083835b60208310610d695780518252601f199092019160209182019101610d4a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006107d36002836114d4565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610e1a82610842565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006107d3826114e0565b6000610e6982610dd4565b610ea45760405162461bcd60e51b815260040180806020018281038252602c815260200180611dbd602c913960400191505060405180910390fd5b6000610eaf83610842565b9050806001600160a01b0316846001600160a01b03161480610eea5750836001600160a01b0316610edf84610609565b6001600160a01b0316145b80610efa5750610efa8185610da6565b949350505050565b826001600160a01b0316610f1582610842565b6001600160a01b031614610f5a5760405162461bcd60e51b8152600401808060200182810382526029815260200180611ec26029913960400191505060405180910390fd5b6001600160a01b038216610f9f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d996024913960400191505060405180910390fd5b610faa8383836114e4565b610fb5600082610de5565b6001600160a01b0383166000908152600160205260409020610fd79082611533565b506001600160a01b0382166000908152600160205260409020610ffa908261153f565b506110076002828461154b565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006107d08383611561565b600a5460ff166110a8576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6110db610de1565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216611153576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61115c81610dd4565b156111ae576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6111ba600083836114e4565b6001600160a01b03821660009081526001602052604090206111dc908261153f565b506111e96002828461154b565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061123182610842565b905061123f816000846114e4565b61124a600083610de5565b600082815260086020526040902054600260001961010060018416150201909116041561128857600082815260086020526040812061128891611cc1565b6001600160a01b03811660009081526001602052604090206112aa9083611533565b506112b66002836115c5565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080808061130286866115d1565b9097909650945050505050565b600061131c84848461164c565b90505b9392505050565b600a5460ff1615611371576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110db610de1565b6113b2848484610f02565b6113be84848484611716565b610af95760405162461bcd60e51b8152600401808060200182810382526032815260200180611d676032913960400191505060405180910390fd5b60608161141e57506040805180820190915260018152600360fc1b602082015261056e565b8160005b811561143657600101600a82049150611422565b60608167ffffffffffffffff8111801561144f57600080fd5b506040519080825280601f01601f19166020018201604052801561147a576020820181803683370190505b50859350905060001982015b83156114cb57600a840660300160f81b828280600190039350815181106114a957fe5b60200101906001600160f81b031916908160001a905350600a84049350611486565b50949350505050565b60006107d0838361187e565b5490565b6114ef838383610741565b6114f7610839565b156107415760405162461bcd60e51b815260040180806020018281038252602b815260200180611d3c602b913960400191505060405180910390fd5b60006107d08383611896565b60006107d0838361195c565b600061131c84846001600160a01b0385166119a6565b815460009082106115a35760405162461bcd60e51b8152600401808060200182810382526022815260200180611d1a6022913960400191505060405180910390fd5b8260000182815481106115b257fe5b9060005260206000200154905092915050565b60006107d08383611a3d565b8154600090819083106116155760405162461bcd60e51b8152600401808060200182810382526022815260200180611e746022913960400191505060405180910390fd5b600084600001848154811061162657fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816116e75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116ac578181015183820152602001611694565b50505050905090810190601f1680156116d95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106116fa57fe5b9060005260206000209060020201600101549150509392505050565b600061172a846001600160a01b0316611b11565b61173657506001610efa565b6060611844630a85bd0160e11b61174b610de1565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156117b257818101518382015260200161179a565b50505050905090810190601f1680156117df5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611d67603291396001600160a01b0388169190611b4a565b9050600081806020019051602081101561185d57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561195257835460001980830191908101906000908790839081106118c957fe5b90600052602060002001549050808760000184815481106118e657fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061191657fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506107d3565b60009150506107d3565b6000611968838361187e565b61199e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107d3565b5060006107d3565b600082815260018401602052604081205480611a0b57505060408051808201825283815260208082018481528654600181810189556000898152848120955160029093029095019182559151908201558654868452818801909252929091205561131f565b82856000016001830381548110611a1e57fe5b906000526020600020906002020160010181905550600091505061131f565b600081815260018301602052604081205480156119525783546000198083019190810190600090879083908110611a7057fe5b9060005260206000209060020201905080876000018481548110611a9057fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611acf57fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506107d39350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610efa575050151592915050565b606061131c84846000856060611b5f85611b11565b611bb0576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611bef5780518252601f199092019160209182019101611bd0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611c51576040519150601f19603f3d011682016040523d82523d6000602084013e611c56565b606091505b50915091508115611c6a579150610efa9050565b805115611c7a5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156116ac578181015183820152602001611694565b50805460018160011615610100020316600290046000825580601f10611ce75750610815565b601f01602090049060005260206000209081019061081591905b80821115611d155760008155600101611d01565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732315061757361626c653a20746f6b656e207472616e73666572207768696c65207061757365644552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a26469706673582212206e80cbb1bf16d04fa28e93cdb06ed516e88092e702225ba99562fd831e8c82bf64736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "baseURI", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "exists", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenByIndex", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenOfOwnerByIndex", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "baseURI()": {"details": "Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenByIndex(uint256)": {"details": "See {IERC721Enumerable-tokenByIndex}."}, "tokenOfOwnerByIndex(address,uint256)": {"details": "See {IERC721Enumerable-tokenOfOwnerByIndex}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "totalSupply()": {"details": "See {IERC721Enumerable-totalSupply}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "title": "ERC721PausableMock This mock just provides a public mint, burn and exists functions for testing purposes", "version": 1}}, "ERC721ReceiverMock": {"contractName": "ERC721ReceiverMock", "sourceId": "mocks/ERC721ReceiverMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506040516102fd3803806102fd8339818101604052604081101561003357600080fd5b508051602090910151600080549115156401000000000260ff60201b1960e09490941c63ffffffff199093169290921792909216179055610284806100796000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b6100f66004803603608081101561004657600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561008157600080fd5b82018360208201111561009357600080fd5b803590602001918460018302840111640100000000831117156100b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610113945050505050565b604080516001600160e01b03199092168252519081900360200190f35b60008054640100000000900460ff1615610174576040805162461bcd60e51b815260206004820152601d60248201527f45524337323152656365697665724d6f636b3a20726576657274696e67000000604482015290519081900360640190fd5b7f28fa6e16458f9c24aa59ddd4085264573006dbe30304837873c7deafc702b038858585855a60405180866001600160a01b03168152602001856001600160a01b0316815260200184815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b838110156102015781810151838201526020016101e9565b50505050905090810190601f16801561022e5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a15060005460e01b94935050505056fea2646970667358221220313c6ccd2be7365941b08a633e89341e6071c4a99832e0fcb097bbe9af16f5ff64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b6100f66004803603608081101561004657600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561008157600080fd5b82018360208201111561009357600080fd5b803590602001918460018302840111640100000000831117156100b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610113945050505050565b604080516001600160e01b03199092168252519081900360200190f35b60008054640100000000900460ff1615610174576040805162461bcd60e51b815260206004820152601d60248201527f45524337323152656365697665724d6f636b3a20726576657274696e67000000604482015290519081900360640190fd5b7f28fa6e16458f9c24aa59ddd4085264573006dbe30304837873c7deafc702b038858585855a60405180866001600160a01b03168152602001856001600160a01b0316815260200184815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b838110156102015781810151838201526020016101e9565b50505050905090810190601f16801561022e5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a15060005460e01b94935050505056fea2646970667358221220313c6ccd2be7365941b08a633e89341e6071c4a99832e0fcb097bbe9af16f5ff64736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "retval", "type": "bytes4", "internalType": "bytes4"}, {"name": "reverts", "type": "bool", "internalType": "bool"}]}, {"type": "event", "name": "Received", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": false}, {"name": "from", "type": "address", "internalType": "address", "indexed": false}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "gas", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "onERC721Received", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"onERC721Received(address,address,uint256,bytes)": {"details": "Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} by `operator` from `from`, this function is called. It must return its Solidity selector to confirm the token transfer. If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`."}}, "version": 1}}, "ERC777Mock": {"contractName": "ERC777Mock", "sourceId": "mocks/ERC777Mock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162002dc838038062002dc8833981810160405260a08110156200003757600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200006357600080fd5b9083019060208201858111156200007957600080fd5b82516401000000008111828201881017156200009457600080fd5b82525081516020918201929091019080838360005b83811015620000c3578181015183820152602001620000a9565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011557600080fd5b9083019060208201858111156200012b57600080fd5b82516401000000008111828201881017156200014657600080fd5b82525081516020918201929091019080838360005b83811015620001755781810151838201526020016200015b565b50505050905090810190601f168015620001a35780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620001c757600080fd5b908301906020820185811115620001dd57600080fd5b8251866020820283011164010000000082111715620001fb57600080fd5b82525081516020918201928201910280838360005b838110156200022a57818101518382015260200162000210565b50505050905001604052505050828282826002908051906020019062000252929190620009fd565b50815162000268906003906020850190620009fd565b5080516200027e90600490602084019062000a82565b5060005b600454811015620002de5760016005600060048481548110620002a157fe5b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560010162000282565b50604080516329965a1d60e01b815230600482018190527fac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce2177054602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad24916329965a1d91606480830192600092919082900301818387803b1580156200035f57600080fd5b505af115801562000374573d6000803e3d6000fd5b5050604080516329965a1d60e01b815230600482018190527faea199e31a596269b42cdafd93407f14436db6e4cad65417994c2eb37381e05a602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad2493506329965a1d9250606480830192600092919082900301818387803b158015620003f857600080fd5b505af11580156200040d573d6000803e3d6000fd5b5050505050505062000446858560405180602001604052806000815250604051806020016040528060008152506200045160201b60201c565b505050505062000b20565b6001600160a01b038416620004ad576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000620004b9620006b2565b9050620004ca8160008787620006b6565b620004e684600154620006bc60201b6200119b1790919060201c565b6001556001600160a01b03851660009081526020818152604090912054620005199186906200119b620006bc821b17901c565b6001600160a01b038616600090815260208190526040812091909155620005489082908787878760016200071e565b846001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015620005c9578181015183820152602001620005af565b50505050905090810190601f168015620005f75780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156200062c57818101518382015260200162000612565b50505050905090810190601f1680156200065a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516001600160a01b038716916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b3390565b50505050565b60008282018381101562000717576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b158015620007a357600080fd5b505afa158015620007b8573d6000803e3d6000fd5b505050506040513d6020811015620007cf57600080fd5b505190506001600160a01b038116156200095257806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b838110156200087c57818101518382015260200162000862565b50505050905090810190601f168015620008aa5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015620008df578181015183820152602001620008c5565b50505050905090810190601f1680156200090d5780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156200093357600080fd5b505af115801562000948573d6000803e3d6000fd5b50505050620009b6565b8115620009b65762000978866001600160a01b0316620009c060201b620011f51760201c565b15620009b65760405162461bcd60e51b815260040180806020018281038252604d81526020018062002d7b604d913960600191505060405180910390fd5b5050505050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590620009f557508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1062000a4057805160ff191683800117855562000a70565b8280016001018555821562000a70579182015b8281111562000a7057825182559160200191906001019062000a53565b5062000a7e92915062000ae8565b5090565b82805482825590600052602060002090810192821562000ada579160200282015b8281111562000ada57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000aa3565b5062000a7e92915062000aff565b5b8082111562000a7e576000815560010162000ae9565b5b8082111562000a7e5780546001600160a01b031916815560010162000b00565b61224b8062000b306000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063959b8c3f116100ad578063d95b637111610071578063d95b6371146106b4578063dd62ed3e146106e2578063fad8b32a14610710578063fc673c4f14610736578063fe9d9303146108745761012c565b8063959b8c3f1461046357806395d89b41146104895780639bd9bbc614610491578063a9059cbb1461054a578063b1f0b5be146105765761012c565b8063313ce567116100f4578063313ce56714610296578063556f0dc7146102b457806356189cb4146102bc57806362ad1b83146102f457806370a082311461043d5761012c565b806306e485381461013157806306fdde0314610189578063095ea7b31461020657806318160ddd1461024657806323b872dd14610260575b600080fd5b61013961091f565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561017557818101518382015260200161015d565b505050509050019250505060405180910390f35b610191610981565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cb5781810151838201526020016101b3565b50505050905090810190601f1680156101f85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603604081101561021c57600080fd5b506001600160a01b038135169060200135610a0b565b604080519115158252519081900360200190f35b61024e610a2d565b60408051918252519081900360200190f35b6102326004803603606081101561027657600080fd5b506001600160a01b03813581169160208101359091169060400135610a33565b61029e610bb0565b6040805160ff9092168252519081900360200190f35b61024e610bb5565b6102f2600480360360608110156102d257600080fd5b506001600160a01b03813581169160208101359091169060400135610bba565b005b6102f2600480360360a081101561030a57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460018302840111600160201b8311171561037757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156103c957600080fd5b8201836020820111156103db57600080fd5b803590602001918460018302840111600160201b831117156103fc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bca945050505050565b61024e6004803603602081101561045357600080fd5b50356001600160a01b0316610c2c565b6102f26004803603602081101561047957600080fd5b50356001600160a01b0316610c47565b610191610d93565b6102f2600480360360608110156104a757600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156104d657600080fd5b8201836020820111156104e857600080fd5b803590602001918460018302840111600160201b8311171561050957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610df4945050505050565b6102326004803603604081101561056057600080fd5b506001600160a01b038135169060200135610e19565b6102f26004803603608081101561058c57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156105bb57600080fd5b8201836020820111156105cd57600080fd5b803590602001918460018302840111600160201b831117156105ee57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561064057600080fd5b82018360208201111561065257600080fd5b803590602001918460018302840111600160201b8311171561067357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610ef2945050505050565b610232600480360360408110156106ca57600080fd5b506001600160a01b0381358116916020013516610f04565b61024e600480360360408110156106f857600080fd5b506001600160a01b0381358116916020013516610fa6565b6102f26004803603602081101561072657600080fd5b50356001600160a01b0316610fd1565b6102f26004803603608081101561074c57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561077b57600080fd5b82018360208201111561078d57600080fd5b803590602001918460018302840111600160201b831117156107ae57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561080057600080fd5b82018360208201111561081257600080fd5b803590602001918460018302840111600160201b8311171561083357600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061111d945050505050565b6102f26004803603604081101561088a57600080fd5b81359190810190604081016020820135600160201b8111156108ab57600080fd5b8201836020820111156108bd57600080fd5b803590602001918460018302840111600160201b831117156108de57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611175945050505050565b6060600480548060200260200160405190810160405280929190818152602001828054801561097757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610959575b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156109775780601f106109df57610100808354040283529160200191610977565b820191906000526020600020905b8154815290600101906020018083116109ed57509395945050505050565b600080610a16611231565b9050610a23818585611235565b5060019392505050565b60015490565b60006001600160a01b038316610a7a5760405162461bcd60e51b81526004018080602001828103825260248152602001806121316024913960400191505060405180910390fd5b6001600160a01b038416610abf5760405162461bcd60e51b81526004018080602001828103825260268152602001806121aa6026913960400191505060405180910390fd5b6000610ac9611231565b9050610af7818686866040518060200160405280600081525060405180602001604052806000815250611321565b610b2381868686604051806020016040528060008152506040518060200160405280600081525061154e565b610b778582610b7286604051806060016040528060298152602001612181602991396001600160a01b03808c166000908152600860209081526040808320938b16835292905220549190611767565b611235565b610ba581868686604051806020016040528060008152506040518060200160405280600081525060006117fe565b506001949350505050565b601290565b600190565b610bc5838383611235565b505050565b610bdb610bd5611231565b86610f04565b610c165760405162461bcd60e51b815260040180806020018281038252602c815260200180612155602c913960400191505060405180910390fd5b610c2585858585856001611a83565b5050505050565b6001600160a01b031660009081526020819052604090205490565b806001600160a01b0316610c59611231565b6001600160a01b03161415610c9f5760405162461bcd60e51b815260040180806020018281038252602481526020018061209f6024913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610d025760076000610ccc611231565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff19169055610d49565b600160066000610d10611231565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790555b610d51611231565b6001600160a01b0316816001600160a01b03167ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f960405160405180910390a350565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109775780601f106109df57610100808354040283529160200191610977565b610bc5610dff611231565b848484604051806020016040528060008152506001611a83565b60006001600160a01b038316610e605760405162461bcd60e51b81526004018080602001828103825260248152602001806121316024913960400191505060405180910390fd5b6000610e6a611231565b9050610e98818286866040518060200160405280600081525060405180602001604052806000815250611321565b610ec481828686604051806020016040528060008152506040518060200160405280600081525061154e565b610a2381828686604051806020016040528060008152506040518060200160405280600081525060006117fe565b610efe84848484611b5a565b50505050565b6000816001600160a01b0316836001600160a01b03161480610f6f57506001600160a01b03831660009081526005602052604090205460ff168015610f6f57506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b80610f9f57506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610fd9611231565b6001600160a01b0316816001600160a01b031614156110295760405162461bcd60e51b81526004018080602001828103825260218152602001806120c36021913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff161561109557600160076000611058611231565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790556110d3565b600660006110a1611231565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff191690555b6110db611231565b6001600160a01b0316816001600160a01b03167f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa160405160405180910390a350565b61112e611128611231565b85610f04565b6111695760405162461bcd60e51b815260040180806020018281038252602c815260200180612155602c913960400191505060405180910390fd5b610efe84848484611d92565b611197611180611231565b838360405180602001604052806000815250611d92565b5050565b600082820183811015610f9f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061122957508115155b949350505050565b3390565b6001600160a01b03831661127a5760405162461bcd60e51b815260040180806020018281038252602581526020018061200f6025913960400191505060405180910390fd5b6001600160a01b0382166112bf5760405162461bcd60e51b81526004018080602001828103825260238152602001806121f36023913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b1580156113a557600080fd5b505afa1580156113b9573d6000803e3d6000fd5b505050506040513d60208110156113cf57600080fd5b505190506001600160a01b0381161561154557806001600160a01b03166375ab97828888888888886040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561147a578181015183820152602001611462565b50505050905090810190601f1680156114a75780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156114da5781810151838201526020016114c2565b50505050905090810190601f1680156115075780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b15801561152c57600080fd5b505af1158015611540573d6000803e3d6000fd5b505050505b50505050505050565b61155a86868686610efe565b61159783604051806060016040528060278152602001612056602791396001600160a01b0388166000908152602081905260409020549190611767565b6001600160a01b0380871660009081526020819052604080822093909355908616815220546115c6908461119b565b600080866001600160a01b03166001600160a01b0316815260200190815260200160002081905550836001600160a01b0316856001600160a01b0316876001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561167757818101518382015260200161165f565b50505050905090810190601f1680156116a45780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156116d75781810151838201526020016116bf565b50505050905090810190601f1680156117045780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050565b600081848411156117f65760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117bb5781810151838201526020016117a3565b50505050905090810190601f1680156117e85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561188257600080fd5b505afa158015611896573d6000803e3d6000fd5b505050506040513d60208110156118ac57600080fd5b505190506001600160a01b03811615611a2557806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561195657818101518382015260200161193e565b50505050905090810190601f1680156119835780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156119b657818101518382015260200161199e565b50505050905090810190601f1680156119e35780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b158015611a0857600080fd5b505af1158015611a1c573d6000803e3d6000fd5b50505050611a79565b8115611a7957611a3d866001600160a01b03166111f5565b15611a795760405162461bcd60e51b815260040180806020018281038252604d8152602001806120e4604d913960600191505060405180910390fd5b5050505050505050565b6001600160a01b038616611ac85760405162461bcd60e51b81526004018080602001828103825260228152602001806120346022913960400191505060405180910390fd5b6001600160a01b038516611b23576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000611b2d611231565b9050611b3d818888888888611321565b611b4b81888888888861154e565b611545818888888888886117fe565b6001600160a01b038416611bb5576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000611bbf611231565b9050611bce8160008787610efe565b600154611bdb908561119b565b6001556001600160a01b038516600090815260208190526040902054611c01908561119b565b6001600160a01b038616600090815260208190526040812091909155611c2e9082908787878760016117fe565b846001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611cad578181015183820152602001611c95565b50505050905090810190601f168015611cda5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611d0d578181015183820152602001611cf5565b50505050905090810190601f168015611d3a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516001600160a01b038716916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6001600160a01b038416611dd75760405162461bcd60e51b815260040180806020018281038252602281526020018061207d6022913960400191505060405180910390fd5b6000611de1611231565b9050611df08186600087610efe565b611dff81866000878787611321565b611e3c846040518060600160405280602381526020016121d0602391396001600160a01b0388166000908152602081905260409020549190611767565b6001600160a01b038616600090815260208190526040902055600154611e629085611fcc565b600181905550846001600160a01b0316816001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611ee7578181015183820152602001611ecf565b50505050905090810190601f168015611f145780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611f47578181015183820152602001611f2f565b50505050905090810190601f168015611f745780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516000916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6000610f9f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061176756fe4552433737373a20617070726f76652066726f6d20746865207a65726f20616464726573734552433737373a2073656e642066726f6d20746865207a65726f20616464726573734552433737373a207472616e7366657220616d6f756e7420657863656564732062616c616e63654552433737373a206275726e2066726f6d20746865207a65726f20616464726573734552433737373a20617574686f72697a696e672073656c66206173206f70657261746f724552433737373a207265766f6b696e672073656c66206173206f70657261746f724552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e744552433737373a207472616e7366657220746f20746865207a65726f20616464726573734552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f7220666f7220686f6c6465724552433737373a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654552433737373a207472616e736665722066726f6d20746865207a65726f20616464726573734552433737373a206275726e20616d6f756e7420657863656564732062616c616e63654552433737373a20617070726f766520746f20746865207a65726f2061646472657373a264697066735822122045092a5d4474f3ae58904557baa2adeec7ce71963bddeb9c919e7bf90bcf22c964736f6c634300060c00334552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e74"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063959b8c3f116100ad578063d95b637111610071578063d95b6371146106b4578063dd62ed3e146106e2578063fad8b32a14610710578063fc673c4f14610736578063fe9d9303146108745761012c565b8063959b8c3f1461046357806395d89b41146104895780639bd9bbc614610491578063a9059cbb1461054a578063b1f0b5be146105765761012c565b8063313ce567116100f4578063313ce56714610296578063556f0dc7146102b457806356189cb4146102bc57806362ad1b83146102f457806370a082311461043d5761012c565b806306e485381461013157806306fdde0314610189578063095ea7b31461020657806318160ddd1461024657806323b872dd14610260575b600080fd5b61013961091f565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561017557818101518382015260200161015d565b505050509050019250505060405180910390f35b610191610981565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cb5781810151838201526020016101b3565b50505050905090810190601f1680156101f85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603604081101561021c57600080fd5b506001600160a01b038135169060200135610a0b565b604080519115158252519081900360200190f35b61024e610a2d565b60408051918252519081900360200190f35b6102326004803603606081101561027657600080fd5b506001600160a01b03813581169160208101359091169060400135610a33565b61029e610bb0565b6040805160ff9092168252519081900360200190f35b61024e610bb5565b6102f2600480360360608110156102d257600080fd5b506001600160a01b03813581169160208101359091169060400135610bba565b005b6102f2600480360360a081101561030a57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460018302840111600160201b8311171561037757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156103c957600080fd5b8201836020820111156103db57600080fd5b803590602001918460018302840111600160201b831117156103fc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bca945050505050565b61024e6004803603602081101561045357600080fd5b50356001600160a01b0316610c2c565b6102f26004803603602081101561047957600080fd5b50356001600160a01b0316610c47565b610191610d93565b6102f2600480360360608110156104a757600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156104d657600080fd5b8201836020820111156104e857600080fd5b803590602001918460018302840111600160201b8311171561050957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610df4945050505050565b6102326004803603604081101561056057600080fd5b506001600160a01b038135169060200135610e19565b6102f26004803603608081101561058c57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156105bb57600080fd5b8201836020820111156105cd57600080fd5b803590602001918460018302840111600160201b831117156105ee57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561064057600080fd5b82018360208201111561065257600080fd5b803590602001918460018302840111600160201b8311171561067357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610ef2945050505050565b610232600480360360408110156106ca57600080fd5b506001600160a01b0381358116916020013516610f04565b61024e600480360360408110156106f857600080fd5b506001600160a01b0381358116916020013516610fa6565b6102f26004803603602081101561072657600080fd5b50356001600160a01b0316610fd1565b6102f26004803603608081101561074c57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561077b57600080fd5b82018360208201111561078d57600080fd5b803590602001918460018302840111600160201b831117156107ae57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561080057600080fd5b82018360208201111561081257600080fd5b803590602001918460018302840111600160201b8311171561083357600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061111d945050505050565b6102f26004803603604081101561088a57600080fd5b81359190810190604081016020820135600160201b8111156108ab57600080fd5b8201836020820111156108bd57600080fd5b803590602001918460018302840111600160201b831117156108de57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611175945050505050565b6060600480548060200260200160405190810160405280929190818152602001828054801561097757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610959575b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156109775780601f106109df57610100808354040283529160200191610977565b820191906000526020600020905b8154815290600101906020018083116109ed57509395945050505050565b600080610a16611231565b9050610a23818585611235565b5060019392505050565b60015490565b60006001600160a01b038316610a7a5760405162461bcd60e51b81526004018080602001828103825260248152602001806121316024913960400191505060405180910390fd5b6001600160a01b038416610abf5760405162461bcd60e51b81526004018080602001828103825260268152602001806121aa6026913960400191505060405180910390fd5b6000610ac9611231565b9050610af7818686866040518060200160405280600081525060405180602001604052806000815250611321565b610b2381868686604051806020016040528060008152506040518060200160405280600081525061154e565b610b778582610b7286604051806060016040528060298152602001612181602991396001600160a01b03808c166000908152600860209081526040808320938b16835292905220549190611767565b611235565b610ba581868686604051806020016040528060008152506040518060200160405280600081525060006117fe565b506001949350505050565b601290565b600190565b610bc5838383611235565b505050565b610bdb610bd5611231565b86610f04565b610c165760405162461bcd60e51b815260040180806020018281038252602c815260200180612155602c913960400191505060405180910390fd5b610c2585858585856001611a83565b5050505050565b6001600160a01b031660009081526020819052604090205490565b806001600160a01b0316610c59611231565b6001600160a01b03161415610c9f5760405162461bcd60e51b815260040180806020018281038252602481526020018061209f6024913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610d025760076000610ccc611231565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff19169055610d49565b600160066000610d10611231565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790555b610d51611231565b6001600160a01b0316816001600160a01b03167ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f960405160405180910390a350565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109775780601f106109df57610100808354040283529160200191610977565b610bc5610dff611231565b848484604051806020016040528060008152506001611a83565b60006001600160a01b038316610e605760405162461bcd60e51b81526004018080602001828103825260248152602001806121316024913960400191505060405180910390fd5b6000610e6a611231565b9050610e98818286866040518060200160405280600081525060405180602001604052806000815250611321565b610ec481828686604051806020016040528060008152506040518060200160405280600081525061154e565b610a2381828686604051806020016040528060008152506040518060200160405280600081525060006117fe565b610efe84848484611b5a565b50505050565b6000816001600160a01b0316836001600160a01b03161480610f6f57506001600160a01b03831660009081526005602052604090205460ff168015610f6f57506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b80610f9f57506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610fd9611231565b6001600160a01b0316816001600160a01b031614156110295760405162461bcd60e51b81526004018080602001828103825260218152602001806120c36021913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff161561109557600160076000611058611231565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790556110d3565b600660006110a1611231565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff191690555b6110db611231565b6001600160a01b0316816001600160a01b03167f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa160405160405180910390a350565b61112e611128611231565b85610f04565b6111695760405162461bcd60e51b815260040180806020018281038252602c815260200180612155602c913960400191505060405180910390fd5b610efe84848484611d92565b611197611180611231565b838360405180602001604052806000815250611d92565b5050565b600082820183811015610f9f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061122957508115155b949350505050565b3390565b6001600160a01b03831661127a5760405162461bcd60e51b815260040180806020018281038252602581526020018061200f6025913960400191505060405180910390fd5b6001600160a01b0382166112bf5760405162461bcd60e51b81526004018080602001828103825260238152602001806121f36023913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b1580156113a557600080fd5b505afa1580156113b9573d6000803e3d6000fd5b505050506040513d60208110156113cf57600080fd5b505190506001600160a01b0381161561154557806001600160a01b03166375ab97828888888888886040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561147a578181015183820152602001611462565b50505050905090810190601f1680156114a75780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156114da5781810151838201526020016114c2565b50505050905090810190601f1680156115075780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b15801561152c57600080fd5b505af1158015611540573d6000803e3d6000fd5b505050505b50505050505050565b61155a86868686610efe565b61159783604051806060016040528060278152602001612056602791396001600160a01b0388166000908152602081905260409020549190611767565b6001600160a01b0380871660009081526020819052604080822093909355908616815220546115c6908461119b565b600080866001600160a01b03166001600160a01b0316815260200190815260200160002081905550836001600160a01b0316856001600160a01b0316876001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561167757818101518382015260200161165f565b50505050905090810190601f1680156116a45780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156116d75781810151838201526020016116bf565b50505050905090810190601f1680156117045780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050565b600081848411156117f65760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117bb5781810151838201526020016117a3565b50505050905090810190601f1680156117e85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561188257600080fd5b505afa158015611896573d6000803e3d6000fd5b505050506040513d60208110156118ac57600080fd5b505190506001600160a01b03811615611a2557806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561195657818101518382015260200161193e565b50505050905090810190601f1680156119835780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156119b657818101518382015260200161199e565b50505050905090810190601f1680156119e35780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b158015611a0857600080fd5b505af1158015611a1c573d6000803e3d6000fd5b50505050611a79565b8115611a7957611a3d866001600160a01b03166111f5565b15611a795760405162461bcd60e51b815260040180806020018281038252604d8152602001806120e4604d913960600191505060405180910390fd5b5050505050505050565b6001600160a01b038616611ac85760405162461bcd60e51b81526004018080602001828103825260228152602001806120346022913960400191505060405180910390fd5b6001600160a01b038516611b23576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000611b2d611231565b9050611b3d818888888888611321565b611b4b81888888888861154e565b611545818888888888886117fe565b6001600160a01b038416611bb5576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000611bbf611231565b9050611bce8160008787610efe565b600154611bdb908561119b565b6001556001600160a01b038516600090815260208190526040902054611c01908561119b565b6001600160a01b038616600090815260208190526040812091909155611c2e9082908787878760016117fe565b846001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611cad578181015183820152602001611c95565b50505050905090810190601f168015611cda5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611d0d578181015183820152602001611cf5565b50505050905090810190601f168015611d3a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516001600160a01b038716916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6001600160a01b038416611dd75760405162461bcd60e51b815260040180806020018281038252602281526020018061207d6022913960400191505060405180910390fd5b6000611de1611231565b9050611df08186600087610efe565b611dff81866000878787611321565b611e3c846040518060600160405280602381526020016121d0602391396001600160a01b0388166000908152602081905260409020549190611767565b6001600160a01b038616600090815260208190526040902055600154611e629085611fcc565b600181905550846001600160a01b0316816001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611ee7578181015183820152602001611ecf565b50505050905090810190601f168015611f145780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611f47578181015183820152602001611f2f565b50505050905090810190601f168015611f745780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516000916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6000610f9f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061176756fe4552433737373a20617070726f76652066726f6d20746865207a65726f20616464726573734552433737373a2073656e642066726f6d20746865207a65726f20616464726573734552433737373a207472616e7366657220616d6f756e7420657863656564732062616c616e63654552433737373a206275726e2066726f6d20746865207a65726f20616464726573734552433737373a20617574686f72697a696e672073656c66206173206f70657261746f724552433737373a207265766f6b696e672073656c66206173206f70657261746f724552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e744552433737373a207472616e7366657220746f20746865207a65726f20616464726573734552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f7220666f7220686f6c6465724552433737373a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654552433737373a207472616e736665722066726f6d20746865207a65726f20616464726573734552433737373a206275726e20616d6f756e7420657863656564732062616c616e63654552433737373a20617070726f766520746f20746865207a65726f2061646472657373a264697066735822122045092a5d4474f3ae58904557baa2adeec7ce71963bddeb9c919e7bf90bcf22c964736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "initialHolder", "type": "address", "internalType": "address"}, {"name": "initialBalance", "type": "uint256", "internalType": "uint256"}, {"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "defaultOperators", "type": "address[]", "internalType": "address[]"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "AuthorizedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Burned", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Minted", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RevokedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Sent", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "holder", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "approveInternal", "stateMutability": "nonpayable", "inputs": [{"name": "holder", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "authorizeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "tokenHolder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "defaultOperators", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address[]", "internalType": "address[]"}]}, {"type": "function", "name": "granularity", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "isOperatorFor", "stateMutability": "view", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "tokenHolder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mintInternal", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "userData", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "operatorBurn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "operatorSend", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "revokeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "send", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "holder", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}. Note that operator and allowance concepts are orthogonal: operators may not have allowance, and accounts with allowance may not be operators themselves."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Note that accounts cannot have allowance issued by their operators."}, "authorizeOperator(address)": {"details": "See {IERC777-authorizeOperator}."}, "balanceOf(address)": {"details": "Returns the amount of tokens owned by an account (`tokenHolder`)."}, "burn(uint256,bytes)": {"details": "See {IERC777-burn}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."}, "decimals()": {"details": "See {ERC20-decimals}. Always returns 18, as per the [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility)."}, "defaultOperators()": {"details": "See {IERC777-defaultOperators}."}, "granularity()": {"details": "See {IERC777-granularity}. This implementation always returns `1`."}, "isOperatorFor(address,address)": {"details": "See {IERC777-isOperatorFor}."}, "name()": {"details": "See {IERC777-name}."}, "operatorBurn(address,uint256,bytes,bytes)": {"details": "See {IERC777-operatorBurn}. Emits {Burned} and {IERC20-Transfer} events."}, "operatorSend(address,address,uint256,bytes,bytes)": {"details": "See {IERC777-operatorSend}. Emits {Sent} and {IERC20-Transfer} events."}, "revokeOperator(address)": {"details": "See {IERC777-revokeOperator}."}, "send(address,uint256,bytes)": {"details": "See {IERC777-send}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."}, "symbol()": {"details": "See {IERC777-symbol}."}, "totalSupply()": {"details": "See {IERC777-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient} interface if it is a contract. Also emits a {Sent} event."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Note that operator and allowance concepts are orthogonal: operators cannot call `transferFrom` (unless they have allowance), and accounts with allowance cannot call `operatorSend` (unless they are operators). Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events."}}, "version": 1}}, "ERC777SenderRecipientMock": {"contractName": "ERC777SenderRecipientMock", "sourceId": "mocks/ERC777SenderRecipientMock.sol", "deploymentBytecode": {"bytecode": "0x60806040526001805462010000600160b01b031916751820a4b7618bde71dce8cdc73aab6c95905fad24000017905534801561003a57600080fd5b50610da58061004a6000396000f3fe608060405234801561001057600080fd5b50600436106100a85760003560e01c806375ab97821161007157806375ab97821461036f578063a8badaa514610455578063c97e18fc1461047b578063d2de64741461049a578063e0eb2180146104c0578063e1ecbd30146104e6576100a8565b806223de29146100ad578063249cb3fa146101955780633836ef89146101d357806344d17187146102975780634e4ae5a514610350575b600080fd5b610193600480360360c08110156100c357600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b81111561010557600080fd5b82018360208201111561011757600080fd5b803590602001918460018302840111600160201b8311171561013857600080fd5b919390929091602081019035600160201b81111561015557600080fd5b82018360208201111561016757600080fd5b803590602001918460018302840111600160201b8311171561018857600080fd5b50909250905061050c565b005b6101c1600480360360408110156101ab57600080fd5b50803590602001356001600160a01b031661072a565b60408051918252519081900360200190f35b610193600480360360808110156101e957600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561022357600080fd5b82018360208201111561023557600080fd5b803590602001918460018302840111600160201b8311171561025657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061079f945050505050565b610193600480360360608110156102ad57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156102dc57600080fd5b8201836020820111156102ee57600080fd5b803590602001918460018302840111600160201b8311171561030f57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061087e945050505050565b6101936004803603602081101561036657600080fd5b5035151561094c565b610193600480360360c081101561038557600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b8111156103c757600080fd5b8201836020820111156103d957600080fd5b803590602001918460018302840111600160201b831117156103fa57600080fd5b919390929091602081019035600160201b81111561041757600080fd5b82018360208201111561042957600080fd5b803590602001918460018302840111600160201b8311171561044a57600080fd5b50909250905061095f565b6101936004803603602081101561046b57600080fd5b50356001600160a01b0316610b78565b6101936004803603602081101561049157600080fd5b50351515610c14565b610193600480360360208110156104b057600080fd5b50356001600160a01b0316610c2e565b610193600480360360208110156104d657600080fd5b50356001600160a01b0316610c77565b610193600480360360208110156104fc57600080fd5b50356001600160a01b0316610cbc565b600154610100900460ff161561052157600080fd5b600061052b610d3d565b90506000816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561057c57600080fd5b505afa158015610590573d6000803e3d6000fd5b505050506040513d60208110156105a657600080fd5b5051604080516370a0823160e01b81526001600160a01b038b811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b1580156105f857600080fd5b505afa15801561060c573d6000803e3d6000fd5b505050506040513d602081101561062257600080fd5b810190808051906020019092919050505090507f47e915878c47f3ec4d7ff646a2becb229f64fd2abe4d2b5e2bb4275b0cf50d4e8b8b8b8b8b8b8b8b8b8b8b604051808c6001600160a01b031681526020018b6001600160a01b031681526020018a6001600160a01b031681526020018981526020018060200180602001866001600160a01b0316815260200185815260200184815260200183810383528a8a82818152602001925080828437600083820152601f01601f191690910184810383528881526020019050888880828437600083820152604051601f909101601f19169092018290039f50909d5050505050505050505050505050a15050505050505050505050565b6000828152602081815260408083206001600160a01b038516845290915281205460ff16610759576000610798565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b9392505050565b836001600160a01b0316639bd9bbc68484846040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b15801561086057600080fd5b505af1158015610874573d6000803e3d6000fd5b5050505050505050565b6040805163fe9d930360e01b815260048101848152602482019283528351604483015283516001600160a01b0387169363fe9d9303938793879390929160640190602085019080838360005b838110156108e25781810151838201526020016108ca565b50505050905090810190601f16801561090f5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b15801561092f57600080fd5b505af1158015610943573d6000803e3d6000fd5b50505050505050565b6001805460ff1916911515919091179055565b60015460ff161561096f57600080fd5b6000610979610d3d565b90506000816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156109ca57600080fd5b505afa1580156109de573d6000803e3d6000fd5b505050506040513d60208110156109f457600080fd5b5051604080516370a0823160e01b81526001600160a01b038b811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b158015610a4657600080fd5b505afa158015610a5a573d6000803e3d6000fd5b505050506040513d6020811015610a7057600080fd5b810190808051906020019092919050505090507faa3e88aca472e90221daf7d3d601abafb62b120319089d7a2c2f63588da855298b8b8b8b8b8b8b8b8b8b8b604051808c6001600160a01b031681526020018b6001600160a01b031681526020018a6001600160a01b031681526020018981526020018060200180602001866001600160a01b0316815260200185815260200184815260200183810383528a8a82818152602001925080828437600083820152601f01601f191690910184810383528881526020019050888880828437600083820152604051601f909101601f19169092018290039f50909d5050505050505050505050505050a15050505050505050505050565b600154604080516329965a1d60e01b81523060048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201526001600160a01b038481166044830152915162010000909304909116916329965a1d9160648082019260009290919082900301818387803b158015610bf957600080fd5b505af1158015610c0d573d6000803e3d6000fd5b5050505050565b600180549115156101000261ff0019909216919091179055565b610c587f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89582610d41565b306001600160a01b038216811415610c7357610c7381610cbc565b5050565b610ca17fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b82610d41565b306001600160a01b038216811415610c7357610c7381610b78565b600154604080516329965a1d60e01b81523060048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201526001600160a01b038481166044830152915162010000909304909116916329965a1d9160648082019260009290919082900301818387803b158015610bf957600080fd5b3390565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff1916600117905556fea2646970667358221220cf99882180ee4ee7b1a45d89e88f2dc636b453904d578f8e9fde6bcdab4491e964736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100a85760003560e01c806375ab97821161007157806375ab97821461036f578063a8badaa514610455578063c97e18fc1461047b578063d2de64741461049a578063e0eb2180146104c0578063e1ecbd30146104e6576100a8565b806223de29146100ad578063249cb3fa146101955780633836ef89146101d357806344d17187146102975780634e4ae5a514610350575b600080fd5b610193600480360360c08110156100c357600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b81111561010557600080fd5b82018360208201111561011757600080fd5b803590602001918460018302840111600160201b8311171561013857600080fd5b919390929091602081019035600160201b81111561015557600080fd5b82018360208201111561016757600080fd5b803590602001918460018302840111600160201b8311171561018857600080fd5b50909250905061050c565b005b6101c1600480360360408110156101ab57600080fd5b50803590602001356001600160a01b031661072a565b60408051918252519081900360200190f35b610193600480360360808110156101e957600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561022357600080fd5b82018360208201111561023557600080fd5b803590602001918460018302840111600160201b8311171561025657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061079f945050505050565b610193600480360360608110156102ad57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156102dc57600080fd5b8201836020820111156102ee57600080fd5b803590602001918460018302840111600160201b8311171561030f57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061087e945050505050565b6101936004803603602081101561036657600080fd5b5035151561094c565b610193600480360360c081101561038557600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b8111156103c757600080fd5b8201836020820111156103d957600080fd5b803590602001918460018302840111600160201b831117156103fa57600080fd5b919390929091602081019035600160201b81111561041757600080fd5b82018360208201111561042957600080fd5b803590602001918460018302840111600160201b8311171561044a57600080fd5b50909250905061095f565b6101936004803603602081101561046b57600080fd5b50356001600160a01b0316610b78565b6101936004803603602081101561049157600080fd5b50351515610c14565b610193600480360360208110156104b057600080fd5b50356001600160a01b0316610c2e565b610193600480360360208110156104d657600080fd5b50356001600160a01b0316610c77565b610193600480360360208110156104fc57600080fd5b50356001600160a01b0316610cbc565b600154610100900460ff161561052157600080fd5b600061052b610d3d565b90506000816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561057c57600080fd5b505afa158015610590573d6000803e3d6000fd5b505050506040513d60208110156105a657600080fd5b5051604080516370a0823160e01b81526001600160a01b038b811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b1580156105f857600080fd5b505afa15801561060c573d6000803e3d6000fd5b505050506040513d602081101561062257600080fd5b810190808051906020019092919050505090507f47e915878c47f3ec4d7ff646a2becb229f64fd2abe4d2b5e2bb4275b0cf50d4e8b8b8b8b8b8b8b8b8b8b8b604051808c6001600160a01b031681526020018b6001600160a01b031681526020018a6001600160a01b031681526020018981526020018060200180602001866001600160a01b0316815260200185815260200184815260200183810383528a8a82818152602001925080828437600083820152601f01601f191690910184810383528881526020019050888880828437600083820152604051601f909101601f19169092018290039f50909d5050505050505050505050505050a15050505050505050505050565b6000828152602081815260408083206001600160a01b038516845290915281205460ff16610759576000610798565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b9392505050565b836001600160a01b0316639bd9bbc68484846040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b15801561086057600080fd5b505af1158015610874573d6000803e3d6000fd5b5050505050505050565b6040805163fe9d930360e01b815260048101848152602482019283528351604483015283516001600160a01b0387169363fe9d9303938793879390929160640190602085019080838360005b838110156108e25781810151838201526020016108ca565b50505050905090810190601f16801561090f5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b15801561092f57600080fd5b505af1158015610943573d6000803e3d6000fd5b50505050505050565b6001805460ff1916911515919091179055565b60015460ff161561096f57600080fd5b6000610979610d3d565b90506000816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156109ca57600080fd5b505afa1580156109de573d6000803e3d6000fd5b505050506040513d60208110156109f457600080fd5b5051604080516370a0823160e01b81526001600160a01b038b811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b158015610a4657600080fd5b505afa158015610a5a573d6000803e3d6000fd5b505050506040513d6020811015610a7057600080fd5b810190808051906020019092919050505090507faa3e88aca472e90221daf7d3d601abafb62b120319089d7a2c2f63588da855298b8b8b8b8b8b8b8b8b8b8b604051808c6001600160a01b031681526020018b6001600160a01b031681526020018a6001600160a01b031681526020018981526020018060200180602001866001600160a01b0316815260200185815260200184815260200183810383528a8a82818152602001925080828437600083820152601f01601f191690910184810383528881526020019050888880828437600083820152604051601f909101601f19169092018290039f50909d5050505050505050505050505050a15050505050505050505050565b600154604080516329965a1d60e01b81523060048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201526001600160a01b038481166044830152915162010000909304909116916329965a1d9160648082019260009290919082900301818387803b158015610bf957600080fd5b505af1158015610c0d573d6000803e3d6000fd5b5050505050565b600180549115156101000261ff0019909216919091179055565b610c587f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89582610d41565b306001600160a01b038216811415610c7357610c7381610cbc565b5050565b610ca17fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b82610d41565b306001600160a01b038216811415610c7357610c7381610b78565b600154604080516329965a1d60e01b81523060048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201526001600160a01b038481166044830152915162010000909304909116916329965a1d9160648082019260009290919082900301818387803b158015610bf957600080fd5b3390565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff1916600117905556fea2646970667358221220cf99882180ee4ee7b1a45d89e88f2dc636b453904d578f8e9fde6bcdab4491e964736f6c634300060c0033"}, "abi": [{"type": "event", "name": "TokensReceivedCalled", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": false}, {"name": "from", "type": "address", "internalType": "address", "indexed": false}, {"name": "to", "type": "address", "internalType": "address", "indexed": false}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "token", "type": "address", "internalType": "address", "indexed": false}, {"name": "fromBalance", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "toBalance", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TokensToSendCalled", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": false}, {"name": "from", "type": "address", "internalType": "address", "indexed": false}, {"name": "to", "type": "address", "internalType": "address", "indexed": false}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "token", "type": "address", "internalType": "address", "indexed": false}, {"name": "fromBalance", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "toBalance", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "token", "type": "address", "internalType": "contract IERC777"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "canImplementInterfaceForAddress", "stateMutability": "view", "inputs": [{"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "recipientFor", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "registerRecipient", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "registerSender", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "send", "stateMutability": "nonpayable", "inputs": [{"name": "token", "type": "address", "internalType": "contract IERC777"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "senderFor", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "setShouldRevertReceive", "stateMutability": "nonpayable", "inputs": [{"name": "shouldRevert", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "setShouldRevertSend", "stateMutability": "nonpayable", "inputs": [{"name": "shouldRevert", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "tokensReceived", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "userData", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "tokensToSend", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "userData", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {"canImplementInterfaceForAddress(bytes32,address)": {"notice": "See {IERC1820Implementer-canImplementInterfaceForAddress}."}}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"tokensReceived(address,address,address,uint256,bytes,bytes)": {"details": "Called by an {IERC777} token contract whenever tokens are being moved or created into a registered account (`to`). The type of operation is conveyed by `from` being the zero address or not. This call occurs _after_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the post-operation state. This function may revert to prevent the operation from being executed."}, "tokensToSend(address,address,address,uint256,bytes,bytes)": {"details": "Called by an {IERC777} token contract whenever a registered holder's (`from`) tokens are about to be moved or destroyed. The type of operation is conveyed by `to` being the zero address or not. This call occurs _before_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the pre-operation state. This function may revert to prevent the operation from being executed."}}, "version": 1}}, "EnumerableMapMock": {"contractName": "EnumerableMapMock", "sourceId": "mocks/EnumerableMapMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610628806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631f7b6d32146100675780632f30c6f6146100815780634cc82215146100af5780639507d39a146100cc578063c34052e014610105578063e0886f9014610136575b600080fd5b61006f610174565b60408051918252519081900360200190f35b6100ad6004803603604081101561009757600080fd5b50803590602001356001600160a01b0316610185565b005b6100ad600480360360208110156100c557600080fd5b50356101d0565b6100e9600480360360208110156100e257600080fd5b5035610219565b604080516001600160a01b039092168252519081900360200190f35b6101226004803603602081101561011b57600080fd5b503561022b565b604080519115158252519081900360200190f35b6101536004803603602081101561014c57600080fd5b5035610237565b604080519283526001600160a01b0390911660208301528051918290030190f35b6000610180600061024d565b905090565b6000610192818484610258565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a1505050565b60006101dc8183610278565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b60006102258183610284565b92915050565b60006102258183610290565b600080610244818461029c565b91509150915091565b6000610225826102b8565b600061026e84846001600160a01b0385166102bc565b90505b9392505050565b60006102718383610353565b60006102718383610431565b60006102718383610473565b60008080806102ab868661048b565b9097909650945050505050565b5490565b600082815260018401602052604081205480610321575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610271565b8285600001600183038154811061033457fe5b9060005260206000209060020201600101819055506000915050610271565b60008181526001830160205260408120548015610427578354600019808301919081019060009087908390811061038657fe5b90600052602060002090600202019050808760000184815481106103a657fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806103e557fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506102259350505050565b6000915050610225565b600061027183836040518060400160405280601e81526020017f456e756d657261626c654d61703a206e6f6e6578697374656e74206b65790000815250610506565b60009081526001919091016020526040902054151590565b8154600090819083106104cf5760405162461bcd60e51b81526004018080602001828103825260228152602001806105d16022913960400191505060405180910390fd5b60008460000184815481106104e057fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816105a15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561056657818101518382015260200161054e565b50505050905090810190601f1680156105935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106105b457fe5b906000526020600020906002020160010154915050939250505056fe456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473a2646970667358221220eace2a898bf4972f55b8a259a0d53bdfeaeee6f44fc6b85c52e30e0e4bfae3dd64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100625760003560e01c80631f7b6d32146100675780632f30c6f6146100815780634cc82215146100af5780639507d39a146100cc578063c34052e014610105578063e0886f9014610136575b600080fd5b61006f610174565b60408051918252519081900360200190f35b6100ad6004803603604081101561009757600080fd5b50803590602001356001600160a01b0316610185565b005b6100ad600480360360208110156100c557600080fd5b50356101d0565b6100e9600480360360208110156100e257600080fd5b5035610219565b604080516001600160a01b039092168252519081900360200190f35b6101226004803603602081101561011b57600080fd5b503561022b565b604080519115158252519081900360200190f35b6101536004803603602081101561014c57600080fd5b5035610237565b604080519283526001600160a01b0390911660208301528051918290030190f35b6000610180600061024d565b905090565b6000610192818484610258565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a1505050565b60006101dc8183610278565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b60006102258183610284565b92915050565b60006102258183610290565b600080610244818461029c565b91509150915091565b6000610225826102b8565b600061026e84846001600160a01b0385166102bc565b90505b9392505050565b60006102718383610353565b60006102718383610431565b60006102718383610473565b60008080806102ab868661048b565b9097909650945050505050565b5490565b600082815260018401602052604081205480610321575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610271565b8285600001600183038154811061033457fe5b9060005260206000209060020201600101819055506000915050610271565b60008181526001830160205260408120548015610427578354600019808301919081019060009087908390811061038657fe5b90600052602060002090600202019050808760000184815481106103a657fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806103e557fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506102259350505050565b6000915050610225565b600061027183836040518060400160405280601e81526020017f456e756d657261626c654d61703a206e6f6e6578697374656e74206b65790000815250610506565b60009081526001919091016020526040902054151590565b8154600090819083106104cf5760405162461bcd60e51b81526004018080602001828103825260228152602001806105d16022913960400191505060405180910390fd5b60008460000184815481106104e057fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816105a15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561056657818101518382015260200161054e565b50505050905090810190601f1680156105935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106105b457fe5b906000526020600020906002020160010154915050939250505056fe456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473a2646970667358221220eace2a898bf4972f55b8a259a0d53bdfeaeee6f44fc6b85c52e30e0e4bfae3dd64736f6c634300060c0033"}, "abi": [{"type": "event", "name": "OperationResult", "inputs": [{"name": "result", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "function", "name": "at", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "key", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "contains", "stateMutability": "view", "inputs": [{"name": "key", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "get", "stateMutability": "view", "inputs": [{"name": "key", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "length", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "remove", "stateMutability": "nonpayable", "inputs": [{"name": "key", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "set", "stateMutability": "nonpayable", "inputs": [{"name": "key", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "EnumerableAddressSetMock": {"contractName": "EnumerableAddressSetMock", "sourceId": "mocks/EnumerableSetMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610400806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630a3b0a4f1461005c5780631f7b6d321461008457806329092d0e1461009e5780635dbe47e8146100c4578063e0886f90146100fe575b600080fd5b6100826004803603602081101561007257600080fd5b50356001600160a01b0316610137565b005b61008c610180565b60408051918252519081900360200190f35b610082600480360360208110156100b457600080fd5b50356001600160a01b0316610191565b6100ea600480360360208110156100da57600080fd5b50356001600160a01b031661019d565b604080519115158252519081900360200190f35b61011b6004803603602081101561011457600080fd5b50356101af565b604080516001600160a01b039092168252519081900360200190f35b600061014381836101bb565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b600061018c60006101d7565b905090565b600061014381836101e2565b60006101a981836101f7565b92915050565b60006101a9818361020c565b60006101d0836001600160a01b038416610218565b9392505050565b60006101a982610262565b60006101d0836001600160a01b038416610266565b60006101d0836001600160a01b03841661032c565b60006101d08383610344565b6000610224838361032c565b61025a575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556101a9565b5060006101a9565b5490565b60008181526001830160205260408120548015610322578354600019808301919081019060009087908390811061029957fe5b90600052602060002001549050808760000184815481106102b657fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806102e657fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506101a9565b60009150506101a9565b60009081526001919091016020526040902054151590565b815460009082106103865760405162461bcd60e51b81526004018080602001828103825260228152602001806103a96022913960400191505060405180910390fd5b82600001828154811061039557fe5b906000526020600020015490509291505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473a2646970667358221220a431c330fe2b36aab3702d9123212a1c7d214d14651811a0f2252232676b679264736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c80630a3b0a4f1461005c5780631f7b6d321461008457806329092d0e1461009e5780635dbe47e8146100c4578063e0886f90146100fe575b600080fd5b6100826004803603602081101561007257600080fd5b50356001600160a01b0316610137565b005b61008c610180565b60408051918252519081900360200190f35b610082600480360360208110156100b457600080fd5b50356001600160a01b0316610191565b6100ea600480360360208110156100da57600080fd5b50356001600160a01b031661019d565b604080519115158252519081900360200190f35b61011b6004803603602081101561011457600080fd5b50356101af565b604080516001600160a01b039092168252519081900360200190f35b600061014381836101bb565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b600061018c60006101d7565b905090565b600061014381836101e2565b60006101a981836101f7565b92915050565b60006101a9818361020c565b60006101d0836001600160a01b038416610218565b9392505050565b60006101a982610262565b60006101d0836001600160a01b038416610266565b60006101d0836001600160a01b03841661032c565b60006101d08383610344565b6000610224838361032c565b61025a575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556101a9565b5060006101a9565b5490565b60008181526001830160205260408120548015610322578354600019808301919081019060009087908390811061029957fe5b90600052602060002001549050808760000184815481106102b657fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806102e657fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506101a9565b60009150506101a9565b60009081526001919091016020526040902054151590565b815460009082106103865760405162461bcd60e51b81526004018080602001828103825260228152602001806103a96022913960400191505060405180910390fd5b82600001828154811061039557fe5b906000526020600020015490509291505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473a2646970667358221220a431c330fe2b36aab3702d9123212a1c7d214d14651811a0f2252232676b679264736f6c634300060c0033"}, "abi": [{"type": "event", "name": "OperationResult", "inputs": [{"name": "result", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "function", "name": "add", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "at", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "contains", "stateMutability": "view", "inputs": [{"name": "value", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "length", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "remove", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "EnumerableUintSetMock": {"contractName": "EnumerableUintSetMock", "sourceId": "mocks/EnumerableSetMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506103ae806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80631003e2d21461005c5780631f7b6d321461007b5780634cc8221514610095578063c34052e0146100b2578063e0886f90146100e3575b600080fd5b6100796004803603602081101561007257600080fd5b5035610100565b005b610083610149565b60408051918252519081900360200190f35b610079600480360360208110156100ab57600080fd5b503561015a565b6100cf600480360360208110156100c857600080fd5b5035610166565b604080519115158252519081900360200190f35b610083600480360360208110156100f957600080fd5b5035610178565b600061010c8183610184565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b60006101556000610197565b905090565b600061010c81836101a2565b600061017281836101ae565b92915050565b600061017281836101ba565b600061019083836101c6565b9392505050565b600061017282610210565b60006101908383610214565b600061019083836102da565b600061019083836102f2565b60006101d283836102da565b61020857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610172565b506000610172565b5490565b600081815260018301602052604081205480156102d0578354600019808301919081019060009087908390811061024757fe5b906000526020600020015490508087600001848154811061026457fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061029457fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610172565b6000915050610172565b60009081526001919091016020526040902054151590565b815460009082106103345760405162461bcd60e51b81526004018080602001828103825260228152602001806103576022913960400191505060405180910390fd5b82600001828154811061034357fe5b906000526020600020015490509291505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473a264697066735822122021b8005c0dc0a3cfbaa0f1c49361850289b8ccf4bab3de2139a987905ce215be64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c80631003e2d21461005c5780631f7b6d321461007b5780634cc8221514610095578063c34052e0146100b2578063e0886f90146100e3575b600080fd5b6100796004803603602081101561007257600080fd5b5035610100565b005b610083610149565b60408051918252519081900360200190f35b610079600480360360208110156100ab57600080fd5b503561015a565b6100cf600480360360208110156100c857600080fd5b5035610166565b604080519115158252519081900360200190f35b610083600480360360208110156100f957600080fd5b5035610178565b600061010c8183610184565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b60006101556000610197565b905090565b600061010c81836101a2565b600061017281836101ae565b92915050565b600061017281836101ba565b600061019083836101c6565b9392505050565b600061017282610210565b60006101908383610214565b600061019083836102da565b600061019083836102f2565b60006101d283836102da565b61020857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610172565b506000610172565b5490565b600081815260018301602052604081205480156102d0578354600019808301919081019060009087908390811061024757fe5b906000526020600020015490508087600001848154811061026457fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061029457fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610172565b6000915050610172565b60009081526001919091016020526040902054151590565b815460009082106103345760405162461bcd60e51b81526004018080602001828103825260228152602001806103576022913960400191505060405180910390fd5b82600001828154811061034357fe5b906000526020600020015490509291505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473a264697066735822122021b8005c0dc0a3cfbaa0f1c49361850289b8ccf4bab3de2139a987905ce215be64736f6c634300060c0033"}, "abi": [{"type": "event", "name": "OperationResult", "inputs": [{"name": "result", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "function", "name": "add", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "at", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "contains", "stateMutability": "view", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "length", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "remove", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "EtherReceiverMock": {"contractName": "EtherReceiverMock", "sourceId": "mocks/EtherReceiverMock.sol", "deploymentBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b5060a38061001e6000396000f3fe608060405260043610601f5760003560e01c80634fea120c146038576033565b3660335760005460ff16603157600080fd5b005b600080fd5b348015604357600080fd5b50603160048036036020811015605857600080fd5b506000805460ff19169135151591909117905556fea2646970667358221220512f8b8f8b5b19293858268bbb211301a1dabe1aa7cbf7f3d8684c0083e0f72564736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405260043610601f5760003560e01c80634fea120c146038576033565b3660335760005460ff16603157600080fd5b005b600080fd5b348015604357600080fd5b50603160048036036020811015605857600080fd5b506000805460ff19169135151591909117905556fea2646970667358221220512f8b8f8b5b19293858268bbb211301a1dabe1aa7cbf7f3d8684c0083e0f72564736f6c634300060c0033"}, "abi": [{"type": "function", "name": "setAcceptEther", "stateMutability": "nonpayable", "inputs": [{"name": "acceptEther", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "GSNRecipientERC20FeeMock": {"contractName": "GSNRecipientERC20FeeMock", "sourceId": "mocks/GSNRecipientERC20FeeMock.sol", "deploymentBytecode": {"bytecode": "0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f4941790553480156200003757600080fd5b50604051620022dc380380620022dc833981810160405260408110156200005d57600080fd5b81019080805160405193929190846401000000008211156200007e57600080fd5b9083019060208201858111156200009457600080fd5b8251640100000000811182820188101715620000af57600080fd5b82525081516020918201929091019080838360005b83811015620000de578181015183820152602001620000c4565b50505050905090810190601f1680156200010c5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200013057600080fd5b9083019060208201858111156200014657600080fd5b82516401000000008111828201881017156200016157600080fd5b82525081516020918201929091019080838360005b838110156200019057818101518382015260200162000176565b50505050905090810190601f168015620001be5780820380516001836020036101000a031916815260200191505b5060405250505081818181604051620001d790620002f5565b604080825283519082015282518190602080830191606084019187019080838360005b8381101562000214578181015183820152602001620001fa565b50505050905090810190601f168015620002425780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015620002775781810151838201526020016200025d565b50505050905090810190601f168015620002a55780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f080158015620002c9573d6000803e3d6000fd5b50600180546001600160a01b0319166001600160a01b0392909216919091179055506200030392505050565b6111ea80620010f283390190565b610ddf80620003136000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806383947ea01161005b57806383947ea01461019d578063ad61ccd514610379578063e06e0e22146103f6578063fc0c546a146104a757610088565b80633e6fec041461008d57806340c10f191461009757806374e861d6146100c357806380274db7146100e7575b600080fd5b6100956104af565b005b610095600480360360408110156100ad57600080fd5b506001600160a01b03813516906020013561056a565b6100cb610578565b604080516001600160a01b039092168252519081900360200190f35b61018b600480360360208110156100fd57600080fd5b810190602081018135600160201b81111561011757600080fd5b82018360208201111561012957600080fd5b803590602001918460018302840111600160201b8311171561014a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610588945050505050565b60408051918252519081900360200190f35b6102fa60048036036101208110156101b457600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156101e757600080fd5b8201836020820111156101f957600080fd5b803590602001918460018302840111600160201b8311171561021a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561028457600080fd5b82018360208201111561029657600080fd5b803590602001918460018302840111600160201b831117156102b757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506105f0915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561033d578181015183820152602001610325565b50505050905090810190601f16801561036a5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103816106df565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103bb5781810151838201526020016103a3565b50505050905090810190601f1680156103e85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100956004803603608081101561040c57600080fd5b810190602081018135600160201b81111561042657600080fd5b82018360208201111561043857600080fd5b803590602001918460018302840111600160201b8311171561045957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050803515159150602081013590604001356106fe565b6100cb610767565b7fde4813f7525e49908b98ef6c9c80c5bc8c7d0842981a49420eb45ef36a60e0c06104d8610767565b6001600160a01b03166370a082316104ee610776565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561052b57600080fd5b505afa15801561053f573d6000803e3d6000fd5b505050506040513d602081101561055557600080fd5b505160408051918252519081900360200190a1565b610574828261079f565b5050565b6000546001600160a01b03165b90565b6000610592610578565b6001600160a01b0316336001600160a01b0316146105e15760405162461bcd60e51b8152600401808060200182810382526024815260200180610d5c6024913960400191505060405180910390fd5b6105ea82610810565b92915050565b600154604080516370a0823160e01b81526001600160a01b038b81166004830152915160009360609386939116916370a0823191602480820192602092909190829003018186803b15801561064457600080fd5b505afa158015610658573d6000803e3d6000fd5b505050506040513d602081101561066e57600080fd5b50511015610689576106806000610857565b915091506106d1565b604080516001600160a01b038c166020820152808201859052606081018a905260808082018a90528251808303909101815260a09091019091526106cc9061086f565b915091505b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610706610578565b6001600160a01b0316336001600160a01b0316146107555760405162461bcd60e51b8152600401808060200182810382526024815260200180610d5c6024913960400191505060405180910390fd5b61076184848484610874565b50505050565b6001546001600160a01b031690565b600080546001600160a01b03163314610790575033610585565b610798610901565b9050610585565b600154604080516340c10f1960e01b81526001600160a01b03858116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b1580156107f457600080fd5b505af1158015610808573d6000803e3d6000fd5b505050505050565b600080600083806020019051604081101561082a57600080fd5b5080516020909101516001549193509150610850906001600160a01b031683308461094e565b5050919050565b604080516020810190915260008152600b9190910191565b600091565b60008060008087806020019051608081101561088f57600080fd5b508051602082015160408301516060909301519196509450909250905060006108c76108c0620186a06127106109a8565b83856109f1565b90506108d387826109a8565b96506108f6856108e3868a6109a8565b6001546001600160a01b031691906109ff565b505050505050505050565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610761908590610a56565b60006109ea83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b07565b9392505050565b606490810191909202020490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a51908490610a56565b505050565b6060610aab826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b9e9092919063ffffffff16565b805190915015610a5157808060200190516020811015610aca57600080fd5b5051610a515760405162461bcd60e51b815260040180806020018281038252602a815260200180610d80602a913960400191505060405180910390fd5b60008184841115610b965760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b5b578181015183820152602001610b43565b50505050905090810190601f168015610b885780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060610bad8484600085610bb5565b949350505050565b6060610bc085610d22565b610c11576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610c505780518252601f199092019160209182019101610c31565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610cb2576040519150601f19603f3d011682016040523d82523d6000602084013e610cb7565b606091505b50915091508115610ccb579150610bad9050565b805115610cdb5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315610b5b578181015183820152602001610b43565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610bad57505015159291505056fe47534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875625361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c7efa3f03904072b3b6a0e33f2479ca80e03d6b0c6eb029f134cd846c68af3be64736f6c634300060c003360806040523480156200001157600080fd5b50604051620011ea380380620011ea833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001b89060039060208501906200024c565b508051620001ce9060049060208401906200024c565b50506005805460ff19166012179055506000620001ea62000248565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505050620002e8565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028f57805160ff1916838001178555620002bf565b82800160010185558215620002bf579182015b82811115620002bf578251825591602001919060010190620002a2565b50620002cd929150620002d1565b5090565b5b80821115620002cd5760008155600101620002d2565b610ef280620002f86000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d7146102d9578063a9059cbb14610305578063dd62ed3e14610331578063f2fde38b1461035f576100f5565b806370a082311461027f578063715018a6146102a55780638da5cb5b146102ad57806395d89b41146102d1576100f5565b806323b872dd116100d357806323b872dd146101d1578063313ce56714610207578063395093511461022557806340c10f1914610251576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b610102610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b03813516906020013561041b565b604080519115158252519081900360200190f35b6101bf610439565b60408051918252519081900360200190f35b6101a3600480360360608110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040013561043f565b61020f61048a565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561023b57600080fd5b506001600160a01b038135169060200135610493565b61027d6004803603604081101561026757600080fd5b506001600160a01b0381351690602001356104e6565b005b6101bf6004803603602081101561029557600080fd5b50356001600160a01b0316610563565b61027d61057e565b6102b561063d565b604080516001600160a01b039092168252519081900360200190f35b610102610651565b6101a3600480360360408110156102ef57600080fd5b506001600160a01b0381351690602001356106b2565b6101a36004803603604081101561031b57600080fd5b506001600160a01b03813516906020013561071a565b6101bf6004803603604081101561034757600080fd5b506001600160a01b038135811691602001351661072e565b61027d6004803603602081101561037557600080fd5b50356001600160a01b031661076b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b820191906000526020600020905b8154815290600101906020018083116103f457829003601f168201915b5050505050905090565b600061042f610428610886565b848461088a565b5060015b92915050565b60025490565b600061044961063d565b6001600160a01b0316836001600160a01b031614156104755761046d8484846108c0565b506001610483565b610480848484610a1b565b90505b9392505050565b60055460ff1690565b600061042f6104a0610886565b846104e185600160006104b1610886565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610a9d565b61088a565b6104ee610886565b60055461010090046001600160a01b03908116911614610555576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61055f8282610af7565b5050565b6001600160a01b031660009081526020819052604090205490565b610586610886565b60055461010090046001600160a01b039081169116146105ed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b600061042f6106bf610886565b846104e185604051806060016040528060258152602001610e9860259139600160006106e9610886565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610be7565b600061042f610727610886565b84846108c0565b600061073861063d565b6001600160a01b0316826001600160a01b0316141561075a5750600019610433565b6107648383610c7e565b9050610433565b610773610886565b60055461010090046001600160a01b039081169116146107da576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661081f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610db96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b61089261063d565b6001600160a01b0316826001600160a01b031614156108b0576108bb565b6108bb838383610ca9565b505050565b6001600160a01b0383166109055760405162461bcd60e51b8152600401808060200182810382526025815260200180610e4f6025913960400191505060405180910390fd5b6001600160a01b03821661094a5760405162461bcd60e51b8152600401808060200182810382526023815260200180610d966023913960400191505060405180910390fd5b6109558383836108bb565b61099281604051806060016040528060268152602001610e01602691396001600160a01b0386166000908152602081905260409020549190610be7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546109c19082610a9d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000610a288484846108c0565b610a9384610a34610886565b6104e185604051806060016040528060288152602001610e27602891396001600160a01b038a16600090815260016020526040812090610a72610886565b6001600160a01b031681526020810191909152604001600020549190610be7565b5060019392505050565b600082820183811015610483576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610b52576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610b5e600083836108bb565b600254610b6b9082610a9d565b6002556001600160a01b038216600090815260208190526040902054610b919082610a9d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115610c765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c3b578181015183820152602001610c23565b50505050905090810190601f168015610c685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610cee5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e746024913960400191505060405180910390fd5b6001600160a01b038216610d335760405162461bcd60e51b8152600401808060200182810382526022815260200180610ddf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122077eb27e6a10d97592e35573b5156d5c0cae38fffa94a100a485f1ec992ea1af764736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100885760003560e01c806383947ea01161005b57806383947ea01461019d578063ad61ccd514610379578063e06e0e22146103f6578063fc0c546a146104a757610088565b80633e6fec041461008d57806340c10f191461009757806374e861d6146100c357806380274db7146100e7575b600080fd5b6100956104af565b005b610095600480360360408110156100ad57600080fd5b506001600160a01b03813516906020013561056a565b6100cb610578565b604080516001600160a01b039092168252519081900360200190f35b61018b600480360360208110156100fd57600080fd5b810190602081018135600160201b81111561011757600080fd5b82018360208201111561012957600080fd5b803590602001918460018302840111600160201b8311171561014a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610588945050505050565b60408051918252519081900360200190f35b6102fa60048036036101208110156101b457600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156101e757600080fd5b8201836020820111156101f957600080fd5b803590602001918460018302840111600160201b8311171561021a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561028457600080fd5b82018360208201111561029657600080fd5b803590602001918460018302840111600160201b831117156102b757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506105f0915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561033d578181015183820152602001610325565b50505050905090810190601f16801561036a5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103816106df565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103bb5781810151838201526020016103a3565b50505050905090810190601f1680156103e85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100956004803603608081101561040c57600080fd5b810190602081018135600160201b81111561042657600080fd5b82018360208201111561043857600080fd5b803590602001918460018302840111600160201b8311171561045957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050803515159150602081013590604001356106fe565b6100cb610767565b7fde4813f7525e49908b98ef6c9c80c5bc8c7d0842981a49420eb45ef36a60e0c06104d8610767565b6001600160a01b03166370a082316104ee610776565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561052b57600080fd5b505afa15801561053f573d6000803e3d6000fd5b505050506040513d602081101561055557600080fd5b505160408051918252519081900360200190a1565b610574828261079f565b5050565b6000546001600160a01b03165b90565b6000610592610578565b6001600160a01b0316336001600160a01b0316146105e15760405162461bcd60e51b8152600401808060200182810382526024815260200180610d5c6024913960400191505060405180910390fd5b6105ea82610810565b92915050565b600154604080516370a0823160e01b81526001600160a01b038b81166004830152915160009360609386939116916370a0823191602480820192602092909190829003018186803b15801561064457600080fd5b505afa158015610658573d6000803e3d6000fd5b505050506040513d602081101561066e57600080fd5b50511015610689576106806000610857565b915091506106d1565b604080516001600160a01b038c166020820152808201859052606081018a905260808082018a90528251808303909101815260a09091019091526106cc9061086f565b915091505b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610706610578565b6001600160a01b0316336001600160a01b0316146107555760405162461bcd60e51b8152600401808060200182810382526024815260200180610d5c6024913960400191505060405180910390fd5b61076184848484610874565b50505050565b6001546001600160a01b031690565b600080546001600160a01b03163314610790575033610585565b610798610901565b9050610585565b600154604080516340c10f1960e01b81526001600160a01b03858116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b1580156107f457600080fd5b505af1158015610808573d6000803e3d6000fd5b505050505050565b600080600083806020019051604081101561082a57600080fd5b5080516020909101516001549193509150610850906001600160a01b031683308461094e565b5050919050565b604080516020810190915260008152600b9190910191565b600091565b60008060008087806020019051608081101561088f57600080fd5b508051602082015160408301516060909301519196509450909250905060006108c76108c0620186a06127106109a8565b83856109f1565b90506108d387826109a8565b96506108f6856108e3868a6109a8565b6001546001600160a01b031691906109ff565b505050505050505050565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610761908590610a56565b60006109ea83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b07565b9392505050565b606490810191909202020490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a51908490610a56565b505050565b6060610aab826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b9e9092919063ffffffff16565b805190915015610a5157808060200190516020811015610aca57600080fd5b5051610a515760405162461bcd60e51b815260040180806020018281038252602a815260200180610d80602a913960400191505060405180910390fd5b60008184841115610b965760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b5b578181015183820152602001610b43565b50505050905090810190601f168015610b885780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060610bad8484600085610bb5565b949350505050565b6060610bc085610d22565b610c11576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610c505780518252601f199092019160209182019101610c31565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610cb2576040519150601f19603f3d011682016040523d82523d6000602084013e610cb7565b606091505b50915091508115610ccb579150610bad9050565b805115610cdb5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315610b5b578181015183820152602001610b43565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610bad57505015159291505056fe47534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875625361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c7efa3f03904072b3b6a0e33f2479ca80e03d6b0c6eb029f134cd846c68af3be64736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "MockFunctionCalled", "inputs": [{"name": "senderBalance", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RelayHubChanged", "inputs": [{"name": "oldRelayHub", "type": "address", "internalType": "address", "indexed": true}, {"name": "newRelayHub", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "acceptRelayedCall", "stateMutability": "view", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "", "type": "bytes", "internalType": "bytes"}, {"name": "transactionFee", "type": "uint256", "internalType": "uint256"}, {"name": "gasPrice", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}, {"name": "maxPossibleCharge", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}]}, {"type": "function", "name": "getHubAddr", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "mockFunction", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "postRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}, {"name": "success", "type": "bool", "internalType": "bool"}, {"name": "actualCharge", "type": "uint256", "internalType": "uint256"}, {"name": "preRetVal", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "preRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "relayHubVersion", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract IERC20"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)": {"details": "Ensures that only users with enough gas payment token balance can have transactions relayed through the GSN."}, "getHubAddr()": {"details": "Returns the address of the {IRelayHub} contract for this recipient."}, "postRelayedCall(bytes,bool,uint256,bytes32)": {"details": "See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "preRelayedCall(bytes)": {"details": "See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "relayHubVersion()": {"details": "Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}, "token()": {"details": "Returns the gas payment token."}}, "version": 1}}, "GSNRecipientMock": {"contractName": "GSNRecipientMock", "sourceId": "mocks/GSNRecipientMock.sol", "deploymentBytecode": {"bytecode": "0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f49417905534801561003657600080fd5b50610b58806100466000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80639e30a590116100665780639e30a5901461038c578063ad61ccd5146103b2578063c2db1abe1461042f578063d737d0c71461045b578063e06e0e221461046357610093565b8063376bf2621461009857806374e861d61461014557806380274db71461016957806383947ea01461021f575b600080fd5b610143600480360360408110156100ae57600080fd5b81359190810190604081016020820135600160201b8111156100cf57600080fd5b8201836020820111156100e157600080fd5b803590602001918460018302840111600160201b8311171561010257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610514945050505050565b005b61014d610627565b604080516001600160a01b039092168252519081900360200190f35b61020d6004803603602081101561017f57600080fd5b810190602081018135600160201b81111561019957600080fd5b8201836020820111156101ab57600080fd5b803590602001918460018302840111600160201b831117156101cc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610637945050505050565b60408051918252519081900360200190f35b61030d600480360361012081101561023657600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561026957600080fd5b82018360208201111561027b57600080fd5b803590602001918460018302840111600160201b8311171561029c57600080fd5b9193909282359260208101359260408201359260608301359260a081019060800135600160201b8111156102cf57600080fd5b8201836020820111156102e157600080fd5b803590602001918460018302840111600160201b8311171561030257600080fd5b91935091503561069f565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610350578181015183820152602001610338565b50505050905090810190601f16801561037d5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610143600480360360208110156103a257600080fd5b50356001600160a01b03166106c0565b6103ba6106cc565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103f45781810151838201526020016103dc565b50505050905090810190601f1680156104215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101436004803603604081101561044557600080fd5b50803590602001356001600160a01b03166106eb565b6101436106f9565b6101436004803603608081101561047957600080fd5b810190602081018135600160201b81111561049357600080fd5b8201836020820111156104a557600080fd5b803590602001918460018302840111600160201b831117156104c657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050508035151591506020810135906040013561073f565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea061053d6107a4565b8383604051808060200184815260200180602001838103835286818151815260200191508051906020019080838360005b8381101561058657818101518382015260200161056e565b50505050905090810190601f1680156105b35780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156105e65781810151838201526020016105ce565b50505050905090810190601f1680156106135780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15050565b6000546001600160a01b03165b90565b6000610641610627565b6001600160a01b0316336001600160a01b0316146106905760405162461bcd60e51b8152600401808060200182810382526024815260200180610aff6024913960400191505060405180910390fd5b610699826107b3565b92915050565b60408051602081019091526000808252909b509b9950505050505050505050565b6106c9816107b9565b50565b6040805180820190915260058152640312e302e360dc1b602082015290565b6106f582826108b9565b5050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc610722610925565b604080516001600160a01b039092168252519081900360200190a1565b610747610627565b6001600160a01b0316336001600160a01b0316146107965760405162461bcd60e51b8152600401808060200182810382526024815260200180610aff6024913960400191505060405180910390fd5b61079e848484845b50505050565b60606107ae61092f565b905090565b50600090565b6000546001600160a01b039081169082166108055760405162461bcd60e51b815260040180806020018281038252602e815260200180610aa4602e913960400191505060405180910390fd5b806001600160a01b0316826001600160a01b031614156108565760405162461bcd60e51b815260040180806020018281038252602d815260200180610ad2602d913960400191505060405180910390fd5b816001600160a01b0316816001600160a01b03167fb9f84b8e65164b14439ae3620df0a4d8786d896996c0282b683f9d8c08f046e860405160405180910390a350600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000805460408051627b8a6760e11b8152600481018690526001600160a01b0385811660248301529151919092169262f714ce926044808201939182900301818387803b15801561090957600080fd5b505af115801561091d573d6000803e3d6000fd5b505050505050565b60006107ae610993565b6000546060906001600160a01b03163314610984576000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935061063492505050565b61098c6109b5565b9050610634565b600080546001600160a01b031633146109ad575033610634565b61098c610a56565b60606013193601818167ffffffffffffffff811180156109d457600080fd5b506040519080825280601f01601f1916602001820160405280156109ff576020820181803683370190505b50905060005b82811015610a4f5760003682818110610a1a57fe5b9050013560f81c60f81b828281518110610a3057fe5b60200101906001600160f81b031916908160001a905350600101610a05565b5091505090565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169291505056fe47534e526563697069656e743a206e65772052656c617948756220697320746865207a65726f206164647265737347534e526563697069656e743a206e65772052656c6179487562206973207468652063757272656e74206f6e6547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220a092c03ef73a2152beb9d062db265a540d7ffd49ded0661fec5ce51844286dff64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100935760003560e01c80639e30a590116100665780639e30a5901461038c578063ad61ccd5146103b2578063c2db1abe1461042f578063d737d0c71461045b578063e06e0e221461046357610093565b8063376bf2621461009857806374e861d61461014557806380274db71461016957806383947ea01461021f575b600080fd5b610143600480360360408110156100ae57600080fd5b81359190810190604081016020820135600160201b8111156100cf57600080fd5b8201836020820111156100e157600080fd5b803590602001918460018302840111600160201b8311171561010257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610514945050505050565b005b61014d610627565b604080516001600160a01b039092168252519081900360200190f35b61020d6004803603602081101561017f57600080fd5b810190602081018135600160201b81111561019957600080fd5b8201836020820111156101ab57600080fd5b803590602001918460018302840111600160201b831117156101cc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610637945050505050565b60408051918252519081900360200190f35b61030d600480360361012081101561023657600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561026957600080fd5b82018360208201111561027b57600080fd5b803590602001918460018302840111600160201b8311171561029c57600080fd5b9193909282359260208101359260408201359260608301359260a081019060800135600160201b8111156102cf57600080fd5b8201836020820111156102e157600080fd5b803590602001918460018302840111600160201b8311171561030257600080fd5b91935091503561069f565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610350578181015183820152602001610338565b50505050905090810190601f16801561037d5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610143600480360360208110156103a257600080fd5b50356001600160a01b03166106c0565b6103ba6106cc565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103f45781810151838201526020016103dc565b50505050905090810190601f1680156104215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101436004803603604081101561044557600080fd5b50803590602001356001600160a01b03166106eb565b6101436106f9565b6101436004803603608081101561047957600080fd5b810190602081018135600160201b81111561049357600080fd5b8201836020820111156104a557600080fd5b803590602001918460018302840111600160201b831117156104c657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050508035151591506020810135906040013561073f565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea061053d6107a4565b8383604051808060200184815260200180602001838103835286818151815260200191508051906020019080838360005b8381101561058657818101518382015260200161056e565b50505050905090810190601f1680156105b35780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156105e65781810151838201526020016105ce565b50505050905090810190601f1680156106135780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15050565b6000546001600160a01b03165b90565b6000610641610627565b6001600160a01b0316336001600160a01b0316146106905760405162461bcd60e51b8152600401808060200182810382526024815260200180610aff6024913960400191505060405180910390fd5b610699826107b3565b92915050565b60408051602081019091526000808252909b509b9950505050505050505050565b6106c9816107b9565b50565b6040805180820190915260058152640312e302e360dc1b602082015290565b6106f582826108b9565b5050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc610722610925565b604080516001600160a01b039092168252519081900360200190a1565b610747610627565b6001600160a01b0316336001600160a01b0316146107965760405162461bcd60e51b8152600401808060200182810382526024815260200180610aff6024913960400191505060405180910390fd5b61079e848484845b50505050565b60606107ae61092f565b905090565b50600090565b6000546001600160a01b039081169082166108055760405162461bcd60e51b815260040180806020018281038252602e815260200180610aa4602e913960400191505060405180910390fd5b806001600160a01b0316826001600160a01b031614156108565760405162461bcd60e51b815260040180806020018281038252602d815260200180610ad2602d913960400191505060405180910390fd5b816001600160a01b0316816001600160a01b03167fb9f84b8e65164b14439ae3620df0a4d8786d896996c0282b683f9d8c08f046e860405160405180910390a350600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000805460408051627b8a6760e11b8152600481018690526001600160a01b0385811660248301529151919092169262f714ce926044808201939182900301818387803b15801561090957600080fd5b505af115801561091d573d6000803e3d6000fd5b505050505050565b60006107ae610993565b6000546060906001600160a01b03163314610984576000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935061063492505050565b61098c6109b5565b9050610634565b600080546001600160a01b031633146109ad575033610634565b61098c610a56565b60606013193601818167ffffffffffffffff811180156109d457600080fd5b506040519080825280601f01601f1916602001820160405280156109ff576020820181803683370190505b50905060005b82811015610a4f5760003682818110610a1a57fe5b9050013560f81c60f81b828281518110610a3057fe5b60200101906001600160f81b031916908160001a905350600101610a05565b5091505090565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169291505056fe47534e526563697069656e743a206e65772052656c617948756220697320746865207a65726f206164647265737347534e526563697069656e743a206e65772052656c6179487562206973207468652063757272656e74206f6e6547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220a092c03ef73a2152beb9d062db265a540d7ffd49ded0661fec5ce51844286dff64736f6c634300060c0033"}, "abi": [{"type": "event", "name": "Data", "inputs": [{"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "integerValue", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "stringValue", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RelayHubChanged", "inputs": [{"name": "oldRelayHub", "type": "address", "internalType": "address", "indexed": true}, {"name": "newRelayHub", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Sender", "inputs": [{"name": "sender", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "acceptRelayedCall", "stateMutability": "view", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "bytes", "internalType": "bytes"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}]}, {"type": "function", "name": "getHubAddr", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "msgData", "stateMutability": "nonpayable", "inputs": [{"name": "integerValue", "type": "uint256", "internalType": "uint256"}, {"name": "stringValue", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "msgSender", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "postRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}, {"name": "success", "type": "bool", "internalType": "bool"}, {"name": "actualCharge", "type": "uint256", "internalType": "uint256"}, {"name": "preRetVal", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "preRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "relayHubVersion", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "upgradeRelayHub", "stateMutability": "nonpayable", "inputs": [{"name": "newRelayHub", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "withdrawDeposits", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "payee", "type": "address", "internalType": "address payable"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"getHubAddr()": {"details": "Returns the address of the {IRelayHub} contract for this recipient."}, "postRelayedCall(bytes,bool,uint256,bytes32)": {"details": "See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "preRelayedCall(bytes)": {"details": "See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "relayHubVersion()": {"details": "Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}}, "version": 1}}, "GSNRecipientSignatureMock": {"contractName": "GSNRecipientSignatureMock", "sourceId": "mocks/GSNRecipientSignatureMock.sol", "deploymentBytecode": {"bytecode": "0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f49417905534801561003657600080fd5b50604051610ae7380380610ae78339818101604052602081101561005957600080fd5b5051806001600160a01b0381166100a15760405162461bcd60e51b8152600401808060200182810382526039815260200180610aae6039913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055506109dd806100d16000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80633e6fec041461006757806374e861d61461007157806380274db71461009557806383947ea01461014b578063ad61ccd514610327578063e06e0e22146103a4575b600080fd5b61006f610455565b005b610079610480565b604080516001600160a01b039092168252519081900360200190f35b610139600480360360208110156100ab57600080fd5b810190602081018135600160201b8111156100c557600080fd5b8201836020820111156100d757600080fd5b803590602001918460018302840111600160201b831117156100f857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061048f945050505050565b60408051918252519081900360200190f35b6102a8600480360361012081101561016257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561019557600080fd5b8201836020820111156101a757600080fd5b803590602001918460018302840111600160201b831117156101c857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561023257600080fd5b82018360208201111561024457600080fd5b803590602001918460018302840111600160201b8311171561026557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104f7915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102eb5781810151838201526020016102d3565b50505050905090810190601f1680156103185780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b61032f610638565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610369578181015183820152602001610351565b50505050905090810190601f1680156103965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006f600480360360808110156103ba57600080fd5b810190602081018135600160201b8111156103d457600080fd5b8201836020820111156103e657600080fd5b803590602001918460018302840111600160201b8311171561040757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505080351515915060208101359060400135610657565b6040517f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1565b6000546001600160a01b031690565b6000610499610480565b6001600160a01b0316336001600160a01b0316146104e85760405162461bcd60e51b81526004018080602001828103825260248152602001806109846024913960400191505060405180910390fd5b6104f1826106bc565b92915050565b60006060808b8b8b8b8b8b8b61050b610480565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b602083106105625780518252601f199092019160209182019101610543565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a890930190526001548251918301919091209195506001600160a01b031693506105ff92508891506105f9906106c2565b90610713565b6001600160a01b03161415610620576106166108fe565b925092505061062a565b6106166000610922565b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b61065f610480565b6001600160a01b0316336001600160a01b0316146106ae5760405162461bcd60e51b81526004018080602001828103825260248152602001806109846024913960400191505060405180910390fd5b6106b6848484845b50505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461076b576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156107dc5760405162461bcd60e51b81526004018080602001828103825260228152602001806109406022913960400191505060405180910390fd5b8060ff16601b141580156107f457508060ff16601c14155b156108305760405162461bcd60e51b81526004018080602001828103825260228152602001806109626022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561088c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108f4576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b6000606061091a6040518060200160405280600081525061093a565b915091509091565b604080516020810190915260008152600b9190910191565b60009156fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a264697066735822122014081364ef333460b97698be7fe93e484a8483e8057241f158aeacaf88c8380a64736f6c634300060c003347534e526563697069656e745369676e61747572653a2074727573746564207369676e657220697320746865207a65726f2061646472657373"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100625760003560e01c80633e6fec041461006757806374e861d61461007157806380274db71461009557806383947ea01461014b578063ad61ccd514610327578063e06e0e22146103a4575b600080fd5b61006f610455565b005b610079610480565b604080516001600160a01b039092168252519081900360200190f35b610139600480360360208110156100ab57600080fd5b810190602081018135600160201b8111156100c557600080fd5b8201836020820111156100d757600080fd5b803590602001918460018302840111600160201b831117156100f857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061048f945050505050565b60408051918252519081900360200190f35b6102a8600480360361012081101561016257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561019557600080fd5b8201836020820111156101a757600080fd5b803590602001918460018302840111600160201b831117156101c857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561023257600080fd5b82018360208201111561024457600080fd5b803590602001918460018302840111600160201b8311171561026557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104f7915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102eb5781810151838201526020016102d3565b50505050905090810190601f1680156103185780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b61032f610638565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610369578181015183820152602001610351565b50505050905090810190601f1680156103965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006f600480360360808110156103ba57600080fd5b810190602081018135600160201b8111156103d457600080fd5b8201836020820111156103e657600080fd5b803590602001918460018302840111600160201b8311171561040757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505080351515915060208101359060400135610657565b6040517f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1565b6000546001600160a01b031690565b6000610499610480565b6001600160a01b0316336001600160a01b0316146104e85760405162461bcd60e51b81526004018080602001828103825260248152602001806109846024913960400191505060405180910390fd5b6104f1826106bc565b92915050565b60006060808b8b8b8b8b8b8b61050b610480565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b602083106105625780518252601f199092019160209182019101610543565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a890930190526001548251918301919091209195506001600160a01b031693506105ff92508891506105f9906106c2565b90610713565b6001600160a01b03161415610620576106166108fe565b925092505061062a565b6106166000610922565b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b61065f610480565b6001600160a01b0316336001600160a01b0316146106ae5760405162461bcd60e51b81526004018080602001828103825260248152602001806109846024913960400191505060405180910390fd5b6106b6848484845b50505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461076b576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156107dc5760405162461bcd60e51b81526004018080602001828103825260228152602001806109406022913960400191505060405180910390fd5b8060ff16601b141580156107f457508060ff16601c14155b156108305760405162461bcd60e51b81526004018080602001828103825260228152602001806109626022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561088c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108f4576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b6000606061091a6040518060200160405280600081525061093a565b915091509091565b604080516020810190915260008152600b9190910191565b60009156fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a264697066735822122014081364ef333460b97698be7fe93e484a8483e8057241f158aeacaf88c8380a64736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "trustedSigner", "type": "address", "internalType": "address"}]}, {"type": "event", "name": "MockFunctionCalled", "inputs": [], "anonymous": false}, {"type": "event", "name": "RelayHubChanged", "inputs": [{"name": "oldRelayHub", "type": "address", "internalType": "address", "indexed": true}, {"name": "newRelayHub", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "acceptRelayedCall", "stateMutability": "view", "inputs": [{"name": "relay", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "encodedFunction", "type": "bytes", "internalType": "bytes"}, {"name": "transactionFee", "type": "uint256", "internalType": "uint256"}, {"name": "gasPrice", "type": "uint256", "internalType": "uint256"}, {"name": "gasLimit", "type": "uint256", "internalType": "uint256"}, {"name": "nonce", "type": "uint256", "internalType": "uint256"}, {"name": "approvalData", "type": "bytes", "internalType": "bytes"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}]}, {"type": "function", "name": "getHubAddr", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "mockFunction", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "postRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}, {"name": "success", "type": "bool", "internalType": "bool"}, {"name": "actualCharge", "type": "uint256", "internalType": "uint256"}, {"name": "preRetVal", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "preRelayedCall", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "relayHubVersion", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)": {"details": "Ensures that only transactions with a trusted signature can be relayed through the GSN."}, "getHubAddr()": {"details": "Returns the address of the {IRelayHub} contract for this recipient."}, "postRelayedCall(bytes,bool,uint256,bytes32)": {"details": "See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "preRelayedCall(bytes)": {"details": "See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."}, "relayHubVersion()": {"details": "Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}}, "version": 1}}, "MathMock": {"contractName": "MathMock", "sourceId": "mocks/MathMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061016d806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80632b7423ab146100465780636d5433e61461007b5780637ae2b5c71461009e575b600080fd5b6100696004803603604081101561005c57600080fd5b50803590602001356100c1565b60408051918252519081900360200190f35b6100696004803603604081101561009157600080fd5b50803590602001356100d4565b610069600480360360408110156100b457600080fd5b50803590602001356100e0565b60006100cd83836100ec565b9392505050565b60006100cd8383610111565b60006100cd8383610128565b600060028083066002850601816100ff57fe5b04600283046002850401019392505050565b60008183101561012157816100cd565b5090919050565b600081831061012157816100cd56fea2646970667358221220c41a7a76f52d34ef0b6d96904e573d9b0aac9bf9d62dd86d8d75b51ee3fe002664736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80632b7423ab146100465780636d5433e61461007b5780637ae2b5c71461009e575b600080fd5b6100696004803603604081101561005c57600080fd5b50803590602001356100c1565b60408051918252519081900360200190f35b6100696004803603604081101561009157600080fd5b50803590602001356100d4565b610069600480360360408110156100b457600080fd5b50803590602001356100e0565b60006100cd83836100ec565b9392505050565b60006100cd8383610111565b60006100cd8383610128565b600060028083066002850601816100ff57fe5b04600283046002850401019392505050565b60008183101561012157816100cd565b5090919050565b600081831061012157816100cd56fea2646970667358221220c41a7a76f52d34ef0b6d96904e573d9b0aac9bf9d62dd86d8d75b51ee3fe002664736f6c634300060c0033"}, "abi": [{"type": "function", "name": "average", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "max", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "min", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "MerkleProofWrapper": {"contractName": "MerkleProofWrapper", "sourceId": "mocks/MerkleProofWrapper.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506101e0806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80635a9a49c714610030575b600080fd5b6100d86004803603606081101561004657600080fd5b81019060208101813564010000000081111561006157600080fd5b82018360208201111561007357600080fd5b8035906020019184602083028401116401000000008311171561009557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050823593505050602001356100ec565b604080519115158252519081900360200190f35b60006100f9848484610101565b949350505050565b600081815b855181101561019f57600086828151811061011d57fe5b602002602001015190508083116101645782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610196565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b50600101610106565b50909214939250505056fea264697066735822122097aba9cb15022fee4810abf459e8e2d27dced3dbff8d0a3e995635d635920e3c64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80635a9a49c714610030575b600080fd5b6100d86004803603606081101561004657600080fd5b81019060208101813564010000000081111561006157600080fd5b82018360208201111561007357600080fd5b8035906020019184602083028401116401000000008311171561009557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050823593505050602001356100ec565b604080519115158252519081900360200190f35b60006100f9848484610101565b949350505050565b600081815b855181101561019f57600086828151811061011d57fe5b602002602001015190508083116101645782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610196565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b50600101610106565b50909214939250505056fea264697066735822122097aba9cb15022fee4810abf459e8e2d27dced3dbff8d0a3e995635d635920e3c64736f6c634300060c0033"}, "abi": [{"type": "function", "name": "verify", "stateMutability": "pure", "inputs": [{"name": "proof", "type": "bytes32[]", "internalType": "bytes32[]"}, {"name": "root", "type": "bytes32", "internalType": "bytes32"}, {"name": "leaf", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "OwnableMock": {"contractName": "OwnableMock", "sourceId": "mocks/OwnableMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6102c78061007d6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063715018a6146100465780638da5cb5b14610050578063f2fde38b14610074575b600080fd5b61004e61009a565b005b61005861014e565b604080516001600160a01b039092168252519081900360200190f35b61004e6004803603602081101561008a57600080fd5b50356001600160a01b031661015d565b6100a2610267565b6000546001600160a01b03908116911614610104576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b610165610267565b6000546001600160a01b039081169116146101c7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661020c5760405162461bcd60e51b815260040180806020018281038252602681526020018061026c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220a1247ced41bf18a3ad307846c68272d7cfee4e8696d4cd13756c085be759c59264736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063715018a6146100465780638da5cb5b14610050578063f2fde38b14610074575b600080fd5b61004e61009a565b005b61005861014e565b604080516001600160a01b039092168252519081900360200190f35b61004e6004803603602081101561008a57600080fd5b50356001600160a01b031661015d565b6100a2610267565b6000546001600160a01b03908116911614610104576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b610165610267565b6000546001600160a01b039081169116146101c7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661020c5760405162461bcd60e51b815260040180806020018281038252602681526020018061026c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220a1247ced41bf18a3ad307846c68272d7cfee4e8696d4cd13756c085be759c59264736f6c634300060c0033"}, "abi": [{"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}}, "version": 1}}, "PausableMock": {"contractName": "PausableMock", "sourceId": "mocks/PausableMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506000805461ffff1916815560015561031a8061002e6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806376657b8e1161005b57806376657b8e146100c25780638456cb59146100ca5780639958f045146100d2578063e7651d7a146100da5761007d565b806306661abd146100825780633f4ba83a1461009c5780635c975abb146100a6575b600080fd5b61008a6100e2565b60408051918252519081900360200190f35b6100a46100e8565b005b6100ae6100f2565b604080519115158252519081900360200190f35b6100ae6100fb565b6100a4610109565b6100a4610111565b6100a4610170565b60015481565b6100f06101c5565b565b60005460ff1690565b600054610100900460ff1681565b6100f0610263565b60005460ff1661015f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805461ff001916610100179055565b60005460ff16156101bb576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001805481019055565b60005460ff16610213576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6102466102e0565b604080516001600160a01b039092168252519081900360200190a1565b60005460ff16156102ae576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586102465b339056fea26469706673582212206a977eb73d171cf59386c40f42dc1b778237e861b6d48e9b1864734ee4aaecc464736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c806376657b8e1161005b57806376657b8e146100c25780638456cb59146100ca5780639958f045146100d2578063e7651d7a146100da5761007d565b806306661abd146100825780633f4ba83a1461009c5780635c975abb146100a6575b600080fd5b61008a6100e2565b60408051918252519081900360200190f35b6100a46100e8565b005b6100ae6100f2565b604080519115158252519081900360200190f35b6100ae6100fb565b6100a4610109565b6100a4610111565b6100a4610170565b60015481565b6100f06101c5565b565b60005460ff1690565b600054610100900460ff1681565b6100f0610263565b60005460ff1661015f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805461ff001916610100179055565b60005460ff16156101bb576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001805481019055565b60005460ff16610213576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6102466102e0565b604080516001600160a01b039092168252519081900360200190a1565b60005460ff16156102ae576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586102465b339056fea26469706673582212206a977eb73d171cf59386c40f42dc1b778237e861b6d48e9b1864734ee4aaecc464736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": []}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "count", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "drasticMeasure", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "drasticMeasureTaken", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "normalProcess", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"paused()": {"details": "Returns true if the contract is paused, and false otherwise."}}, "version": 1}}, "PullPaymentMock": {"contractName": "PullPaymentMock", "sourceId": "mocks/PullPaymentMock.sol", "deploymentBytecode": {"bytecode": "0x608060405260405161001090610052565b604051809103906000f08015801561002c573d6000803e3d6000fd5b50600080546001600160a01b0319166001600160a01b039290921691909117905561005f565b61074f806102d483390190565b6102668061006e6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806331b3eb9414610046578063d44409911461006e578063e2982c211461009a575b600080fd5b61006c6004803603602081101561005c57600080fd5b50356001600160a01b03166100d2565b005b61006c6004803603604081101561008457600080fd5b506001600160a01b038135169060200135610138565b6100c0600480360360208110156100b057600080fd5b50356001600160a01b0316610146565b60408051918252519081900360200190f35b60008054604080516351cff8d960e01b81526001600160a01b038581166004830152915191909216926351cff8d9926024808201939182900301818387803b15801561011d57600080fd5b505af1158015610131573d6000803e3d6000fd5b5050505050565b61014282826101c6565b5050565b60008054604080516371d4ed8d60e11b81526001600160a01b0385811660048301529151919092169163e3a9db1a916024808301926020929190829003018186803b15801561019457600080fd5b505afa1580156101a8573d6000803e3d6000fd5b505050506040513d60208110156101be57600080fd5b505192915050565b600080546040805163f340fa0160e01b81526001600160a01b0386811660048301529151919092169263f340fa019285926024808301939282900301818588803b15801561021357600080fd5b505af1158015610227573d6000803e3d6000fd5b5050505050505056fea26469706673582212208d8091cf254f79bca5dd1773dbedafbaeffeb22a88df2c066ce94815ecc9327e64736f6c634300060c0033608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6106d28061007d6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461008f5780638da5cb5b146100a4578063e3a9db1a146100d5578063f2fde38b1461011a578063f340fa011461014d575b600080fd5b34801561006657600080fd5b5061008d6004803603602081101561007d57600080fd5b50356001600160a01b0316610173565b005b34801561009b57600080fd5b5061008d610236565b3480156100b057600080fd5b506100b96102d8565b604080516001600160a01b039092168252519081900360200190f35b3480156100e157600080fd5b50610108600480360360208110156100f857600080fd5b50356001600160a01b03166102e7565b60408051918252519081900360200190f35b34801561012657600080fd5b5061008d6004803603602081101561013d57600080fd5b50356001600160a01b0316610302565b61008d6004803603602081101561016357600080fd5b50356001600160a01b03166103fa565b61017b6104cd565b6000546001600160a01b039081169116146101cb576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906101f390826104d1565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b61023e6104cd565b6000546001600160a01b0390811691161461028e576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61030a6104cd565b6000546001600160a01b0390811691161461035a576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811661039f5760405162461bcd60e51b815260040180806020018281038252602681526020018061061d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6104026104cd565b6000546001600160a01b03908116911614610452576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b038116600090815260016020526040902054349061047790826105bb565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b3390565b80471015610526576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610571576040519150601f19603f3d011682016040523d82523d6000602084013e610576565b606091505b50509050806105b65760405162461bcd60e51b815260040180806020018281038252603a815260200180610643603a913960400191505060405180910390fd5b505050565b600082820183811015610615576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d617920686176652072657665727465644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122060e2643f81a8e0f21aa42ec59616844505f30b19f47297c01915f82da599bd7164736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806331b3eb9414610046578063d44409911461006e578063e2982c211461009a575b600080fd5b61006c6004803603602081101561005c57600080fd5b50356001600160a01b03166100d2565b005b61006c6004803603604081101561008457600080fd5b506001600160a01b038135169060200135610138565b6100c0600480360360208110156100b057600080fd5b50356001600160a01b0316610146565b60408051918252519081900360200190f35b60008054604080516351cff8d960e01b81526001600160a01b038581166004830152915191909216926351cff8d9926024808201939182900301818387803b15801561011d57600080fd5b505af1158015610131573d6000803e3d6000fd5b5050505050565b61014282826101c6565b5050565b60008054604080516371d4ed8d60e11b81526001600160a01b0385811660048301529151919092169163e3a9db1a916024808301926020929190829003018186803b15801561019457600080fd5b505afa1580156101a8573d6000803e3d6000fd5b505050506040513d60208110156101be57600080fd5b505192915050565b600080546040805163f340fa0160e01b81526001600160a01b0386811660048301529151919092169263f340fa019285926024808301939282900301818588803b15801561021357600080fd5b505af1158015610227573d6000803e3d6000fd5b5050505050505056fea26469706673582212208d8091cf254f79bca5dd1773dbedafbaeffeb22a88df2c066ce94815ecc9327e64736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "payable", "inputs": []}, {"type": "function", "name": "callTransfer", "stateMutability": "nonpayable", "inputs": [{"name": "dest", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "payments", "stateMutability": "view", "inputs": [{"name": "dest", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "withdrawPayments", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address payable"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"payments(address)": {"details": "Returns the payments owed to an address.", "params": {"dest": "The creditor's address."}}, "withdrawPayments(address)": {"details": "Withdraw accumulated payments, forwarding all gas to the recipient. Note that _any_ account can call this function, not just the `payee`. This means that contracts unaware of the `PullPayment` protocol can still receive funds this way, by having a separate account call {withdrawPayments}. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.", "params": {"payee": "Whose payments will be withdrawn."}}}, "version": 1}}, "ReentrancyAttack": {"contractName": "ReentrancyAttack", "sourceId": "mocks/ReentrancyAttack.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506101c4806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80630a2df1ed14610030575b600080fd5b6100576004803603602081101561004657600080fd5b50356001600160e01b031916610059565b005b600061006361018a565b60408051600481526024810182526020810180516001600160e01b03166001600160e01b03198716178152915181516001600160a01b039490941693919290918291908083835b602083106100c95780518252601f1990920191602091820191016100aa565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461012b576040519150601f19603f3d011682016040523d82523d6000602084013e610130565b606091505b5050905080610186576040805162461bcd60e51b815260206004820152601d60248201527f5265656e7472616e637941747461636b3a206661696c65642063616c6c000000604482015290519081900360640190fd5b5050565b339056fea264697066735822122085f31dcd97b66f527aa15f259ab296e1712ae189f977c0acf67f5668643bc11c64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80630a2df1ed14610030575b600080fd5b6100576004803603602081101561004657600080fd5b50356001600160e01b031916610059565b005b600061006361018a565b60408051600481526024810182526020810180516001600160e01b03166001600160e01b03198716178152915181516001600160a01b039490941693919290918291908083835b602083106100c95780518252601f1990920191602091820191016100aa565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461012b576040519150601f19603f3d011682016040523d82523d6000602084013e610130565b606091505b5050905080610186576040805162461bcd60e51b815260206004820152601d60248201527f5265656e7472616e637941747461636b3a206661696c65642063616c6c000000604482015290519081900360640190fd5b5050565b339056fea264697066735822122085f31dcd97b66f527aa15f259ab296e1712ae189f977c0acf67f5668643bc11c64736f6c634300060c0033"}, "abi": [{"type": "function", "name": "callSender", "stateMutability": "nonpayable", "inputs": [{"name": "data", "type": "bytes4", "internalType": "bytes4"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ReentrancyMock": {"contractName": "ReentrancyMock", "sourceId": "mocks/ReentrancyMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600160008181559055610478806100296000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063083b27321461005c57806361bc221a146100665780638c5344fa1461008057806396ffa6901461009d578063b672ad8b146100ba575b600080fd5b6100646100e0565b005b61006e61013a565b60408051918252519081900360200190f35b6100646004803603602081101561009657600080fd5b5035610140565b610064600480360360208110156100b357600080fd5b50356102ce565b610064600480360360208110156100d057600080fd5b50356001600160a01b0316610333565b60026000541415610126576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b6002600055610133610418565b6001600055565b60015481565b60026000541415610186576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b600260005580156102c657610199610418565b60408051600019830160248083019190915282518083039091018152604490910182526020810180516001600160e01b0316634629a27d60e11b17815291518151600093309392918291908083835b602083106102075780518252601f1990920191602091820191016101e8565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610269576040519150601f19603f3d011682016040523d82523d6000602084013e61026e565b606091505b50509050806102c4576040805162461bcd60e51b815260206004820152601b60248201527f5265656e7472616e63794d6f636b3a206661696c65642063616c6c0000000000604482015290519081900360640190fd5b505b506001600055565b60026000541415610314576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b600260005580156102c657610327610418565b6102c6600182036102ce565b60026000541415610379576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b6002600055610386610418565b60408051630a2df1ed60e01b815263041d939960e11b600482015290517f083b2732f78169bfaad6b407fa338cc97d697ed69d3915a18239cc111d51a402916001600160a01b03841691630a2df1ed9160248082019260009290919082900301818387803b1580156103f757600080fd5b505af115801561040b573d6000803e3d6000fd5b5050600160005550505050565b600180548101905556fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00a264697066735822122049bf4f28803b41ad925127b838857f2b21d894a387545151d7c85f080248ba7064736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063083b27321461005c57806361bc221a146100665780638c5344fa1461008057806396ffa6901461009d578063b672ad8b146100ba575b600080fd5b6100646100e0565b005b61006e61013a565b60408051918252519081900360200190f35b6100646004803603602081101561009657600080fd5b5035610140565b610064600480360360208110156100b357600080fd5b50356102ce565b610064600480360360208110156100d057600080fd5b50356001600160a01b0316610333565b60026000541415610126576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b6002600055610133610418565b6001600055565b60015481565b60026000541415610186576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b600260005580156102c657610199610418565b60408051600019830160248083019190915282518083039091018152604490910182526020810180516001600160e01b0316634629a27d60e11b17815291518151600093309392918291908083835b602083106102075780518252601f1990920191602091820191016101e8565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610269576040519150601f19603f3d011682016040523d82523d6000602084013e61026e565b606091505b50509050806102c4576040805162461bcd60e51b815260206004820152601b60248201527f5265656e7472616e63794d6f636b3a206661696c65642063616c6c0000000000604482015290519081900360640190fd5b505b506001600055565b60026000541415610314576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b600260005580156102c657610327610418565b6102c6600182036102ce565b60026000541415610379576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b6002600055610386610418565b60408051630a2df1ed60e01b815263041d939960e11b600482015290517f083b2732f78169bfaad6b407fa338cc97d697ed69d3915a18239cc111d51a402916001600160a01b03841691630a2df1ed9160248082019260009290919082900301818387803b1580156103f757600080fd5b505af115801561040b573d6000803e3d6000fd5b5050600160005550505050565b600180548101905556fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00a264697066735822122049bf4f28803b41ad925127b838857f2b21d894a387545151d7c85f080248ba7064736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": []}, {"type": "function", "name": "callback", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "countAndCall", "stateMutability": "nonpayable", "inputs": [{"name": "attacker", "type": "address", "internalType": "contract ReentrancyAttack"}], "outputs": []}, {"type": "function", "name": "countLocalRecursive", "stateMutability": "nonpayable", "inputs": [{"name": "n", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "countThisRecursive", "stateMutability": "nonpayable", "inputs": [{"name": "n", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "counter", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "SafeCastMock": {"contractName": "SafeCastMock", "sourceId": "mocks/SafeCastMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610871806100206000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063cf65b4d311610071578063cf65b4d314610206578063d6bd32aa1461023a578063dd2a03161461026e578063dfbe873b146102a2578063f136dc02146102d1578063fdcf791b14610305576100b4565b80630cc4681e146100b95780632665fad0146100ec578063809fdd33146101265780639374068f146101685780639c6f59be1461019c578063c8193255146101d0575b600080fd5b6100d6600480360360208110156100cf57600080fd5b5035610322565b6040805160ff9092168252519081900360200190f35b6101096004803603602081101561010257600080fd5b5035610333565b6040805167ffffffffffffffff9092168252519081900360200190f35b6101436004803603602081101561013c57600080fd5b503561033e565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101856004803603602081101561017e57600080fd5b5035610349565b6040805161ffff9092168252519081900360200190f35b6101b9600480360360208110156101b257600080fd5b5035610354565b6040805160039290920b8252519081900360200190f35b6101ed600480360360208110156101e657600080fd5b503561035f565b6040805163ffffffff9092168252519081900360200190f35b6102236004803603602081101561021c57600080fd5b503561036a565b6040805160019290920b8252519081900360200190f35b6102576004803603602081101561025057600080fd5b5035610375565b6040805160079290920b8252519081900360200190f35b61028b6004803603602081101561028457600080fd5b5035610380565b60408051600f9290920b8252519081900360200190f35b6102bf600480360360208110156102b857600080fd5b503561038b565b60408051918252519081900360200190f35b6102ee600480360360208110156102e757600080fd5b5035610396565b6040805160009290920b8252519081900360200190f35b6102bf6004803603602081101561031b57600080fd5b50356103a1565b600061032d826103ac565b92915050565b600061032d826103f2565b600061032d8261043b565b600061032d8261047f565b600061032d826104c2565b600061032d82610517565b600061032d8261055c565b600061032d826105ad565b600061032d8261060a565b600061032d8261066b565b600061032d826106af565b600061032d826106fe565b600061010082106103ee5760405162461bcd60e51b815260040180806020018281038252602581526020018061077c6025913960400191505060405180910390fd5b5090565b60006801000000000000000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107c86026913960400191505060405180910390fd5b6000600160801b82106103ee5760405162461bcd60e51b81526004018080602001828103825260278152602001806107a16027913960400191505060405180910390fd5b60006201000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107566026913960400191505060405180910390fd5b6000637fffffff1982121580156104dc5750638000000082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107ee6026913960400191505060405180910390fd5b600064010000000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107ee6026913960400191505060405180910390fd5b6000617fff198212158015610572575061800082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107566026913960400191505060405180910390fd5b6000677fffffffffffffff1982121580156105cf575067800000000000000082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107c86026913960400191505060405180910390fd5b60006f7fffffffffffffffffffffffffffffff19821215801561063057506001607f1b82125b6103ee5760405162461bcd60e51b81526004018080602001828103825260278152602001806107a16027913960400191505060405180910390fd5b6000600160ff1b82106103ee5760405162461bcd60e51b81526004018080602001828103825260288152602001806108146028913960400191505060405180910390fd5b6000607f1982121580156106c35750608082125b6103ee5760405162461bcd60e51b815260040180806020018281038252602581526020018061077c6025913960400191505060405180910390fd5b6000808212156103ee576040805162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015290519081900360640190fdfe53616665436173743a2076616c756520646f65736e27742066697420696e203136206269747353616665436173743a2076616c756520646f65736e27742066697420696e2038206269747353616665436173743a2076616c756520646f65736e27742066697420696e20313238206269747353616665436173743a2076616c756520646f65736e27742066697420696e203634206269747353616665436173743a2076616c756520646f65736e27742066697420696e203332206269747353616665436173743a2076616c756520646f65736e27742066697420696e20616e20696e74323536a2646970667358221220e07d2970f5a1d5b7af3ab6d0e78e487b6d2bcd2c4dcb9aa1120b4593bd06471364736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063cf65b4d311610071578063cf65b4d314610206578063d6bd32aa1461023a578063dd2a03161461026e578063dfbe873b146102a2578063f136dc02146102d1578063fdcf791b14610305576100b4565b80630cc4681e146100b95780632665fad0146100ec578063809fdd33146101265780639374068f146101685780639c6f59be1461019c578063c8193255146101d0575b600080fd5b6100d6600480360360208110156100cf57600080fd5b5035610322565b6040805160ff9092168252519081900360200190f35b6101096004803603602081101561010257600080fd5b5035610333565b6040805167ffffffffffffffff9092168252519081900360200190f35b6101436004803603602081101561013c57600080fd5b503561033e565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101856004803603602081101561017e57600080fd5b5035610349565b6040805161ffff9092168252519081900360200190f35b6101b9600480360360208110156101b257600080fd5b5035610354565b6040805160039290920b8252519081900360200190f35b6101ed600480360360208110156101e657600080fd5b503561035f565b6040805163ffffffff9092168252519081900360200190f35b6102236004803603602081101561021c57600080fd5b503561036a565b6040805160019290920b8252519081900360200190f35b6102576004803603602081101561025057600080fd5b5035610375565b6040805160079290920b8252519081900360200190f35b61028b6004803603602081101561028457600080fd5b5035610380565b60408051600f9290920b8252519081900360200190f35b6102bf600480360360208110156102b857600080fd5b503561038b565b60408051918252519081900360200190f35b6102ee600480360360208110156102e757600080fd5b5035610396565b6040805160009290920b8252519081900360200190f35b6102bf6004803603602081101561031b57600080fd5b50356103a1565b600061032d826103ac565b92915050565b600061032d826103f2565b600061032d8261043b565b600061032d8261047f565b600061032d826104c2565b600061032d82610517565b600061032d8261055c565b600061032d826105ad565b600061032d8261060a565b600061032d8261066b565b600061032d826106af565b600061032d826106fe565b600061010082106103ee5760405162461bcd60e51b815260040180806020018281038252602581526020018061077c6025913960400191505060405180910390fd5b5090565b60006801000000000000000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107c86026913960400191505060405180910390fd5b6000600160801b82106103ee5760405162461bcd60e51b81526004018080602001828103825260278152602001806107a16027913960400191505060405180910390fd5b60006201000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107566026913960400191505060405180910390fd5b6000637fffffff1982121580156104dc5750638000000082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107ee6026913960400191505060405180910390fd5b600064010000000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107ee6026913960400191505060405180910390fd5b6000617fff198212158015610572575061800082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107566026913960400191505060405180910390fd5b6000677fffffffffffffff1982121580156105cf575067800000000000000082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107c86026913960400191505060405180910390fd5b60006f7fffffffffffffffffffffffffffffff19821215801561063057506001607f1b82125b6103ee5760405162461bcd60e51b81526004018080602001828103825260278152602001806107a16027913960400191505060405180910390fd5b6000600160ff1b82106103ee5760405162461bcd60e51b81526004018080602001828103825260288152602001806108146028913960400191505060405180910390fd5b6000607f1982121580156106c35750608082125b6103ee5760405162461bcd60e51b815260040180806020018281038252602581526020018061077c6025913960400191505060405180910390fd5b6000808212156103ee576040805162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015290519081900360640190fdfe53616665436173743a2076616c756520646f65736e27742066697420696e203136206269747353616665436173743a2076616c756520646f65736e27742066697420696e2038206269747353616665436173743a2076616c756520646f65736e27742066697420696e20313238206269747353616665436173743a2076616c756520646f65736e27742066697420696e203634206269747353616665436173743a2076616c756520646f65736e27742066697420696e203332206269747353616665436173743a2076616c756520646f65736e27742066697420696e20616e20696e74323536a2646970667358221220e07d2970f5a1d5b7af3ab6d0e78e487b6d2bcd2c4dcb9aa1120b4593bd06471364736f6c634300060c0033"}, "abi": [{"type": "function", "name": "toInt128", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int128", "internalType": "int128"}]}, {"type": "function", "name": "toInt16", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int16", "internalType": "int16"}]}, {"type": "function", "name": "toInt256", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "int256", "internalType": "int256"}]}, {"type": "function", "name": "toInt32", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int32", "internalType": "int32"}]}, {"type": "function", "name": "toInt64", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int64", "internalType": "int64"}]}, {"type": "function", "name": "toInt8", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int8", "internalType": "int8"}]}, {"type": "function", "name": "toUint128", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint128", "internalType": "uint128"}]}, {"type": "function", "name": "toUint16", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint16", "internalType": "uint16"}]}, {"type": "function", "name": "toUint256", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "toUint32", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint32", "internalType": "uint32"}]}, {"type": "function", "name": "toUint64", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint64", "internalType": "uint64"}]}, {"type": "function", "name": "toUint8", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC20NoReturnMock": {"contractName": "ERC20NoReturnMock", "sourceId": "mocks/SafeERC20Helper.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506101af806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461008a5780633ba93f26146100c0578063a9059cbb1461005c578063dd62ed3e146100dd575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b03813516906020013561011d565b005b610088600480360360608110156100a057600080fd5b506001600160a01b03813581169160208101359091169060400135610126565b610088600480360360208110156100d657600080fd5b5035610130565b61010b600480360360408110156100f357600080fd5b506001600160a01b0381358116916020013516610159565b60408051918252519081900360200190f35b50506000600155565b5050600060015550565b8060008061013c610175565b6001600160a01b0316815260208101919091526040016000205550565b506001600160a01b031660009081526020819052604090205490565b339056fea2646970667358221220147c9e98bcac12a176dd1cb5db353c045621ede04a1f5c2c9b9010cce13191b964736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461008a5780633ba93f26146100c0578063a9059cbb1461005c578063dd62ed3e146100dd575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b03813516906020013561011d565b005b610088600480360360608110156100a057600080fd5b506001600160a01b03813581169160208101359091169060400135610126565b610088600480360360208110156100d657600080fd5b5035610130565b61010b600480360360408110156100f357600080fd5b506001600160a01b0381358116916020013516610159565b60408051918252519081900360200190f35b50506000600155565b5050600060015550565b8060008061013c610175565b6001600160a01b0316815260208101919091526040016000205550565b506001600160a01b031660009081526020819052604090205490565b339056fea2646970667358221220147c9e98bcac12a176dd1cb5db353c045621ede04a1f5c2c9b9010cce13191b964736f6c634300060c0033"}, "abi": [{"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "allowance_", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC20ReturnFalseMock": {"contractName": "ERC20ReturnFalseMock", "sourceId": "mocks/SafeERC20Helper.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610171806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063095ea7b31461005157806323b872dd14610091578063a9059cbb14610051578063dd62ed3e146100c7575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b038135169060200135610107565b604080519115158252519081900360200190f35b61007d600480360360608110156100a757600080fd5b506001600160a01b03813581169160208101359091169060400135610113565b6100f5600480360360408110156100dd57600080fd5b506001600160a01b0381358116916020013516610121565b60408051918252519081900360200190f35b50506000600181905590565b600060018190559392505050565b600060015460001461013257600080fd5b5060009291505056fea26469706673582212208dc80deab62324ec11bbb0d48724bd6ea0484b790881f27a44acb441b1ae425464736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063095ea7b31461005157806323b872dd14610091578063a9059cbb14610051578063dd62ed3e146100c7575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b038135169060200135610107565b604080519115158252519081900360200190f35b61007d600480360360608110156100a757600080fd5b506001600160a01b03813581169160208101359091169060400135610113565b6100f5600480360360408110156100dd57600080fd5b506001600160a01b0381358116916020013516610121565b60408051918252519081900360200190f35b50506000600181905590565b600060018190559392505050565b600060015460001461013257600080fd5b5060009291505056fea26469706673582212208dc80deab62324ec11bbb0d48724bd6ea0484b790881f27a44acb441b1ae425464736f6c634300060c0033"}, "abi": [{"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC20ReturnTrueMock": {"contractName": "ERC20ReturnTrueMock", "sourceId": "mocks/SafeERC20Helper.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506101ca806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461009c5780633ba93f26146100d2578063a9059cbb1461005c578063dd62ed3e146100f1575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b038135169060200135610131565b604080519115158252519081900360200190f35b610088600480360360608110156100b257600080fd5b506001600160a01b0381358116916020810135909116906040013561013d565b6100ef600480360360208110156100e857600080fd5b503561014b565b005b61011f6004803603604081101561010757600080fd5b506001600160a01b0381358116916020013516610174565b60408051918252519081900360200190f35b50506000600190815590565b600060019081559392505050565b80600080610157610190565b6001600160a01b0316815260208101919091526040016000205550565b506001600160a01b031660009081526020819052604090205490565b339056fea2646970667358221220f7771fdddceb10270994847a86bab492114605439d2a78275940dc2d8e18344964736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461009c5780633ba93f26146100d2578063a9059cbb1461005c578063dd62ed3e146100f1575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b038135169060200135610131565b604080519115158252519081900360200190f35b610088600480360360608110156100b257600080fd5b506001600160a01b0381358116916020810135909116906040013561013d565b6100ef600480360360208110156100e857600080fd5b503561014b565b005b61011f6004803603604081101561010757600080fd5b506001600160a01b0381358116916020013516610174565b60408051918252519081900360200190f35b50506000600190815590565b600060019081559392505050565b80600080610157610190565b6001600160a01b0316815260208101919091526040016000205550565b506001600160a01b031660009081526020819052604090205490565b339056fea2646970667358221220f7771fdddceb10270994847a86bab492114605439d2a78275940dc2d8e18344964736f6c634300060c0033"}, "abi": [{"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "setAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "allowance_", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "SafeERC20Wrapper": {"contractName": "SafeERC20Wrapper", "sourceId": "mocks/SafeERC20Helper.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50604051610a73380380610a738339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b0319909216919091179055610a0e806100656000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063811c34d31161005b578063811c34d3146100db5780638a4068dd146100e3578063b759f954146100eb578063de242ff4146101085761007d565b806310bad4cf1461008257806311e330b2146100a15780633ba93f26146100be575b600080fd5b61009f6004803603602081101561009857600080fd5b5035610122565b005b61009f600480360360208110156100b757600080fd5b503561013f565b61009f600480360360208110156100d457600080fd5b5035610159565b61009f6101bc565b61009f6101d9565b61009f6004803603602081101561010157600080fd5b50356101f3565b61011061020d565b60408051918252519081900360200190f35b6000805461013c916001600160a01b039091169083610292565b50565b6000805461013c916001600160a01b03909116908361038f565b6000805460408051631dd49f9360e11b81526004810185905290516001600160a01b0390921692633ba93f269260248084019382900301818387803b1580156101a157600080fd5b505af11580156101b5573d6000803e3d6000fd5b5050505050565b600080546101d7916001600160a01b03909116908080610425565b565b600080546101d7916001600160a01b03909116908061047f565b6000805461013c916001600160a01b0390911690836104d6565b6000805460408051636eb1769f60e11b8152600481018490526024810184905290516001600160a01b039092169163dd62ed3e91604480820192602092909190829003018186803b15801561026157600080fd5b505afa158015610275573d6000803e3d6000fd5b505050506040513d602081101561028b57600080fd5b5051905090565b6000610334826040518060600160405280602981526020016109506029913960408051636eb1769f60e11b81523060048201526001600160a01b03888116602483015291519189169163dd62ed3e91604480820192602092909190829003018186803b15801561030157600080fd5b505afa158015610315573d6000803e3d6000fd5b505050506040513d602081101561032b57600080fd5b505191906105e9565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052909150610389908590610680565b50505050565b600061033482856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156103f357600080fd5b505afa158015610407573d6000803e3d6000fd5b505050506040513d602081101561041d57600080fd5b505190610731565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610389908590610680565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526104d1908490610680565b505050565b80158061055c575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561052e57600080fd5b505afa158015610542573d6000803e3d6000fd5b505050506040513d602081101561055857600080fd5b5051155b6105975760405162461bcd60e51b81526004018080602001828103825260368152602001806109a36036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526104d1908490610680565b600081848411156106785760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561063d578181015183820152602001610625565b50505050905090810190601f16801561066a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606106d5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107929092919063ffffffff16565b8051909150156104d1578080602001905160208110156106f457600080fd5b50516104d15760405162461bcd60e51b815260040180806020018281038252602a815260200180610979602a913960400191505060405180910390fd5b60008282018381101561078b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60606107a184846000856107a9565b949350505050565b60606107b485610916565b610805576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106108445780518252601f199092019160209182019101610825565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146108a6576040519150601f19603f3d011682016040523d82523d6000602084013e6108ab565b606091505b509150915081156108bf5791506107a19050565b8051156108cf5780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561063d578181015183820152602001610625565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906107a157505015159291505056fe5361666545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220d101e39f454e77391b598b97779a04df2e32fa0fcff2543c7e250fec664d195864736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063811c34d31161005b578063811c34d3146100db5780638a4068dd146100e3578063b759f954146100eb578063de242ff4146101085761007d565b806310bad4cf1461008257806311e330b2146100a15780633ba93f26146100be575b600080fd5b61009f6004803603602081101561009857600080fd5b5035610122565b005b61009f600480360360208110156100b757600080fd5b503561013f565b61009f600480360360208110156100d457600080fd5b5035610159565b61009f6101bc565b61009f6101d9565b61009f6004803603602081101561010157600080fd5b50356101f3565b61011061020d565b60408051918252519081900360200190f35b6000805461013c916001600160a01b039091169083610292565b50565b6000805461013c916001600160a01b03909116908361038f565b6000805460408051631dd49f9360e11b81526004810185905290516001600160a01b0390921692633ba93f269260248084019382900301818387803b1580156101a157600080fd5b505af11580156101b5573d6000803e3d6000fd5b5050505050565b600080546101d7916001600160a01b03909116908080610425565b565b600080546101d7916001600160a01b03909116908061047f565b6000805461013c916001600160a01b0390911690836104d6565b6000805460408051636eb1769f60e11b8152600481018490526024810184905290516001600160a01b039092169163dd62ed3e91604480820192602092909190829003018186803b15801561026157600080fd5b505afa158015610275573d6000803e3d6000fd5b505050506040513d602081101561028b57600080fd5b5051905090565b6000610334826040518060600160405280602981526020016109506029913960408051636eb1769f60e11b81523060048201526001600160a01b03888116602483015291519189169163dd62ed3e91604480820192602092909190829003018186803b15801561030157600080fd5b505afa158015610315573d6000803e3d6000fd5b505050506040513d602081101561032b57600080fd5b505191906105e9565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052909150610389908590610680565b50505050565b600061033482856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156103f357600080fd5b505afa158015610407573d6000803e3d6000fd5b505050506040513d602081101561041d57600080fd5b505190610731565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610389908590610680565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526104d1908490610680565b505050565b80158061055c575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561052e57600080fd5b505afa158015610542573d6000803e3d6000fd5b505050506040513d602081101561055857600080fd5b5051155b6105975760405162461bcd60e51b81526004018080602001828103825260368152602001806109a36036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526104d1908490610680565b600081848411156106785760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561063d578181015183820152602001610625565b50505050905090810190601f16801561066a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606106d5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107929092919063ffffffff16565b8051909150156104d1578080602001905160208110156106f457600080fd5b50516104d15760405162461bcd60e51b815260040180806020018281038252602a815260200180610979602a913960400191505060405180910390fd5b60008282018381101561078b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60606107a184846000856107a9565b949350505050565b60606107b485610916565b610805576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106108445780518252601f199092019160209182019101610825565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146108a6576040519150601f19603f3d011682016040523d82523d6000602084013e6108ab565b606091505b509150915081156108bf5791506107a19050565b8051156108cf5780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561063d578181015183820152602001610625565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906107a157505015159291505056fe5361666545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220d101e39f454e77391b598b97779a04df2e32fa0fcff2543c7e250fec664d195864736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "token", "type": "address", "internalType": "contract IERC20"}]}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "allowance_", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "SafeMathMock": {"contractName": "SafeMathMock", "sourceId": "mocks/SafeMathMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610490806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063771602f71461005c578063a391c15b14610091578063b67d77c5146100b4578063c8a4ac9c146100d7578063f43f523a146100fa575b600080fd5b61007f6004803603604081101561007257600080fd5b508035906020013561011d565b60408051918252519081900360200190f35b61007f600480360360408110156100a757600080fd5b5080359060200135610132565b61007f600480360360408110156100ca57600080fd5b508035906020013561013e565b61007f600480360360408110156100ed57600080fd5b508035906020013561014a565b61007f6004803603604081101561011057600080fd5b5080359060200135610156565b60006101298383610162565b90505b92915050565b600061012983836101bc565b600061012983836101fe565b60006101298383610240565b60006101298383610299565b600082820183811015610129576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061012983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506102db565b600061012983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061037d565b60008261024f5750600061012c565b8282028284828161025c57fe5b04146101295760405162461bcd60e51b815260040180806020018281038252602181526020018061043a6021913960400191505060405180910390fd5b600061012983836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f00000000000000008152506103d7565b600081836103675760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561032c578181015183820152602001610314565b50505050905090810190601f1680156103595780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161037357fe5b0495945050505050565b600081848411156103cf5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561032c578181015183820152602001610314565b505050900390565b600081836104265760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561032c578181015183820152602001610314565b5082848161043057fe5b0694935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122028f06c7d9cd7cfb189f88fab786e5522c01bf35927f90fe2e66738e9cea7786364736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063771602f71461005c578063a391c15b14610091578063b67d77c5146100b4578063c8a4ac9c146100d7578063f43f523a146100fa575b600080fd5b61007f6004803603604081101561007257600080fd5b508035906020013561011d565b60408051918252519081900360200190f35b61007f600480360360408110156100a757600080fd5b5080359060200135610132565b61007f600480360360408110156100ca57600080fd5b508035906020013561013e565b61007f600480360360408110156100ed57600080fd5b508035906020013561014a565b61007f6004803603604081101561011057600080fd5b5080359060200135610156565b60006101298383610162565b90505b92915050565b600061012983836101bc565b600061012983836101fe565b60006101298383610240565b60006101298383610299565b600082820183811015610129576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061012983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506102db565b600061012983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061037d565b60008261024f5750600061012c565b8282028284828161025c57fe5b04146101295760405162461bcd60e51b815260040180806020018281038252602181526020018061043a6021913960400191505060405180910390fd5b600061012983836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f00000000000000008152506103d7565b600081836103675760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561032c578181015183820152602001610314565b50505050905090810190601f1680156103595780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161037357fe5b0495945050505050565b600081848411156103cf5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561032c578181015183820152602001610314565b505050900390565b600081836104265760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561032c578181015183820152602001610314565b5082848161043057fe5b0694935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122028f06c7d9cd7cfb189f88fab786e5522c01bf35927f90fe2e66738e9cea7786364736f6c634300060c0033"}, "abi": [{"type": "function", "name": "add", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "div", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "mod", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "mul", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "sub", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "SignedSafeMathMock": {"contractName": "SignedSafeMathMock", "sourceId": "mocks/SignedSafeMathMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610416806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80634350913814610051578063a5f3c23b14610086578063adefc37b146100a9578063bbe93d91146100cc575b600080fd5b6100746004803603604081101561006757600080fd5b50803590602001356100ef565b60408051918252519081900360200190f35b6100746004803603604081101561009c57600080fd5b5080359060200135610104565b610074600480360360408110156100bf57600080fd5b5080359060200135610110565b610074600480360360408110156100e257600080fd5b508035906020013561011c565b60006100fb8383610128565b90505b92915050565b60006100fb83836101e0565b60006100fb8383610245565b60006100fb83836102aa565b60008161017c576040805162461bcd60e51b815260206004820181905260248201527f5369676e6564536166654d6174683a206469766973696f6e206279207a65726f604482015290519081900360640190fd5b816000191480156101905750600160ff1b83145b156101cc5760405162461bcd60e51b81526004018080602001828103825260218152602001806103756021913960400191505060405180910390fd5b60008284816101d757fe5b05949350505050565b60008282018183128015906101f55750838112155b8061020a575060008312801561020a57508381125b6100fb5760405162461bcd60e51b81526004018080602001828103825260218152602001806103546021913960400191505060405180910390fd5b600081830381831280159061025a5750838113155b8061026f575060008312801561026f57508381135b6100fb5760405162461bcd60e51b81526004018080602001828103825260248152602001806103bd6024913960400191505060405180910390fd5b6000826102b9575060006100fe565b826000191480156102cd5750600160ff1b82145b156103095760405162461bcd60e51b81526004018080602001828103825260278152602001806103966027913960400191505060405180910390fd5b8282028284828161031657fe5b05146100fb5760405162461bcd60e51b81526004018080602001828103825260278152602001806103966027913960400191505060405180910390fdfe5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f775369676e6564536166654d6174683a206469766973696f6e206f766572666c6f775369676e6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775369676e6564536166654d6174683a207375627472616374696f6e206f766572666c6f77a26469706673582212205f0d2d2022cef36fe2b175401834c1e621b5c776a2a3cd47922db686d15b3e5a64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80634350913814610051578063a5f3c23b14610086578063adefc37b146100a9578063bbe93d91146100cc575b600080fd5b6100746004803603604081101561006757600080fd5b50803590602001356100ef565b60408051918252519081900360200190f35b6100746004803603604081101561009c57600080fd5b5080359060200135610104565b610074600480360360408110156100bf57600080fd5b5080359060200135610110565b610074600480360360408110156100e257600080fd5b508035906020013561011c565b60006100fb8383610128565b90505b92915050565b60006100fb83836101e0565b60006100fb8383610245565b60006100fb83836102aa565b60008161017c576040805162461bcd60e51b815260206004820181905260248201527f5369676e6564536166654d6174683a206469766973696f6e206279207a65726f604482015290519081900360640190fd5b816000191480156101905750600160ff1b83145b156101cc5760405162461bcd60e51b81526004018080602001828103825260218152602001806103756021913960400191505060405180910390fd5b60008284816101d757fe5b05949350505050565b60008282018183128015906101f55750838112155b8061020a575060008312801561020a57508381125b6100fb5760405162461bcd60e51b81526004018080602001828103825260218152602001806103546021913960400191505060405180910390fd5b600081830381831280159061025a5750838113155b8061026f575060008312801561026f57508381135b6100fb5760405162461bcd60e51b81526004018080602001828103825260248152602001806103bd6024913960400191505060405180910390fd5b6000826102b9575060006100fe565b826000191480156102cd5750600160ff1b82145b156103095760405162461bcd60e51b81526004018080602001828103825260278152602001806103966027913960400191505060405180910390fd5b8282028284828161031657fe5b05146100fb5760405162461bcd60e51b81526004018080602001828103825260278152602001806103966027913960400191505060405180910390fdfe5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f775369676e6564536166654d6174683a206469766973696f6e206f766572666c6f775369676e6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775369676e6564536166654d6174683a207375627472616374696f6e206f766572666c6f77a26469706673582212205f0d2d2022cef36fe2b175401834c1e621b5c776a2a3cd47922db686d15b3e5a64736f6c634300060c0033"}, "abi": [{"type": "function", "name": "add", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}, {"name": "b", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int256", "internalType": "int256"}]}, {"type": "function", "name": "div", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}, {"name": "b", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int256", "internalType": "int256"}]}, {"type": "function", "name": "mul", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}, {"name": "b", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int256", "internalType": "int256"}]}, {"type": "function", "name": "sub", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}, {"name": "b", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int256", "internalType": "int256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "StringsMock": {"contractName": "StringsMock", "sourceId": "mocks/StringsMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506101e6806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063a2bd364414610030575b600080fd5b61004d6004803603602081101561004657600080fd5b50356100c2565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561008757818101518382015260200161006f565b50505050905090810190601f1680156100b45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60606100cd826100d5565b90505b919050565b6060816100fa57506040805180820190915260018152600360fc1b60208201526100d0565b8160005b811561011257600101600a820491506100fe565b60608167ffffffffffffffff8111801561012b57600080fd5b506040519080825280601f01601f191660200182016040528015610156576020820181803683370190505b50859350905060001982015b83156101a757600a840660300160f81b8282806001900393508151811061018557fe5b60200101906001600160f81b031916908160001a905350600a84049350610162565b5094935050505056fea264697066735822122078a2512f06657dfc0cbcecc25aa7a1ee96c3fa545b22267c3bdefc641200394664736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063a2bd364414610030575b600080fd5b61004d6004803603602081101561004657600080fd5b50356100c2565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561008757818101518382015260200161006f565b50505050905090810190601f1680156100b45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60606100cd826100d5565b90505b919050565b6060816100fa57506040805180820190915260018152600360fc1b60208201526100d0565b8160005b811561011257600101600a820491506100fe565b60608167ffffffffffffffff8111801561012b57600080fd5b506040519080825280601f01601f191660200182016040528015610156576020820181803683370190505b50859350905060001982015b83156101a757600a840660300160f81b8282806001900393508151811061018557fe5b60200101906001600160f81b031916908160001a905350600a84049350610162565b5094935050505056fea264697066735822122078a2512f06657dfc0cbcecc25aa7a1ee96c3fa545b22267c3bdefc641200394664736f6c634300060c0033"}, "abi": [{"type": "function", "name": "fromUint256", "stateMutability": "pure", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "PaymentSplitter": {"contractName": "PaymentSplitter", "sourceId": "payment/PaymentSplitter.sol", "deploymentBytecode": {"bytecode": "0x6080604052604051610ba6380380610ba68339818101604052604081101561002657600080fd5b810190808051604051939291908464010000000082111561004657600080fd5b90830190602082018581111561005b57600080fd5b825186602082028301116401000000008211171561007857600080fd5b82525081516020918201928201910280838360005b838110156100a557818101518382015260200161008d565b50505050905001604052602001805160405193929190846401000000008211156100ce57600080fd5b9083019060208201858111156100e357600080fd5b825186602082028301116401000000008211171561010057600080fd5b82525081516020918201928201910280838360005b8381101561012d578181015183820152602001610115565b50505050905001604052505050805182511461017a5760405162461bcd60e51b8152600401808060200182810382526032815260200180610b496032913960400191505060405180910390fd5b60008251116101d0576040805162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015290519081900360640190fd5b60005b825181101561021a576102128382815181106101eb57fe5b60200260200101518383815181106101ff57fe5b602002602001015161022260201b60201c565b6001016101d3565b50505061042e565b6001600160a01b0382166102675760405162461bcd60e51b815260040180806020018281038252602c815260200180610b1d602c913960400191505060405180910390fd5b600081116102bc576040805162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015290519081900360640190fd5b6001600160a01b038216600090815260026020526040902054156103115760405162461bcd60e51b815260040180806020018281038252602b815260200180610b7b602b913960400191505060405180910390fd5b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260209081526040822083905590546103829183906103cd811b6103fc17901c565b600055604080516001600160a01b03841681526020810183905281517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac929181900390910190a15050565b600082820183811015610427576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6106e08061043d6000396000f3fe6080604052600436106100595760003560e01c806319165587146100ae5780633a98ef39146100e35780638b83209b1461010a5780639852595c14610150578063ce7c2ac214610183578063e33b7de3146101b6576100a9565b366100a9577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100876101cb565b604080516001600160a01b0390921682523460208301528051918290030190a1005b600080fd5b3480156100ba57600080fd5b506100e1600480360360208110156100d157600080fd5b50356001600160a01b03166101cf565b005b3480156100ef57600080fd5b506100f8610390565b60408051918252519081900360200190f35b34801561011657600080fd5b506101346004803603602081101561012d57600080fd5b5035610396565b604080516001600160a01b039092168252519081900360200190f35b34801561015c57600080fd5b506100f86004803603602081101561017357600080fd5b50356001600160a01b03166103c0565b34801561018f57600080fd5b506100f8600480360360208110156101a657600080fd5b50356001600160a01b03166103db565b3480156101c257600080fd5b506100f86103f6565b3390565b6001600160a01b0381166000908152600260205260409020546102235760405162461bcd60e51b81526004018080602001828103825260268152602001806106396026913960400191505060405180910390fd5b600061023a600154476103fc90919063ffffffff16565b6001600160a01b0383166000908152600360209081526040808320548354600290935290832054939450919261028692916102809161027a90879061045f565b906104b8565b906104fa565b9050806102c45760405162461bcd60e51b815260040180806020018281038252602b81526020018061065f602b913960400191505060405180910390fd5b6001600160a01b0383166000908152600360205260409020546102e790826103fc565b6001600160a01b03841660009081526003602052604090205560015461030d90826103fc565b6001556040516001600160a01b0384169082156108fc029083906000818181858888f19350505050158015610346573d6000803e3d6000fd5b50604080516001600160a01b03851681526020810183905281517fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056929181900390910190a1505050565b60005490565b6000600482815481106103a557fe5b6000918252602090912001546001600160a01b031692915050565b6001600160a01b031660009081526003602052604090205490565b6001600160a01b031660009081526002602052604090205490565b60015490565b600082820183811015610456576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b60008261046e57506000610459565b8282028284828161047b57fe5b04146104565760405162461bcd60e51b815260040180806020018281038252602181526020018061068a6021913960400191505060405180910390fd5b600061045683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061053c565b600061045683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506105de565b600081836105c85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561058d578181015183820152602001610575565b50505050905090810190601f1680156105ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816105d457fe5b0495945050505050565b600081848411156106305760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561058d578181015183820152602001610575565b50505090039056fe5061796d656e7453706c69747465723a206163636f756e7420686173206e6f207368617265735061796d656e7453706c69747465723a206163636f756e74206973206e6f7420647565207061796d656e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122077fefd0988797088c52b0bc6a6f07b191c8c1fea545766cef99509ea9782907164736f6c634300060c00335061796d656e7453706c69747465723a206163636f756e7420697320746865207a65726f20616464726573735061796d656e7453706c69747465723a2070617965657320616e6420736861726573206c656e677468206d69736d617463685061796d656e7453706c69747465723a206163636f756e7420616c72656164792068617320736861726573"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100595760003560e01c806319165587146100ae5780633a98ef39146100e35780638b83209b1461010a5780639852595c14610150578063ce7c2ac214610183578063e33b7de3146101b6576100a9565b366100a9577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100876101cb565b604080516001600160a01b0390921682523460208301528051918290030190a1005b600080fd5b3480156100ba57600080fd5b506100e1600480360360208110156100d157600080fd5b50356001600160a01b03166101cf565b005b3480156100ef57600080fd5b506100f8610390565b60408051918252519081900360200190f35b34801561011657600080fd5b506101346004803603602081101561012d57600080fd5b5035610396565b604080516001600160a01b039092168252519081900360200190f35b34801561015c57600080fd5b506100f86004803603602081101561017357600080fd5b50356001600160a01b03166103c0565b34801561018f57600080fd5b506100f8600480360360208110156101a657600080fd5b50356001600160a01b03166103db565b3480156101c257600080fd5b506100f86103f6565b3390565b6001600160a01b0381166000908152600260205260409020546102235760405162461bcd60e51b81526004018080602001828103825260268152602001806106396026913960400191505060405180910390fd5b600061023a600154476103fc90919063ffffffff16565b6001600160a01b0383166000908152600360209081526040808320548354600290935290832054939450919261028692916102809161027a90879061045f565b906104b8565b906104fa565b9050806102c45760405162461bcd60e51b815260040180806020018281038252602b81526020018061065f602b913960400191505060405180910390fd5b6001600160a01b0383166000908152600360205260409020546102e790826103fc565b6001600160a01b03841660009081526003602052604090205560015461030d90826103fc565b6001556040516001600160a01b0384169082156108fc029083906000818181858888f19350505050158015610346573d6000803e3d6000fd5b50604080516001600160a01b03851681526020810183905281517fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056929181900390910190a1505050565b60005490565b6000600482815481106103a557fe5b6000918252602090912001546001600160a01b031692915050565b6001600160a01b031660009081526003602052604090205490565b6001600160a01b031660009081526002602052604090205490565b60015490565b600082820183811015610456576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b60008261046e57506000610459565b8282028284828161047b57fe5b04146104565760405162461bcd60e51b815260040180806020018281038252602181526020018061068a6021913960400191505060405180910390fd5b600061045683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061053c565b600061045683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506105de565b600081836105c85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561058d578181015183820152602001610575565b50505050905090810190601f1680156105ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816105d457fe5b0495945050505050565b600081848411156106305760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561058d578181015183820152602001610575565b50505090039056fe5061796d656e7453706c69747465723a206163636f756e7420686173206e6f207368617265735061796d656e7453706c69747465723a206163636f756e74206973206e6f7420647565207061796d656e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122077fefd0988797088c52b0bc6a6f07b191c8c1fea545766cef99509ea9782907164736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "payable", "inputs": [{"name": "payees", "type": "address[]", "internalType": "address[]"}, {"name": "shares", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "event", "name": "PayeeAdded", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}, {"name": "shares", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "PaymentReceived", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": false}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "PaymentReleased", "inputs": [{"name": "to", "type": "address", "internalType": "address", "indexed": false}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "payee", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "release", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address payable"}], "outputs": []}, {"type": "function", "name": "released", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "shares", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "totalReleased", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "totalShares", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware that the Ether will be split in this way, since it is handled transparently by the contract. The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim an amount proportional to the percentage of total shares they were assigned. `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} function.", "kind": "dev", "methods": {"constructor": {"details": "Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at the matching position in the `shares` array. All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no duplicates in `payees`."}, "payee(uint256)": {"details": "Getter for the address of the payee number `index`."}, "release(address)": {"details": "Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the total shares and their previous withdrawals."}, "released(address)": {"details": "Getter for the amount of Ether already released to a payee."}, "shares(address)": {"details": "Getter for the amount of shares held by an account."}, "totalReleased()": {"details": "Getter for the total amount of Ether already released."}, "totalShares()": {"details": "Getter for the total shares held by payees."}}, "title": "PaymentSplitter", "version": 1}}, "PullPayment": {"contractName": "PullPayment", "sourceId": "payment/PullPayment.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "payments", "stateMutability": "view", "inputs": [{"name": "dest", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "withdrawPayments", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address payable"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Simple implementation of a https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment] strategy, where the paying contract doesn't interact directly with the receiver account, which must withdraw its payments itself. Pull-payments are often considered the best practice when it comes to sending Ether, security-wise. It prevents recipients from blocking execution, and eliminates reentrancy concerns. TIP: If you would like to learn more about reentrancy and alternative ways to protect against it, check out our blog post https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. To use, derive from the `PullPayment` contract, and use {_asyncTransfer} instead of Solidity's `transfer` function. Payees can query their due payments with {payments}, and retrieve them with {withdrawPayments}.", "kind": "dev", "methods": {"payments(address)": {"details": "Returns the payments owed to an address.", "params": {"dest": "The creditor's address."}}, "withdrawPayments(address)": {"details": "Withdraw accumulated payments, forwarding all gas to the recipient. Note that _any_ account can call this function, not just the `payee`. This means that contracts unaware of the `PullPayment` protocol can still receive funds this way, by having a separate account call {withdrawPayments}. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.", "params": {"payee": "Whose payments will be withdrawn."}}}, "version": 1}}, "ConditionalEscrow": {"contractName": "ConditionalEscrow", "sourceId": "payment/escrow/ConditionalEscrow.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Deposited", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Withdrawn", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "deposit", "stateMutability": "payable", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "depositsOf", "stateMutability": "view", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "withdraw", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address payable"}], "outputs": []}, {"type": "function", "name": "withdrawalAllowed", "stateMutability": "view", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Base abstract escrow to only allow withdrawal if a condition is met.Intended usage: See {Escrow}. Same usage guidelines apply here.", "kind": "dev", "methods": {"deposit(address)": {"details": "Stores the sent amount as credit to be withdrawn.", "params": {"payee": "The destination address of the funds."}}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}, "withdraw(address)": {"details": "Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.", "params": {"payee": "The address whose funds will be withdrawn and transferred to."}}, "withdrawalAllowed(address)": {"details": "Returns whether an address is allowed to withdraw their funds. To be implemented by derived contracts.", "params": {"payee": "The destination address of the funds."}}}, "title": "ConditionalEscrow", "version": 1}}, "Escrow": {"contractName": "Escrow", "sourceId": "payment/escrow/Escrow.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6106d28061007d6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461008f5780638da5cb5b146100a4578063e3a9db1a146100d5578063f2fde38b1461011a578063f340fa011461014d575b600080fd5b34801561006657600080fd5b5061008d6004803603602081101561007d57600080fd5b50356001600160a01b0316610173565b005b34801561009b57600080fd5b5061008d610236565b3480156100b057600080fd5b506100b96102d8565b604080516001600160a01b039092168252519081900360200190f35b3480156100e157600080fd5b50610108600480360360208110156100f857600080fd5b50356001600160a01b03166102e7565b60408051918252519081900360200190f35b34801561012657600080fd5b5061008d6004803603602081101561013d57600080fd5b50356001600160a01b0316610302565b61008d6004803603602081101561016357600080fd5b50356001600160a01b03166103fa565b61017b6104cd565b6000546001600160a01b039081169116146101cb576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906101f390826104d1565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b61023e6104cd565b6000546001600160a01b0390811691161461028e576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61030a6104cd565b6000546001600160a01b0390811691161461035a576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811661039f5760405162461bcd60e51b815260040180806020018281038252602681526020018061061d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6104026104cd565b6000546001600160a01b03908116911614610452576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b038116600090815260016020526040902054349061047790826105bb565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b3390565b80471015610526576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610571576040519150601f19603f3d011682016040523d82523d6000602084013e610576565b606091505b50509050806105b65760405162461bcd60e51b815260040180806020018281038252603a815260200180610643603a913960400191505060405180910390fd5b505050565b600082820183811015610615576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d617920686176652072657665727465644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122060e2643f81a8e0f21aa42ec59616844505f30b19f47297c01915f82da599bd7164736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461008f5780638da5cb5b146100a4578063e3a9db1a146100d5578063f2fde38b1461011a578063f340fa011461014d575b600080fd5b34801561006657600080fd5b5061008d6004803603602081101561007d57600080fd5b50356001600160a01b0316610173565b005b34801561009b57600080fd5b5061008d610236565b3480156100b057600080fd5b506100b96102d8565b604080516001600160a01b039092168252519081900360200190f35b3480156100e157600080fd5b50610108600480360360208110156100f857600080fd5b50356001600160a01b03166102e7565b60408051918252519081900360200190f35b34801561012657600080fd5b5061008d6004803603602081101561013d57600080fd5b50356001600160a01b0316610302565b61008d6004803603602081101561016357600080fd5b50356001600160a01b03166103fa565b61017b6104cd565b6000546001600160a01b039081169116146101cb576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906101f390826104d1565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b61023e6104cd565b6000546001600160a01b0390811691161461028e576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61030a6104cd565b6000546001600160a01b0390811691161461035a576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811661039f5760405162461bcd60e51b815260040180806020018281038252602681526020018061061d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6104026104cd565b6000546001600160a01b03908116911614610452576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b038116600090815260016020526040902054349061047790826105bb565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b3390565b80471015610526576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610571576040519150601f19603f3d011682016040523d82523d6000602084013e610576565b606091505b50509050806105b65760405162461bcd60e51b815260040180806020018281038252603a815260200180610643603a913960400191505060405180910390fd5b505050565b600082820183811015610615576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d617920686176652072657665727465644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122060e2643f81a8e0f21aa42ec59616844505f30b19f47297c01915f82da599bd7164736f6c634300060c0033"}, "abi": [{"type": "event", "name": "Deposited", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Withdrawn", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "deposit", "stateMutability": "payable", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "depositsOf", "stateMutability": "view", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "withdraw", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address payable"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Base escrow contract, holds funds designated for a payee until they withdraw them. Intended usage: This contract (and derived escrow contracts) should be a standalone contract, that only interacts with the contract that instantiated it. That way, it is guaranteed that all Ether will be handled according to the `Escrow` rules, and there is no need to check for payable functions or transfers in the inheritance tree. The contract that uses the escrow as its payment method should be its owner, and provide public methods redirecting to the escrow's deposit and withdraw.", "kind": "dev", "methods": {"deposit(address)": {"details": "Stores the sent amount as credit to be withdrawn.", "params": {"payee": "The destination address of the funds."}}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}, "withdraw(address)": {"details": "Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.", "params": {"payee": "The address whose funds will be withdrawn and transferred to."}}}, "title": "Escrow", "version": 1}}, "RefundEscrow": {"contractName": "RefundEscrow", "sourceId": "payment/escrow/RefundEscrow.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50604051610d4f380380610d4f8339818101604052602081101561003357600080fd5b5051600061003f6100fe565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0381166100ce5760405162461bcd60e51b815260040180806020018281038252602d815260200180610d22602d913960400191505060405180910390fd5b6002805460ff196001600160a01b039390931661010002610100600160a81b031990911617919091169055610102565b3390565b610c11806101116000396000f3fe6080604052600436106100a75760003560e01c80638da5cb5b116100645780638da5cb5b146101985780639af6549a146101ad578063c19d93fb146101c2578063e3a9db1a146101f8578063f2fde38b1461023d578063f340fa0114610270576100a7565b806338af3eed146100ac57806343d726d6146100dd57806351cff8d9146100f4578063685ca19414610127578063715018a61461016e5780638c52dc4114610183575b600080fd5b3480156100b857600080fd5b506100c1610296565b604080516001600160a01b039092168252519081900360200190f35b3480156100e957600080fd5b506100f26102aa565b005b34801561010057600080fd5b506100f26004803603602081101561011757600080fd5b50356001600160a01b0316610388565b34801561013357600080fd5b5061015a6004803603602081101561014a57600080fd5b50356001600160a01b03166103d8565b604080519115158252519081900360200190f35b34801561017a57600080fd5b506100f26103f4565b34801561018f57600080fd5b506100f2610496565b3480156101a457600080fd5b506100c1610575565b3480156101b957600080fd5b506100f2610584565b3480156101ce57600080fd5b506101d7610611565b604051808260028111156101e757fe5b815260200191505060405180910390f35b34801561020457600080fd5b5061022b6004803603602081101561021b57600080fd5b50356001600160a01b031661061a565b60408051918252519081900360200190f35b34801561024957600080fd5b506100f26004803603602081101561026057600080fd5b50356001600160a01b0316610635565b6100f26004803603602081101561028657600080fd5b50356001600160a01b031661072d565b60025461010090046001600160a01b031690565b6102b2610785565b6000546001600160a01b03908116911614610302576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b60006002805460ff169081111561031557fe5b146103515760405162461bcd60e51b8152600401808060200182810382526029815260200180610b616029913960400191505060405180910390fd5b6002805460ff1916811790556040517f088672c3a6e342f7cd94a65ba63b79df24a8973927b4d05d803c44bbf787d12f90600090a1565b610391816103d8565b6103cc5760405162461bcd60e51b8152600401808060200182810382526033815260200180610b2e6033913960400191505060405180910390fd5b6103d581610789565b50565b600060016002805460ff16908111156103ed57fe5b1492915050565b6103fc610785565b6000546001600160a01b0390811691161461044c576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61049e610785565b6000546001600160a01b039081169116146104ee576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b60006002805460ff169081111561050157fe5b1461053d5760405162461bcd60e51b8152600401808060200182810382526032815260200180610baa6032913960400191505060405180910390fd5b6002805460ff191660011790556040517f599d8e5a83cffb867d051598c4d70e805d59802d8081c1c7d6dffc5b6aca2b8990600090a1565b6000546001600160a01b031690565b6002805460ff168181111561059557fe5b146105d15760405162461bcd60e51b8152600401808060200182810382526038815260200180610a6b6038913960400191505060405180910390fd5b6002546040516001600160a01b0361010090920491909116904780156108fc02916000818181858888f193505050501580156103d5573d6000803e3d6000fd5b60025460ff1690565b6001600160a01b031660009081526001602052604090205490565b61063d610785565b6000546001600160a01b0390811691161461068d576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b0381166106d25760405162461bcd60e51b8152600401808060200182810382526026815260200180610aa36026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006002805460ff169081111561074057fe5b1461077c5760405162461bcd60e51b815260040180806020018281038252602b815260200180610b03602b913960400191505060405180910390fd5b6103d58161084c565b3390565b610791610785565b6000546001600160a01b039081169116146107e1576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b0381166000818152600160205260408120805491905590610809908261091f565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b610854610785565b6000546001600160a01b039081169116146108a4576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205434906108c99082610a09565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b80471015610974576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d80600081146109bf576040519150601f19603f3d011682016040523d82523d6000602084013e6109c4565b606091505b5050905080610a045760405162461bcd60e51b815260040180806020018281038252603a815260200180610ac9603a913960400191505060405180910390fd5b505050565b600082820183811015610a63576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe526566756e64457363726f773a2062656e65666963696172792063616e206f6e6c79207769746864726177207768696c6520636c6f7365644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564526566756e64457363726f773a2063616e206f6e6c79206465706f736974207768696c6520616374697665436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420616c6c6f77656420746f207769746864726177526566756e64457363726f773a2063616e206f6e6c7920636c6f7365207768696c65206163746976654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526566756e64457363726f773a2063616e206f6e6c7920656e61626c6520726566756e6473207768696c6520616374697665a2646970667358221220e802396d5d04c4121be56023790e2f571f75ff21e20aa50d8bcba5873d62771464736f6c634300060c0033526566756e64457363726f773a2062656e656669636961727920697320746865207a65726f2061646472657373"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100a75760003560e01c80638da5cb5b116100645780638da5cb5b146101985780639af6549a146101ad578063c19d93fb146101c2578063e3a9db1a146101f8578063f2fde38b1461023d578063f340fa0114610270576100a7565b806338af3eed146100ac57806343d726d6146100dd57806351cff8d9146100f4578063685ca19414610127578063715018a61461016e5780638c52dc4114610183575b600080fd5b3480156100b857600080fd5b506100c1610296565b604080516001600160a01b039092168252519081900360200190f35b3480156100e957600080fd5b506100f26102aa565b005b34801561010057600080fd5b506100f26004803603602081101561011757600080fd5b50356001600160a01b0316610388565b34801561013357600080fd5b5061015a6004803603602081101561014a57600080fd5b50356001600160a01b03166103d8565b604080519115158252519081900360200190f35b34801561017a57600080fd5b506100f26103f4565b34801561018f57600080fd5b506100f2610496565b3480156101a457600080fd5b506100c1610575565b3480156101b957600080fd5b506100f2610584565b3480156101ce57600080fd5b506101d7610611565b604051808260028111156101e757fe5b815260200191505060405180910390f35b34801561020457600080fd5b5061022b6004803603602081101561021b57600080fd5b50356001600160a01b031661061a565b60408051918252519081900360200190f35b34801561024957600080fd5b506100f26004803603602081101561026057600080fd5b50356001600160a01b0316610635565b6100f26004803603602081101561028657600080fd5b50356001600160a01b031661072d565b60025461010090046001600160a01b031690565b6102b2610785565b6000546001600160a01b03908116911614610302576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b60006002805460ff169081111561031557fe5b146103515760405162461bcd60e51b8152600401808060200182810382526029815260200180610b616029913960400191505060405180910390fd5b6002805460ff1916811790556040517f088672c3a6e342f7cd94a65ba63b79df24a8973927b4d05d803c44bbf787d12f90600090a1565b610391816103d8565b6103cc5760405162461bcd60e51b8152600401808060200182810382526033815260200180610b2e6033913960400191505060405180910390fd5b6103d581610789565b50565b600060016002805460ff16908111156103ed57fe5b1492915050565b6103fc610785565b6000546001600160a01b0390811691161461044c576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61049e610785565b6000546001600160a01b039081169116146104ee576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b60006002805460ff169081111561050157fe5b1461053d5760405162461bcd60e51b8152600401808060200182810382526032815260200180610baa6032913960400191505060405180910390fd5b6002805460ff191660011790556040517f599d8e5a83cffb867d051598c4d70e805d59802d8081c1c7d6dffc5b6aca2b8990600090a1565b6000546001600160a01b031690565b6002805460ff168181111561059557fe5b146105d15760405162461bcd60e51b8152600401808060200182810382526038815260200180610a6b6038913960400191505060405180910390fd5b6002546040516001600160a01b0361010090920491909116904780156108fc02916000818181858888f193505050501580156103d5573d6000803e3d6000fd5b60025460ff1690565b6001600160a01b031660009081526001602052604090205490565b61063d610785565b6000546001600160a01b0390811691161461068d576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b0381166106d25760405162461bcd60e51b8152600401808060200182810382526026815260200180610aa36026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006002805460ff169081111561074057fe5b1461077c5760405162461bcd60e51b815260040180806020018281038252602b815260200180610b03602b913960400191505060405180910390fd5b6103d58161084c565b3390565b610791610785565b6000546001600160a01b039081169116146107e1576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b0381166000818152600160205260408120805491905590610809908261091f565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b610854610785565b6000546001600160a01b039081169116146108a4576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205434906108c99082610a09565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b80471015610974576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d80600081146109bf576040519150601f19603f3d011682016040523d82523d6000602084013e6109c4565b606091505b5050905080610a045760405162461bcd60e51b815260040180806020018281038252603a815260200180610ac9603a913960400191505060405180910390fd5b505050565b600082820183811015610a63576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe526566756e64457363726f773a2062656e65666963696172792063616e206f6e6c79207769746864726177207768696c6520636c6f7365644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564526566756e64457363726f773a2063616e206f6e6c79206465706f736974207768696c6520616374697665436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420616c6c6f77656420746f207769746864726177526566756e64457363726f773a2063616e206f6e6c7920636c6f7365207768696c65206163746976654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526566756e64457363726f773a2063616e206f6e6c7920656e61626c6520726566756e6473207768696c6520616374697665a2646970667358221220e802396d5d04c4121be56023790e2f571f75ff21e20aa50d8bcba5873d62771464736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "beneficiary", "type": "address", "internalType": "address payable"}]}, {"type": "event", "name": "Deposited", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RefundsClosed", "inputs": [], "anonymous": false}, {"type": "event", "name": "RefundsEnabled", "inputs": [], "anonymous": false}, {"type": "event", "name": "Withdrawn", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "beneficiary", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "beneficiaryWithdraw", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "close", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "deposit", "stateMutability": "payable", "inputs": [{"name": "refundee", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "depositsOf", "stateMutability": "view", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "enableRefunds", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "enum RefundEscrow.State"}]}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "withdraw", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address payable"}], "outputs": []}, {"type": "function", "name": "withdrawalAllowed", "stateMutability": "view", "inputs": [{"name": "", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Escrow that holds funds for a beneficiary, deposited from multiple parties.Intended usage: See {Escrow}. Same usage guidelines apply here.The owner account (that is, the contract that instantiates this contract) may deposit, close the deposit period, and allow for either withdrawal by the beneficiary, or refunds to the depositors. All interactions with `RefundEscrow` will be made through the owner contract.", "kind": "dev", "methods": {"beneficiary()": {"returns": {"_0": "The beneficiary of the escrow."}}, "beneficiaryWithdraw()": {"details": "Withdraws the beneficiary's funds."}, "close()": {"details": "Allows for the beneficiary to withdraw their funds, rejecting further deposits."}, "constructor": {"details": "Constructor.", "params": {"beneficiary": "The beneficiary of the deposits."}}, "deposit(address)": {"details": "Stores funds that may later be refunded.", "params": {"refundee": "The address funds will be sent to if a refund occurs."}}, "enableRefunds()": {"details": "Allows for refunds to take place, rejecting further deposits."}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "state()": {"returns": {"_0": "The current state of the escrow."}}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}, "withdraw(address)": {"details": "Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.", "params": {"payee": "The address whose funds will be withdrawn and transferred to."}}, "withdrawalAllowed(address)": {"details": "Returns whether refundees can withdraw their deposits (be refunded). The overridden function receives a 'payee' argument, but we ignore it here since the condition is global, not per-payee."}}, "title": "RefundEscrow", "version": 1}}, "ERC1155PresetMinterPauser": {"contractName": "ERC1155PresetMinterPauser", "sourceId": "presets/ERC1155PresetMinterPauser.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b506040516200328c3803806200328c833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052508291506200010290506301ffc9a760e01b620001b7565b6200010d816200023f565b6200011f636cdb3d1360e11b620001b7565b620001316303a24d0760e21b620001b7565b506005805460ff191690556200015260006200014c62000258565b6200025c565b620001817f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66200014c62000258565b620001b07f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6200014c62000258565b50620003fe565b6001600160e01b0319808216141562000217576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b80516200025490600490602084019062000362565b5050565b3390565b620002548282600082815260208181526040909120620002879183906200193e620002db821b17901c565b1562000254576200029762000258565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620002f2836001600160a01b038416620002fb565b90505b92915050565b60006200030983836200034a565b6200034157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620002f5565b506000620002f5565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003a557805160ff1916838001178555620003d5565b82800160010185558215620003d5579182015b82811115620003d5578251825591602001919060010190620003b8565b50620003e3929150620003e7565b5090565b5b80821115620003e35760008155600101620003e8565b612e7e806200040e6000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c8063731133e9116100de578063ca15c87311610097578063e63ab1e911610071578063e63ab1e914610ae2578063e985e9c514610aea578063f242432a14610b18578063f5298aca14610be157610172565b8063ca15c87314610a91578063d539139314610aae578063d547741f14610ab657610172565b8063731133e9146109285780638456cb59146109e85780639010d07c146109f057806391d1485414610a2f578063a217fddf14610a5b578063a22cb46514610a6357610172565b80632f2ff15d116101305780632f2ff15d1461061a57806336568abe146106465780633f4ba83a146106725780634e1273f41461067a5780635c975abb146107ed5780636b20c454146107f557610172565b8062fdd58e1461017757806301ffc9a7146101b55780630e89341c146101f05780631f7fdffa14610282578063248a9ca31461043c5780632eb2c2d614610459575b600080fd5b6101a36004803603604081101561018d57600080fd5b506001600160a01b038135169060200135610c13565b60408051918252519081900360200190f35b6101dc600480360360208110156101cb57600080fd5b50356001600160e01b031916610c85565b604080519115158252519081900360200190f35b61020d6004803603602081101561020657600080fd5b5035610ca4565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561024757818101518382015260200161022f565b50505050905090810190601f1680156102745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61043a6004803603608081101561029857600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102c257600080fd5b8201836020820111156102d457600080fd5b803590602001918460208302840111600160201b831117156102f557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460208302840111600160201b8311171561037757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103c657600080fd5b8201836020820111156103d857600080fd5b803590602001918460018302840111600160201b831117156103f957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d3c945050505050565b005b6101a36004803603602081101561045257600080fd5b5035610dba565b61043a600480360360a081101561046f57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104a257600080fd5b8201836020820111156104b457600080fd5b803590602001918460208302840111600160201b831117156104d557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561052457600080fd5b82018360208201111561053657600080fd5b803590602001918460208302840111600160201b8311171561055757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105a657600080fd5b8201836020820111156105b857600080fd5b803590602001918460018302840111600160201b831117156105d957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610dcf945050505050565b61043a6004803603604081101561063057600080fd5b50803590602001356001600160a01b03166110d2565b61043a6004803603604081101561065c57600080fd5b50803590602001356001600160a01b0316611139565b61043a61119a565b61079d6004803603604081101561069057600080fd5b810190602081018135600160201b8111156106aa57600080fd5b8201836020820111156106bc57600080fd5b803590602001918460208302840111600160201b831117156106dd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561072c57600080fd5b82018360208201111561073e57600080fd5b803590602001918460208302840111600160201b8311171561075f57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061120b945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156107d95781810151838201526020016107c1565b505050509050019250505060405180910390f35b6101dc611389565b61043a6004803603606081101561080b57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561083557600080fd5b82018360208201111561084757600080fd5b803590602001918460208302840111600160201b8311171561086857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156108b757600080fd5b8201836020820111156108c957600080fd5b803590602001918460208302840111600160201b831117156108ea57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611393945050505050565b61043a6004803603608081101561093e57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561097457600080fd5b82018360208201111561098657600080fd5b803590602001918460018302840111600160201b831117156109a757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061140c945050505050565b61043a61147f565b610a1360048036036040811015610a0657600080fd5b50803590602001356114ee565b604080516001600160a01b039092168252519081900360200190f35b6101dc60048036036040811015610a4557600080fd5b50803590602001356001600160a01b031661150d565b6101a3611525565b61043a60048036036040811015610a7957600080fd5b506001600160a01b038135169060200135151561152a565b6101a360048036036020811015610aa757600080fd5b5035611619565b6101a3611630565b61043a60048036036040811015610acc57600080fd5b50803590602001356001600160a01b0316611654565b6101a36116ad565b6101dc60048036036040811015610b0057600080fd5b506001600160a01b03813581169160200135166116d1565b61043a600480360360a0811015610b2e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610b6d57600080fd5b820183602082011115610b7f57600080fd5b803590602001918460018302840111600160201b83111715610ba057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506116ff945050505050565b61043a60048036036060811015610bf757600080fd5b506001600160a01b0381351690602081013590604001356118ca565b60006001600160a01b038316610c5a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612b2a602b913960400191505060405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b6001600160e01b03191660009081526001602052604090205460ff1690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d305780601f10610d0557610100808354040283529160200191610d30565b820191906000526020600020905b815481529060010190602001808311610d1357829003601f168201915b50505050509050919050565b610d6d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d68611953565b61150d565b610da85760405162461bcd60e51b8152600401808060200182810382526038815260200180612ca96038913960400191505060405180910390fd5b610db484848484611957565b50505050565b60009081526020819052604090206002015490565b8151835114610e0f5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b6001600160a01b038416610e545760405162461bcd60e51b8152600401808060200182810382526025815260200180612c2f6025913960400191505060405180910390fd5b610e5c611953565b6001600160a01b0316856001600160a01b03161480610e875750610e8785610e82611953565b6116d1565b610ec25760405162461bcd60e51b8152600401808060200182810382526032815260200180612c546032913960400191505060405180910390fd5b6000610ecc611953565b9050610edc818787878787611bac565b60005b8451811015610fe2576000858281518110610ef657fe5b602002602001015190506000858381518110610f0e57fe5b60200260200101519050610f7b816040518060600160405280602a8152602001612ce1602a91396002600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611bba9092919063ffffffff16565b60008381526002602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610fb29082611c51565b60009283526002602090815260408085206001600160a01b038c1686529091529092209190915550600101610edf565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611068578181015183820152602001611050565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156110a757818101518382015260200161108f565b5050505090500194505050505060405180910390a46110ca818787878787611cab565b505050505050565b6000828152602081905260409020600201546110f090610d68611953565b61112b5760405162461bcd60e51b815260040180806020018281038252602f815260200180612afb602f913960400191505060405180910390fd5b6111358282611f2a565b5050565b611141611953565b6001600160a01b0316816001600160a01b0316146111905760405162461bcd60e51b815260040180806020018281038252602f815260200180612e1a602f913960400191505060405180910390fd5b6111358282611f93565b6111c67f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d68611953565b6112015760405162461bcd60e51b815260040180806020018281038252603b815260200180612d0b603b913960400191505060405180910390fd5b611209611ffc565b565b6060815183511461124d5760405162461bcd60e51b8152600401808060200182810382526029815260200180612da86029913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561126757600080fd5b50604051908082528060200260200182016040528015611291578160200160208202803683370190505b50905060005b84518110156113815760006001600160a01b03168582815181106112b757fe5b60200260200101516001600160a01b031614156113055760405162461bcd60e51b8152600401808060200182810382526031815260200180612b556031913960400191505060405180910390fd5b6002600085838151811061131557fe5b60200260200101518152602001908152602001600020600086838151811061133957fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061136e57fe5b6020908102919091010152600101611297565b509392505050565b60055460ff165b90565b61139b611953565b6001600160a01b0316836001600160a01b031614806113c157506113c183610e82611953565b6113fc5760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b61140783838361209a565b505050565b6114387f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d68611953565b6114735760405162461bcd60e51b8152600401808060200182810382526038815260200180612ca96038913960400191505060405180910390fd5b610db484848484612308565b6114ab7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d68611953565b6114e65760405162461bcd60e51b8152600401808060200182810382526039815260200180612d466039913960400191505060405180910390fd5b611209612409565b6000828152602081905260408120611506908361248a565b9392505050565b60008281526020819052604081206115069083612496565b600081565b816001600160a01b031661153c611953565b6001600160a01b031614156115825760405162461bcd60e51b8152600401808060200182810382526029815260200180612d7f6029913960400191505060405180910390fd5b806003600061158f611953565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556115d3611953565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6000818152602081905260408120610c7f906124ab565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461167290610d68611953565b6111905760405162461bcd60e51b8152600401808060200182810382526030815260200180612bff6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166117445760405162461bcd60e51b8152600401808060200182810382526025815260200180612c2f6025913960400191505060405180910390fd5b61174c611953565b6001600160a01b0316856001600160a01b03161480611772575061177285610e82611953565b6117ad5760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b60006117b7611953565b90506117d78187876117c8886124b6565b6117d1886124b6565b87611bac565b61181e836040518060600160405280602a8152602001612ce1602a913960008781526002602090815260408083206001600160a01b038d1684529091529020549190611bba565b60008581526002602090815260408083206001600160a01b038b811685529252808320939093558716815220546118559084611c51565b60008581526002602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46110ca8187878787876124fa565b6118d2611953565b6001600160a01b0316836001600160a01b031614806118f857506118f883610e82611953565b6119335760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b61140783838361266b565b6000611506836001600160a01b03841661279e565b3390565b6001600160a01b03841661199c5760405162461bcd60e51b8152600401808060200182810382526021815260200180612df96021913960400191505060405180910390fd5b81518351146119dc5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b60006119e6611953565b90506119f781600087878787611bac565b60005b8451811015611abb57611a7260026000878481518110611a1657fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002054858381518110611a5c57fe5b6020026020010151611c5190919063ffffffff16565b60026000878481518110611a8257fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b1682529092529020556001016119fa565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611b42578181015183820152602001611b2a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611b81578181015183820152602001611b69565b5050505090500194505050505060405180910390a4611ba581600087878787611cab565b5050505050565b6110ca8686868686866127e8565b60008184841115611c495760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c0e578181015183820152602001611bf6565b50505050905090810190601f168015611c3b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611506576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b611cbd846001600160a01b031661283a565b156110ca57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611d4b578181015183820152602001611d33565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611d8a578181015183820152602001611d72565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015611dc6578181015183820152602001611dae565b50505050905090810190601f168015611df35780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015611e1857600080fd5b505af1925050508015611e3d57506040513d6020811015611e3857600080fd5b505160015b611ed257611e496129d7565b80611e545750611e9b565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315611c0e578181015183820152602001611bf6565b60405162461bcd60e51b8152600401808060200182810382526034815260200180612a7d6034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b14611f215760405162461bcd60e51b8152600401808060200182810382526028815260200180612ad36028913960400191505060405180910390fd5b50505050505050565b6000828152602081905260409020611f42908261193e565b1561113557611f4f611953565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611fab9082612876565b1561113557611fb8611953565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60055460ff1661204a576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61207d611953565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b0383166120df5760405162461bcd60e51b8152600401808060200182810382526023815260200180612c866023913960400191505060405180910390fd5b805182511461211f5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b6000612129611953565b905061214981856000868660405180602001604052806000815250611bac565b60005b8351811015612227576121de83828151811061216457fe5b6020026020010151604051806060016040528060248152602001612b86602491396002600088868151811061219557fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002054611bba9092919063ffffffff16565b600260008684815181106121ee57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a16825290925290205560010161214c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156122ae578181015183820152602001612296565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156122ed5781810151838201526020016122d5565b5050505090500194505050505060405180910390a450505050565b6001600160a01b03841661234d5760405162461bcd60e51b8152600401808060200182810382526021815260200180612df96021913960400191505060405180910390fd5b6000612357611953565b9050612369816000876117c8886124b6565b60008481526002602090815260408083206001600160a01b03891684529091529020546123969084611c51565b60008581526002602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4611ba5816000878787876124fa565b60055460ff1615612454576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861207d611953565b6000611506838361288b565b6000611506836001600160a01b0384166128ef565b6000610c7f82612907565b6040805160018082528183019092526060918291906020808301908036833701905050905082816000815181106124e957fe5b602090810291909101015292915050565b61250c846001600160a01b031661283a565b156110ca57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561259b578181015183820152602001612583565b50505050905090810190601f1680156125c85780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156125eb57600080fd5b505af192505050801561261057506040513d602081101561260b57600080fd5b505160015b61261c57611e496129d7565b6001600160e01b0319811663f23a6e6160e01b14611f215760405162461bcd60e51b8152600401808060200182810382526028815260200180612ad36028913960400191505060405180910390fd5b6001600160a01b0383166126b05760405162461bcd60e51b8152600401808060200182810382526023815260200180612c866023913960400191505060405180910390fd5b60006126ba611953565b90506126ea818560006126cc876124b6565b6126d5876124b6565b60405180602001604052806000815250611bac565b61273182604051806060016040528060248152602001612b866024913960008681526002602090815260408083206001600160a01b038b1684529091529020549190611bba565b60008481526002602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b60006127aa83836128ef565b6127e057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c7f565b506000610c7f565b6127f68686868686866110ca565b6127fe611389565b156110ca5760405162461bcd60e51b815260040180806020018281038252602c815260200180612baa602c913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061286e57508115155b949350505050565b6000611506836001600160a01b03841661290b565b815460009082106128cd5760405162461bcd60e51b8152600401808060200182810382526022815260200180612ab16022913960400191505060405180910390fd5b8260000182815481106128dc57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156129c7578354600019808301919081019060009087908390811061293e57fe5b906000526020600020015490508087600001848154811061295b57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061298b57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610c7f565b6000915050610c7f565b60e01c90565b600060443d10156129e757611390565b600481823e6308c379a06129fb82516129d1565b14612a0557611390565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715612a355750505050611390565b82840192508251915080821115612a4f5750505050611390565b503d83016020828401011115612a6757505050611390565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135355072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e74455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e7061757365455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f207061757365455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122014791542c098a0d16874a7445ca33074bd9df8dd8d684c3a1adad413737a5a6364736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101725760003560e01c8063731133e9116100de578063ca15c87311610097578063e63ab1e911610071578063e63ab1e914610ae2578063e985e9c514610aea578063f242432a14610b18578063f5298aca14610be157610172565b8063ca15c87314610a91578063d539139314610aae578063d547741f14610ab657610172565b8063731133e9146109285780638456cb59146109e85780639010d07c146109f057806391d1485414610a2f578063a217fddf14610a5b578063a22cb46514610a6357610172565b80632f2ff15d116101305780632f2ff15d1461061a57806336568abe146106465780633f4ba83a146106725780634e1273f41461067a5780635c975abb146107ed5780636b20c454146107f557610172565b8062fdd58e1461017757806301ffc9a7146101b55780630e89341c146101f05780631f7fdffa14610282578063248a9ca31461043c5780632eb2c2d614610459575b600080fd5b6101a36004803603604081101561018d57600080fd5b506001600160a01b038135169060200135610c13565b60408051918252519081900360200190f35b6101dc600480360360208110156101cb57600080fd5b50356001600160e01b031916610c85565b604080519115158252519081900360200190f35b61020d6004803603602081101561020657600080fd5b5035610ca4565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561024757818101518382015260200161022f565b50505050905090810190601f1680156102745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61043a6004803603608081101561029857600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102c257600080fd5b8201836020820111156102d457600080fd5b803590602001918460208302840111600160201b831117156102f557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460208302840111600160201b8311171561037757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103c657600080fd5b8201836020820111156103d857600080fd5b803590602001918460018302840111600160201b831117156103f957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d3c945050505050565b005b6101a36004803603602081101561045257600080fd5b5035610dba565b61043a600480360360a081101561046f57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104a257600080fd5b8201836020820111156104b457600080fd5b803590602001918460208302840111600160201b831117156104d557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561052457600080fd5b82018360208201111561053657600080fd5b803590602001918460208302840111600160201b8311171561055757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105a657600080fd5b8201836020820111156105b857600080fd5b803590602001918460018302840111600160201b831117156105d957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610dcf945050505050565b61043a6004803603604081101561063057600080fd5b50803590602001356001600160a01b03166110d2565b61043a6004803603604081101561065c57600080fd5b50803590602001356001600160a01b0316611139565b61043a61119a565b61079d6004803603604081101561069057600080fd5b810190602081018135600160201b8111156106aa57600080fd5b8201836020820111156106bc57600080fd5b803590602001918460208302840111600160201b831117156106dd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561072c57600080fd5b82018360208201111561073e57600080fd5b803590602001918460208302840111600160201b8311171561075f57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061120b945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156107d95781810151838201526020016107c1565b505050509050019250505060405180910390f35b6101dc611389565b61043a6004803603606081101561080b57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561083557600080fd5b82018360208201111561084757600080fd5b803590602001918460208302840111600160201b8311171561086857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156108b757600080fd5b8201836020820111156108c957600080fd5b803590602001918460208302840111600160201b831117156108ea57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611393945050505050565b61043a6004803603608081101561093e57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561097457600080fd5b82018360208201111561098657600080fd5b803590602001918460018302840111600160201b831117156109a757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061140c945050505050565b61043a61147f565b610a1360048036036040811015610a0657600080fd5b50803590602001356114ee565b604080516001600160a01b039092168252519081900360200190f35b6101dc60048036036040811015610a4557600080fd5b50803590602001356001600160a01b031661150d565b6101a3611525565b61043a60048036036040811015610a7957600080fd5b506001600160a01b038135169060200135151561152a565b6101a360048036036020811015610aa757600080fd5b5035611619565b6101a3611630565b61043a60048036036040811015610acc57600080fd5b50803590602001356001600160a01b0316611654565b6101a36116ad565b6101dc60048036036040811015610b0057600080fd5b506001600160a01b03813581169160200135166116d1565b61043a600480360360a0811015610b2e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610b6d57600080fd5b820183602082011115610b7f57600080fd5b803590602001918460018302840111600160201b83111715610ba057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506116ff945050505050565b61043a60048036036060811015610bf757600080fd5b506001600160a01b0381351690602081013590604001356118ca565b60006001600160a01b038316610c5a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612b2a602b913960400191505060405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b6001600160e01b03191660009081526001602052604090205460ff1690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d305780601f10610d0557610100808354040283529160200191610d30565b820191906000526020600020905b815481529060010190602001808311610d1357829003601f168201915b50505050509050919050565b610d6d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d68611953565b61150d565b610da85760405162461bcd60e51b8152600401808060200182810382526038815260200180612ca96038913960400191505060405180910390fd5b610db484848484611957565b50505050565b60009081526020819052604090206002015490565b8151835114610e0f5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b6001600160a01b038416610e545760405162461bcd60e51b8152600401808060200182810382526025815260200180612c2f6025913960400191505060405180910390fd5b610e5c611953565b6001600160a01b0316856001600160a01b03161480610e875750610e8785610e82611953565b6116d1565b610ec25760405162461bcd60e51b8152600401808060200182810382526032815260200180612c546032913960400191505060405180910390fd5b6000610ecc611953565b9050610edc818787878787611bac565b60005b8451811015610fe2576000858281518110610ef657fe5b602002602001015190506000858381518110610f0e57fe5b60200260200101519050610f7b816040518060600160405280602a8152602001612ce1602a91396002600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611bba9092919063ffffffff16565b60008381526002602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610fb29082611c51565b60009283526002602090815260408085206001600160a01b038c1686529091529092209190915550600101610edf565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611068578181015183820152602001611050565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156110a757818101518382015260200161108f565b5050505090500194505050505060405180910390a46110ca818787878787611cab565b505050505050565b6000828152602081905260409020600201546110f090610d68611953565b61112b5760405162461bcd60e51b815260040180806020018281038252602f815260200180612afb602f913960400191505060405180910390fd5b6111358282611f2a565b5050565b611141611953565b6001600160a01b0316816001600160a01b0316146111905760405162461bcd60e51b815260040180806020018281038252602f815260200180612e1a602f913960400191505060405180910390fd5b6111358282611f93565b6111c67f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d68611953565b6112015760405162461bcd60e51b815260040180806020018281038252603b815260200180612d0b603b913960400191505060405180910390fd5b611209611ffc565b565b6060815183511461124d5760405162461bcd60e51b8152600401808060200182810382526029815260200180612da86029913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561126757600080fd5b50604051908082528060200260200182016040528015611291578160200160208202803683370190505b50905060005b84518110156113815760006001600160a01b03168582815181106112b757fe5b60200260200101516001600160a01b031614156113055760405162461bcd60e51b8152600401808060200182810382526031815260200180612b556031913960400191505060405180910390fd5b6002600085838151811061131557fe5b60200260200101518152602001908152602001600020600086838151811061133957fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061136e57fe5b6020908102919091010152600101611297565b509392505050565b60055460ff165b90565b61139b611953565b6001600160a01b0316836001600160a01b031614806113c157506113c183610e82611953565b6113fc5760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b61140783838361209a565b505050565b6114387f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d68611953565b6114735760405162461bcd60e51b8152600401808060200182810382526038815260200180612ca96038913960400191505060405180910390fd5b610db484848484612308565b6114ab7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d68611953565b6114e65760405162461bcd60e51b8152600401808060200182810382526039815260200180612d466039913960400191505060405180910390fd5b611209612409565b6000828152602081905260408120611506908361248a565b9392505050565b60008281526020819052604081206115069083612496565b600081565b816001600160a01b031661153c611953565b6001600160a01b031614156115825760405162461bcd60e51b8152600401808060200182810382526029815260200180612d7f6029913960400191505060405180910390fd5b806003600061158f611953565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556115d3611953565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6000818152602081905260408120610c7f906124ab565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461167290610d68611953565b6111905760405162461bcd60e51b8152600401808060200182810382526030815260200180612bff6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166117445760405162461bcd60e51b8152600401808060200182810382526025815260200180612c2f6025913960400191505060405180910390fd5b61174c611953565b6001600160a01b0316856001600160a01b03161480611772575061177285610e82611953565b6117ad5760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b60006117b7611953565b90506117d78187876117c8886124b6565b6117d1886124b6565b87611bac565b61181e836040518060600160405280602a8152602001612ce1602a913960008781526002602090815260408083206001600160a01b038d1684529091529020549190611bba565b60008581526002602090815260408083206001600160a01b038b811685529252808320939093558716815220546118559084611c51565b60008581526002602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46110ca8187878787876124fa565b6118d2611953565b6001600160a01b0316836001600160a01b031614806118f857506118f883610e82611953565b6119335760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b61140783838361266b565b6000611506836001600160a01b03841661279e565b3390565b6001600160a01b03841661199c5760405162461bcd60e51b8152600401808060200182810382526021815260200180612df96021913960400191505060405180910390fd5b81518351146119dc5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b60006119e6611953565b90506119f781600087878787611bac565b60005b8451811015611abb57611a7260026000878481518110611a1657fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002054858381518110611a5c57fe5b6020026020010151611c5190919063ffffffff16565b60026000878481518110611a8257fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b1682529092529020556001016119fa565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611b42578181015183820152602001611b2a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611b81578181015183820152602001611b69565b5050505090500194505050505060405180910390a4611ba581600087878787611cab565b5050505050565b6110ca8686868686866127e8565b60008184841115611c495760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c0e578181015183820152602001611bf6565b50505050905090810190601f168015611c3b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611506576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b611cbd846001600160a01b031661283a565b156110ca57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611d4b578181015183820152602001611d33565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611d8a578181015183820152602001611d72565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015611dc6578181015183820152602001611dae565b50505050905090810190601f168015611df35780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015611e1857600080fd5b505af1925050508015611e3d57506040513d6020811015611e3857600080fd5b505160015b611ed257611e496129d7565b80611e545750611e9b565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315611c0e578181015183820152602001611bf6565b60405162461bcd60e51b8152600401808060200182810382526034815260200180612a7d6034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b14611f215760405162461bcd60e51b8152600401808060200182810382526028815260200180612ad36028913960400191505060405180910390fd5b50505050505050565b6000828152602081905260409020611f42908261193e565b1561113557611f4f611953565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611fab9082612876565b1561113557611fb8611953565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60055460ff1661204a576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61207d611953565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b0383166120df5760405162461bcd60e51b8152600401808060200182810382526023815260200180612c866023913960400191505060405180910390fd5b805182511461211f5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b6000612129611953565b905061214981856000868660405180602001604052806000815250611bac565b60005b8351811015612227576121de83828151811061216457fe5b6020026020010151604051806060016040528060248152602001612b86602491396002600088868151811061219557fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002054611bba9092919063ffffffff16565b600260008684815181106121ee57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a16825290925290205560010161214c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156122ae578181015183820152602001612296565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156122ed5781810151838201526020016122d5565b5050505090500194505050505060405180910390a450505050565b6001600160a01b03841661234d5760405162461bcd60e51b8152600401808060200182810382526021815260200180612df96021913960400191505060405180910390fd5b6000612357611953565b9050612369816000876117c8886124b6565b60008481526002602090815260408083206001600160a01b03891684529091529020546123969084611c51565b60008581526002602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4611ba5816000878787876124fa565b60055460ff1615612454576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861207d611953565b6000611506838361288b565b6000611506836001600160a01b0384166128ef565b6000610c7f82612907565b6040805160018082528183019092526060918291906020808301908036833701905050905082816000815181106124e957fe5b602090810291909101015292915050565b61250c846001600160a01b031661283a565b156110ca57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561259b578181015183820152602001612583565b50505050905090810190601f1680156125c85780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156125eb57600080fd5b505af192505050801561261057506040513d602081101561260b57600080fd5b505160015b61261c57611e496129d7565b6001600160e01b0319811663f23a6e6160e01b14611f215760405162461bcd60e51b8152600401808060200182810382526028815260200180612ad36028913960400191505060405180910390fd5b6001600160a01b0383166126b05760405162461bcd60e51b8152600401808060200182810382526023815260200180612c866023913960400191505060405180910390fd5b60006126ba611953565b90506126ea818560006126cc876124b6565b6126d5876124b6565b60405180602001604052806000815250611bac565b61273182604051806060016040528060248152602001612b866024913960008681526002602090815260408083206001600160a01b038b1684529091529020549190611bba565b60008481526002602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b60006127aa83836128ef565b6127e057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c7f565b506000610c7f565b6127f68686868686866110ca565b6127fe611389565b156110ca5760405162461bcd60e51b815260040180806020018281038252602c815260200180612baa602c913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061286e57508115155b949350505050565b6000611506836001600160a01b03841661290b565b815460009082106128cd5760405162461bcd60e51b8152600401808060200182810382526022815260200180612ab16022913960400191505060405180910390fd5b8260000182815481106128dc57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156129c7578354600019808301919081019060009087908390811061293e57fe5b906000526020600020015490508087600001848154811061295b57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061298b57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610c7f565b6000915050610c7f565b60e01c90565b600060443d10156129e757611390565b600481823e6308c379a06129fb82516129d1565b14612a0557611390565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715612a355750505050611390565b82840192508251915080821115612a4f5750505050611390565b503d83016020828401011115612a6757505050611390565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135355072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e74455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e7061757365455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f207061757365455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122014791542c098a0d16874a7445ca33074bd9df8dd8d684c3a1adad413737a5a6364736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "uri", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "MINTER_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "PAUSER_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnBatch", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleMember", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getRoleMemberCount", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "mintBatch", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "{ERC1155} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers This contract uses {AccessControl} to lock permissioned functions using the different roles - head to its documentation for details. The account that deploys the contract will be granted the minter and pauser roles, as well as the default admin role, which will let it grant both minter and pauser roles to other accounts.", "kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "constructor": {"details": "Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, and `PAUSER_ROLE` to the account that deploys the contract."}, "getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."}, "getRoleMember(bytes32,uint256)": {"details": "Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."}, "getRoleMemberCount(bytes32)": {"details": "Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "mint(address,uint256,uint256,bytes)": {"details": "Creates `amount` new tokens for `to`, of token type `id`. See {ERC1155-_mint}. Requirements: - the caller must have the `MINTER_ROLE`."}, "mintBatch(address,uint256[],uint256[],bytes)": {"details": "xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}."}, "pause()": {"details": "Pauses all token transfers. See {ERC1155Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "unpause()": {"details": "Unpauses all token transfers. See {ERC1155Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "ERC20PresetMinterPauser": {"contractName": "ERC20PresetMinterPauser", "sourceId": "presets/ERC20PresetMinterPauser.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162001cd238038062001cd2833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001b890600490602085019062000375565b508051620001ce90600590602084019062000375565b50506006805461ff001960ff1990911660121716905550620001fb6000620001f562000261565b62000265565b6200022a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6620001f562000261565b620002597f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a620001f562000261565b505062000411565b3390565b62000271828262000275565b5050565b6000828152602081815260409091206200029a91839062000be7620002ee821b17901c565b156200027157620002aa62000261565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000305836001600160a01b0384166200030e565b90505b92915050565b60006200031c83836200035d565b620003545750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000308565b50600062000308565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003b857805160ff1916838001178555620003e8565b82800160010185558215620003e8579182015b82811115620003e8578251825591602001919060010190620003cb565b50620003f6929150620003fa565b5090565b5b80821115620003f65760008155600101620003fb565b6118b180620004216000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063a457c2d711610097578063d539139311610071578063d53913931461051f578063d547741f14610527578063dd62ed3e14610553578063e63ab1e914610581576101a9565b8063a457c2d7146104aa578063a9059cbb146104d6578063ca15c87314610502576101a9565b80639010d07c116100d35780639010d07c1461042f57806391d148541461046e57806395d89b411461049a578063a217fddf146104a2576101a9565b806370a08231146103d557806379cc6790146103fb5780638456cb5914610427576101a9565b8063313ce567116101665780633f4ba83a116101405780633f4ba83a1461037c57806340c10f191461038457806342966c68146103b05780635c975abb146103cd576101a9565b8063313ce5671461030657806336568abe146103245780633950935114610350576101a9565b806306fdde03146101ae578063095ea7b31461022b57806318160ddd1461026b57806323b872dd14610285578063248a9ca3146102bb5780632f2ff15d146102d8575b600080fd5b6101b6610589565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f05781810151838201526020016101d8565b50505050905090810190601f16801561021d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102576004803603604081101561024157600080fd5b506001600160a01b03813516906020013561061f565b604080519115158252519081900360200190f35b61027361063d565b60408051918252519081900360200190f35b6102576004803603606081101561029b57600080fd5b506001600160a01b03813581169160208101359091169060400135610643565b610273600480360360208110156102d157600080fd5b50356106ca565b610304600480360360408110156102ee57600080fd5b50803590602001356001600160a01b03166106df565b005b61030e61074b565b6040805160ff9092168252519081900360200190f35b6103046004803603604081101561033a57600080fd5b50803590602001356001600160a01b0316610754565b6102576004803603604081101561036657600080fd5b506001600160a01b0381351690602001356107b5565b610304610803565b6103046004803603604081101561039a57600080fd5b506001600160a01b038135169060200135610874565b610304600480360360208110156103c657600080fd5b50356108e5565b6102576108f9565b610273600480360360208110156103eb57600080fd5b50356001600160a01b0316610907565b6103046004803603604081101561041157600080fd5b506001600160a01b038135169060200135610922565b61030461097c565b6104526004803603604081101561044557600080fd5b50803590602001356109eb565b604080516001600160a01b039092168252519081900360200190f35b6102576004803603604081101561048457600080fd5b50803590602001356001600160a01b0316610a0a565b6101b6610a22565b610273610a83565b610257600480360360408110156104c057600080fd5b506001600160a01b038135169060200135610a88565b610257600480360360408110156104ec57600080fd5b506001600160a01b038135169060200135610af0565b6102736004803603602081101561051857600080fd5b5035610b04565b610273610b1b565b6103046004803603604081101561053d57600080fd5b50803590602001356001600160a01b0316610b3f565b6102736004803603604081101561056957600080fd5b506001600160a01b0381358116916020013516610b98565b610273610bc3565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106155780601f106105ea57610100808354040283529160200191610615565b820191906000526020600020905b8154815290600101906020018083116105f857829003601f168201915b5050505050905090565b600061063361062c610bfc565b8484610c00565b5060015b92915050565b60035490565b6000610650848484610cec565b6106c08461065c610bfc565b6106bb856040518060600160405280602881526020016116db602891396001600160a01b038a1660009081526002602052604081209061069a610bfc565b6001600160a01b031681526020810191909152604001600020549190610e49565b610c00565b5060019392505050565b60009081526020819052604090206002015490565b600082815260208190526040902060020154610702906106fd610bfc565b610a0a565b61073d5760405162461bcd60e51b815260040180806020018281038252602f8152602001806115d9602f913960400191505060405180910390fd5b6107478282610ee0565b5050565b60065460ff1690565b61075c610bfc565b6001600160a01b0316816001600160a01b0316146107ab5760405162461bcd60e51b815260040180806020018281038252602f815260200180611823602f913960400191505060405180910390fd5b6107478282610f49565b60006106336107c2610bfc565b846106bb85600260006107d3610bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610fb2565b61082f7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106fd610bfc565b61086a5760405162461bcd60e51b815260040180806020018281038252603981526020018061162a6039913960400191505060405180910390fd5b61087261100c565b565b6108a07f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66106fd610bfc565b6108db5760405162461bcd60e51b81526004018080602001828103825260368152602001806117036036913960400191505060405180910390fd5b61074782826110b0565b6108f66108f0610bfc565b826111a2565b50565b600654610100900460ff1690565b6001600160a01b031660009081526001602052604090205490565b600061095982604051806060016040528060248152602001611739602491396109528661094d610bfc565b610b98565b9190610e49565b905061096d83610967610bfc565b83610c00565b61097783836111a2565b505050565b6109a87f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106fd610bfc565b6109e35760405162461bcd60e51b81526004018080602001828103825260378152602001806117c76037913960400191505060405180910390fd5b61087261129e565b6000828152602081905260408120610a039083611326565b9392505050565b6000828152602081905260408120610a039083611332565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106155780601f106105ea57610100808354040283529160200191610615565b600081565b6000610633610a95610bfc565b846106bb856040518060600160405280602581526020016117fe6025913960026000610abf610bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610e49565b6000610633610afd610bfc565b8484610cec565b600081815260208190526040812061063790611347565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600082815260208190526040902060020154610b5d906106fd610bfc565b6107ab5760405162461bcd60e51b81526004018080602001828103825260308152602001806116ab6030913960400191505060405180910390fd5b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000610a03836001600160a01b038416611352565b3390565b6001600160a01b038316610c455760405162461bcd60e51b81526004018080602001828103825260248152602001806117a36024913960400191505060405180910390fd5b6001600160a01b038216610c8a5760405162461bcd60e51b81526004018080602001828103825260228152602001806116636022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610d315760405162461bcd60e51b815260040180806020018281038252602581526020018061177e6025913960400191505060405180910390fd5b6001600160a01b038216610d765760405162461bcd60e51b81526004018080602001828103825260238152602001806115b66023913960400191505060405180910390fd5b610d8183838361139c565b610dbe81604051806060016040528060268152602001611685602691396001600160a01b0386166000908152600160205260409020549190610e49565b6001600160a01b038085166000908152600160205260408082209390935590841681522054610ded9082610fb2565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610ed85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e9d578181015183820152602001610e85565b50505050905090810190601f168015610eca5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828152602081905260409020610ef89082610be7565b1561074757610f05610bfc565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020610f6190826113a7565b1561074757610f6e610bfc565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600082820183811015610a03576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600654610100900460ff1661105f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6006805461ff00191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611093610bfc565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b03821661110b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6111176000838361139c565b6003546111249082610fb2565b6003556001600160a01b03821660009081526001602052604090205461114a9082610fb2565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166111e75760405162461bcd60e51b815260040180806020018281038252602181526020018061175d6021913960400191505060405180910390fd5b6111f38260008361139c565b61123081604051806060016040528060228152602001611608602291396001600160a01b0385166000908152600160205260409020549190610e49565b6001600160a01b03831660009081526001602052604090205560035461125690826113bc565b6003556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600654610100900460ff16156112ee576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6006805461ff0019166101001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611093610bfc565b6000610a0383836113fe565b6000610a03836001600160a01b038416611462565b60006106378261147a565b600061135e8383611462565b61139457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610637565b506000610637565b61097783838361147e565b6000610a03836001600160a01b0384166114cd565b6000610a0383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e49565b815460009082106114405760405162461bcd60e51b81526004018080602001828103825260228152602001806115946022913960400191505060405180910390fd5b82600001828154811061144f57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b611489838383610977565b6114916108f9565b156109775760405162461bcd60e51b815260040180806020018281038252602a815260200180611852602a913960400191505060405180910390fd5b60008181526001830160205260408120548015611589578354600019808301919081019060009087908390811061150057fe5b906000526020600020015490508087600001848154811061151d57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061154d57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610637565b600091505061063756fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332305072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e706175736545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332305072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e7445524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332305072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20706175736545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c6645524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564a2646970667358221220dadcfa9ab1c0d4c3d09f8e801880a5bb688763af53f4cbb6c7676cb5eecccb0564736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063a457c2d711610097578063d539139311610071578063d53913931461051f578063d547741f14610527578063dd62ed3e14610553578063e63ab1e914610581576101a9565b8063a457c2d7146104aa578063a9059cbb146104d6578063ca15c87314610502576101a9565b80639010d07c116100d35780639010d07c1461042f57806391d148541461046e57806395d89b411461049a578063a217fddf146104a2576101a9565b806370a08231146103d557806379cc6790146103fb5780638456cb5914610427576101a9565b8063313ce567116101665780633f4ba83a116101405780633f4ba83a1461037c57806340c10f191461038457806342966c68146103b05780635c975abb146103cd576101a9565b8063313ce5671461030657806336568abe146103245780633950935114610350576101a9565b806306fdde03146101ae578063095ea7b31461022b57806318160ddd1461026b57806323b872dd14610285578063248a9ca3146102bb5780632f2ff15d146102d8575b600080fd5b6101b6610589565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f05781810151838201526020016101d8565b50505050905090810190601f16801561021d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102576004803603604081101561024157600080fd5b506001600160a01b03813516906020013561061f565b604080519115158252519081900360200190f35b61027361063d565b60408051918252519081900360200190f35b6102576004803603606081101561029b57600080fd5b506001600160a01b03813581169160208101359091169060400135610643565b610273600480360360208110156102d157600080fd5b50356106ca565b610304600480360360408110156102ee57600080fd5b50803590602001356001600160a01b03166106df565b005b61030e61074b565b6040805160ff9092168252519081900360200190f35b6103046004803603604081101561033a57600080fd5b50803590602001356001600160a01b0316610754565b6102576004803603604081101561036657600080fd5b506001600160a01b0381351690602001356107b5565b610304610803565b6103046004803603604081101561039a57600080fd5b506001600160a01b038135169060200135610874565b610304600480360360208110156103c657600080fd5b50356108e5565b6102576108f9565b610273600480360360208110156103eb57600080fd5b50356001600160a01b0316610907565b6103046004803603604081101561041157600080fd5b506001600160a01b038135169060200135610922565b61030461097c565b6104526004803603604081101561044557600080fd5b50803590602001356109eb565b604080516001600160a01b039092168252519081900360200190f35b6102576004803603604081101561048457600080fd5b50803590602001356001600160a01b0316610a0a565b6101b6610a22565b610273610a83565b610257600480360360408110156104c057600080fd5b506001600160a01b038135169060200135610a88565b610257600480360360408110156104ec57600080fd5b506001600160a01b038135169060200135610af0565b6102736004803603602081101561051857600080fd5b5035610b04565b610273610b1b565b6103046004803603604081101561053d57600080fd5b50803590602001356001600160a01b0316610b3f565b6102736004803603604081101561056957600080fd5b506001600160a01b0381358116916020013516610b98565b610273610bc3565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106155780601f106105ea57610100808354040283529160200191610615565b820191906000526020600020905b8154815290600101906020018083116105f857829003601f168201915b5050505050905090565b600061063361062c610bfc565b8484610c00565b5060015b92915050565b60035490565b6000610650848484610cec565b6106c08461065c610bfc565b6106bb856040518060600160405280602881526020016116db602891396001600160a01b038a1660009081526002602052604081209061069a610bfc565b6001600160a01b031681526020810191909152604001600020549190610e49565b610c00565b5060019392505050565b60009081526020819052604090206002015490565b600082815260208190526040902060020154610702906106fd610bfc565b610a0a565b61073d5760405162461bcd60e51b815260040180806020018281038252602f8152602001806115d9602f913960400191505060405180910390fd5b6107478282610ee0565b5050565b60065460ff1690565b61075c610bfc565b6001600160a01b0316816001600160a01b0316146107ab5760405162461bcd60e51b815260040180806020018281038252602f815260200180611823602f913960400191505060405180910390fd5b6107478282610f49565b60006106336107c2610bfc565b846106bb85600260006107d3610bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610fb2565b61082f7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106fd610bfc565b61086a5760405162461bcd60e51b815260040180806020018281038252603981526020018061162a6039913960400191505060405180910390fd5b61087261100c565b565b6108a07f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66106fd610bfc565b6108db5760405162461bcd60e51b81526004018080602001828103825260368152602001806117036036913960400191505060405180910390fd5b61074782826110b0565b6108f66108f0610bfc565b826111a2565b50565b600654610100900460ff1690565b6001600160a01b031660009081526001602052604090205490565b600061095982604051806060016040528060248152602001611739602491396109528661094d610bfc565b610b98565b9190610e49565b905061096d83610967610bfc565b83610c00565b61097783836111a2565b505050565b6109a87f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106fd610bfc565b6109e35760405162461bcd60e51b81526004018080602001828103825260378152602001806117c76037913960400191505060405180910390fd5b61087261129e565b6000828152602081905260408120610a039083611326565b9392505050565b6000828152602081905260408120610a039083611332565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106155780601f106105ea57610100808354040283529160200191610615565b600081565b6000610633610a95610bfc565b846106bb856040518060600160405280602581526020016117fe6025913960026000610abf610bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610e49565b6000610633610afd610bfc565b8484610cec565b600081815260208190526040812061063790611347565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600082815260208190526040902060020154610b5d906106fd610bfc565b6107ab5760405162461bcd60e51b81526004018080602001828103825260308152602001806116ab6030913960400191505060405180910390fd5b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000610a03836001600160a01b038416611352565b3390565b6001600160a01b038316610c455760405162461bcd60e51b81526004018080602001828103825260248152602001806117a36024913960400191505060405180910390fd5b6001600160a01b038216610c8a5760405162461bcd60e51b81526004018080602001828103825260228152602001806116636022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610d315760405162461bcd60e51b815260040180806020018281038252602581526020018061177e6025913960400191505060405180910390fd5b6001600160a01b038216610d765760405162461bcd60e51b81526004018080602001828103825260238152602001806115b66023913960400191505060405180910390fd5b610d8183838361139c565b610dbe81604051806060016040528060268152602001611685602691396001600160a01b0386166000908152600160205260409020549190610e49565b6001600160a01b038085166000908152600160205260408082209390935590841681522054610ded9082610fb2565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610ed85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e9d578181015183820152602001610e85565b50505050905090810190601f168015610eca5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828152602081905260409020610ef89082610be7565b1561074757610f05610bfc565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020610f6190826113a7565b1561074757610f6e610bfc565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600082820183811015610a03576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600654610100900460ff1661105f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6006805461ff00191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611093610bfc565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b03821661110b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6111176000838361139c565b6003546111249082610fb2565b6003556001600160a01b03821660009081526001602052604090205461114a9082610fb2565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166111e75760405162461bcd60e51b815260040180806020018281038252602181526020018061175d6021913960400191505060405180910390fd5b6111f38260008361139c565b61123081604051806060016040528060228152602001611608602291396001600160a01b0385166000908152600160205260409020549190610e49565b6001600160a01b03831660009081526001602052604090205560035461125690826113bc565b6003556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600654610100900460ff16156112ee576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6006805461ff0019166101001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611093610bfc565b6000610a0383836113fe565b6000610a03836001600160a01b038416611462565b60006106378261147a565b600061135e8383611462565b61139457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610637565b506000610637565b61097783838361147e565b6000610a03836001600160a01b0384166114cd565b6000610a0383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e49565b815460009082106114405760405162461bcd60e51b81526004018080602001828103825260228152602001806115946022913960400191505060405180910390fd5b82600001828154811061144f57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b611489838383610977565b6114916108f9565b156109775760405162461bcd60e51b815260040180806020018281038252602a815260200180611852602a913960400191505060405180910390fd5b60008181526001830160205260408120548015611589578354600019808301919081019060009087908390811061150057fe5b906000526020600020015490508087600001848154811061151d57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061154d57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610637565b600091505061063756fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332305072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e706175736545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332305072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e7445524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332305072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20706175736545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c6645524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564a2646970667358221220dadcfa9ab1c0d4c3d09f8e801880a5bb688763af53f4cbb6c7676cb5eecccb0564736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "MINTER_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "PAUSER_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnFrom", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleMember", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getRoleMemberCount", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "{ERC20} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers This contract uses {AccessControl} to lock permissioned functions using the different roles - head to its documentation for details. The account that deploys the contract will be granted the minter and pauser roles, as well as the default admin role, which will let it grant both minter and pauser roles to other accounts.", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "burn(uint256)": {"details": "Destroys `amount` tokens from the caller. See {ERC20-_burn}."}, "burnFrom(address,uint256)": {"details": "Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`."}, "constructor": {"details": "Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the account that deploys the contract. See {ERC20-constructor}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."}, "getRoleMember(bytes32,uint256)": {"details": "Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."}, "getRoleMemberCount(bytes32)": {"details": "Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "mint(address,uint256)": {"details": "Creates `amount` new tokens for `to`. See {ERC20-_mint}. Requirements: - the caller must have the `MINTER_ROLE`."}, "name()": {"details": "Returns the name of the token."}, "pause()": {"details": "Pauses all token transfers. See {ERC20Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}, "unpause()": {"details": "Unpauses all token transfers. See {ERC20Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`."}}, "version": 1}}, "ERC721PresetMinterPauserAutoId": {"contractName": "ERC721PresetMinterPauserAutoId", "sourceId": "presets/ERC721PresetMinterPauserAutoId.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162002cec38038062002cec833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620001bc57600080fd5b908301906020820185811115620001d257600080fd5b8251640100000000811182820188101715620001ed57600080fd5b82525081516020918201929091019080838360005b838110156200021c57818101518382015260200162000202565b50505050905090810190601f1680156200024a5780820380516001836020036101000a031916815260200191505b5060405250849150839050620002676301ffc9a760e01b6200035d565b81516200027c9060079060208501906200050e565b508051620002929060089060208401906200050e565b50620002a56380ac58cd60e01b6200035d565b620002b7635b5e139f60e01b6200035d565b620002c963780e9d6360e01b6200035d565b5050600b805460ff19169055620002eb6000620002e5620003e5565b620003e9565b6200031a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6620002e5620003e5565b620003497f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a620002e5620003e5565b6200035481620003f9565b505050620005aa565b6001600160e01b03198082161415620003bd576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b3390565b620003f582826200040e565b5050565b8051620003f590600a9060208401906200050e565b60008281526020818152604090912062000433918390620012c762000487821b17901c565b15620003f55762000443620003e5565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006200049e836001600160a01b038416620004a7565b90505b92915050565b6000620004b58383620004f6565b620004ed57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620004a1565b506000620004a1565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200055157805160ff191683800117855562000581565b8280016001018555821562000581579182015b828111156200058157825182559160200191906001019062000564565b506200058f92915062000593565b5090565b5b808211156200058f576000815560010162000594565b61273280620005ba6000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80636a6278421161010f578063a22cb465116100a2578063d539139311610071578063d53913931461068b578063d547741f14610693578063e63ab1e9146106bf578063e985e9c5146106c7576101f0565b8063a22cb4651461055d578063b88d4fde1461058b578063c87b56dd14610651578063ca15c8731461066e576101f0565b80639010d07c116100de5780639010d07c146104fe57806391d148541461052157806395d89b411461054d578063a217fddf14610555576101f0565b80636a627842146104a25780636c0360eb146104c857806370a08231146104d05780638456cb59146104f6576101f0565b80632f745c591161018757806342966c681161015657806342966c68146104435780634f6ccce7146104605780635c975abb1461047d5780636352211e14610485576101f0565b80632f745c59146103ad57806336568abe146103d95780633f4ba83a1461040557806342842e0e1461040d576101f0565b806318160ddd116101c357806318160ddd1461031457806323b872dd1461032e578063248a9ca3146103645780632f2ff15d14610381576101f0565b806301ffc9a7146101f557806306fdde0314610230578063081812fc146102ad578063095ea7b3146102e6575b600080fd5b61021c6004803603602081101561020b57600080fd5b50356001600160e01b0319166106f5565b604080519115158252519081900360200190f35b610238610718565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027257818101518382015260200161025a565b50505050905090810190601f16801561029f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102ca600480360360208110156102c357600080fd5b50356107ae565b604080516001600160a01b039092168252519081900360200190f35b610312600480360360408110156102fc57600080fd5b506001600160a01b038135169060200135610810565b005b61031c6108eb565b60408051918252519081900360200190f35b6103126004803603606081101561034457600080fd5b506001600160a01b038135811691602081013590911690604001356108fc565b61031c6004803603602081101561037a57600080fd5b5035610953565b6103126004803603604081101561039757600080fd5b50803590602001356001600160a01b0316610968565b61031c600480360360408110156103c357600080fd5b506001600160a01b0381351690602001356109d4565b610312600480360360408110156103ef57600080fd5b50803590602001356001600160a01b03166109ff565b610312610a60565b6103126004803603606081101561042357600080fd5b506001600160a01b03813581169160208101359091169060400135610ad1565b6103126004803603602081101561045957600080fd5b5035610aec565b61031c6004803603602081101561047657600080fd5b5035610b3e565b61021c610b54565b6102ca6004803603602081101561049b57600080fd5b5035610b5d565b610312600480360360208110156104b857600080fd5b50356001600160a01b0316610b85565b610238610c09565b61031c600480360360208110156104e657600080fd5b50356001600160a01b0316610c6a565b610312610cd2565b6102ca6004803603604081101561051457600080fd5b5080359060200135610d41565b61021c6004803603604081101561053757600080fd5b50803590602001356001600160a01b0316610d59565b610238610d71565b61031c610dd2565b6103126004803603604081101561057357600080fd5b506001600160a01b0381351690602001351515610dd7565b610312600480360360808110156105a157600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156105dc57600080fd5b8201836020820111156105ee57600080fd5b8035906020019184600183028401116401000000008311171561061057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610edc945050505050565b6102386004803603602081101561066757600080fd5b5035610f3a565b61031c6004803603602081101561068457600080fd5b50356111e1565b61031c6111f8565b610312600480360360408110156106a957600080fd5b50803590602001356001600160a01b031661121c565b61031c611275565b61021c600480360360408110156106dd57600080fd5b506001600160a01b0381358116916020013516611299565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b820191906000526020600020905b81548152906001019060200180831161078757829003601f168201915b5050505050905090565b60006107b9826112dc565b6107f45760405162461bcd60e51b815260040180806020018281038252602c81526020018061254b602c913960400191505060405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061081b82610b5d565b9050806001600160a01b0316836001600160a01b0316141561086e5760405162461bcd60e51b81526004018080602001828103825260218152602001806125cf6021913960400191505060405180910390fd5b806001600160a01b03166108806112e9565b6001600160a01b031614806108a157506108a18161089c6112e9565b611299565b6108dc5760405162461bcd60e51b815260040180806020018281038252603881526020018061249e6038913960400191505060405180910390fd5b6108e683836112ed565b505050565b60006108f7600361135b565b905090565b61090d6109076112e9565b82611366565b6109485760405162461bcd60e51b81526004018080602001828103825260318152602001806125f06031913960400191505060405180910390fd5b6108e683838361140a565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461098b906109866112e9565b610d59565b6109c65760405162461bcd60e51b815260040180806020018281038252602f81526020018061237f602f913960400191505060405180910390fd5b6109d08282611556565b5050565b6001600160a01b03821660009081526002602052604081206109f690836115bf565b90505b92915050565b610a076112e9565b6001600160a01b0316816001600160a01b031614610a565760405162461bcd60e51b815260040180806020018281038252602f8152602001806126ce602f913960400191505060405180910390fd5b6109d082826115cb565b610a8c7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109866112e9565b610ac75760405162461bcd60e51b815260040180806020018281038252604081526020018061268e6040913960400191505060405180910390fd5b610acf611634565b565b6108e683838360405180602001604052806000815250610edc565b610af76109076112e9565b610b325760405162461bcd60e51b815260040180806020018281038252603081526020018061265e6030913960400191505060405180910390fd5b610b3b816116d2565b50565b600080610b4c60038461179f565b509392505050565b600b5460ff1690565b60006109f98260405180606001604052806029815260200161250060299139600391906117bb565b610bb17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109866112e9565b610bec5760405162461bcd60e51b815260040180806020018281038252603d815260200180612621603d913960400191505060405180910390fd5b610bff81610bfa600c6117d2565b6117d6565b610b3b600c611904565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b60006001600160a01b038216610cb15760405162461bcd60e51b815260040180806020018281038252602a8152602001806124d6602a913960400191505060405180910390fd5b6001600160a01b03821660009081526002602052604090206109f99061135b565b610cfe7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109866112e9565b610d395760405162461bcd60e51b815260040180806020018281038252603e8152602001806123e0603e913960400191505060405180910390fd5b610acf61190d565b60008281526020819052604081206109f690836115bf565b60008281526020819052604081206109f6908361198e565b60088054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b600081565b610ddf6112e9565b6001600160a01b0316826001600160a01b03161415610e45576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060066000610e526112e9565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610e966112e9565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610eed610ee76112e9565b83611366565b610f285760405162461bcd60e51b81526004018080602001828103825260318152602001806125f06031913960400191505060405180910390fd5b610f34848484846119a3565b50505050565b6060610f45826112dc565b610f805760405162461bcd60e51b815260040180806020018281038252602f8152602001806125a0602f913960400191505060405180910390fd5b60008281526009602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156110155780601f10610fea57610100808354040283529160200191611015565b820191906000526020600020905b815481529060010190602001808311610ff857829003601f168201915b5050600a549394505050506002600019610100600184161502019091160461103e579050610713565b80511561110f57600a8160405160200180838054600181600116156101000203166002900480156110a65780601f106110845761010080835404028352918201916110a6565b820191906000526020600020905b815481529060010190602001808311611092575b5050825160208401908083835b602083106110d25780518252601f1990920191602091820191016110b3565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610713565b600a61111a846119f5565b60405160200180838054600181600116156101000203166002900480156111785780601f10611156576101008083540402835291820191611178565b820191906000526020600020905b815481529060010190602001808311611164575b5050825160208401908083835b602083106111a45780518252601f199092019160209182019101611185565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b60008181526020819052604081206109f99061135b565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461123a906109866112e9565b610a565760405162461bcd60e51b815260040180806020018281038252603081526020018061246e6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b60006109f6836001600160a01b038416611ad0565b60006109f9600383611b1a565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061132282610b5d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006109f9826117d2565b6000611371826112dc565b6113ac5760405162461bcd60e51b815260040180806020018281038252602c815260200180612442602c913960400191505060405180910390fd5b60006113b783610b5d565b9050806001600160a01b0316846001600160a01b031614806113f25750836001600160a01b03166113e7846107ae565b6001600160a01b0316145b8061140257506114028185611299565b949350505050565b826001600160a01b031661141d82610b5d565b6001600160a01b0316146114625760405162461bcd60e51b81526004018080602001828103825260298152602001806125776029913960400191505060405180910390fd5b6001600160a01b0382166114a75760405162461bcd60e51b815260040180806020018281038252602481526020018061241e6024913960400191505060405180910390fd5b6114b2838383611b26565b6114bd6000826112ed565b6001600160a01b03831660009081526002602052604090206114df9082611b31565b506001600160a01b03821660009081526002602052604090206115029082611b3d565b5061150f60038284611b49565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600082815260208190526040902061156e90826112c7565b156109d05761157b6112e9565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006109f68383611b5f565b60008281526020819052604090206115e39082611bc3565b156109d0576115f06112e9565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600b5460ff16611682576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116b56112e9565b604080516001600160a01b039092168252519081900360200190a1565b60006116dd82610b5d565b90506116eb81600084611b26565b6116f66000836112ed565b6000828152600960205260409020546002600019610100600184161502019091160415611734576000828152600960205260408120611734916122d9565b6001600160a01b03811660009081526002602052604090206117569083611b31565b50611762600383611bd8565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806117ae8686611be4565b9097909650945050505050565b60006117c8848484611c5f565b90505b9392505050565b5490565b6001600160a01b038216611831576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61183a816112dc565b1561188c576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b61189860008383611b26565b6001600160a01b03821660009081526002602052604090206118ba9082611b3d565b506118c760038284611b49565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80546001019055565b600b5460ff1615611958576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116b56112e9565b60006109f6836001600160a01b038416611d29565b6119ae84848461140a565b6119ba84848484611d41565b610f345760405162461bcd60e51b81526004018080602001828103825260328152602001806123ae6032913960400191505060405180910390fd5b606081611a1a57506040805180820190915260018152600360fc1b6020820152610713565b8160005b8115611a3257600101600a82049150611a1e565b60608167ffffffffffffffff81118015611a4b57600080fd5b506040519080825280601f01601f191660200182016040528015611a76576020820181803683370190505b50859350905060001982015b8315611ac757600a840660300160f81b82828060019003935081518110611aa557fe5b60200101906001600160f81b031916908160001a905350600a84049350611a82565b50949350505050565b6000611adc8383611d29565b611b12575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109f9565b5060006109f9565b60006109f68383611d29565b6108e6838383611ea9565b60006109f68383611ef8565b60006109f68383611ad0565b60006117c884846001600160a01b038516611fbe565b81546000908210611ba15760405162461bcd60e51b81526004018080602001828103825260228152602001806123326022913960400191505060405180910390fd5b826000018281548110611bb057fe5b9060005260206000200154905092915050565b60006109f6836001600160a01b038416611ef8565b60006109f68383612055565b815460009081908310611c285760405162461bcd60e51b81526004018080602001828103825260228152602001806125296022913960400191505060405180910390fd5b6000846000018481548110611c3957fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611cfa5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611cbf578181015183820152602001611ca7565b50505050905090810190601f168015611cec5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611d0d57fe5b9060005260206000209060020201600101549150509392505050565b60009081526001919091016020526040902054151590565b6000611d55846001600160a01b0316612129565b611d6157506001611402565b6060611e6f630a85bd0160e11b611d766112e9565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611ddd578181015183820152602001611dc5565b50505050905090810190601f168015611e0a5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060600160405280603281526020016123ae603291396001600160a01b0388169190612162565b90506000818060200190516020811015611e8857600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b611eb48383836108e6565b611ebc610b54565b156108e65760405162461bcd60e51b815260040180806020018281038252602b815260200180612354602b913960400191505060405180910390fd5b60008181526001830160205260408120548015611fb45783546000198083019190810190600090879083908110611f2b57fe5b9060005260206000200154905080876000018481548110611f4857fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611f7857fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506109f9565b60009150506109f9565b6000828152600184016020526040812054806120235750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556117cb565b8285600001600183038154811061203657fe5b90600052602060002090600202016001018190555060009150506117cb565b60008181526001830160205260408120548015611fb4578354600019808301919081019060009087908390811061208857fe5b90600052602060002090600202019050808760000184815481106120a857fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806120e757fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506109f99350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611402575050151592915050565b60606117c88484600085606061217785612129565b6121c8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106122075780518252601f1990920191602091820191016121e8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612269576040519150601f19603f3d011682016040523d82523d6000602084013e61226e565b606091505b509150915081156122825791506114029050565b8051156122925780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611cbf578181015183820152602001611ca7565b50805460018160011615610100020316600290046000825580601f106122ff5750610b3b565b601f016020900490600052602060002090810190610b3b91905b8082111561232d5760008155600101612319565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732315061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732315072657365744d696e7465725061757365724175746f49643a206d75737420686176652070617573657220726f6c6520746f2070617573654552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732315072657365744d696e7465725061757365724175746f49643a206d7573742068617665206d696e74657220726f6c6520746f206d696e744552433732314275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732315072657365744d696e7465725061757365724175746f49643a206d75737420686176652070617573657220726f6c6520746f20756e7061757365416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220a07c423f272894369cbdb7205fae979bb86f978788b38935c68cbd00e1fc9e7864736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101f05760003560e01c80636a6278421161010f578063a22cb465116100a2578063d539139311610071578063d53913931461068b578063d547741f14610693578063e63ab1e9146106bf578063e985e9c5146106c7576101f0565b8063a22cb4651461055d578063b88d4fde1461058b578063c87b56dd14610651578063ca15c8731461066e576101f0565b80639010d07c116100de5780639010d07c146104fe57806391d148541461052157806395d89b411461054d578063a217fddf14610555576101f0565b80636a627842146104a25780636c0360eb146104c857806370a08231146104d05780638456cb59146104f6576101f0565b80632f745c591161018757806342966c681161015657806342966c68146104435780634f6ccce7146104605780635c975abb1461047d5780636352211e14610485576101f0565b80632f745c59146103ad57806336568abe146103d95780633f4ba83a1461040557806342842e0e1461040d576101f0565b806318160ddd116101c357806318160ddd1461031457806323b872dd1461032e578063248a9ca3146103645780632f2ff15d14610381576101f0565b806301ffc9a7146101f557806306fdde0314610230578063081812fc146102ad578063095ea7b3146102e6575b600080fd5b61021c6004803603602081101561020b57600080fd5b50356001600160e01b0319166106f5565b604080519115158252519081900360200190f35b610238610718565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027257818101518382015260200161025a565b50505050905090810190601f16801561029f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102ca600480360360208110156102c357600080fd5b50356107ae565b604080516001600160a01b039092168252519081900360200190f35b610312600480360360408110156102fc57600080fd5b506001600160a01b038135169060200135610810565b005b61031c6108eb565b60408051918252519081900360200190f35b6103126004803603606081101561034457600080fd5b506001600160a01b038135811691602081013590911690604001356108fc565b61031c6004803603602081101561037a57600080fd5b5035610953565b6103126004803603604081101561039757600080fd5b50803590602001356001600160a01b0316610968565b61031c600480360360408110156103c357600080fd5b506001600160a01b0381351690602001356109d4565b610312600480360360408110156103ef57600080fd5b50803590602001356001600160a01b03166109ff565b610312610a60565b6103126004803603606081101561042357600080fd5b506001600160a01b03813581169160208101359091169060400135610ad1565b6103126004803603602081101561045957600080fd5b5035610aec565b61031c6004803603602081101561047657600080fd5b5035610b3e565b61021c610b54565b6102ca6004803603602081101561049b57600080fd5b5035610b5d565b610312600480360360208110156104b857600080fd5b50356001600160a01b0316610b85565b610238610c09565b61031c600480360360208110156104e657600080fd5b50356001600160a01b0316610c6a565b610312610cd2565b6102ca6004803603604081101561051457600080fd5b5080359060200135610d41565b61021c6004803603604081101561053757600080fd5b50803590602001356001600160a01b0316610d59565b610238610d71565b61031c610dd2565b6103126004803603604081101561057357600080fd5b506001600160a01b0381351690602001351515610dd7565b610312600480360360808110156105a157600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156105dc57600080fd5b8201836020820111156105ee57600080fd5b8035906020019184600183028401116401000000008311171561061057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610edc945050505050565b6102386004803603602081101561066757600080fd5b5035610f3a565b61031c6004803603602081101561068457600080fd5b50356111e1565b61031c6111f8565b610312600480360360408110156106a957600080fd5b50803590602001356001600160a01b031661121c565b61031c611275565b61021c600480360360408110156106dd57600080fd5b506001600160a01b0381358116916020013516611299565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b820191906000526020600020905b81548152906001019060200180831161078757829003601f168201915b5050505050905090565b60006107b9826112dc565b6107f45760405162461bcd60e51b815260040180806020018281038252602c81526020018061254b602c913960400191505060405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061081b82610b5d565b9050806001600160a01b0316836001600160a01b0316141561086e5760405162461bcd60e51b81526004018080602001828103825260218152602001806125cf6021913960400191505060405180910390fd5b806001600160a01b03166108806112e9565b6001600160a01b031614806108a157506108a18161089c6112e9565b611299565b6108dc5760405162461bcd60e51b815260040180806020018281038252603881526020018061249e6038913960400191505060405180910390fd5b6108e683836112ed565b505050565b60006108f7600361135b565b905090565b61090d6109076112e9565b82611366565b6109485760405162461bcd60e51b81526004018080602001828103825260318152602001806125f06031913960400191505060405180910390fd5b6108e683838361140a565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461098b906109866112e9565b610d59565b6109c65760405162461bcd60e51b815260040180806020018281038252602f81526020018061237f602f913960400191505060405180910390fd5b6109d08282611556565b5050565b6001600160a01b03821660009081526002602052604081206109f690836115bf565b90505b92915050565b610a076112e9565b6001600160a01b0316816001600160a01b031614610a565760405162461bcd60e51b815260040180806020018281038252602f8152602001806126ce602f913960400191505060405180910390fd5b6109d082826115cb565b610a8c7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109866112e9565b610ac75760405162461bcd60e51b815260040180806020018281038252604081526020018061268e6040913960400191505060405180910390fd5b610acf611634565b565b6108e683838360405180602001604052806000815250610edc565b610af76109076112e9565b610b325760405162461bcd60e51b815260040180806020018281038252603081526020018061265e6030913960400191505060405180910390fd5b610b3b816116d2565b50565b600080610b4c60038461179f565b509392505050565b600b5460ff1690565b60006109f98260405180606001604052806029815260200161250060299139600391906117bb565b610bb17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109866112e9565b610bec5760405162461bcd60e51b815260040180806020018281038252603d815260200180612621603d913960400191505060405180910390fd5b610bff81610bfa600c6117d2565b6117d6565b610b3b600c611904565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b60006001600160a01b038216610cb15760405162461bcd60e51b815260040180806020018281038252602a8152602001806124d6602a913960400191505060405180910390fd5b6001600160a01b03821660009081526002602052604090206109f99061135b565b610cfe7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109866112e9565b610d395760405162461bcd60e51b815260040180806020018281038252603e8152602001806123e0603e913960400191505060405180910390fd5b610acf61190d565b60008281526020819052604081206109f690836115bf565b60008281526020819052604081206109f6908361198e565b60088054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b600081565b610ddf6112e9565b6001600160a01b0316826001600160a01b03161415610e45576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060066000610e526112e9565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610e966112e9565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610eed610ee76112e9565b83611366565b610f285760405162461bcd60e51b81526004018080602001828103825260318152602001806125f06031913960400191505060405180910390fd5b610f34848484846119a3565b50505050565b6060610f45826112dc565b610f805760405162461bcd60e51b815260040180806020018281038252602f8152602001806125a0602f913960400191505060405180910390fd5b60008281526009602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156110155780601f10610fea57610100808354040283529160200191611015565b820191906000526020600020905b815481529060010190602001808311610ff857829003601f168201915b5050600a549394505050506002600019610100600184161502019091160461103e579050610713565b80511561110f57600a8160405160200180838054600181600116156101000203166002900480156110a65780601f106110845761010080835404028352918201916110a6565b820191906000526020600020905b815481529060010190602001808311611092575b5050825160208401908083835b602083106110d25780518252601f1990920191602091820191016110b3565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610713565b600a61111a846119f5565b60405160200180838054600181600116156101000203166002900480156111785780601f10611156576101008083540402835291820191611178565b820191906000526020600020905b815481529060010190602001808311611164575b5050825160208401908083835b602083106111a45780518252601f199092019160209182019101611185565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b60008181526020819052604081206109f99061135b565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461123a906109866112e9565b610a565760405162461bcd60e51b815260040180806020018281038252603081526020018061246e6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b60006109f6836001600160a01b038416611ad0565b60006109f9600383611b1a565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061132282610b5d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006109f9826117d2565b6000611371826112dc565b6113ac5760405162461bcd60e51b815260040180806020018281038252602c815260200180612442602c913960400191505060405180910390fd5b60006113b783610b5d565b9050806001600160a01b0316846001600160a01b031614806113f25750836001600160a01b03166113e7846107ae565b6001600160a01b0316145b8061140257506114028185611299565b949350505050565b826001600160a01b031661141d82610b5d565b6001600160a01b0316146114625760405162461bcd60e51b81526004018080602001828103825260298152602001806125776029913960400191505060405180910390fd5b6001600160a01b0382166114a75760405162461bcd60e51b815260040180806020018281038252602481526020018061241e6024913960400191505060405180910390fd5b6114b2838383611b26565b6114bd6000826112ed565b6001600160a01b03831660009081526002602052604090206114df9082611b31565b506001600160a01b03821660009081526002602052604090206115029082611b3d565b5061150f60038284611b49565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600082815260208190526040902061156e90826112c7565b156109d05761157b6112e9565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006109f68383611b5f565b60008281526020819052604090206115e39082611bc3565b156109d0576115f06112e9565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600b5460ff16611682576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116b56112e9565b604080516001600160a01b039092168252519081900360200190a1565b60006116dd82610b5d565b90506116eb81600084611b26565b6116f66000836112ed565b6000828152600960205260409020546002600019610100600184161502019091160415611734576000828152600960205260408120611734916122d9565b6001600160a01b03811660009081526002602052604090206117569083611b31565b50611762600383611bd8565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806117ae8686611be4565b9097909650945050505050565b60006117c8848484611c5f565b90505b9392505050565b5490565b6001600160a01b038216611831576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61183a816112dc565b1561188c576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b61189860008383611b26565b6001600160a01b03821660009081526002602052604090206118ba9082611b3d565b506118c760038284611b49565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80546001019055565b600b5460ff1615611958576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116b56112e9565b60006109f6836001600160a01b038416611d29565b6119ae84848461140a565b6119ba84848484611d41565b610f345760405162461bcd60e51b81526004018080602001828103825260328152602001806123ae6032913960400191505060405180910390fd5b606081611a1a57506040805180820190915260018152600360fc1b6020820152610713565b8160005b8115611a3257600101600a82049150611a1e565b60608167ffffffffffffffff81118015611a4b57600080fd5b506040519080825280601f01601f191660200182016040528015611a76576020820181803683370190505b50859350905060001982015b8315611ac757600a840660300160f81b82828060019003935081518110611aa557fe5b60200101906001600160f81b031916908160001a905350600a84049350611a82565b50949350505050565b6000611adc8383611d29565b611b12575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109f9565b5060006109f9565b60006109f68383611d29565b6108e6838383611ea9565b60006109f68383611ef8565b60006109f68383611ad0565b60006117c884846001600160a01b038516611fbe565b81546000908210611ba15760405162461bcd60e51b81526004018080602001828103825260228152602001806123326022913960400191505060405180910390fd5b826000018281548110611bb057fe5b9060005260206000200154905092915050565b60006109f6836001600160a01b038416611ef8565b60006109f68383612055565b815460009081908310611c285760405162461bcd60e51b81526004018080602001828103825260228152602001806125296022913960400191505060405180910390fd5b6000846000018481548110611c3957fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611cfa5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611cbf578181015183820152602001611ca7565b50505050905090810190601f168015611cec5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611d0d57fe5b9060005260206000209060020201600101549150509392505050565b60009081526001919091016020526040902054151590565b6000611d55846001600160a01b0316612129565b611d6157506001611402565b6060611e6f630a85bd0160e11b611d766112e9565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611ddd578181015183820152602001611dc5565b50505050905090810190601f168015611e0a5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060600160405280603281526020016123ae603291396001600160a01b0388169190612162565b90506000818060200190516020811015611e8857600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b611eb48383836108e6565b611ebc610b54565b156108e65760405162461bcd60e51b815260040180806020018281038252602b815260200180612354602b913960400191505060405180910390fd5b60008181526001830160205260408120548015611fb45783546000198083019190810190600090879083908110611f2b57fe5b9060005260206000200154905080876000018481548110611f4857fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611f7857fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506109f9565b60009150506109f9565b6000828152600184016020526040812054806120235750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556117cb565b8285600001600183038154811061203657fe5b90600052602060002090600202016001018190555060009150506117cb565b60008181526001830160205260408120548015611fb4578354600019808301919081019060009087908390811061208857fe5b90600052602060002090600202019050808760000184815481106120a857fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806120e757fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506109f99350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611402575050151592915050565b60606117c88484600085606061217785612129565b6121c8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106122075780518252601f1990920191602091820191016121e8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612269576040519150601f19603f3d011682016040523d82523d6000602084013e61226e565b606091505b509150915081156122825791506114029050565b8051156122925780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611cbf578181015183820152602001611ca7565b50805460018160011615610100020316600290046000825580601f106122ff5750610b3b565b601f016020900490600052602060002090810190610b3b91905b8082111561232d5760008155600101612319565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732315061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732315072657365744d696e7465725061757365724175746f49643a206d75737420686176652070617573657220726f6c6520746f2070617573654552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732315072657365744d696e7465725061757365724175746f49643a206d7573742068617665206d696e74657220726f6c6520746f206d696e744552433732314275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732315072657365744d696e7465725061757365724175746f49643a206d75737420686176652070617573657220726f6c6520746f20756e7061757365416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220a07c423f272894369cbdb7205fae979bb86f978788b38935c68cbd00e1fc9e7864736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "baseURI", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "MINTER_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "PAUSER_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "baseURI", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleMember", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getRoleMemberCount", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenByIndex", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenOfOwnerByIndex", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "{ERC721} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers - token ID and URI autogeneration This contract uses {AccessControl} to lock permissioned functions using the different roles - head to its documentation for details. The account that deploys the contract will be granted the minter and pauser roles, as well as the default admin role, which will let it grant both minter and pauser roles to other accounts.", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "baseURI()": {"details": "Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."}, "burn(uint256)": {"details": "Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator."}, "constructor": {"details": "Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the account that deploys the contract. Token URIs will be autogenerated based on `baseURI` and their token IDs. See {ERC721-tokenURI}."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."}, "getRoleMember(bytes32,uint256)": {"details": "Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."}, "getRoleMemberCount(bytes32)": {"details": "Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "mint(address)": {"details": "Creates a new token for `to`. Its token ID will be automatically assigned (and available on the emitted {IERC721-Transfer} event), and the token URI autogenerated based on the base URI passed at construction. See {ERC721-_mint}. Requirements: - the caller must have the `MINTER_ROLE`."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "pause()": {"details": "Pauses all token transfers. See {ERC721Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenByIndex(uint256)": {"details": "See {IERC721Enumerable-tokenByIndex}."}, "tokenOfOwnerByIndex(address,uint256)": {"details": "See {IERC721Enumerable-tokenOfOwnerByIndex}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "totalSupply()": {"details": "See {IERC721Enumerable-totalSupply}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}, "unpause()": {"details": "Unpauses all token transfers. See {ERC721Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`."}}, "version": 1}}, "ERC1155": {"contractName": "ERC1155", "sourceId": "token/ERC1155/ERC1155.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b506040516200192738038062001927833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052506200010191506301ffc9a760e01b905062000137565b6200010c81620001bc565b6200011e636cdb3d1360e11b62000137565b620001306303a24d0760e21b62000137565b5062000271565b6001600160e01b0319808216141562000197576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001d1906003906020840190620001d5565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200021857805160ff191683800117855562000248565b8280016001018555821562000248579182015b82811115620002485782518255916020019190600101906200022b565b50620002569291506200025a565b5090565b5b808211156200025657600081556001016200025b565b6116a680620002816000396000f3fe608060405234801561001057600080fd5b50600436106100875760003560e01c80634e1273f41161005b5780634e1273f41461035a578063a22cb465146104cd578063e985e9c5146104fb578063f242432a1461052957610087565b8062fdd58e1461008c57806301ffc9a7146100ca5780630e89341c146101055780632eb2c2d614610197575b600080fd5b6100b8600480360360408110156100a257600080fd5b506001600160a01b0381351690602001356105f2565b60408051918252519081900360200190f35b6100f1600480360360208110156100e057600080fd5b50356001600160e01b031916610661565b604080519115158252519081900360200190f35b6101226004803603602081101561011b57600080fd5b5035610680565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015c578181015183820152602001610144565b50505050905090810190601f1680156101895780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610358600480360360a08110156101ad57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156101e057600080fd5b8201836020820111156101f257600080fd5b803590602001918460208302840111600160201b8311171561021357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561026257600080fd5b82018360208201111561027457600080fd5b803590602001918460208302840111600160201b8311171561029557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156102e457600080fd5b8201836020820111156102f657600080fd5b803590602001918460018302840111600160201b8311171561031757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610718945050505050565b005b61047d6004803603604081101561037057600080fd5b810190602081018135600160201b81111561038a57600080fd5b82018360208201111561039c57600080fd5b803590602001918460208302840111600160201b831117156103bd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561040c57600080fd5b82018360208201111561041e57600080fd5b803590602001918460208302840111600160201b8311171561043f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a16945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104b95781810151838201526020016104a1565b505050509050019250505060405180910390f35b610358600480360360408110156104e357600080fd5b506001600160a01b0381351690602001351515610b94565b6100f16004803603604081101561051157600080fd5b506001600160a01b0381358116916020013516610c83565b610358600480360360a081101561053f57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561057e57600080fd5b82018360208201111561059057600080fd5b803590602001918460018302840111600160201b831117156105b157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610cb1945050505050565b60006001600160a01b0383166106395760405162461bcd60e51b815260040180806020018281038252602b8152602001806114f1602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561070c5780601f106106e15761010080835404028352916020019161070c565b820191906000526020600020905b8154815290600101906020018083116106ef57829003601f168201915b50505050509050919050565b81518351146107585760405162461bcd60e51b81526004018080602001828103825260288152602001806116496028913960400191505060405180910390fd5b6001600160a01b03841661079d5760405162461bcd60e51b81526004018080602001828103825260258152602001806115766025913960400191505060405180910390fd5b6107a5610e7c565b6001600160a01b0316856001600160a01b031614806107d057506107d0856107cb610e7c565b610c83565b61080b5760405162461bcd60e51b815260040180806020018281038252603281526020018061159b6032913960400191505060405180910390fd5b6000610815610e7c565b9050610825818787878787610a0e565b60005b845181101561092657600085828151811061083f57fe5b60200260200101519050600085838151811061085757fe5b602002602001015190506108c4816040518060600160405280602a81526020016115cd602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054610e819092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a16815220546108fb9082610f18565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610828565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156109ac578181015183820152602001610994565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156109eb5781810151838201526020016109d3565b5050505090500194505050505060405180910390a4610a0e818787878787610f79565b505050505050565b60608151835114610a585760405162461bcd60e51b81526004018080602001828103825260298152602001806116206029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610a7257600080fd5b50604051908082528060200260200182016040528015610a9c578160200160208202803683370190505b50905060005b8451811015610b8c5760006001600160a01b0316858281518110610ac257fe5b60200260200101516001600160a01b03161415610b105760405162461bcd60e51b815260040180806020018281038252603181526020018061151c6031913960400191505060405180910390fd5b60016000858381518110610b2057fe5b602002602001015181526020019081526020016000206000868381518110610b4457fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054828281518110610b7957fe5b6020908102919091010152600101610aa2565b509392505050565b816001600160a01b0316610ba6610e7c565b6001600160a01b03161415610bec5760405162461bcd60e51b81526004018080602001828103825260298152602001806115f76029913960400191505060405180910390fd5b8060026000610bf9610e7c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c3d610e7c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610cf65760405162461bcd60e51b81526004018080602001828103825260258152602001806115766025913960400191505060405180910390fd5b610cfe610e7c565b6001600160a01b0316856001600160a01b03161480610d245750610d24856107cb610e7c565b610d5f5760405162461bcd60e51b815260040180806020018281038252602981526020018061154d6029913960400191505060405180910390fd5b6000610d69610e7c565b9050610d89818787610d7a886111f8565b610d83886111f8565b87610a0e565b610dd0836040518060600160405280602a81526020016115cd602a913960008781526001602090815260408083206001600160a01b038d1684529091529020549190610e81565b60008581526001602090815260408083206001600160a01b038b81168552925280832093909355871681522054610e079084610f18565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610a0e81878787878761123c565b335b90565b60008184841115610f105760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ed5578181015183820152602001610ebd565b50505050905090810190601f168015610f025780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610f72576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b610f8b846001600160a01b03166113ad565b15610a0e57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611019578181015183820152602001611001565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611058578181015183820152602001611040565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561109457818101518382015260200161107c565b50505050905090810190601f1680156110c15780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156110e657600080fd5b505af192505050801561110b57506040513d602081101561110657600080fd5b505160015b6111a0576111176113ef565b806111225750611169565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315610ed5578181015183820152602001610ebd565b60405162461bcd60e51b81526004018080602001828103825260348152602001806114956034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146111ef5760405162461bcd60e51b81526004018080602001828103825260288152602001806114c96028913960400191505060405180910390fd5b50505050505050565b60408051600180825281830190925260609182919060208083019080368337019050509050828160008151811061122b57fe5b602090810291909101015292915050565b61124e846001600160a01b03166113ad565b15610a0e57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156112dd5781810151838201526020016112c5565b50505050905090810190601f16801561130a5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561132d57600080fd5b505af192505050801561135257506040513d602081101561134d57600080fd5b505160015b61135e576111176113ef565b6001600160e01b0319811663f23a6e6160e01b146111ef5760405162461bcd60e51b81526004018080602001828103825260288152602001806114c96028913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906113e157508115155b949350505050565b60e01c90565b600060443d10156113ff57610e7e565b600481823e6308c379a061141382516113e9565b1461141d57610e7e565b6040513d600319016004823e80513d67ffffffffffffffff816024840111818411171561144d5750505050610e7e565b828401925082519150808211156114675750505050610e7e565b503d8301602082840101111561147f57505050610e7e565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368a264697066735822122044b3430e72cfd14f6fcc5e42db2c4506767ad64c0e5d2cbee7fca63e2069e8e364736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100875760003560e01c80634e1273f41161005b5780634e1273f41461035a578063a22cb465146104cd578063e985e9c5146104fb578063f242432a1461052957610087565b8062fdd58e1461008c57806301ffc9a7146100ca5780630e89341c146101055780632eb2c2d614610197575b600080fd5b6100b8600480360360408110156100a257600080fd5b506001600160a01b0381351690602001356105f2565b60408051918252519081900360200190f35b6100f1600480360360208110156100e057600080fd5b50356001600160e01b031916610661565b604080519115158252519081900360200190f35b6101226004803603602081101561011b57600080fd5b5035610680565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015c578181015183820152602001610144565b50505050905090810190601f1680156101895780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610358600480360360a08110156101ad57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156101e057600080fd5b8201836020820111156101f257600080fd5b803590602001918460208302840111600160201b8311171561021357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561026257600080fd5b82018360208201111561027457600080fd5b803590602001918460208302840111600160201b8311171561029557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156102e457600080fd5b8201836020820111156102f657600080fd5b803590602001918460018302840111600160201b8311171561031757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610718945050505050565b005b61047d6004803603604081101561037057600080fd5b810190602081018135600160201b81111561038a57600080fd5b82018360208201111561039c57600080fd5b803590602001918460208302840111600160201b831117156103bd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561040c57600080fd5b82018360208201111561041e57600080fd5b803590602001918460208302840111600160201b8311171561043f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a16945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104b95781810151838201526020016104a1565b505050509050019250505060405180910390f35b610358600480360360408110156104e357600080fd5b506001600160a01b0381351690602001351515610b94565b6100f16004803603604081101561051157600080fd5b506001600160a01b0381358116916020013516610c83565b610358600480360360a081101561053f57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561057e57600080fd5b82018360208201111561059057600080fd5b803590602001918460018302840111600160201b831117156105b157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610cb1945050505050565b60006001600160a01b0383166106395760405162461bcd60e51b815260040180806020018281038252602b8152602001806114f1602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561070c5780601f106106e15761010080835404028352916020019161070c565b820191906000526020600020905b8154815290600101906020018083116106ef57829003601f168201915b50505050509050919050565b81518351146107585760405162461bcd60e51b81526004018080602001828103825260288152602001806116496028913960400191505060405180910390fd5b6001600160a01b03841661079d5760405162461bcd60e51b81526004018080602001828103825260258152602001806115766025913960400191505060405180910390fd5b6107a5610e7c565b6001600160a01b0316856001600160a01b031614806107d057506107d0856107cb610e7c565b610c83565b61080b5760405162461bcd60e51b815260040180806020018281038252603281526020018061159b6032913960400191505060405180910390fd5b6000610815610e7c565b9050610825818787878787610a0e565b60005b845181101561092657600085828151811061083f57fe5b60200260200101519050600085838151811061085757fe5b602002602001015190506108c4816040518060600160405280602a81526020016115cd602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054610e819092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a16815220546108fb9082610f18565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610828565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156109ac578181015183820152602001610994565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156109eb5781810151838201526020016109d3565b5050505090500194505050505060405180910390a4610a0e818787878787610f79565b505050505050565b60608151835114610a585760405162461bcd60e51b81526004018080602001828103825260298152602001806116206029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610a7257600080fd5b50604051908082528060200260200182016040528015610a9c578160200160208202803683370190505b50905060005b8451811015610b8c5760006001600160a01b0316858281518110610ac257fe5b60200260200101516001600160a01b03161415610b105760405162461bcd60e51b815260040180806020018281038252603181526020018061151c6031913960400191505060405180910390fd5b60016000858381518110610b2057fe5b602002602001015181526020019081526020016000206000868381518110610b4457fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054828281518110610b7957fe5b6020908102919091010152600101610aa2565b509392505050565b816001600160a01b0316610ba6610e7c565b6001600160a01b03161415610bec5760405162461bcd60e51b81526004018080602001828103825260298152602001806115f76029913960400191505060405180910390fd5b8060026000610bf9610e7c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c3d610e7c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610cf65760405162461bcd60e51b81526004018080602001828103825260258152602001806115766025913960400191505060405180910390fd5b610cfe610e7c565b6001600160a01b0316856001600160a01b03161480610d245750610d24856107cb610e7c565b610d5f5760405162461bcd60e51b815260040180806020018281038252602981526020018061154d6029913960400191505060405180910390fd5b6000610d69610e7c565b9050610d89818787610d7a886111f8565b610d83886111f8565b87610a0e565b610dd0836040518060600160405280602a81526020016115cd602a913960008781526001602090815260408083206001600160a01b038d1684529091529020549190610e81565b60008581526001602090815260408083206001600160a01b038b81168552925280832093909355871681522054610e079084610f18565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610a0e81878787878761123c565b335b90565b60008184841115610f105760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ed5578181015183820152602001610ebd565b50505050905090810190601f168015610f025780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610f72576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b610f8b846001600160a01b03166113ad565b15610a0e57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611019578181015183820152602001611001565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611058578181015183820152602001611040565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561109457818101518382015260200161107c565b50505050905090810190601f1680156110c15780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156110e657600080fd5b505af192505050801561110b57506040513d602081101561110657600080fd5b505160015b6111a0576111176113ef565b806111225750611169565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315610ed5578181015183820152602001610ebd565b60405162461bcd60e51b81526004018080602001828103825260348152602001806114956034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146111ef5760405162461bcd60e51b81526004018080602001828103825260288152602001806114c96028913960400191505060405180910390fd5b50505050505050565b60408051600180825281830190925260609182919060208083019080368337019050509050828160008151811061122b57fe5b602090810291909101015292915050565b61124e846001600160a01b03166113ad565b15610a0e57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156112dd5781810151838201526020016112c5565b50505050905090810190601f16801561130a5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561132d57600080fd5b505af192505050801561135257506040513d602081101561134d57600080fd5b505160015b61135e576111176113ef565b6001600160e01b0319811663f23a6e6160e01b146111ef5760405162461bcd60e51b81526004018080602001828103825260288152602001806114c96028913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906113e157508115155b949350505050565b60e01c90565b600060443d10156113ff57610e7e565b600481823e6308c379a061141382516113e9565b1461141d57610e7e565b6040513d600319016004823e80513d67ffffffffffffffff816024840111818411171561144d5750505050610e7e565b828401925082519150808211156114675750505050610e7e565b503d8301602082840101111561147f57505050610e7e565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368a264697066735822122044b3430e72cfd14f6fcc5e42db2c4506767ad64c0e5d2cbee7fca63e2069e8e364736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "uri", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of the basic standard multi-token. See https://eips.ethereum.org/EIPS/eip-1155 Originally based on code by Enjin: https://github.com/enjin/erc-1155 _Available since v3.1._", "kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "constructor": {"details": "See {_setURI}."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "ERC1155Burnable": {"contractName": "ERC1155Burnable", "sourceId": "token/ERC1155/ERC1155Burnable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnBatch", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Extension of {ERC1155} that allows token holders to destroy both their own tokens and those that they have been approved to use. _Available since v3.1._", "kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "ERC1155Holder": {"contractName": "ERC1155Holder", "sourceId": "token/ERC1155/ERC1155Holder.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506100216301ffc9a760e01b610036565b610031630271189760e51b610036565b6100ba565b6001600160e01b03198082161415610095576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b61039f806100c96000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063bc197c8114610081578063f23a6e611461025f575b600080fd5b61006d6004803603602081101561005c57600080fd5b50356001600160e01b031916610328565b604080519115158252519081900360200190f35b610242600480360360a081101561009757600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156100ca57600080fd5b8201836020820111156100dc57600080fd5b803590602001918460208302840111600160201b831117156100fd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561014c57600080fd5b82018360208201111561015e57600080fd5b803590602001918460208302840111600160201b8311171561017f57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156101ce57600080fd5b8201836020820111156101e057600080fd5b803590602001918460018302840111600160201b8311171561020157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610347945050505050565b604080516001600160e01b03199092168252519081900360200190f35b610242600480360360a081101561027557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b8111156102b457600080fd5b8201836020820111156102c657600080fd5b803590602001918460018302840111600160201b831117156102e757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610358945050505050565b6001600160e01b03191660009081526020819052604090205460ff1690565b63bc197c8160e01b95945050505050565b63f23a6e6160e01b9594505050505056fea2646970667358221220631b44bc8063622d1939b2a16f4d75c30dc54ad665df5ced98b16281cd3ffbc264736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063bc197c8114610081578063f23a6e611461025f575b600080fd5b61006d6004803603602081101561005c57600080fd5b50356001600160e01b031916610328565b604080519115158252519081900360200190f35b610242600480360360a081101561009757600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156100ca57600080fd5b8201836020820111156100dc57600080fd5b803590602001918460208302840111600160201b831117156100fd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561014c57600080fd5b82018360208201111561015e57600080fd5b803590602001918460208302840111600160201b8311171561017f57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156101ce57600080fd5b8201836020820111156101e057600080fd5b803590602001918460018302840111600160201b8311171561020157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610347945050505050565b604080516001600160e01b03199092168252519081900360200190f35b610242600480360360a081101561027557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b8111156102b457600080fd5b8201836020820111156102c657600080fd5b803590602001918460018302840111600160201b831117156102e757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610358945050505050565b6001600160e01b03191660009081526020819052604090205460ff1690565b63bc197c8160e01b95945050505050565b63f23a6e6160e01b9594505050505056fea2646970667358221220631b44bc8063622d1939b2a16f4d75c30dc54ad665df5ced98b16281cd3ffbc264736f6c634300060c0033"}, "abi": [{"type": "function", "name": "onERC1155BatchReceived", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "onERC1155Received", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "_Available since v3.1._", "kind": "dev", "methods": {"supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}}, "version": 1}}, "ERC1155Pausable": {"contractName": "ERC1155Pausable", "sourceId": "token/ERC1155/ERC1155Pausable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "ERC1155 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug. _Available since v3.1._", "kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "ERC1155Receiver": {"contractName": "ERC1155Receiver", "sourceId": "token/ERC1155/ERC1155Receiver.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": []}, {"type": "function", "name": "onERC1155BatchReceived", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "onERC1155Received", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "_Available since v3.1._", "kind": "dev", "methods": {"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": {"details": "Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` (i.e. 0xbc197c81, or its own function selector).", "params": {"data": "Additional data with no specified format", "from": "The address which previously owned the token", "ids": "An array containing ids of each token being transferred (order and length must match values array)", "operator": "The address which initiated the batch transfer (i.e. msg.sender)", "values": "An array containing amounts of each token being transferred (order and length must match ids array)"}, "returns": {"_0": "`bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed"}}, "onERC1155Received(address,address,uint256,uint256,bytes)": {"details": "Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` (i.e. 0xf23a6e61, or its own function selector).", "params": {"data": "Additional data with no specified format", "from": "The address which previously owned the token", "id": "The ID of the token being transferred", "operator": "The address which initiated the transfer (i.e. msg.sender)", "value": "The amount of tokens being transferred"}, "returns": {"_0": "`bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed"}}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}}, "version": 1}}, "IERC1155": {"contractName": "IERC1155", "sourceId": "token/ERC1155/IERC1155.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Required interface of an ERC1155 compliant contract, as defined in the https://eips.ethereum.org/EIPS/eip-1155[EIP]. _Available since v3.1._", "events": {"ApprovalForAll(address,address,bool)": {"details": "Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to `approved`."}, "TransferBatch(address,address,address,uint256[],uint256[])": {"details": "Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all transfers."}, "TransferSingle(address,address,address,uint256,uint256)": {"details": "Emitted when `value` tokens of token type `id` are transfered from `from` to `to` by `operator`."}, "URI(string,uint256)": {"details": "Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. If an {URI} event was emitted for `id`, the standard https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value returned by {IERC1155MetadataURI-uri}."}}, "kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. Emits a {TransferBatch} event. Requirements: - `ids` and `amounts` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "Transfers `amount` tokens of token type `id` from `from` to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `amount`. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value."}, "setApprovalForAll(address,bool)": {"details": "Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller."}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}}, "version": 1}}, "IERC1155MetadataURI": {"contractName": "IERC1155MetadataURI", "sourceId": "token/ERC1155/IERC1155MetadataURI.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the optional ERC1155MetadataExtension interface, as defined in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. _Available since v3.1._", "kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. Emits a {TransferBatch} event. Requirements: - `ids` and `amounts` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "Transfers `amount` tokens of token type `id` from `from` to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `amount`. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value."}, "setApprovalForAll(address,bool)": {"details": "Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller."}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}, "uri(uint256)": {"details": "Returns the URI for token type `id`. If the `\\{id\\}` substring is present in the URI, it must be replaced by clients with the actual token type ID."}}, "version": 1}}, "IERC1155Receiver": {"contractName": "IERC1155Receiver", "sourceId": "token/ERC1155/IERC1155Receiver.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "onERC1155BatchReceived", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "onERC1155Received", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "notice": "_Available since v3.1._", "version": 1}, "devdoc": {"kind": "dev", "methods": {"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": {"details": "Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` (i.e. 0xbc197c81, or its own function selector).", "params": {"data": "Additional data with no specified format", "from": "The address which previously owned the token", "ids": "An array containing ids of each token being transferred (order and length must match values array)", "operator": "The address which initiated the batch transfer (i.e. msg.sender)", "values": "An array containing amounts of each token being transferred (order and length must match ids array)"}, "returns": {"_0": "`bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed"}}, "onERC1155Received(address,address,uint256,uint256,bytes)": {"details": "Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` (i.e. 0xf23a6e61, or its own function selector).", "params": {"data": "Additional data with no specified format", "from": "The address which previously owned the token", "id": "The ID of the token being transferred", "operator": "The address which initiated the transfer (i.e. msg.sender)", "value": "The amount of tokens being transferred"}, "returns": {"_0": "`bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed"}}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}}, "version": 1}}, "ERC20": {"contractName": "ERC20", "sourceId": "token/ERC20/ERC20.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5060405162000c6238038062000c628339818101604052604081101561003557600080fd5b810190808051604051939291908464010000000082111561005557600080fd5b90830190602082018581111561006a57600080fd5b825164010000000081118282018810171561008457600080fd5b82525081516020918201929091019080838360005b838110156100b1578181015183820152602001610099565b50505050905090810190601f1680156100de5780820380516001836020036101000a031916815260200191505b506040526020018051604051939291908464010000000082111561010157600080fd5b90830190602082018581111561011657600080fd5b825164010000000081118282018810171561013057600080fd5b82525081516020918201929091019080838360005b8381101561015d578181015183820152602001610145565b50505050905090810190601f16801561018a5780820380516001836020036101000a031916815260200191505b50604052505082516101a4915060039060208501906101cd565b5080516101b89060049060208401906101cd565b50506005805460ff1916601217905550610260565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061020e57805160ff191683800117855561023b565b8280016001018555821561023b579182015b8281111561023b578251825591602001919060010190610220565b5061024792915061024b565b5090565b5b80821115610247576000815560010161024c565b6109f280620002706000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610573565b8484610577565b50600192915050565b60025490565b600061037f848484610663565b6103ef8461038b610573565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c9610573565b6001600160a01b0316815260208101919091526040016000205491906107be565b610577565b5060019392505050565b60055460ff1690565b600061036361040f610573565b846103ea8560016000610420610573565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610855565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d9610573565b846103ea856040518060600160405280602581526020016109986025913960016000610503610573565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906107be565b6000610363610541610573565b8484610663565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105bc5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106015760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106a85760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b0382166106ed5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6106f88383836108b6565b61073581604051806060016040528060268152602001610901602691396001600160a01b03861660009081526020819052604090205491906107be565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107649082610855565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561084d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108af576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212205c5b920a4eee433126fb6d81e7fd43dfb5206b8116651f46d3488835e1fc9b1264736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610573565b8484610577565b50600192915050565b60025490565b600061037f848484610663565b6103ef8461038b610573565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c9610573565b6001600160a01b0316815260208101919091526040016000205491906107be565b610577565b5060019392505050565b60055460ff1690565b600061036361040f610573565b846103ea8560016000610420610573565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610855565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d9610573565b846103ea856040518060600160405280602581526020016109986025913960016000610503610573565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906107be565b6000610363610541610573565b8484610663565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105bc5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106015760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106a85760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b0382166106ed5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6106f88383836108b6565b61073581604051806060016040528060268152602001610901602691396001600160a01b03861660009081526020819052604090205491906107be565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107649082610855565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561084d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108af576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212205c5b920a4eee433126fb6d81e7fd43dfb5206b8116651f46d3488835e1fc9b1264736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How to implement supply mechanisms]. We have followed general OpenZeppelin guidelines: functions revert instead of returning `false` on failure. This behavior is nonetheless conventional and does not conflict with the expectations of ERC20 applications. Additionally, an {Approval} event is emitted on calls to {transferFrom}. This allows applications to reconstruct the allowance for all accounts just by listening to said events. Other implementations of the EIP may not emit these events, as it isn't required by the specification. Finally, the non-standard {decreaseAllowance} and {increaseAllowance} functions have been added to mitigate the well-known issues around setting allowances. See {IERC20-approve}.", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "constructor": {"details": "Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20Burnable": {"contractName": "ERC20Burnable", "sourceId": "token/ERC20/ERC20Burnable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnFrom", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Extension of {ERC20} that allows token holders to destroy both their own tokens and those that they have an allowance for, in a way that can be recognized off-chain (via event analysis).", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "burn(uint256)": {"details": "Destroys `amount` tokens from the caller. See {ERC20-_burn}."}, "burnFrom(address,uint256)": {"details": "Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20Capped": {"contractName": "ERC20Capped", "sourceId": "token/ERC20/ERC20Capped.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "cap", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "cap", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Extension of {ERC20} that adds a cap to the supply of tokens.", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "cap()": {"details": "Returns the cap on the token's total supply."}, "constructor": {"details": "Sets the value of the `cap`. This value is immutable, it can only be set once during construction."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20Pausable": {"contractName": "ERC20Pausable", "sourceId": "token/ERC20/ERC20Pausable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "ERC20 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug.", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20Snapshot": {"contractName": "ERC20Snapshot", "sourceId": "token/ERC20/ERC20Snapshot.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Snapshot", "inputs": [{"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfAt", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "snapshotId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "totalSupplyAt", "stateMutability": "view", "inputs": [{"name": "snapshotId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and total supply at the time are recorded for later access. This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting. In naive implementations it's possible to perform a \"double spend\" attack by reusing the same balance from different accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be used to create an efficient ERC20 forking mechanism. Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id and the account address. ==== Gas Costs Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much smaller since identical balances in subsequent snapshots are stored as a single entry. There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent transfers will have normal cost until the next snapshot, and so on.", "events": {"Snapshot(uint256)": {"details": "Emitted by {_snapshot} when a snapshot identified by `id` is created."}}, "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "balanceOfAt(address,uint256)": {"details": "Retrieves the balance of `account` at the time `snapshotId` was created."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "totalSupplyAt(uint256)": {"details": "Retrieves the total supply at the time `snapshotId` was created."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "IERC20": {"contractName": "IERC20", "sourceId": "token/ERC20/IERC20.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC20 standard as defined in the EIP.", "events": {"Approval(address,address,uint256)": {"details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."}, "Transfer(address,address,uint256)": {"details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."}}, "kind": "dev", "methods": {"allowance(address,address)": {"details": "Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called."}, "approve(address,uint256)": {"details": "Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event."}, "balanceOf(address)": {"details": "Returns the amount of tokens owned by `account`."}, "totalSupply()": {"details": "Returns the amount of tokens in existence."}, "transfer(address,uint256)": {"details": "Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."}, "transferFrom(address,address,uint256)": {"details": "Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."}}, "version": 1}}, "SafeERC20": {"contractName": "SafeERC20", "sourceId": "token/ERC20/SafeERC20.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212205f4b8215cb5ae9da363f96f5a7f10aafbde2e12f89981270916fc2fff5c3523a64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212205f4b8215cb5ae9da363f96f5a7f10aafbde2e12f89981270916fc2fff5c3523a64736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, which allows you to call the safe operations as `token.safeTransfer(...)`, etc.", "kind": "dev", "methods": {}, "title": "SafeERC20", "version": 1}}, "TokenTimelock": {"contractName": "TokenTimelock", "sourceId": "token/ERC20/TokenTimelock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5060405161068a38038061068a8339818101604052606081101561003357600080fd5b50805160208201516040909201519091904281116100825760405162461bcd60e51b81526004018080602001828103825260328152602001806106586032913960400191505060405180910390fd5b600080546001600160a01b039485166001600160a01b0319918216179091556001805493909416921691909117909155600255610594806100c46000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806338af3eed1461005157806386d1a69f14610075578063b91d40011461007f578063fc0c546a14610099575b600080fd5b6100596100a1565b604080516001600160a01b039092168252519081900360200190f35b61007d6100b0565b005b6100876101c7565b60408051918252519081900360200190f35b6100596101cd565b6001546001600160a01b031690565b6002544210156100f15760405162461bcd60e51b81526004018080602001828103825260328152602001806104e06032913960400191505060405180910390fd5b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561013d57600080fd5b505afa158015610151573d6000803e3d6000fd5b505050506040513d602081101561016757600080fd5b50519050806101a75760405162461bcd60e51b815260040180806020018281038252602381526020018061053c6023913960400191505060405180910390fd5b6001546000546101c4916001600160a01b039182169116836101dc565b50565b60025490565b6000546001600160a01b031690565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261022e908490610233565b505050565b6060610288826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166102e49092919063ffffffff16565b80519091501561022e578080602001905160208110156102a757600080fd5b505161022e5760405162461bcd60e51b815260040180806020018281038252602a815260200180610512602a913960400191505060405180910390fd5b60606102f384846000856102fb565b949350505050565b6060610306856104a6565b610357576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106103965780518252601f199092019160209182019101610377565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146103f8576040519150601f19603f3d011682016040523d82523d6000602084013e6103fd565b606091505b509150915081156104115791506102f39050565b8051156104215780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561046b578181015183820152602001610453565b50505050905090810190601f1680156104985780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906102f357505015159291505056fe546f6b656e54696d656c6f636b3a2063757272656e742074696d65206973206265666f72652072656c656173652074696d655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e54696d656c6f636b3a206e6f20746f6b656e7320746f2072656c65617365a26469706673582212209b04c6d12b95a3a6e0bd84fe779878790e9d51b020969f303d48a85c07948d8264736f6c634300060c0033546f6b656e54696d656c6f636b3a2072656c656173652074696d65206973206265666f72652063757272656e742074696d65"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806338af3eed1461005157806386d1a69f14610075578063b91d40011461007f578063fc0c546a14610099575b600080fd5b6100596100a1565b604080516001600160a01b039092168252519081900360200190f35b61007d6100b0565b005b6100876101c7565b60408051918252519081900360200190f35b6100596101cd565b6001546001600160a01b031690565b6002544210156100f15760405162461bcd60e51b81526004018080602001828103825260328152602001806104e06032913960400191505060405180910390fd5b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561013d57600080fd5b505afa158015610151573d6000803e3d6000fd5b505050506040513d602081101561016757600080fd5b50519050806101a75760405162461bcd60e51b815260040180806020018281038252602381526020018061053c6023913960400191505060405180910390fd5b6001546000546101c4916001600160a01b039182169116836101dc565b50565b60025490565b6000546001600160a01b031690565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261022e908490610233565b505050565b6060610288826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166102e49092919063ffffffff16565b80519091501561022e578080602001905160208110156102a757600080fd5b505161022e5760405162461bcd60e51b815260040180806020018281038252602a815260200180610512602a913960400191505060405180910390fd5b60606102f384846000856102fb565b949350505050565b6060610306856104a6565b610357576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106103965780518252601f199092019160209182019101610377565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146103f8576040519150601f19603f3d011682016040523d82523d6000602084013e6103fd565b606091505b509150915081156104115791506102f39050565b8051156104215780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561046b578181015183820152602001610453565b50505050905090810190601f1680156104985780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906102f357505015159291505056fe546f6b656e54696d656c6f636b3a2063757272656e742074696d65206973206265666f72652072656c656173652074696d655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e54696d656c6f636b3a206e6f20746f6b656e7320746f2072656c65617365a26469706673582212209b04c6d12b95a3a6e0bd84fe779878790e9d51b020969f303d48a85c07948d8264736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "token", "type": "address", "internalType": "contract IERC20"}, {"name": "beneficiary", "type": "address", "internalType": "address"}, {"name": "releaseTime", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "beneficiary", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "release", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "releaseTime", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract IERC20"}]}], "userdoc": {"kind": "user", "methods": {"release()": {"notice": "Transfers tokens held by timelock to beneficiary."}}, "version": 1}, "devdoc": {"details": "A token holder contract that will allow a beneficiary to extract the tokens after a given release time. Useful for simple vesting schedules like \"advisors get all of their tokens after 1 year\".", "kind": "dev", "methods": {"beneficiary()": {"returns": {"_0": "the beneficiary of the tokens."}}, "releaseTime()": {"returns": {"_0": "the time when the tokens are released."}}, "token()": {"returns": {"_0": "the token being held."}}}, "version": 1}}, "ERC721": {"contractName": "ERC721", "sourceId": "token/ERC721/ERC721.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162001d2338038062001d23833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250620001b391506301ffc9a760e01b90506200021d565b8151620001c8906006906020850190620002a2565b508051620001de906007906020840190620002a2565b50620001f16380ac58cd60e01b6200021d565b62000203635b5e139f60e01b6200021d565b6200021563780e9d6360e01b6200021d565b50506200033e565b6001600160e01b031980821614156200027d576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002e557805160ff191683800117855562000315565b8280016001018555821562000315579182015b8281111562000315578251825591602001919060010190620002f8565b506200032392915062000327565b5090565b5b8082111562000323576000815560010162000328565b6119d5806200034e6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80634f6ccce7116100a257806395d89b411161007157806395d89b4114610349578063a22cb46514610351578063b88d4fde1461037f578063c87b56dd14610445578063e985e9c5146104625761010b565b80634f6ccce7146102e15780636352211e146102fe5780636c0360eb1461031b57806370a08231146103235761010b565b806318160ddd116100de57806318160ddd1461022f57806323b872dd146102495780632f745c591461027f57806342842e0e146102ab5761010b565b806301ffc9a71461011057806306fdde031461014b578063081812fc146101c8578063095ea7b314610201575b600080fd5b6101376004803603602081101561012657600080fd5b50356001600160e01b031916610490565b604080519115158252519081900360200190f35b6101536104b3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561018d578181015183820152602001610175565b50505050905090810190601f1680156101ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101e5600480360360208110156101de57600080fd5b5035610549565b604080516001600160a01b039092168252519081900360200190f35b61022d6004803603604081101561021757600080fd5b506001600160a01b0381351690602001356105ab565b005b610237610686565b60408051918252519081900360200190f35b61022d6004803603606081101561025f57600080fd5b506001600160a01b03813581169160208101359091169060400135610697565b6102376004803603604081101561029557600080fd5b506001600160a01b0381351690602001356106ee565b61022d600480360360608110156102c157600080fd5b506001600160a01b03813581169160208101359091169060400135610719565b610237600480360360208110156102f757600080fd5b5035610734565b6101e56004803603602081101561031457600080fd5b503561074a565b610153610772565b6102376004803603602081101561033957600080fd5b50356001600160a01b03166107d3565b61015361083b565b61022d6004803603604081101561036757600080fd5b506001600160a01b038135169060200135151561089c565b61022d6004803603608081101561039557600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156103d057600080fd5b8201836020820111156103e257600080fd5b8035906020019184600183028401116401000000008311171561040457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506109a1945050505050565b6101536004803603602081101561045b57600080fd5b50356109ff565b6101376004803603604081101561047857600080fd5b506001600160a01b0381358116916020013516610ca6565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b820191906000526020600020905b81548152906001019060200180831161052257829003601f168201915b5050505050905090565b600061055482610cd4565b61058f5760405162461bcd60e51b815260040180806020018281038252602c8152602001806118ca602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105b68261074a565b9050806001600160a01b0316836001600160a01b031614156106095760405162461bcd60e51b815260040180806020018281038252602181526020018061194e6021913960400191505060405180910390fd5b806001600160a01b031661061b610ce1565b6001600160a01b0316148061063c575061063c81610637610ce1565b610ca6565b6106775760405162461bcd60e51b815260040180806020018281038252603881526020018061181d6038913960400191505060405180910390fd5b6106818383610ce5565b505050565b60006106926002610d53565b905090565b6106a86106a2610ce1565b82610d5e565b6106e35760405162461bcd60e51b815260040180806020018281038252603181526020018061196f6031913960400191505060405180910390fd5b610681838383610e02565b6001600160a01b03821660009081526001602052604081206107109083610f4e565b90505b92915050565b610681838383604051806020016040528060008152506109a1565b600080610742600284610f5a565b509392505050565b60006107138260405180606001604052806029815260200161187f6029913960029190610f76565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b60006001600160a01b03821661081a5760405162461bcd60e51b815260040180806020018281038252602a815260200180611855602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061071390610d53565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b6108a4610ce1565b6001600160a01b0316826001600160a01b0316141561090a576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610917610ce1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561095b610ce1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6109b26109ac610ce1565b83610d5e565b6109ed5760405162461bcd60e51b815260040180806020018281038252603181526020018061196f6031913960400191505060405180910390fd5b6109f984848484610f8d565b50505050565b6060610a0a82610cd4565b610a455760405162461bcd60e51b815260040180806020018281038252602f81526020018061191f602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610ada5780601f10610aaf57610100808354040283529160200191610ada565b820191906000526020600020905b815481529060010190602001808311610abd57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610b035790506104ae565b805115610bd4576009816040516020018083805460018160011615610100020316600290048015610b6b5780601f10610b49576101008083540402835291820191610b6b565b820191906000526020600020905b815481529060010190602001808311610b57575b5050825160208401908083835b60208310610b975780518252601f199092019160209182019101610b78565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150506104ae565b6009610bdf84610fdf565b6040516020018083805460018160011615610100020316600290048015610c3d5780601f10610c1b576101008083540402835291820191610c3d565b820191906000526020600020905b815481529060010190602001808311610c29575b5050825160208401908083835b60208310610c695780518252601f199092019160209182019101610c4a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006107136002836110ba565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d1a8261074a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610713826110c6565b6000610d6982610cd4565b610da45760405162461bcd60e51b815260040180806020018281038252602c8152602001806117f1602c913960400191505060405180910390fd5b6000610daf8361074a565b9050806001600160a01b0316846001600160a01b03161480610dea5750836001600160a01b0316610ddf84610549565b6001600160a01b0316145b80610dfa5750610dfa8185610ca6565b949350505050565b826001600160a01b0316610e158261074a565b6001600160a01b031614610e5a5760405162461bcd60e51b81526004018080602001828103825260298152602001806118f66029913960400191505060405180910390fd5b6001600160a01b038216610e9f5760405162461bcd60e51b81526004018080602001828103825260248152602001806117cd6024913960400191505060405180910390fd5b610eaa838383610681565b610eb5600082610ce5565b6001600160a01b0383166000908152600160205260409020610ed790826110ca565b506001600160a01b0382166000908152600160205260409020610efa90826110d6565b50610f07600282846110e2565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061071083836110f8565b6000808080610f69868661115c565b9097909650945050505050565b6000610f838484846111d7565b90505b9392505050565b610f98848484610e02565b610fa4848484846112a1565b6109f95760405162461bcd60e51b815260040180806020018281038252603281526020018061179b6032913960400191505060405180910390fd5b60608161100457506040805180820190915260018152600360fc1b60208201526104ae565b8160005b811561101c57600101600a82049150611008565b60608167ffffffffffffffff8111801561103557600080fd5b506040519080825280601f01601f191660200182016040528015611060576020820181803683370190505b50859350905060001982015b83156110b157600a840660300160f81b8282806001900393508151811061108f57fe5b60200101906001600160f81b031916908160001a905350600a8404935061106c565b50949350505050565b60006107108383611409565b5490565b60006107108383611421565b600061071083836114e7565b6000610f8384846001600160a01b038516611531565b8154600090821061113a5760405162461bcd60e51b81526004018080602001828103825260228152602001806117796022913960400191505060405180910390fd5b82600001828154811061114957fe5b9060005260206000200154905092915050565b8154600090819083106111a05760405162461bcd60e51b81526004018080602001828103825260228152602001806118a86022913960400191505060405180910390fd5b60008460000184815481106111b157fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816112725760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561123757818101518382015260200161121f565b50505050905090810190601f1680156112645780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061128557fe5b9060005260206000209060020201600101549150509392505050565b60006112b5846001600160a01b03166115c8565b6112c157506001610dfa565b60606113cf630a85bd0160e11b6112d6610ce1565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561133d578181015183820152602001611325565b50505050905090810190601f16801561136a5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505060405180606001604052806032815260200161179b603291396001600160a01b0388169190611601565b905060008180602001905160208110156113e857600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156114dd578354600019808301919081019060009087908390811061145457fe5b906000526020600020015490508087600001848154811061147157fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806114a157fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610713565b6000915050610713565b60006114f38383611409565b61152957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610713565b506000610713565b600082815260018401602052604081205480611596575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610f86565b828560000160018303815481106115a957fe5b9060005260206000209060020201600101819055506000915050610f86565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610dfa575050151592915050565b6060610f8384846000856060611616856115c8565b611667576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116a65780518252601f199092019160209182019101611687565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611708576040519150601f19603f3d011682016040523d82523d6000602084013e61170d565b606091505b50915091508115611721579150610dfa9050565b8051156117315780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561123757818101518382015260200161121f56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220c01b085849712890d5d8cbef6e917c35b1a73d3150ca4d3fc16524f76d7baf5f64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80634f6ccce7116100a257806395d89b411161007157806395d89b4114610349578063a22cb46514610351578063b88d4fde1461037f578063c87b56dd14610445578063e985e9c5146104625761010b565b80634f6ccce7146102e15780636352211e146102fe5780636c0360eb1461031b57806370a08231146103235761010b565b806318160ddd116100de57806318160ddd1461022f57806323b872dd146102495780632f745c591461027f57806342842e0e146102ab5761010b565b806301ffc9a71461011057806306fdde031461014b578063081812fc146101c8578063095ea7b314610201575b600080fd5b6101376004803603602081101561012657600080fd5b50356001600160e01b031916610490565b604080519115158252519081900360200190f35b6101536104b3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561018d578181015183820152602001610175565b50505050905090810190601f1680156101ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101e5600480360360208110156101de57600080fd5b5035610549565b604080516001600160a01b039092168252519081900360200190f35b61022d6004803603604081101561021757600080fd5b506001600160a01b0381351690602001356105ab565b005b610237610686565b60408051918252519081900360200190f35b61022d6004803603606081101561025f57600080fd5b506001600160a01b03813581169160208101359091169060400135610697565b6102376004803603604081101561029557600080fd5b506001600160a01b0381351690602001356106ee565b61022d600480360360608110156102c157600080fd5b506001600160a01b03813581169160208101359091169060400135610719565b610237600480360360208110156102f757600080fd5b5035610734565b6101e56004803603602081101561031457600080fd5b503561074a565b610153610772565b6102376004803603602081101561033957600080fd5b50356001600160a01b03166107d3565b61015361083b565b61022d6004803603604081101561036757600080fd5b506001600160a01b038135169060200135151561089c565b61022d6004803603608081101561039557600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156103d057600080fd5b8201836020820111156103e257600080fd5b8035906020019184600183028401116401000000008311171561040457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506109a1945050505050565b6101536004803603602081101561045b57600080fd5b50356109ff565b6101376004803603604081101561047857600080fd5b506001600160a01b0381358116916020013516610ca6565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b820191906000526020600020905b81548152906001019060200180831161052257829003601f168201915b5050505050905090565b600061055482610cd4565b61058f5760405162461bcd60e51b815260040180806020018281038252602c8152602001806118ca602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105b68261074a565b9050806001600160a01b0316836001600160a01b031614156106095760405162461bcd60e51b815260040180806020018281038252602181526020018061194e6021913960400191505060405180910390fd5b806001600160a01b031661061b610ce1565b6001600160a01b0316148061063c575061063c81610637610ce1565b610ca6565b6106775760405162461bcd60e51b815260040180806020018281038252603881526020018061181d6038913960400191505060405180910390fd5b6106818383610ce5565b505050565b60006106926002610d53565b905090565b6106a86106a2610ce1565b82610d5e565b6106e35760405162461bcd60e51b815260040180806020018281038252603181526020018061196f6031913960400191505060405180910390fd5b610681838383610e02565b6001600160a01b03821660009081526001602052604081206107109083610f4e565b90505b92915050565b610681838383604051806020016040528060008152506109a1565b600080610742600284610f5a565b509392505050565b60006107138260405180606001604052806029815260200161187f6029913960029190610f76565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b60006001600160a01b03821661081a5760405162461bcd60e51b815260040180806020018281038252602a815260200180611855602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061071390610d53565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b6108a4610ce1565b6001600160a01b0316826001600160a01b0316141561090a576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610917610ce1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561095b610ce1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6109b26109ac610ce1565b83610d5e565b6109ed5760405162461bcd60e51b815260040180806020018281038252603181526020018061196f6031913960400191505060405180910390fd5b6109f984848484610f8d565b50505050565b6060610a0a82610cd4565b610a455760405162461bcd60e51b815260040180806020018281038252602f81526020018061191f602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610ada5780601f10610aaf57610100808354040283529160200191610ada565b820191906000526020600020905b815481529060010190602001808311610abd57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610b035790506104ae565b805115610bd4576009816040516020018083805460018160011615610100020316600290048015610b6b5780601f10610b49576101008083540402835291820191610b6b565b820191906000526020600020905b815481529060010190602001808311610b57575b5050825160208401908083835b60208310610b975780518252601f199092019160209182019101610b78565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150506104ae565b6009610bdf84610fdf565b6040516020018083805460018160011615610100020316600290048015610c3d5780601f10610c1b576101008083540402835291820191610c3d565b820191906000526020600020905b815481529060010190602001808311610c29575b5050825160208401908083835b60208310610c695780518252601f199092019160209182019101610c4a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006107136002836110ba565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d1a8261074a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610713826110c6565b6000610d6982610cd4565b610da45760405162461bcd60e51b815260040180806020018281038252602c8152602001806117f1602c913960400191505060405180910390fd5b6000610daf8361074a565b9050806001600160a01b0316846001600160a01b03161480610dea5750836001600160a01b0316610ddf84610549565b6001600160a01b0316145b80610dfa5750610dfa8185610ca6565b949350505050565b826001600160a01b0316610e158261074a565b6001600160a01b031614610e5a5760405162461bcd60e51b81526004018080602001828103825260298152602001806118f66029913960400191505060405180910390fd5b6001600160a01b038216610e9f5760405162461bcd60e51b81526004018080602001828103825260248152602001806117cd6024913960400191505060405180910390fd5b610eaa838383610681565b610eb5600082610ce5565b6001600160a01b0383166000908152600160205260409020610ed790826110ca565b506001600160a01b0382166000908152600160205260409020610efa90826110d6565b50610f07600282846110e2565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061071083836110f8565b6000808080610f69868661115c565b9097909650945050505050565b6000610f838484846111d7565b90505b9392505050565b610f98848484610e02565b610fa4848484846112a1565b6109f95760405162461bcd60e51b815260040180806020018281038252603281526020018061179b6032913960400191505060405180910390fd5b60608161100457506040805180820190915260018152600360fc1b60208201526104ae565b8160005b811561101c57600101600a82049150611008565b60608167ffffffffffffffff8111801561103557600080fd5b506040519080825280601f01601f191660200182016040528015611060576020820181803683370190505b50859350905060001982015b83156110b157600a840660300160f81b8282806001900393508151811061108f57fe5b60200101906001600160f81b031916908160001a905350600a8404935061106c565b50949350505050565b60006107108383611409565b5490565b60006107108383611421565b600061071083836114e7565b6000610f8384846001600160a01b038516611531565b8154600090821061113a5760405162461bcd60e51b81526004018080602001828103825260228152602001806117796022913960400191505060405180910390fd5b82600001828154811061114957fe5b9060005260206000200154905092915050565b8154600090819083106111a05760405162461bcd60e51b81526004018080602001828103825260228152602001806118a86022913960400191505060405180910390fd5b60008460000184815481106111b157fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816112725760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561123757818101518382015260200161121f565b50505050905090810190601f1680156112645780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061128557fe5b9060005260206000209060020201600101549150509392505050565b60006112b5846001600160a01b03166115c8565b6112c157506001610dfa565b60606113cf630a85bd0160e11b6112d6610ce1565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561133d578181015183820152602001611325565b50505050905090810190601f16801561136a5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505060405180606001604052806032815260200161179b603291396001600160a01b0388169190611601565b905060008180602001905160208110156113e857600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156114dd578354600019808301919081019060009087908390811061145457fe5b906000526020600020015490508087600001848154811061147157fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806114a157fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610713565b6000915050610713565b60006114f38383611409565b61152957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610713565b506000610713565b600082815260018401602052604081205480611596575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610f86565b828560000160018303815481106115a957fe5b9060005260206000209060020201600101819055506000915050610f86565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610dfa575050151592915050565b6060610f8384846000856060611616856115c8565b611667576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116a65780518252601f199092019160209182019101611687565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611708576040519150601f19603f3d011682016040523d82523d6000602084013e61170d565b606091505b50915091508115611721579150610dfa9050565b8051156117315780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561123757818101518382015260200161121f56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220c01b085849712890d5d8cbef6e917c35b1a73d3150ca4d3fc16524f76d7baf5f64736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "baseURI", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenByIndex", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenOfOwnerByIndex", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "see https://eips.ethereum.org/EIPS/eip-721", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "baseURI()": {"details": "Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."}, "constructor": {"details": "Initializes the contract by setting a `name` and a `symbol` to the token collection."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenByIndex(uint256)": {"details": "See {IERC721Enumerable-tokenByIndex}."}, "tokenOfOwnerByIndex(address,uint256)": {"details": "See {IERC721Enumerable-tokenOfOwnerByIndex}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "totalSupply()": {"details": "See {IERC721Enumerable-totalSupply}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "title": "ERC721 Non-Fungible Token Standard basic implementation", "version": 1}}, "ERC721Burnable": {"contractName": "ERC721Burnable", "sourceId": "token/ERC721/ERC721Burnable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "baseURI", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenByIndex", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenOfOwnerByIndex", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "ERC721 Token that can be irreversibly burned (destroyed).", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "baseURI()": {"details": "Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."}, "burn(uint256)": {"details": "Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenByIndex(uint256)": {"details": "See {IERC721Enumerable-tokenByIndex}."}, "tokenOfOwnerByIndex(address,uint256)": {"details": "See {IERC721Enumerable-tokenOfOwnerByIndex}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "totalSupply()": {"details": "See {IERC721Enumerable-totalSupply}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "title": "ERC721 Burnable Token", "version": 1}}, "ERC721Holder": {"contractName": "ERC721Holder", "sourceId": "token/ERC721/ERC721Holder.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610159806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b6100f66004803603608081101561004657600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561008157600080fd5b82018360208201111561009357600080fd5b803590602001918460018302840111640100000000831117156100b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610113945050505050565b604080516001600160e01b03199092168252519081900360200190f35b630a85bd0160e11b94935050505056fea264697066735822122070b7940854efb1dab4d931842175df65d7d3806d59f47856e50392508c15a00e64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b6100f66004803603608081101561004657600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561008157600080fd5b82018360208201111561009357600080fd5b803590602001918460018302840111640100000000831117156100b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610113945050505050565b604080516001600160e01b03199092168252519081900360200190f35b630a85bd0160e11b94935050505056fea264697066735822122070b7940854efb1dab4d931842175df65d7d3806d59f47856e50392508c15a00e64736f6c634300060c0033"}, "abi": [{"type": "function", "name": "onERC721Received", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of the {IERC721Receiver} interface. Accepts all token transfers. Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.", "kind": "dev", "methods": {"onERC721Received(address,address,uint256,bytes)": {"details": "See {IERC721Receiver-onERC721Received}. Always returns `IERC721Receiver.onERC721Received.selector`."}}, "version": 1}}, "ERC721Pausable": {"contractName": "ERC721Pausable", "sourceId": "token/ERC721/ERC721Pausable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "baseURI", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenByIndex", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenOfOwnerByIndex", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "ERC721 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug.", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "baseURI()": {"details": "Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenByIndex(uint256)": {"details": "See {IERC721Enumerable-tokenByIndex}."}, "tokenOfOwnerByIndex(address,uint256)": {"details": "See {IERC721Enumerable-tokenOfOwnerByIndex}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "totalSupply()": {"details": "See {IERC721Enumerable-totalSupply}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "version": 1}}, "IERC721": {"contractName": "IERC721", "sourceId": "token/ERC721/IERC721.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "operator", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "owner", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "_approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Required interface of an ERC721 compliant contract.", "events": {"Approval(address,address,uint256)": {"details": "Emitted when `owner` enables `approved` to manage the `tokenId` token."}, "ApprovalForAll(address,address,bool)": {"details": "Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets."}, "Transfer(address,address,uint256)": {"details": "Emitted when `tokenId` token is transfered from `from` to `to`."}}, "kind": "dev", "methods": {"approve(address,uint256)": {"details": "Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."}, "balanceOf(address)": {"details": "Returns the number of tokens in ``owner``'s account."}, "getApproved(uint256)": {"details": "Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."}, "isApprovedForAll(address,address)": {"details": "Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"}, "ownerOf(uint256)": {"details": "Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."}, "safeTransferFrom(address,address,uint256)": {"details": "Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."}, "setApprovalForAll(address,bool)": {"details": "Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event."}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}, "transferFrom(address,address,uint256)": {"details": "Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."}}, "version": 1}}, "IERC721Enumerable": {"contractName": "IERC721Enumerable", "sourceId": "token/ERC721/IERC721Enumerable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "operator", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "owner", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "_approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "tokenByIndex", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenOfOwnerByIndex", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "See https://eips.ethereum.org/EIPS/eip-721", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."}, "balanceOf(address)": {"details": "Returns the number of tokens in ``owner``'s account."}, "getApproved(uint256)": {"details": "Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."}, "isApprovedForAll(address,address)": {"details": "Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"}, "ownerOf(uint256)": {"details": "Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."}, "safeTransferFrom(address,address,uint256)": {"details": "Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."}, "setApprovalForAll(address,bool)": {"details": "Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event."}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}, "tokenByIndex(uint256)": {"details": "Returns a token ID at a given `index` of all the tokens stored by the contract. Use along with {totalSupply} to enumerate all tokens."}, "tokenOfOwnerByIndex(address,uint256)": {"details": "Returns a token ID owned by `owner` at a given `index` of its token list. Use along with {balanceOf} to enumerate all of ``owner``'s tokens."}, "totalSupply()": {"details": "Returns the total amount of tokens stored by the contract."}, "transferFrom(address,address,uint256)": {"details": "Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."}}, "title": "ERC-721 Non-Fungible Token Standard, optional enumeration extension", "version": 1}}, "IERC721Metadata": {"contractName": "IERC721Metadata", "sourceId": "token/ERC721/IERC721Metadata.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "operator", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "owner", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "_approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "See https://eips.ethereum.org/EIPS/eip-721", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."}, "balanceOf(address)": {"details": "Returns the number of tokens in ``owner``'s account."}, "getApproved(uint256)": {"details": "Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."}, "isApprovedForAll(address,address)": {"details": "Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"}, "name()": {"details": "Returns the token collection name."}, "ownerOf(uint256)": {"details": "Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."}, "safeTransferFrom(address,address,uint256)": {"details": "Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."}, "setApprovalForAll(address,bool)": {"details": "Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event."}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}, "symbol()": {"details": "Returns the token collection symbol."}, "tokenURI(uint256)": {"details": "Returns the Uniform Resource Identifier (URI) for `tokenId` token."}, "transferFrom(address,address,uint256)": {"details": "Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."}}, "title": "ERC-721 Non-Fungible Token Standard, optional metadata extension", "version": 1}}, "IERC721Receiver": {"contractName": "IERC721Receiver", "sourceId": "token/ERC721/IERC721Receiver.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "onERC721Received", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface for any contract that wants to support safeTransfers from ERC721 asset contracts.", "kind": "dev", "methods": {"onERC721Received(address,address,uint256,bytes)": {"details": "Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} by `operator` from `from`, this function is called. It must return its Solidity selector to confirm the token transfer. If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`."}}, "title": "ERC721 token receiver interface", "version": 1}}, "ERC777": {"contractName": "ERC777", "sourceId": "token/ERC777/ERC777.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b50604051620023b0380380620023b0833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620001bc57600080fd5b908301906020820185811115620001d257600080fd5b8251866020820283011164010000000082111715620001f057600080fd5b82525081516020918201928201910280838360005b838110156200021f57818101518382015260200162000205565b5050505091909101604052505084516200024392506002915060208601906200040b565b508151620002599060039060208501906200040b565b5080516200026f90600490602084019062000490565b5060005b600454811015620002cf57600160056000600484815481106200029257fe5b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560010162000273565b50604080516329965a1d60e01b815230600482018190527fac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce2177054602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad24916329965a1d91606480830192600092919082900301818387803b1580156200035057600080fd5b505af115801562000365573d6000803e3d6000fd5b5050604080516329965a1d60e01b815230600482018190527faea199e31a596269b42cdafd93407f14436db6e4cad65417994c2eb37381e05a602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad2493506329965a1d9250606480830192600092919082900301818387803b158015620003e957600080fd5b505af1158015620003fe573d6000803e3d6000fd5b505050505050506200052e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200044e57805160ff19168380011785556200047e565b828001600101855582156200047e579182015b828111156200047e57825182559160200191906001019062000461565b506200048c929150620004f6565b5090565b828054828255906000526020600020908101928215620004e8579160200282015b82811115620004e857825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620004b1565b506200048c9291506200050d565b5b808211156200048c5760008155600101620004f7565b5b808211156200048c5780546001600160a01b03191681556001016200050e565b611e72806200053e6000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063959b8c3f116100a2578063d95b637111610071578063d95b63711461052a578063dd62ed3e14610558578063fad8b32a14610586578063fc673c4f146105ac578063fe9d9303146106ea57610116565b8063959b8c3f1461041757806395d89b411461043d5780639bd9bbc614610445578063a9059cbb146104fe57610116565b806323b872dd116100e957806323b872dd1461024a578063313ce56714610280578063556f0dc71461029e57806362ad1b83146102a657806370a08231146103f157610116565b806306e485381461011b57806306fdde0314610173578063095ea7b3146101f057806318160ddd14610230575b600080fd5b610123610795565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561015f578181015183820152602001610147565b505050509050019250505060405180910390f35b61017b6107f7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b557818101518382015260200161019d565b50505050905090810190601f1680156101e25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61021c6004803603604081101561020657600080fd5b506001600160a01b038135169060200135610881565b604080519115158252519081900360200190f35b6102386108a3565b60408051918252519081900360200190f35b61021c6004803603606081101561026057600080fd5b506001600160a01b038135811691602081013590911690604001356108a9565b610288610a26565b6040805160ff9092168252519081900360200190f35b610238610a2b565b6103ef600480360360a08110156102bc57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156102f657600080fd5b82018360208201111561030857600080fd5b803590602001918460018302840111600160201b8311171561032957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561037b57600080fd5b82018360208201111561038d57600080fd5b803590602001918460018302840111600160201b831117156103ae57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a30945050505050565b005b6102386004803603602081101561040757600080fd5b50356001600160a01b0316610a92565b6103ef6004803603602081101561042d57600080fd5b50356001600160a01b0316610aad565b61017b610bf9565b6103ef6004803603606081101561045b57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561048a57600080fd5b82018360208201111561049c57600080fd5b803590602001918460018302840111600160201b831117156104bd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c5a945050505050565b61021c6004803603604081101561051457600080fd5b506001600160a01b038135169060200135610c84565b61021c6004803603604081101561054057600080fd5b506001600160a01b0381358116916020013516610d5d565b6102386004803603604081101561056e57600080fd5b506001600160a01b0381358116916020013516610dff565b6103ef6004803603602081101561059c57600080fd5b50356001600160a01b0316610e2a565b6103ef600480360360808110156105c257600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156105f157600080fd5b82018360208201111561060357600080fd5b803590602001918460018302840111600160201b8311171561062457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561067657600080fd5b82018360208201111561068857600080fd5b803590602001918460018302840111600160201b831117156106a957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f76945050505050565b6103ef6004803603604081101561070057600080fd5b81359190810190604081016020820135600160201b81111561072157600080fd5b82018360208201111561073357600080fd5b803590602001918460018302840111600160201b8311171561075457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610fd4945050505050565b606060048054806020026020016040519081016040528092919081815260200182805480156107ed57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107cf575b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156107ed5780601f10610855576101008083540402835291602001916107ed565b820191906000526020600020905b81548152906001019060200180831161086357509395945050505050565b60008061088c610ffa565b9050610899818585610ffe565b5060019392505050565b60015490565b60006001600160a01b0383166108f05760405162461bcd60e51b8152600401808060200182810382526024815260200180611d586024913960400191505060405180910390fd5b6001600160a01b0384166109355760405162461bcd60e51b8152600401808060200182810382526026815260200180611dd16026913960400191505060405180910390fd5b600061093f610ffa565b905061096d8186868660405180602001604052806000815250604051806020016040528060008152506110ea565b610999818686866040518060200160405280600081525060405180602001604052806000815250611317565b6109ed85826109e886604051806060016040528060298152602001611da8602991396001600160a01b03808c166000908152600860209081526040808320938b16835292905220549190611530565b610ffe565b610a1b81868686604051806020016040528060008152506040518060200160405280600081525060006115c7565b506001949350505050565b601290565b600190565b610a41610a3b610ffa565b86610d5d565b610a7c5760405162461bcd60e51b815260040180806020018281038252602c815260200180611d7c602c913960400191505060405180910390fd5b610a8b8585858585600161184c565b5050505050565b6001600160a01b031660009081526020819052604090205490565b806001600160a01b0316610abf610ffa565b6001600160a01b03161415610b055760405162461bcd60e51b8152600401808060200182810382526024815260200180611cc66024913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610b685760076000610b32610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff19169055610baf565b600160066000610b76610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790555b610bb7610ffa565b6001600160a01b0316816001600160a01b03167ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f960405160405180910390a350565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107ed5780601f10610855576101008083540402835291602001916107ed565b610c7f610c65610ffa565b84848460405180602001604052806000815250600161184c565b505050565b60006001600160a01b038316610ccb5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d586024913960400191505060405180910390fd5b6000610cd5610ffa565b9050610d038182868660405180602001604052806000815250604051806020016040528060008152506110ea565b610d2f818286866040518060200160405280600081525060405180602001604052806000815250611317565b61089981828686604051806020016040528060008152506040518060200160405280600081525060006115c7565b6000816001600160a01b0316836001600160a01b03161480610dc857506001600160a01b03831660009081526005602052604090205460ff168015610dc857506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b80610df857506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610e32610ffa565b6001600160a01b0316816001600160a01b03161415610e825760405162461bcd60e51b8152600401808060200182810382526021815260200180611cea6021913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610eee57600160076000610eb1610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff1916911515919091179055610f2c565b60066000610efa610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff191690555b610f34610ffa565b6001600160a01b0316816001600160a01b03167f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa160405160405180910390a350565b610f87610f81610ffa565b85610d5d565b610fc25760405162461bcd60e51b815260040180806020018281038252602c815260200180611d7c602c913960400191505060405180910390fd5b610fce84848484611923565b50505050565b610ff6610fdf610ffa565b838360405180602001604052806000815250611923565b5050565b3390565b6001600160a01b0383166110435760405162461bcd60e51b8152600401808060200182810382526025815260200180611c366025913960400191505060405180910390fd5b6001600160a01b0382166110885760405162461bcd60e51b8152600401808060200182810382526023815260200180611e1a6023913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561116e57600080fd5b505afa158015611182573d6000803e3d6000fd5b505050506040513d602081101561119857600080fd5b505190506001600160a01b0381161561130e57806001600160a01b03166375ab97828888888888886040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561124357818101518382015260200161122b565b50505050905090810190601f1680156112705780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156112a357818101518382015260200161128b565b50505050905090810190601f1680156112d05780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156112f557600080fd5b505af1158015611309573d6000803e3d6000fd5b505050505b50505050505050565b61132386868686610fce565b61136083604051806060016040528060278152602001611c7d602791396001600160a01b0388166000908152602081905260409020549190611530565b6001600160a01b03808716600090815260208190526040808220939093559086168152205461138f9084611b5d565b600080866001600160a01b03166001600160a01b0316815260200190815260200160002081905550836001600160a01b0316856001600160a01b0316876001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611440578181015183820152602001611428565b50505050905090810190601f16801561146d5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156114a0578181015183820152602001611488565b50505050905090810190601f1680156114cd5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050565b600081848411156115bf5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561158457818101518382015260200161156c565b50505050905090810190601f1680156115b15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561164b57600080fd5b505afa15801561165f573d6000803e3d6000fd5b505050506040513d602081101561167557600080fd5b505190506001600160a01b038116156117ee57806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561171f578181015183820152602001611707565b50505050905090810190601f16801561174c5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b8381101561177f578181015183820152602001611767565b50505050905090810190601f1680156117ac5780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156117d157600080fd5b505af11580156117e5573d6000803e3d6000fd5b50505050611842565b811561184257611806866001600160a01b0316611bb7565b156118425760405162461bcd60e51b815260040180806020018281038252604d815260200180611d0b604d913960600191505060405180910390fd5b5050505050505050565b6001600160a01b0386166118915760405162461bcd60e51b8152600401808060200182810382526022815260200180611c5b6022913960400191505060405180910390fd5b6001600160a01b0385166118ec576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b60006118f6610ffa565b90506119068188888888886110ea565b611914818888888888611317565b61130e818888888888886115c7565b6001600160a01b0384166119685760405162461bcd60e51b8152600401808060200182810382526022815260200180611ca46022913960400191505060405180910390fd5b6000611972610ffa565b90506119818186600087610fce565b611990818660008787876110ea565b6119cd84604051806060016040528060238152602001611df7602391396001600160a01b0388166000908152602081905260409020549190611530565b6001600160a01b0386166000908152602081905260409020556001546119f39085611bf3565b600181905550846001600160a01b0316816001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611a78578181015183820152602001611a60565b50505050905090810190601f168015611aa55780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611ad8578181015183820152602001611ac0565b50505050905090810190601f168015611b055780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516000916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b600082820183811015610df8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611beb57508115155b949350505050565b6000610df883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061153056fe4552433737373a20617070726f76652066726f6d20746865207a65726f20616464726573734552433737373a2073656e642066726f6d20746865207a65726f20616464726573734552433737373a207472616e7366657220616d6f756e7420657863656564732062616c616e63654552433737373a206275726e2066726f6d20746865207a65726f20616464726573734552433737373a20617574686f72697a696e672073656c66206173206f70657261746f724552433737373a207265766f6b696e672073656c66206173206f70657261746f724552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e744552433737373a207472616e7366657220746f20746865207a65726f20616464726573734552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f7220666f7220686f6c6465724552433737373a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654552433737373a207472616e736665722066726f6d20746865207a65726f20616464726573734552433737373a206275726e20616d6f756e7420657863656564732062616c616e63654552433737373a20617070726f766520746f20746865207a65726f2061646472657373a2646970667358221220c27a36ee20f95f42735c549518693e1a31d8f58857d9059beb0a25b9583f18b464736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063959b8c3f116100a2578063d95b637111610071578063d95b63711461052a578063dd62ed3e14610558578063fad8b32a14610586578063fc673c4f146105ac578063fe9d9303146106ea57610116565b8063959b8c3f1461041757806395d89b411461043d5780639bd9bbc614610445578063a9059cbb146104fe57610116565b806323b872dd116100e957806323b872dd1461024a578063313ce56714610280578063556f0dc71461029e57806362ad1b83146102a657806370a08231146103f157610116565b806306e485381461011b57806306fdde0314610173578063095ea7b3146101f057806318160ddd14610230575b600080fd5b610123610795565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561015f578181015183820152602001610147565b505050509050019250505060405180910390f35b61017b6107f7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b557818101518382015260200161019d565b50505050905090810190601f1680156101e25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61021c6004803603604081101561020657600080fd5b506001600160a01b038135169060200135610881565b604080519115158252519081900360200190f35b6102386108a3565b60408051918252519081900360200190f35b61021c6004803603606081101561026057600080fd5b506001600160a01b038135811691602081013590911690604001356108a9565b610288610a26565b6040805160ff9092168252519081900360200190f35b610238610a2b565b6103ef600480360360a08110156102bc57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156102f657600080fd5b82018360208201111561030857600080fd5b803590602001918460018302840111600160201b8311171561032957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561037b57600080fd5b82018360208201111561038d57600080fd5b803590602001918460018302840111600160201b831117156103ae57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a30945050505050565b005b6102386004803603602081101561040757600080fd5b50356001600160a01b0316610a92565b6103ef6004803603602081101561042d57600080fd5b50356001600160a01b0316610aad565b61017b610bf9565b6103ef6004803603606081101561045b57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561048a57600080fd5b82018360208201111561049c57600080fd5b803590602001918460018302840111600160201b831117156104bd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c5a945050505050565b61021c6004803603604081101561051457600080fd5b506001600160a01b038135169060200135610c84565b61021c6004803603604081101561054057600080fd5b506001600160a01b0381358116916020013516610d5d565b6102386004803603604081101561056e57600080fd5b506001600160a01b0381358116916020013516610dff565b6103ef6004803603602081101561059c57600080fd5b50356001600160a01b0316610e2a565b6103ef600480360360808110156105c257600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156105f157600080fd5b82018360208201111561060357600080fd5b803590602001918460018302840111600160201b8311171561062457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561067657600080fd5b82018360208201111561068857600080fd5b803590602001918460018302840111600160201b831117156106a957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f76945050505050565b6103ef6004803603604081101561070057600080fd5b81359190810190604081016020820135600160201b81111561072157600080fd5b82018360208201111561073357600080fd5b803590602001918460018302840111600160201b8311171561075457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610fd4945050505050565b606060048054806020026020016040519081016040528092919081815260200182805480156107ed57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107cf575b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156107ed5780601f10610855576101008083540402835291602001916107ed565b820191906000526020600020905b81548152906001019060200180831161086357509395945050505050565b60008061088c610ffa565b9050610899818585610ffe565b5060019392505050565b60015490565b60006001600160a01b0383166108f05760405162461bcd60e51b8152600401808060200182810382526024815260200180611d586024913960400191505060405180910390fd5b6001600160a01b0384166109355760405162461bcd60e51b8152600401808060200182810382526026815260200180611dd16026913960400191505060405180910390fd5b600061093f610ffa565b905061096d8186868660405180602001604052806000815250604051806020016040528060008152506110ea565b610999818686866040518060200160405280600081525060405180602001604052806000815250611317565b6109ed85826109e886604051806060016040528060298152602001611da8602991396001600160a01b03808c166000908152600860209081526040808320938b16835292905220549190611530565b610ffe565b610a1b81868686604051806020016040528060008152506040518060200160405280600081525060006115c7565b506001949350505050565b601290565b600190565b610a41610a3b610ffa565b86610d5d565b610a7c5760405162461bcd60e51b815260040180806020018281038252602c815260200180611d7c602c913960400191505060405180910390fd5b610a8b8585858585600161184c565b5050505050565b6001600160a01b031660009081526020819052604090205490565b806001600160a01b0316610abf610ffa565b6001600160a01b03161415610b055760405162461bcd60e51b8152600401808060200182810382526024815260200180611cc66024913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610b685760076000610b32610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff19169055610baf565b600160066000610b76610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790555b610bb7610ffa565b6001600160a01b0316816001600160a01b03167ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f960405160405180910390a350565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107ed5780601f10610855576101008083540402835291602001916107ed565b610c7f610c65610ffa565b84848460405180602001604052806000815250600161184c565b505050565b60006001600160a01b038316610ccb5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d586024913960400191505060405180910390fd5b6000610cd5610ffa565b9050610d038182868660405180602001604052806000815250604051806020016040528060008152506110ea565b610d2f818286866040518060200160405280600081525060405180602001604052806000815250611317565b61089981828686604051806020016040528060008152506040518060200160405280600081525060006115c7565b6000816001600160a01b0316836001600160a01b03161480610dc857506001600160a01b03831660009081526005602052604090205460ff168015610dc857506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b80610df857506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610e32610ffa565b6001600160a01b0316816001600160a01b03161415610e825760405162461bcd60e51b8152600401808060200182810382526021815260200180611cea6021913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610eee57600160076000610eb1610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff1916911515919091179055610f2c565b60066000610efa610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff191690555b610f34610ffa565b6001600160a01b0316816001600160a01b03167f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa160405160405180910390a350565b610f87610f81610ffa565b85610d5d565b610fc25760405162461bcd60e51b815260040180806020018281038252602c815260200180611d7c602c913960400191505060405180910390fd5b610fce84848484611923565b50505050565b610ff6610fdf610ffa565b838360405180602001604052806000815250611923565b5050565b3390565b6001600160a01b0383166110435760405162461bcd60e51b8152600401808060200182810382526025815260200180611c366025913960400191505060405180910390fd5b6001600160a01b0382166110885760405162461bcd60e51b8152600401808060200182810382526023815260200180611e1a6023913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561116e57600080fd5b505afa158015611182573d6000803e3d6000fd5b505050506040513d602081101561119857600080fd5b505190506001600160a01b0381161561130e57806001600160a01b03166375ab97828888888888886040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561124357818101518382015260200161122b565b50505050905090810190601f1680156112705780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156112a357818101518382015260200161128b565b50505050905090810190601f1680156112d05780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156112f557600080fd5b505af1158015611309573d6000803e3d6000fd5b505050505b50505050505050565b61132386868686610fce565b61136083604051806060016040528060278152602001611c7d602791396001600160a01b0388166000908152602081905260409020549190611530565b6001600160a01b03808716600090815260208190526040808220939093559086168152205461138f9084611b5d565b600080866001600160a01b03166001600160a01b0316815260200190815260200160002081905550836001600160a01b0316856001600160a01b0316876001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611440578181015183820152602001611428565b50505050905090810190601f16801561146d5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156114a0578181015183820152602001611488565b50505050905090810190601f1680156114cd5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050565b600081848411156115bf5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561158457818101518382015260200161156c565b50505050905090810190601f1680156115b15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561164b57600080fd5b505afa15801561165f573d6000803e3d6000fd5b505050506040513d602081101561167557600080fd5b505190506001600160a01b038116156117ee57806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561171f578181015183820152602001611707565b50505050905090810190601f16801561174c5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b8381101561177f578181015183820152602001611767565b50505050905090810190601f1680156117ac5780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156117d157600080fd5b505af11580156117e5573d6000803e3d6000fd5b50505050611842565b811561184257611806866001600160a01b0316611bb7565b156118425760405162461bcd60e51b815260040180806020018281038252604d815260200180611d0b604d913960600191505060405180910390fd5b5050505050505050565b6001600160a01b0386166118915760405162461bcd60e51b8152600401808060200182810382526022815260200180611c5b6022913960400191505060405180910390fd5b6001600160a01b0385166118ec576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b60006118f6610ffa565b90506119068188888888886110ea565b611914818888888888611317565b61130e818888888888886115c7565b6001600160a01b0384166119685760405162461bcd60e51b8152600401808060200182810382526022815260200180611ca46022913960400191505060405180910390fd5b6000611972610ffa565b90506119818186600087610fce565b611990818660008787876110ea565b6119cd84604051806060016040528060238152602001611df7602391396001600160a01b0388166000908152602081905260409020549190611530565b6001600160a01b0386166000908152602081905260409020556001546119f39085611bf3565b600181905550846001600160a01b0316816001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611a78578181015183820152602001611a60565b50505050905090810190601f168015611aa55780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611ad8578181015183820152602001611ac0565b50505050905090810190601f168015611b055780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516000916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b600082820183811015610df8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611beb57508115155b949350505050565b6000610df883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061153056fe4552433737373a20617070726f76652066726f6d20746865207a65726f20616464726573734552433737373a2073656e642066726f6d20746865207a65726f20616464726573734552433737373a207472616e7366657220616d6f756e7420657863656564732062616c616e63654552433737373a206275726e2066726f6d20746865207a65726f20616464726573734552433737373a20617574686f72697a696e672073656c66206173206f70657261746f724552433737373a207265766f6b696e672073656c66206173206f70657261746f724552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e744552433737373a207472616e7366657220746f20746865207a65726f20616464726573734552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f7220666f7220686f6c6465724552433737373a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654552433737373a207472616e736665722066726f6d20746865207a65726f20616464726573734552433737373a206275726e20616d6f756e7420657863656564732062616c616e63654552433737373a20617070726f766520746f20746865207a65726f2061646472657373a2646970667358221220c27a36ee20f95f42735c549518693e1a31d8f58857d9059beb0a25b9583f18b464736f6c634300060c0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "defaultOperators", "type": "address[]", "internalType": "address[]"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "AuthorizedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Burned", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Minted", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RevokedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Sent", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "holder", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "authorizeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "tokenHolder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "defaultOperators", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address[]", "internalType": "address[]"}]}, {"type": "function", "name": "granularity", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "isOperatorFor", "stateMutability": "view", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "tokenHolder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "operatorBurn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "operatorSend", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "revokeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "send", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "holder", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of the {IERC777} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. Support for ERC20 is included in this contract, as specified by the EIP: both the ERC777 and ERC20 interfaces can be safely used when interacting with it. Both {IERC777-Sent} and {IERC20-Transfer} events are emitted on token movements. Additionally, the {IERC777-granularity} value is hard-coded to `1`, meaning that there are no special restrictions in the amount of tokens that created, moved, or destroyed. This makes integration with ERC20 applications seamless.", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}. Note that operator and allowance concepts are orthogonal: operators may not have allowance, and accounts with allowance may not be operators themselves."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Note that accounts cannot have allowance issued by their operators."}, "authorizeOperator(address)": {"details": "See {IERC777-authorizeOperator}."}, "balanceOf(address)": {"details": "Returns the amount of tokens owned by an account (`tokenHolder`)."}, "burn(uint256,bytes)": {"details": "See {IERC777-burn}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."}, "constructor": {"details": "`defaultOperators` may be an empty array."}, "decimals()": {"details": "See {ERC20-decimals}. Always returns 18, as per the [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility)."}, "defaultOperators()": {"details": "See {IERC777-defaultOperators}."}, "granularity()": {"details": "See {IERC777-granularity}. This implementation always returns `1`."}, "isOperatorFor(address,address)": {"details": "See {IERC777-isOperatorFor}."}, "name()": {"details": "See {IERC777-name}."}, "operatorBurn(address,uint256,bytes,bytes)": {"details": "See {IERC777-operatorBurn}. Emits {Burned} and {IERC20-Transfer} events."}, "operatorSend(address,address,uint256,bytes,bytes)": {"details": "See {IERC777-operatorSend}. Emits {Sent} and {IERC20-Transfer} events."}, "revokeOperator(address)": {"details": "See {IERC777-revokeOperator}."}, "send(address,uint256,bytes)": {"details": "See {IERC777-send}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."}, "symbol()": {"details": "See {IERC777-symbol}."}, "totalSupply()": {"details": "See {IERC777-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient} interface if it is a contract. Also emits a {Sent} event."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Note that operator and allowance concepts are orthogonal: operators cannot call `transferFrom` (unless they have allowance), and accounts with allowance cannot call `operatorSend` (unless they are operators). Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events."}}, "version": 1}}, "IERC777": {"contractName": "IERC777", "sourceId": "token/ERC777/IERC777.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "AuthorizedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Burned", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Minted", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RevokedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Sent", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "function", "name": "authorizeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "defaultOperators", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address[]", "internalType": "address[]"}]}, {"type": "function", "name": "granularity", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "isOperatorFor", "stateMutability": "view", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "tokenHolder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "operatorBurn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "operatorSend", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "revokeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "send", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC777Token standard as defined in the EIP. This contract uses the https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let token holders and recipients react to token movements by using setting implementers for the associated interfaces in said registry. See {IERC1820Registry} and {ERC1820Implementer}.", "kind": "dev", "methods": {"authorizeOperator(address)": {"details": "Make an account an operator of the caller. See {isOperatorFor}. Emits an {AuthorizedOperator} event. Requirements - `operator` cannot be calling address."}, "balanceOf(address)": {"details": "Returns the amount of tokens owned by an account (`owner`)."}, "burn(uint256,bytes)": {"details": "Destroys `amount` tokens from the caller's account, reducing the total supply. If a send hook is registered for the caller, the corresponding function will be called with `data` and empty `operatorData`. See {IERC777Sender}. Emits a {Burned} event. Requirements - the caller must have at least `amount` tokens."}, "defaultOperators()": {"details": "Returns the list of default operators. These accounts are operators for all token holders, even if {authorizeOperator} was never called on them. This list is immutable, but individual holders may revoke these via {revokeOperator}, in which case {isOperatorFor} will return false."}, "granularity()": {"details": "Returns the smallest part of the token that is not divisible. This means all token operations (creation, movement and destruction) must have amounts that are a multiple of this number. For most token contracts, this value will equal 1."}, "isOperatorFor(address,address)": {"details": "Returns true if an account is an operator of `tokenHolder`. Operators can send and burn tokens on behalf of their owners. All accounts are their own operator. See {operatorSend} and {operatorBurn}."}, "name()": {"details": "Returns the name of the token."}, "operatorBurn(address,uint256,bytes,bytes)": {"details": "Destroys `amount` tokens from `account`, reducing the total supply. The caller must be an operator of `account`. If a send hook is registered for `account`, the corresponding function will be called with `data` and `operatorData`. See {IERC777Sender}. Emits a {Burned} event. Requirements - `account` cannot be the zero address. - `account` must have at least `amount` tokens. - the caller must be an operator for `account`."}, "operatorSend(address,address,uint256,bytes,bytes)": {"details": "Moves `amount` tokens from `sender` to `recipient`. The caller must be an operator of `sender`. If send or receive hooks are registered for `sender` and `recipient`, the corresponding functions will be called with `data` and `operatorData`. See {IERC777Sender} and {IERC777Recipient}. Emits a {Sent} event. Requirements - `sender` cannot be the zero address. - `sender` must have at least `amount` tokens. - the caller must be an operator for `sender`. - `recipient` cannot be the zero address. - if `recipient` is a contract, it must implement the {IERC777Recipient} interface."}, "revokeOperator(address)": {"details": "Revoke an account's operator status for the caller. See {isOperatorFor} and {defaultOperators}. Emits a {RevokedOperator} event. Requirements - `operator` cannot be calling address."}, "send(address,uint256,bytes)": {"details": "Moves `amount` tokens from the caller's account to `recipient`. If send or receive hooks are registered for the caller and `recipient`, the corresponding functions will be called with `data` and empty `operatorData`. See {IERC777Sender} and {IERC777Recipient}. Emits a {Sent} event. Requirements - the caller must have at least `amount` tokens. - `recipient` cannot be the zero address. - if `recipient` is a contract, it must implement the {IERC777Recipient} interface."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "Returns the amount of tokens in existence."}}, "version": 1}}, "IERC777Recipient": {"contractName": "IERC777Recipient", "sourceId": "token/ERC777/IERC777Recipient.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "tokensReceived", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "userData", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC777TokensRecipient standard as defined in the EIP. Accounts can be notified of {IERC777} tokens being sent to them by having a contract implement this interface (contract holders can be their own implementer) and registering it on the https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry]. See {IERC1820Registry} and {ERC1820Implementer}.", "kind": "dev", "methods": {"tokensReceived(address,address,address,uint256,bytes,bytes)": {"details": "Called by an {IERC777} token contract whenever tokens are being moved or created into a registered account (`to`). The type of operation is conveyed by `from` being the zero address or not. This call occurs _after_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the post-operation state. This function may revert to prevent the operation from being executed."}}, "version": 1}}, "IERC777Sender": {"contractName": "IERC777Sender", "sourceId": "token/ERC777/IERC777Sender.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "tokensToSend", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "userData", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC777TokensSender standard as defined in the EIP. {IERC777} Token holders can be notified of operations performed on their tokens by having a contract implement this interface (contract holders can be their own implementer) and registering it on the https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry]. See {IERC1820Registry} and {ERC1820Implementer}.", "kind": "dev", "methods": {"tokensToSend(address,address,address,uint256,bytes,bytes)": {"details": "Called by an {IERC777} token contract whenever a registered holder's (`from`) tokens are about to be moved or destroyed. The type of operation is conveyed by `to` being the zero address or not. This call occurs _before_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the pre-operation state. This function may revert to prevent the operation from being executed."}}, "version": 1}}, "Address": {"contractName": "Address", "sourceId": "utils/Address.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220764d456b0782b11ba00679aecd28aba3a19ad004aa794066e948e193602ad22164736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220764d456b0782b11ba00679aecd28aba3a19ad004aa794066e948e193602ad22164736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Collection of functions related to the address type", "kind": "dev", "methods": {}, "version": 1}}, "Arrays": {"contractName": "Arrays", "sourceId": "utils/Arrays.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220815e0e0b8b2d8c6204563cf60659b41afc0c0680edb09c36853f6063c80920e664736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220815e0e0b8b2d8c6204563cf60659b41afc0c0680edb09c36853f6063c80920e664736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Collection of functions related to array types.", "kind": "dev", "methods": {}, "version": 1}}, "Counters": {"contractName": "Counters", "sourceId": "utils/Counters.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220aabae1cf978f2eaeb3ab18277d982ab45df6906ad4d455f4b8157553ac3ea2d464736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220aabae1cf978f2eaeb3ab18277d982ab45df6906ad4d455f4b8157553ac3ea2d464736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"author": "Matt Condon (@shrugs)", "details": "Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number of elements in a mapping, issuing ERC721 ids, or counting request ids. Include with `using Counters for Counters.Counter;` Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath} overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never directly accessed.", "kind": "dev", "methods": {}, "title": "Counters", "version": 1}}, "Create2": {"contractName": "Create2", "sourceId": "utils/Create2.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122066371e0a77a15d7dc55d6197c7aca50e2bb8fc4c5da585fbee363d385217133864736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122066371e0a77a15d7dc55d6197c7aca50e2bb8fc4c5da585fbee363d385217133864736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Helper to make usage of the `CREATE2` EVM opcode easier and safer. `CREATE2` can be used to compute in advance the address where a smart contract will be deployed, which allows for interesting new mechanisms known as 'counterfactual interactions'. See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more information.", "kind": "dev", "methods": {}, "version": 1}}, "EnumerableMap": {"contractName": "EnumerableMap", "sourceId": "utils/EnumerableMap.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122014e347235db0c839778124b2c427ef4dddb1e9f085f79e2d9ccc6d7c73f9c60d64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122014e347235db0c839778124b2c427ef4dddb1e9f085f79e2d9ccc6d7c73f9c60d64736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Library for managing an enumerable variant of Solidity's https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] type. Maps have the following properties: - Entries are added, removed, and checked for existence in constant time (O(1)). - Entries are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { // Add the library methods using EnumerableMap for EnumerableMap.UintToAddressMap; // Declare a set state variable EnumerableMap.UintToAddressMap private myMap; } ``` As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are supported.", "kind": "dev", "methods": {}, "version": 1}}, "EnumerableSet": {"contractName": "EnumerableSet", "sourceId": "utils/EnumerableSet.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122008939c7158d4c19916fd3c09ec4ec29234b82b75801bc083bd39ccf088c87c4f64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122008939c7158d4c19916fd3c09ec4ec29234b82b75801bc083bd39ccf088c87c4f64736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Library for managing https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive types. Sets have the following properties: - Elements are added, removed, and checked for existence in constant time (O(1)). - Elements are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { // Add the library methods using EnumerableSet for EnumerableSet.AddressSet; // Declare a set state variable EnumerableSet.AddressSet private mySet; } ``` As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256` (`UintSet`) are supported.", "kind": "dev", "methods": {}, "version": 1}}, "Pausable": {"contractName": "Pausable", "sourceId": "utils/Pausable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Contract module which allows children to implement an emergency stop mechanism that can be triggered by an authorized account. This module is used through inheritance. It will make available the modifiers `whenNotPaused` and `whenPaused`, which can be applied to the functions of your contract. Note that they will not be pausable by simply including this module, only once the modifiers are put in place.", "events": {"Paused(address)": {"details": "Emitted when the pause is triggered by `account`."}, "Unpaused(address)": {"details": "Emitted when the pause is lifted by `account`."}}, "kind": "dev", "methods": {"constructor": {"details": "Initializes the contract in unpaused state."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}}, "version": 1}}, "ReentrancyGuard": {"contractName": "ReentrancyGuard", "sourceId": "utils/ReentrancyGuard.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Contract module that helps prevent reentrant calls to a function. Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier available, which can be applied to functions to make sure there are no nested (reentrant) calls to them. Note that because there is a single `nonReentrant` guard, functions marked as `nonReentrant` may not call one another. This can be worked around by making those functions `private`, and then adding `external` `nonReentrant` entry points to them. TIP: If you would like to learn more about reentrancy and alternative ways to protect against it, check out our blog post https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].", "kind": "dev", "methods": {}, "version": 1}}, "SafeCast": {"contractName": "SafeCast", "sourceId": "utils/SafeCast.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220377387d742d48452aaaf8f49520d98dec6fab2867cb85df6f0439d9b30d05ecf64736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220377387d742d48452aaaf8f49520d98dec6fab2867cb85df6f0439d9b30d05ecf64736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Wrappers over Solidity's uintXX/intXX casting operators with added overflow checks. Downcasting from uint256/int256 in Solidity does not revert on overflow. This can easily result in undesired exploitation or bugs, since developers usually assume that overflows raise errors. `SafeCast` restores this intuition by reverting the transaction when such an operation overflows. Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always. Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing all math on `uint256` and `int256` and then downcasting.", "kind": "dev", "methods": {}, "version": 1}}, "Strings": {"contractName": "Strings", "sourceId": "utils/Strings.sol", "deploymentBytecode": {"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b8d0bb04ce2bc848fd040407bc18aacabd9a6ec6dc2cc8e25eb237c7851bc9c764736f6c634300060c0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b8d0bb04ce2bc848fd040407bc18aacabd9a6ec6dc2cc8e25eb237c7851bc9c764736f6c634300060c0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "String operations.", "kind": "dev", "methods": {}, "version": 1}}}} \ No newline at end of file diff --git a/tests/functional/data/manifests/OpenZeppelin/v4.4.2/OpenZeppelin.json b/tests/functional/data/manifests/OpenZeppelin/v4.4.2/OpenZeppelin.json deleted file mode 100644 index f3adf25762..0000000000 --- a/tests/functional/data/manifests/OpenZeppelin/v4.4.2/OpenZeppelin.json +++ /dev/null @@ -1 +0,0 @@ -{"manifest": "ethpm/3", "sources": {"utils/cryptography/MerkleProof.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x0b24fe01129b29655a0f7968bfc80db3"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev These functions deal with verification of Merkle Trees proofs.\n *\n * The proofs can be generated using the JavaScript library\n * https://github.com/miguelmota/merkletreejs[merkletreejs].\n * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.\n *\n * See `test/utils/cryptography/MerkleProof.test.js` for some examples.\n */\nlibrary MerkleProof {\n /**\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\n * defined by `root`. For this, a `proof` must be provided, containing\n * sibling hashes on the branch from the leaf to the root of the tree. Each\n * pair of leaves and each pair of pre-images are assumed to be sorted.\n */\n function verify(\n bytes32[] memory proof,\n bytes32 root,\n bytes32 leaf\n ) internal pure returns (bool) {\n return processProof(proof, leaf) == root;\n }\n\n /**\n * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up\n * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt\n * hash matches the root of the tree. When processing the proof, the pairs\n * of leafs & pre-images are assumed to be sorted.\n *\n * _Available since v4.4._\n */\n function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {\n bytes32 computedHash = leaf;\n for (uint256 i = 0; i < proof.length; i++) {\n bytes32 proofElement = proof[i];\n if (computedHash <= proofElement) {\n // Hash(current computed hash + current element of the proof)\n computedHash = keccak256(abi.encodePacked(computedHash, proofElement));\n } else {\n // Hash(current element of the proof + current computed hash)\n computedHash = keccak256(abi.encodePacked(proofElement, computedHash));\n }\n }\n return computedHash;\n }\n}\n"}, "proxy/ERC1967/ERC1967Upgrade.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xceadc1585c7916aea8d2f4c04c82c462"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Upgrade.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../beacon/IBeacon.sol\";\nimport \"../../utils/Address.sol\";\nimport \"../../utils/StorageSlot.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 ERC1967Upgrade {\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 StorageSlot.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(Address.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\n StorageSlot.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 Address.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 _upgradeToAndCallSecure(\n address newImplementation,\n bytes memory data,\n bool forceCall\n ) internal {\n address oldImplementation = _getImplementation();\n\n // Initial upgrade and setup call\n _setImplementation(newImplementation);\n if (data.length > 0 || forceCall) {\n Address.functionDelegateCall(newImplementation, data);\n }\n\n // Perform rollback test if not already in progress\n StorageSlot.BooleanSlot storage rollbackTesting = StorageSlot.getBooleanSlot(_ROLLBACK_SLOT);\n if (!rollbackTesting.value) {\n // Trigger rollback using upgradeTo from the new implementation\n rollbackTesting.value = true;\n Address.functionDelegateCall(\n newImplementation,\n abi.encodeWithSignature(\"upgradeTo(address)\", oldImplementation)\n );\n rollbackTesting.value = false;\n // Check rollback was effective\n require(oldImplementation == _getImplementation(), \"ERC1967Upgrade: upgrade breaks further upgrades\");\n // Finally reset to the new implementation and log the upgrade\n _upgradeTo(newImplementation);\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 StorageSlot.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 StorageSlot.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 StorageSlot.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(Address.isContract(newBeacon), \"ERC1967: new beacon is not a contract\");\n require(\n Address.isContract(IBeacon(newBeacon).implementation()),\n \"ERC1967: beacon implementation is not a contract\"\n );\n StorageSlot.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 Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n }\n }\n}\n"}, "interfaces/IERC721.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xe6da7798a8c22c5043cc42d64a2a8f80"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC721/IERC721.sol\";\n"}, "proxy/transparent/TransparentUpgradeableProxy.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x433af24ebe64e49e21ea173b3744af6c"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/TransparentUpgradeableProxy.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC1967/ERC1967Proxy.sol\";\n\n/**\n * @dev This contract implements a proxy that is upgradeable by an admin.\n *\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\n * clashing], which can potentially be used in an attack, this contract uses the\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\n * things that go hand in hand:\n *\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\n * that call matches one of the admin functions exposed by the proxy itself.\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\n * \"admin cannot fallback to proxy target\".\n *\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\n * the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due\n * to sudden errors when trying to call a function from the proxy implementation.\n *\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\n */\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\n /**\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\n */\n constructor(\n address _logic,\n address admin_,\n bytes memory _data\n ) payable ERC1967Proxy(_logic, _data) {\n assert(_ADMIN_SLOT == bytes32(uint256(keccak256(\"eip1967.proxy.admin\")) - 1));\n _changeAdmin(admin_);\n }\n\n /**\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\n */\n modifier ifAdmin() {\n if (msg.sender == _getAdmin()) {\n _;\n } else {\n _fallback();\n }\n }\n\n /**\n * @dev Returns the current admin.\n *\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\n */\n function admin() external ifAdmin returns (address admin_) {\n admin_ = _getAdmin();\n }\n\n /**\n * @dev Returns the current implementation.\n *\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\n */\n function implementation() external ifAdmin returns (address implementation_) {\n implementation_ = _implementation();\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {AdminChanged} event.\n *\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\n */\n function changeAdmin(address newAdmin) external virtual ifAdmin {\n _changeAdmin(newAdmin);\n }\n\n /**\n * @dev Upgrade the implementation of the proxy.\n *\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\n */\n function upgradeTo(address newImplementation) external ifAdmin {\n _upgradeToAndCall(newImplementation, bytes(\"\"), false);\n }\n\n /**\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\n * proxied contract.\n *\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\n */\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\n _upgradeToAndCall(newImplementation, data, true);\n }\n\n /**\n * @dev Returns the current admin.\n */\n function _admin() internal view virtual returns (address) {\n return _getAdmin();\n }\n\n /**\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\n */\n function _beforeFallback() internal virtual override {\n require(msg.sender != _getAdmin(), \"TransparentUpgradeableProxy: admin cannot fallback to proxy target\");\n super._beforeFallback();\n }\n}\n"}, "mocks/ERC1155BurnableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x81d86936cc90a2e9aef2539052e7bc42"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC1155/extensions/ERC1155Burnable.sol\";\n\ncontract ERC1155BurnableMock is ERC1155Burnable {\n constructor(string memory uri) ERC1155(uri) {}\n\n function mint(\n address to,\n uint256 id,\n uint256 value,\n bytes memory data\n ) public {\n _mint(to, id, value, data);\n }\n}\n"}, "token/ERC20/ERC20.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf48de0eaae9544072b8766e2eac528a7"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC20.sol\";\nimport \"./extensions/IERC20Metadata.sol\";\nimport \"../../utils/Context.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.zeppelin.solutions/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 ERC20 is Context, IERC20, IERC20Metadata {\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 constructor(string memory name_, string memory symbol_) {\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 * - `recipient` cannot be the zero address.\n * - the caller must have a balance of at least `amount`.\n */\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, 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 * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\n _approve(_msgSender(), 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 * 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 _transfer(sender, recipient, amount);\n\n uint256 currentAllowance = _allowances[sender][_msgSender()];\n require(currentAllowance >= amount, \"ERC20: transfer amount exceeds allowance\");\n unchecked {\n _approve(sender, _msgSender(), currentAllowance - amount);\n }\n\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 _approve(_msgSender(), spender, _allowances[_msgSender()][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 uint256 currentAllowance = _allowances[_msgSender()][spender];\n require(currentAllowance >= subtractedValue, \"ERC20: decreased allowance below zero\");\n unchecked {\n _approve(_msgSender(), spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n /**\n * @dev Moves `amount` of tokens from `sender` to `recipient`.\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 * - `sender` cannot be the zero address.\n * - `recipient` cannot be the zero address.\n * - `sender` must have a balance of at least `amount`.\n */\n function _transfer(\n address sender,\n address recipient,\n uint256 amount\n ) internal virtual {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(sender, recipient, amount);\n\n uint256 senderBalance = _balances[sender];\n require(senderBalance >= amount, \"ERC20: transfer amount exceeds balance\");\n unchecked {\n _balances[sender] = senderBalance - amount;\n }\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n\n _afterTokenTransfer(sender, recipient, 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 _balances[account] += amount;\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 }\n _totalSupply -= amount;\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 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"}, "mocks/wizard/MyGovernor1.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x03abfd7c9d5d4f463bc9d4a3dc76347b"}, "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.2;\n\nimport \"../../governance/Governor.sol\";\nimport \"../../governance/extensions/GovernorCountingSimple.sol\";\nimport \"../../governance/extensions/GovernorVotes.sol\";\nimport \"../../governance/extensions/GovernorVotesQuorumFraction.sol\";\nimport \"../../governance/extensions/GovernorTimelockControl.sol\";\n\ncontract MyGovernor1 is\n Governor,\n GovernorTimelockControl,\n GovernorVotes,\n GovernorVotesQuorumFraction,\n GovernorCountingSimple\n{\n constructor(ERC20Votes _token, TimelockController _timelock)\n Governor(\"MyGovernor\")\n GovernorVotes(_token)\n GovernorVotesQuorumFraction(4)\n GovernorTimelockControl(_timelock)\n {}\n\n function votingDelay() public pure override returns (uint256) {\n return 1; // 1 block\n }\n\n function votingPeriod() public pure override returns (uint256) {\n return 45818; // 1 week\n }\n\n // The following functions are overrides required by Solidity.\n\n function quorum(uint256 blockNumber)\n public\n view\n override(IGovernor, GovernorVotesQuorumFraction)\n returns (uint256)\n {\n return super.quorum(blockNumber);\n }\n\n function getVotes(address account, uint256 blockNumber)\n public\n view\n override(IGovernor, GovernorVotes)\n returns (uint256)\n {\n return super.getVotes(account, blockNumber);\n }\n\n function state(uint256 proposalId) public view override(Governor, GovernorTimelockControl) returns (ProposalState) {\n return super.state(proposalId);\n }\n\n function propose(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n string memory description\n ) public override(Governor, IGovernor) returns (uint256) {\n return super.propose(targets, values, calldatas, description);\n }\n\n function _execute(\n uint256 proposalId,\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal override(Governor, GovernorTimelockControl) {\n super._execute(proposalId, targets, values, calldatas, descriptionHash);\n }\n\n function _cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal override(Governor, GovernorTimelockControl) returns (uint256) {\n return super._cancel(targets, values, calldatas, descriptionHash);\n }\n\n function _executor() internal view override(Governor, GovernorTimelockControl) returns (address) {\n return super._executor();\n }\n\n function supportsInterface(bytes4 interfaceId)\n public\n view\n override(Governor, GovernorTimelockControl)\n returns (bool)\n {\n return super.supportsInterface(interfaceId);\n }\n}\n"}, "mocks/AddressImpl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x521efadbf907d3700ca7378b35bd0c1b"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Address.sol\";\n\ncontract AddressImpl {\n string public sharedAnswer;\n\n event CallReturnValue(string data);\n\n function isContract(address account) external view returns (bool) {\n return Address.isContract(account);\n }\n\n function sendValue(address payable receiver, uint256 amount) external {\n Address.sendValue(receiver, amount);\n }\n\n function functionCall(address target, bytes calldata data) external {\n bytes memory returnData = Address.functionCall(target, data);\n emit CallReturnValue(abi.decode(returnData, (string)));\n }\n\n function functionCallWithValue(\n address target,\n bytes calldata data,\n uint256 value\n ) external payable {\n bytes memory returnData = Address.functionCallWithValue(target, data, value);\n emit CallReturnValue(abi.decode(returnData, (string)));\n }\n\n function functionStaticCall(address target, bytes calldata data) external {\n bytes memory returnData = Address.functionStaticCall(target, data);\n emit CallReturnValue(abi.decode(returnData, (string)));\n }\n\n function functionDelegateCall(address target, bytes calldata data) external {\n bytes memory returnData = Address.functionDelegateCall(target, data);\n emit CallReturnValue(abi.decode(returnData, (string)));\n }\n\n // sendValue's tests require the contract to hold Ether\n receive() external payable {}\n}\n"}, "proxy/utils/Initializable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x84a9b0b71e63a3fd568c61e210b77064"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/Address.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 a proxied contract can't have 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 * 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 initialize the implementation contract, you can either invoke the\n * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() initializer {}\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n bool 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 Modifier to protect an initializer function from being invoked twice.\n */\n modifier initializer() {\n // If the contract is initializing we ignore whether _initialized is set in order to support multiple\n // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the\n // contract may have been reentered.\n require(_initializing ? _isConstructor() : !_initialized, \"Initializable: contract is already initialized\");\n\n bool isTopLevelCall = !_initializing;\n if (isTopLevelCall) {\n _initializing = true;\n _initialized = true;\n }\n\n _;\n\n if (isTopLevelCall) {\n _initializing = false;\n }\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} modifier, directly or indirectly.\n */\n modifier onlyInitializing() {\n require(_initializing, \"Initializable: contract is not initializing\");\n _;\n }\n\n function _isConstructor() private view returns (bool) {\n return !Address.isContract(address(this));\n }\n}\n"}, "utils/cryptography/ECDSA.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x395edffd6bb2b3ba29970d5814039654"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../Strings.sol\";\n\n/**\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\n *\n * These functions can be used to verify that a message was signed by the holder\n * of the private keys of a given address.\n */\nlibrary ECDSA {\n enum RecoverError {\n NoError,\n InvalidSignature,\n InvalidSignatureLength,\n InvalidSignatureS,\n InvalidSignatureV\n }\n\n function _throwError(RecoverError error) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert(\"ECDSA: invalid signature\");\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert(\"ECDSA: invalid signature length\");\n } else if (error == RecoverError.InvalidSignatureS) {\n revert(\"ECDSA: invalid signature 's' value\");\n } else if (error == RecoverError.InvalidSignatureV) {\n revert(\"ECDSA: invalid signature 'v' value\");\n }\n }\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with\n * `signature` or error string. This address can then be used for verification purposes.\n *\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n * this function rejects them by requiring the `s` value to be in the lower\n * half order, and the `v` value to be either 27 or 28.\n *\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n * verification to be secure: it is possible to craft signatures that\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n * this is by receiving a hash of the original message (which may otherwise\n * be too long), and then calling {toEthSignedMessageHash} on it.\n *\n * Documentation for signature generation:\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\n *\n * _Available since v4.3._\n */\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\n // Check the signature length\n // - case 65: r,s,v signature (standard)\n // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._\n if (signature.length == 65) {\n bytes32 r;\n bytes32 s;\n uint8 v;\n // ecrecover takes the signature parameters, and the only way to get them\n // currently is to use assembly.\n assembly {\n r := mload(add(signature, 0x20))\n s := mload(add(signature, 0x40))\n v := byte(0, mload(add(signature, 0x60)))\n }\n return tryRecover(hash, v, r, s);\n } else if (signature.length == 64) {\n bytes32 r;\n bytes32 vs;\n // ecrecover takes the signature parameters, and the only way to get them\n // currently is to use assembly.\n assembly {\n r := mload(add(signature, 0x20))\n vs := mload(add(signature, 0x40))\n }\n return tryRecover(hash, r, vs);\n } else {\n return (address(0), RecoverError.InvalidSignatureLength);\n }\n }\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with\n * `signature`. This address can then be used for verification purposes.\n *\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n * this function rejects them by requiring the `s` value to be in the lower\n * half order, and the `v` value to be either 27 or 28.\n *\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n * verification to be secure: it is possible to craft signatures that\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n * this is by receiving a hash of the original message (which may otherwise\n * be too long), and then calling {toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error) = tryRecover(hash, signature);\n _throwError(error);\n return recovered;\n }\n\n /**\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\n *\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\n *\n * _Available since v4.3._\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address, RecoverError) {\n bytes32 s;\n uint8 v;\n assembly {\n s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)\n v := add(shr(255, vs), 27)\n }\n return tryRecover(hash, v, r, s);\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n *\n * _Available since v4.2._\n */\n function recover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address) {\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\n _throwError(error);\n return recovered;\n }\n\n /**\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\n * `r` and `s` signature fields separately.\n *\n * _Available since v4.3._\n */\n function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address, RecoverError) {\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\n // the valid range for s in (301): 0 < s < secp256k1n \u00f7 2 + 1, and for v in (302): v \u2208 {27, 28}. Most\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\n //\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\n // these malleable signatures as well.\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\n return (address(0), RecoverError.InvalidSignatureS);\n }\n if (v != 27 && v != 28) {\n return (address(0), RecoverError.InvalidSignatureV);\n }\n\n // If the signature is valid (and not malleable), return the signer address\n address signer = ecrecover(hash, v, r, s);\n if (signer == address(0)) {\n return (address(0), RecoverError.InvalidSignature);\n }\n\n return (signer, RecoverError.NoError);\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address) {\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\n _throwError(error);\n return recovered;\n }\n\n /**\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\n * produces hash corresponding to the one signed with the\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\n * JSON-RPC method as part of EIP-191.\n *\n * See {recover}.\n */\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\n // 32 is the length in bytes of hash,\n // enforced by the type signature above\n return keccak256(abi.encodePacked(\"\\x19Ethereum Signed Message:\\n32\", hash));\n }\n\n /**\n * @dev Returns an Ethereum Signed Message, created from `s`. This\n * produces hash corresponding to the one signed with the\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\n * JSON-RPC method as part of EIP-191.\n *\n * See {recover}.\n */\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(\"\\x19Ethereum Signed Message:\\n\", Strings.toString(s.length), s));\n }\n\n /**\n * @dev Returns an Ethereum Signed Typed Data, created from a\n * `domainSeparator` and a `structHash`. This produces hash corresponding\n * to the one signed with the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\n * JSON-RPC method as part of EIP-712.\n *\n * See {recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(\"\\x19\\x01\", domainSeparator, structHash));\n }\n}\n"}, "mocks/PullPaymentMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xadf7049bf6c48f7c5fe7681ed4f2bd54"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../security/PullPayment.sol\";\n\n// mock class using PullPayment\ncontract PullPaymentMock is PullPayment {\n constructor() payable {}\n\n // test helper function to call asyncTransfer\n function callTransfer(address dest, uint256 amount) public {\n _asyncTransfer(dest, amount);\n }\n}\n"}, "mocks/ERC20PausableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x751b5341b45a270abb1629777a9624ac"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/extensions/ERC20Pausable.sol\";\n\n// mock class using ERC20Pausable\ncontract ERC20PausableMock is ERC20Pausable {\n constructor(\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n\n function mint(address to, uint256 amount) public {\n _mint(to, amount);\n }\n\n function burn(address from, uint256 amount) public {\n _burn(from, amount);\n }\n}\n"}, "token/ERC721/ERC721.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xead7082e39cf31875ff89b22f473500d"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC721.sol\";\nimport \"./IERC721Receiver.sol\";\nimport \"./extensions/IERC721Metadata.sol\";\nimport \"../../utils/Address.sol\";\nimport \"../../utils/Context.sol\";\nimport \"../../utils/Strings.sol\";\nimport \"../../utils/introspection/ERC165.sol\";\n\n/**\n * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including\n * the Metadata extension, but not including the Enumerable extension, which is available separately as\n * {ERC721Enumerable}.\n */\ncontract ERC721 is Context, ERC165, IERC721, IERC721Metadata {\n using Address for address;\n using Strings for uint256;\n\n // Token name\n string private _name;\n\n // Token symbol\n string private _symbol;\n\n // Mapping from token ID to owner address\n mapping(uint256 => address) private _owners;\n\n // Mapping owner address to token count\n mapping(address => uint256) private _balances;\n\n // Mapping from token ID to approved address\n mapping(uint256 => address) private _tokenApprovals;\n\n // Mapping from owner to operator approvals\n mapping(address => mapping(address => bool)) private _operatorApprovals;\n\n /**\n * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.\n */\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n _symbol = symbol_;\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {\n return\n interfaceId == type(IERC721).interfaceId ||\n interfaceId == type(IERC721Metadata).interfaceId ||\n super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev See {IERC721-balanceOf}.\n */\n function balanceOf(address owner) public view virtual override returns (uint256) {\n require(owner != address(0), \"ERC721: balance query for the zero address\");\n return _balances[owner];\n }\n\n /**\n * @dev See {IERC721-ownerOf}.\n */\n function ownerOf(uint256 tokenId) public view virtual override returns (address) {\n address owner = _owners[tokenId];\n require(owner != address(0), \"ERC721: owner query for nonexistent token\");\n return owner;\n }\n\n /**\n * @dev See {IERC721Metadata-name}.\n */\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev See {IERC721Metadata-symbol}.\n */\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev See {IERC721Metadata-tokenURI}.\n */\n function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {\n require(_exists(tokenId), \"ERC721Metadata: URI query for nonexistent token\");\n\n string memory baseURI = _baseURI();\n return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : \"\";\n }\n\n /**\n * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each\n * token will be the concatenation of the `baseURI` and the `tokenId`. Empty\n * by default, can be overriden in child contracts.\n */\n function _baseURI() internal view virtual returns (string memory) {\n return \"\";\n }\n\n /**\n * @dev See {IERC721-approve}.\n */\n function approve(address to, uint256 tokenId) public virtual override {\n address owner = ERC721.ownerOf(tokenId);\n require(to != owner, \"ERC721: approval to current owner\");\n\n require(\n _msgSender() == owner || isApprovedForAll(owner, _msgSender()),\n \"ERC721: approve caller is not owner nor approved for all\"\n );\n\n _approve(to, tokenId);\n }\n\n /**\n * @dev See {IERC721-getApproved}.\n */\n function getApproved(uint256 tokenId) public view virtual override returns (address) {\n require(_exists(tokenId), \"ERC721: approved query for nonexistent token\");\n\n return _tokenApprovals[tokenId];\n }\n\n /**\n * @dev See {IERC721-setApprovalForAll}.\n */\n function setApprovalForAll(address operator, bool approved) public virtual override {\n _setApprovalForAll(_msgSender(), operator, approved);\n }\n\n /**\n * @dev See {IERC721-isApprovedForAll}.\n */\n function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {\n return _operatorApprovals[owner][operator];\n }\n\n /**\n * @dev See {IERC721-transferFrom}.\n */\n function transferFrom(\n address from,\n address to,\n uint256 tokenId\n ) public virtual override {\n //solhint-disable-next-line max-line-length\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721: transfer caller is not owner nor approved\");\n\n _transfer(from, to, tokenId);\n }\n\n /**\n * @dev See {IERC721-safeTransferFrom}.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId\n ) public virtual override {\n safeTransferFrom(from, to, tokenId, \"\");\n }\n\n /**\n * @dev See {IERC721-safeTransferFrom}.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId,\n bytes memory _data\n ) public virtual override {\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721: transfer caller is not owner nor approved\");\n _safeTransfer(from, to, tokenId, _data);\n }\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * `_data` is additional data, it has no specified format and it is sent in call to `to`.\n *\n * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.\n * implement alternative mechanisms to perform token transfer, such as signature-based.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function _safeTransfer(\n address from,\n address to,\n uint256 tokenId,\n bytes memory _data\n ) internal virtual {\n _transfer(from, to, tokenId);\n require(_checkOnERC721Received(from, to, tokenId, _data), \"ERC721: transfer to non ERC721Receiver implementer\");\n }\n\n /**\n * @dev Returns whether `tokenId` exists.\n *\n * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.\n *\n * Tokens start existing when they are minted (`_mint`),\n * and stop existing when they are burned (`_burn`).\n */\n function _exists(uint256 tokenId) internal view virtual returns (bool) {\n return _owners[tokenId] != address(0);\n }\n\n /**\n * @dev Returns whether `spender` is allowed to manage `tokenId`.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {\n require(_exists(tokenId), \"ERC721: operator query for nonexistent token\");\n address owner = ERC721.ownerOf(tokenId);\n return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));\n }\n\n /**\n * @dev Safely mints `tokenId` and transfers it to `to`.\n *\n * Requirements:\n *\n * - `tokenId` must not exist.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function _safeMint(address to, uint256 tokenId) internal virtual {\n _safeMint(to, tokenId, \"\");\n }\n\n /**\n * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is\n * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n */\n function _safeMint(\n address to,\n uint256 tokenId,\n bytes memory _data\n ) internal virtual {\n _mint(to, tokenId);\n require(\n _checkOnERC721Received(address(0), to, tokenId, _data),\n \"ERC721: transfer to non ERC721Receiver implementer\"\n );\n }\n\n /**\n * @dev Mints `tokenId` and transfers it to `to`.\n *\n * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible\n *\n * Requirements:\n *\n * - `tokenId` must not exist.\n * - `to` cannot be the zero address.\n *\n * Emits a {Transfer} event.\n */\n function _mint(address to, uint256 tokenId) internal virtual {\n require(to != address(0), \"ERC721: mint to the zero address\");\n require(!_exists(tokenId), \"ERC721: token already minted\");\n\n _beforeTokenTransfer(address(0), to, tokenId);\n\n _balances[to] += 1;\n _owners[tokenId] = to;\n\n emit Transfer(address(0), to, tokenId);\n }\n\n /**\n * @dev Destroys `tokenId`.\n * The approval is cleared when the token is burned.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n *\n * Emits a {Transfer} event.\n */\n function _burn(uint256 tokenId) internal virtual {\n address owner = ERC721.ownerOf(tokenId);\n\n _beforeTokenTransfer(owner, address(0), tokenId);\n\n // Clear approvals\n _approve(address(0), tokenId);\n\n _balances[owner] -= 1;\n delete _owners[tokenId];\n\n emit Transfer(owner, address(0), tokenId);\n }\n\n /**\n * @dev Transfers `tokenId` from `from` to `to`.\n * As opposed to {transferFrom}, this imposes no restrictions on msg.sender.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n *\n * Emits a {Transfer} event.\n */\n function _transfer(\n address from,\n address to,\n uint256 tokenId\n ) internal virtual {\n require(ERC721.ownerOf(tokenId) == from, \"ERC721: transfer of token that is not own\");\n require(to != address(0), \"ERC721: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, tokenId);\n\n // Clear approvals from the previous owner\n _approve(address(0), tokenId);\n\n _balances[from] -= 1;\n _balances[to] += 1;\n _owners[tokenId] = to;\n\n emit Transfer(from, to, tokenId);\n }\n\n /**\n * @dev Approve `to` to operate on `tokenId`\n *\n * Emits a {Approval} event.\n */\n function _approve(address to, uint256 tokenId) internal virtual {\n _tokenApprovals[tokenId] = to;\n emit Approval(ERC721.ownerOf(tokenId), to, tokenId);\n }\n\n /**\n * @dev Approve `operator` to operate on all of `owner` tokens\n *\n * Emits a {ApprovalForAll} event.\n */\n function _setApprovalForAll(\n address owner,\n address operator,\n bool approved\n ) internal virtual {\n require(owner != operator, \"ERC721: approve to caller\");\n _operatorApprovals[owner][operator] = approved;\n emit ApprovalForAll(owner, operator, approved);\n }\n\n /**\n * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.\n * The call is not executed if the target address is not a contract.\n *\n * @param from address representing the previous owner of the given token ID\n * @param to target address that will receive the tokens\n * @param tokenId uint256 ID of the token to be transferred\n * @param _data bytes optional data to send along with the call\n * @return bool whether the call correctly returned the expected magic value\n */\n function _checkOnERC721Received(\n address from,\n address to,\n uint256 tokenId,\n bytes memory _data\n ) private returns (bool) {\n if (to.isContract()) {\n try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {\n return retval == IERC721Receiver.onERC721Received.selector;\n } catch (bytes memory reason) {\n if (reason.length == 0) {\n revert(\"ERC721: transfer to non ERC721Receiver implementer\");\n } else {\n assembly {\n revert(add(32, reason), mload(reason))\n }\n }\n }\n } else {\n return true;\n }\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes minting\n * and burning.\n *\n * Calling conditions:\n *\n * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be\n * transferred to `to`.\n * - When `from` is zero, `tokenId` will be minted for `to`.\n * - When `to` is zero, ``from``'s `tokenId` 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 tokenId\n ) internal virtual {}\n}\n"}, "token/ERC1155/ERC1155.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x1d68a32647e54f6acd6ff471d940ef4c"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC1155.sol\";\nimport \"./IERC1155Receiver.sol\";\nimport \"./extensions/IERC1155MetadataURI.sol\";\nimport \"../../utils/Address.sol\";\nimport \"../../utils/Context.sol\";\nimport \"../../utils/introspection/ERC165.sol\";\n\n/**\n * @dev Implementation of the basic standard multi-token.\n * See https://eips.ethereum.org/EIPS/eip-1155\n * Originally based on code by Enjin: https://github.com/enjin/erc-1155\n *\n * _Available since v3.1._\n */\ncontract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {\n using Address for address;\n\n // Mapping from token ID to account balances\n mapping(uint256 => mapping(address => uint256)) private _balances;\n\n // Mapping from account to operator approvals\n mapping(address => mapping(address => bool)) private _operatorApprovals;\n\n // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json\n string private _uri;\n\n /**\n * @dev See {_setURI}.\n */\n constructor(string memory uri_) {\n _setURI(uri_);\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {\n return\n interfaceId == type(IERC1155).interfaceId ||\n interfaceId == type(IERC1155MetadataURI).interfaceId ||\n super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev See {IERC1155MetadataURI-uri}.\n *\n * This implementation returns the same URI for *all* token types. It relies\n * on the token type ID substitution mechanism\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\n *\n * Clients calling this function must replace the `\\{id\\}` substring with the\n * actual token type ID.\n */\n function uri(uint256) public view virtual override returns (string memory) {\n return _uri;\n }\n\n /**\n * @dev See {IERC1155-balanceOf}.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {\n require(account != address(0), \"ERC1155: balance query for the zero address\");\n return _balances[id][account];\n }\n\n /**\n * @dev See {IERC1155-balanceOfBatch}.\n *\n * Requirements:\n *\n * - `accounts` and `ids` must have the same length.\n */\n function balanceOfBatch(address[] memory accounts, uint256[] memory ids)\n public\n view\n virtual\n override\n returns (uint256[] memory)\n {\n require(accounts.length == ids.length, \"ERC1155: accounts and ids length mismatch\");\n\n uint256[] memory batchBalances = new uint256[](accounts.length);\n\n for (uint256 i = 0; i < accounts.length; ++i) {\n batchBalances[i] = balanceOf(accounts[i], ids[i]);\n }\n\n return batchBalances;\n }\n\n /**\n * @dev See {IERC1155-setApprovalForAll}.\n */\n function setApprovalForAll(address operator, bool approved) public virtual override {\n _setApprovalForAll(_msgSender(), operator, approved);\n }\n\n /**\n * @dev See {IERC1155-isApprovedForAll}.\n */\n function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {\n return _operatorApprovals[account][operator];\n }\n\n /**\n * @dev See {IERC1155-safeTransferFrom}.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 id,\n uint256 amount,\n bytes memory data\n ) public virtual override {\n require(\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\n \"ERC1155: caller is not owner nor approved\"\n );\n _safeTransferFrom(from, to, id, amount, data);\n }\n\n /**\n * @dev See {IERC1155-safeBatchTransferFrom}.\n */\n function safeBatchTransferFrom(\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n ) public virtual override {\n require(\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\n \"ERC1155: transfer caller is not owner nor approved\"\n );\n _safeBatchTransferFrom(from, to, ids, amounts, data);\n }\n\n /**\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\n *\n * Emits a {TransferSingle} event.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\n * acceptance magic value.\n */\n function _safeTransferFrom(\n address from,\n address to,\n uint256 id,\n uint256 amount,\n bytes memory data\n ) internal virtual {\n require(to != address(0), \"ERC1155: transfer to the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);\n\n uint256 fromBalance = _balances[id][from];\n require(fromBalance >= amount, \"ERC1155: insufficient balance for transfer\");\n unchecked {\n _balances[id][from] = fromBalance - amount;\n }\n _balances[id][to] += amount;\n\n emit TransferSingle(operator, from, to, id, amount);\n\n _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);\n }\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.\n *\n * Emits a {TransferBatch} event.\n *\n * Requirements:\n *\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\n * acceptance magic value.\n */\n function _safeBatchTransferFrom(\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n ) internal virtual {\n require(ids.length == amounts.length, \"ERC1155: ids and amounts length mismatch\");\n require(to != address(0), \"ERC1155: transfer to the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, from, to, ids, amounts, data);\n\n for (uint256 i = 0; i < ids.length; ++i) {\n uint256 id = ids[i];\n uint256 amount = amounts[i];\n\n uint256 fromBalance = _balances[id][from];\n require(fromBalance >= amount, \"ERC1155: insufficient balance for transfer\");\n unchecked {\n _balances[id][from] = fromBalance - amount;\n }\n _balances[id][to] += amount;\n }\n\n emit TransferBatch(operator, from, to, ids, amounts);\n\n _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);\n }\n\n /**\n * @dev Sets a new URI for all token types, by relying on the token type ID\n * substitution mechanism\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\n *\n * By this mechanism, any occurrence of the `\\{id\\}` substring in either the\n * URI or any of the amounts in the JSON file at said URI will be replaced by\n * clients with the token type ID.\n *\n * For example, the `https://token-cdn-domain/\\{id\\}.json` URI would be\n * interpreted by clients as\n * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`\n * for token type ID 0x4cce0.\n *\n * See {uri}.\n *\n * Because these URIs cannot be meaningfully represented by the {URI} event,\n * this function emits no events.\n */\n function _setURI(string memory newuri) internal virtual {\n _uri = newuri;\n }\n\n /**\n * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.\n *\n * Emits a {TransferSingle} event.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\n * acceptance magic value.\n */\n function _mint(\n address to,\n uint256 id,\n uint256 amount,\n bytes memory data\n ) internal virtual {\n require(to != address(0), \"ERC1155: mint to the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);\n\n _balances[id][to] += amount;\n emit TransferSingle(operator, address(0), to, id, amount);\n\n _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);\n }\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\n * acceptance magic value.\n */\n function _mintBatch(\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n ) internal virtual {\n require(to != address(0), \"ERC1155: mint to the zero address\");\n require(ids.length == amounts.length, \"ERC1155: ids and amounts length mismatch\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);\n\n for (uint256 i = 0; i < ids.length; i++) {\n _balances[ids[i]][to] += amounts[i];\n }\n\n emit TransferBatch(operator, address(0), to, ids, amounts);\n\n _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);\n }\n\n /**\n * @dev Destroys `amount` tokens of token type `id` from `from`\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `from` must have at least `amount` tokens of token type `id`.\n */\n function _burn(\n address from,\n uint256 id,\n uint256 amount\n ) internal virtual {\n require(from != address(0), \"ERC1155: burn from the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), \"\");\n\n uint256 fromBalance = _balances[id][from];\n require(fromBalance >= amount, \"ERC1155: burn amount exceeds balance\");\n unchecked {\n _balances[id][from] = fromBalance - amount;\n }\n\n emit TransferSingle(operator, from, address(0), id, amount);\n }\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n */\n function _burnBatch(\n address from,\n uint256[] memory ids,\n uint256[] memory amounts\n ) internal virtual {\n require(from != address(0), \"ERC1155: burn from the zero address\");\n require(ids.length == amounts.length, \"ERC1155: ids and amounts length mismatch\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, from, address(0), ids, amounts, \"\");\n\n for (uint256 i = 0; i < ids.length; i++) {\n uint256 id = ids[i];\n uint256 amount = amounts[i];\n\n uint256 fromBalance = _balances[id][from];\n require(fromBalance >= amount, \"ERC1155: burn amount exceeds balance\");\n unchecked {\n _balances[id][from] = fromBalance - amount;\n }\n }\n\n emit TransferBatch(operator, from, address(0), ids, amounts);\n }\n\n /**\n * @dev Approve `operator` to operate on all of `owner` tokens\n *\n * Emits a {ApprovalForAll} event.\n */\n function _setApprovalForAll(\n address owner,\n address operator,\n bool approved\n ) internal virtual {\n require(owner != operator, \"ERC1155: setting approval status for self\");\n _operatorApprovals[owner][operator] = approved;\n emit ApprovalForAll(owner, operator, approved);\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes minting\n * and burning, as well as batched variants.\n *\n * The same hook is called on both single and batched variants. For single\n * transfers, the length of the `id` and `amount` arrays will be 1.\n *\n * Calling conditions (for each `id` and `amount` pair):\n *\n * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * of token type `id` will be transferred to `to`.\n * - When `from` is zero, `amount` tokens of token type `id` will be minted\n * for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`\n * will be burned.\n * - `from` and `to` are never both zero.\n * - `ids` and `amounts` have the same, non-zero length.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n ) internal virtual {}\n\n function _doSafeTransferAcceptanceCheck(\n address operator,\n address from,\n address to,\n uint256 id,\n uint256 amount,\n bytes memory data\n ) private {\n if (to.isContract()) {\n try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {\n if (response != IERC1155Receiver.onERC1155Received.selector) {\n revert(\"ERC1155: ERC1155Receiver rejected tokens\");\n }\n } catch Error(string memory reason) {\n revert(reason);\n } catch {\n revert(\"ERC1155: transfer to non ERC1155Receiver implementer\");\n }\n }\n }\n\n function _doSafeBatchTransferAcceptanceCheck(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n ) private {\n if (to.isContract()) {\n try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (\n bytes4 response\n ) {\n if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {\n revert(\"ERC1155: ERC1155Receiver rejected tokens\");\n }\n } catch Error(string memory reason) {\n revert(reason);\n } catch {\n revert(\"ERC1155: transfer to non ERC1155Receiver implementer\");\n }\n }\n }\n\n function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {\n uint256[] memory array = new uint256[](1);\n array[0] = element;\n\n return array;\n }\n}\n"}, "mocks/MathMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xc6fa84338b2c086355768de38de69118"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/math/Math.sol\";\n\ncontract MathMock {\n function max(uint256 a, uint256 b) public pure returns (uint256) {\n return Math.max(a, b);\n }\n\n function min(uint256 a, uint256 b) public pure returns (uint256) {\n return Math.min(a, b);\n }\n\n function average(uint256 a, uint256 b) public pure returns (uint256) {\n return Math.average(a, b);\n }\n\n function ceilDiv(uint256 a, uint256 b) public pure returns (uint256) {\n return Math.ceilDiv(a, b);\n }\n}\n"}, "mocks/SafeCastMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x88d508f23615100bb2d5df5154d18112"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/math/SafeCast.sol\";\n\ncontract SafeCastMock {\n using SafeCast for uint256;\n using SafeCast for int256;\n\n function toUint256(int256 a) public pure returns (uint256) {\n return a.toUint256();\n }\n\n function toUint224(uint256 a) public pure returns (uint224) {\n return a.toUint224();\n }\n\n function toUint128(uint256 a) public pure returns (uint128) {\n return a.toUint128();\n }\n\n function toUint96(uint256 a) public pure returns (uint96) {\n return a.toUint96();\n }\n\n function toUint64(uint256 a) public pure returns (uint64) {\n return a.toUint64();\n }\n\n function toUint32(uint256 a) public pure returns (uint32) {\n return a.toUint32();\n }\n\n function toUint16(uint256 a) public pure returns (uint16) {\n return a.toUint16();\n }\n\n function toUint8(uint256 a) public pure returns (uint8) {\n return a.toUint8();\n }\n\n function toInt256(uint256 a) public pure returns (int256) {\n return a.toInt256();\n }\n\n function toInt128(int256 a) public pure returns (int128) {\n return a.toInt128();\n }\n\n function toInt64(int256 a) public pure returns (int64) {\n return a.toInt64();\n }\n\n function toInt32(int256 a) public pure returns (int32) {\n return a.toInt32();\n }\n\n function toInt16(int256 a) public pure returns (int16) {\n return a.toInt16();\n }\n\n function toInt8(int256 a) public pure returns (int8) {\n return a.toInt8();\n }\n}\n"}, "mocks/ERC777Mock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x3264b51fb51450bf75d97ae95835fc72"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\nimport \"../token/ERC777/ERC777.sol\";\n\ncontract ERC777Mock is Context, ERC777 {\n event BeforeTokenTransfer();\n\n constructor(\n address initialHolder,\n uint256 initialBalance,\n string memory name,\n string memory symbol,\n address[] memory defaultOperators\n ) ERC777(name, symbol, defaultOperators) {\n _mint(initialHolder, initialBalance, \"\", \"\");\n }\n\n function mintInternal(\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n ) public {\n _mint(to, amount, userData, operatorData);\n }\n\n function mintInternalExtended(\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData,\n bool requireReceptionAck\n ) public {\n _mint(to, amount, userData, operatorData, requireReceptionAck);\n }\n\n function approveInternal(\n address holder,\n address spender,\n uint256 value\n ) public {\n _approve(holder, spender, value);\n }\n\n function _beforeTokenTransfer(\n address,\n address,\n address,\n uint256\n ) internal override {\n emit BeforeTokenTransfer();\n }\n}\n"}, "mocks/MultipleInheritanceInitializableMocks.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x92983a5e9a4d6baa9fa2655f068867f5"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../proxy/utils/Initializable.sol\";\n\n// Sample contracts showing upgradeability with multiple inheritance.\n// Child contract inherits from Father and Mother contracts, and Father extends from Gramps.\n//\n// Human\n// / \\\n// | Gramps\n// | |\n// Mother Father\n// | |\n// -- Child --\n\n/**\n * Sample base intializable contract that is a human\n */\ncontract SampleHuman is Initializable {\n bool public isHuman;\n\n function initialize() public initializer {\n __SampleHuman_init();\n }\n\n // solhint-disable-next-line func-name-mixedcase\n function __SampleHuman_init() internal onlyInitializing {\n __SampleHuman_init_unchained();\n }\n\n // solhint-disable-next-line func-name-mixedcase\n function __SampleHuman_init_unchained() internal onlyInitializing {\n isHuman = true;\n }\n}\n\n/**\n * Sample base intializable contract that defines a field mother\n */\ncontract SampleMother is Initializable, SampleHuman {\n uint256 public mother;\n\n function initialize(uint256 value) public virtual initializer {\n __SampleMother_init(value);\n }\n\n // solhint-disable-next-line func-name-mixedcase\n function __SampleMother_init(uint256 value) internal onlyInitializing {\n __SampleHuman_init();\n __SampleMother_init_unchained(value);\n }\n\n // solhint-disable-next-line func-name-mixedcase\n function __SampleMother_init_unchained(uint256 value) internal onlyInitializing {\n mother = value;\n }\n}\n\n/**\n * Sample base intializable contract that defines a field gramps\n */\ncontract SampleGramps is Initializable, SampleHuman {\n string public gramps;\n\n function initialize(string memory value) public virtual initializer {\n __SampleGramps_init(value);\n }\n\n // solhint-disable-next-line func-name-mixedcase\n function __SampleGramps_init(string memory value) internal onlyInitializing {\n __SampleHuman_init();\n __SampleGramps_init_unchained(value);\n }\n\n // solhint-disable-next-line func-name-mixedcase\n function __SampleGramps_init_unchained(string memory value) internal onlyInitializing {\n gramps = value;\n }\n}\n\n/**\n * Sample base intializable contract that defines a field father and extends from gramps\n */\ncontract SampleFather is Initializable, SampleGramps {\n uint256 public father;\n\n function initialize(string memory _gramps, uint256 _father) public initializer {\n __SampleFather_init(_gramps, _father);\n }\n\n // solhint-disable-next-line func-name-mixedcase\n function __SampleFather_init(string memory _gramps, uint256 _father) internal onlyInitializing {\n __SampleGramps_init(_gramps);\n __SampleFather_init_unchained(_father);\n }\n\n // solhint-disable-next-line func-name-mixedcase\n function __SampleFather_init_unchained(uint256 _father) internal onlyInitializing {\n father = _father;\n }\n}\n\n/**\n * Child extends from mother, father (gramps)\n */\ncontract SampleChild is Initializable, SampleMother, SampleFather {\n uint256 public child;\n\n function initialize(\n uint256 _mother,\n string memory _gramps,\n uint256 _father,\n uint256 _child\n ) public initializer {\n __SampleChild_init(_mother, _gramps, _father, _child);\n }\n\n // solhint-disable-next-line func-name-mixedcase\n function __SampleChild_init(\n uint256 _mother,\n string memory _gramps,\n uint256 _father,\n uint256 _child\n ) internal onlyInitializing {\n __SampleMother_init(_mother);\n __SampleFather_init(_gramps, _father);\n __SampleChild_init_unchained(_child);\n }\n\n // solhint-disable-next-line func-name-mixedcase\n function __SampleChild_init_unchained(uint256 _child) internal onlyInitializing {\n child = _child;\n }\n}\n"}, "token/ERC721/IERC721.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x27d219ec6f69478d065fdbfa7931da68"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC721 compliant contract.\n */\ninterface IERC721 is IERC165 {\n /**\n * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\n */\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n */\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n */\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n /**\n * @dev Returns the number of tokens in ``owner``'s account.\n */\n function balanceOf(address owner) external view returns (uint256 balance);\n\n /**\n * @dev Returns the owner of the `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function ownerOf(uint256 tokenId) external view returns (address owner);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId\n ) external;\n\n /**\n * @dev Transfers `tokenId` token from `from` to `to`.\n *\n * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(\n address from,\n address to,\n uint256 tokenId\n ) external;\n\n /**\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n * The approval is cleared when the token is transferred.\n *\n * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n *\n * Requirements:\n *\n * - The caller must own the token or be an approved operator.\n * - `tokenId` must exist.\n *\n * Emits an {Approval} event.\n */\n function approve(address to, uint256 tokenId) external;\n\n /**\n * @dev Returns the account approved for `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function getApproved(uint256 tokenId) external view returns (address operator);\n\n /**\n * @dev Approve or remove `operator` as an operator for the caller.\n * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n *\n * Requirements:\n *\n * - The `operator` cannot be the caller.\n *\n * Emits an {ApprovalForAll} event.\n */\n function setApprovalForAll(address operator, bool _approved) external;\n\n /**\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n *\n * See {setApprovalForAll}\n */\n function isApprovedForAll(address owner, address operator) external view returns (bool);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 tokenId,\n bytes calldata data\n ) external;\n}\n"}, "mocks/InitializableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x5230075a075bf31e7b2e8354ee807c1f"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @title InitializableMock\n * @dev This contract is a mock to test initializable functionality\n */\ncontract InitializableMock is Initializable {\n bool public initializerRan;\n bool public onlyInitializingRan;\n uint256 public x;\n\n function initialize() public initializer {\n initializerRan = true;\n }\n\n function initializeOnlyInitializing() public onlyInitializing {\n onlyInitializingRan = true;\n }\n\n function initializerNested() public initializer {\n initialize();\n }\n\n function onlyInitializingNested() public initializer {\n initializeOnlyInitializing();\n }\n\n function initializeWithX(uint256 _x) public payable initializer {\n x = _x;\n }\n\n function nonInitializable(uint256 _x) public payable {\n x = _x;\n }\n\n function fail() public pure {\n require(false, \"InitializableMock forced failure\");\n }\n}\n\ncontract ConstructorInitializableMock is Initializable {\n bool public initializerRan;\n bool public onlyInitializingRan;\n\n constructor() initializer {\n initialize();\n initializeOnlyInitializing();\n }\n\n function initialize() public initializer {\n initializerRan = true;\n }\n\n function initializeOnlyInitializing() public onlyInitializing {\n onlyInitializingRan = true;\n }\n}\n"}, "mocks/ERC165CheckerMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x185db21182a9486960b8c9368cc69573"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/introspection/ERC165Checker.sol\";\n\ncontract ERC165CheckerMock {\n using ERC165Checker for address;\n\n function supportsERC165(address account) public view returns (bool) {\n return account.supportsERC165();\n }\n\n function supportsInterface(address account, bytes4 interfaceId) public view returns (bool) {\n return account.supportsInterface(interfaceId);\n }\n\n function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) public view returns (bool) {\n return account.supportsAllInterfaces(interfaceIds);\n }\n\n function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) public view returns (bool[] memory) {\n return account.getSupportedInterfaces(interfaceIds);\n }\n}\n"}, "proxy/transparent/ProxyAdmin.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xa947492251ac15d6bfd899c9fdb4d82b"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (proxy/transparent/ProxyAdmin.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./TransparentUpgradeableProxy.sol\";\nimport \"../../access/Ownable.sol\";\n\n/**\n * @dev This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an\n * explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}.\n */\ncontract ProxyAdmin is Ownable {\n /**\n * @dev Returns the current implementation of `proxy`.\n *\n * Requirements:\n *\n * - This contract must be the admin of `proxy`.\n */\n function getProxyImplementation(TransparentUpgradeableProxy proxy) public view virtual returns (address) {\n // We need to manually run the static call since the getter cannot be flagged as view\n // bytes4(keccak256(\"implementation()\")) == 0x5c60da1b\n (bool success, bytes memory returndata) = address(proxy).staticcall(hex\"5c60da1b\");\n require(success);\n return abi.decode(returndata, (address));\n }\n\n /**\n * @dev Returns the current admin of `proxy`.\n *\n * Requirements:\n *\n * - This contract must be the admin of `proxy`.\n */\n function getProxyAdmin(TransparentUpgradeableProxy proxy) public view virtual returns (address) {\n // We need to manually run the static call since the getter cannot be flagged as view\n // bytes4(keccak256(\"admin()\")) == 0xf851a440\n (bool success, bytes memory returndata) = address(proxy).staticcall(hex\"f851a440\");\n require(success);\n return abi.decode(returndata, (address));\n }\n\n /**\n * @dev Changes the admin of `proxy` to `newAdmin`.\n *\n * Requirements:\n *\n * - This contract must be the current admin of `proxy`.\n */\n function changeProxyAdmin(TransparentUpgradeableProxy proxy, address newAdmin) public virtual onlyOwner {\n proxy.changeAdmin(newAdmin);\n }\n\n /**\n * @dev Upgrades `proxy` to `implementation`. See {TransparentUpgradeableProxy-upgradeTo}.\n *\n * Requirements:\n *\n * - This contract must be the admin of `proxy`.\n */\n function upgrade(TransparentUpgradeableProxy proxy, address implementation) public virtual onlyOwner {\n proxy.upgradeTo(implementation);\n }\n\n /**\n * @dev Upgrades `proxy` to `implementation` and calls a function on the new implementation. See\n * {TransparentUpgradeableProxy-upgradeToAndCall}.\n *\n * Requirements:\n *\n * - This contract must be the admin of `proxy`.\n */\n function upgradeAndCall(\n TransparentUpgradeableProxy proxy,\n address implementation,\n bytes memory data\n ) public payable virtual onlyOwner {\n proxy.upgradeToAndCall{value: msg.value}(implementation, data);\n }\n}\n"}, "governance/extensions/GovernorVotesQuorumFraction.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x8db7a71dfd826e04f9fab24151697ac5"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (governance/extensions/GovernorVotesQuorumFraction.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./GovernorVotes.sol\";\n\n/**\n * @dev Extension of {Governor} for voting weight extraction from an {ERC20Votes} token and a quorum expressed as a\n * fraction of the total supply.\n *\n * _Available since v4.3._\n */\nabstract contract GovernorVotesQuorumFraction is GovernorVotes {\n uint256 private _quorumNumerator;\n\n event QuorumNumeratorUpdated(uint256 oldQuorumNumerator, uint256 newQuorumNumerator);\n\n constructor(uint256 quorumNumeratorValue) {\n _updateQuorumNumerator(quorumNumeratorValue);\n }\n\n function quorumNumerator() public view virtual returns (uint256) {\n return _quorumNumerator;\n }\n\n function quorumDenominator() public view virtual returns (uint256) {\n return 100;\n }\n\n function quorum(uint256 blockNumber) public view virtual override returns (uint256) {\n return (token.getPastTotalSupply(blockNumber) * quorumNumerator()) / quorumDenominator();\n }\n\n function updateQuorumNumerator(uint256 newQuorumNumerator) external virtual onlyGovernance {\n _updateQuorumNumerator(newQuorumNumerator);\n }\n\n function _updateQuorumNumerator(uint256 newQuorumNumerator) internal virtual {\n require(\n newQuorumNumerator <= quorumDenominator(),\n \"GovernorVotesQuorumFraction: quorumNumerator over quorumDenominator\"\n );\n\n uint256 oldQuorumNumerator = _quorumNumerator;\n _quorumNumerator = newQuorumNumerator;\n\n emit QuorumNumeratorUpdated(oldQuorumNumerator, newQuorumNumerator);\n }\n}\n"}, "interfaces/IERC20Metadata.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x5f6b568ff33d29c2a468a48e4d2bb0f4"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/extensions/IERC20Metadata.sol\";\n"}, "mocks/GovernorCompMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xe57a261f5c63e1f06b320209553c05f6"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../governance/extensions/GovernorCountingSimple.sol\";\nimport \"../governance/extensions/GovernorVotesComp.sol\";\n\ncontract GovernorCompMock is GovernorVotesComp, GovernorCountingSimple {\n constructor(string memory name_, ERC20VotesComp token_) Governor(name_) GovernorVotesComp(token_) {}\n\n function quorum(uint256) public pure override returns (uint256) {\n return 0;\n }\n\n function votingDelay() public pure override returns (uint256) {\n return 4;\n }\n\n function votingPeriod() public pure override returns (uint256) {\n return 16;\n }\n\n function cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 salt\n ) public returns (uint256 proposalId) {\n return _cancel(targets, values, calldatas, salt);\n }\n\n function getVotes(address account, uint256 blockNumber)\n public\n view\n virtual\n override(IGovernor, GovernorVotesComp)\n returns (uint256)\n {\n return super.getVotes(account, blockNumber);\n }\n}\n"}, "mocks/ERC165/ERC165InterfacesSupported.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x782e9abe56260a34233eca2d838a5086"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/introspection/IERC165.sol\";\n\n/**\n * https://eips.ethereum.org/EIPS/eip-214#specification\n * From the specification:\n * > Any attempts to make state-changing operations inside an execution instance with STATIC set to true will instead\n * throw an exception.\n * > These operations include [...], LOG0, LOG1, LOG2, [...]\n *\n * therefore, because this contract is staticcall'd we need to not emit events (which is how solidity-coverage works)\n * solidity-coverage ignores the /mocks folder, so we duplicate its implementation here to avoid instrumenting it\n */\ncontract SupportsInterfaceWithLookupMock is IERC165 {\n /*\n * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7\n */\n bytes4 public constant INTERFACE_ID_ERC165 = 0x01ffc9a7;\n\n /**\n * @dev A mapping of interface id to whether or not it's supported.\n */\n mapping(bytes4 => bool) private _supportedInterfaces;\n\n /**\n * @dev A contract implementing SupportsInterfaceWithLookup\n * implement ERC165 itself.\n */\n constructor() {\n _registerInterface(INTERFACE_ID_ERC165);\n }\n\n /**\n * @dev Implement supportsInterface(bytes4) using a lookup table.\n */\n function supportsInterface(bytes4 interfaceId) public view override returns (bool) {\n return _supportedInterfaces[interfaceId];\n }\n\n /**\n * @dev Private method for registering an interface.\n */\n function _registerInterface(bytes4 interfaceId) internal {\n require(interfaceId != 0xffffffff, \"ERC165InterfacesSupported: invalid interface id\");\n _supportedInterfaces[interfaceId] = true;\n }\n}\n\ncontract ERC165InterfacesSupported is SupportsInterfaceWithLookupMock {\n constructor(bytes4[] memory interfaceIds) {\n for (uint256 i = 0; i < interfaceIds.length; i++) {\n _registerInterface(interfaceIds[i]);\n }\n }\n}\n"}, "token/ERC20/extensions/ERC20Snapshot.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x0db6a86f6fc065db1a0548ee5fe77a69"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Snapshot.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC20.sol\";\nimport \"../../../utils/Arrays.sol\";\nimport \"../../../utils/Counters.sol\";\n\n/**\n * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and\n * total supply at the time are recorded for later access.\n *\n * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting.\n * In naive implementations it's possible to perform a \"double spend\" attack by reusing the same balance from different\n * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be\n * used to create an efficient ERC20 forking mechanism.\n *\n * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a\n * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot\n * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id\n * and the account address.\n *\n * NOTE: Snapshot policy can be customized by overriding the {_getCurrentSnapshotId} method. For example, having it\n * return `block.number` will trigger the creation of snapshot at the begining of each new block. When overridding this\n * function, be careful about the monotonicity of its result. Non-monotonic snapshot ids will break the contract.\n *\n * Implementing snapshots for every block using this method will incur significant gas costs. For a gas-efficient\n * alternative consider {ERC20Votes}.\n *\n * ==== Gas Costs\n *\n * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log\n * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much\n * smaller since identical balances in subsequent snapshots are stored as a single entry.\n *\n * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is\n * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent\n * transfers will have normal cost until the next snapshot, and so on.\n */\n\nabstract contract ERC20Snapshot is ERC20 {\n // Inspired by Jordi Baylina's MiniMeToken to record historical balances:\n // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol\n\n using Arrays for uint256[];\n using Counters for Counters.Counter;\n\n // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a\n // Snapshot struct, but that would impede usage of functions that work on an array.\n struct Snapshots {\n uint256[] ids;\n uint256[] values;\n }\n\n mapping(address => Snapshots) private _accountBalanceSnapshots;\n Snapshots private _totalSupplySnapshots;\n\n // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid.\n Counters.Counter private _currentSnapshotId;\n\n /**\n * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created.\n */\n event Snapshot(uint256 id);\n\n /**\n * @dev Creates a new snapshot and returns its snapshot id.\n *\n * Emits a {Snapshot} event that contains the same id.\n *\n * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a\n * set of accounts, for example using {AccessControl}, or it may be open to the public.\n *\n * [WARNING]\n * ====\n * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking,\n * you must consider that it can potentially be used by attackers in two ways.\n *\n * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow\n * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target\n * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs\n * section above.\n *\n * We haven't measured the actual numbers; if this is something you're interested in please reach out to us.\n * ====\n */\n function _snapshot() internal virtual returns (uint256) {\n _currentSnapshotId.increment();\n\n uint256 currentId = _getCurrentSnapshotId();\n emit Snapshot(currentId);\n return currentId;\n }\n\n /**\n * @dev Get the current snapshotId\n */\n function _getCurrentSnapshotId() internal view virtual returns (uint256) {\n return _currentSnapshotId.current();\n }\n\n /**\n * @dev Retrieves the balance of `account` at the time `snapshotId` was created.\n */\n function balanceOfAt(address account, uint256 snapshotId) public view virtual returns (uint256) {\n (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]);\n\n return snapshotted ? value : balanceOf(account);\n }\n\n /**\n * @dev Retrieves the total supply at the time `snapshotId` was created.\n */\n function totalSupplyAt(uint256 snapshotId) public view virtual returns (uint256) {\n (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots);\n\n return snapshotted ? value : totalSupply();\n }\n\n // Update balance and/or total supply snapshots before the values are modified. This is implemented\n // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations.\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual override {\n super._beforeTokenTransfer(from, to, amount);\n\n if (from == address(0)) {\n // mint\n _updateAccountSnapshot(to);\n _updateTotalSupplySnapshot();\n } else if (to == address(0)) {\n // burn\n _updateAccountSnapshot(from);\n _updateTotalSupplySnapshot();\n } else {\n // transfer\n _updateAccountSnapshot(from);\n _updateAccountSnapshot(to);\n }\n }\n\n function _valueAt(uint256 snapshotId, Snapshots storage snapshots) private view returns (bool, uint256) {\n require(snapshotId > 0, \"ERC20Snapshot: id is 0\");\n require(snapshotId <= _getCurrentSnapshotId(), \"ERC20Snapshot: nonexistent id\");\n\n // When a valid snapshot is queried, there are three possibilities:\n // a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never\n // created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds\n // to this id is the current one.\n // b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the\n // requested id, and its value is the one to return.\n // c) More snapshots were created after the requested one, and the queried value was later modified. There will be\n // no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is\n // larger than the requested one.\n //\n // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if\n // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does\n // exactly this.\n\n uint256 index = snapshots.ids.findUpperBound(snapshotId);\n\n if (index == snapshots.ids.length) {\n return (false, 0);\n } else {\n return (true, snapshots.values[index]);\n }\n }\n\n function _updateAccountSnapshot(address account) private {\n _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account));\n }\n\n function _updateTotalSupplySnapshot() private {\n _updateSnapshot(_totalSupplySnapshots, totalSupply());\n }\n\n function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private {\n uint256 currentId = _getCurrentSnapshotId();\n if (_lastSnapshotId(snapshots.ids) < currentId) {\n snapshots.ids.push(currentId);\n snapshots.values.push(currentValue);\n }\n }\n\n function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) {\n if (ids.length == 0) {\n return 0;\n } else {\n return ids[ids.length - 1];\n }\n }\n}\n"}, "proxy/Proxy.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x0ce1b80a6e3f466bd652ca52bb406173"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (proxy/Proxy.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\n * be specified by overriding the virtual {_implementation} function.\n *\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\n * different contract through the {_delegate} function.\n *\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\n */\nabstract contract Proxy {\n /**\n * @dev Delegates the current call to `implementation`.\n *\n * This function does not return to its internall call site, it will return directly to the external caller.\n */\n function _delegate(address implementation) internal virtual {\n assembly {\n // Copy msg.data. We take full control of memory in this inline assembly\n // block because it will not return to Solidity code. We overwrite the\n // Solidity scratch pad at memory position 0.\n calldatacopy(0, 0, calldatasize())\n\n // Call the implementation.\n // out and outsize are 0 because we don't know the size yet.\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\n\n // Copy the returned data.\n returndatacopy(0, 0, returndatasize())\n\n switch result\n // delegatecall returns 0 on error.\n case 0 {\n revert(0, returndatasize())\n }\n default {\n return(0, returndatasize())\n }\n }\n }\n\n /**\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\n * and {_fallback} should delegate.\n */\n function _implementation() internal view virtual returns (address);\n\n /**\n * @dev Delegates the current call to the address returned by `_implementation()`.\n *\n * This function does not return to its internall call site, it will return directly to the external caller.\n */\n function _fallback() internal virtual {\n _beforeFallback();\n _delegate(_implementation());\n }\n\n /**\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\n * function in the contract matches the call data.\n */\n fallback() external payable virtual {\n _fallback();\n }\n\n /**\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\n * is empty.\n */\n receive() external payable virtual {\n _fallback();\n }\n\n /**\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\n * call, or as part of the Solidity `fallback` or `receive` functions.\n *\n * If overriden should call `super._beforeFallback()`.\n */\n function _beforeFallback() internal virtual {}\n}\n"}, "interfaces/IERC777Recipient.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x5cb82721cc0841a27ae151e7f7b268e1"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC777Recipient.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC777/IERC777Recipient.sol\";\n"}, "mocks/TimersTimestampImpl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4da7cc0f188c4b4b0571dd3741158dd0"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Timers.sol\";\n\ncontract TimersTimestampImpl {\n using Timers for Timers.Timestamp;\n\n Timers.Timestamp private _timer;\n\n function getDeadline() public view returns (uint64) {\n return _timer.getDeadline();\n }\n\n function setDeadline(uint64 timestamp) public {\n _timer.setDeadline(timestamp);\n }\n\n function reset() public {\n _timer.reset();\n }\n\n function isUnset() public view returns (bool) {\n return _timer.isUnset();\n }\n\n function isStarted() public view returns (bool) {\n return _timer.isStarted();\n }\n\n function isPending() public view returns (bool) {\n return _timer.isPending();\n }\n\n function isExpired() public view returns (bool) {\n return _timer.isExpired();\n }\n}\n"}, "mocks/EnumerableMapMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4e0d77aaa9ee32e23d436883db8fd9ef"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/structs/EnumerableMap.sol\";\n\ncontract EnumerableMapMock {\n using EnumerableMap for EnumerableMap.UintToAddressMap;\n\n event OperationResult(bool result);\n\n EnumerableMap.UintToAddressMap private _map;\n\n function contains(uint256 key) public view returns (bool) {\n return _map.contains(key);\n }\n\n function set(uint256 key, address value) public {\n bool result = _map.set(key, value);\n emit OperationResult(result);\n }\n\n function remove(uint256 key) public {\n bool result = _map.remove(key);\n emit OperationResult(result);\n }\n\n function length() public view returns (uint256) {\n return _map.length();\n }\n\n function at(uint256 index) public view returns (uint256 key, address value) {\n return _map.at(index);\n }\n\n function tryGet(uint256 key) public view returns (bool, address) {\n return _map.tryGet(key);\n }\n\n function get(uint256 key) public view returns (address) {\n return _map.get(key);\n }\n\n function getWithMessage(uint256 key, string calldata errorMessage) public view returns (address) {\n return _map.get(key, errorMessage);\n }\n}\n"}, "interfaces/IERC165.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xee9624272968c23d93d4c2e39f06e6e2"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/introspection/IERC165.sol\";\n"}, "mocks/UUPS/TestInProd.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x579bd066da12b4a2cd1c40cd1c53dc0d"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../CountersImpl.sol\";\nimport \"../../proxy/utils/UUPSUpgradeable.sol\";\n\ncontract UUPSUpgradeableMock is CountersImpl, UUPSUpgradeable {\n // Not having any checks in this function is dangerous! Do not do this outside tests!\n function _authorizeUpgrade(address) internal virtual override {}\n}\n\ncontract UUPSUpgradeableUnsafeMock is UUPSUpgradeableMock {\n function upgradeTo(address newImplementation) external virtual override {\n ERC1967Upgrade._upgradeToAndCall(newImplementation, bytes(\"\"), false);\n }\n\n function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual override {\n ERC1967Upgrade._upgradeToAndCall(newImplementation, data, false);\n }\n}\n\ncontract UUPSUpgradeableBrokenMock is UUPSUpgradeableMock {\n function upgradeTo(address) external virtual override {\n // pass\n }\n\n function upgradeToAndCall(address, bytes memory) external payable virtual override {\n // pass\n }\n}\n"}, "mocks/StorageSlotMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x681082aac12d55520958e456fe2a8850"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/StorageSlot.sol\";\n\ncontract StorageSlotMock {\n using StorageSlot for bytes32;\n\n function setBoolean(bytes32 slot, bool value) public {\n slot.getBooleanSlot().value = value;\n }\n\n function setAddress(bytes32 slot, address value) public {\n slot.getAddressSlot().value = value;\n }\n\n function setBytes32(bytes32 slot, bytes32 value) public {\n slot.getBytes32Slot().value = value;\n }\n\n function setUint256(bytes32 slot, uint256 value) public {\n slot.getUint256Slot().value = value;\n }\n\n function getBoolean(bytes32 slot) public view returns (bool) {\n return slot.getBooleanSlot().value;\n }\n\n function getAddress(bytes32 slot) public view returns (address) {\n return slot.getAddressSlot().value;\n }\n\n function getBytes32(bytes32 slot) public view returns (bytes32) {\n return slot.getBytes32Slot().value;\n }\n\n function getUint256(bytes32 slot) public view returns (uint256) {\n return slot.getUint256Slot().value;\n }\n}\n"}, "utils/math/Math.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x1cd7f39e8c48981ae093d9e696c066d8"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\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 / b + (a % b == 0 ? 0 : 1);\n }\n}\n"}, "mocks/OwnableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x3115355f79ef5589879d1bd20de82b32"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../access/Ownable.sol\";\n\ncontract OwnableMock is Ownable {}\n"}, "mocks/ERC1155PausableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x5d635e73b1a90f2c04feefb8faa919b4"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC1155Mock.sol\";\nimport \"../token/ERC1155/extensions/ERC1155Pausable.sol\";\n\ncontract ERC1155PausableMock is ERC1155Mock, ERC1155Pausable {\n constructor(string memory uri) ERC1155Mock(uri) {}\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n ) internal virtual override(ERC1155, ERC1155Pausable) {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n }\n}\n"}, "interfaces/IERC721Enumerable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xff727125a84ba8d0dd642f6ab0632435"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Enumerable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC721/extensions/IERC721Enumerable.sol\";\n"}, "mocks/ERC721BurnableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4341e54dc10a462272be888db0ae01c4"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC721/extensions/ERC721Burnable.sol\";\n\ncontract ERC721BurnableMock is ERC721Burnable {\n constructor(string memory name, string memory symbol) ERC721(name, symbol) {}\n\n function exists(uint256 tokenId) public view returns (bool) {\n return _exists(tokenId);\n }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n\n function safeMint(address to, uint256 tokenId) public {\n _safeMint(to, tokenId);\n }\n\n function safeMint(\n address to,\n uint256 tokenId,\n bytes memory _data\n ) public {\n _safeMint(to, tokenId, _data);\n }\n}\n"}, "governance/extensions/GovernorSettings.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x2c6e87fa9b63c7ef8579eb4ae937d4c2"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (governance/extensions/GovernorSettings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../Governor.sol\";\n\n/**\n * @dev Extension of {Governor} for settings updatable through governance.\n *\n * _Available since v4.4._\n */\nabstract contract GovernorSettings is Governor {\n uint256 private _votingDelay;\n uint256 private _votingPeriod;\n uint256 private _proposalThreshold;\n\n event VotingDelaySet(uint256 oldVotingDelay, uint256 newVotingDelay);\n event VotingPeriodSet(uint256 oldVotingPeriod, uint256 newVotingPeriod);\n event ProposalThresholdSet(uint256 oldProposalThreshold, uint256 newProposalThreshold);\n\n /**\n * @dev Initialize the governance parameters.\n */\n constructor(\n uint256 initialVotingDelay,\n uint256 initialVotingPeriod,\n uint256 initialProposalThreshold\n ) {\n _setVotingDelay(initialVotingDelay);\n _setVotingPeriod(initialVotingPeriod);\n _setProposalThreshold(initialProposalThreshold);\n }\n\n /**\n * @dev See {IGovernor-votingDelay}.\n */\n function votingDelay() public view virtual override returns (uint256) {\n return _votingDelay;\n }\n\n /**\n * @dev See {IGovernor-votingPeriod}.\n */\n function votingPeriod() public view virtual override returns (uint256) {\n return _votingPeriod;\n }\n\n /**\n * @dev See {Governor-proposalThreshold}.\n */\n function proposalThreshold() public view virtual override returns (uint256) {\n return _proposalThreshold;\n }\n\n /**\n * @dev Update the voting delay. This operation can only be performed through a governance proposal.\n *\n * Emits a {VotingDelaySet} event.\n */\n function setVotingDelay(uint256 newVotingDelay) public virtual onlyGovernance {\n _setVotingDelay(newVotingDelay);\n }\n\n /**\n * @dev Update the voting period. This operation can only be performed through a governance proposal.\n *\n * Emits a {VotingPeriodSet} event.\n */\n function setVotingPeriod(uint256 newVotingPeriod) public virtual onlyGovernance {\n _setVotingPeriod(newVotingPeriod);\n }\n\n /**\n * @dev Update the proposal threshold. This operation can only be performed through a governance proposal.\n *\n * Emits a {ProposalThresholdSet} event.\n */\n function setProposalThreshold(uint256 newProposalThreshold) public virtual onlyGovernance {\n _setProposalThreshold(newProposalThreshold);\n }\n\n /**\n * @dev Internal setter for the voting delay.\n *\n * Emits a {VotingDelaySet} event.\n */\n function _setVotingDelay(uint256 newVotingDelay) internal virtual {\n emit VotingDelaySet(_votingDelay, newVotingDelay);\n _votingDelay = newVotingDelay;\n }\n\n /**\n * @dev Internal setter for the voting period.\n *\n * Emits a {VotingPeriodSet} event.\n */\n function _setVotingPeriod(uint256 newVotingPeriod) internal virtual {\n // voting period must be at least one block long\n require(newVotingPeriod > 0, \"GovernorSettings: voting period too low\");\n emit VotingPeriodSet(_votingPeriod, newVotingPeriod);\n _votingPeriod = newVotingPeriod;\n }\n\n /**\n * @dev Internal setter for the proposal threshold.\n *\n * Emits a {ProposalThresholdSet} event.\n */\n function _setProposalThreshold(uint256 newProposalThreshold) internal virtual {\n emit ProposalThresholdSet(_proposalThreshold, newProposalThreshold);\n _proposalThreshold = newProposalThreshold;\n }\n}\n"}, "mocks/MerkleProofWrapper.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xe2d20bbf9dab03473dba10ab60563e57"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/cryptography/MerkleProof.sol\";\n\ncontract MerkleProofWrapper {\n function verify(\n bytes32[] memory proof,\n bytes32 root,\n bytes32 leaf\n ) public pure returns (bool) {\n return MerkleProof.verify(proof, root, leaf);\n }\n\n function processProof(bytes32[] memory proof, bytes32 leaf) public pure returns (bytes32) {\n return MerkleProof.processProof(proof, leaf);\n }\n}\n"}, "mocks/SignatureCheckerMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x3d0fda24d5d77624d5a7b158a6762681"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/cryptography/SignatureChecker.sol\";\n\ncontract SignatureCheckerMock {\n using SignatureChecker for address;\n\n function isValidSignatureNow(\n address signer,\n bytes32 hash,\n bytes memory signature\n ) public view returns (bool) {\n return signer.isValidSignatureNow(hash, signature);\n }\n}\n"}, "token/ERC1155/presets/ERC1155PresetMinterPauser.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x8773b453e91060696c36c838f7ba56f0"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/presets/ERC1155PresetMinterPauser.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC1155.sol\";\nimport \"../extensions/ERC1155Burnable.sol\";\nimport \"../extensions/ERC1155Pausable.sol\";\nimport \"../../../access/AccessControlEnumerable.sol\";\nimport \"../../../utils/Context.sol\";\n\n/**\n * @dev {ERC1155} token, including:\n *\n * - ability for holders to burn (destroy) their tokens\n * - a minter role that allows for token minting (creation)\n * - a pauser role that allows to stop all token transfers\n *\n * This contract uses {AccessControl} to lock permissioned functions using the\n * different roles - head to its documentation for details.\n *\n * The account that deploys the contract will be granted the minter and pauser\n * roles, as well as the default admin role, which will let it grant both minter\n * and pauser roles to other accounts.\n */\ncontract ERC1155PresetMinterPauser is Context, AccessControlEnumerable, ERC1155Burnable, ERC1155Pausable {\n bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n\n /**\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, and `PAUSER_ROLE` to the account that\n * deploys the contract.\n */\n constructor(string memory uri) ERC1155(uri) {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n\n _setupRole(MINTER_ROLE, _msgSender());\n _setupRole(PAUSER_ROLE, _msgSender());\n }\n\n /**\n * @dev Creates `amount` new tokens for `to`, of token type `id`.\n *\n * See {ERC1155-_mint}.\n *\n * Requirements:\n *\n * - the caller must have the `MINTER_ROLE`.\n */\n function mint(\n address to,\n uint256 id,\n uint256 amount,\n bytes memory data\n ) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have minter role to mint\");\n\n _mint(to, id, amount, data);\n }\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}.\n */\n function mintBatch(\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n ) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have minter role to mint\");\n\n _mintBatch(to, ids, amounts, data);\n }\n\n /**\n * @dev Pauses all token transfers.\n *\n * See {ERC1155Pausable} and {Pausable-_pause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function pause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have pauser role to pause\");\n _pause();\n }\n\n /**\n * @dev Unpauses all token transfers.\n *\n * See {ERC1155Pausable} and {Pausable-_unpause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function unpause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have pauser role to unpause\");\n _unpause();\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId)\n public\n view\n virtual\n override(AccessControlEnumerable, ERC1155)\n returns (bool)\n {\n return super.supportsInterface(interfaceId);\n }\n\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n ) internal virtual override(ERC1155, ERC1155Pausable) {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n }\n}\n"}, "interfaces/IERC777.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x6009e31d3e8cbdc6831fc5d43e99701c"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC777.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC777/IERC777.sol\";\n"}, "token/ERC721/extensions/IERC721Metadata.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xefbc0d15b80a74e34dbe8da0f3e879bb"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC721.sol\";\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional metadata extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721Metadata is IERC721 {\n /**\n * @dev Returns the token collection name.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the token collection symbol.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.\n */\n function tokenURI(uint256 tokenId) external view returns (string memory);\n}\n"}, "token/ERC20/extensions/ERC20Wrapper.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x74fa026199b12422b3b1e825bc6da398"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Wrapper.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC20.sol\";\nimport \"../utils/SafeERC20.sol\";\n\n/**\n * @dev Extension of the ERC20 token contract to support token wrapping.\n *\n * Users can deposit and withdraw \"underlying tokens\" and receive a matching number of \"wrapped tokens\". This is useful\n * in conjunction with other modules. For example, combining this wrapping mechanism with {ERC20Votes} will allow the\n * wrapping of an existing \"basic\" ERC20 into a governance token.\n *\n * _Available since v4.2._\n */\nabstract contract ERC20Wrapper is ERC20 {\n IERC20 public immutable underlying;\n\n constructor(IERC20 underlyingToken) {\n underlying = underlyingToken;\n }\n\n /**\n * @dev Allow a user to deposit underlying tokens and mint the corresponding number of wrapped tokens.\n */\n function depositFor(address account, uint256 amount) public virtual returns (bool) {\n SafeERC20.safeTransferFrom(underlying, _msgSender(), address(this), amount);\n _mint(account, amount);\n return true;\n }\n\n /**\n * @dev Allow a user to burn a number of wrapped tokens and withdraw the corresponding number of underlying tokens.\n */\n function withdrawTo(address account, uint256 amount) public virtual returns (bool) {\n _burn(_msgSender(), amount);\n SafeERC20.safeTransfer(underlying, account, amount);\n return true;\n }\n\n /**\n * @dev Mint wrapped token to cover any underlyingTokens that would have been transfered by mistake. Internal\n * function that can be exposed with access control if desired.\n */\n function _recover(address account) internal virtual returns (uint256) {\n uint256 value = underlying.balanceOf(address(this)) - totalSupply();\n _mint(account, value);\n return value;\n }\n}\n"}, "security/PullPayment.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x43e2639a67e1d791ff6e877e8b602669"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (security/PullPayment.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/escrow/Escrow.sol\";\n\n/**\n * @dev Simple implementation of a\n * https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment]\n * strategy, where the paying contract doesn't interact directly with the\n * receiver account, which must withdraw its payments itself.\n *\n * Pull-payments are often considered the best practice when it comes to sending\n * Ether, security-wise. It prevents recipients from blocking execution, and\n * eliminates reentrancy concerns.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n *\n * To use, derive from the `PullPayment` contract, and use {_asyncTransfer}\n * instead of Solidity's `transfer` function. Payees can query their due\n * payments with {payments}, and retrieve them with {withdrawPayments}.\n */\nabstract contract PullPayment {\n Escrow private immutable _escrow;\n\n constructor() {\n _escrow = new Escrow();\n }\n\n /**\n * @dev Withdraw accumulated payments, forwarding all gas to the recipient.\n *\n * Note that _any_ account can call this function, not just the `payee`.\n * This means that contracts unaware of the `PullPayment` protocol can still\n * receive funds this way, by having a separate account call\n * {withdrawPayments}.\n *\n * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.\n * Make sure you trust the recipient, or are either following the\n * checks-effects-interactions pattern or using {ReentrancyGuard}.\n *\n * @param payee Whose payments will be withdrawn.\n */\n function withdrawPayments(address payable payee) public virtual {\n _escrow.withdraw(payee);\n }\n\n /**\n * @dev Returns the payments owed to an address.\n * @param dest The creditor's address.\n */\n function payments(address dest) public view returns (uint256) {\n return _escrow.depositsOf(dest);\n }\n\n /**\n * @dev Called by the payer to store the sent amount as credit to be pulled.\n * Funds sent in this way are stored in an intermediate {Escrow} contract, so\n * there is no danger of them being spent before withdrawal.\n *\n * @param dest The destination address of the funds.\n * @param amount The amount to transfer.\n */\n function _asyncTransfer(address dest, uint256 amount) internal virtual {\n _escrow.deposit{value: amount}(dest);\n }\n}\n"}, "governance/extensions/IGovernorTimelock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xeebb17e144c4fd58549d815db19552da"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (governance/extensions/IGovernorTimelock.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IGovernor.sol\";\n\n/**\n * @dev Extension of the {IGovernor} for timelock supporting modules.\n *\n * _Available since v4.3._\n */\nabstract contract IGovernorTimelock is IGovernor {\n event ProposalQueued(uint256 proposalId, uint256 eta);\n\n function timelock() public view virtual returns (address);\n\n function proposalEta(uint256 proposalId) public view virtual returns (uint256);\n\n function queue(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) public virtual returns (uint256 proposalId);\n}\n"}, "mocks/SingleInheritanceInitializableMocks.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xa0f7ac0b67fdf84c854701706691731e"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @title MigratableMockV1\n * @dev This contract is a mock to test initializable functionality through migrations\n */\ncontract MigratableMockV1 is Initializable {\n uint256 public x;\n\n function initialize(uint256 value) public payable initializer {\n x = value;\n }\n}\n\n/**\n * @title MigratableMockV2\n * @dev This contract is a mock to test migratable functionality with params\n */\ncontract MigratableMockV2 is MigratableMockV1 {\n bool internal _migratedV2;\n uint256 public y;\n\n function migrate(uint256 value, uint256 anotherValue) public payable {\n require(!_migratedV2);\n x = value;\n y = anotherValue;\n _migratedV2 = true;\n }\n}\n\n/**\n * @title MigratableMockV3\n * @dev This contract is a mock to test migratable functionality without params\n */\ncontract MigratableMockV3 is MigratableMockV2 {\n bool internal _migratedV3;\n\n function migrate() public payable {\n require(!_migratedV3);\n uint256 oldX = x;\n x = y;\n y = oldX;\n _migratedV3 = true;\n }\n}\n"}, "token/ERC20/presets/ERC20PresetMinterPauser.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xca4552dfca9db18a959c6766f7053420"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/presets/ERC20PresetMinterPauser.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC20.sol\";\nimport \"../extensions/ERC20Burnable.sol\";\nimport \"../extensions/ERC20Pausable.sol\";\nimport \"../../../access/AccessControlEnumerable.sol\";\nimport \"../../../utils/Context.sol\";\n\n/**\n * @dev {ERC20} token, including:\n *\n * - ability for holders to burn (destroy) their tokens\n * - a minter role that allows for token minting (creation)\n * - a pauser role that allows to stop all token transfers\n *\n * This contract uses {AccessControl} to lock permissioned functions using the\n * different roles - head to its documentation for details.\n *\n * The account that deploys the contract will be granted the minter and pauser\n * roles, as well as the default admin role, which will let it grant both minter\n * and pauser roles to other accounts.\n */\ncontract ERC20PresetMinterPauser is Context, AccessControlEnumerable, ERC20Burnable, ERC20Pausable {\n bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n\n /**\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the\n * account that deploys the contract.\n *\n * See {ERC20-constructor}.\n */\n constructor(string memory name, string memory symbol) ERC20(name, symbol) {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n\n _setupRole(MINTER_ROLE, _msgSender());\n _setupRole(PAUSER_ROLE, _msgSender());\n }\n\n /**\n * @dev Creates `amount` new tokens for `to`.\n *\n * See {ERC20-_mint}.\n *\n * Requirements:\n *\n * - the caller must have the `MINTER_ROLE`.\n */\n function mint(address to, uint256 amount) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have minter role to mint\");\n _mint(to, amount);\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 virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have pauser role to pause\");\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 virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have pauser role to unpause\");\n _unpause();\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual override(ERC20, ERC20Pausable) {\n super._beforeTokenTransfer(from, to, amount);\n }\n}\n"}, "mocks/EnumerableSetMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x132727e4f74eb805b03945288864e434"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/structs/EnumerableSet.sol\";\n\n// Bytes32Set\ncontract EnumerableBytes32SetMock {\n using EnumerableSet for EnumerableSet.Bytes32Set;\n\n event OperationResult(bool result);\n\n EnumerableSet.Bytes32Set private _set;\n\n function contains(bytes32 value) public view returns (bool) {\n return _set.contains(value);\n }\n\n function add(bytes32 value) public {\n bool result = _set.add(value);\n emit OperationResult(result);\n }\n\n function remove(bytes32 value) public {\n bool result = _set.remove(value);\n emit OperationResult(result);\n }\n\n function length() public view returns (uint256) {\n return _set.length();\n }\n\n function at(uint256 index) public view returns (bytes32) {\n return _set.at(index);\n }\n\n function values() public view returns (bytes32[] memory) {\n return _set.values();\n }\n}\n\n// AddressSet\ncontract EnumerableAddressSetMock {\n using EnumerableSet for EnumerableSet.AddressSet;\n\n event OperationResult(bool result);\n\n EnumerableSet.AddressSet private _set;\n\n function contains(address value) public view returns (bool) {\n return _set.contains(value);\n }\n\n function add(address value) public {\n bool result = _set.add(value);\n emit OperationResult(result);\n }\n\n function remove(address value) public {\n bool result = _set.remove(value);\n emit OperationResult(result);\n }\n\n function length() public view returns (uint256) {\n return _set.length();\n }\n\n function at(uint256 index) public view returns (address) {\n return _set.at(index);\n }\n\n function values() public view returns (address[] memory) {\n return _set.values();\n }\n}\n\n// UintSet\ncontract EnumerableUintSetMock {\n using EnumerableSet for EnumerableSet.UintSet;\n\n event OperationResult(bool result);\n\n EnumerableSet.UintSet private _set;\n\n function contains(uint256 value) public view returns (bool) {\n return _set.contains(value);\n }\n\n function add(uint256 value) public {\n bool result = _set.add(value);\n emit OperationResult(result);\n }\n\n function remove(uint256 value) public {\n bool result = _set.remove(value);\n emit OperationResult(result);\n }\n\n function length() public view returns (uint256) {\n return _set.length();\n }\n\n function at(uint256 index) public view returns (uint256) {\n return _set.at(index);\n }\n\n function values() public view returns (uint256[] memory) {\n return _set.values();\n }\n}\n"}, "utils/cryptography/draft-EIP712.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x161aae4dc1450371d0f324488f66a9cf"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./ECDSA.sol\";\n\n/**\n * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.\n *\n * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,\n * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding\n * they need in their contracts using a combination of `abi.encode` and `keccak256`.\n *\n * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding\n * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA\n * ({_hashTypedDataV4}).\n *\n * The implementation of the domain separator was designed to be as efficient as possible while still properly updating\n * the chain id to protect against replay attacks on an eventual fork of the chain.\n *\n * NOTE: This contract implements the version of the encoding known as \"v4\", as implemented by the JSON RPC method\n * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].\n *\n * _Available since v3.4._\n */\nabstract contract EIP712 {\n /* solhint-disable var-name-mixedcase */\n // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to\n // invalidate the cached domain separator if the chain id changes.\n bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;\n uint256 private immutable _CACHED_CHAIN_ID;\n address private immutable _CACHED_THIS;\n\n bytes32 private immutable _HASHED_NAME;\n bytes32 private immutable _HASHED_VERSION;\n bytes32 private immutable _TYPE_HASH;\n\n /* solhint-enable var-name-mixedcase */\n\n /**\n * @dev Initializes the domain separator and parameter caches.\n *\n * The meaning of `name` and `version` is specified in\n * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:\n *\n * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.\n * - `version`: the current major version of the signing domain.\n *\n * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart\n * contract upgrade].\n */\n constructor(string memory name, string memory version) {\n bytes32 hashedName = keccak256(bytes(name));\n bytes32 hashedVersion = keccak256(bytes(version));\n bytes32 typeHash = keccak256(\n \"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\"\n );\n _HASHED_NAME = hashedName;\n _HASHED_VERSION = hashedVersion;\n _CACHED_CHAIN_ID = block.chainid;\n _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);\n _CACHED_THIS = address(this);\n _TYPE_HASH = typeHash;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {\n return _CACHED_DOMAIN_SEPARATOR;\n } else {\n return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);\n }\n }\n\n function _buildDomainSeparator(\n bytes32 typeHash,\n bytes32 nameHash,\n bytes32 versionHash\n ) private view returns (bytes32) {\n return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));\n }\n\n /**\n * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this\n * function returns the hash of the fully encoded EIP712 message for this domain.\n *\n * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:\n *\n * ```solidity\n * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(\n * keccak256(\"Mail(address to,string contents)\"),\n * mailTo,\n * keccak256(bytes(mailContents))\n * )));\n * address signer = ECDSA.recover(digest, signature);\n * ```\n */\n function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {\n return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n}\n"}, "token/ERC20/extensions/ERC20FlashMint.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x73c59236c574a32a614475b22fc561ff"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20FlashMint.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../../interfaces/IERC3156.sol\";\nimport \"../ERC20.sol\";\n\n/**\n * @dev Implementation of the ERC3156 Flash loans extension, as defined in\n * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].\n *\n * Adds the {flashLoan} method, which provides flash loan support at the token\n * level. By default there is no fee, but this can be changed by overriding {flashFee}.\n *\n * _Available since v4.1._\n */\nabstract contract ERC20FlashMint is ERC20, IERC3156FlashLender {\n bytes32 private constant _RETURN_VALUE = keccak256(\"ERC3156FlashBorrower.onFlashLoan\");\n\n /**\n * @dev Returns the maximum amount of tokens available for loan.\n * @param token The address of the token that is requested.\n * @return The amont of token that can be loaned.\n */\n function maxFlashLoan(address token) public view override returns (uint256) {\n return token == address(this) ? type(uint256).max - ERC20.totalSupply() : 0;\n }\n\n /**\n * @dev Returns the fee applied when doing flash loans. By default this\n * implementation has 0 fees. This function can be overloaded to make\n * the flash loan mechanism deflationary.\n * @param token The token to be flash loaned.\n * @param amount The amount of tokens to be loaned.\n * @return The fees applied to the corresponding flash loan.\n */\n function flashFee(address token, uint256 amount) public view virtual override returns (uint256) {\n require(token == address(this), \"ERC20FlashMint: wrong token\");\n // silence warning about unused variable without the addition of bytecode.\n amount;\n return 0;\n }\n\n /**\n * @dev Performs a flash loan. New tokens are minted and sent to the\n * `receiver`, who is required to implement the {IERC3156FlashBorrower}\n * interface. By the end of the flash loan, the receiver is expected to own\n * amount + fee tokens and have them approved back to the token contract itself so\n * they can be burned.\n * @param receiver The receiver of the flash loan. Should implement the\n * {IERC3156FlashBorrower.onFlashLoan} interface.\n * @param token The token to be flash loaned. Only `address(this)` is\n * supported.\n * @param amount The amount of tokens to be loaned.\n * @param data An arbitrary datafield that is passed to the receiver.\n * @return `true` is the flash loan was successful.\n */\n function flashLoan(\n IERC3156FlashBorrower receiver,\n address token,\n uint256 amount,\n bytes calldata data\n ) public virtual override returns (bool) {\n uint256 fee = flashFee(token, amount);\n _mint(address(receiver), amount);\n require(\n receiver.onFlashLoan(msg.sender, token, amount, fee, data) == _RETURN_VALUE,\n \"ERC20FlashMint: invalid return value\"\n );\n uint256 currentAllowance = allowance(address(receiver), address(this));\n require(currentAllowance >= amount + fee, \"ERC20FlashMint: allowance does not allow refund\");\n _approve(address(receiver), address(this), currentAllowance - amount - fee);\n _burn(address(receiver), amount + fee);\n return true;\n }\n}\n"}, "mocks/PausableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xa5683047c5c3ab9159768ea312956fc6"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../security/Pausable.sol\";\n\ncontract PausableMock is Pausable {\n bool public drasticMeasureTaken;\n uint256 public count;\n\n constructor() {\n drasticMeasureTaken = false;\n count = 0;\n }\n\n function normalProcess() external whenNotPaused {\n count++;\n }\n\n function drasticMeasure() external whenPaused {\n drasticMeasureTaken = true;\n }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n}\n"}, "mocks/ERC20CappedMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x02c66aea2a7fd9cc8807fa7bfcd1f41f"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/extensions/ERC20Capped.sol\";\n\ncontract ERC20CappedMock is ERC20Capped {\n constructor(\n string memory name,\n string memory symbol,\n uint256 cap\n ) ERC20(name, symbol) ERC20Capped(cap) {}\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n}\n"}, "governance/compatibility/IGovernorCompatibilityBravo.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x150a6426dc55ba789e76389d6893f908"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (governance/compatibility/IGovernorCompatibilityBravo.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IGovernor.sol\";\n\n/**\n * @dev Interface extension that adds missing functions to the {Governor} core to provide `GovernorBravo` compatibility.\n *\n * _Available since v4.3._\n */\nabstract contract IGovernorCompatibilityBravo is IGovernor {\n /**\n * @dev Proposal structure from Compound Governor Bravo. Not actually used by the compatibility layer, as\n * {{proposal}} returns a very different structure.\n */\n struct Proposal {\n uint256 id;\n address proposer;\n uint256 eta;\n address[] targets;\n uint256[] values;\n string[] signatures;\n bytes[] calldatas;\n uint256 startBlock;\n uint256 endBlock;\n uint256 forVotes;\n uint256 againstVotes;\n uint256 abstainVotes;\n bool canceled;\n bool executed;\n mapping(address => Receipt) receipts;\n }\n\n /**\n * @dev Receipt structure from Compound Governor Bravo\n */\n struct Receipt {\n bool hasVoted;\n uint8 support;\n uint96 votes;\n }\n\n /**\n * @dev Part of the Governor Bravo's interface.\n */\n function quorumVotes() public view virtual returns (uint256);\n\n /**\n * @dev Part of the Governor Bravo's interface: _\"The official record of all proposals ever proposed\"_.\n */\n function proposals(uint256)\n public\n view\n virtual\n returns (\n uint256 id,\n address proposer,\n uint256 eta,\n uint256 startBlock,\n uint256 endBlock,\n uint256 forVotes,\n uint256 againstVotes,\n uint256 abstainVotes,\n bool canceled,\n bool executed\n );\n\n /**\n * @dev Part of the Governor Bravo's interface: _\"Function used to propose a new proposal\"_.\n */\n function propose(\n address[] memory targets,\n uint256[] memory values,\n string[] memory signatures,\n bytes[] memory calldatas,\n string memory description\n ) public virtual returns (uint256);\n\n /**\n * @dev Part of the Governor Bravo's interface: _\"Queues a proposal of state succeeded\"_.\n */\n function queue(uint256 proposalId) public virtual;\n\n /**\n * @dev Part of the Governor Bravo's interface: _\"Executes a queued proposal if eta has passed\"_.\n */\n function execute(uint256 proposalId) public payable virtual;\n\n /**\n * @dev Cancels a proposal only if sender is the proposer, or proposer delegates dropped below proposal threshold.\n */\n function cancel(uint256 proposalId) public virtual;\n\n /**\n * @dev Part of the Governor Bravo's interface: _\"Gets actions of a proposal\"_.\n */\n function getActions(uint256 proposalId)\n public\n view\n virtual\n returns (\n address[] memory targets,\n uint256[] memory values,\n string[] memory signatures,\n bytes[] memory calldatas\n );\n\n /**\n * @dev Part of the Governor Bravo's interface: _\"Gets the receipt for a voter on a given proposal\"_.\n */\n function getReceipt(uint256 proposalId, address voter) public view virtual returns (Receipt memory);\n}\n"}, "governance/extensions/GovernorTimelockCompound.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xe4ece100bf260287bf7cb53774b9dfc4"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (governance/extensions/GovernorTimelockCompound.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IGovernorTimelock.sol\";\nimport \"../Governor.sol\";\nimport \"../../utils/math/SafeCast.sol\";\n\n/**\n * https://github.com/compound-finance/compound-protocol/blob/master/contracts/Timelock.sol[Compound's timelock] interface\n */\ninterface ICompoundTimelock {\n receive() external payable;\n\n // solhint-disable-next-line func-name-mixedcase\n function GRACE_PERIOD() external view returns (uint256);\n\n // solhint-disable-next-line func-name-mixedcase\n function MINIMUM_DELAY() external view returns (uint256);\n\n // solhint-disable-next-line func-name-mixedcase\n function MAXIMUM_DELAY() external view returns (uint256);\n\n function admin() external view returns (address);\n\n function pendingAdmin() external view returns (address);\n\n function delay() external view returns (uint256);\n\n function queuedTransactions(bytes32) external view returns (bool);\n\n function setDelay(uint256) external;\n\n function acceptAdmin() external;\n\n function setPendingAdmin(address) external;\n\n function queueTransaction(\n address target,\n uint256 value,\n string memory signature,\n bytes memory data,\n uint256 eta\n ) external returns (bytes32);\n\n function cancelTransaction(\n address target,\n uint256 value,\n string memory signature,\n bytes memory data,\n uint256 eta\n ) external;\n\n function executeTransaction(\n address target,\n uint256 value,\n string memory signature,\n bytes memory data,\n uint256 eta\n ) external payable returns (bytes memory);\n}\n\n/**\n * @dev Extension of {Governor} that binds the execution process to a Compound Timelock. This adds a delay, enforced by\n * the external timelock to all successful proposal (in addition to the voting duration). The {Governor} needs to be\n * the admin of the timelock for any operation to be performed. A public, unrestricted,\n * {GovernorTimelockCompound-__acceptAdmin} is available to accept ownership of the timelock.\n *\n * Using this model means the proposal will be operated by the {TimelockController} and not by the {Governor}. Thus,\n * the assets and permissions must be attached to the {TimelockController}. Any asset sent to the {Governor} will be\n * inaccessible.\n *\n * _Available since v4.3._\n */\nabstract contract GovernorTimelockCompound is IGovernorTimelock, Governor {\n using SafeCast for uint256;\n using Timers for Timers.Timestamp;\n\n struct ProposalTimelock {\n Timers.Timestamp timer;\n }\n\n ICompoundTimelock private _timelock;\n\n mapping(uint256 => ProposalTimelock) private _proposalTimelocks;\n\n /**\n * @dev Emitted when the timelock controller used for proposal execution is modified.\n */\n event TimelockChange(address oldTimelock, address newTimelock);\n\n /**\n * @dev Set the timelock.\n */\n constructor(ICompoundTimelock timelockAddress) {\n _updateTimelock(timelockAddress);\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, Governor) returns (bool) {\n return interfaceId == type(IGovernorTimelock).interfaceId || super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev Overriden version of the {Governor-state} function with added support for the `Queued` and `Expired` status.\n */\n function state(uint256 proposalId) public view virtual override(IGovernor, Governor) returns (ProposalState) {\n ProposalState status = super.state(proposalId);\n\n if (status != ProposalState.Succeeded) {\n return status;\n }\n\n uint256 eta = proposalEta(proposalId);\n if (eta == 0) {\n return status;\n } else if (block.timestamp >= eta + _timelock.GRACE_PERIOD()) {\n return ProposalState.Expired;\n } else {\n return ProposalState.Queued;\n }\n }\n\n /**\n * @dev Public accessor to check the address of the timelock\n */\n function timelock() public view virtual override returns (address) {\n return address(_timelock);\n }\n\n /**\n * @dev Public accessor to check the eta of a queued proposal\n */\n function proposalEta(uint256 proposalId) public view virtual override returns (uint256) {\n return _proposalTimelocks[proposalId].timer.getDeadline();\n }\n\n /**\n * @dev Function to queue a proposal to the timelock.\n */\n function queue(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) public virtual override returns (uint256) {\n uint256 proposalId = hashProposal(targets, values, calldatas, descriptionHash);\n\n require(state(proposalId) == ProposalState.Succeeded, \"Governor: proposal not successful\");\n\n uint256 eta = block.timestamp + _timelock.delay();\n _proposalTimelocks[proposalId].timer.setDeadline(eta.toUint64());\n for (uint256 i = 0; i < targets.length; ++i) {\n require(\n !_timelock.queuedTransactions(keccak256(abi.encode(targets[i], values[i], \"\", calldatas[i], eta))),\n \"GovernorTimelockCompound: identical proposal action already queued\"\n );\n _timelock.queueTransaction(targets[i], values[i], \"\", calldatas[i], eta);\n }\n\n emit ProposalQueued(proposalId, eta);\n\n return proposalId;\n }\n\n /**\n * @dev Overriden execute function that run the already queued proposal through the timelock.\n */\n function _execute(\n uint256 proposalId,\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 /*descriptionHash*/\n ) internal virtual override {\n uint256 eta = proposalEta(proposalId);\n require(eta > 0, \"GovernorTimelockCompound: proposal not yet queued\");\n Address.sendValue(payable(_timelock), msg.value);\n for (uint256 i = 0; i < targets.length; ++i) {\n _timelock.executeTransaction(targets[i], values[i], \"\", calldatas[i], eta);\n }\n }\n\n /**\n * @dev Overriden version of the {Governor-_cancel} function to cancel the timelocked proposal if it as already\n * been queued.\n */\n function _cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal virtual override returns (uint256) {\n uint256 proposalId = super._cancel(targets, values, calldatas, descriptionHash);\n\n uint256 eta = proposalEta(proposalId);\n if (eta > 0) {\n for (uint256 i = 0; i < targets.length; ++i) {\n _timelock.cancelTransaction(targets[i], values[i], \"\", calldatas[i], eta);\n }\n _proposalTimelocks[proposalId].timer.reset();\n }\n\n return proposalId;\n }\n\n /**\n * @dev Address through which the governor executes action. In this case, the timelock.\n */\n function _executor() internal view virtual override returns (address) {\n return address(_timelock);\n }\n\n /**\n * @dev Accept admin right over the timelock.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n function __acceptAdmin() public {\n _timelock.acceptAdmin();\n }\n\n /**\n * @dev Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates\n * must be proposed, scheduled and executed using the {Governor} workflow.\n *\n * For security reason, the timelock must be handed over to another admin before setting up a new one. The two\n * operations (hand over the timelock) and do the update can be batched in a single proposal.\n *\n * Note that if the timelock admin has been handed over in a previous operation, we refuse updates made through the\n * timelock if admin of the timelock has already been accepted and the operation is executed outside the scope of\n * governance.\n */\n function updateTimelock(ICompoundTimelock newTimelock) external virtual onlyGovernance {\n _updateTimelock(newTimelock);\n }\n\n function _updateTimelock(ICompoundTimelock newTimelock) private {\n emit TimelockChange(address(_timelock), address(newTimelock));\n _timelock = newTimelock;\n }\n}\n"}, "interfaces/IERC721Receiver.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x04c99e0f7cc521daff42ecd8e8f14877"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Receiver.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC721/IERC721Receiver.sol\";\n"}, "mocks/SignedSafeMathMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xc0abc8207b2fe94f7e6e14bc8f32e130"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/math/SignedSafeMath.sol\";\n\ncontract SignedSafeMathMock {\n function mul(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.mul(a, b);\n }\n\n function div(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.div(a, b);\n }\n\n function sub(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.sub(a, b);\n }\n\n function add(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.add(a, b);\n }\n}\n"}, "mocks/ERC165StorageMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x5e1f7907867ff274418400e6a41d38a7"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/introspection/ERC165Storage.sol\";\n\ncontract ERC165StorageMock is ERC165Storage {\n function registerInterface(bytes4 interfaceId) public {\n _registerInterface(interfaceId);\n }\n}\n"}, "governance/extensions/GovernorVotes.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xafe408f37eb12e094c7270738a2aa754"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (governance/extensions/GovernorVotes.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../Governor.sol\";\nimport \"../../token/ERC20/extensions/ERC20Votes.sol\";\nimport \"../../utils/math/Math.sol\";\n\n/**\n * @dev Extension of {Governor} for voting weight extraction from an {ERC20Votes} token.\n *\n * _Available since v4.3._\n */\nabstract contract GovernorVotes is Governor {\n ERC20Votes public immutable token;\n\n constructor(ERC20Votes tokenAddress) {\n token = tokenAddress;\n }\n\n /**\n * Read the voting weight from the token's built in snapshot mechanism (see {IGovernor-getVotes}).\n */\n function getVotes(address account, uint256 blockNumber) public view virtual override returns (uint256) {\n return token.getPastVotes(account, blockNumber);\n }\n}\n"}, "mocks/TimersBlockNumberImpl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x251e6f75ef0655071e414aa17f406ef0"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Timers.sol\";\n\ncontract TimersBlockNumberImpl {\n using Timers for Timers.BlockNumber;\n\n Timers.BlockNumber private _timer;\n\n function getDeadline() public view returns (uint64) {\n return _timer.getDeadline();\n }\n\n function setDeadline(uint64 timestamp) public {\n _timer.setDeadline(timestamp);\n }\n\n function reset() public {\n _timer.reset();\n }\n\n function isUnset() public view returns (bool) {\n return _timer.isUnset();\n }\n\n function isStarted() public view returns (bool) {\n return _timer.isStarted();\n }\n\n function isPending() public view returns (bool) {\n return _timer.isPending();\n }\n\n function isExpired() public view returns (bool) {\n return _timer.isExpired();\n }\n}\n"}, "mocks/ConditionalEscrowMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x63b04414ec27ee252e7e7431785f5a63"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/escrow/ConditionalEscrow.sol\";\n\n// mock class using ConditionalEscrow\ncontract ConditionalEscrowMock is ConditionalEscrow {\n mapping(address => bool) private _allowed;\n\n function setAllowed(address payee, bool allowed) public {\n _allowed[payee] = allowed;\n }\n\n function withdrawalAllowed(address payee) public view override returns (bool) {\n return _allowed[payee];\n }\n}\n"}, "proxy/beacon/BeaconProxy.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x0d71075819600720f2c99ed4b31d88e0"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/BeaconProxy.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IBeacon.sol\";\nimport \"../Proxy.sol\";\nimport \"../ERC1967/ERC1967Upgrade.sol\";\n\n/**\n * @dev This contract implements a proxy that gets the implementation address for each call from a {UpgradeableBeacon}.\n *\n * The beacon address is stored in storage slot `uint256(keccak256('eip1967.proxy.beacon')) - 1`, so that it doesn't\n * conflict with the storage layout of the implementation behind the proxy.\n *\n * _Available since v3.4._\n */\ncontract BeaconProxy is Proxy, ERC1967Upgrade {\n /**\n * @dev Initializes the proxy with `beacon`.\n *\n * If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. This\n * will typically be an encoded function call, and allows initializating the storage of the proxy like a Solidity\n * constructor.\n *\n * Requirements:\n *\n * - `beacon` must be a contract with the interface {IBeacon}.\n */\n constructor(address beacon, bytes memory data) payable {\n assert(_BEACON_SLOT == bytes32(uint256(keccak256(\"eip1967.proxy.beacon\")) - 1));\n _upgradeBeaconToAndCall(beacon, data, false);\n }\n\n /**\n * @dev Returns the current beacon address.\n */\n function _beacon() internal view virtual returns (address) {\n return _getBeacon();\n }\n\n /**\n * @dev Returns the current implementation address of the associated beacon.\n */\n function _implementation() internal view virtual override returns (address) {\n return IBeacon(_getBeacon()).implementation();\n }\n\n /**\n * @dev Changes the proxy to use a new beacon. Deprecated: see {_upgradeBeaconToAndCall}.\n *\n * If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon.\n *\n * Requirements:\n *\n * - `beacon` must be a contract.\n * - The implementation returned by `beacon` must be a contract.\n */\n function _setBeacon(address beacon, bytes memory data) internal virtual {\n _upgradeBeaconToAndCall(beacon, data, false);\n }\n}\n"}, "mocks/SafeMathMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x0f2e411c240cab2951bf7856ffe04b98"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/math/SafeMath.sol\";\n\ncontract SafeMathMock {\n function tryAdd(uint256 a, uint256 b) public pure returns (bool flag, uint256 value) {\n return SafeMath.tryAdd(a, b);\n }\n\n function trySub(uint256 a, uint256 b) public pure returns (bool flag, uint256 value) {\n return SafeMath.trySub(a, b);\n }\n\n function tryMul(uint256 a, uint256 b) public pure returns (bool flag, uint256 value) {\n return SafeMath.tryMul(a, b);\n }\n\n function tryDiv(uint256 a, uint256 b) public pure returns (bool flag, uint256 value) {\n return SafeMath.tryDiv(a, b);\n }\n\n function tryMod(uint256 a, uint256 b) public pure returns (bool flag, uint256 value) {\n return SafeMath.tryMod(a, b);\n }\n\n // using the do* naming convention to avoid warnings due to clashing opcode names\n\n function doAdd(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.add(a, b);\n }\n\n function doSub(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.sub(a, b);\n }\n\n function doMul(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.mul(a, b);\n }\n\n function doDiv(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.div(a, b);\n }\n\n function doMod(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.mod(a, b);\n }\n\n function subWithMessage(\n uint256 a,\n uint256 b,\n string memory errorMessage\n ) public pure returns (uint256) {\n return SafeMath.sub(a, b, errorMessage);\n }\n\n function divWithMessage(\n uint256 a,\n uint256 b,\n string memory errorMessage\n ) public pure returns (uint256) {\n return SafeMath.div(a, b, errorMessage);\n }\n\n function modWithMessage(\n uint256 a,\n uint256 b,\n string memory errorMessage\n ) public pure returns (uint256) {\n return SafeMath.mod(a, b, errorMessage);\n }\n\n function addMemoryCheck() public pure returns (uint256 mem) {\n uint256 length = 32;\n assembly {\n mem := mload(0x40)\n }\n for (uint256 i = 0; i < length; ++i) {\n SafeMath.add(1, 1);\n }\n assembly {\n mem := sub(mload(0x40), mem)\n }\n }\n\n function subMemoryCheck() public pure returns (uint256 mem) {\n uint256 length = 32;\n assembly {\n mem := mload(0x40)\n }\n for (uint256 i = 0; i < length; ++i) {\n SafeMath.sub(1, 1);\n }\n assembly {\n mem := sub(mload(0x40), mem)\n }\n }\n\n function mulMemoryCheck() public pure returns (uint256 mem) {\n uint256 length = 32;\n assembly {\n mem := mload(0x40)\n }\n for (uint256 i = 0; i < length; ++i) {\n SafeMath.mul(1, 1);\n }\n assembly {\n mem := sub(mload(0x40), mem)\n }\n }\n\n function divMemoryCheck() public pure returns (uint256 mem) {\n uint256 length = 32;\n assembly {\n mem := mload(0x40)\n }\n for (uint256 i = 0; i < length; ++i) {\n SafeMath.div(1, 1);\n }\n assembly {\n mem := sub(mload(0x40), mem)\n }\n }\n\n function modMemoryCheck() public pure returns (uint256 mem) {\n uint256 length = 32;\n assembly {\n mem := mload(0x40)\n }\n for (uint256 i = 0; i < length; ++i) {\n SafeMath.mod(1, 1);\n }\n assembly {\n mem := sub(mload(0x40), mem)\n }\n }\n}\n"}, "utils/introspection/ERC165.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x0e7db055ce108f9da7bb6686a00287c0"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165.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 ERC165 is IERC165 {\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(IERC165).interfaceId;\n }\n}\n"}, "interfaces/IERC1820Registry.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xfee82324a47df8d208c5389f695afab9"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1820Registry.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/introspection/IERC1820Registry.sol\";\n"}, "mocks/StringsMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x576c5673181da7bea96fde42342a6e41"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Strings.sol\";\n\ncontract StringsMock {\n function fromUint256(uint256 value) public pure returns (string memory) {\n return Strings.toString(value);\n }\n\n function fromUint256Hex(uint256 value) public pure returns (string memory) {\n return Strings.toHexString(value);\n }\n\n function fromUint256HexFixed(uint256 value, uint256 length) public pure returns (string memory) {\n return Strings.toHexString(value, length);\n }\n}\n"}, "mocks/ERC20SnapshotMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd1c6ab468983add875049a57a5485e77"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/extensions/ERC20Snapshot.sol\";\n\ncontract ERC20SnapshotMock is ERC20Snapshot {\n constructor(\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n\n function snapshot() public {\n _snapshot();\n }\n\n function mint(address account, uint256 amount) public {\n _mint(account, amount);\n }\n\n function burn(address account, uint256 amount) public {\n _burn(account, amount);\n }\n}\n"}, "token/ERC721/extensions/ERC721Enumerable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x88095889e59d16821879a8083f906503"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC721.sol\";\nimport \"./IERC721Enumerable.sol\";\n\n/**\n * @dev This implements an optional extension of {ERC721} defined in the EIP that adds\n * enumerability of all the token ids in the contract as well as all token ids owned by each\n * account.\n */\nabstract contract ERC721Enumerable is ERC721, IERC721Enumerable {\n // Mapping from owner to list of owned token IDs\n mapping(address => mapping(uint256 => uint256)) private _ownedTokens;\n\n // Mapping from token ID to index of the owner tokens list\n mapping(uint256 => uint256) private _ownedTokensIndex;\n\n // Array with all token ids, used for enumeration\n uint256[] private _allTokens;\n\n // Mapping from token id to position in the allTokens array\n mapping(uint256 => uint256) private _allTokensIndex;\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {\n return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.\n */\n function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {\n require(index < ERC721.balanceOf(owner), \"ERC721Enumerable: owner index out of bounds\");\n return _ownedTokens[owner][index];\n }\n\n /**\n * @dev See {IERC721Enumerable-totalSupply}.\n */\n function totalSupply() public view virtual override returns (uint256) {\n return _allTokens.length;\n }\n\n /**\n * @dev See {IERC721Enumerable-tokenByIndex}.\n */\n function tokenByIndex(uint256 index) public view virtual override returns (uint256) {\n require(index < ERC721Enumerable.totalSupply(), \"ERC721Enumerable: global index out of bounds\");\n return _allTokens[index];\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes minting\n * and burning.\n *\n * Calling conditions:\n *\n * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be\n * transferred to `to`.\n * - When `from` is zero, `tokenId` will be minted for `to`.\n * - When `to` is zero, ``from``'s `tokenId` will be burned.\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\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 tokenId\n ) internal virtual override {\n super._beforeTokenTransfer(from, to, tokenId);\n\n if (from == address(0)) {\n _addTokenToAllTokensEnumeration(tokenId);\n } else if (from != to) {\n _removeTokenFromOwnerEnumeration(from, tokenId);\n }\n if (to == address(0)) {\n _removeTokenFromAllTokensEnumeration(tokenId);\n } else if (to != from) {\n _addTokenToOwnerEnumeration(to, tokenId);\n }\n }\n\n /**\n * @dev Private function to add a token to this extension's ownership-tracking data structures.\n * @param to address representing the new owner of the given token ID\n * @param tokenId uint256 ID of the token to be added to the tokens list of the given address\n */\n function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {\n uint256 length = ERC721.balanceOf(to);\n _ownedTokens[to][length] = tokenId;\n _ownedTokensIndex[tokenId] = length;\n }\n\n /**\n * @dev Private function to add a token to this extension's token tracking data structures.\n * @param tokenId uint256 ID of the token to be added to the tokens list\n */\n function _addTokenToAllTokensEnumeration(uint256 tokenId) private {\n _allTokensIndex[tokenId] = _allTokens.length;\n _allTokens.push(tokenId);\n }\n\n /**\n * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that\n * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for\n * gas optimizations e.g. when performing a transfer operation (avoiding double writes).\n * This has O(1) time complexity, but alters the order of the _ownedTokens array.\n * @param from address representing the previous owner of the given token ID\n * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address\n */\n function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {\n // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and\n // then delete the last slot (swap and pop).\n\n uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;\n uint256 tokenIndex = _ownedTokensIndex[tokenId];\n\n // When the token to delete is the last token, the swap operation is unnecessary\n if (tokenIndex != lastTokenIndex) {\n uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];\n\n _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token\n _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index\n }\n\n // This also deletes the contents at the last position of the array\n delete _ownedTokensIndex[tokenId];\n delete _ownedTokens[from][lastTokenIndex];\n }\n\n /**\n * @dev Private function to remove a token from this extension's token tracking data structures.\n * This has O(1) time complexity, but alters the order of the _allTokens array.\n * @param tokenId uint256 ID of the token to be removed from the tokens list\n */\n function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {\n // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and\n // then delete the last slot (swap and pop).\n\n uint256 lastTokenIndex = _allTokens.length - 1;\n uint256 tokenIndex = _allTokensIndex[tokenId];\n\n // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so\n // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding\n // an 'if' statement (like in _removeTokenFromOwnerEnumeration)\n uint256 lastTokenId = _allTokens[lastTokenIndex];\n\n _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token\n _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index\n\n // This also deletes the contents at the last position of the array\n delete _allTokensIndex[tokenId];\n _allTokens.pop();\n }\n}\n"}, "finance/PaymentSplitter.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x6f4509765ae026e31e8e4f0fb8f1f80f"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/utils/SafeERC20.sol\";\nimport \"../utils/Address.sol\";\nimport \"../utils/Context.sol\";\n\n/**\n * @title PaymentSplitter\n * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware\n * that the Ether will be split in this way, since it is handled transparently by the contract.\n *\n * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each\n * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim\n * an amount proportional to the percentage of total shares they were assigned.\n *\n * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the\n * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}\n * function.\n *\n * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and\n * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you\n * to run tests before sending real value to this contract.\n */\ncontract PaymentSplitter is Context {\n event PayeeAdded(address account, uint256 shares);\n event PaymentReleased(address to, uint256 amount);\n event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);\n event PaymentReceived(address from, uint256 amount);\n\n uint256 private _totalShares;\n uint256 private _totalReleased;\n\n mapping(address => uint256) private _shares;\n mapping(address => uint256) private _released;\n address[] private _payees;\n\n mapping(IERC20 => uint256) private _erc20TotalReleased;\n mapping(IERC20 => mapping(address => uint256)) private _erc20Released;\n\n /**\n * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at\n * the matching position in the `shares` array.\n *\n * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no\n * duplicates in `payees`.\n */\n constructor(address[] memory payees, uint256[] memory shares_) payable {\n require(payees.length == shares_.length, \"PaymentSplitter: payees and shares length mismatch\");\n require(payees.length > 0, \"PaymentSplitter: no payees\");\n\n for (uint256 i = 0; i < payees.length; i++) {\n _addPayee(payees[i], shares_[i]);\n }\n }\n\n /**\n * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully\n * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the\n * reliability of the events, and not the actual splitting of Ether.\n *\n * To learn more about this see the Solidity documentation for\n * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback\n * functions].\n */\n receive() external payable virtual {\n emit PaymentReceived(_msgSender(), msg.value);\n }\n\n /**\n * @dev Getter for the total shares held by payees.\n */\n function totalShares() public view returns (uint256) {\n return _totalShares;\n }\n\n /**\n * @dev Getter for the total amount of Ether already released.\n */\n function totalReleased() public view returns (uint256) {\n return _totalReleased;\n }\n\n /**\n * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20\n * contract.\n */\n function totalReleased(IERC20 token) public view returns (uint256) {\n return _erc20TotalReleased[token];\n }\n\n /**\n * @dev Getter for the amount of shares held by an account.\n */\n function shares(address account) public view returns (uint256) {\n return _shares[account];\n }\n\n /**\n * @dev Getter for the amount of Ether already released to a payee.\n */\n function released(address account) public view returns (uint256) {\n return _released[account];\n }\n\n /**\n * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an\n * IERC20 contract.\n */\n function released(IERC20 token, address account) public view returns (uint256) {\n return _erc20Released[token][account];\n }\n\n /**\n * @dev Getter for the address of the payee number `index`.\n */\n function payee(uint256 index) public view returns (address) {\n return _payees[index];\n }\n\n /**\n * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the\n * total shares and their previous withdrawals.\n */\n function release(address payable account) public virtual {\n require(_shares[account] > 0, \"PaymentSplitter: account has no shares\");\n\n uint256 totalReceived = address(this).balance + totalReleased();\n uint256 payment = _pendingPayment(account, totalReceived, released(account));\n\n require(payment != 0, \"PaymentSplitter: account is not due payment\");\n\n _released[account] += payment;\n _totalReleased += payment;\n\n Address.sendValue(account, payment);\n emit PaymentReleased(account, payment);\n }\n\n /**\n * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their\n * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20\n * contract.\n */\n function release(IERC20 token, address account) public virtual {\n require(_shares[account] > 0, \"PaymentSplitter: account has no shares\");\n\n uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);\n uint256 payment = _pendingPayment(account, totalReceived, released(token, account));\n\n require(payment != 0, \"PaymentSplitter: account is not due payment\");\n\n _erc20Released[token][account] += payment;\n _erc20TotalReleased[token] += payment;\n\n SafeERC20.safeTransfer(token, account, payment);\n emit ERC20PaymentReleased(token, account, payment);\n }\n\n /**\n * @dev internal logic for computing the pending payment of an `account` given the token historical balances and\n * already released amounts.\n */\n function _pendingPayment(\n address account,\n uint256 totalReceived,\n uint256 alreadyReleased\n ) private view returns (uint256) {\n return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;\n }\n\n /**\n * @dev Add a new payee to the contract.\n * @param account The address of the payee to add.\n * @param shares_ The number of shares owned by the payee.\n */\n function _addPayee(address account, uint256 shares_) private {\n require(account != address(0), \"PaymentSplitter: account is the zero address\");\n require(shares_ > 0, \"PaymentSplitter: shares are 0\");\n require(_shares[account] == 0, \"PaymentSplitter: account already has shares\");\n\n _payees.push(account);\n _shares[account] = shares_;\n _totalShares = _totalShares + shares_;\n emit PayeeAdded(account, shares_);\n }\n}\n"}, "token/ERC721/IERC721Receiver.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x592df588492d45fdcf46b3cb608c0fbf"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @title ERC721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC721 asset contracts.\n */\ninterface IERC721Receiver {\n /**\n * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n * by `operator` from `from`, this function is called.\n *\n * It must return its Solidity selector to confirm the token transfer.\n * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\n *\n * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.\n */\n function onERC721Received(\n address operator,\n address from,\n uint256 tokenId,\n bytes calldata data\n ) external returns (bytes4);\n}\n"}, "mocks/GovernorTimelockControlMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x5a48537e3185d65be5ab32e9a3957cf5"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../governance/extensions/GovernorTimelockControl.sol\";\nimport \"../governance/extensions/GovernorSettings.sol\";\nimport \"../governance/extensions/GovernorCountingSimple.sol\";\nimport \"../governance/extensions/GovernorVotesQuorumFraction.sol\";\n\ncontract GovernorTimelockControlMock is\n GovernorSettings,\n GovernorTimelockControl,\n GovernorVotesQuorumFraction,\n GovernorCountingSimple\n{\n constructor(\n string memory name_,\n ERC20Votes token_,\n uint256 votingDelay_,\n uint256 votingPeriod_,\n TimelockController timelock_,\n uint256 quorumNumerator_\n )\n Governor(name_)\n GovernorTimelockControl(timelock_)\n GovernorSettings(votingDelay_, votingPeriod_, 0)\n GovernorVotes(token_)\n GovernorVotesQuorumFraction(quorumNumerator_)\n {}\n\n function supportsInterface(bytes4 interfaceId)\n public\n view\n virtual\n override(Governor, GovernorTimelockControl)\n returns (bool)\n {\n return super.supportsInterface(interfaceId);\n }\n\n function quorum(uint256 blockNumber)\n public\n view\n override(IGovernor, GovernorVotesQuorumFraction)\n returns (uint256)\n {\n return super.quorum(blockNumber);\n }\n\n function cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) public returns (uint256 proposalId) {\n return _cancel(targets, values, calldatas, descriptionHash);\n }\n\n /**\n * Overriding nightmare\n */\n function state(uint256 proposalId)\n public\n view\n virtual\n override(Governor, GovernorTimelockControl)\n returns (ProposalState)\n {\n return super.state(proposalId);\n }\n\n function proposalThreshold() public view override(Governor, GovernorSettings) returns (uint256) {\n return super.proposalThreshold();\n }\n\n function _execute(\n uint256 proposalId,\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal virtual override(Governor, GovernorTimelockControl) {\n super._execute(proposalId, targets, values, calldatas, descriptionHash);\n }\n\n function _cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal virtual override(Governor, GovernorTimelockControl) returns (uint256 proposalId) {\n return super._cancel(targets, values, calldatas, descriptionHash);\n }\n\n function getVotes(address account, uint256 blockNumber)\n public\n view\n virtual\n override(IGovernor, GovernorVotes)\n returns (uint256)\n {\n return super.getVotes(account, blockNumber);\n }\n\n function _executor() internal view virtual override(Governor, GovernorTimelockControl) returns (address) {\n return super._executor();\n }\n}\n"}, "token/ERC721/presets/ERC721PresetMinterPauserAutoId.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x04c05cd714f642b1d3bb5ac56f2b939d"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/presets/ERC721PresetMinterPauserAutoId.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC721.sol\";\nimport \"../extensions/ERC721Enumerable.sol\";\nimport \"../extensions/ERC721Burnable.sol\";\nimport \"../extensions/ERC721Pausable.sol\";\nimport \"../../../access/AccessControlEnumerable.sol\";\nimport \"../../../utils/Context.sol\";\nimport \"../../../utils/Counters.sol\";\n\n/**\n * @dev {ERC721} token, including:\n *\n * - ability for holders to burn (destroy) their tokens\n * - a minter role that allows for token minting (creation)\n * - a pauser role that allows to stop all token transfers\n * - token ID and URI autogeneration\n *\n * This contract uses {AccessControl} to lock permissioned functions using the\n * different roles - head to its documentation for details.\n *\n * The account that deploys the contract will be granted the minter and pauser\n * roles, as well as the default admin role, which will let it grant both minter\n * and pauser roles to other accounts.\n */\ncontract ERC721PresetMinterPauserAutoId is\n Context,\n AccessControlEnumerable,\n ERC721Enumerable,\n ERC721Burnable,\n ERC721Pausable\n{\n using Counters for Counters.Counter;\n\n bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n\n Counters.Counter private _tokenIdTracker;\n\n string private _baseTokenURI;\n\n /**\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the\n * account that deploys the contract.\n *\n * Token URIs will be autogenerated based on `baseURI` and their token IDs.\n * See {ERC721-tokenURI}.\n */\n constructor(\n string memory name,\n string memory symbol,\n string memory baseTokenURI\n ) ERC721(name, symbol) {\n _baseTokenURI = baseTokenURI;\n\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n\n _setupRole(MINTER_ROLE, _msgSender());\n _setupRole(PAUSER_ROLE, _msgSender());\n }\n\n function _baseURI() internal view virtual override returns (string memory) {\n return _baseTokenURI;\n }\n\n /**\n * @dev Creates a new token for `to`. Its token ID will be automatically\n * assigned (and available on the emitted {IERC721-Transfer} event), and the token\n * URI autogenerated based on the base URI passed at construction.\n *\n * See {ERC721-_mint}.\n *\n * Requirements:\n *\n * - the caller must have the `MINTER_ROLE`.\n */\n function mint(address to) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC721PresetMinterPauserAutoId: must have minter role to mint\");\n\n // We cannot just use balanceOf to create the new tokenId because tokens\n // can be burned (destroyed), so we need a separate counter.\n _mint(to, _tokenIdTracker.current());\n _tokenIdTracker.increment();\n }\n\n /**\n * @dev Pauses all token transfers.\n *\n * See {ERC721Pausable} and {Pausable-_pause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function pause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC721PresetMinterPauserAutoId: must have pauser role to pause\");\n _pause();\n }\n\n /**\n * @dev Unpauses all token transfers.\n *\n * See {ERC721Pausable} and {Pausable-_unpause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function unpause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC721PresetMinterPauserAutoId: must have pauser role to unpause\");\n _unpause();\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 tokenId\n ) internal virtual override(ERC721, ERC721Enumerable, ERC721Pausable) {\n super._beforeTokenTransfer(from, to, tokenId);\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId)\n public\n view\n virtual\n override(AccessControlEnumerable, ERC721, ERC721Enumerable)\n returns (bool)\n {\n return super.supportsInterface(interfaceId);\n }\n}\n"}, "mocks/ERC20VotesMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x053434c5bb49ac564e581ceb1181b7e1"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/extensions/ERC20Votes.sol\";\n\ncontract ERC20VotesMock is ERC20Votes {\n constructor(string memory name, string memory symbol) ERC20(name, symbol) ERC20Permit(name) {}\n\n function mint(address account, uint256 amount) public {\n _mint(account, amount);\n }\n\n function burn(address account, uint256 amount) public {\n _burn(account, amount);\n }\n\n function getChainId() external view returns (uint256) {\n return block.chainid;\n }\n}\n"}, "mocks/ERC721PausableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd956d419d6d9abff2fb0fbcb14f5bdae"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC721/extensions/ERC721Pausable.sol\";\n\n/**\n * @title ERC721PausableMock\n * This mock just provides a public mint, burn and exists functions for testing purposes\n */\ncontract ERC721PausableMock is ERC721Pausable {\n constructor(string memory name, string memory symbol) ERC721(name, symbol) {}\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n\n function exists(uint256 tokenId) public view returns (bool) {\n return _exists(tokenId);\n }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n\n function safeMint(address to, uint256 tokenId) public {\n _safeMint(to, tokenId);\n }\n\n function safeMint(\n address to,\n uint256 tokenId,\n bytes memory _data\n ) public {\n _safeMint(to, tokenId, _data);\n }\n\n function burn(uint256 tokenId) public {\n _burn(tokenId);\n }\n}\n"}, "interfaces/IERC20.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd151fbfe7939989b9acf22797b32058b"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/IERC20.sol\";\n"}, "token/ERC777/IERC777Sender.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x7c1ce5bc5bc5f57fe7106ba767063e08"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC777/IERC777Sender.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC777TokensSender standard as defined in the EIP.\n *\n * {IERC777} Token holders can be notified of operations performed on their\n * tokens by having a contract implement this interface (contract holders can be\n * their own implementer) and registering it on the\n * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].\n *\n * See {IERC1820Registry} and {ERC1820Implementer}.\n */\ninterface IERC777Sender {\n /**\n * @dev Called by an {IERC777} token contract whenever a registered holder's\n * (`from`) tokens are about to be moved or destroyed. The type of operation\n * is conveyed by `to` being the zero address or not.\n *\n * This call occurs _before_ the token contract's state is updated, so\n * {IERC777-balanceOf}, etc., can be used to query the pre-operation state.\n *\n * This function may revert to prevent the operation from being executed.\n */\n function tokensToSend(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external;\n}\n"}, "interfaces/IERC1820Implementer.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xb78ff1b7467f49381ceffd0e1c86b821"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1820Implementer.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/introspection/IERC1820Implementer.sol\";\n"}, "mocks/ERC165Mock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4af581ea8aa2c8845c950d764f220b26"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/introspection/ERC165.sol\";\n\ncontract ERC165Mock is ERC165 {}\n"}, "token/ERC20/extensions/ERC20VotesComp.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x89613d6d7b1c0ad02f4cb831523d2a86"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20VotesComp.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./ERC20Votes.sol\";\n\n/**\n * @dev Extension of ERC20 to support Compound's voting and delegation. This version exactly matches Compound's\n * interface, with the drawback of only supporting supply up to (2^96^ - 1).\n *\n * NOTE: You should use this contract if you need exact compatibility with COMP (for example in order to use your token\n * with Governor Alpha or Bravo) and if you are sure the supply cap of 2^96^ is enough for you. Otherwise, use the\n * {ERC20Votes} variant of this module.\n *\n * This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either\n * by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting\n * power can be queried through the public accessors {getCurrentVotes} and {getPriorVotes}.\n *\n * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it\n * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked.\n * Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this\n * will significantly increase the base gas cost of transfers.\n *\n * _Available since v4.2._\n */\nabstract contract ERC20VotesComp is ERC20Votes {\n /**\n * @dev Comp version of the {getVotes} accessor, with `uint96` return type.\n */\n function getCurrentVotes(address account) external view returns (uint96) {\n return SafeCast.toUint96(getVotes(account));\n }\n\n /**\n * @dev Comp version of the {getPastVotes} accessor, with `uint96` return type.\n */\n function getPriorVotes(address account, uint256 blockNumber) external view returns (uint96) {\n return SafeCast.toUint96(getPastVotes(account, blockNumber));\n }\n\n /**\n * @dev Maximum token supply. Reduced to `type(uint96).max` (2^96^ - 1) to fit COMP interface.\n */\n function _maxSupply() internal view virtual override returns (uint224) {\n return type(uint96).max;\n }\n}\n"}, "security/ReentrancyGuard.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x92f9448b23a90ea3bb932ee55cc3ccce"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\nabstract contract ReentrancyGuard {\n // Booleans are more expensive than uint256 or any type that takes up a full\n // word because each write operation emits an extra SLOAD to first read the\n // slot's contents, replace the bits taken up by the boolean, and then write\n // back. This is the compiler's defense against contract upgrades and\n // pointer aliasing, and it cannot be disabled.\n\n // The values being non-zero value makes deployment a bit more expensive,\n // but in exchange the refund on every call to nonReentrant will be lower in\n // amount. Since refunds are capped to a percentage of the total\n // transaction's gas, it is best to keep them low in cases like this one, to\n // increase the likelihood of the full refund coming into effect.\n uint256 private constant _NOT_ENTERED = 1;\n uint256 private constant _ENTERED = 2;\n\n uint256 private _status;\n\n constructor() {\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Prevents a contract from calling itself, directly or indirectly.\n * Calling a `nonReentrant` function from another `nonReentrant`\n * function is not supported. It is possible to prevent this from happening\n * by making the `nonReentrant` function external, and making it call a\n * `private` function that does the actual work.\n */\n modifier nonReentrant() {\n // On the first call to nonReentrant, _notEntered will be true\n require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n // Any calls to nonReentrant after this point will fail\n _status = _ENTERED;\n\n _;\n\n // By storing the original value once again, a refund is triggered (see\n // https://eips.ethereum.org/EIPS/eip-2200)\n _status = _NOT_ENTERED;\n }\n}\n"}, "mocks/CallReceiverMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd8ad0fa6f5cb047fd71030abd436c3d2"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract CallReceiverMock {\n string public sharedAnswer;\n\n event MockFunctionCalled();\n event MockFunctionCalledWithArgs(uint256 a, uint256 b);\n\n uint256[] private _array;\n\n function mockFunction() public payable returns (string memory) {\n emit MockFunctionCalled();\n\n return \"0x1234\";\n }\n\n function mockFunctionWithArgs(uint256 a, uint256 b) public payable returns (string memory) {\n emit MockFunctionCalledWithArgs(a, b);\n\n return \"0x1234\";\n }\n\n function mockFunctionNonPayable() public returns (string memory) {\n emit MockFunctionCalled();\n\n return \"0x1234\";\n }\n\n function mockStaticFunction() public pure returns (string memory) {\n return \"0x1234\";\n }\n\n function mockFunctionRevertsNoReason() public payable {\n revert();\n }\n\n function mockFunctionRevertsReason() public payable {\n revert(\"CallReceiverMock: reverting\");\n }\n\n function mockFunctionThrows() public payable {\n assert(false);\n }\n\n function mockFunctionOutOfGas() public payable {\n for (uint256 i = 0; ; ++i) {\n _array.push(i);\n }\n }\n\n function mockFunctionWritesStorage() public returns (string memory) {\n sharedAnswer = \"42\";\n return \"0x1234\";\n }\n}\n"}, "utils/Timers.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xae135102abee8b2fc88eed09a40cdb4c"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Timers.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Tooling for timepoints, timers and delays\n */\nlibrary Timers {\n struct Timestamp {\n uint64 _deadline;\n }\n\n function getDeadline(Timestamp memory timer) internal pure returns (uint64) {\n return timer._deadline;\n }\n\n function setDeadline(Timestamp storage timer, uint64 timestamp) internal {\n timer._deadline = timestamp;\n }\n\n function reset(Timestamp storage timer) internal {\n timer._deadline = 0;\n }\n\n function isUnset(Timestamp memory timer) internal pure returns (bool) {\n return timer._deadline == 0;\n }\n\n function isStarted(Timestamp memory timer) internal pure returns (bool) {\n return timer._deadline > 0;\n }\n\n function isPending(Timestamp memory timer) internal view returns (bool) {\n return timer._deadline > block.timestamp;\n }\n\n function isExpired(Timestamp memory timer) internal view returns (bool) {\n return isStarted(timer) && timer._deadline <= block.timestamp;\n }\n\n struct BlockNumber {\n uint64 _deadline;\n }\n\n function getDeadline(BlockNumber memory timer) internal pure returns (uint64) {\n return timer._deadline;\n }\n\n function setDeadline(BlockNumber storage timer, uint64 timestamp) internal {\n timer._deadline = timestamp;\n }\n\n function reset(BlockNumber storage timer) internal {\n timer._deadline = 0;\n }\n\n function isUnset(BlockNumber memory timer) internal pure returns (bool) {\n return timer._deadline == 0;\n }\n\n function isStarted(BlockNumber memory timer) internal pure returns (bool) {\n return timer._deadline > 0;\n }\n\n function isPending(BlockNumber memory timer) internal view returns (bool) {\n return timer._deadline > block.number;\n }\n\n function isExpired(BlockNumber memory timer) internal view returns (bool) {\n return isStarted(timer) && timer._deadline <= block.number;\n }\n}\n"}, "token/ERC1155/IERC1155Receiver.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x90eddd06deda7317b4441f04ec26db4d"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/introspection/IERC165.sol\";\n\n/**\n * @dev _Available since v3.1._\n */\ninterface IERC1155Receiver is IERC165 {\n /**\n @dev Handles the receipt of a single ERC1155 token type. This function is\n called at the end of a `safeTransferFrom` after the balance has been updated.\n To accept the transfer, this must return\n `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))`\n (i.e. 0xf23a6e61, or its own function selector).\n @param operator The address which initiated the transfer (i.e. msg.sender)\n @param from The address which previously owned the token\n @param id The ID of the token being transferred\n @param value The amount of tokens being transferred\n @param data Additional data with no specified format\n @return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed\n */\n function onERC1155Received(\n address operator,\n address from,\n uint256 id,\n uint256 value,\n bytes calldata data\n ) external returns (bytes4);\n\n /**\n @dev Handles the receipt of a multiple ERC1155 token types. This function\n is called at the end of a `safeBatchTransferFrom` after the balances have\n been updated. To accept the transfer(s), this must return\n `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))`\n (i.e. 0xbc197c81, or its own function selector).\n @param operator The address which initiated the batch transfer (i.e. msg.sender)\n @param from The address which previously owned the token\n @param ids An array containing ids of each token being transferred (order and length must match values array)\n @param values An array containing amounts of each token being transferred (order and length must match ids array)\n @param data Additional data with no specified format\n @return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed\n */\n function onERC1155BatchReceived(\n address operator,\n address from,\n uint256[] calldata ids,\n uint256[] calldata values,\n bytes calldata data\n ) external returns (bytes4);\n}\n"}, "mocks/compound/CompTimelock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xfd7ad8322337afa2448279b3c8c88b3b"}, "content": "// SPDX-License-Identifier: BSD-3-Clause\n// solhint-disable private-vars-leading-underscore\n/**\n * Copyright 2020 Compound Labs, Inc.\n *\n * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the\n * following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following\n * disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the\n * following disclaimer in the documentation and/or other materials provided with the distribution.\n *\n * 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote\n * products derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\npragma solidity ^0.8.0;\n\ncontract CompTimelock {\n event NewAdmin(address indexed newAdmin);\n event NewPendingAdmin(address indexed newPendingAdmin);\n event NewDelay(uint256 indexed newDelay);\n event CancelTransaction(\n bytes32 indexed txHash,\n address indexed target,\n uint256 value,\n string signature,\n bytes data,\n uint256 eta\n );\n event ExecuteTransaction(\n bytes32 indexed txHash,\n address indexed target,\n uint256 value,\n string signature,\n bytes data,\n uint256 eta\n );\n event QueueTransaction(\n bytes32 indexed txHash,\n address indexed target,\n uint256 value,\n string signature,\n bytes data,\n uint256 eta\n );\n\n uint256 public constant GRACE_PERIOD = 14 days;\n uint256 public constant MINIMUM_DELAY = 2 days;\n uint256 public constant MAXIMUM_DELAY = 30 days;\n\n address public admin;\n address public pendingAdmin;\n uint256 public delay;\n\n mapping(bytes32 => bool) public queuedTransactions;\n\n constructor(address admin_, uint256 delay_) {\n require(delay_ >= MINIMUM_DELAY, \"Timelock::constructor: Delay must exceed minimum delay.\");\n require(delay_ <= MAXIMUM_DELAY, \"Timelock::setDelay: Delay must not exceed maximum delay.\");\n\n admin = admin_;\n delay = delay_;\n }\n\n receive() external payable {}\n\n function setDelay(uint256 delay_) public {\n require(msg.sender == address(this), \"Timelock::setDelay: Call must come from Timelock.\");\n require(delay_ >= MINIMUM_DELAY, \"Timelock::setDelay: Delay must exceed minimum delay.\");\n require(delay_ <= MAXIMUM_DELAY, \"Timelock::setDelay: Delay must not exceed maximum delay.\");\n delay = delay_;\n\n emit NewDelay(delay);\n }\n\n function acceptAdmin() public {\n require(msg.sender == pendingAdmin, \"Timelock::acceptAdmin: Call must come from pendingAdmin.\");\n admin = msg.sender;\n pendingAdmin = address(0);\n\n emit NewAdmin(admin);\n }\n\n function setPendingAdmin(address pendingAdmin_) public {\n require(msg.sender == address(this), \"Timelock::setPendingAdmin: Call must come from Timelock.\");\n pendingAdmin = pendingAdmin_;\n\n emit NewPendingAdmin(pendingAdmin);\n }\n\n function queueTransaction(\n address target,\n uint256 value,\n string memory signature,\n bytes memory data,\n uint256 eta\n ) public returns (bytes32) {\n require(msg.sender == admin, \"Timelock::queueTransaction: Call must come from admin.\");\n require(\n eta >= getBlockTimestamp() + delay,\n \"Timelock::queueTransaction: Estimated execution block must satisfy delay.\"\n );\n\n bytes32 txHash = keccak256(abi.encode(target, value, signature, data, eta));\n queuedTransactions[txHash] = true;\n\n emit QueueTransaction(txHash, target, value, signature, data, eta);\n return txHash;\n }\n\n function cancelTransaction(\n address target,\n uint256 value,\n string memory signature,\n bytes memory data,\n uint256 eta\n ) public {\n require(msg.sender == admin, \"Timelock::cancelTransaction: Call must come from admin.\");\n\n bytes32 txHash = keccak256(abi.encode(target, value, signature, data, eta));\n queuedTransactions[txHash] = false;\n\n emit CancelTransaction(txHash, target, value, signature, data, eta);\n }\n\n function executeTransaction(\n address target,\n uint256 value,\n string memory signature,\n bytes memory data,\n uint256 eta\n ) public payable returns (bytes memory) {\n require(msg.sender == admin, \"Timelock::executeTransaction: Call must come from admin.\");\n\n bytes32 txHash = keccak256(abi.encode(target, value, signature, data, eta));\n require(queuedTransactions[txHash], \"Timelock::executeTransaction: Transaction hasn't been queued.\");\n require(getBlockTimestamp() >= eta, \"Timelock::executeTransaction: Transaction hasn't surpassed time lock.\");\n require(getBlockTimestamp() <= eta + GRACE_PERIOD, \"Timelock::executeTransaction: Transaction is stale.\");\n\n queuedTransactions[txHash] = false;\n\n bytes memory callData;\n\n if (bytes(signature).length == 0) {\n callData = data;\n } else {\n callData = abi.encodePacked(bytes4(keccak256(bytes(signature))), data);\n }\n\n // solium-disable-next-line security/no-call-value\n (bool success, bytes memory returnData) = target.call{value: value}(callData);\n require(success, \"Timelock::executeTransaction: Transaction execution reverted.\");\n\n emit ExecuteTransaction(txHash, target, value, signature, data, eta);\n\n return returnData;\n }\n\n function getBlockTimestamp() internal view returns (uint256) {\n // solium-disable-next-line security/no-block-members\n return block.timestamp;\n }\n}\n"}, "mocks/ERC1820ImplementerMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x932975c1e28f595457f9621603c95220"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/introspection/ERC1820Implementer.sol\";\n\ncontract ERC1820ImplementerMock is ERC1820Implementer {\n function registerInterfaceForAddress(bytes32 interfaceHash, address account) public {\n _registerInterfaceForAddress(interfaceHash, account);\n }\n}\n"}, "mocks/ERC20BurnableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x16c0c062fb93e0fc7c60061c16e198bc"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/extensions/ERC20Burnable.sol\";\n\ncontract ERC20BurnableMock is ERC20Burnable {\n constructor(\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n}\n"}, "token/ERC20/utils/TokenTimelock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4c1f25a465550ee0582e72e007c45e08"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/TokenTimelock.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./SafeERC20.sol\";\n\n/**\n * @dev A token holder contract that will allow a beneficiary to extract the\n * tokens after a given release time.\n *\n * Useful for simple vesting schedules like \"advisors get all of their tokens\n * after 1 year\".\n */\ncontract TokenTimelock {\n using SafeERC20 for IERC20;\n\n // ERC20 basic token contract being held\n IERC20 private immutable _token;\n\n // beneficiary of tokens after they are released\n address private immutable _beneficiary;\n\n // timestamp when token release is enabled\n uint256 private immutable _releaseTime;\n\n constructor(\n IERC20 token_,\n address beneficiary_,\n uint256 releaseTime_\n ) {\n require(releaseTime_ > block.timestamp, \"TokenTimelock: release time is before current time\");\n _token = token_;\n _beneficiary = beneficiary_;\n _releaseTime = releaseTime_;\n }\n\n /**\n * @return the token being held.\n */\n function token() public view virtual returns (IERC20) {\n return _token;\n }\n\n /**\n * @return the beneficiary of the tokens.\n */\n function beneficiary() public view virtual returns (address) {\n return _beneficiary;\n }\n\n /**\n * @return the time when the tokens are released.\n */\n function releaseTime() public view virtual returns (uint256) {\n return _releaseTime;\n }\n\n /**\n * @notice Transfers tokens held by timelock to beneficiary.\n */\n function release() public virtual {\n require(block.timestamp >= releaseTime(), \"TokenTimelock: current time is before release time\");\n\n uint256 amount = token().balanceOf(address(this));\n require(amount > 0, \"TokenTimelock: no tokens to release\");\n\n token().safeTransfer(beneficiary(), amount);\n }\n}\n"}, "token/ERC721/extensions/ERC721Pausable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x2bc2d361b7e7bda979021da66e1696af"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC721.sol\";\nimport \"../../../security/Pausable.sol\";\n\n/**\n * @dev ERC721 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 ERC721Pausable is ERC721, Pausable {\n /**\n * @dev See {ERC721-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 tokenId\n ) internal virtual override {\n super._beforeTokenTransfer(from, to, tokenId);\n\n require(!paused(), \"ERC721Pausable: token transfer while paused\");\n }\n}\n"}, "token/ERC777/presets/ERC777PresetFixedSupply.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xcf632c608a0fc89ebfcd9870cb7e6ca2"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC777/presets/ERC777PresetFixedSupply.sol)\npragma solidity ^0.8.0;\n\nimport \"../ERC777.sol\";\n\n/**\n * @dev {ERC777} token, including:\n *\n * - Preminted initial supply\n * - No access control mechanism (for minting/pausing) and hence no governance\n *\n * _Available since v3.4._\n */\ncontract ERC777PresetFixedSupply is ERC777 {\n /**\n * @dev Mints `initialSupply` amount of token and transfers them to `owner`.\n *\n * See {ERC777-constructor}.\n */\n constructor(\n string memory name,\n string memory symbol,\n address[] memory defaultOperators,\n uint256 initialSupply,\n address owner\n ) ERC777(name, symbol, defaultOperators) {\n _mint(owner, initialSupply, \"\", \"\");\n }\n}\n"}, "utils/escrow/RefundEscrow.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xaee62e265ecc9a3b5f03a79e34b89158"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/escrow/RefundEscrow.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./ConditionalEscrow.sol\";\n\n/**\n * @title RefundEscrow\n * @dev Escrow that holds funds for a beneficiary, deposited from multiple\n * parties.\n * @dev Intended usage: See {Escrow}. Same usage guidelines apply here.\n * @dev The owner account (that is, the contract that instantiates this\n * contract) may deposit, close the deposit period, and allow for either\n * withdrawal by the beneficiary, or refunds to the depositors. All interactions\n * with `RefundEscrow` will be made through the owner contract.\n */\ncontract RefundEscrow is ConditionalEscrow {\n using Address for address payable;\n\n enum State {\n Active,\n Refunding,\n Closed\n }\n\n event RefundsClosed();\n event RefundsEnabled();\n\n State private _state;\n address payable private immutable _beneficiary;\n\n /**\n * @dev Constructor.\n * @param beneficiary_ The beneficiary of the deposits.\n */\n constructor(address payable beneficiary_) {\n require(beneficiary_ != address(0), \"RefundEscrow: beneficiary is the zero address\");\n _beneficiary = beneficiary_;\n _state = State.Active;\n }\n\n /**\n * @return The current state of the escrow.\n */\n function state() public view virtual returns (State) {\n return _state;\n }\n\n /**\n * @return The beneficiary of the escrow.\n */\n function beneficiary() public view virtual returns (address payable) {\n return _beneficiary;\n }\n\n /**\n * @dev Stores funds that may later be refunded.\n * @param refundee The address funds will be sent to if a refund occurs.\n */\n function deposit(address refundee) public payable virtual override {\n require(state() == State.Active, \"RefundEscrow: can only deposit while active\");\n super.deposit(refundee);\n }\n\n /**\n * @dev Allows for the beneficiary to withdraw their funds, rejecting\n * further deposits.\n */\n function close() public virtual onlyOwner {\n require(state() == State.Active, \"RefundEscrow: can only close while active\");\n _state = State.Closed;\n emit RefundsClosed();\n }\n\n /**\n * @dev Allows for refunds to take place, rejecting further deposits.\n */\n function enableRefunds() public virtual onlyOwner {\n require(state() == State.Active, \"RefundEscrow: can only enable refunds while active\");\n _state = State.Refunding;\n emit RefundsEnabled();\n }\n\n /**\n * @dev Withdraws the beneficiary's funds.\n */\n function beneficiaryWithdraw() public virtual {\n require(state() == State.Closed, \"RefundEscrow: beneficiary can only withdraw while closed\");\n beneficiary().sendValue(address(this).balance);\n }\n\n /**\n * @dev Returns whether refundees can withdraw their deposits (be refunded). The overridden function receives a\n * 'payee' argument, but we ignore it here since the condition is global, not per-payee.\n */\n function withdrawalAllowed(address) public view override returns (bool) {\n return state() == State.Refunding;\n }\n}\n"}, "mocks/ArraysImpl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x896807a6030108ad8e8872fceca45a48"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Arrays.sol\";\n\ncontract ArraysImpl {\n using Arrays for uint256[];\n\n uint256[] private _array;\n\n constructor(uint256[] memory array) {\n _array = array;\n }\n\n function findUpperBound(uint256 element) external view returns (uint256) {\n return _array.findUpperBound(element);\n }\n}\n"}, "utils/structs/EnumerableMap.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x1bca902345f0e6f88ca41adc097ef42f"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableMap.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./EnumerableSet.sol\";\n\n/**\n * @dev Library for managing an enumerable variant of Solidity's\n * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]\n * type.\n *\n * Maps have the following properties:\n *\n * - Entries are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Entries are enumerated in O(n). No guarantees are made on the ordering.\n *\n * ```\n * contract Example {\n * // Add the library methods\n * using EnumerableMap for EnumerableMap.UintToAddressMap;\n *\n * // Declare a set state variable\n * EnumerableMap.UintToAddressMap private myMap;\n * }\n * ```\n *\n * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are\n * supported.\n */\nlibrary EnumerableMap {\n using EnumerableSet for EnumerableSet.Bytes32Set;\n\n // To implement this library for multiple types with as little code\n // repetition as possible, we write it in terms of a generic Map type with\n // bytes32 keys and values.\n // The Map implementation uses private functions, and user-facing\n // implementations (such as Uint256ToAddressMap) are just wrappers around\n // the underlying Map.\n // This means that we can only create new EnumerableMaps for types that fit\n // in bytes32.\n\n struct Map {\n // Storage of keys\n EnumerableSet.Bytes32Set _keys;\n mapping(bytes32 => bytes32) _values;\n }\n\n /**\n * @dev Adds a key-value pair to a map, or updates the value for an existing\n * key. O(1).\n *\n * Returns true if the key was added to the map, that is if it was not\n * already present.\n */\n function _set(\n Map storage map,\n bytes32 key,\n bytes32 value\n ) private returns (bool) {\n map._values[key] = value;\n return map._keys.add(key);\n }\n\n /**\n * @dev Removes a key-value pair from a map. O(1).\n *\n * Returns true if the key was removed from the map, that is if it was present.\n */\n function _remove(Map storage map, bytes32 key) private returns (bool) {\n delete map._values[key];\n return map._keys.remove(key);\n }\n\n /**\n * @dev Returns true if the key is in the map. O(1).\n */\n function _contains(Map storage map, bytes32 key) private view returns (bool) {\n return map._keys.contains(key);\n }\n\n /**\n * @dev Returns the number of key-value pairs in the map. O(1).\n */\n function _length(Map storage map) private view returns (uint256) {\n return map._keys.length();\n }\n\n /**\n * @dev Returns the key-value pair stored at position `index` in the map. O(1).\n *\n * Note that there are no guarantees on the ordering of entries inside the\n * array, and it may change when more entries are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {\n bytes32 key = map._keys.at(index);\n return (key, map._values[key]);\n }\n\n /**\n * @dev Tries to returns the value associated with `key`. O(1).\n * Does not revert if `key` is not in the map.\n */\n function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) {\n bytes32 value = map._values[key];\n if (value == bytes32(0)) {\n return (_contains(map, key), bytes32(0));\n } else {\n return (true, value);\n }\n }\n\n /**\n * @dev Returns the value associated with `key`. O(1).\n *\n * Requirements:\n *\n * - `key` must be in the map.\n */\n function _get(Map storage map, bytes32 key) private view returns (bytes32) {\n bytes32 value = map._values[key];\n require(value != 0 || _contains(map, key), \"EnumerableMap: nonexistent key\");\n return value;\n }\n\n /**\n * @dev Same as {_get}, with a custom error message when `key` is not in the map.\n *\n * CAUTION: This function is deprecated because it requires allocating memory for the error\n * message unnecessarily. For custom revert reasons use {_tryGet}.\n */\n function _get(\n Map storage map,\n bytes32 key,\n string memory errorMessage\n ) private view returns (bytes32) {\n bytes32 value = map._values[key];\n require(value != 0 || _contains(map, key), errorMessage);\n return value;\n }\n\n // UintToAddressMap\n\n struct UintToAddressMap {\n Map _inner;\n }\n\n /**\n * @dev Adds a key-value pair to a map, or updates the value for an existing\n * key. O(1).\n *\n * Returns true if the key was added to the map, that is if it was not\n * already present.\n */\n function set(\n UintToAddressMap storage map,\n uint256 key,\n address value\n ) internal returns (bool) {\n return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the key was removed from the map, that is if it was present.\n */\n function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {\n return _remove(map._inner, bytes32(key));\n }\n\n /**\n * @dev Returns true if the key is in the map. O(1).\n */\n function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {\n return _contains(map._inner, bytes32(key));\n }\n\n /**\n * @dev Returns the number of elements in the map. O(1).\n */\n function length(UintToAddressMap storage map) internal view returns (uint256) {\n return _length(map._inner);\n }\n\n /**\n * @dev Returns the element stored at position `index` in the set. O(1).\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {\n (bytes32 key, bytes32 value) = _at(map._inner, index);\n return (uint256(key), address(uint160(uint256(value))));\n }\n\n /**\n * @dev Tries to returns the value associated with `key`. O(1).\n * Does not revert if `key` is not in the map.\n *\n * _Available since v3.4._\n */\n function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {\n (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));\n return (success, address(uint160(uint256(value))));\n }\n\n /**\n * @dev Returns the value associated with `key`. O(1).\n *\n * Requirements:\n *\n * - `key` must be in the map.\n */\n function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {\n return address(uint160(uint256(_get(map._inner, bytes32(key)))));\n }\n\n /**\n * @dev Same as {get}, with a custom error message when `key` is not in the map.\n *\n * CAUTION: This function is deprecated because it requires allocating memory for the error\n * message unnecessarily. For custom revert reasons use {tryGet}.\n */\n function get(\n UintToAddressMap storage map,\n uint256 key,\n string memory errorMessage\n ) internal view returns (address) {\n return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage))));\n }\n}\n"}, "mocks/MulticallTokenMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf3d490698b1a7cdcf440f9d64eca2c57"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Multicall.sol\";\nimport \"./ERC20Mock.sol\";\n\ncontract MulticallTokenMock is ERC20Mock, Multicall {\n constructor(uint256 initialBalance) ERC20Mock(\"MulticallToken\", \"BCT\", msg.sender, initialBalance) {}\n}\n"}, "utils/Context.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x5f2c5c4b6af2dd4551027144797bc8be"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\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 Context {\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"}, "mocks/BitmapMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x6144ba9e614894591453591ab6fd3287"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/structs/BitMaps.sol\";\n\ncontract BitMapMock {\n using BitMaps for BitMaps.BitMap;\n\n BitMaps.BitMap private _bitmap;\n\n function get(uint256 index) public view returns (bool) {\n return _bitmap.get(index);\n }\n\n function setTo(uint256 index, bool value) public {\n _bitmap.setTo(index, value);\n }\n\n function set(uint256 index) public {\n _bitmap.set(index);\n }\n\n function unset(uint256 index) public {\n _bitmap.unset(index);\n }\n}\n"}, "utils/Address.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4cff8b2ea0d958750786b4e3ca308445"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\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 function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize, which returns 0 for contracts in\n // construction, since the code is only stored at the end of the\n // constructor execution.\n\n uint256 size;\n assembly {\n size := extcodesize(account)\n }\n return size > 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 functionCall(target, data, \"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 require(isContract(target), \"Address: call to non-contract\");\n\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResult(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 require(isContract(target), \"Address: static call to non-contract\");\n\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResult(success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\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(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(isContract(target), \"Address: delegate call to non-contract\");\n\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResult(success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason 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 // 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\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}\n"}, "utils/introspection/IERC1820Registry.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf584744ea68647073c73fe42d509a3e1"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC1820Registry.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the global ERC1820 Registry, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register\n * implementers for interfaces in this registry, as well as query support.\n *\n * Implementers may be shared by multiple accounts, and can also implement more\n * than a single interface for each account. Contracts can implement interfaces\n * for themselves, but externally-owned accounts (EOA) must delegate this to a\n * contract.\n *\n * {IERC165} interfaces can also be queried via the registry.\n *\n * For an in-depth explanation and source code analysis, see the EIP text.\n */\ninterface IERC1820Registry {\n /**\n * @dev Sets `newManager` as the manager for `account`. A manager of an\n * account is able to set interface implementers for it.\n *\n * By default, each account is its own manager. Passing a value of `0x0` in\n * `newManager` will reset the manager to this initial state.\n *\n * Emits a {ManagerChanged} event.\n *\n * Requirements:\n *\n * - the caller must be the current manager for `account`.\n */\n function setManager(address account, address newManager) external;\n\n /**\n * @dev Returns the manager for `account`.\n *\n * See {setManager}.\n */\n function getManager(address account) external view returns (address);\n\n /**\n * @dev Sets the `implementer` contract as ``account``'s implementer for\n * `interfaceHash`.\n *\n * `account` being the zero address is an alias for the caller's address.\n * The zero address can also be used in `implementer` to remove an old one.\n *\n * See {interfaceHash} to learn how these are created.\n *\n * Emits an {InterfaceImplementerSet} event.\n *\n * Requirements:\n *\n * - the caller must be the current manager for `account`.\n * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not\n * end in 28 zeroes).\n * - `implementer` must implement {IERC1820Implementer} and return true when\n * queried for support, unless `implementer` is the caller. See\n * {IERC1820Implementer-canImplementInterfaceForAddress}.\n */\n function setInterfaceImplementer(\n address account,\n bytes32 _interfaceHash,\n address implementer\n ) external;\n\n /**\n * @dev Returns the implementer of `interfaceHash` for `account`. If no such\n * implementer is registered, returns the zero address.\n *\n * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28\n * zeroes), `account` will be queried for support of it.\n *\n * `account` being the zero address is an alias for the caller's address.\n */\n function getInterfaceImplementer(address account, bytes32 _interfaceHash) external view returns (address);\n\n /**\n * @dev Returns the interface hash for an `interfaceName`, as defined in the\n * corresponding\n * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP].\n */\n function interfaceHash(string calldata interfaceName) external pure returns (bytes32);\n\n /**\n * @notice Updates the cache with whether the contract implements an ERC165 interface or not.\n * @param account Address of the contract for which to update the cache.\n * @param interfaceId ERC165 interface for which to update the cache.\n */\n function updateERC165Cache(address account, bytes4 interfaceId) external;\n\n /**\n * @notice Checks whether a contract implements an ERC165 interface or not.\n * If the result is not cached a direct lookup on the contract address is performed.\n * If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling\n * {updateERC165Cache} with the contract address.\n * @param account Address of the contract to check.\n * @param interfaceId ERC165 interface to check.\n * @return True if `account` implements `interfaceId`, false otherwise.\n */\n function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool);\n\n /**\n * @notice Checks whether a contract implements an ERC165 interface or not without using nor updating the cache.\n * @param account Address of the contract to check.\n * @param interfaceId ERC165 interface to check.\n * @return True if `account` implements `interfaceId`, false otherwise.\n */\n function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool);\n\n event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer);\n\n event ManagerChanged(address indexed account, address indexed newManager);\n}\n"}, "metatx/ERC2771Context.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x8a9438f1a81b9e6ef9111140deb7cb96"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (metatx/ERC2771Context.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Context variant with ERC2771 support.\n */\nabstract contract ERC2771Context is Context {\n address private _trustedForwarder;\n\n constructor(address trustedForwarder) {\n _trustedForwarder = trustedForwarder;\n }\n\n function isTrustedForwarder(address forwarder) public view virtual returns (bool) {\n return forwarder == _trustedForwarder;\n }\n\n function _msgSender() internal view virtual override returns (address sender) {\n if (isTrustedForwarder(msg.sender)) {\n // The assembly code is more direct than the Solidity version using `abi.decode`.\n assembly {\n sender := shr(96, calldataload(sub(calldatasize(), 20)))\n }\n } else {\n return super._msgSender();\n }\n }\n\n function _msgData() internal view virtual override returns (bytes calldata) {\n if (isTrustedForwarder(msg.sender)) {\n return msg.data[:msg.data.length - 20];\n } else {\n return super._msgData();\n }\n }\n}\n"}, "security/Pausable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x9c2dccab8e3a43a18c41e358763fe4d8"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.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 Pausable is Context {\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 constructor() {\n _paused = false;\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 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 require(!paused(), \"Pausable: paused\");\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 require(paused(), \"Pausable: not paused\");\n _;\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"}, "interfaces/IERC1155Receiver.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xa80dbc3947556c57c569cd81aa255f10"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1155Receiver.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC1155/IERC1155Receiver.sol\";\n"}, "token/ERC721/utils/ERC721Holder.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x54062ff887823a306b33ea6494a220bc"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC721Receiver.sol\";\n\n/**\n * @dev Implementation of the {IERC721Receiver} interface.\n *\n * Accepts all token transfers.\n * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.\n */\ncontract ERC721Holder is IERC721Receiver {\n /**\n * @dev See {IERC721Receiver-onERC721Received}.\n *\n * Always returns `IERC721Receiver.onERC721Received.selector`.\n */\n function onERC721Received(\n address,\n address,\n uint256,\n bytes memory\n ) public virtual override returns (bytes4) {\n return this.onERC721Received.selector;\n }\n}\n"}, "governance/extensions/GovernorTimelockControl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x6af59ad1eaac4c40ebaa182546390831"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (governance/extensions/GovernorTimelockControl.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IGovernorTimelock.sol\";\nimport \"../Governor.sol\";\nimport \"../TimelockController.sol\";\n\n/**\n * @dev Extension of {Governor} that binds the execution process to an instance of {TimelockController}. This adds a\n * delay, enforced by the {TimelockController} to all successful proposal (in addition to the voting duration). The\n * {Governor} needs the proposer (an ideally the executor) roles for the {Governor} to work properly.\n *\n * Using this model means the proposal will be operated by the {TimelockController} and not by the {Governor}. Thus,\n * the assets and permissions must be attached to the {TimelockController}. Any asset sent to the {Governor} will be\n * inaccessible.\n *\n * _Available since v4.3._\n */\nabstract contract GovernorTimelockControl is IGovernorTimelock, Governor {\n TimelockController private _timelock;\n mapping(uint256 => bytes32) private _timelockIds;\n\n /**\n * @dev Emitted when the timelock controller used for proposal execution is modified.\n */\n event TimelockChange(address oldTimelock, address newTimelock);\n\n /**\n * @dev Set the timelock.\n */\n constructor(TimelockController timelockAddress) {\n _updateTimelock(timelockAddress);\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, Governor) returns (bool) {\n return interfaceId == type(IGovernorTimelock).interfaceId || super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev Overriden version of the {Governor-state} function with added support for the `Queued` status.\n */\n function state(uint256 proposalId) public view virtual override(IGovernor, Governor) returns (ProposalState) {\n ProposalState status = super.state(proposalId);\n\n if (status != ProposalState.Succeeded) {\n return status;\n }\n\n // core tracks execution, so we just have to check if successful proposal have been queued.\n bytes32 queueid = _timelockIds[proposalId];\n if (queueid == bytes32(0)) {\n return status;\n } else if (_timelock.isOperationDone(queueid)) {\n return ProposalState.Executed;\n } else {\n return ProposalState.Queued;\n }\n }\n\n /**\n * @dev Public accessor to check the address of the timelock\n */\n function timelock() public view virtual override returns (address) {\n return address(_timelock);\n }\n\n /**\n * @dev Public accessor to check the eta of a queued proposal\n */\n function proposalEta(uint256 proposalId) public view virtual override returns (uint256) {\n uint256 eta = _timelock.getTimestamp(_timelockIds[proposalId]);\n return eta == 1 ? 0 : eta; // _DONE_TIMESTAMP (1) should be replaced with a 0 value\n }\n\n /**\n * @dev Function to queue a proposal to the timelock.\n */\n function queue(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) public virtual override returns (uint256) {\n uint256 proposalId = hashProposal(targets, values, calldatas, descriptionHash);\n\n require(state(proposalId) == ProposalState.Succeeded, \"Governor: proposal not successful\");\n\n uint256 delay = _timelock.getMinDelay();\n _timelockIds[proposalId] = _timelock.hashOperationBatch(targets, values, calldatas, 0, descriptionHash);\n _timelock.scheduleBatch(targets, values, calldatas, 0, descriptionHash, delay);\n\n emit ProposalQueued(proposalId, block.timestamp + delay);\n\n return proposalId;\n }\n\n /**\n * @dev Overriden execute function that run the already queued proposal through the timelock.\n */\n function _execute(\n uint256, /* proposalId */\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal virtual override {\n _timelock.executeBatch{value: msg.value}(targets, values, calldatas, 0, descriptionHash);\n }\n\n /**\n * @dev Overriden version of the {Governor-_cancel} function to cancel the timelocked proposal if it as already\n * been queued.\n */\n function _cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal virtual override returns (uint256) {\n uint256 proposalId = super._cancel(targets, values, calldatas, descriptionHash);\n\n if (_timelockIds[proposalId] != 0) {\n _timelock.cancel(_timelockIds[proposalId]);\n delete _timelockIds[proposalId];\n }\n\n return proposalId;\n }\n\n /**\n * @dev Address through which the governor executes action. In this case, the timelock.\n */\n function _executor() internal view virtual override returns (address) {\n return address(_timelock);\n }\n\n /**\n * @dev Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates\n * must be proposed, scheduled and executed using the {Governor} workflow.\n */\n function updateTimelock(TimelockController newTimelock) external virtual onlyGovernance {\n _updateTimelock(newTimelock);\n }\n\n function _updateTimelock(TimelockController newTimelock) private {\n emit TimelockChange(address(_timelock), address(newTimelock));\n _timelock = newTimelock;\n }\n}\n"}, "utils/introspection/ERC165Checker.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x1abe3767b27223b96a265645cb2a56e3"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Checker.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165.sol\";\n\n/**\n * @dev Library used to query support of an interface declared via {IERC165}.\n *\n * Note that these functions return the actual result of the query: they do not\n * `revert` if an interface is not supported. It is up to the caller to decide\n * what to do in these cases.\n */\nlibrary ERC165Checker {\n // As per the EIP-165 spec, no interface should ever match 0xffffffff\n bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;\n\n /**\n * @dev Returns true if `account` supports the {IERC165} interface,\n */\n function supportsERC165(address account) internal view returns (bool) {\n // Any contract that implements ERC165 must explicitly indicate support of\n // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid\n return\n _supportsERC165Interface(account, type(IERC165).interfaceId) &&\n !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);\n }\n\n /**\n * @dev Returns true if `account` supports the interface defined by\n * `interfaceId`. Support for {IERC165} itself is queried automatically.\n *\n * See {IERC165-supportsInterface}.\n */\n function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {\n // query support of both ERC165 as per the spec and support of _interfaceId\n return supportsERC165(account) && _supportsERC165Interface(account, interfaceId);\n }\n\n /**\n * @dev Returns a boolean array where each value corresponds to the\n * interfaces passed in and whether they're supported or not. This allows\n * you to batch check interfaces for a contract where your expectation\n * is that some interfaces may not be supported.\n *\n * See {IERC165-supportsInterface}.\n *\n * _Available since v3.4._\n */\n function getSupportedInterfaces(address account, bytes4[] memory interfaceIds)\n internal\n view\n returns (bool[] memory)\n {\n // an array of booleans corresponding to interfaceIds and whether they're supported or not\n bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length);\n\n // query support of ERC165 itself\n if (supportsERC165(account)) {\n // query support of each interface in interfaceIds\n for (uint256 i = 0; i < interfaceIds.length; i++) {\n interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]);\n }\n }\n\n return interfaceIdsSupported;\n }\n\n /**\n * @dev Returns true if `account` supports all the interfaces defined in\n * `interfaceIds`. Support for {IERC165} itself is queried automatically.\n *\n * Batch-querying can lead to gas savings by skipping repeated checks for\n * {IERC165} support.\n *\n * See {IERC165-supportsInterface}.\n */\n function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {\n // query support of ERC165 itself\n if (!supportsERC165(account)) {\n return false;\n }\n\n // query support of each interface in _interfaceIds\n for (uint256 i = 0; i < interfaceIds.length; i++) {\n if (!_supportsERC165Interface(account, interfaceIds[i])) {\n return false;\n }\n }\n\n // all interfaces supported\n return true;\n }\n\n /**\n * @notice Query if a contract implements an interface, does not check ERC165 support\n * @param account The address of the contract to query for support of an interface\n * @param interfaceId The interface identifier, as specified in ERC-165\n * @return true if the contract at account indicates support of the interface with\n * identifier interfaceId, false otherwise\n * @dev Assumes that account contains a contract that supports ERC165, otherwise\n * the behavior of this method is undefined. This precondition can be checked\n * with {supportsERC165}.\n * Interface identification is specified in ERC-165.\n */\n function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {\n bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId);\n (bool success, bytes memory result) = account.staticcall{gas: 30000}(encodedParams);\n if (result.length < 32) return false;\n return success && abi.decode(result, (bool));\n }\n}\n"}, "utils/StorageSlot.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x187a01c1e4e638014509dfee3ac6faa9"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (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 StorageSlot {\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 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 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 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 assembly {\n r.slot := slot\n }\n }\n}\n"}, "access/AccessControlEnumerable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xed8cb66146e00c05d3435beedacd0a9f"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/AccessControlEnumerable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IAccessControlEnumerable.sol\";\nimport \"./AccessControl.sol\";\nimport \"../utils/structs/EnumerableSet.sol\";\n\n/**\n * @dev Extension of {AccessControl} that allows enumerating the members of each role.\n */\nabstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {\n using EnumerableSet for EnumerableSet.AddressSet;\n\n mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev Returns one of the accounts that have `role`. `index` must be a\n * value between 0 and {getRoleMemberCount}, non-inclusive.\n *\n * Role bearers are not sorted in any particular way, and their ordering may\n * change at any point.\n *\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\n * you perform all queries on the same block. See the following\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\n * for more information.\n */\n function getRoleMember(bytes32 role, uint256 index) public view override returns (address) {\n return _roleMembers[role].at(index);\n }\n\n /**\n * @dev Returns the number of accounts that have `role`. Can be used\n * together with {getRoleMember} to enumerate all bearers of a role.\n */\n function getRoleMemberCount(bytes32 role) public view override returns (uint256) {\n return _roleMembers[role].length();\n }\n\n /**\n * @dev Overload {_grantRole} to track enumerable memberships\n */\n function _grantRole(bytes32 role, address account) internal virtual override {\n super._grantRole(role, account);\n _roleMembers[role].add(account);\n }\n\n /**\n * @dev Overload {_revokeRole} to track enumerable memberships\n */\n function _revokeRole(bytes32 role, address account) internal virtual override {\n super._revokeRole(role, account);\n _roleMembers[role].remove(account);\n }\n}\n"}, "utils/Create2.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x1f0346d0da642d65cfb74f9241cc7683"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Create2.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\n * `CREATE2` can be used to compute in advance the address where a smart\n * contract will be deployed, which allows for interesting new mechanisms known\n * as 'counterfactual interactions'.\n *\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\n * information.\n */\nlibrary Create2 {\n /**\n * @dev Deploys a contract using `CREATE2`. The address where the contract\n * will be deployed can be known in advance via {computeAddress}.\n *\n * The bytecode for a contract can be obtained from Solidity with\n * `type(contractName).creationCode`.\n *\n * Requirements:\n *\n * - `bytecode` must not be empty.\n * - `salt` must have not been used for `bytecode` already.\n * - the factory must have a balance of at least `amount`.\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\n */\n function deploy(\n uint256 amount,\n bytes32 salt,\n bytes memory bytecode\n ) internal returns (address) {\n address addr;\n require(address(this).balance >= amount, \"Create2: insufficient balance\");\n require(bytecode.length != 0, \"Create2: bytecode length is zero\");\n assembly {\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\n }\n require(addr != address(0), \"Create2: Failed on deploy\");\n return addr;\n }\n\n /**\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\n * `bytecodeHash` or `salt` will result in a new destination address.\n */\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\n return computeAddress(salt, bytecodeHash, address(this));\n }\n\n /**\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\n */\n function computeAddress(\n bytes32 salt,\n bytes32 bytecodeHash,\n address deployer\n ) internal pure returns (address) {\n bytes32 _data = keccak256(abi.encodePacked(bytes1(0xff), deployer, salt, bytecodeHash));\n return address(uint160(uint256(_data)));\n }\n}\n"}, "utils/escrow/ConditionalEscrow.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xed8802b28f8eab3257dc05b5b09e5c5d"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/escrow/ConditionalEscrow.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./Escrow.sol\";\n\n/**\n * @title ConditionalEscrow\n * @dev Base abstract escrow to only allow withdrawal if a condition is met.\n * @dev Intended usage: See {Escrow}. Same usage guidelines apply here.\n */\nabstract contract ConditionalEscrow is Escrow {\n /**\n * @dev Returns whether an address is allowed to withdraw their funds. To be\n * implemented by derived contracts.\n * @param payee The destination address of the funds.\n */\n function withdrawalAllowed(address payee) public view virtual returns (bool);\n\n function withdraw(address payable payee) public virtual override {\n require(withdrawalAllowed(payee), \"ConditionalEscrow: payee is not allowed to withdraw\");\n super.withdraw(payee);\n }\n}\n"}, "governance/IGovernor.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xbee5601ce35a6dbb3b02ba45204de4af"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (governance/IGovernor.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/introspection/ERC165.sol\";\n\n/**\n * @dev Interface of the {Governor} core.\n *\n * _Available since v4.3._\n */\nabstract contract IGovernor is IERC165 {\n enum ProposalState {\n Pending,\n Active,\n Canceled,\n Defeated,\n Succeeded,\n Queued,\n Expired,\n Executed\n }\n\n /**\n * @dev Emitted when a proposal is created.\n */\n event ProposalCreated(\n uint256 proposalId,\n address proposer,\n address[] targets,\n uint256[] values,\n string[] signatures,\n bytes[] calldatas,\n uint256 startBlock,\n uint256 endBlock,\n string description\n );\n\n /**\n * @dev Emitted when a proposal is canceled.\n */\n event ProposalCanceled(uint256 proposalId);\n\n /**\n * @dev Emitted when a proposal is executed.\n */\n event ProposalExecuted(uint256 proposalId);\n\n /**\n * @dev Emitted when a vote is cast.\n *\n * Note: `support` values should be seen as buckets. There interpretation depends on the voting module used.\n */\n event VoteCast(address indexed voter, uint256 proposalId, uint8 support, uint256 weight, string reason);\n\n /**\n * @notice module:core\n * @dev Name of the governor instance (used in building the ERC712 domain separator).\n */\n function name() public view virtual returns (string memory);\n\n /**\n * @notice module:core\n * @dev Version of the governor instance (used in building the ERC712 domain separator). Default: \"1\"\n */\n function version() public view virtual returns (string memory);\n\n /**\n * @notice module:voting\n * @dev A description of the possible `support` values for {castVote} and the way these votes are counted, meant to\n * be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of\n * key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`.\n *\n * There are 2 standard keys: `support` and `quorum`.\n *\n * - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`.\n * - `quorum=bravo` means that only For votes are counted towards quorum.\n * - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum.\n *\n * NOTE: The string can be decoded by the standard\n * https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`]\n * JavaScript class.\n */\n // solhint-disable-next-line func-name-mixedcase\n function COUNTING_MODE() public pure virtual returns (string memory);\n\n /**\n * @notice module:core\n * @dev Hashing function used to (re)build the proposal id from the proposal details..\n */\n function hashProposal(\n address[] calldata targets,\n uint256[] calldata values,\n bytes[] calldata calldatas,\n bytes32 descriptionHash\n ) public pure virtual returns (uint256);\n\n /**\n * @notice module:core\n * @dev Current state of a proposal, following Compound's convention\n */\n function state(uint256 proposalId) public view virtual returns (ProposalState);\n\n /**\n * @notice module:core\n * @dev Block number used to retrieve user's votes and quorum. As per Compound's Comp and OpenZeppelin's\n * ERC20Votes, the snapshot is performed at the end of this block. Hence, voting for this proposal starts at the\n * beginning of the following block.\n */\n function proposalSnapshot(uint256 proposalId) public view virtual returns (uint256);\n\n /**\n * @notice module:core\n * @dev Block number at which votes close. Votes close at the end of this block, so it is possible to cast a vote\n * during this block.\n */\n function proposalDeadline(uint256 proposalId) public view virtual returns (uint256);\n\n /**\n * @notice module:user-config\n * @dev Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to\n * leave time for users to buy voting power, of delegate it, before the voting of a proposal starts.\n */\n function votingDelay() public view virtual returns (uint256);\n\n /**\n * @notice module:user-config\n * @dev Delay, in number of blocks, between the vote start and vote ends.\n *\n * NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting\n * duration compared to the voting delay.\n */\n function votingPeriod() public view virtual returns (uint256);\n\n /**\n * @notice module:user-config\n * @dev Minimum number of cast voted required for a proposal to be successful.\n *\n * Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the\n * quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes}).\n */\n function quorum(uint256 blockNumber) public view virtual returns (uint256);\n\n /**\n * @notice module:reputation\n * @dev Voting power of an `account` at a specific `blockNumber`.\n *\n * Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or\n * multiple), {ERC20Votes} tokens.\n */\n function getVotes(address account, uint256 blockNumber) public view virtual returns (uint256);\n\n /**\n * @notice module:voting\n * @dev Returns weither `account` has cast a vote on `proposalId`.\n */\n function hasVoted(uint256 proposalId, address account) public view virtual returns (bool);\n\n /**\n * @dev Create a new proposal. Vote start {IGovernor-votingDelay} blocks after the proposal is created and ends\n * {IGovernor-votingPeriod} blocks after the voting starts.\n *\n * Emits a {ProposalCreated} event.\n */\n function propose(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n string memory description\n ) public virtual returns (uint256 proposalId);\n\n /**\n * @dev Execute a successful proposal. This requires the quorum to be reached, the vote to be successful, and the\n * deadline to be reached.\n *\n * Emits a {ProposalExecuted} event.\n *\n * Note: some module can modify the requirements for execution, for example by adding an additional timelock.\n */\n function execute(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) public payable virtual returns (uint256 proposalId);\n\n /**\n * @dev Cast a vote\n *\n * Emits a {VoteCast} event.\n */\n function castVote(uint256 proposalId, uint8 support) public virtual returns (uint256 balance);\n\n /**\n * @dev Cast a with a reason\n *\n * Emits a {VoteCast} event.\n */\n function castVoteWithReason(\n uint256 proposalId,\n uint8 support,\n string calldata reason\n ) public virtual returns (uint256 balance);\n\n /**\n * @dev Cast a vote using the user cryptographic signature.\n *\n * Emits a {VoteCast} event.\n */\n function castVoteBySig(\n uint256 proposalId,\n uint8 support,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) public virtual returns (uint256 balance);\n}\n"}, "governance/Governor.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xee9b9d56e0f0d3398c1269b982211ec3"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (governance/Governor.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/cryptography/ECDSA.sol\";\nimport \"../utils/cryptography/draft-EIP712.sol\";\nimport \"../utils/introspection/ERC165.sol\";\nimport \"../utils/math/SafeCast.sol\";\nimport \"../utils/Address.sol\";\nimport \"../utils/Context.sol\";\nimport \"../utils/Timers.sol\";\nimport \"./IGovernor.sol\";\n\n/**\n * @dev Core of the governance system, designed to be extended though various modules.\n *\n * This contract is abstract and requires several function to be implemented in various modules:\n *\n * - A counting module must implement {quorum}, {_quorumReached}, {_voteSucceeded} and {_countVote}\n * - A voting module must implement {getVotes}\n * - Additionanly, the {votingPeriod} must also be implemented\n *\n * _Available since v4.3._\n */\nabstract contract Governor is Context, ERC165, EIP712, IGovernor {\n using SafeCast for uint256;\n using Timers for Timers.BlockNumber;\n\n bytes32 public constant BALLOT_TYPEHASH = keccak256(\"Ballot(uint256 proposalId,uint8 support)\");\n\n struct ProposalCore {\n Timers.BlockNumber voteStart;\n Timers.BlockNumber voteEnd;\n bool executed;\n bool canceled;\n }\n\n string private _name;\n\n mapping(uint256 => ProposalCore) private _proposals;\n\n /**\n * @dev Restrict access to governor executing address. Some module might override the _executor function to make\n * sure this modifier is consistant with the execution model.\n */\n modifier onlyGovernance() {\n require(_msgSender() == _executor(), \"Governor: onlyGovernance\");\n _;\n }\n\n /**\n * @dev Sets the value for {name} and {version}\n */\n constructor(string memory name_) EIP712(name_, version()) {\n _name = name_;\n }\n\n /**\n * @dev Function to receive ETH that will be handled by the governor (disabled if executor is a third party contract)\n */\n receive() external payable virtual {\n require(_executor() == address(this));\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {\n return interfaceId == type(IGovernor).interfaceId || super.supportsInterface(interfaceId);\n }\n\n /**\n * @dev See {IGovernor-name}.\n */\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev See {IGovernor-version}.\n */\n function version() public view virtual override returns (string memory) {\n return \"1\";\n }\n\n /**\n * @dev See {IGovernor-hashProposal}.\n *\n * The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array\n * and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id\n * can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in\n * advance, before the proposal is submitted.\n *\n * Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the\n * same proposal (with same operation and same description) will have the same id if submitted on multiple governors\n * accross multiple networks. This also means that in order to execute the same operation twice (on the same\n * governor) the proposer will have to change the description in order to avoid proposal id conflicts.\n */\n function hashProposal(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) public pure virtual override returns (uint256) {\n return uint256(keccak256(abi.encode(targets, values, calldatas, descriptionHash)));\n }\n\n /**\n * @dev See {IGovernor-state}.\n */\n function state(uint256 proposalId) public view virtual override returns (ProposalState) {\n ProposalCore memory proposal = _proposals[proposalId];\n\n if (proposal.executed) {\n return ProposalState.Executed;\n } else if (proposal.canceled) {\n return ProposalState.Canceled;\n } else if (proposal.voteStart.getDeadline() >= block.number) {\n return ProposalState.Pending;\n } else if (proposal.voteEnd.getDeadline() >= block.number) {\n return ProposalState.Active;\n } else if (proposal.voteEnd.isExpired()) {\n return\n _quorumReached(proposalId) && _voteSucceeded(proposalId)\n ? ProposalState.Succeeded\n : ProposalState.Defeated;\n } else {\n revert(\"Governor: unknown proposal id\");\n }\n }\n\n /**\n * @dev See {IGovernor-proposalSnapshot}.\n */\n function proposalSnapshot(uint256 proposalId) public view virtual override returns (uint256) {\n return _proposals[proposalId].voteStart.getDeadline();\n }\n\n /**\n * @dev See {IGovernor-proposalDeadline}.\n */\n function proposalDeadline(uint256 proposalId) public view virtual override returns (uint256) {\n return _proposals[proposalId].voteEnd.getDeadline();\n }\n\n /**\n * @dev Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_.\n */\n function proposalThreshold() public view virtual returns (uint256) {\n return 0;\n }\n\n /**\n * @dev Amount of votes already cast passes the threshold limit.\n */\n function _quorumReached(uint256 proposalId) internal view virtual returns (bool);\n\n /**\n * @dev Is the proposal successful or not.\n */\n function _voteSucceeded(uint256 proposalId) internal view virtual returns (bool);\n\n /**\n * @dev Register a vote with a given support and voting weight.\n *\n * Note: Support is generic and can represent various things depending on the voting system used.\n */\n function _countVote(\n uint256 proposalId,\n address account,\n uint8 support,\n uint256 weight\n ) internal virtual;\n\n /**\n * @dev See {IGovernor-propose}.\n */\n function propose(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n string memory description\n ) public virtual override returns (uint256) {\n require(\n getVotes(msg.sender, block.number - 1) >= proposalThreshold(),\n \"GovernorCompatibilityBravo: proposer votes below proposal threshold\"\n );\n\n uint256 proposalId = hashProposal(targets, values, calldatas, keccak256(bytes(description)));\n\n require(targets.length == values.length, \"Governor: invalid proposal length\");\n require(targets.length == calldatas.length, \"Governor: invalid proposal length\");\n require(targets.length > 0, \"Governor: empty proposal\");\n\n ProposalCore storage proposal = _proposals[proposalId];\n require(proposal.voteStart.isUnset(), \"Governor: proposal already exists\");\n\n uint64 snapshot = block.number.toUint64() + votingDelay().toUint64();\n uint64 deadline = snapshot + votingPeriod().toUint64();\n\n proposal.voteStart.setDeadline(snapshot);\n proposal.voteEnd.setDeadline(deadline);\n\n emit ProposalCreated(\n proposalId,\n _msgSender(),\n targets,\n values,\n new string[](targets.length),\n calldatas,\n snapshot,\n deadline,\n description\n );\n\n return proposalId;\n }\n\n /**\n * @dev See {IGovernor-execute}.\n */\n function execute(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) public payable virtual override returns (uint256) {\n uint256 proposalId = hashProposal(targets, values, calldatas, descriptionHash);\n\n ProposalState status = state(proposalId);\n require(\n status == ProposalState.Succeeded || status == ProposalState.Queued,\n \"Governor: proposal not successful\"\n );\n _proposals[proposalId].executed = true;\n\n emit ProposalExecuted(proposalId);\n\n _execute(proposalId, targets, values, calldatas, descriptionHash);\n\n return proposalId;\n }\n\n /**\n * @dev Internal execution mechanism. Can be overriden to implement different execution mechanism\n */\n function _execute(\n uint256, /* proposalId */\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 /*descriptionHash*/\n ) internal virtual {\n string memory errorMessage = \"Governor: call reverted without message\";\n for (uint256 i = 0; i < targets.length; ++i) {\n (bool success, bytes memory returndata) = targets[i].call{value: values[i]}(calldatas[i]);\n Address.verifyCallResult(success, returndata, errorMessage);\n }\n }\n\n /**\n * @dev Internal cancel mechanism: locks up the proposal timer, preventing it from being re-submitted. Marks it as\n * canceled to allow distinguishing it from executed proposals.\n *\n * Emits a {IGovernor-ProposalCanceled} event.\n */\n function _cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal virtual returns (uint256) {\n uint256 proposalId = hashProposal(targets, values, calldatas, descriptionHash);\n ProposalState status = state(proposalId);\n\n require(\n status != ProposalState.Canceled && status != ProposalState.Expired && status != ProposalState.Executed,\n \"Governor: proposal not active\"\n );\n _proposals[proposalId].canceled = true;\n\n emit ProposalCanceled(proposalId);\n\n return proposalId;\n }\n\n /**\n * @dev See {IGovernor-castVote}.\n */\n function castVote(uint256 proposalId, uint8 support) public virtual override returns (uint256) {\n address voter = _msgSender();\n return _castVote(proposalId, voter, support, \"\");\n }\n\n /**\n * @dev See {IGovernor-castVoteWithReason}.\n */\n function castVoteWithReason(\n uint256 proposalId,\n uint8 support,\n string calldata reason\n ) public virtual override returns (uint256) {\n address voter = _msgSender();\n return _castVote(proposalId, voter, support, reason);\n }\n\n /**\n * @dev See {IGovernor-castVoteBySig}.\n */\n function castVoteBySig(\n uint256 proposalId,\n uint8 support,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) public virtual override returns (uint256) {\n address voter = ECDSA.recover(\n _hashTypedDataV4(keccak256(abi.encode(BALLOT_TYPEHASH, proposalId, support))),\n v,\n r,\n s\n );\n return _castVote(proposalId, voter, support, \"\");\n }\n\n /**\n * @dev Internal vote casting mechanism: Check that the vote is pending, that it has not been cast yet, retrieve\n * voting weight using {IGovernor-getVotes} and call the {_countVote} internal function.\n *\n * Emits a {IGovernor-VoteCast} event.\n */\n function _castVote(\n uint256 proposalId,\n address account,\n uint8 support,\n string memory reason\n ) internal virtual returns (uint256) {\n ProposalCore storage proposal = _proposals[proposalId];\n require(state(proposalId) == ProposalState.Active, \"Governor: vote not currently active\");\n\n uint256 weight = getVotes(account, proposal.voteStart.getDeadline());\n _countVote(proposalId, account, support, weight);\n\n emit VoteCast(account, proposalId, support, weight, reason);\n\n return weight;\n }\n\n /**\n * @dev Address through which the governor executes action. Will be overloaded by module that execute actions\n * through another contract such as a timelock.\n */\n function _executor() internal view virtual returns (address) {\n return address(this);\n }\n}\n"}, "mocks/ERC20DecimalsMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xc1a6d0757300973b3d2fcf94cc625ace"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/ERC20.sol\";\n\ncontract ERC20DecimalsMock is ERC20 {\n uint8 private immutable _decimals;\n\n constructor(\n string memory name_,\n string memory symbol_,\n uint8 decimals_\n ) ERC20(name_, symbol_) {\n _decimals = decimals_;\n }\n\n function decimals() public view virtual override returns (uint8) {\n return _decimals;\n }\n}\n"}, "interfaces/IERC3156FlashLender.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x9e16b4d269b399e8ab6342e0cf8a2edd"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC3156FlashLender.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC3156FlashBorrower.sol\";\n\n/**\n * @dev Interface of the ERC3156 FlashLender, as defined in\n * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].\n *\n * _Available since v4.1._\n */\ninterface IERC3156FlashLender {\n /**\n * @dev The amount of currency available to be lended.\n * @param token The loan currency.\n * @return The amount of `token` that can be borrowed.\n */\n function maxFlashLoan(address token) external view returns (uint256);\n\n /**\n * @dev The fee to be charged for a given loan.\n * @param token The loan currency.\n * @param amount The amount of tokens lent.\n * @return The amount of `token` to be charged for the loan, on top of the returned principal.\n */\n function flashFee(address token, uint256 amount) external view returns (uint256);\n\n /**\n * @dev Initiate a flash loan.\n * @param receiver The receiver of the tokens in the loan, and the receiver of the callback.\n * @param token The loan currency.\n * @param amount The amount of tokens lent.\n * @param data Arbitrary data structure, intended to contain user-defined parameters.\n */\n function flashLoan(\n IERC3156FlashBorrower receiver,\n address token,\n uint256 amount,\n bytes calldata data\n ) external returns (bool);\n}\n"}, "mocks/ECDSAMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x89ffe0c0ce25a9fa5e5230f3e756908f"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/cryptography/ECDSA.sol\";\n\ncontract ECDSAMock {\n using ECDSA for bytes32;\n using ECDSA for bytes;\n\n function recover(bytes32 hash, bytes memory signature) public pure returns (address) {\n return hash.recover(signature);\n }\n\n // solhint-disable-next-line func-name-mixedcase\n function recover_v_r_s(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) public pure returns (address) {\n return hash.recover(v, r, s);\n }\n\n // solhint-disable-next-line func-name-mixedcase\n function recover_r_vs(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) public pure returns (address) {\n return hash.recover(r, vs);\n }\n\n function toEthSignedMessageHash(bytes32 hash) public pure returns (bytes32) {\n return hash.toEthSignedMessageHash();\n }\n\n function toEthSignedMessageHash(bytes memory s) public pure returns (bytes32) {\n return s.toEthSignedMessageHash();\n }\n}\n"}, "interfaces/IERC1271.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x8fe867b95c856b204f954a1910e28a1e"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC1271 standard signature validation method for\n * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].\n *\n * _Available since v4.1._\n */\ninterface IERC1271 {\n /**\n * @dev Should return whether the signature provided is valid for the provided data\n * @param hash Hash of the data to be signed\n * @param signature Signature byte array associated with _data\n */\n function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);\n}\n"}, "mocks/ERC165/ERC165MissingData.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf7a435a8acb3f5f0bcf2c8aa87a6ab6b"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract ERC165MissingData {\n function supportsInterface(bytes4 interfaceId) public view {} // missing return\n}\n"}, "token/ERC1155/extensions/ERC1155Pausable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x8c76f015a31a093020b83ba53a33c84d"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC1155.sol\";\nimport \"../../../security/Pausable.sol\";\n\n/**\n * @dev ERC1155 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 *\n * _Available since v3.1._\n */\nabstract contract ERC1155Pausable is ERC1155, Pausable {\n /**\n * @dev See {ERC1155-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n ) internal virtual override {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n\n require(!paused(), \"ERC1155Pausable: token transfer while paused\");\n }\n}\n"}, "token/ERC20/extensions/ERC20Capped.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xda89e343119284763a5a135243cdb338"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Capped.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC20.sol\";\n\n/**\n * @dev Extension of {ERC20} that adds a cap to the supply of tokens.\n */\nabstract contract ERC20Capped is ERC20 {\n uint256 private immutable _cap;\n\n /**\n * @dev Sets the value of the `cap`. This value is immutable, it can only be\n * set once during construction.\n */\n constructor(uint256 cap_) {\n require(cap_ > 0, \"ERC20Capped: cap is 0\");\n _cap = cap_;\n }\n\n /**\n * @dev Returns the cap on the token's total supply.\n */\n function cap() public view virtual returns (uint256) {\n return _cap;\n }\n\n /**\n * @dev See {ERC20-_mint}.\n */\n function _mint(address account, uint256 amount) internal virtual override {\n require(ERC20.totalSupply() + amount <= cap(), \"ERC20Capped: cap exceeded\");\n super._mint(account, amount);\n }\n}\n"}, "mocks/ERC721ReceiverMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x6a446429aabded16b45d40ebbbb7f672"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC721/IERC721Receiver.sol\";\n\ncontract ERC721ReceiverMock is IERC721Receiver {\n enum Error {\n None,\n RevertWithMessage,\n RevertWithoutMessage,\n Panic\n }\n\n bytes4 private immutable _retval;\n Error private immutable _error;\n\n event Received(address operator, address from, uint256 tokenId, bytes data, uint256 gas);\n\n constructor(bytes4 retval, Error error) {\n _retval = retval;\n _error = error;\n }\n\n function onERC721Received(\n address operator,\n address from,\n uint256 tokenId,\n bytes memory data\n ) public override returns (bytes4) {\n if (_error == Error.RevertWithMessage) {\n revert(\"ERC721ReceiverMock: reverting\");\n } else if (_error == Error.RevertWithoutMessage) {\n revert();\n } else if (_error == Error.Panic) {\n uint256 a = uint256(0) / uint256(0);\n a;\n }\n emit Received(operator, from, tokenId, data, gasleft());\n return _retval;\n }\n}\n"}, "mocks/ERC3156FlashBorrowerMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf5aaafe8ca151fca303734ce7c7ba8ce"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/IERC20.sol\";\nimport \"../interfaces/IERC3156.sol\";\nimport \"../utils/Address.sol\";\n\n/**\n * @dev WARNING: this IERC3156FlashBorrower mock implementation is for testing purposes ONLY.\n * Writing a secure flash lock borrower is not an easy task, and should be done with the utmost care.\n * This is not an example of how it should be done, and no pattern present in this mock should be considered secure.\n * Following best practices, always have your contract properly audited before using them to manipulate important funds on\n * live networks.\n */\ncontract ERC3156FlashBorrowerMock is IERC3156FlashBorrower {\n bytes32 internal constant _RETURN_VALUE = keccak256(\"ERC3156FlashBorrower.onFlashLoan\");\n\n bool immutable _enableApprove;\n bool immutable _enableReturn;\n\n event BalanceOf(address token, address account, uint256 value);\n event TotalSupply(address token, uint256 value);\n\n constructor(bool enableReturn, bool enableApprove) {\n _enableApprove = enableApprove;\n _enableReturn = enableReturn;\n }\n\n function onFlashLoan(\n address, /*initiator*/\n address token,\n uint256 amount,\n uint256 fee,\n bytes calldata data\n ) public override returns (bytes32) {\n require(msg.sender == token);\n\n emit BalanceOf(token, address(this), IERC20(token).balanceOf(address(this)));\n emit TotalSupply(token, IERC20(token).totalSupply());\n\n if (data.length > 0) {\n // WARNING: This code is for testing purposes only! Do not use.\n Address.functionCall(token, data);\n }\n\n if (_enableApprove) {\n IERC20(token).approve(token, amount + fee);\n }\n\n return _enableReturn ? _RETURN_VALUE : bytes32(0);\n }\n}\n"}, "mocks/ERC1155ReceiverMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x509f8265587db2c555344f91e2fe5b1d"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC1155/IERC1155Receiver.sol\";\nimport \"../utils/introspection/ERC165.sol\";\n\ncontract ERC1155ReceiverMock is ERC165, IERC1155Receiver {\n bytes4 private _recRetval;\n bool private _recReverts;\n bytes4 private _batRetval;\n bool private _batReverts;\n\n event Received(address operator, address from, uint256 id, uint256 value, bytes data, uint256 gas);\n event BatchReceived(address operator, address from, uint256[] ids, uint256[] values, bytes data, uint256 gas);\n\n constructor(\n bytes4 recRetval,\n bool recReverts,\n bytes4 batRetval,\n bool batReverts\n ) {\n _recRetval = recRetval;\n _recReverts = recReverts;\n _batRetval = batRetval;\n _batReverts = batReverts;\n }\n\n function onERC1155Received(\n address operator,\n address from,\n uint256 id,\n uint256 value,\n bytes calldata data\n ) external override returns (bytes4) {\n require(!_recReverts, \"ERC1155ReceiverMock: reverting on receive\");\n emit Received(operator, from, id, value, data, gasleft());\n return _recRetval;\n }\n\n function onERC1155BatchReceived(\n address operator,\n address from,\n uint256[] calldata ids,\n uint256[] calldata values,\n bytes calldata data\n ) external override returns (bytes4) {\n require(!_batReverts, \"ERC1155ReceiverMock: reverting on batch receive\");\n emit BatchReceived(operator, from, ids, values, data, gasleft());\n return _batRetval;\n }\n}\n"}, "mocks/ERC2771ContextMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd136ce8da9bd08ff37c24fa830af7412"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ContextMock.sol\";\nimport \"../metatx/ERC2771Context.sol\";\n\n// By inheriting from ERC2771Context, Context's internal functions are overridden automatically\ncontract ERC2771ContextMock is ContextMock, ERC2771Context {\n constructor(address trustedForwarder) ERC2771Context(trustedForwarder) {}\n\n function _msgSender() internal view virtual override(Context, ERC2771Context) returns (address) {\n return ERC2771Context._msgSender();\n }\n\n function _msgData() internal view virtual override(Context, ERC2771Context) returns (bytes calldata) {\n return ERC2771Context._msgData();\n }\n}\n"}, "token/ERC777/IERC777Recipient.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x268af1696d7a83a7e78a1a8f5ba1c685"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC777/IERC777Recipient.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC777TokensRecipient standard as defined in the EIP.\n *\n * Accounts can be notified of {IERC777} tokens being sent to them by having a\n * contract implement this interface (contract holders can be their own\n * implementer) and registering it on the\n * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].\n *\n * See {IERC1820Registry} and {ERC1820Implementer}.\n */\ninterface IERC777Recipient {\n /**\n * @dev Called by an {IERC777} token contract whenever tokens are being\n * moved or created into a registered account (`to`). The type of operation\n * is conveyed by `from` being the zero address or not.\n *\n * This call occurs _after_ the token contract's state is updated, so\n * {IERC777-balanceOf}, etc., can be used to query the post-operation state.\n *\n * This function may revert to prevent the operation from being executed.\n */\n function tokensReceived(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external;\n}\n"}, "mocks/ContextMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x719fb67a19e30889dcb3569262f65b85"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\ncontract ContextMock is Context {\n event Sender(address sender);\n\n function msgSender() public {\n emit Sender(_msgSender());\n }\n\n event Data(bytes data, uint256 integerValue, string stringValue);\n\n function msgData(uint256 integerValue, string memory stringValue) public {\n emit Data(_msgData(), integerValue, stringValue);\n }\n}\n\ncontract ContextMockCaller {\n function callSender(ContextMock context) public {\n context.msgSender();\n }\n\n function callData(\n ContextMock context,\n uint256 integerValue,\n string memory stringValue\n ) public {\n context.msgData(integerValue, stringValue);\n }\n}\n"}, "mocks/ERC1155Mock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x1be5f5c78217fb35b62f121b7d62296c"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC1155/ERC1155.sol\";\n\n/**\n * @title ERC1155Mock\n * This mock just publicizes internal functions for testing purposes\n */\ncontract ERC1155Mock is ERC1155 {\n constructor(string memory uri) ERC1155(uri) {}\n\n function setURI(string memory newuri) public {\n _setURI(newuri);\n }\n\n function mint(\n address to,\n uint256 id,\n uint256 value,\n bytes memory data\n ) public {\n _mint(to, id, value, data);\n }\n\n function mintBatch(\n address to,\n uint256[] memory ids,\n uint256[] memory values,\n bytes memory data\n ) public {\n _mintBatch(to, ids, values, data);\n }\n\n function burn(\n address owner,\n uint256 id,\n uint256 value\n ) public {\n _burn(owner, id, value);\n }\n\n function burnBatch(\n address owner,\n uint256[] memory ids,\n uint256[] memory values\n ) public {\n _burnBatch(owner, ids, values);\n }\n}\n"}, "access/IAccessControlEnumerable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4e71cc90682e109e999ce2bd329f6572"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IAccessControl.sol\";\n\n/**\n * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.\n */\ninterface IAccessControlEnumerable is IAccessControl {\n /**\n * @dev Returns one of the accounts that have `role`. `index` must be a\n * value between 0 and {getRoleMemberCount}, non-inclusive.\n *\n * Role bearers are not sorted in any particular way, and their ordering may\n * change at any point.\n *\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\n * you perform all queries on the same block. See the following\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\n * for more information.\n */\n function getRoleMember(bytes32 role, uint256 index) external view returns (address);\n\n /**\n * @dev Returns the number of accounts that have `role`. Can be used\n * together with {getRoleMember} to enumerate all bearers of a role.\n */\n function getRoleMemberCount(bytes32 role) external view returns (uint256);\n}\n"}, "utils/introspection/IERC165.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x03e6768535ac4da0e9756f1d8a4a018a"}, "content": "// 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 IERC165 {\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"}, "interfaces/IERC721Metadata.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd228683ef3a0f519456720463403ced6"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC721/extensions/IERC721Metadata.sol\";\n"}, "mocks/DummyImplementation.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x23052da0351ecbcd43802845a41fbeef"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nabstract contract Impl {\n function version() public pure virtual returns (string memory);\n}\n\ncontract DummyImplementation {\n uint256 public value;\n string public text;\n uint256[] public values;\n\n function initializeNonPayable() public {\n value = 10;\n }\n\n function initializePayable() public payable {\n value = 100;\n }\n\n function initializeNonPayableWithValue(uint256 _value) public {\n value = _value;\n }\n\n function initializePayableWithValue(uint256 _value) public payable {\n value = _value;\n }\n\n function initialize(\n uint256 _value,\n string memory _text,\n uint256[] memory _values\n ) public {\n value = _value;\n text = _text;\n values = _values;\n }\n\n function get() public pure returns (bool) {\n return true;\n }\n\n function version() public pure virtual returns (string memory) {\n return \"V1\";\n }\n\n function reverts() public pure {\n require(false, \"DummyImplementation reverted\");\n }\n}\n\ncontract DummyImplementationV2 is DummyImplementation {\n function migrate(uint256 newVal) public payable {\n value = newVal;\n }\n\n function version() public pure override returns (string memory) {\n return \"V2\";\n }\n}\n"}, "mocks/ERC165/ERC165NotSupported.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x3d6acaa746a431a94963bccd84b1ef76"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract ERC165NotSupported {}\n"}, "token/ERC1155/IERC1155.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x59e1bc5713fdebc7f821dc52f4d3e0ef"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC1155 compliant contract, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1155[EIP].\n *\n * _Available since v3.1._\n */\ninterface IERC1155 is IERC165 {\n /**\n * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.\n */\n event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);\n\n /**\n * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all\n * transfers.\n */\n event TransferBatch(\n address indexed operator,\n address indexed from,\n address indexed to,\n uint256[] ids,\n uint256[] values\n );\n\n /**\n * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to\n * `approved`.\n */\n event ApprovalForAll(address indexed account, address indexed operator, bool approved);\n\n /**\n * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.\n *\n * If an {URI} event was emitted for `id`, the standard\n * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value\n * returned by {IERC1155MetadataURI-uri}.\n */\n event URI(string value, uint256 indexed id);\n\n /**\n * @dev Returns the amount of tokens of token type `id` owned by `account`.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function balanceOf(address account, uint256 id) external view returns (uint256);\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.\n *\n * Requirements:\n *\n * - `accounts` and `ids` must have the same length.\n */\n function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)\n external\n view\n returns (uint256[] memory);\n\n /**\n * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,\n *\n * Emits an {ApprovalForAll} event.\n *\n * Requirements:\n *\n * - `operator` cannot be the caller.\n */\n function setApprovalForAll(address operator, bool approved) external;\n\n /**\n * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.\n *\n * See {setApprovalForAll}.\n */\n function isApprovedForAll(address account, address operator) external view returns (bool);\n\n /**\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\n *\n * Emits a {TransferSingle} event.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\n * acceptance magic value.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 id,\n uint256 amount,\n bytes calldata data\n ) external;\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.\n *\n * Emits a {TransferBatch} event.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\n * acceptance magic value.\n */\n function safeBatchTransferFrom(\n address from,\n address to,\n uint256[] calldata ids,\n uint256[] calldata amounts,\n bytes calldata data\n ) external;\n}\n"}, "utils/math/SafeMath.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xa6a9d6c1f662e922b82c1ba4d81cdd48"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)\n\npragma solidity ^0.8.0;\n\n// CAUTION\n// This version of SafeMath should only be used with Solidity 0.8 or later,\n// because it relies on the compiler's built in overflow checks.\n\n/**\n * @dev Wrappers over Solidity's arithmetic operations.\n *\n * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler\n * now has built in overflow checking.\n */\nlibrary SafeMath {\n /**\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\n *\n * _Available since v3.4._\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n unchecked {\n uint256 c = a + b;\n if (c < a) return (false, 0);\n return (true, c);\n }\n }\n\n /**\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\n *\n * _Available since v3.4._\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n unchecked {\n if (b > a) return (false, 0);\n return (true, a - b);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\n *\n * _Available since v3.4._\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n unchecked {\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n // benefit is lost if 'b' is also tested.\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n if (a == 0) return (true, 0);\n uint256 c = a * b;\n if (c / a != b) return (false, 0);\n return (true, c);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\n *\n * _Available since v3.4._\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n unchecked {\n if (b == 0) return (false, 0);\n return (true, a / b);\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\n *\n * _Available since v3.4._\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n unchecked {\n if (b == 0) return (false, 0);\n return (true, a % b);\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `+` operator.\n *\n * Requirements:\n *\n * - Addition cannot overflow.\n */\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n return a + b;\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting on\n * overflow (when the result is negative).\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n return a - b;\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `*` operator.\n *\n * Requirements:\n *\n * - Multiplication cannot overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n return a * b;\n }\n\n /**\n * @dev Returns the integer division of two unsigned integers, reverting on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator.\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n return a / b;\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n * reverting when dividing by zero.\n *\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\n * opcode (which leaves remaining gas untouched) while Solidity uses an\n * invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\n return a % b;\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\n * overflow (when the result is negative).\n *\n * CAUTION: This function is deprecated because it requires allocating memory for the error\n * message unnecessarily. For custom revert reasons use {trySub}.\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(\n uint256 a,\n uint256 b,\n string memory errorMessage\n ) internal pure returns (uint256) {\n unchecked {\n require(b <= a, errorMessage);\n return a - b;\n }\n }\n\n /**\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(\n uint256 a,\n uint256 b,\n string memory errorMessage\n ) internal pure returns (uint256) {\n unchecked {\n require(b > 0, errorMessage);\n return a / b;\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n * reverting with custom message when dividing by zero.\n *\n * CAUTION: This function is deprecated because it requires allocating memory for the error\n * message unnecessarily. For custom revert reasons use {tryMod}.\n *\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\n * opcode (which leaves remaining gas untouched) while Solidity uses an\n * invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function mod(\n uint256 a,\n uint256 b,\n string memory errorMessage\n ) internal pure returns (uint256) {\n unchecked {\n require(b > 0, errorMessage);\n return a % b;\n }\n }\n}\n"}, "token/ERC20/utils/SafeERC20.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x76814c83c32552ed2b521c816b4d801a"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\nimport \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n using Address for address;\n\n function safeTransfer(\n IERC20 token,\n address to,\n uint256 value\n ) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n }\n\n function safeTransferFrom(\n IERC20 token,\n address from,\n address to,\n uint256 value\n ) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n }\n\n /**\n * @dev Deprecated. This function has issues similar to the ones found in\n * {IERC20-approve}, and its usage is discouraged.\n *\n * Whenever possible, use {safeIncreaseAllowance} and\n * {safeDecreaseAllowance} instead.\n */\n function safeApprove(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n // safeApprove should only be called when setting an initial allowance,\n // or when resetting it to zero. To increase and decrease it, use\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n require(\n (value == 0) || (token.allowance(address(this), spender) == 0),\n \"SafeERC20: approve from non-zero to non-zero allowance\"\n );\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n }\n\n function safeIncreaseAllowance(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n uint256 newAllowance = token.allowance(address(this), spender) + value;\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n\n function safeDecreaseAllowance(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n unchecked {\n uint256 oldAllowance = token.allowance(address(this), spender);\n require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n uint256 newAllowance = oldAllowance - value;\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\n // the target address contains contract code and also asserts for success in the low-level call.\n\n bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n if (returndata.length > 0) {\n // Return data is optional\n require(abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n }\n }\n}\n"}, "mocks/AccessControlMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x9ab346051c25fc9309e084adc6112888"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../access/AccessControl.sol\";\n\ncontract AccessControlMock is AccessControl {\n constructor() {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n }\n\n function setRoleAdmin(bytes32 roleId, bytes32 adminRoleId) public {\n _setRoleAdmin(roleId, adminRoleId);\n }\n\n function senderProtected(bytes32 roleId) public onlyRole(roleId) {}\n}\n"}, "interfaces/IERC3156.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x8a4addf833379ccc6911f847b308332f"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC3156.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC3156FlashBorrower.sol\";\nimport \"./IERC3156FlashLender.sol\";\n"}, "token/ERC1155/extensions/ERC1155Burnable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xb9f23167c71a0ebb43ef5915b463a264"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC1155.sol\";\n\n/**\n * @dev Extension of {ERC1155} that allows token holders to destroy both their\n * own tokens and those that they have been approved to use.\n *\n * _Available since v3.1._\n */\nabstract contract ERC1155Burnable is ERC1155 {\n function burn(\n address account,\n uint256 id,\n uint256 value\n ) public virtual {\n require(\n account == _msgSender() || isApprovedForAll(account, _msgSender()),\n \"ERC1155: caller is not owner nor approved\"\n );\n\n _burn(account, id, value);\n }\n\n function burnBatch(\n address account,\n uint256[] memory ids,\n uint256[] memory values\n ) public virtual {\n require(\n account == _msgSender() || isApprovedForAll(account, _msgSender()),\n \"ERC1155: caller is not owner nor approved\"\n );\n\n _burnBatch(account, ids, values);\n }\n}\n"}, "mocks/ERC721URIStorageMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x49af10a60f7b5cf77c322f7c002eca81"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC721/extensions/ERC721URIStorage.sol\";\n\n/**\n * @title ERC721Mock\n * This mock just provides a public safeMint, mint, and burn functions for testing purposes\n */\ncontract ERC721URIStorageMock is ERC721URIStorage {\n string private _baseTokenURI;\n\n constructor(string memory name, string memory symbol) ERC721(name, symbol) {}\n\n function _baseURI() internal view virtual override returns (string memory) {\n return _baseTokenURI;\n }\n\n function setBaseURI(string calldata newBaseTokenURI) public {\n _baseTokenURI = newBaseTokenURI;\n }\n\n function baseURI() public view returns (string memory) {\n return _baseURI();\n }\n\n function setTokenURI(uint256 tokenId, string memory _tokenURI) public {\n _setTokenURI(tokenId, _tokenURI);\n }\n\n function exists(uint256 tokenId) public view returns (bool) {\n return _exists(tokenId);\n }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n\n function safeMint(address to, uint256 tokenId) public {\n _safeMint(to, tokenId);\n }\n\n function safeMint(\n address to,\n uint256 tokenId,\n bytes memory _data\n ) public {\n _safeMint(to, tokenId, _data);\n }\n\n function burn(uint256 tokenId) public {\n _burn(tokenId);\n }\n}\n"}, "mocks/EIP712External.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf3ce57602b397d603d1ab47a289cd8c9"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/cryptography/draft-EIP712.sol\";\nimport \"../utils/cryptography/ECDSA.sol\";\n\ncontract EIP712External is EIP712 {\n constructor(string memory name, string memory version) EIP712(name, version) {}\n\n function domainSeparator() external view returns (bytes32) {\n return _domainSeparatorV4();\n }\n\n function verify(\n bytes memory signature,\n address signer,\n address mailTo,\n string memory mailContents\n ) external view {\n bytes32 digest = _hashTypedDataV4(\n keccak256(abi.encode(keccak256(\"Mail(address to,string contents)\"), mailTo, keccak256(bytes(mailContents))))\n );\n address recoveredSigner = ECDSA.recover(digest, signature);\n require(recoveredSigner == signer);\n }\n\n function getChainId() external view returns (uint256) {\n return block.chainid;\n }\n}\n"}, "proxy/Clones.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf741efede98f234458f02f818f80c7f3"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (proxy/Clones.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for\n * deploying minimal proxy contracts, also known as \"clones\".\n *\n * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies\n * > a minimal bytecode implementation that delegates all calls to a known, fixed address.\n *\n * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`\n * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the\n * deterministic method.\n *\n * _Available since v3.4._\n */\nlibrary Clones {\n /**\n * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.\n *\n * This function uses the create opcode, which should never revert.\n */\n function clone(address implementation) internal returns (address instance) {\n assembly {\n let ptr := mload(0x40)\n mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\n mstore(add(ptr, 0x14), shl(0x60, implementation))\n mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)\n instance := create(0, ptr, 0x37)\n }\n require(instance != address(0), \"ERC1167: create failed\");\n }\n\n /**\n * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.\n *\n * This function uses the create2 opcode and a `salt` to deterministically deploy\n * the clone. Using the same `implementation` and `salt` multiple time will revert, since\n * the clones cannot be deployed twice at the same address.\n */\n function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {\n assembly {\n let ptr := mload(0x40)\n mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\n mstore(add(ptr, 0x14), shl(0x60, implementation))\n mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)\n instance := create2(0, ptr, 0x37, salt)\n }\n require(instance != address(0), \"ERC1167: create2 failed\");\n }\n\n /**\n * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.\n */\n function predictDeterministicAddress(\n address implementation,\n bytes32 salt,\n address deployer\n ) internal pure returns (address predicted) {\n assembly {\n let ptr := mload(0x40)\n mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\n mstore(add(ptr, 0x14), shl(0x60, implementation))\n mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)\n mstore(add(ptr, 0x38), shl(0x60, deployer))\n mstore(add(ptr, 0x4c), salt)\n mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))\n predicted := keccak256(add(ptr, 0x37), 0x55)\n }\n }\n\n /**\n * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.\n */\n function predictDeterministicAddress(address implementation, bytes32 salt)\n internal\n view\n returns (address predicted)\n {\n return predictDeterministicAddress(implementation, salt, address(this));\n }\n}\n"}, "utils/Multicall.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x43750878e7e0032470da679a7b57e717"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Multicall.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./Address.sol\";\n\n/**\n * @dev Provides a function to batch together multiple calls in a single external call.\n *\n * _Available since v4.1._\n */\nabstract contract Multicall {\n /**\n * @dev Receives and executes a batch of function calls on this contract.\n */\n function multicall(bytes[] calldata data) external returns (bytes[] memory results) {\n results = new bytes[](data.length);\n for (uint256 i = 0; i < data.length; i++) {\n results[i] = Address.functionDelegateCall(address(this), data[i]);\n }\n return results;\n }\n}\n"}, "interfaces/IERC1363Receiver.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x81d82b92e32be3906f750c8aa081eb09"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1363Receiver.sol)\n\npragma solidity ^0.8.0;\n\ninterface IERC1363Receiver {\n /*\n * Note: the ERC-165 identifier for this interface is 0x88a7ca5c.\n * 0x88a7ca5c === bytes4(keccak256(\"onTransferReceived(address,address,uint256,bytes)\"))\n */\n\n /**\n * @notice Handle the receipt of ERC1363 tokens\n * @dev Any ERC1363 smart contract calls this function on the recipient\n * after a `transfer` or a `transferFrom`. This function MAY throw to revert and reject the\n * transfer. Return of other than the magic value MUST result in the\n * transaction being reverted.\n * Note: the token contract address is always the message sender.\n * @param operator address The address which called `transferAndCall` or `transferFromAndCall` function\n * @param from address The address which are token transferred from\n * @param value uint256 The amount of tokens transferred\n * @param data bytes Additional data with no specified format\n * @return `bytes4(keccak256(\"onTransferReceived(address,address,uint256,bytes)\"))`\n * unless throwing\n */\n function onTransferReceived(\n address operator,\n address from,\n uint256 value,\n bytes memory data\n ) external returns (bytes4);\n}\n"}, "utils/Arrays.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x2bd89f9eb95c317b3b21cc83fde01a32"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Arrays.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\n\n/**\n * @dev Collection of functions related to array types.\n */\nlibrary Arrays {\n /**\n * @dev Searches a sorted `array` and returns the first index that contains\n * a value greater or equal to `element`. If no such index exists (i.e. all\n * values in the array are strictly less than `element`), the array length is\n * returned. Time complexity O(log n).\n *\n * `array` is expected to be sorted in ascending order, and to contain no\n * repeated elements.\n */\n function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {\n if (array.length == 0) {\n return 0;\n }\n\n uint256 low = 0;\n uint256 high = array.length;\n\n while (low < high) {\n uint256 mid = Math.average(low, high);\n\n // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n // because Math.average rounds down (it does integer division with truncation).\n if (array[mid] > element) {\n high = mid;\n } else {\n low = mid + 1;\n }\n }\n\n // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.\n if (low > 0 && array[low - 1] == element) {\n return low - 1;\n } else {\n return low;\n }\n }\n}\n"}, "mocks/ERC20FlashMintMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x6c99fcc05afa7e70515f430992e692ad"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/extensions/ERC20FlashMint.sol\";\n\ncontract ERC20FlashMintMock is ERC20FlashMint {\n constructor(\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n}\n"}, "token/ERC20/extensions/draft-IERC20Permit.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xfb77f144244b9ab12533aa6ce85ef8c5"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n */\ninterface IERC20Permit {\n /**\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n * given ``owner``'s signed approval.\n *\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n * ordering also apply here.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `deadline` must be a timestamp in the future.\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n * over the EIP712-formatted function arguments.\n * - the signature must use ``owner``'s current nonce (see {nonces}).\n *\n * For more information on the signature format, see the\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n * section].\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n /**\n * @dev Returns the current nonce for `owner`. This value must be\n * included whenever a signature is generated for {permit}.\n *\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\n * prevents a signature from being used multiple times.\n */\n function nonces(address owner) external view returns (uint256);\n\n /**\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n"}, "token/ERC777/IERC777.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x577d03e8d175b2f807063648ac4302ad"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC777/IERC777.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC777Token standard as defined in the EIP.\n *\n * This contract uses the\n * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let\n * token holders and recipients react to token movements by using setting implementers\n * for the associated interfaces in said registry. See {IERC1820Registry} and\n * {ERC1820Implementer}.\n */\ninterface IERC777 {\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, usually a shorter version of the\n * name.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the smallest part of the token that is not divisible. This\n * means all token operations (creation, movement and destruction) must have\n * amounts that are a multiple of this number.\n *\n * For most token contracts, this value will equal 1.\n */\n function granularity() external view returns (uint256);\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 an account (`owner`).\n */\n function balanceOf(address owner) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `recipient`.\n *\n * If send or receive hooks are registered for the caller and `recipient`,\n * the corresponding functions will be called with `data` and empty\n * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.\n *\n * Emits a {Sent} event.\n *\n * Requirements\n *\n * - the caller must have at least `amount` tokens.\n * - `recipient` cannot be the zero address.\n * - if `recipient` is a contract, it must implement the {IERC777Recipient}\n * interface.\n */\n function send(\n address recipient,\n uint256 amount,\n bytes calldata data\n ) external;\n\n /**\n * @dev Destroys `amount` tokens from the caller's account, reducing the\n * total supply.\n *\n * If a send hook is registered for the caller, the corresponding function\n * will be called with `data` and empty `operatorData`. See {IERC777Sender}.\n *\n * Emits a {Burned} event.\n *\n * Requirements\n *\n * - the caller must have at least `amount` tokens.\n */\n function burn(uint256 amount, bytes calldata data) external;\n\n /**\n * @dev Returns true if an account is an operator of `tokenHolder`.\n * Operators can send and burn tokens on behalf of their owners. All\n * accounts are their own operator.\n *\n * See {operatorSend} and {operatorBurn}.\n */\n function isOperatorFor(address operator, address tokenHolder) external view returns (bool);\n\n /**\n * @dev Make an account an operator of the caller.\n *\n * See {isOperatorFor}.\n *\n * Emits an {AuthorizedOperator} event.\n *\n * Requirements\n *\n * - `operator` cannot be calling address.\n */\n function authorizeOperator(address operator) external;\n\n /**\n * @dev Revoke an account's operator status for the caller.\n *\n * See {isOperatorFor} and {defaultOperators}.\n *\n * Emits a {RevokedOperator} event.\n *\n * Requirements\n *\n * - `operator` cannot be calling address.\n */\n function revokeOperator(address operator) external;\n\n /**\n * @dev Returns the list of default operators. These accounts are operators\n * for all token holders, even if {authorizeOperator} was never called on\n * them.\n *\n * This list is immutable, but individual holders may revoke these via\n * {revokeOperator}, in which case {isOperatorFor} will return false.\n */\n function defaultOperators() external view returns (address[] memory);\n\n /**\n * @dev Moves `amount` tokens from `sender` to `recipient`. The caller must\n * be an operator of `sender`.\n *\n * If send or receive hooks are registered for `sender` and `recipient`,\n * the corresponding functions will be called with `data` and\n * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.\n *\n * Emits a {Sent} event.\n *\n * Requirements\n *\n * - `sender` cannot be the zero address.\n * - `sender` must have at least `amount` tokens.\n * - the caller must be an operator for `sender`.\n * - `recipient` cannot be the zero address.\n * - if `recipient` is a contract, it must implement the {IERC777Recipient}\n * interface.\n */\n function operatorSend(\n address sender,\n address recipient,\n uint256 amount,\n bytes calldata data,\n bytes calldata operatorData\n ) external;\n\n /**\n * @dev Destroys `amount` tokens from `account`, reducing the total supply.\n * The caller must be an operator of `account`.\n *\n * If a send hook is registered for `account`, the corresponding function\n * will be called with `data` and `operatorData`. See {IERC777Sender}.\n *\n * Emits a {Burned} event.\n *\n * Requirements\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens.\n * - the caller must be an operator for `account`.\n */\n function operatorBurn(\n address account,\n uint256 amount,\n bytes calldata data,\n bytes calldata operatorData\n ) external;\n\n event Sent(\n address indexed operator,\n address indexed from,\n address indexed to,\n uint256 amount,\n bytes data,\n bytes operatorData\n );\n\n event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData);\n\n event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData);\n\n event AuthorizedOperator(address indexed operator, address indexed tokenHolder);\n\n event RevokedOperator(address indexed operator, address indexed tokenHolder);\n}\n"}, "token/ERC20/IERC20.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x302d9755e46bc69d7058b0cbe7185e37"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (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 IERC20 {\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 `recipient`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address recipient, 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 `sender` to `recipient` 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 sender,\n address recipient,\n uint256 amount\n ) external returns (bool);\n\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"}, "token/ERC777/ERC777.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x5b49b1cbba768763775f40d665ac7326"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC777/ERC777.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC777.sol\";\nimport \"./IERC777Recipient.sol\";\nimport \"./IERC777Sender.sol\";\nimport \"../ERC20/IERC20.sol\";\nimport \"../../utils/Address.sol\";\nimport \"../../utils/Context.sol\";\nimport \"../../utils/introspection/IERC1820Registry.sol\";\n\n/**\n * @dev Implementation of the {IERC777} 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 *\n * Support for ERC20 is included in this contract, as specified by the EIP: both\n * the ERC777 and ERC20 interfaces can be safely used when interacting with it.\n * Both {IERC777-Sent} and {IERC20-Transfer} events are emitted on token\n * movements.\n *\n * Additionally, the {IERC777-granularity} value is hard-coded to `1`, meaning that there\n * are no special restrictions in the amount of tokens that created, moved, or\n * destroyed. This makes integration with ERC20 applications seamless.\n */\ncontract ERC777 is Context, IERC777, IERC20 {\n using Address for address;\n\n IERC1820Registry internal constant _ERC1820_REGISTRY = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);\n\n mapping(address => uint256) private _balances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n\n bytes32 private constant _TOKENS_SENDER_INTERFACE_HASH = keccak256(\"ERC777TokensSender\");\n bytes32 private constant _TOKENS_RECIPIENT_INTERFACE_HASH = keccak256(\"ERC777TokensRecipient\");\n\n // This isn't ever read from - it's only used to respond to the defaultOperators query.\n address[] private _defaultOperatorsArray;\n\n // Immutable, but accounts may revoke them (tracked in __revokedDefaultOperators).\n mapping(address => bool) private _defaultOperators;\n\n // For each account, a mapping of its operators and revoked default operators.\n mapping(address => mapping(address => bool)) private _operators;\n mapping(address => mapping(address => bool)) private _revokedDefaultOperators;\n\n // ERC20-allowances\n mapping(address => mapping(address => uint256)) private _allowances;\n\n /**\n * @dev `defaultOperators` may be an empty array.\n */\n constructor(\n string memory name_,\n string memory symbol_,\n address[] memory defaultOperators_\n ) {\n _name = name_;\n _symbol = symbol_;\n\n _defaultOperatorsArray = defaultOperators_;\n for (uint256 i = 0; i < defaultOperators_.length; i++) {\n _defaultOperators[defaultOperators_[i]] = true;\n }\n\n // register interfaces\n _ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256(\"ERC777Token\"), address(this));\n _ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256(\"ERC20Token\"), address(this));\n }\n\n /**\n * @dev See {IERC777-name}.\n */\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev See {IERC777-symbol}.\n */\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev See {ERC20-decimals}.\n *\n * Always returns 18, as per the\n * [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility).\n */\n function decimals() public pure virtual returns (uint8) {\n return 18;\n }\n\n /**\n * @dev See {IERC777-granularity}.\n *\n * This implementation always returns `1`.\n */\n function granularity() public view virtual override returns (uint256) {\n return 1;\n }\n\n /**\n * @dev See {IERC777-totalSupply}.\n */\n function totalSupply() public view virtual override(IERC20, IERC777) returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev Returns the amount of tokens owned by an account (`tokenHolder`).\n */\n function balanceOf(address tokenHolder) public view virtual override(IERC20, IERC777) returns (uint256) {\n return _balances[tokenHolder];\n }\n\n /**\n * @dev See {IERC777-send}.\n *\n * Also emits a {IERC20-Transfer} event for ERC20 compatibility.\n */\n function send(\n address recipient,\n uint256 amount,\n bytes memory data\n ) public virtual override {\n _send(_msgSender(), recipient, amount, data, \"\", true);\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient}\n * interface if it is a contract.\n *\n * Also emits a {Sent} event.\n */\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\n require(recipient != address(0), \"ERC777: transfer to the zero address\");\n\n address from = _msgSender();\n\n _callTokensToSend(from, from, recipient, amount, \"\", \"\");\n\n _move(from, from, recipient, amount, \"\", \"\");\n\n _callTokensReceived(from, from, recipient, amount, \"\", \"\", false);\n\n return true;\n }\n\n /**\n * @dev See {IERC777-burn}.\n *\n * Also emits a {IERC20-Transfer} event for ERC20 compatibility.\n */\n function burn(uint256 amount, bytes memory data) public virtual override {\n _burn(_msgSender(), amount, data, \"\");\n }\n\n /**\n * @dev See {IERC777-isOperatorFor}.\n */\n function isOperatorFor(address operator, address tokenHolder) public view virtual override returns (bool) {\n return\n operator == tokenHolder ||\n (_defaultOperators[operator] && !_revokedDefaultOperators[tokenHolder][operator]) ||\n _operators[tokenHolder][operator];\n }\n\n /**\n * @dev See {IERC777-authorizeOperator}.\n */\n function authorizeOperator(address operator) public virtual override {\n require(_msgSender() != operator, \"ERC777: authorizing self as operator\");\n\n if (_defaultOperators[operator]) {\n delete _revokedDefaultOperators[_msgSender()][operator];\n } else {\n _operators[_msgSender()][operator] = true;\n }\n\n emit AuthorizedOperator(operator, _msgSender());\n }\n\n /**\n * @dev See {IERC777-revokeOperator}.\n */\n function revokeOperator(address operator) public virtual override {\n require(operator != _msgSender(), \"ERC777: revoking self as operator\");\n\n if (_defaultOperators[operator]) {\n _revokedDefaultOperators[_msgSender()][operator] = true;\n } else {\n delete _operators[_msgSender()][operator];\n }\n\n emit RevokedOperator(operator, _msgSender());\n }\n\n /**\n * @dev See {IERC777-defaultOperators}.\n */\n function defaultOperators() public view virtual override returns (address[] memory) {\n return _defaultOperatorsArray;\n }\n\n /**\n * @dev See {IERC777-operatorSend}.\n *\n * Emits {Sent} and {IERC20-Transfer} events.\n */\n function operatorSend(\n address sender,\n address recipient,\n uint256 amount,\n bytes memory data,\n bytes memory operatorData\n ) public virtual override {\n require(isOperatorFor(_msgSender(), sender), \"ERC777: caller is not an operator for holder\");\n _send(sender, recipient, amount, data, operatorData, true);\n }\n\n /**\n * @dev See {IERC777-operatorBurn}.\n *\n * Emits {Burned} and {IERC20-Transfer} events.\n */\n function operatorBurn(\n address account,\n uint256 amount,\n bytes memory data,\n bytes memory operatorData\n ) public virtual override {\n require(isOperatorFor(_msgSender(), account), \"ERC777: caller is not an operator for holder\");\n _burn(account, amount, data, operatorData);\n }\n\n /**\n * @dev See {IERC20-allowance}.\n *\n * Note that operator and allowance concepts are orthogonal: operators may\n * not have allowance, and accounts with allowance may not be operators\n * themselves.\n */\n function allowance(address holder, address spender) public view virtual override returns (uint256) {\n return _allowances[holder][spender];\n }\n\n /**\n * @dev See {IERC20-approve}.\n *\n * Note that accounts cannot have allowance issued by their operators.\n */\n function approve(address spender, uint256 value) public virtual override returns (bool) {\n address holder = _msgSender();\n _approve(holder, spender, value);\n return true;\n }\n\n /**\n * @dev See {IERC20-transferFrom}.\n *\n * Note that operator and allowance concepts are orthogonal: operators cannot\n * call `transferFrom` (unless they have allowance), and accounts with\n * allowance cannot call `operatorSend` (unless they are operators).\n *\n * Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events.\n */\n function transferFrom(\n address holder,\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n require(recipient != address(0), \"ERC777: transfer to the zero address\");\n require(holder != address(0), \"ERC777: transfer from the zero address\");\n\n address spender = _msgSender();\n\n _callTokensToSend(spender, holder, recipient, amount, \"\", \"\");\n\n _move(spender, holder, recipient, amount, \"\", \"\");\n\n uint256 currentAllowance = _allowances[holder][spender];\n require(currentAllowance >= amount, \"ERC777: transfer amount exceeds allowance\");\n _approve(holder, spender, currentAllowance - amount);\n\n _callTokensReceived(spender, holder, recipient, amount, \"\", \"\", false);\n\n return true;\n }\n\n /**\n * @dev Creates `amount` tokens and assigns them to `account`, increasing\n * the total supply.\n *\n * If a send hook is registered for `account`, the corresponding function\n * will be called with `operator`, `data` and `operatorData`.\n *\n * See {IERC777Sender} and {IERC777Recipient}.\n *\n * Emits {Minted} and {IERC20-Transfer} events.\n *\n * Requirements\n *\n * - `account` cannot be the zero address.\n * - if `account` is a contract, it must implement the {IERC777Recipient}\n * interface.\n */\n function _mint(\n address account,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n ) internal virtual {\n _mint(account, amount, userData, operatorData, true);\n }\n\n /**\n * @dev Creates `amount` tokens and assigns them to `account`, increasing\n * the total supply.\n *\n * If `requireReceptionAck` is set to true, and if a send hook is\n * registered for `account`, the corresponding function will be called with\n * `operator`, `data` and `operatorData`.\n *\n * See {IERC777Sender} and {IERC777Recipient}.\n *\n * Emits {Minted} and {IERC20-Transfer} events.\n *\n * Requirements\n *\n * - `account` cannot be the zero address.\n * - if `account` is a contract, it must implement the {IERC777Recipient}\n * interface.\n */\n function _mint(\n address account,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData,\n bool requireReceptionAck\n ) internal virtual {\n require(account != address(0), \"ERC777: mint to the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, address(0), account, amount);\n\n // Update state variables\n _totalSupply += amount;\n _balances[account] += amount;\n\n _callTokensReceived(operator, address(0), account, amount, userData, operatorData, requireReceptionAck);\n\n emit Minted(operator, account, amount, userData, operatorData);\n emit Transfer(address(0), account, amount);\n }\n\n /**\n * @dev Send tokens\n * @param from address token holder address\n * @param to address recipient address\n * @param amount uint256 amount of tokens to transfer\n * @param userData bytes extra information provided by the token holder (if any)\n * @param operatorData bytes extra information provided by the operator (if any)\n * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient\n */\n function _send(\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData,\n bool requireReceptionAck\n ) internal virtual {\n require(from != address(0), \"ERC777: send from the zero address\");\n require(to != address(0), \"ERC777: send to the zero address\");\n\n address operator = _msgSender();\n\n _callTokensToSend(operator, from, to, amount, userData, operatorData);\n\n _move(operator, from, to, amount, userData, operatorData);\n\n _callTokensReceived(operator, from, to, amount, userData, operatorData, requireReceptionAck);\n }\n\n /**\n * @dev Burn tokens\n * @param from address token holder address\n * @param amount uint256 amount of tokens to burn\n * @param data bytes extra information provided by the token holder\n * @param operatorData bytes extra information provided by the operator (if any)\n */\n function _burn(\n address from,\n uint256 amount,\n bytes memory data,\n bytes memory operatorData\n ) internal virtual {\n require(from != address(0), \"ERC777: burn from the zero address\");\n\n address operator = _msgSender();\n\n _callTokensToSend(operator, from, address(0), amount, data, operatorData);\n\n _beforeTokenTransfer(operator, from, address(0), amount);\n\n // Update state variables\n uint256 fromBalance = _balances[from];\n require(fromBalance >= amount, \"ERC777: burn amount exceeds balance\");\n unchecked {\n _balances[from] = fromBalance - amount;\n }\n _totalSupply -= amount;\n\n emit Burned(operator, from, amount, data, operatorData);\n emit Transfer(from, address(0), amount);\n }\n\n function _move(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n ) private {\n _beforeTokenTransfer(operator, from, to, amount);\n\n uint256 fromBalance = _balances[from];\n require(fromBalance >= amount, \"ERC777: transfer amount exceeds balance\");\n unchecked {\n _balances[from] = fromBalance - amount;\n }\n _balances[to] += amount;\n\n emit Sent(operator, from, to, amount, userData, operatorData);\n emit Transfer(from, to, amount);\n }\n\n /**\n * @dev See {ERC20-_approve}.\n *\n * Note that accounts cannot have allowance issued by their operators.\n */\n function _approve(\n address holder,\n address spender,\n uint256 value\n ) internal {\n require(holder != address(0), \"ERC777: approve from the zero address\");\n require(spender != address(0), \"ERC777: approve to the zero address\");\n\n _allowances[holder][spender] = value;\n emit Approval(holder, spender, value);\n }\n\n /**\n * @dev Call from.tokensToSend() if the interface is registered\n * @param operator address operator requesting the transfer\n * @param from address token holder address\n * @param to address recipient address\n * @param amount uint256 amount of tokens to transfer\n * @param userData bytes extra information provided by the token holder (if any)\n * @param operatorData bytes extra information provided by the operator (if any)\n */\n function _callTokensToSend(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n ) private {\n address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(from, _TOKENS_SENDER_INTERFACE_HASH);\n if (implementer != address(0)) {\n IERC777Sender(implementer).tokensToSend(operator, from, to, amount, userData, operatorData);\n }\n }\n\n /**\n * @dev Call to.tokensReceived() if the interface is registered. Reverts if the recipient is a contract but\n * tokensReceived() was not registered for the recipient\n * @param operator address operator requesting the transfer\n * @param from address token holder address\n * @param to address recipient address\n * @param amount uint256 amount of tokens to transfer\n * @param userData bytes extra information provided by the token holder (if any)\n * @param operatorData bytes extra information provided by the operator (if any)\n * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient\n */\n function _callTokensReceived(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData,\n bool requireReceptionAck\n ) private {\n address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(to, _TOKENS_RECIPIENT_INTERFACE_HASH);\n if (implementer != address(0)) {\n IERC777Recipient(implementer).tokensReceived(operator, from, to, amount, userData, operatorData);\n } else if (requireReceptionAck) {\n require(!to.isContract(), \"ERC777: token recipient contract has no implementer for ERC777TokensRecipient\");\n }\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes\n * calls to {send}, {transfer}, {operatorSend}, 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 to 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 operator,\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}\n"}, "utils/math/SignedSafeMath.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf7b3809e202b5547e9ddd97aaeb1d907"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/math/SignedSafeMath.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Wrappers over Solidity's arithmetic operations.\n *\n * NOTE: `SignedSafeMath` is no longer needed starting with Solidity 0.8. The compiler\n * now has built in overflow checking.\n */\nlibrary SignedSafeMath {\n /**\n * @dev Returns the multiplication of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `*` operator.\n *\n * Requirements:\n *\n * - Multiplication cannot overflow.\n */\n function mul(int256 a, int256 b) internal pure returns (int256) {\n return a * b;\n }\n\n /**\n * @dev Returns the integer division of two signed integers. Reverts on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator.\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(int256 a, int256 b) internal pure returns (int256) {\n return a / b;\n }\n\n /**\n * @dev Returns the subtraction of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(int256 a, int256 b) internal pure returns (int256) {\n return a - b;\n }\n\n /**\n * @dev Returns the addition of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `+` operator.\n *\n * Requirements:\n *\n * - Addition cannot overflow.\n */\n function add(int256 a, int256 b) internal pure returns (int256) {\n return a + b;\n }\n}\n"}, "interfaces/IERC1155.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf646f2b291e7c83dcc7f1c6c7d1ece30"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1155.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC1155/IERC1155.sol\";\n"}, "utils/math/SafeCast.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xcd91252bfcbee6eaba8f5144f504583c"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n *\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\n * all math on `uint256` and `int256` and then downcasting.\n */\nlibrary SafeCast {\n /**\n * @dev Returns the downcasted uint224 from uint256, reverting on\n * overflow (when the input is greater than largest uint224).\n *\n * Counterpart to Solidity's `uint224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toUint224(uint256 value) internal pure returns (uint224) {\n require(value <= type(uint224).max, \"SafeCast: value doesn't fit in 224 bits\");\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint128 from uint256, reverting on\n * overflow (when the input is greater than largest uint128).\n *\n * Counterpart to Solidity's `uint128` operator.\n *\n * Requirements:\n *\n * - input must fit into 128 bits\n */\n function toUint128(uint256 value) internal pure returns (uint128) {\n require(value <= type(uint128).max, \"SafeCast: value doesn't fit in 128 bits\");\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint96 from uint256, reverting on\n * overflow (when the input is greater than largest uint96).\n *\n * Counterpart to Solidity's `uint96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toUint96(uint256 value) internal pure returns (uint96) {\n require(value <= type(uint96).max, \"SafeCast: value doesn't fit in 96 bits\");\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint64 from uint256, reverting on\n * overflow (when the input is greater than largest uint64).\n *\n * Counterpart to Solidity's `uint64` operator.\n *\n * Requirements:\n *\n * - input must fit into 64 bits\n */\n function toUint64(uint256 value) internal pure returns (uint64) {\n require(value <= type(uint64).max, \"SafeCast: value doesn't fit in 64 bits\");\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint32 from uint256, reverting on\n * overflow (when the input is greater than largest uint32).\n *\n * Counterpart to Solidity's `uint32` operator.\n *\n * Requirements:\n *\n * - input must fit into 32 bits\n */\n function toUint32(uint256 value) internal pure returns (uint32) {\n require(value <= type(uint32).max, \"SafeCast: value doesn't fit in 32 bits\");\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint16 from uint256, reverting on\n * overflow (when the input is greater than largest uint16).\n *\n * Counterpart to Solidity's `uint16` operator.\n *\n * Requirements:\n *\n * - input must fit into 16 bits\n */\n function toUint16(uint256 value) internal pure returns (uint16) {\n require(value <= type(uint16).max, \"SafeCast: value doesn't fit in 16 bits\");\n return uint16(value);\n }\n\n /**\n * @dev Returns the downcasted uint8 from uint256, reverting on\n * overflow (when the input is greater than largest uint8).\n *\n * Counterpart to Solidity's `uint8` operator.\n *\n * Requirements:\n *\n * - input must fit into 8 bits.\n */\n function toUint8(uint256 value) internal pure returns (uint8) {\n require(value <= type(uint8).max, \"SafeCast: value doesn't fit in 8 bits\");\n return uint8(value);\n }\n\n /**\n * @dev Converts a signed int256 into an unsigned uint256.\n *\n * Requirements:\n *\n * - input must be greater than or equal to 0.\n */\n function toUint256(int256 value) internal pure returns (uint256) {\n require(value >= 0, \"SafeCast: value must be positive\");\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int128 from int256, reverting on\n * overflow (when the input is less than smallest int128 or\n * greater than largest int128).\n *\n * Counterpart to Solidity's `int128` operator.\n *\n * Requirements:\n *\n * - input must fit into 128 bits\n *\n * _Available since v3.1._\n */\n function toInt128(int256 value) internal pure returns (int128) {\n require(value >= type(int128).min && value <= type(int128).max, \"SafeCast: value doesn't fit in 128 bits\");\n return int128(value);\n }\n\n /**\n * @dev Returns the downcasted int64 from int256, reverting on\n * overflow (when the input is less than smallest int64 or\n * greater than largest int64).\n *\n * Counterpart to Solidity's `int64` operator.\n *\n * Requirements:\n *\n * - input must fit into 64 bits\n *\n * _Available since v3.1._\n */\n function toInt64(int256 value) internal pure returns (int64) {\n require(value >= type(int64).min && value <= type(int64).max, \"SafeCast: value doesn't fit in 64 bits\");\n return int64(value);\n }\n\n /**\n * @dev Returns the downcasted int32 from int256, reverting on\n * overflow (when the input is less than smallest int32 or\n * greater than largest int32).\n *\n * Counterpart to Solidity's `int32` operator.\n *\n * Requirements:\n *\n * - input must fit into 32 bits\n *\n * _Available since v3.1._\n */\n function toInt32(int256 value) internal pure returns (int32) {\n require(value >= type(int32).min && value <= type(int32).max, \"SafeCast: value doesn't fit in 32 bits\");\n return int32(value);\n }\n\n /**\n * @dev Returns the downcasted int16 from int256, reverting on\n * overflow (when the input is less than smallest int16 or\n * greater than largest int16).\n *\n * Counterpart to Solidity's `int16` operator.\n *\n * Requirements:\n *\n * - input must fit into 16 bits\n *\n * _Available since v3.1._\n */\n function toInt16(int256 value) internal pure returns (int16) {\n require(value >= type(int16).min && value <= type(int16).max, \"SafeCast: value doesn't fit in 16 bits\");\n return int16(value);\n }\n\n /**\n * @dev Returns the downcasted int8 from int256, reverting on\n * overflow (when the input is less than smallest int8 or\n * greater than largest int8).\n *\n * Counterpart to Solidity's `int8` operator.\n *\n * Requirements:\n *\n * - input must fit into 8 bits.\n *\n * _Available since v3.1._\n */\n function toInt8(int256 value) internal pure returns (int8) {\n require(value >= type(int8).min && value <= type(int8).max, \"SafeCast: value doesn't fit in 8 bits\");\n return int8(value);\n }\n\n /**\n * @dev Converts an unsigned uint256 into a signed int256.\n *\n * Requirements:\n *\n * - input must be less than or equal to maxInt256.\n */\n function toInt256(uint256 value) internal pure returns (int256) {\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\n require(value <= uint256(type(int256).max), \"SafeCast: value doesn't fit in an int256\");\n return int256(value);\n }\n}\n"}, "mocks/ERC20VotesCompMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd5feb91e29eb503d3401af62d360be04"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/extensions/ERC20VotesComp.sol\";\n\ncontract ERC20VotesCompMock is ERC20VotesComp {\n constructor(string memory name, string memory symbol) ERC20(name, symbol) ERC20Permit(name) {}\n\n function mint(address account, uint256 amount) public {\n _mint(account, amount);\n }\n\n function burn(address account, uint256 amount) public {\n _burn(account, amount);\n }\n\n function getChainId() external view returns (uint256) {\n return block.chainid;\n }\n}\n"}, "interfaces/draft-IERC2612.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xad2177bf228c4a10bd94423ed7b1c67a"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/draft-IERC2612.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/extensions/draft-IERC20Permit.sol\";\n\ninterface IERC2612 is IERC20Permit {}\n"}, "mocks/ClashingImplementation.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x40774f559f6efe4bb93058b32e680c02"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Implementation contract with an admin() function made to clash with\n * @dev TransparentUpgradeableProxy's to test correct functioning of the\n * @dev Transparent Proxy feature.\n */\ncontract ClashingImplementation {\n function admin() external pure returns (address) {\n return 0x0000000000000000000000000000000011111142;\n }\n\n function delegatedFunction() external pure returns (bool) {\n return true;\n }\n}\n"}, "interfaces/IERC1155MetadataURI.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xbc1c98271c8b14d98b8caf09250dd039"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1155MetadataURI.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC1155/extensions/IERC1155MetadataURI.sol\";\n"}, "token/ERC20/presets/ERC20PresetFixedSupply.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x57f5e8500194cb5f405fb1bdff06dff6"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/presets/ERC20PresetFixedSupply.sol)\npragma solidity ^0.8.0;\n\nimport \"../extensions/ERC20Burnable.sol\";\n\n/**\n * @dev {ERC20} token, including:\n *\n * - Preminted initial supply\n * - Ability for holders to burn (destroy) their tokens\n * - No access control mechanism (for minting/pausing) and hence no governance\n *\n * This contract uses {ERC20Burnable} to include burn capabilities - head to\n * its documentation for details.\n *\n * _Available since v3.4._\n */\ncontract ERC20PresetFixedSupply is ERC20Burnable {\n /**\n * @dev Mints `initialSupply` amount of token and transfers them to `owner`.\n *\n * See {ERC20-constructor}.\n */\n constructor(\n string memory name,\n string memory symbol,\n uint256 initialSupply,\n address owner\n ) ERC20(name, symbol) {\n _mint(owner, initialSupply);\n }\n}\n"}, "token/ERC721/extensions/ERC721URIStorage.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x580a443491d9d70eb064b0130fc3cd01"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC721.sol\";\n\n/**\n * @dev ERC721 token with storage based token URI management.\n */\nabstract contract ERC721URIStorage is ERC721 {\n using Strings for uint256;\n\n // Optional mapping for token URIs\n mapping(uint256 => string) private _tokenURIs;\n\n /**\n * @dev See {IERC721Metadata-tokenURI}.\n */\n function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {\n require(_exists(tokenId), \"ERC721URIStorage: URI query for nonexistent token\");\n\n string memory _tokenURI = _tokenURIs[tokenId];\n string memory base = _baseURI();\n\n // If there is no base URI, return the token URI.\n if (bytes(base).length == 0) {\n return _tokenURI;\n }\n // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).\n if (bytes(_tokenURI).length > 0) {\n return string(abi.encodePacked(base, _tokenURI));\n }\n\n return super.tokenURI(tokenId);\n }\n\n /**\n * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {\n require(_exists(tokenId), \"ERC721URIStorage: URI set of nonexistent token\");\n _tokenURIs[tokenId] = _tokenURI;\n }\n\n /**\n * @dev Destroys `tokenId`.\n * The approval is cleared when the token is burned.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n *\n * Emits a {Transfer} event.\n */\n function _burn(uint256 tokenId) internal virtual override {\n super._burn(tokenId);\n\n if (bytes(_tokenURIs[tokenId]).length != 0) {\n delete _tokenURIs[tokenId];\n }\n }\n}\n"}, "utils/Counters.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x74654e3ae5d7f39555055dfe244dab7a"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @title Counters\n * @author Matt Condon (@shrugs)\n * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number\n * of elements in a mapping, issuing ERC721 ids, or counting request ids.\n *\n * Include with `using Counters for Counters.Counter;`\n */\nlibrary Counters {\n struct Counter {\n // This variable should never be directly accessed by users of the library: interactions must be restricted to\n // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add\n // this feature: see https://github.com/ethereum/solidity/issues/4637\n uint256 _value; // default: 0\n }\n\n function current(Counter storage counter) internal view returns (uint256) {\n return counter._value;\n }\n\n function increment(Counter storage counter) internal {\n unchecked {\n counter._value += 1;\n }\n }\n\n function decrement(Counter storage counter) internal {\n uint256 value = counter._value;\n require(value > 0, \"Counter: decrement overflow\");\n unchecked {\n counter._value = value - 1;\n }\n }\n\n function reset(Counter storage counter) internal {\n counter._value = 0;\n }\n}\n"}, "mocks/ERC1271WalletMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd541075f1b02dd2fec14bba2ae153f90"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../access/Ownable.sol\";\nimport \"../interfaces/IERC1271.sol\";\nimport \"../utils/cryptography/ECDSA.sol\";\n\ncontract ERC1271WalletMock is Ownable, IERC1271 {\n constructor(address originalOwner) {\n transferOwnership(originalOwner);\n }\n\n function isValidSignature(bytes32 hash, bytes memory signature) public view override returns (bytes4 magicValue) {\n return ECDSA.recover(hash, signature) == owner() ? this.isValidSignature.selector : bytes4(0);\n }\n}\n"}, "mocks/ERC20WrapperMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xe2d41de561bf9c27cc7c68f5fbbf9fa9"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/extensions/ERC20Wrapper.sol\";\n\ncontract ERC20WrapperMock is ERC20Wrapper {\n constructor(\n IERC20 _underlyingToken,\n string memory name,\n string memory symbol\n ) ERC20(name, symbol) ERC20Wrapper(_underlyingToken) {}\n\n function recover(address account) public returns (uint256) {\n return _recover(account);\n }\n}\n"}, "governance/compatibility/GovernorCompatibilityBravo.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xfa2014e0f3e9a657e9f1495997397bc3"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.4.2) (governance/compatibility/GovernorCompatibilityBravo.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/Counters.sol\";\nimport \"../../utils/math/SafeCast.sol\";\nimport \"../extensions/IGovernorTimelock.sol\";\nimport \"../Governor.sol\";\nimport \"./IGovernorCompatibilityBravo.sol\";\n\n/**\n * @dev Compatibility layer that implements GovernorBravo compatibility on to of {Governor}.\n *\n * This compatibility layer includes a voting system and requires a {IGovernorTimelock} compatible module to be added\n * through inheritance. It does not include token bindings, not does it include any variable upgrade patterns.\n *\n * NOTE: When using this module, you may need to enable the Solidity optimizer to avoid hitting the contract size limit.\n *\n * _Available since v4.3._\n */\nabstract contract GovernorCompatibilityBravo is IGovernorTimelock, IGovernorCompatibilityBravo, Governor {\n using Counters for Counters.Counter;\n using Timers for Timers.BlockNumber;\n\n enum VoteType {\n Against,\n For,\n Abstain\n }\n\n struct ProposalDetails {\n address proposer;\n address[] targets;\n uint256[] values;\n string[] signatures;\n bytes[] calldatas;\n uint256 forVotes;\n uint256 againstVotes;\n uint256 abstainVotes;\n mapping(address => Receipt) receipts;\n bytes32 descriptionHash;\n }\n\n mapping(uint256 => ProposalDetails) private _proposalDetails;\n\n // solhint-disable-next-line func-name-mixedcase\n function COUNTING_MODE() public pure virtual override returns (string memory) {\n return \"support=bravo&quorum=bravo\";\n }\n\n // ============================================== Proposal lifecycle ==============================================\n /**\n * @dev See {IGovernor-propose}.\n */\n function propose(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n string memory description\n ) public virtual override(IGovernor, Governor) returns (uint256) {\n _storeProposal(_msgSender(), targets, values, new string[](calldatas.length), calldatas, description);\n return super.propose(targets, values, calldatas, description);\n }\n\n /**\n * @dev See {IGovernorCompatibilityBravo-propose}.\n */\n function propose(\n address[] memory targets,\n uint256[] memory values,\n string[] memory signatures,\n bytes[] memory calldatas,\n string memory description\n ) public virtual override returns (uint256) {\n _storeProposal(_msgSender(), targets, values, signatures, calldatas, description);\n return propose(targets, values, _encodeCalldata(signatures, calldatas), description);\n }\n\n /**\n * @dev See {IGovernorCompatibilityBravo-queue}.\n */\n function queue(uint256 proposalId) public virtual override {\n ProposalDetails storage details = _proposalDetails[proposalId];\n queue(\n details.targets,\n details.values,\n _encodeCalldata(details.signatures, details.calldatas),\n details.descriptionHash\n );\n }\n\n /**\n * @dev See {IGovernorCompatibilityBravo-execute}.\n */\n function execute(uint256 proposalId) public payable virtual override {\n ProposalDetails storage details = _proposalDetails[proposalId];\n execute(\n details.targets,\n details.values,\n _encodeCalldata(details.signatures, details.calldatas),\n details.descriptionHash\n );\n }\n\n function cancel(uint256 proposalId) public virtual override {\n ProposalDetails storage details = _proposalDetails[proposalId];\n\n require(\n _msgSender() == details.proposer || getVotes(details.proposer, block.number - 1) < proposalThreshold(),\n \"GovernorBravo: proposer above threshold\"\n );\n\n _cancel(\n details.targets,\n details.values,\n _encodeCalldata(details.signatures, details.calldatas),\n details.descriptionHash\n );\n }\n\n /**\n * @dev Encodes calldatas with optional function signature.\n */\n function _encodeCalldata(string[] memory signatures, bytes[] memory calldatas)\n private\n pure\n returns (bytes[] memory)\n {\n bytes[] memory fullcalldatas = new bytes[](calldatas.length);\n\n for (uint256 i = 0; i < signatures.length; ++i) {\n fullcalldatas[i] = bytes(signatures[i]).length == 0\n ? calldatas[i]\n : abi.encodePacked(bytes4(keccak256(bytes(signatures[i]))), calldatas[i]);\n }\n\n return fullcalldatas;\n }\n\n /**\n * @dev Store proposal metadata for later lookup\n */\n function _storeProposal(\n address proposer,\n address[] memory targets,\n uint256[] memory values,\n string[] memory signatures,\n bytes[] memory calldatas,\n string memory description\n ) private {\n bytes32 descriptionHash = keccak256(bytes(description));\n uint256 proposalId = hashProposal(targets, values, _encodeCalldata(signatures, calldatas), descriptionHash);\n\n ProposalDetails storage details = _proposalDetails[proposalId];\n if (details.descriptionHash == bytes32(0)) {\n details.proposer = proposer;\n details.targets = targets;\n details.values = values;\n details.signatures = signatures;\n details.calldatas = calldatas;\n details.descriptionHash = descriptionHash;\n }\n }\n\n // ==================================================== Views =====================================================\n /**\n * @dev See {IGovernorCompatibilityBravo-proposals}.\n */\n function proposals(uint256 proposalId)\n public\n view\n virtual\n override\n returns (\n uint256 id,\n address proposer,\n uint256 eta,\n uint256 startBlock,\n uint256 endBlock,\n uint256 forVotes,\n uint256 againstVotes,\n uint256 abstainVotes,\n bool canceled,\n bool executed\n )\n {\n id = proposalId;\n eta = proposalEta(proposalId);\n startBlock = proposalSnapshot(proposalId);\n endBlock = proposalDeadline(proposalId);\n\n ProposalDetails storage details = _proposalDetails[proposalId];\n proposer = details.proposer;\n forVotes = details.forVotes;\n againstVotes = details.againstVotes;\n abstainVotes = details.abstainVotes;\n\n ProposalState status = state(proposalId);\n canceled = status == ProposalState.Canceled;\n executed = status == ProposalState.Executed;\n }\n\n /**\n * @dev See {IGovernorCompatibilityBravo-getActions}.\n */\n function getActions(uint256 proposalId)\n public\n view\n virtual\n override\n returns (\n address[] memory targets,\n uint256[] memory values,\n string[] memory signatures,\n bytes[] memory calldatas\n )\n {\n ProposalDetails storage details = _proposalDetails[proposalId];\n return (details.targets, details.values, details.signatures, details.calldatas);\n }\n\n /**\n * @dev See {IGovernorCompatibilityBravo-getReceipt}.\n */\n function getReceipt(uint256 proposalId, address voter) public view virtual override returns (Receipt memory) {\n return _proposalDetails[proposalId].receipts[voter];\n }\n\n /**\n * @dev See {IGovernorCompatibilityBravo-quorumVotes}.\n */\n function quorumVotes() public view virtual override returns (uint256) {\n return quorum(block.number - 1);\n }\n\n // ==================================================== Voting ====================================================\n /**\n * @dev See {IGovernor-hasVoted}.\n */\n function hasVoted(uint256 proposalId, address account) public view virtual override returns (bool) {\n return _proposalDetails[proposalId].receipts[account].hasVoted;\n }\n\n /**\n * @dev See {Governor-_quorumReached}. In this module, only forVotes count toward the quorum.\n */\n function _quorumReached(uint256 proposalId) internal view virtual override returns (bool) {\n ProposalDetails storage details = _proposalDetails[proposalId];\n return quorum(proposalSnapshot(proposalId)) <= details.forVotes;\n }\n\n /**\n * @dev See {Governor-_voteSucceeded}. In this module, the forVotes must be scritly over the againstVotes.\n */\n function _voteSucceeded(uint256 proposalId) internal view virtual override returns (bool) {\n ProposalDetails storage details = _proposalDetails[proposalId];\n return details.forVotes > details.againstVotes;\n }\n\n /**\n * @dev See {Governor-_countVote}. In this module, the support follows Governor Bravo.\n */\n function _countVote(\n uint256 proposalId,\n address account,\n uint8 support,\n uint256 weight\n ) internal virtual override {\n ProposalDetails storage details = _proposalDetails[proposalId];\n Receipt storage receipt = details.receipts[account];\n\n require(!receipt.hasVoted, \"GovernorCompatibilityBravo: vote already cast\");\n receipt.hasVoted = true;\n receipt.support = support;\n receipt.votes = SafeCast.toUint96(weight);\n\n if (support == uint8(VoteType.Against)) {\n details.againstVotes += weight;\n } else if (support == uint8(VoteType.For)) {\n details.forVotes += weight;\n } else if (support == uint8(VoteType.Abstain)) {\n details.abstainVotes += weight;\n } else {\n revert(\"GovernorCompatibilityBravo: invalid vote type\");\n }\n }\n}\n"}, "governance/extensions/GovernorCountingSimple.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xea8f93bb65eeed458767a28c233ed3ac"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (governance/extensions/GovernorCountingSimple.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../Governor.sol\";\n\n/**\n * @dev Extension of {Governor} for simple, 3 options, vote counting.\n *\n * _Available since v4.3._\n */\nabstract contract GovernorCountingSimple is Governor {\n /**\n * @dev Supported vote types. Matches Governor Bravo ordering.\n */\n enum VoteType {\n Against,\n For,\n Abstain\n }\n\n struct ProposalVote {\n uint256 againstVotes;\n uint256 forVotes;\n uint256 abstainVotes;\n mapping(address => bool) hasVoted;\n }\n\n mapping(uint256 => ProposalVote) private _proposalVotes;\n\n /**\n * @dev See {IGovernor-COUNTING_MODE}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function COUNTING_MODE() public pure virtual override returns (string memory) {\n return \"support=bravo&quorum=for,abstain\";\n }\n\n /**\n * @dev See {IGovernor-hasVoted}.\n */\n function hasVoted(uint256 proposalId, address account) public view virtual override returns (bool) {\n return _proposalVotes[proposalId].hasVoted[account];\n }\n\n /**\n * @dev Accessor to the internal vote counts.\n */\n function proposalVotes(uint256 proposalId)\n public\n view\n virtual\n returns (\n uint256 againstVotes,\n uint256 forVotes,\n uint256 abstainVotes\n )\n {\n ProposalVote storage proposalvote = _proposalVotes[proposalId];\n return (proposalvote.againstVotes, proposalvote.forVotes, proposalvote.abstainVotes);\n }\n\n /**\n * @dev See {Governor-_quorumReached}.\n */\n function _quorumReached(uint256 proposalId) internal view virtual override returns (bool) {\n ProposalVote storage proposalvote = _proposalVotes[proposalId];\n\n return quorum(proposalSnapshot(proposalId)) <= proposalvote.forVotes + proposalvote.abstainVotes;\n }\n\n /**\n * @dev See {Governor-_voteSucceeded}. In this module, the forVotes must be strictly over the againstVotes.\n */\n function _voteSucceeded(uint256 proposalId) internal view virtual override returns (bool) {\n ProposalVote storage proposalvote = _proposalVotes[proposalId];\n\n return proposalvote.forVotes > proposalvote.againstVotes;\n }\n\n /**\n * @dev See {Governor-_countVote}. In this module, the support follows the `VoteType` enum (from Governor Bravo).\n */\n function _countVote(\n uint256 proposalId,\n address account,\n uint8 support,\n uint256 weight\n ) internal virtual override {\n ProposalVote storage proposalvote = _proposalVotes[proposalId];\n\n require(!proposalvote.hasVoted[account], \"GovernorVotingSimple: vote already cast\");\n proposalvote.hasVoted[account] = true;\n\n if (support == uint8(VoteType.Against)) {\n proposalvote.againstVotes += weight;\n } else if (support == uint8(VoteType.For)) {\n proposalvote.forVotes += weight;\n } else if (support == uint8(VoteType.Abstain)) {\n proposalvote.abstainVotes += weight;\n } else {\n revert(\"GovernorVotingSimple: invalid value for enum VoteType\");\n }\n }\n}\n"}, "mocks/GovernorTimelockCompoundMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x29a0a8a94ae1272929bd977988b34f21"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../governance/extensions/GovernorTimelockCompound.sol\";\nimport \"../governance/extensions/GovernorSettings.sol\";\nimport \"../governance/extensions/GovernorCountingSimple.sol\";\nimport \"../governance/extensions/GovernorVotesQuorumFraction.sol\";\n\ncontract GovernorTimelockCompoundMock is\n GovernorSettings,\n GovernorTimelockCompound,\n GovernorVotesQuorumFraction,\n GovernorCountingSimple\n{\n constructor(\n string memory name_,\n ERC20Votes token_,\n uint256 votingDelay_,\n uint256 votingPeriod_,\n ICompoundTimelock timelock_,\n uint256 quorumNumerator_\n )\n Governor(name_)\n GovernorTimelockCompound(timelock_)\n GovernorSettings(votingDelay_, votingPeriod_, 0)\n GovernorVotes(token_)\n GovernorVotesQuorumFraction(quorumNumerator_)\n {}\n\n function supportsInterface(bytes4 interfaceId)\n public\n view\n virtual\n override(Governor, GovernorTimelockCompound)\n returns (bool)\n {\n return super.supportsInterface(interfaceId);\n }\n\n function quorum(uint256 blockNumber)\n public\n view\n override(IGovernor, GovernorVotesQuorumFraction)\n returns (uint256)\n {\n return super.quorum(blockNumber);\n }\n\n function cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 salt\n ) public returns (uint256 proposalId) {\n return _cancel(targets, values, calldatas, salt);\n }\n\n /**\n * Overriding nightmare\n */\n function state(uint256 proposalId)\n public\n view\n virtual\n override(Governor, GovernorTimelockCompound)\n returns (ProposalState)\n {\n return super.state(proposalId);\n }\n\n function proposalThreshold() public view override(Governor, GovernorSettings) returns (uint256) {\n return super.proposalThreshold();\n }\n\n function _execute(\n uint256 proposalId,\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal virtual override(Governor, GovernorTimelockCompound) {\n super._execute(proposalId, targets, values, calldatas, descriptionHash);\n }\n\n function _cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 salt\n ) internal virtual override(Governor, GovernorTimelockCompound) returns (uint256 proposalId) {\n return super._cancel(targets, values, calldatas, salt);\n }\n\n function getVotes(address account, uint256 blockNumber)\n public\n view\n virtual\n override(IGovernor, GovernorVotes)\n returns (uint256)\n {\n return super.getVotes(account, blockNumber);\n }\n\n function _executor() internal view virtual override(Governor, GovernorTimelockCompound) returns (address) {\n return super._executor();\n }\n}\n"}, "utils/structs/EnumerableSet.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xb8070bbbb327a49a4d37f5c590b38238"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Library for managing\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\n * types.\n *\n * Sets have the following properties:\n *\n * - Elements are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\n *\n * ```\n * contract Example {\n * // Add the library methods\n * using EnumerableSet for EnumerableSet.AddressSet;\n *\n * // Declare a set state variable\n * EnumerableSet.AddressSet private mySet;\n * }\n * ```\n *\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\n * and `uint256` (`UintSet`) are supported.\n */\nlibrary EnumerableSet {\n // To implement this library for multiple types with as little code\n // repetition as possible, we write it in terms of a generic Set type with\n // bytes32 values.\n // The Set implementation uses private functions, and user-facing\n // implementations (such as AddressSet) are just wrappers around the\n // underlying Set.\n // This means that we can only create new EnumerableSets for types that fit\n // in bytes32.\n\n struct Set {\n // Storage of set values\n bytes32[] _values;\n // Position of the value in the `values` array, plus 1 because index 0\n // means a value is not in the set.\n mapping(bytes32 => uint256) _indexes;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function _add(Set storage set, bytes32 value) private returns (bool) {\n if (!_contains(set, value)) {\n set._values.push(value);\n // The value is stored at length-1, but we add 1 to all indexes\n // and use 0 as a sentinel value\n set._indexes[value] = set._values.length;\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function _remove(Set storage set, bytes32 value) private returns (bool) {\n // We read and store the value's index to prevent multiple reads from the same storage slot\n uint256 valueIndex = set._indexes[value];\n\n if (valueIndex != 0) {\n // Equivalent to contains(set, value)\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n // the array, and then remove the last element (sometimes called as 'swap and pop').\n // This modifies the order of the array, as noted in {at}.\n\n uint256 toDeleteIndex = valueIndex - 1;\n uint256 lastIndex = set._values.length - 1;\n\n if (lastIndex != toDeleteIndex) {\n bytes32 lastvalue = set._values[lastIndex];\n\n // Move the last value to the index where the value to delete is\n set._values[toDeleteIndex] = lastvalue;\n // Update the index for the moved value\n set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex\n }\n\n // Delete the slot where the moved value was stored\n set._values.pop();\n\n // Delete the index for the deleted slot\n delete set._indexes[value];\n\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\n return set._indexes[value] != 0;\n }\n\n /**\n * @dev Returns the number of values on the set. O(1).\n */\n function _length(Set storage set) private view returns (uint256) {\n return set._values.length;\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\n return set._values[index];\n }\n\n /**\n * @dev Return the entire set in an array\n *\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n */\n function _values(Set storage set) private view returns (bytes32[] memory) {\n return set._values;\n }\n\n // Bytes32Set\n\n struct Bytes32Set {\n Set _inner;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\n return _add(set._inner, value);\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\n return _remove(set._inner, value);\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\n return _contains(set._inner, value);\n }\n\n /**\n * @dev Returns the number of values in the set. O(1).\n */\n function length(Bytes32Set storage set) internal view returns (uint256) {\n return _length(set._inner);\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\n return _at(set._inner, index);\n }\n\n /**\n * @dev Return the entire set in an array\n *\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n */\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\n return _values(set._inner);\n }\n\n // AddressSet\n\n struct AddressSet {\n Set _inner;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function add(AddressSet storage set, address value) internal returns (bool) {\n return _add(set._inner, bytes32(uint256(uint160(value))));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function remove(AddressSet storage set, address value) internal returns (bool) {\n return _remove(set._inner, bytes32(uint256(uint160(value))));\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function contains(AddressSet storage set, address value) internal view returns (bool) {\n return _contains(set._inner, bytes32(uint256(uint160(value))));\n }\n\n /**\n * @dev Returns the number of values in the set. O(1).\n */\n function length(AddressSet storage set) internal view returns (uint256) {\n return _length(set._inner);\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\n return address(uint160(uint256(_at(set._inner, index))));\n }\n\n /**\n * @dev Return the entire set in an array\n *\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n */\n function values(AddressSet storage set) internal view returns (address[] memory) {\n bytes32[] memory store = _values(set._inner);\n address[] memory result;\n\n assembly {\n result := store\n }\n\n return result;\n }\n\n // UintSet\n\n struct UintSet {\n Set _inner;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function add(UintSet storage set, uint256 value) internal returns (bool) {\n return _add(set._inner, bytes32(value));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\n return _remove(set._inner, bytes32(value));\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\n return _contains(set._inner, bytes32(value));\n }\n\n /**\n * @dev Returns the number of values on the set. O(1).\n */\n function length(UintSet storage set) internal view returns (uint256) {\n return _length(set._inner);\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\n return uint256(_at(set._inner, index));\n }\n\n /**\n * @dev Return the entire set in an array\n *\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n */\n function values(UintSet storage set) internal view returns (uint256[] memory) {\n bytes32[] memory store = _values(set._inner);\n uint256[] memory result;\n\n assembly {\n result := store\n }\n\n return result;\n }\n}\n"}, "mocks/CountersImpl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x2446dbf347ba8cbdaedbde8892514a0a"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Counters.sol\";\n\ncontract CountersImpl {\n using Counters for Counters.Counter;\n\n Counters.Counter private _counter;\n\n function current() public view returns (uint256) {\n return _counter.current();\n }\n\n function increment() public {\n _counter.increment();\n }\n\n function decrement() public {\n _counter.decrement();\n }\n\n function reset() public {\n _counter.reset();\n }\n}\n"}, "mocks/BadBeacon.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd821204fbf5f1e3f73a880bc121d3d5a"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract BadBeaconNoImpl {}\n\ncontract BadBeaconNotContract {\n function implementation() external pure returns (address) {\n return address(0x1);\n }\n}\n"}, "utils/structs/BitMaps.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xa4862458388199138bffd4fa18f6c8ba"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/structs/BitMaps.sol)\npragma solidity ^0.8.0;\n\n/**\n * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.\n * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].\n */\nlibrary BitMaps {\n struct BitMap {\n mapping(uint256 => uint256) _data;\n }\n\n /**\n * @dev Returns whether the bit at `index` is set.\n */\n function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {\n uint256 bucket = index >> 8;\n uint256 mask = 1 << (index & 0xff);\n return bitmap._data[bucket] & mask != 0;\n }\n\n /**\n * @dev Sets the bit at `index` to the boolean `value`.\n */\n function setTo(\n BitMap storage bitmap,\n uint256 index,\n bool value\n ) internal {\n if (value) {\n set(bitmap, index);\n } else {\n unset(bitmap, index);\n }\n }\n\n /**\n * @dev Sets the bit at `index`.\n */\n function set(BitMap storage bitmap, uint256 index) internal {\n uint256 bucket = index >> 8;\n uint256 mask = 1 << (index & 0xff);\n bitmap._data[bucket] |= mask;\n }\n\n /**\n * @dev Unsets the bit at `index`.\n */\n function unset(BitMap storage bitmap, uint256 index) internal {\n uint256 bucket = index >> 8;\n uint256 mask = 1 << (index & 0xff);\n bitmap._data[bucket] &= ~mask;\n }\n}\n"}, "token/ERC20/extensions/ERC20Votes.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xc2f5ca679a09df6b115689e494053884"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Votes.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./draft-ERC20Permit.sol\";\nimport \"../../../utils/math/Math.sol\";\nimport \"../../../utils/math/SafeCast.sol\";\nimport \"../../../utils/cryptography/ECDSA.sol\";\n\n/**\n * @dev Extension of ERC20 to support Compound-like voting and delegation. This version is more generic than Compound's,\n * and supports token supply up to 2^224^ - 1, while COMP is limited to 2^96^ - 1.\n *\n * NOTE: If exact COMP compatibility is required, use the {ERC20VotesComp} variant of this module.\n *\n * This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either\n * by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting\n * power can be queried through the public accessors {getVotes} and {getPastVotes}.\n *\n * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it\n * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked.\n * Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this\n * will significantly increase the base gas cost of transfers.\n *\n * _Available since v4.2._\n */\nabstract contract ERC20Votes is ERC20Permit {\n struct Checkpoint {\n uint32 fromBlock;\n uint224 votes;\n }\n\n bytes32 private constant _DELEGATION_TYPEHASH =\n keccak256(\"Delegation(address delegatee,uint256 nonce,uint256 expiry)\");\n\n mapping(address => address) private _delegates;\n mapping(address => Checkpoint[]) private _checkpoints;\n Checkpoint[] private _totalSupplyCheckpoints;\n\n /**\n * @dev Emitted when an account changes their delegate.\n */\n event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);\n\n /**\n * @dev Emitted when a token transfer or delegate change results in changes to an account's voting power.\n */\n event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);\n\n /**\n * @dev Get the `pos`-th checkpoint for `account`.\n */\n function checkpoints(address account, uint32 pos) public view virtual returns (Checkpoint memory) {\n return _checkpoints[account][pos];\n }\n\n /**\n * @dev Get number of checkpoints for `account`.\n */\n function numCheckpoints(address account) public view virtual returns (uint32) {\n return SafeCast.toUint32(_checkpoints[account].length);\n }\n\n /**\n * @dev Get the address `account` is currently delegating to.\n */\n function delegates(address account) public view virtual returns (address) {\n return _delegates[account];\n }\n\n /**\n * @dev Gets the current votes balance for `account`\n */\n function getVotes(address account) public view returns (uint256) {\n uint256 pos = _checkpoints[account].length;\n return pos == 0 ? 0 : _checkpoints[account][pos - 1].votes;\n }\n\n /**\n * @dev Retrieve the number of votes for `account` at the end of `blockNumber`.\n *\n * Requirements:\n *\n * - `blockNumber` must have been already mined\n */\n function getPastVotes(address account, uint256 blockNumber) public view returns (uint256) {\n require(blockNumber < block.number, \"ERC20Votes: block not yet mined\");\n return _checkpointsLookup(_checkpoints[account], blockNumber);\n }\n\n /**\n * @dev Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances.\n * It is but NOT the sum of all the delegated votes!\n *\n * Requirements:\n *\n * - `blockNumber` must have been already mined\n */\n function getPastTotalSupply(uint256 blockNumber) public view returns (uint256) {\n require(blockNumber < block.number, \"ERC20Votes: block not yet mined\");\n return _checkpointsLookup(_totalSupplyCheckpoints, blockNumber);\n }\n\n /**\n * @dev Lookup a value in a list of (sorted) checkpoints.\n */\n function _checkpointsLookup(Checkpoint[] storage ckpts, uint256 blockNumber) private view returns (uint256) {\n // We run a binary search to look for the earliest checkpoint taken after `blockNumber`.\n //\n // During the loop, the index of the wanted checkpoint remains in the range [low-1, high).\n // With each iteration, either `low` or `high` is moved towards the middle of the range to maintain the invariant.\n // - If the middle checkpoint is after `blockNumber`, we look in [low, mid)\n // - If the middle checkpoint is before or equal to `blockNumber`, we look in [mid+1, high)\n // Once we reach a single value (when low == high), we've found the right checkpoint at the index high-1, if not\n // out of bounds (in which case we're looking too far in the past and the result is 0).\n // Note that if the latest checkpoint available is exactly for `blockNumber`, we end up with an index that is\n // past the end of the array, so we technically don't find a checkpoint after `blockNumber`, but it works out\n // the same.\n uint256 high = ckpts.length;\n uint256 low = 0;\n while (low < high) {\n uint256 mid = Math.average(low, high);\n if (ckpts[mid].fromBlock > blockNumber) {\n high = mid;\n } else {\n low = mid + 1;\n }\n }\n\n return high == 0 ? 0 : ckpts[high - 1].votes;\n }\n\n /**\n * @dev Delegate votes from the sender to `delegatee`.\n */\n function delegate(address delegatee) public virtual {\n _delegate(_msgSender(), delegatee);\n }\n\n /**\n * @dev Delegates votes from signer to `delegatee`\n */\n function delegateBySig(\n address delegatee,\n uint256 nonce,\n uint256 expiry,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) public virtual {\n require(block.timestamp <= expiry, \"ERC20Votes: signature expired\");\n address signer = ECDSA.recover(\n _hashTypedDataV4(keccak256(abi.encode(_DELEGATION_TYPEHASH, delegatee, nonce, expiry))),\n v,\n r,\n s\n );\n require(nonce == _useNonce(signer), \"ERC20Votes: invalid nonce\");\n _delegate(signer, delegatee);\n }\n\n /**\n * @dev Maximum token supply. Defaults to `type(uint224).max` (2^224^ - 1).\n */\n function _maxSupply() internal view virtual returns (uint224) {\n return type(uint224).max;\n }\n\n /**\n * @dev Snapshots the totalSupply after it has been increased.\n */\n function _mint(address account, uint256 amount) internal virtual override {\n super._mint(account, amount);\n require(totalSupply() <= _maxSupply(), \"ERC20Votes: total supply risks overflowing votes\");\n\n _writeCheckpoint(_totalSupplyCheckpoints, _add, amount);\n }\n\n /**\n * @dev Snapshots the totalSupply after it has been decreased.\n */\n function _burn(address account, uint256 amount) internal virtual override {\n super._burn(account, amount);\n\n _writeCheckpoint(_totalSupplyCheckpoints, _subtract, amount);\n }\n\n /**\n * @dev Move voting power when tokens are transferred.\n *\n * Emits a {DelegateVotesChanged} event.\n */\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual override {\n super._afterTokenTransfer(from, to, amount);\n\n _moveVotingPower(delegates(from), delegates(to), amount);\n }\n\n /**\n * @dev Change delegation for `delegator` to `delegatee`.\n *\n * Emits events {DelegateChanged} and {DelegateVotesChanged}.\n */\n function _delegate(address delegator, address delegatee) internal virtual {\n address currentDelegate = delegates(delegator);\n uint256 delegatorBalance = balanceOf(delegator);\n _delegates[delegator] = delegatee;\n\n emit DelegateChanged(delegator, currentDelegate, delegatee);\n\n _moveVotingPower(currentDelegate, delegatee, delegatorBalance);\n }\n\n function _moveVotingPower(\n address src,\n address dst,\n uint256 amount\n ) private {\n if (src != dst && amount > 0) {\n if (src != address(0)) {\n (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[src], _subtract, amount);\n emit DelegateVotesChanged(src, oldWeight, newWeight);\n }\n\n if (dst != address(0)) {\n (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[dst], _add, amount);\n emit DelegateVotesChanged(dst, oldWeight, newWeight);\n }\n }\n }\n\n function _writeCheckpoint(\n Checkpoint[] storage ckpts,\n function(uint256, uint256) view returns (uint256) op,\n uint256 delta\n ) private returns (uint256 oldWeight, uint256 newWeight) {\n uint256 pos = ckpts.length;\n oldWeight = pos == 0 ? 0 : ckpts[pos - 1].votes;\n newWeight = op(oldWeight, delta);\n\n if (pos > 0 && ckpts[pos - 1].fromBlock == block.number) {\n ckpts[pos - 1].votes = SafeCast.toUint224(newWeight);\n } else {\n ckpts.push(Checkpoint({fromBlock: SafeCast.toUint32(block.number), votes: SafeCast.toUint224(newWeight)}));\n }\n }\n\n function _add(uint256 a, uint256 b) private pure returns (uint256) {\n return a + b;\n }\n\n function _subtract(uint256 a, uint256 b) private pure returns (uint256) {\n return a - b;\n }\n}\n"}, "mocks/ERC721Mock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x777ca2a3777630c7bec2e6dbc9b7055b"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC721/ERC721.sol\";\n\n/**\n * @title ERC721Mock\n * This mock just provides a public safeMint, mint, and burn functions for testing purposes\n */\ncontract ERC721Mock is ERC721 {\n constructor(string memory name, string memory symbol) ERC721(name, symbol) {}\n\n function baseURI() public view returns (string memory) {\n return _baseURI();\n }\n\n function exists(uint256 tokenId) public view returns (bool) {\n return _exists(tokenId);\n }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n\n function safeMint(address to, uint256 tokenId) public {\n _safeMint(to, tokenId);\n }\n\n function safeMint(\n address to,\n uint256 tokenId,\n bytes memory _data\n ) public {\n _safeMint(to, tokenId, _data);\n }\n\n function burn(uint256 tokenId) public {\n _burn(tokenId);\n }\n}\n"}, "mocks/RegressionImplementation.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x427d4c71d64926b9de5d60e5686380bf"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../proxy/utils/Initializable.sol\";\n\ncontract Implementation1 is Initializable {\n uint256 internal _value;\n\n function initialize() public initializer {}\n\n function setValue(uint256 _number) public {\n _value = _number;\n }\n}\n\ncontract Implementation2 is Initializable {\n uint256 internal _value;\n\n function initialize() public initializer {}\n\n function setValue(uint256 _number) public {\n _value = _number;\n }\n\n function getValue() public view returns (uint256) {\n return _value;\n }\n}\n\ncontract Implementation3 is Initializable {\n uint256 internal _value;\n\n function initialize() public initializer {}\n\n function setValue(uint256 _number) public {\n _value = _number;\n }\n\n function getValue(uint256 _number) public view returns (uint256) {\n return _value + _number;\n }\n}\n\ncontract Implementation4 is Initializable {\n uint256 internal _value;\n\n function initialize() public initializer {}\n\n function setValue(uint256 _number) public {\n _value = _number;\n }\n\n function getValue() public view returns (uint256) {\n return _value;\n }\n\n fallback() external {\n _value = 1;\n }\n}\n"}, "mocks/ERC20Mock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xafadd2df2b3d63aa4d0f8180932b7b73"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/ERC20.sol\";\n\n// mock class using ERC20\ncontract ERC20Mock is ERC20 {\n constructor(\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) payable ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n\n function mint(address account, uint256 amount) public {\n _mint(account, amount);\n }\n\n function burn(address account, uint256 amount) public {\n _burn(account, amount);\n }\n\n function transferInternal(\n address from,\n address to,\n uint256 value\n ) public {\n _transfer(from, to, value);\n }\n\n function approveInternal(\n address owner,\n address spender,\n uint256 value\n ) public {\n _approve(owner, spender, value);\n }\n}\n"}, "access/IAccessControl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x57c84298234411cea19c7c284d86be8b"}, "content": "// 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 IAccessControl {\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"}, "token/ERC20/extensions/ERC20Pausable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xab4babe7912604097ae769a62fa08506"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC20.sol\";\nimport \"../../../security/Pausable.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 ERC20Pausable is ERC20, Pausable {\n /**\n * @dev See {ERC20-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual override {\n super._beforeTokenTransfer(from, to, amount);\n\n require(!paused(), \"ERC20Pausable: token transfer while paused\");\n }\n}\n"}, "utils/escrow/Escrow.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xd0b182675ed7481cb6e1a1a226a47f0f"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/escrow/Escrow.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../access/Ownable.sol\";\nimport \"../Address.sol\";\n\n/**\n * @title Escrow\n * @dev Base escrow contract, holds funds designated for a payee until they\n * withdraw them.\n *\n * Intended usage: This contract (and derived escrow contracts) should be a\n * standalone contract, that only interacts with the contract that instantiated\n * it. That way, it is guaranteed that all Ether will be handled according to\n * the `Escrow` rules, and there is no need to check for payable functions or\n * transfers in the inheritance tree. The contract that uses the escrow as its\n * payment method should be its owner, and provide public methods redirecting\n * to the escrow's deposit and withdraw.\n */\ncontract Escrow is Ownable {\n using Address for address payable;\n\n event Deposited(address indexed payee, uint256 weiAmount);\n event Withdrawn(address indexed payee, uint256 weiAmount);\n\n mapping(address => uint256) private _deposits;\n\n function depositsOf(address payee) public view returns (uint256) {\n return _deposits[payee];\n }\n\n /**\n * @dev Stores the sent amount as credit to be withdrawn.\n * @param payee The destination address of the funds.\n */\n function deposit(address payee) public payable virtual onlyOwner {\n uint256 amount = msg.value;\n _deposits[payee] += amount;\n emit Deposited(payee, amount);\n }\n\n /**\n * @dev Withdraw accumulated balance for a payee, forwarding all gas to the\n * recipient.\n *\n * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.\n * Make sure you trust the recipient, or are either following the\n * checks-effects-interactions pattern or using {ReentrancyGuard}.\n *\n * @param payee The address whose funds will be withdrawn and transferred to.\n */\n function withdraw(address payable payee) public virtual onlyOwner {\n uint256 payment = _deposits[payee];\n\n _deposits[payee] = 0;\n\n payee.sendValue(payment);\n\n emit Withdrawn(payee, payment);\n }\n}\n"}, "mocks/ERC721EnumerableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x574df2bb6f3a5ddc7332729e496ac01b"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC721/extensions/ERC721Enumerable.sol\";\n\n/**\n * @title ERC721Mock\n * This mock just provides a public safeMint, mint, and burn functions for testing purposes\n */\ncontract ERC721EnumerableMock is ERC721Enumerable {\n string private _baseTokenURI;\n\n constructor(string memory name, string memory symbol) ERC721(name, symbol) {}\n\n function _baseURI() internal view virtual override returns (string memory) {\n return _baseTokenURI;\n }\n\n function setBaseURI(string calldata newBaseTokenURI) public {\n _baseTokenURI = newBaseTokenURI;\n }\n\n function baseURI() public view returns (string memory) {\n return _baseURI();\n }\n\n function exists(uint256 tokenId) public view returns (bool) {\n return _exists(tokenId);\n }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n\n function safeMint(address to, uint256 tokenId) public {\n _safeMint(to, tokenId);\n }\n\n function safeMint(\n address to,\n uint256 tokenId,\n bytes memory _data\n ) public {\n _safeMint(to, tokenId, _data);\n }\n\n function burn(uint256 tokenId) public {\n _burn(tokenId);\n }\n}\n"}, "token/ERC20/extensions/IERC20Metadata.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x909ab67fc5c25033fe6cd364f8c056f9"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20Metadata is IERC20 {\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"}, "mocks/wizard/MyGovernor3.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x935a83258f293da4256eac065b307eb6"}, "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.2;\n\nimport \"../../governance/Governor.sol\";\nimport \"../../governance/compatibility/GovernorCompatibilityBravo.sol\";\nimport \"../../governance/extensions/GovernorVotes.sol\";\nimport \"../../governance/extensions/GovernorVotesQuorumFraction.sol\";\nimport \"../../governance/extensions/GovernorTimelockControl.sol\";\n\ncontract MyGovernor is\n Governor,\n GovernorTimelockControl,\n GovernorCompatibilityBravo,\n GovernorVotes,\n GovernorVotesQuorumFraction\n{\n constructor(ERC20Votes _token, TimelockController _timelock)\n Governor(\"MyGovernor\")\n GovernorVotes(_token)\n GovernorVotesQuorumFraction(4)\n GovernorTimelockControl(_timelock)\n {}\n\n function votingDelay() public pure override returns (uint256) {\n return 1; // 1 block\n }\n\n function votingPeriod() public pure override returns (uint256) {\n return 45818; // 1 week\n }\n\n function proposalThreshold() public pure override returns (uint256) {\n return 1000e18;\n }\n\n // The following functions are overrides required by Solidity.\n\n function quorum(uint256 blockNumber)\n public\n view\n override(IGovernor, GovernorVotesQuorumFraction)\n returns (uint256)\n {\n return super.quorum(blockNumber);\n }\n\n function getVotes(address account, uint256 blockNumber)\n public\n view\n override(IGovernor, GovernorVotes)\n returns (uint256)\n {\n return super.getVotes(account, blockNumber);\n }\n\n function state(uint256 proposalId)\n public\n view\n override(Governor, IGovernor, GovernorTimelockControl)\n returns (ProposalState)\n {\n return super.state(proposalId);\n }\n\n function propose(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n string memory description\n ) public override(Governor, GovernorCompatibilityBravo, IGovernor) returns (uint256) {\n return super.propose(targets, values, calldatas, description);\n }\n\n function _execute(\n uint256 proposalId,\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal override(Governor, GovernorTimelockControl) {\n super._execute(proposalId, targets, values, calldatas, descriptionHash);\n }\n\n function _cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal override(Governor, GovernorTimelockControl) returns (uint256) {\n return super._cancel(targets, values, calldatas, descriptionHash);\n }\n\n function _executor() internal view override(Governor, GovernorTimelockControl) returns (address) {\n return super._executor();\n }\n\n function supportsInterface(bytes4 interfaceId)\n public\n view\n override(Governor, IERC165, GovernorTimelockControl)\n returns (bool)\n {\n return super.supportsInterface(interfaceId);\n }\n}\n"}, "utils/introspection/IERC1820Implementer.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x0612f1c8beee4b227de51b49174b9bc2"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC1820Implementer.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface for an ERC1820 implementer, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1820#interface-implementation-erc1820implementerinterface[EIP].\n * Used by contracts that will be registered as implementers in the\n * {IERC1820Registry}.\n */\ninterface IERC1820Implementer {\n /**\n * @dev Returns a special value (`ERC1820_ACCEPT_MAGIC`) if this contract\n * implements `interfaceHash` for `account`.\n *\n * See {IERC1820Registry-setInterfaceImplementer}.\n */\n function canImplementInterfaceForAddress(bytes32 interfaceHash, address account) external view returns (bytes32);\n}\n"}, "token/ERC721/extensions/ERC721Burnable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x7bbd5ca6e396f0ad628cfbf0031d9e32"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC721.sol\";\nimport \"../../../utils/Context.sol\";\n\n/**\n * @title ERC721 Burnable Token\n * @dev ERC721 Token that can be irreversibly burned (destroyed).\n */\nabstract contract ERC721Burnable is Context, ERC721 {\n /**\n * @dev Burns `tokenId`. See {ERC721-_burn}.\n *\n * Requirements:\n *\n * - The caller must own `tokenId` or be an approved operator.\n */\n function burn(uint256 tokenId) public virtual {\n //solhint-disable-next-line max-line-length\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721Burnable: caller is not owner nor approved\");\n _burn(tokenId);\n }\n}\n"}, "mocks/SafeERC20Helper.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x64369f579f8173db43fb90c1c28a3785"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\nimport \"../token/ERC20/IERC20.sol\";\nimport \"../token/ERC20/utils/SafeERC20.sol\";\n\ncontract ERC20ReturnFalseMock is Context {\n uint256 private _allowance;\n\n // IERC20's functions are not pure, but these mock implementations are: to prevent Solidity from issuing warnings,\n // we write to a dummy state variable.\n uint256 private _dummy;\n\n function transfer(address, uint256) public returns (bool) {\n _dummy = 0;\n return false;\n }\n\n function transferFrom(\n address,\n address,\n uint256\n ) public returns (bool) {\n _dummy = 0;\n return false;\n }\n\n function approve(address, uint256) public returns (bool) {\n _dummy = 0;\n return false;\n }\n\n function allowance(address, address) public view returns (uint256) {\n require(_dummy == 0); // Duummy read from a state variable so that the function is view\n return 0;\n }\n}\n\ncontract ERC20ReturnTrueMock is Context {\n mapping(address => uint256) private _allowances;\n\n // IERC20's functions are not pure, but these mock implementations are: to prevent Solidity from issuing warnings,\n // we write to a dummy state variable.\n uint256 private _dummy;\n\n function transfer(address, uint256) public returns (bool) {\n _dummy = 0;\n return true;\n }\n\n function transferFrom(\n address,\n address,\n uint256\n ) public returns (bool) {\n _dummy = 0;\n return true;\n }\n\n function approve(address, uint256) public returns (bool) {\n _dummy = 0;\n return true;\n }\n\n function setAllowance(uint256 allowance_) public {\n _allowances[_msgSender()] = allowance_;\n }\n\n function allowance(address owner, address) public view returns (uint256) {\n return _allowances[owner];\n }\n}\n\ncontract ERC20NoReturnMock is Context {\n mapping(address => uint256) private _allowances;\n\n // IERC20's functions are not pure, but these mock implementations are: to prevent Solidity from issuing warnings,\n // we write to a dummy state variable.\n uint256 private _dummy;\n\n function transfer(address, uint256) public {\n _dummy = 0;\n }\n\n function transferFrom(\n address,\n address,\n uint256\n ) public {\n _dummy = 0;\n }\n\n function approve(address, uint256) public {\n _dummy = 0;\n }\n\n function setAllowance(uint256 allowance_) public {\n _allowances[_msgSender()] = allowance_;\n }\n\n function allowance(address owner, address) public view returns (uint256) {\n return _allowances[owner];\n }\n}\n\ncontract SafeERC20Wrapper is Context {\n using SafeERC20 for IERC20;\n\n IERC20 private _token;\n\n constructor(IERC20 token) {\n _token = token;\n }\n\n function transfer() public {\n _token.safeTransfer(address(0), 0);\n }\n\n function transferFrom() public {\n _token.safeTransferFrom(address(0), address(0), 0);\n }\n\n function approve(uint256 amount) public {\n _token.safeApprove(address(0), amount);\n }\n\n function increaseAllowance(uint256 amount) public {\n _token.safeIncreaseAllowance(address(0), amount);\n }\n\n function decreaseAllowance(uint256 amount) public {\n _token.safeDecreaseAllowance(address(0), amount);\n }\n\n function setAllowance(uint256 allowance_) public {\n ERC20ReturnTrueMock(address(_token)).setAllowance(allowance_);\n }\n\n function allowance() public view returns (uint256) {\n return _token.allowance(address(0), address(0));\n }\n}\n"}, "mocks/ERC777SenderRecipientMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4d1d27e77d4d1c8ac900d7f5a145bd22"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC777/IERC777.sol\";\nimport \"../token/ERC777/IERC777Sender.sol\";\nimport \"../token/ERC777/IERC777Recipient.sol\";\nimport \"../utils/Context.sol\";\nimport \"../utils/introspection/IERC1820Registry.sol\";\nimport \"../utils/introspection/ERC1820Implementer.sol\";\n\ncontract ERC777SenderRecipientMock is Context, IERC777Sender, IERC777Recipient, ERC1820Implementer {\n event TokensToSendCalled(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes data,\n bytes operatorData,\n address token,\n uint256 fromBalance,\n uint256 toBalance\n );\n\n event TokensReceivedCalled(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes data,\n bytes operatorData,\n address token,\n uint256 fromBalance,\n uint256 toBalance\n );\n\n // Emitted in ERC777Mock. Here for easier decoding\n event BeforeTokenTransfer();\n\n bool private _shouldRevertSend;\n bool private _shouldRevertReceive;\n\n IERC1820Registry private _erc1820 = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);\n\n bytes32 private constant _TOKENS_SENDER_INTERFACE_HASH = keccak256(\"ERC777TokensSender\");\n bytes32 private constant _TOKENS_RECIPIENT_INTERFACE_HASH = keccak256(\"ERC777TokensRecipient\");\n\n function tokensToSend(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external override {\n if (_shouldRevertSend) {\n revert();\n }\n\n IERC777 token = IERC777(_msgSender());\n\n uint256 fromBalance = token.balanceOf(from);\n // when called due to burn, to will be the zero address, which will have a balance of 0\n uint256 toBalance = token.balanceOf(to);\n\n emit TokensToSendCalled(\n operator,\n from,\n to,\n amount,\n userData,\n operatorData,\n address(token),\n fromBalance,\n toBalance\n );\n }\n\n function tokensReceived(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external override {\n if (_shouldRevertReceive) {\n revert();\n }\n\n IERC777 token = IERC777(_msgSender());\n\n uint256 fromBalance = token.balanceOf(from);\n // when called due to burn, to will be the zero address, which will have a balance of 0\n uint256 toBalance = token.balanceOf(to);\n\n emit TokensReceivedCalled(\n operator,\n from,\n to,\n amount,\n userData,\n operatorData,\n address(token),\n fromBalance,\n toBalance\n );\n }\n\n function senderFor(address account) public {\n _registerInterfaceForAddress(_TOKENS_SENDER_INTERFACE_HASH, account);\n\n address self = address(this);\n if (account == self) {\n registerSender(self);\n }\n }\n\n function registerSender(address sender) public {\n _erc1820.setInterfaceImplementer(address(this), _TOKENS_SENDER_INTERFACE_HASH, sender);\n }\n\n function recipientFor(address account) public {\n _registerInterfaceForAddress(_TOKENS_RECIPIENT_INTERFACE_HASH, account);\n\n address self = address(this);\n if (account == self) {\n registerRecipient(self);\n }\n }\n\n function registerRecipient(address recipient) public {\n _erc1820.setInterfaceImplementer(address(this), _TOKENS_RECIPIENT_INTERFACE_HASH, recipient);\n }\n\n function setShouldRevertSend(bool shouldRevert) public {\n _shouldRevertSend = shouldRevert;\n }\n\n function setShouldRevertReceive(bool shouldRevert) public {\n _shouldRevertReceive = shouldRevert;\n }\n\n function send(\n IERC777 token,\n address to,\n uint256 amount,\n bytes memory data\n ) public {\n // This is 777's send function, not the Solidity send function\n token.send(to, amount, data); // solhint-disable-line check-send-result\n }\n\n function burn(\n IERC777 token,\n uint256 amount,\n bytes memory data\n ) public {\n token.burn(amount, data);\n }\n}\n"}, "interfaces/IERC1363Spender.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x59232bcd69ecd60f9fdc41e435eff762"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1363Spender.sol)\n\npragma solidity ^0.8.0;\n\ninterface IERC1363Spender {\n /*\n * Note: the ERC-165 identifier for this interface is 0x7b04a2d0.\n * 0x7b04a2d0 === bytes4(keccak256(\"onApprovalReceived(address,uint256,bytes)\"))\n */\n\n /**\n * @notice Handle the approval of ERC1363 tokens\n * @dev Any ERC1363 smart contract calls this function on the recipient\n * after an `approve`. This function MAY throw to revert and reject the\n * approval. Return of other than the magic value MUST result in the\n * transaction being reverted.\n * Note: the token contract address is always the message sender.\n * @param owner address The address which called `approveAndCall` function\n * @param value uint256 The amount of tokens to be spent\n * @param data bytes Additional data with no specified format\n * @return `bytes4(keccak256(\"onApprovalReceived(address,uint256,bytes)\"))`\n * unless throwing\n */\n function onApprovalReceived(\n address owner,\n uint256 value,\n bytes memory data\n ) external returns (bytes4);\n}\n"}, "utils/introspection/ERC165Storage.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xa391733d3f579314de328ba879bc4f2d"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Storage.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./ERC165.sol\";\n\n/**\n * @dev Storage based implementation of the {IERC165} interface.\n *\n * Contracts may inherit from this and call {_registerInterface} to declare\n * their support of an interface.\n */\nabstract contract ERC165Storage is ERC165 {\n /**\n * @dev Mapping of interface ids to whether or not it's supported.\n */\n mapping(bytes4 => bool) private _supportedInterfaces;\n\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId];\n }\n\n /**\n * @dev Registers the contract as an implementer of the interface defined by\n * `interfaceId`. Support of the actual ERC165 interface is automatic and\n * registering its interface id is not required.\n *\n * See {IERC165-supportsInterface}.\n *\n * Requirements:\n *\n * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).\n */\n function _registerInterface(bytes4 interfaceId) internal virtual {\n require(interfaceId != 0xffffffff, \"ERC165: invalid interface id\");\n _supportedInterfaces[interfaceId] = true;\n }\n}\n"}, "interfaces/IERC1363.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xacec8cadeb2b66b07429c854a788a555"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1363.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC20.sol\";\nimport \"./IERC165.sol\";\n\ninterface IERC1363 is IERC165, IERC20 {\n /*\n * Note: the ERC-165 identifier for this interface is 0x4bbee2df.\n * 0x4bbee2df ===\n * bytes4(keccak256('transferAndCall(address,uint256)')) ^\n * bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^\n * bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^\n * bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)'))\n */\n\n /*\n * Note: the ERC-165 identifier for this interface is 0xfb9ec8ce.\n * 0xfb9ec8ce ===\n * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver\n * @param to address The address which you want to transfer to\n * @param value uint256 The amount of tokens to be transferred\n * @return true unless throwing\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver\n * @param to address The address which you want to transfer to\n * @param value uint256 The amount of tokens to be transferred\n * @param data bytes Additional data with no specified format, sent in call to `to`\n * @return true unless throwing\n */\n function transferAndCall(\n address to,\n uint256 value,\n bytes memory data\n ) external returns (bool);\n\n /**\n * @dev Transfer tokens from one address to another and then call `onTransferReceived` on receiver\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 value uint256 The amount of tokens to be transferred\n * @return true unless throwing\n */\n function transferFromAndCall(\n address from,\n address to,\n uint256 value\n ) external returns (bool);\n\n /**\n * @dev Transfer tokens from one address to another and then call `onTransferReceived` on receiver\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 value uint256 The amount of tokens to be transferred\n * @param data bytes Additional data with no specified format, sent in call to `to`\n * @return true unless throwing\n */\n function transferFromAndCall(\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) external returns (bool);\n\n /**\n * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender\n * and then call `onApprovalReceived` on spender.\n * @param spender address The address which will spend the funds\n * @param value uint256 The amount of tokens to be spent\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender\n * and then call `onApprovalReceived` on spender.\n * @param spender address The address which will spend the funds\n * @param value uint256 The amount of tokens to be spent\n * @param data bytes Additional data with no specified format, sent in call to `spender`\n */\n function approveAndCall(\n address spender,\n uint256 value,\n bytes memory data\n ) external returns (bool);\n}\n"}, "governance/extensions/GovernorProposalThreshold.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xbadf0ac3dc5335b05d84dab6e58a9d6e"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (governance/extensions/GovernorProposalThreshold.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../Governor.sol\";\n\n/**\n * @dev Extension of {Governor} for proposal restriction to token holders with a minimum balance.\n *\n * _Available since v4.3._\n * _Deprecated since v4.4._\n */\nabstract contract GovernorProposalThreshold is Governor {\n function propose(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n string memory description\n ) public virtual override returns (uint256) {\n return super.propose(targets, values, calldatas, description);\n }\n}\n"}, "mocks/ClonesMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x3c3d897099214ce6223c577dc55d212c"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../proxy/Clones.sol\";\nimport \"../utils/Address.sol\";\n\ncontract ClonesMock {\n using Address for address;\n using Clones for address;\n\n event NewInstance(address instance);\n\n function clone(address implementation, bytes calldata initdata) public payable {\n _initAndEmit(implementation.clone(), initdata);\n }\n\n function cloneDeterministic(\n address implementation,\n bytes32 salt,\n bytes calldata initdata\n ) public payable {\n _initAndEmit(implementation.cloneDeterministic(salt), initdata);\n }\n\n function predictDeterministicAddress(address implementation, bytes32 salt) public view returns (address predicted) {\n return implementation.predictDeterministicAddress(salt);\n }\n\n function _initAndEmit(address instance, bytes memory initdata) private {\n if (initdata.length > 0) {\n instance.functionCallWithValue(initdata, msg.value);\n }\n emit NewInstance(instance);\n }\n}\n"}, "mocks/ReentrancyAttack.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x365700b7d522712a4b8df63604a1f9df"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\ncontract ReentrancyAttack is Context {\n function callSender(bytes4 data) public {\n (bool success, ) = _msgSender().call(abi.encodeWithSelector(data));\n require(success, \"ReentrancyAttack: failed call\");\n }\n}\n"}, "mocks/ERC1155SupplyMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xb34aa207d4814d7f3e659955620b936c"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC1155Mock.sol\";\nimport \"../token/ERC1155/extensions/ERC1155Supply.sol\";\n\ncontract ERC1155SupplyMock is ERC1155Mock, ERC1155Supply {\n constructor(string memory uri) ERC1155Mock(uri) {}\n\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n ) internal virtual override(ERC1155, ERC1155Supply) {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n }\n}\n"}, "proxy/ERC1967/ERC1967Proxy.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x524a6c6f00b809b1184050dcc9e131d8"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../Proxy.sol\";\nimport \"./ERC1967Upgrade.sol\";\n\n/**\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\n * implementation address that can be changed. This address is stored in storage in the location specified by\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\n * implementation behind the proxy.\n */\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\n /**\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\n *\n * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\n */\n constructor(address _logic, bytes memory _data) payable {\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\"eip1967.proxy.implementation\")) - 1));\n _upgradeToAndCall(_logic, _data, false);\n }\n\n /**\n * @dev Returns the current implementation address.\n */\n function _implementation() internal view virtual override returns (address impl) {\n return ERC1967Upgrade._getImplementation();\n }\n}\n"}, "token/ERC1155/extensions/ERC1155Supply.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf9155e286006f035a9a68ad49241dd75"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC1155.sol\";\n\n/**\n * @dev Extension of ERC1155 that adds tracking of total supply per id.\n *\n * Useful for scenarios where Fungible and Non-fungible tokens have to be\n * clearly identified. Note: While a totalSupply of 1 might mean the\n * corresponding is an NFT, there is no guarantees that no other token with the\n * same id are not going to be minted.\n */\nabstract contract ERC1155Supply is ERC1155 {\n mapping(uint256 => uint256) private _totalSupply;\n\n /**\n * @dev Total amount of tokens in with a given id.\n */\n function totalSupply(uint256 id) public view virtual returns (uint256) {\n return _totalSupply[id];\n }\n\n /**\n * @dev Indicates whether any token exist with a given id, or not.\n */\n function exists(uint256 id) public view virtual returns (bool) {\n return ERC1155Supply.totalSupply(id) > 0;\n }\n\n /**\n * @dev See {ERC1155-_beforeTokenTransfer}.\n */\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n ) internal virtual override {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n\n if (from == address(0)) {\n for (uint256 i = 0; i < ids.length; ++i) {\n _totalSupply[ids[i]] += amounts[i];\n }\n }\n\n if (to == address(0)) {\n for (uint256 i = 0; i < ids.length; ++i) {\n _totalSupply[ids[i]] -= amounts[i];\n }\n }\n }\n}\n"}, "proxy/beacon/IBeacon.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xb6bd23bf19e90b771337037706470933"}, "content": "// 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 IBeacon {\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"}, "governance/extensions/GovernorVotesComp.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xb73763c7c121eec0264be012e085585b"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (governance/extensions/GovernorVotesComp.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../Governor.sol\";\nimport \"../../token/ERC20/extensions/ERC20VotesComp.sol\";\n\n/**\n * @dev Extension of {Governor} for voting weight extraction from a Comp token.\n *\n * _Available since v4.3._\n */\nabstract contract GovernorVotesComp is Governor {\n ERC20VotesComp public immutable token;\n\n constructor(ERC20VotesComp token_) {\n token = token_;\n }\n\n /**\n * Read the voting weight from the token's built in snapshot mechanism (see {IGovernor-getVotes}).\n */\n function getVotes(address account, uint256 blockNumber) public view virtual override returns (uint256) {\n return token.getPriorVotes(account, blockNumber);\n }\n}\n"}, "finance/VestingWallet.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x70880040ed05fbe6aa93b225cae6031a"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (finance/VestingWallet.sol)\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/utils/SafeERC20.sol\";\nimport \"../utils/Address.sol\";\nimport \"../utils/Context.sol\";\nimport \"../utils/math/Math.sol\";\n\n/**\n * @title VestingWallet\n * @dev This contract handles the vesting of Eth and ERC20 tokens for a given beneficiary. Custody of multiple tokens\n * can be given to this contract, which will release the token to the beneficiary following a given vesting schedule.\n * The vesting schedule is customizable through the {vestedAmount} function.\n *\n * Any token transferred to this contract will follow the vesting schedule as if they were locked from the beginning.\n * Consequently, if the vesting has already started, any amount of tokens sent to this contract will (at least partly)\n * be immediately releasable.\n */\ncontract VestingWallet is Context {\n event EtherReleased(uint256 amount);\n event ERC20Released(address indexed token, uint256 amount);\n\n uint256 private _released;\n mapping(address => uint256) private _erc20Released;\n address private immutable _beneficiary;\n uint64 private immutable _start;\n uint64 private immutable _duration;\n\n /**\n * @dev Set the beneficiary, start timestamp and vesting duration of the vesting wallet.\n */\n constructor(\n address beneficiaryAddress,\n uint64 startTimestamp,\n uint64 durationSeconds\n ) {\n require(beneficiaryAddress != address(0), \"VestingWallet: beneficiary is zero address\");\n _beneficiary = beneficiaryAddress;\n _start = startTimestamp;\n _duration = durationSeconds;\n }\n\n /**\n * @dev The contract should be able to receive Eth.\n */\n receive() external payable virtual {}\n\n /**\n * @dev Getter for the beneficiary address.\n */\n function beneficiary() public view virtual returns (address) {\n return _beneficiary;\n }\n\n /**\n * @dev Getter for the start timestamp.\n */\n function start() public view virtual returns (uint256) {\n return _start;\n }\n\n /**\n * @dev Getter for the vesting duration.\n */\n function duration() public view virtual returns (uint256) {\n return _duration;\n }\n\n /**\n * @dev Amount of eth already released\n */\n function released() public view virtual returns (uint256) {\n return _released;\n }\n\n /**\n * @dev Amount of token already released\n */\n function released(address token) public view virtual returns (uint256) {\n return _erc20Released[token];\n }\n\n /**\n * @dev Release the native token (ether) that have already vested.\n *\n * Emits a {TokensReleased} event.\n */\n function release() public virtual {\n uint256 releasable = vestedAmount(uint64(block.timestamp)) - released();\n _released += releasable;\n emit EtherReleased(releasable);\n Address.sendValue(payable(beneficiary()), releasable);\n }\n\n /**\n * @dev Release the tokens that have already vested.\n *\n * Emits a {TokensReleased} event.\n */\n function release(address token) public virtual {\n uint256 releasable = vestedAmount(token, uint64(block.timestamp)) - released(token);\n _erc20Released[token] += releasable;\n emit ERC20Released(token, releasable);\n SafeERC20.safeTransfer(IERC20(token), beneficiary(), releasable);\n }\n\n /**\n * @dev Calculates the amount of ether that has already vested. Default implementation is a linear vesting curve.\n */\n function vestedAmount(uint64 timestamp) public view virtual returns (uint256) {\n return _vestingSchedule(address(this).balance + released(), timestamp);\n }\n\n /**\n * @dev Calculates the amount of tokens that has already vested. Default implementation is a linear vesting curve.\n */\n function vestedAmount(address token, uint64 timestamp) public view virtual returns (uint256) {\n return _vestingSchedule(IERC20(token).balanceOf(address(this)) + released(token), timestamp);\n }\n\n /**\n * @dev Virtual implementation of the vesting formula. This returns the amout vested, as a function of time, for\n * an asset given its total historical allocation.\n */\n function _vestingSchedule(uint256 totalAllocation, uint64 timestamp) internal view virtual returns (uint256) {\n if (timestamp < start()) {\n return 0;\n } else if (timestamp > start() + duration()) {\n return totalAllocation;\n } else {\n return (totalAllocation * (timestamp - start())) / duration();\n }\n }\n}\n"}, "proxy/utils/UUPSUpgradeable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xcb9d8d9e4f5fdba36648528112b5672f"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC1967/ERC1967Upgrade.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 ERC1967Upgrade {\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 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 _upgradeToAndCallSecure(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 _upgradeToAndCallSecure(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"}, "interfaces/IERC2981.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x8232a272694d0794dc146a4061c47b38"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165.sol\";\n\n/**\n * @dev Interface for the NFT Royalty Standard\n */\ninterface IERC2981 is IERC165 {\n /**\n * @dev Called with the sale price to determine how much royalty is owed and to whom.\n * @param tokenId - the NFT asset queried for royalty information\n * @param salePrice - the sale price of the NFT asset specified by `tokenId`\n * @return receiver - address of who should be sent the royalty payment\n * @return royaltyAmount - the royalty payment amount for `salePrice`\n */\n function royaltyInfo(uint256 tokenId, uint256 salePrice)\n external\n view\n returns (address receiver, uint256 royaltyAmount);\n}\n"}, "mocks/GovernorMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x7abb9bb1a3b29757e2fd0dfce9674c70"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../governance/extensions/GovernorProposalThreshold.sol\";\nimport \"../governance/extensions/GovernorSettings.sol\";\nimport \"../governance/extensions/GovernorCountingSimple.sol\";\nimport \"../governance/extensions/GovernorVotesQuorumFraction.sol\";\n\ncontract GovernorMock is\n GovernorProposalThreshold,\n GovernorSettings,\n GovernorVotesQuorumFraction,\n GovernorCountingSimple\n{\n constructor(\n string memory name_,\n ERC20Votes token_,\n uint256 votingDelay_,\n uint256 votingPeriod_,\n uint256 quorumNumerator_\n )\n Governor(name_)\n GovernorSettings(votingDelay_, votingPeriod_, 0)\n GovernorVotes(token_)\n GovernorVotesQuorumFraction(quorumNumerator_)\n {}\n\n function cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 salt\n ) public returns (uint256 proposalId) {\n return _cancel(targets, values, calldatas, salt);\n }\n\n function getVotes(address account, uint256 blockNumber)\n public\n view\n virtual\n override(IGovernor, GovernorVotes)\n returns (uint256)\n {\n return super.getVotes(account, blockNumber);\n }\n\n function proposalThreshold() public view override(Governor, GovernorSettings) returns (uint256) {\n return super.proposalThreshold();\n }\n\n function propose(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n string memory description\n ) public virtual override(Governor, GovernorProposalThreshold) returns (uint256) {\n return super.propose(targets, values, calldatas, description);\n }\n}\n"}, "mocks/ERC20PermitMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x0e343f28085a0e6583aae67dd967ccce"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC20/extensions/draft-ERC20Permit.sol\";\n\ncontract ERC20PermitMock is ERC20Permit {\n constructor(\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) payable ERC20(name, symbol) ERC20Permit(name) {\n _mint(initialAccount, initialBalance);\n }\n\n function getChainId() external view returns (uint256) {\n return block.chainid;\n }\n}\n"}, "token/ERC20/extensions/draft-ERC20Permit.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4e2473d86be8e737a3ba1c38f36a2aab"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-ERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./draft-IERC20Permit.sol\";\nimport \"../ERC20.sol\";\nimport \"../../../utils/cryptography/draft-EIP712.sol\";\nimport \"../../../utils/cryptography/ECDSA.sol\";\nimport \"../../../utils/Counters.sol\";\n\n/**\n * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n *\n * _Available since v3.4._\n */\nabstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {\n using Counters for Counters.Counter;\n\n mapping(address => Counters.Counter) private _nonces;\n\n // solhint-disable-next-line var-name-mixedcase\n bytes32 private immutable _PERMIT_TYPEHASH =\n keccak256(\"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\");\n\n /**\n * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `\"1\"`.\n *\n * It's a good idea to use the same `name` that is defined as the ERC20 token name.\n */\n constructor(string memory name) EIP712(name, \"1\") {}\n\n /**\n * @dev See {IERC20Permit-permit}.\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) public virtual override {\n require(block.timestamp <= deadline, \"ERC20Permit: expired deadline\");\n\n bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));\n\n bytes32 hash = _hashTypedDataV4(structHash);\n\n address signer = ECDSA.recover(hash, v, r, s);\n require(signer == owner, \"ERC20Permit: invalid signature\");\n\n _approve(owner, spender, value);\n }\n\n /**\n * @dev See {IERC20Permit-nonces}.\n */\n function nonces(address owner) public view virtual override returns (uint256) {\n return _nonces[owner].current();\n }\n\n /**\n * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function DOMAIN_SEPARATOR() external view override returns (bytes32) {\n return _domainSeparatorV4();\n }\n\n /**\n * @dev \"Consume a nonce\": return the current value and increment.\n *\n * _Available since v4.1._\n */\n function _useNonce(address owner) internal virtual returns (uint256 current) {\n Counters.Counter storage nonce = _nonces[owner];\n current = nonce.current();\n nonce.increment();\n }\n}\n"}, "token/ERC1155/utils/ERC1155Receiver.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x55b180cf664783e9a2baac20e82683fb"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC1155Receiver.sol\";\nimport \"../../../utils/introspection/ERC165.sol\";\n\n/**\n * @dev _Available since v3.1._\n */\nabstract contract ERC1155Receiver is ERC165, IERC1155Receiver {\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {\n return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);\n }\n}\n"}, "mocks/MulticallTest.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x0471bdc492e4d2505a3e89478217a62a"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./MulticallTokenMock.sol\";\n\ncontract MulticallTest {\n function testReturnValues(\n MulticallTokenMock multicallToken,\n address[] calldata recipients,\n uint256[] calldata amounts\n ) external {\n bytes[] memory calls = new bytes[](recipients.length);\n for (uint256 i = 0; i < recipients.length; i++) {\n calls[i] = abi.encodeWithSignature(\"transfer(address,uint256)\", recipients[i], amounts[i]);\n }\n\n bytes[] memory results = multicallToken.multicall(calls);\n for (uint256 i = 0; i < results.length; i++) {\n require(abi.decode(results[i], (bool)));\n }\n }\n}\n"}, "token/ERC721/extensions/IERC721Enumerable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xf69eb47f667b846a8698697d25eeff4e"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC721.sol\";\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721Enumerable is IERC721 {\n /**\n * @dev Returns the total amount of tokens stored by the contract.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns a token ID owned by `owner` at a given `index` of its token list.\n * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.\n */\n function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);\n\n /**\n * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.\n * Use along with {totalSupply} to enumerate all tokens.\n */\n function tokenByIndex(uint256 index) external view returns (uint256);\n}\n"}, "mocks/GovernorCompatibilityBravoMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xfbdf9b8fcbea3207c4c7860115d26b2b"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../governance/compatibility/GovernorCompatibilityBravo.sol\";\nimport \"../governance/extensions/GovernorTimelockCompound.sol\";\nimport \"../governance/extensions/GovernorSettings.sol\";\nimport \"../governance/extensions/GovernorVotesComp.sol\";\n\ncontract GovernorCompatibilityBravoMock is\n GovernorCompatibilityBravo,\n GovernorSettings,\n GovernorTimelockCompound,\n GovernorVotesComp\n{\n constructor(\n string memory name_,\n ERC20VotesComp token_,\n uint256 votingDelay_,\n uint256 votingPeriod_,\n uint256 proposalThreshold_,\n ICompoundTimelock timelock_\n )\n Governor(name_)\n GovernorTimelockCompound(timelock_)\n GovernorSettings(votingDelay_, votingPeriod_, proposalThreshold_)\n GovernorVotesComp(token_)\n {}\n\n function supportsInterface(bytes4 interfaceId)\n public\n view\n virtual\n override(IERC165, Governor, GovernorTimelockCompound)\n returns (bool)\n {\n return super.supportsInterface(interfaceId);\n }\n\n function quorum(uint256) public pure override returns (uint256) {\n return 0;\n }\n\n function state(uint256 proposalId)\n public\n view\n virtual\n override(IGovernor, Governor, GovernorTimelockCompound)\n returns (ProposalState)\n {\n return super.state(proposalId);\n }\n\n function proposalEta(uint256 proposalId)\n public\n view\n virtual\n override(IGovernorTimelock, GovernorTimelockCompound)\n returns (uint256)\n {\n return super.proposalEta(proposalId);\n }\n\n function proposalThreshold() public view override(Governor, GovernorSettings) returns (uint256) {\n return super.proposalThreshold();\n }\n\n function propose(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n string memory description\n ) public virtual override(IGovernor, Governor, GovernorCompatibilityBravo) returns (uint256) {\n return super.propose(targets, values, calldatas, description);\n }\n\n function queue(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 salt\n ) public virtual override(IGovernorTimelock, GovernorTimelockCompound) returns (uint256) {\n return super.queue(targets, values, calldatas, salt);\n }\n\n function execute(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 salt\n ) public payable virtual override(IGovernor, Governor) returns (uint256) {\n return super.execute(targets, values, calldatas, salt);\n }\n\n function _execute(\n uint256 proposalId,\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal virtual override(Governor, GovernorTimelockCompound) {\n super._execute(proposalId, targets, values, calldatas, descriptionHash);\n }\n\n /**\n * @notice WARNING: this is for mock purposes only. Ability to the _cancel function should be restricted for live\n * deployments.\n */\n function cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 salt\n ) public returns (uint256 proposalId) {\n return _cancel(targets, values, calldatas, salt);\n }\n\n function _cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 salt\n ) internal virtual override(Governor, GovernorTimelockCompound) returns (uint256 proposalId) {\n return super._cancel(targets, values, calldatas, salt);\n }\n\n function getVotes(address account, uint256 blockNumber)\n public\n view\n virtual\n override(IGovernor, GovernorVotesComp)\n returns (uint256)\n {\n return super.getVotes(account, blockNumber);\n }\n\n function _executor() internal view virtual override(Governor, GovernorTimelockCompound) returns (address) {\n return super._executor();\n }\n}\n"}, "utils/introspection/ERC1820Implementer.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x267e2fa54d5923930fc121c178403487"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC1820Implementer.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC1820Implementer.sol\";\n\n/**\n * @dev Implementation of the {IERC1820Implementer} interface.\n *\n * Contracts may inherit from this and call {_registerInterfaceForAddress} to\n * declare their willingness to be implementers.\n * {IERC1820Registry-setInterfaceImplementer} should then be called for the\n * registration to be complete.\n */\ncontract ERC1820Implementer is IERC1820Implementer {\n bytes32 private constant _ERC1820_ACCEPT_MAGIC = keccak256(\"ERC1820_ACCEPT_MAGIC\");\n\n mapping(bytes32 => mapping(address => bool)) private _supportedInterfaces;\n\n /**\n * @dev See {IERC1820Implementer-canImplementInterfaceForAddress}.\n */\n function canImplementInterfaceForAddress(bytes32 interfaceHash, address account)\n public\n view\n virtual\n override\n returns (bytes32)\n {\n return _supportedInterfaces[interfaceHash][account] ? _ERC1820_ACCEPT_MAGIC : bytes32(0x00);\n }\n\n /**\n * @dev Declares the contract as willing to be an implementer of\n * `interfaceHash` for `account`.\n *\n * See {IERC1820Registry-setInterfaceImplementer} and\n * {IERC1820Registry-interfaceHash}.\n */\n function _registerInterfaceForAddress(bytes32 interfaceHash, address account) internal virtual {\n _supportedInterfaces[interfaceHash][account] = true;\n }\n}\n"}, "mocks/Create2Impl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xcf00427c363da666d4c3041c48fb3039"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Create2.sol\";\nimport \"../utils/introspection/ERC1820Implementer.sol\";\n\ncontract Create2Impl {\n function deploy(\n uint256 value,\n bytes32 salt,\n bytes memory code\n ) public {\n Create2.deploy(value, salt, code);\n }\n\n function deployERC1820Implementer(uint256 value, bytes32 salt) public {\n Create2.deploy(value, salt, type(ERC1820Implementer).creationCode);\n }\n\n function computeAddress(bytes32 salt, bytes32 codeHash) public view returns (address) {\n return Create2.computeAddress(salt, codeHash);\n }\n\n function computeAddressWithDeployer(\n bytes32 salt,\n bytes32 codeHash,\n address deployer\n ) public pure returns (address) {\n return Create2.computeAddress(salt, codeHash, deployer);\n }\n\n receive() external payable {}\n}\n"}, "token/ERC1155/utils/ERC1155Holder.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x5637bdad6fa692dbbce1eeca845bedd8"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Holder.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./ERC1155Receiver.sol\";\n\n/**\n * @dev _Available since v3.1._\n */\ncontract ERC1155Holder is ERC1155Receiver {\n function onERC1155Received(\n address,\n address,\n uint256,\n uint256,\n bytes memory\n ) public virtual override returns (bytes4) {\n return this.onERC1155Received.selector;\n }\n\n function onERC1155BatchReceived(\n address,\n address,\n uint256[] memory,\n uint256[] memory,\n bytes memory\n ) public virtual override returns (bytes4) {\n return this.onERC1155BatchReceived.selector;\n }\n}\n"}, "mocks/wizard/MyGovernor2.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x3542b59f4fad18d7cbaa8843395d0f00"}, "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.2;\n\nimport \"../../governance/Governor.sol\";\nimport \"../../governance/extensions/GovernorProposalThreshold.sol\";\nimport \"../../governance/extensions/GovernorCountingSimple.sol\";\nimport \"../../governance/extensions/GovernorVotes.sol\";\nimport \"../../governance/extensions/GovernorVotesQuorumFraction.sol\";\nimport \"../../governance/extensions/GovernorTimelockControl.sol\";\n\ncontract MyGovernor2 is\n Governor,\n GovernorTimelockControl,\n GovernorProposalThreshold,\n GovernorVotes,\n GovernorVotesQuorumFraction,\n GovernorCountingSimple\n{\n constructor(ERC20Votes _token, TimelockController _timelock)\n Governor(\"MyGovernor\")\n GovernorVotes(_token)\n GovernorVotesQuorumFraction(4)\n GovernorTimelockControl(_timelock)\n {}\n\n function votingDelay() public pure override returns (uint256) {\n return 1; // 1 block\n }\n\n function votingPeriod() public pure override returns (uint256) {\n return 45818; // 1 week\n }\n\n function proposalThreshold() public pure override returns (uint256) {\n return 1000e18;\n }\n\n // The following functions are overrides required by Solidity.\n\n function quorum(uint256 blockNumber)\n public\n view\n override(IGovernor, GovernorVotesQuorumFraction)\n returns (uint256)\n {\n return super.quorum(blockNumber);\n }\n\n function getVotes(address account, uint256 blockNumber)\n public\n view\n override(IGovernor, GovernorVotes)\n returns (uint256)\n {\n return super.getVotes(account, blockNumber);\n }\n\n function state(uint256 proposalId) public view override(Governor, GovernorTimelockControl) returns (ProposalState) {\n return super.state(proposalId);\n }\n\n function propose(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n string memory description\n ) public override(Governor, GovernorProposalThreshold, IGovernor) returns (uint256) {\n return super.propose(targets, values, calldatas, description);\n }\n\n function _execute(\n uint256 proposalId,\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal override(Governor, GovernorTimelockControl) {\n super._execute(proposalId, targets, values, calldatas, descriptionHash);\n }\n\n function _cancel(\n address[] memory targets,\n uint256[] memory values,\n bytes[] memory calldatas,\n bytes32 descriptionHash\n ) internal override(Governor, GovernorTimelockControl) returns (uint256) {\n return super._cancel(targets, values, calldatas, descriptionHash);\n }\n\n function _executor() internal view override(Governor, GovernorTimelockControl) returns (address) {\n return super._executor();\n }\n\n function supportsInterface(bytes4 interfaceId)\n public\n view\n override(Governor, GovernorTimelockControl)\n returns (bool)\n {\n return super.supportsInterface(interfaceId);\n }\n}\n"}, "mocks/EtherReceiverMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x03543c772b5715405d1847fe2a7e6ba4"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract EtherReceiverMock {\n bool private _acceptEther;\n\n function setAcceptEther(bool acceptEther) public {\n _acceptEther = acceptEther;\n }\n\n receive() external payable {\n if (!_acceptEther) {\n revert();\n }\n }\n}\n"}, "metatx/MinimalForwarder.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x908ac4bd9f80689dc2e6250f184c906e"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (metatx/MinimalForwarder.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/cryptography/ECDSA.sol\";\nimport \"../utils/cryptography/draft-EIP712.sol\";\n\n/**\n * @dev Simple minimal forwarder to be used together with an ERC2771 compatible contract. See {ERC2771Context}.\n */\ncontract MinimalForwarder is EIP712 {\n using ECDSA for bytes32;\n\n struct ForwardRequest {\n address from;\n address to;\n uint256 value;\n uint256 gas;\n uint256 nonce;\n bytes data;\n }\n\n bytes32 private constant _TYPEHASH =\n keccak256(\"ForwardRequest(address from,address to,uint256 value,uint256 gas,uint256 nonce,bytes data)\");\n\n mapping(address => uint256) private _nonces;\n\n constructor() EIP712(\"MinimalForwarder\", \"0.0.1\") {}\n\n function getNonce(address from) public view returns (uint256) {\n return _nonces[from];\n }\n\n function verify(ForwardRequest calldata req, bytes calldata signature) public view returns (bool) {\n address signer = _hashTypedDataV4(\n keccak256(abi.encode(_TYPEHASH, req.from, req.to, req.value, req.gas, req.nonce, keccak256(req.data)))\n ).recover(signature);\n return _nonces[req.from] == req.nonce && signer == req.from;\n }\n\n function execute(ForwardRequest calldata req, bytes calldata signature)\n public\n payable\n returns (bool, bytes memory)\n {\n require(verify(req, signature), \"MinimalForwarder: signature does not match request\");\n _nonces[req.from] = req.nonce + 1;\n\n (bool success, bytes memory returndata) = req.to.call{gas: req.gas, value: req.value}(\n abi.encodePacked(req.data, req.from)\n );\n // Validate that the relayer has sent enough gas for the call.\n // See https://ronan.eth.link/blog/ethereum-gas-dangers/\n assert(gasleft() > req.gas / 63);\n\n return (success, returndata);\n }\n}\n"}, "access/Ownable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x8398972af73b4e9e5ff3b31cad86234f"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n constructor() {\n _transferOwnership(_msgSender());\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n _;\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions anymore. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby removing any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"}, "proxy/beacon/UpgradeableBeacon.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x8ffefb755605824cf730ce4092b2f581"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/UpgradeableBeacon.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IBeacon.sol\";\nimport \"../../access/Ownable.sol\";\nimport \"../../utils/Address.sol\";\n\n/**\n * @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their\n * implementation contract, which is where they will delegate all function calls.\n *\n * An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon.\n */\ncontract UpgradeableBeacon is IBeacon, Ownable {\n address private _implementation;\n\n /**\n * @dev Emitted when the implementation returned by the beacon is changed.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Sets the address of the initial implementation, and the deployer account as the owner who can upgrade the\n * beacon.\n */\n constructor(address implementation_) {\n _setImplementation(implementation_);\n }\n\n /**\n * @dev Returns the current implementation address.\n */\n function implementation() public view virtual override returns (address) {\n return _implementation;\n }\n\n /**\n * @dev Upgrades the beacon to a new implementation.\n *\n * Emits an {Upgraded} event.\n *\n * Requirements:\n *\n * - msg.sender must be the owner of the contract.\n * - `newImplementation` must be a contract.\n */\n function upgradeTo(address newImplementation) public virtual onlyOwner {\n _setImplementation(newImplementation);\n emit Upgraded(newImplementation);\n }\n\n /**\n * @dev Sets the implementation contract address for this beacon\n *\n * Requirements:\n *\n * - `newImplementation` must be a contract.\n */\n function _setImplementation(address newImplementation) private {\n require(Address.isContract(newImplementation), \"UpgradeableBeacon: implementation is not a contract\");\n _implementation = newImplementation;\n }\n}\n"}, "access/AccessControl.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x79af4d35ce7918696f13f0cb6653ec99"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IAccessControl.sol\";\nimport \"../utils/Context.sol\";\nimport \"../utils/Strings.sol\";\nimport \"../utils/introspection/ERC165.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 AccessControl is Context, IAccessControl, ERC165 {\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, _msgSender());\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(IAccessControl).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 override returns (bool) {\n return _roles[role].members[account];\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 {\n if (!hasRole(role, account)) {\n revert(\n string(\n abi.encodePacked(\n \"AccessControl: account \",\n Strings.toHexString(uint160(account), 20),\n \" is missing role \",\n Strings.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 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 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 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 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 * [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 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 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"}, "mocks/ReentrancyMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x318e72355ec39e830288ec04dc4c76a7"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../security/ReentrancyGuard.sol\";\nimport \"./ReentrancyAttack.sol\";\n\ncontract ReentrancyMock is ReentrancyGuard {\n uint256 public counter;\n\n constructor() {\n counter = 0;\n }\n\n function callback() external nonReentrant {\n _count();\n }\n\n function countLocalRecursive(uint256 n) public nonReentrant {\n if (n > 0) {\n _count();\n countLocalRecursive(n - 1);\n }\n }\n\n function countThisRecursive(uint256 n) public nonReentrant {\n if (n > 0) {\n _count();\n (bool success, ) = address(this).call(abi.encodeWithSignature(\"countThisRecursive(uint256)\", n - 1));\n require(success, \"ReentrancyMock: failed call\");\n }\n }\n\n function countAndCall(ReentrancyAttack attacker) public nonReentrant {\n _count();\n bytes4 func = bytes4(keccak256(\"callback()\"));\n attacker.callSender(func);\n }\n\n function _count() private {\n counter += 1;\n }\n}\n"}, "mocks/AccessControlEnumerableMock.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x540e353a94b07ea4fc00e8d7c271da65"}, "content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../access/AccessControlEnumerable.sol\";\n\ncontract AccessControlEnumerableMock is AccessControlEnumerable {\n constructor() {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n }\n\n function setRoleAdmin(bytes32 roleId, bytes32 adminRoleId) public {\n _setRoleAdmin(roleId, adminRoleId);\n }\n\n function senderProtected(bytes32 roleId) public onlyRole(roleId) {}\n}\n"}, "token/ERC20/extensions/ERC20Burnable.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x9f43a2bc39b89ae302f1727697f9c420"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Burnable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC20.sol\";\nimport \"../../../utils/Context.sol\";\n\n/**\n * @dev Extension of {ERC20} that allows token holders to destroy both their own\n * tokens and those that they have an allowance for, in a way that can be\n * recognized off-chain (via event analysis).\n */\nabstract contract ERC20Burnable is Context, ERC20 {\n /**\n * @dev Destroys `amount` tokens from the caller.\n *\n * See {ERC20-_burn}.\n */\n function burn(uint256 amount) public virtual {\n _burn(_msgSender(), amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`, deducting from the caller's\n * allowance.\n *\n * See {ERC20-_burn} and {ERC20-allowance}.\n *\n * Requirements:\n *\n * - the caller must have allowance for ``accounts``'s tokens of at least\n * `amount`.\n */\n function burnFrom(address account, uint256 amount) public virtual {\n uint256 currentAllowance = allowance(account, _msgSender());\n require(currentAllowance >= amount, \"ERC20: burn amount exceeds allowance\");\n unchecked {\n _approve(account, _msgSender(), currentAllowance - amount);\n }\n _burn(account, amount);\n }\n}\n"}, "interfaces/IERC777Sender.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0xe573734b8269ff2e407c505ea6fa4474"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC777Sender.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../token/ERC777/IERC777Sender.sol\";\n"}, "utils/cryptography/SignatureChecker.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x4d61badf471155b61db439405abc1f1d"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/cryptography/SignatureChecker.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./ECDSA.sol\";\nimport \"../Address.sol\";\nimport \"../../interfaces/IERC1271.sol\";\n\n/**\n * @dev Signature verification helper: Provide a single mechanism to verify both private-key (EOA) ECDSA signature and\n * ERC1271 contract signatures. Using this instead of ECDSA.recover in your contract will make them compatible with\n * smart contract wallets such as Argent and Gnosis.\n *\n * Note: unlike ECDSA signatures, contract signature's are revocable, and the outcome of this function can thus change\n * through time. It could return true at block N and false at block N+1 (or the opposite).\n *\n * _Available since v4.1._\n */\nlibrary SignatureChecker {\n function isValidSignatureNow(\n address signer,\n bytes32 hash,\n bytes memory signature\n ) internal view returns (bool) {\n (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);\n if (error == ECDSA.RecoverError.NoError && recovered == signer) {\n return true;\n }\n\n (bool success, bytes memory result) = signer.staticcall(\n abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)\n );\n return (success && result.length == 32 && abi.decode(result, (bytes4)) == IERC1271.isValidSignature.selector);\n }\n}\n"}, "utils/Strings.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x9c54c6c065d9e590fdcdd72c451425b9"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n bytes16 private constant _HEX_SYMBOLS = \"0123456789abcdef\";\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 // Inspired by OraclizeAPI's implementation - MIT licence\n // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\n\n if (value == 0) {\n return \"0\";\n }\n uint256 temp = value;\n uint256 digits;\n while (temp != 0) {\n digits++;\n temp /= 10;\n }\n bytes memory buffer = new bytes(digits);\n while (value != 0) {\n digits -= 1;\n buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));\n value /= 10;\n }\n return string(buffer);\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 if (value == 0) {\n return \"0x00\";\n }\n uint256 temp = value;\n uint256 length = 0;\n while (temp != 0) {\n length++;\n temp >>= 8;\n }\n return toHexString(value, length);\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] = _HEX_SYMBOLS[value & 0xf];\n value >>= 4;\n }\n require(value == 0, \"Strings: hex length insufficient\");\n return string(buffer);\n }\n}\n"}, "token/ERC1155/extensions/IERC1155MetadataURI.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x9148c2e10c4efb12c71a7f080da5559b"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC1155.sol\";\n\n/**\n * @dev Interface of the optional ERC1155MetadataExtension interface, as defined\n * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].\n *\n * _Available since v3.1._\n */\ninterface IERC1155MetadataURI is IERC1155 {\n /**\n * @dev Returns the URI for token type `id`.\n *\n * If the `\\{id\\}` substring is present in the URI, it must be replaced by\n * clients with the actual token type ID.\n */\n function uri(uint256 id) external view returns (string memory);\n}\n"}, "governance/TimelockController.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x59f5eb55cde7d6d3ae62c45480aff256"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (governance/TimelockController.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../access/AccessControl.sol\";\n\n/**\n * @dev Contract module which acts as a timelocked controller. When set as the\n * owner of an `Ownable` smart contract, it enforces a timelock on all\n * `onlyOwner` maintenance operations. This gives time for users of the\n * controlled contract to exit before a potentially dangerous maintenance\n * operation is applied.\n *\n * By default, this contract is self administered, meaning administration tasks\n * have to go through the timelock process. The proposer (resp executor) role\n * is in charge of proposing (resp executing) operations. A common use case is\n * to position this {TimelockController} as the owner of a smart contract, with\n * a multisig or a DAO as the sole proposer.\n *\n * _Available since v3.3._\n */\ncontract TimelockController is AccessControl {\n bytes32 public constant TIMELOCK_ADMIN_ROLE = keccak256(\"TIMELOCK_ADMIN_ROLE\");\n bytes32 public constant PROPOSER_ROLE = keccak256(\"PROPOSER_ROLE\");\n bytes32 public constant EXECUTOR_ROLE = keccak256(\"EXECUTOR_ROLE\");\n uint256 internal constant _DONE_TIMESTAMP = uint256(1);\n\n mapping(bytes32 => uint256) private _timestamps;\n uint256 private _minDelay;\n\n /**\n * @dev Emitted when a call is scheduled as part of operation `id`.\n */\n event CallScheduled(\n bytes32 indexed id,\n uint256 indexed index,\n address target,\n uint256 value,\n bytes data,\n bytes32 predecessor,\n uint256 delay\n );\n\n /**\n * @dev Emitted when a call is performed as part of operation `id`.\n */\n event CallExecuted(bytes32 indexed id, uint256 indexed index, address target, uint256 value, bytes data);\n\n /**\n * @dev Emitted when operation `id` is cancelled.\n */\n event Cancelled(bytes32 indexed id);\n\n /**\n * @dev Emitted when the minimum delay for future operations is modified.\n */\n event MinDelayChange(uint256 oldDuration, uint256 newDuration);\n\n /**\n * @dev Initializes the contract with a given `minDelay`.\n */\n constructor(\n uint256 minDelay,\n address[] memory proposers,\n address[] memory executors\n ) {\n _setRoleAdmin(TIMELOCK_ADMIN_ROLE, TIMELOCK_ADMIN_ROLE);\n _setRoleAdmin(PROPOSER_ROLE, TIMELOCK_ADMIN_ROLE);\n _setRoleAdmin(EXECUTOR_ROLE, TIMELOCK_ADMIN_ROLE);\n\n // deployer + self administration\n _setupRole(TIMELOCK_ADMIN_ROLE, _msgSender());\n _setupRole(TIMELOCK_ADMIN_ROLE, address(this));\n\n // register proposers\n for (uint256 i = 0; i < proposers.length; ++i) {\n _setupRole(PROPOSER_ROLE, proposers[i]);\n }\n\n // register executors\n for (uint256 i = 0; i < executors.length; ++i) {\n _setupRole(EXECUTOR_ROLE, executors[i]);\n }\n\n _minDelay = minDelay;\n emit MinDelayChange(0, minDelay);\n }\n\n /**\n * @dev Modifier to make a function callable only by a certain role. In\n * addition to checking the sender's role, `address(0)` 's role is also\n * considered. Granting a role to `address(0)` is equivalent to enabling\n * this role for everyone.\n */\n modifier onlyRoleOrOpenRole(bytes32 role) {\n if (!hasRole(role, address(0))) {\n _checkRole(role, _msgSender());\n }\n _;\n }\n\n /**\n * @dev Contract might receive/hold ETH as part of the maintenance process.\n */\n receive() external payable {}\n\n /**\n * @dev Returns whether an id correspond to a registered operation. This\n * includes both Pending, Ready and Done operations.\n */\n function isOperation(bytes32 id) public view virtual returns (bool pending) {\n return getTimestamp(id) > 0;\n }\n\n /**\n * @dev Returns whether an operation is pending or not.\n */\n function isOperationPending(bytes32 id) public view virtual returns (bool pending) {\n return getTimestamp(id) > _DONE_TIMESTAMP;\n }\n\n /**\n * @dev Returns whether an operation is ready or not.\n */\n function isOperationReady(bytes32 id) public view virtual returns (bool ready) {\n uint256 timestamp = getTimestamp(id);\n return timestamp > _DONE_TIMESTAMP && timestamp <= block.timestamp;\n }\n\n /**\n * @dev Returns whether an operation is done or not.\n */\n function isOperationDone(bytes32 id) public view virtual returns (bool done) {\n return getTimestamp(id) == _DONE_TIMESTAMP;\n }\n\n /**\n * @dev Returns the timestamp at with an operation becomes ready (0 for\n * unset operations, 1 for done operations).\n */\n function getTimestamp(bytes32 id) public view virtual returns (uint256 timestamp) {\n return _timestamps[id];\n }\n\n /**\n * @dev Returns the minimum delay for an operation to become valid.\n *\n * This value can be changed by executing an operation that calls `updateDelay`.\n */\n function getMinDelay() public view virtual returns (uint256 duration) {\n return _minDelay;\n }\n\n /**\n * @dev Returns the identifier of an operation containing a single\n * transaction.\n */\n function hashOperation(\n address target,\n uint256 value,\n bytes calldata data,\n bytes32 predecessor,\n bytes32 salt\n ) public pure virtual returns (bytes32 hash) {\n return keccak256(abi.encode(target, value, data, predecessor, salt));\n }\n\n /**\n * @dev Returns the identifier of an operation containing a batch of\n * transactions.\n */\n function hashOperationBatch(\n address[] calldata targets,\n uint256[] calldata values,\n bytes[] calldata datas,\n bytes32 predecessor,\n bytes32 salt\n ) public pure virtual returns (bytes32 hash) {\n return keccak256(abi.encode(targets, values, datas, predecessor, salt));\n }\n\n /**\n * @dev Schedule an operation containing a single transaction.\n *\n * Emits a {CallScheduled} event.\n *\n * Requirements:\n *\n * - the caller must have the 'proposer' role.\n */\n function schedule(\n address target,\n uint256 value,\n bytes calldata data,\n bytes32 predecessor,\n bytes32 salt,\n uint256 delay\n ) public virtual onlyRole(PROPOSER_ROLE) {\n bytes32 id = hashOperation(target, value, data, predecessor, salt);\n _schedule(id, delay);\n emit CallScheduled(id, 0, target, value, data, predecessor, delay);\n }\n\n /**\n * @dev Schedule an operation containing a batch of transactions.\n *\n * Emits one {CallScheduled} event per transaction in the batch.\n *\n * Requirements:\n *\n * - the caller must have the 'proposer' role.\n */\n function scheduleBatch(\n address[] calldata targets,\n uint256[] calldata values,\n bytes[] calldata datas,\n bytes32 predecessor,\n bytes32 salt,\n uint256 delay\n ) public virtual onlyRole(PROPOSER_ROLE) {\n require(targets.length == values.length, \"TimelockController: length mismatch\");\n require(targets.length == datas.length, \"TimelockController: length mismatch\");\n\n bytes32 id = hashOperationBatch(targets, values, datas, predecessor, salt);\n _schedule(id, delay);\n for (uint256 i = 0; i < targets.length; ++i) {\n emit CallScheduled(id, i, targets[i], values[i], datas[i], predecessor, delay);\n }\n }\n\n /**\n * @dev Schedule an operation that is to becomes valid after a given delay.\n */\n function _schedule(bytes32 id, uint256 delay) private {\n require(!isOperation(id), \"TimelockController: operation already scheduled\");\n require(delay >= getMinDelay(), \"TimelockController: insufficient delay\");\n _timestamps[id] = block.timestamp + delay;\n }\n\n /**\n * @dev Cancel an operation.\n *\n * Requirements:\n *\n * - the caller must have the 'proposer' role.\n */\n function cancel(bytes32 id) public virtual onlyRole(PROPOSER_ROLE) {\n require(isOperationPending(id), \"TimelockController: operation cannot be cancelled\");\n delete _timestamps[id];\n\n emit Cancelled(id);\n }\n\n /**\n * @dev Execute an (ready) operation containing a single transaction.\n *\n * Emits a {CallExecuted} event.\n *\n * Requirements:\n *\n * - the caller must have the 'executor' role.\n */\n function execute(\n address target,\n uint256 value,\n bytes calldata data,\n bytes32 predecessor,\n bytes32 salt\n ) public payable virtual onlyRoleOrOpenRole(EXECUTOR_ROLE) {\n bytes32 id = hashOperation(target, value, data, predecessor, salt);\n _beforeCall(id, predecessor);\n _call(id, 0, target, value, data);\n _afterCall(id);\n }\n\n /**\n * @dev Execute an (ready) operation containing a batch of transactions.\n *\n * Emits one {CallExecuted} event per transaction in the batch.\n *\n * Requirements:\n *\n * - the caller must have the 'executor' role.\n */\n function executeBatch(\n address[] calldata targets,\n uint256[] calldata values,\n bytes[] calldata datas,\n bytes32 predecessor,\n bytes32 salt\n ) public payable virtual onlyRoleOrOpenRole(EXECUTOR_ROLE) {\n require(targets.length == values.length, \"TimelockController: length mismatch\");\n require(targets.length == datas.length, \"TimelockController: length mismatch\");\n\n bytes32 id = hashOperationBatch(targets, values, datas, predecessor, salt);\n _beforeCall(id, predecessor);\n for (uint256 i = 0; i < targets.length; ++i) {\n _call(id, i, targets[i], values[i], datas[i]);\n }\n _afterCall(id);\n }\n\n /**\n * @dev Checks before execution of an operation's calls.\n */\n function _beforeCall(bytes32 id, bytes32 predecessor) private view {\n require(isOperationReady(id), \"TimelockController: operation is not ready\");\n require(predecessor == bytes32(0) || isOperationDone(predecessor), \"TimelockController: missing dependency\");\n }\n\n /**\n * @dev Checks after execution of an operation's calls.\n */\n function _afterCall(bytes32 id) private {\n require(isOperationReady(id), \"TimelockController: operation is not ready\");\n _timestamps[id] = _DONE_TIMESTAMP;\n }\n\n /**\n * @dev Execute an operation's call.\n *\n * Emits a {CallExecuted} event.\n */\n function _call(\n bytes32 id,\n uint256 index,\n address target,\n uint256 value,\n bytes calldata data\n ) private {\n (bool success, ) = target.call{value: value}(data);\n require(success, \"TimelockController: underlying transaction reverted\");\n\n emit CallExecuted(id, index, target, value, data);\n }\n\n /**\n * @dev Changes the minimum timelock duration for future operations.\n *\n * Emits a {MinDelayChange} event.\n *\n * Requirements:\n *\n * - the caller must be the timelock itself. This can only be achieved by scheduling and later executing\n * an operation where the timelock is the target and the data is the ABI-encoded call to this function.\n */\n function updateDelay(uint256 newDelay) external virtual {\n require(msg.sender == address(this), \"TimelockController: caller must be timelock\");\n emit MinDelayChange(_minDelay, newDelay);\n _minDelay = newDelay;\n }\n}\n"}, "interfaces/IERC3156FlashBorrower.sol": {"urls": [], "checksum": {"algorithm": "md5", "hash": "0x6317d0dd1a63dfc0a295b00173c76f95"}, "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC3156FlashBorrower.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC3156 FlashBorrower, as defined in\n * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].\n *\n * _Available since v4.1._\n */\ninterface IERC3156FlashBorrower {\n /**\n * @dev Receive a flash loan.\n * @param initiator The initiator of the loan.\n * @param token The loan currency.\n * @param amount The amount of tokens lent.\n * @param fee The additional amount of tokens to repay.\n * @param data Arbitrary data structure, intended to contain user-defined parameters.\n * @return The keccak256 hash of \"ERC3156FlashBorrower.onFlashLoan\"\n */\n function onFlashLoan(\n address initiator,\n address token,\n uint256 amount,\n uint256 fee,\n bytes calldata data\n ) external returns (bytes32);\n}\n"}}, "contractTypes": {"AccessControl": {"contractName": "AccessControl", "sourceId": "access/AccessControl.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Contract module that allows children to implement role-based access control mechanisms. This is a lightweight version that doesn't allow enumerating role members except through off-chain means by accessing the contract event logs. Some applications may benefit from on-chain enumerability, for those cases see {AccessControlEnumerable}. Roles are referred to by their `bytes32` identifier. These should be exposed in the external API and be unique. The best way to achieve this is by using `public constant` hash digests: ``` bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\"); ``` Roles can be used to represent a set of permissions. To restrict access to a function call, use {hasRole}: ``` function foo() public { require(hasRole(MY_ROLE, msg.sender)); ... } ``` Roles can be granted and revoked dynamically via the {grantRole} and {revokeRole} functions. Each role has an associated admin role, and only accounts that have a role's admin role can call {grantRole} and {revokeRole}. By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means that only accounts with this role will be able to grant or revoke other roles. More complex role relationships can be created by using {_setRoleAdmin}. WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to grant and revoke this role. Extra precautions should be taken to secure accounts that have been granted it.", "kind": "dev", "methods": {"getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}}, "version": 1}}, "AccessControlEnumerable": {"contractName": "AccessControlEnumerable", "sourceId": "access/AccessControlEnumerable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleMember", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getRoleMemberCount", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Extension of {AccessControl} that allows enumerating the members of each role.", "kind": "dev", "methods": {"getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."}, "getRoleMember(bytes32,uint256)": {"details": "Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."}, "getRoleMemberCount(bytes32)": {"details": "Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}}, "version": 1}}, "IAccessControl": {"contractName": "IAccessControl", "sourceId": "access/IAccessControl.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "External interface of AccessControl declared to support ERC165 detection.", "events": {"RoleAdminChanged(bytes32,bytes32,bytes32)": {"details": "Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._"}, "RoleGranted(bytes32,address,address)": {"details": "Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {AccessControl-_setupRole}."}, "RoleRevoked(bytes32,address,address)": {"details": "Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call: - if using `revokeRole`, it is the admin role bearer - if using `renounceRole`, it is the role bearer (i.e. `account`)"}}, "kind": "dev", "methods": {"getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {AccessControl-_setRoleAdmin}."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}}, "version": 1}}, "IAccessControlEnumerable": {"contractName": "IAccessControlEnumerable", "sourceId": "access/IAccessControlEnumerable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleMember", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getRoleMemberCount", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "External interface of AccessControlEnumerable declared to support ERC165 detection.", "kind": "dev", "methods": {"getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {AccessControl-_setRoleAdmin}."}, "getRoleMember(bytes32,uint256)": {"details": "Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."}, "getRoleMemberCount(bytes32)": {"details": "Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}}, "version": 1}}, "Ownable": {"contractName": "Ownable", "sourceId": "access/Ownable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.", "kind": "dev", "methods": {"constructor": {"details": "Initializes the contract setting the deployer as the initial owner."}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}}, "version": 1}}, "PaymentSplitter": {"contractName": "PaymentSplitter", "sourceId": "finance/PaymentSplitter.sol", "deploymentBytecode": {"bytecode": "0x6080604052604051620011573803806200115783398101604081905262000026916200042e565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200015757620001428382815181106200011157620001116200050c565b60200260200101518383815181106200012e576200012e6200050c565b60200260200101516200016060201b60201c565b806200014e8162000538565b915050620000ee565b5050506200056f565b6001600160a01b038216620001cd5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b600081116200021f5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b038216600090815260026020526040902054156200029b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200030390829062000554565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200038d576200038d6200034c565b604052919050565b60006001600160401b03821115620003b157620003b16200034c565b5060051b60200190565b600082601f830112620003cd57600080fd5b81516020620003e6620003e08362000395565b62000362565b82815260059290921b840181019181810190868411156200040657600080fd5b8286015b848110156200042357805183529183019183016200040a565b509695505050505050565b600080604083850312156200044257600080fd5b82516001600160401b03808211156200045a57600080fd5b818501915085601f8301126200046f57600080fd5b8151602062000482620003e08362000395565b82815260059290921b84018101918181019089841115620004a257600080fd5b948201945b83861015620004d95785516001600160a01b0381168114620004c95760008081fd5b82529482019490820190620004a7565b91880151919650909350505080821115620004f357600080fd5b506200050285828601620003bb565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016200054d576200054d62000522565b5060010190565b600082198211156200056a576200056a62000522565b500190565b610bd8806200057f6000396000f3fe60806040526004361061008a5760003560e01c80638b83209b116100595780638b83209b146101845780639852595c146101bc578063ce7c2ac2146101f2578063d79779b214610228578063e33b7de31461025e57600080fd5b806319165587146100d85780633a98ef39146100fa578063406072a91461011e57806348b750441461016457600080fd5b366100d3577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100e457600080fd5b506100f86100f336600461094c565b610273565b005b34801561010657600080fd5b506000545b6040519081526020015b60405180910390f35b34801561012a57600080fd5b5061010b610139366004610969565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b34801561017057600080fd5b506100f861017f366004610969565b6103ad565b34801561019057600080fd5b506101a461019f3660046109a2565b610589565b6040516001600160a01b039091168152602001610115565b3480156101c857600080fd5b5061010b6101d736600461094c565b6001600160a01b031660009081526003602052604090205490565b3480156101fe57600080fd5b5061010b61020d36600461094c565b6001600160a01b031660009081526002602052604090205490565b34801561023457600080fd5b5061010b61024336600461094c565b6001600160a01b031660009081526005602052604090205490565b34801561026a57600080fd5b5060015461010b565b6001600160a01b0381166000908152600260205260409020546102b15760405162461bcd60e51b81526004016102a8906109bb565b60405180910390fd5b60006102bc60015490565b6102c69047610a17565b905060006102f383836102ee866001600160a01b031660009081526003602052604090205490565b6105b9565b9050806000036103155760405162461bcd60e51b81526004016102a890610a2f565b6001600160a01b0383166000908152600360205260408120805483929061033d908490610a17565b9250508190555080600160008282546103569190610a17565b90915550610366905083826105fe565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6001600160a01b0381166000908152600260205260409020546103e25760405162461bcd60e51b81526004016102a8906109bb565b6001600160a01b0382166000908152600560205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa15801561043f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104639190610a7a565b61046d9190610a17565b905060006104a683836102ee87876001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b9050806000036104c85760405162461bcd60e51b81526004016102a890610a2f565b6001600160a01b038085166000908152600660209081526040808320938716835292905290812080548392906104ff908490610a17565b90915550506001600160a01b0384166000908152600560205260408120805483929061052c908490610a17565b9091555061053d905084848361071c565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60006004828154811061059e5761059e610a93565b6000918252602090912001546001600160a01b031692915050565b600080546001600160a01b0385168252600260205260408220548391906105e09086610aa9565b6105ea9190610ac8565b6105f49190610aea565b90505b9392505050565b8047101561064e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102a8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461069b576040519150601f19603f3d011682016040523d82523d6000602084013e6106a0565b606091505b50509050806107175760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102a8565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610717928692916000916107ac918516908490610829565b80519091501561071757808060200190518101906107ca9190610b01565b6107175760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a8565b60606105f4848460008585843b6108825760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a8565b600080866001600160a01b0316858760405161089e9190610b53565b60006040518083038185875af1925050503d80600081146108db576040519150601f19603f3d011682016040523d82523d6000602084013e6108e0565b606091505b50915091506108f08282866108fb565b979650505050505050565b6060831561090a5750816105f7565b82511561091a5782518084602001fd5b8160405162461bcd60e51b81526004016102a89190610b6f565b6001600160a01b038116811461094957600080fd5b50565b60006020828403121561095e57600080fd5b81356105f781610934565b6000806040838503121561097c57600080fd5b823561098781610934565b9150602083013561099781610934565b809150509250929050565b6000602082840312156109b457600080fd5b5035919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610a2a57610a2a610a01565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b600060208284031215610a8c57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615610ac357610ac3610a01565b500290565b600082610ae557634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610afc57610afc610a01565b500390565b600060208284031215610b1357600080fd5b815180151581146105f757600080fd5b60005b83811015610b3e578181015183820152602001610b26565b83811115610b4d576000848401525b50505050565b60008251610b65818460208701610b23565b9190910192915050565b6020815260008251806020840152610b8e816040850160208701610b23565b601f01601f1916919091016040019291505056fea26469706673582212207bca78ffedda8a4cc3ff122f50d5d4d94192e12f311e7619301e0389e270246364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x60806040526004361061008a5760003560e01c80638b83209b116100595780638b83209b146101845780639852595c146101bc578063ce7c2ac2146101f2578063d79779b214610228578063e33b7de31461025e57600080fd5b806319165587146100d85780633a98ef39146100fa578063406072a91461011e57806348b750441461016457600080fd5b366100d3577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100e457600080fd5b506100f86100f336600461094c565b610273565b005b34801561010657600080fd5b506000545b6040519081526020015b60405180910390f35b34801561012a57600080fd5b5061010b610139366004610969565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b34801561017057600080fd5b506100f861017f366004610969565b6103ad565b34801561019057600080fd5b506101a461019f3660046109a2565b610589565b6040516001600160a01b039091168152602001610115565b3480156101c857600080fd5b5061010b6101d736600461094c565b6001600160a01b031660009081526003602052604090205490565b3480156101fe57600080fd5b5061010b61020d36600461094c565b6001600160a01b031660009081526002602052604090205490565b34801561023457600080fd5b5061010b61024336600461094c565b6001600160a01b031660009081526005602052604090205490565b34801561026a57600080fd5b5060015461010b565b6001600160a01b0381166000908152600260205260409020546102b15760405162461bcd60e51b81526004016102a8906109bb565b60405180910390fd5b60006102bc60015490565b6102c69047610a17565b905060006102f383836102ee866001600160a01b031660009081526003602052604090205490565b6105b9565b9050806000036103155760405162461bcd60e51b81526004016102a890610a2f565b6001600160a01b0383166000908152600360205260408120805483929061033d908490610a17565b9250508190555080600160008282546103569190610a17565b90915550610366905083826105fe565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6001600160a01b0381166000908152600260205260409020546103e25760405162461bcd60e51b81526004016102a8906109bb565b6001600160a01b0382166000908152600560205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa15801561043f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104639190610a7a565b61046d9190610a17565b905060006104a683836102ee87876001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b9050806000036104c85760405162461bcd60e51b81526004016102a890610a2f565b6001600160a01b038085166000908152600660209081526040808320938716835292905290812080548392906104ff908490610a17565b90915550506001600160a01b0384166000908152600560205260408120805483929061052c908490610a17565b9091555061053d905084848361071c565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60006004828154811061059e5761059e610a93565b6000918252602090912001546001600160a01b031692915050565b600080546001600160a01b0385168252600260205260408220548391906105e09086610aa9565b6105ea9190610ac8565b6105f49190610aea565b90505b9392505050565b8047101561064e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102a8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461069b576040519150601f19603f3d011682016040523d82523d6000602084013e6106a0565b606091505b50509050806107175760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102a8565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610717928692916000916107ac918516908490610829565b80519091501561071757808060200190518101906107ca9190610b01565b6107175760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a8565b60606105f4848460008585843b6108825760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a8565b600080866001600160a01b0316858760405161089e9190610b53565b60006040518083038185875af1925050503d80600081146108db576040519150601f19603f3d011682016040523d82523d6000602084013e6108e0565b606091505b50915091506108f08282866108fb565b979650505050505050565b6060831561090a5750816105f7565b82511561091a5782518084602001fd5b8160405162461bcd60e51b81526004016102a89190610b6f565b6001600160a01b038116811461094957600080fd5b50565b60006020828403121561095e57600080fd5b81356105f781610934565b6000806040838503121561097c57600080fd5b823561098781610934565b9150602083013561099781610934565b809150509250929050565b6000602082840312156109b457600080fd5b5035919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610a2a57610a2a610a01565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b600060208284031215610a8c57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615610ac357610ac3610a01565b500290565b600082610ae557634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610afc57610afc610a01565b500390565b600060208284031215610b1357600080fd5b815180151581146105f757600080fd5b60005b83811015610b3e578181015183820152602001610b26565b83811115610b4d576000848401525b50505050565b60008251610b65818460208701610b23565b9190910192915050565b6020815260008251806020840152610b8e816040850160208701610b23565b601f01601f1916919091016040019291505056fea26469706673582212207bca78ffedda8a4cc3ff122f50d5d4d94192e12f311e7619301e0389e270246364736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "payable", "inputs": [{"name": "payees", "type": "address[]", "internalType": "address[]"}, {"name": "shares_", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "event", "name": "ERC20PaymentReleased", "inputs": [{"name": "token", "type": "address", "internalType": "contract IERC20", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": false}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "PayeeAdded", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}, {"name": "shares", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "PaymentReceived", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": false}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "PaymentReleased", "inputs": [{"name": "to", "type": "address", "internalType": "address", "indexed": false}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "payee", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "release", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address payable"}], "outputs": []}, {"type": "function", "name": "release", "stateMutability": "nonpayable", "inputs": [{"name": "token", "type": "address", "internalType": "contract IERC20"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "released", "stateMutability": "view", "inputs": [{"name": "token", "type": "address", "internalType": "contract IERC20"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "released", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "shares", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "totalReleased", "stateMutability": "view", "inputs": [{"name": "token", "type": "address", "internalType": "contract IERC20"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "totalReleased", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "totalShares", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware that the Ether will be split in this way, since it is handled transparently by the contract. The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim an amount proportional to the percentage of total shares they were assigned. `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} function. NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you to run tests before sending real value to this contract.", "kind": "dev", "methods": {"constructor": {"details": "Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at the matching position in the `shares` array. All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no duplicates in `payees`."}, "payee(uint256)": {"details": "Getter for the address of the payee number `index`."}, "release(address)": {"details": "Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the total shares and their previous withdrawals."}, "release(address,address)": {"details": "Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 contract."}, "released(address)": {"details": "Getter for the amount of Ether already released to a payee."}, "released(address,address)": {"details": "Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an IERC20 contract."}, "shares(address)": {"details": "Getter for the amount of shares held by an account."}, "totalReleased()": {"details": "Getter for the total amount of Ether already released."}, "totalReleased(address)": {"details": "Getter for the total amount of `token` already released. `token` should be the address of an IERC20 contract."}, "totalShares()": {"details": "Getter for the total shares held by payees."}}, "title": "PaymentSplitter", "version": 1}}, "VestingWallet": {"contractName": "VestingWallet", "sourceId": "finance/VestingWallet.sol", "deploymentBytecode": {"bytecode": "0x60e060405234801561001057600080fd5b50604051610c68380380610c6883398101604081905261002f916100dd565b6001600160a01b03831661009c5760405162461bcd60e51b815260206004820152602a60248201527f56657374696e6757616c6c65743a2062656e6566696369617279206973207a65604482015269726f206164647265737360b01b606482015260840160405180910390fd5b6001600160a01b039092166080526001600160401b0390811660a0521660c05261012e565b80516001600160401b03811681146100d857600080fd5b919050565b6000806000606084860312156100f257600080fd5b83516001600160a01b038116811461010957600080fd5b9250610117602085016100c1565b9150610125604085016100c1565b90509250925092565b60805160a05160c051610af06101786000396000818160d80152818161046901526104be01526000610421015260008181610142015281816102c801526103ee0152610af06000f3fe60806040526004361061008a5760003560e01c8063810ec23b11610059578063810ec23b1461016c57806386d1a69f1461018c57806396132521146101a15780639852595c146101b6578063be9a6555146101ec57600080fd5b80630a17b06b146100965780630fb5a6b4146100c9578063191655871461010657806338af3eed1461012857600080fd5b3661009157005b600080fd5b3480156100a257600080fd5b506100b66100b13660046108fa565b610201565b6040519081526020015b60405180910390f35b3480156100d557600080fd5b507f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166100b6565b34801561011257600080fd5b5061012661012136600461092c565b610225565b005b34801561013457600080fd5b506040516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001681526020016100c0565b34801561017857600080fd5b506100b6610187366004610947565b6102f1565b34801561019857600080fd5b50610126610387565b3480156101ad57600080fd5b506000546100b6565b3480156101c257600080fd5b506100b66101d136600461092c565b6001600160a01b031660009081526001602052604090205490565b3480156101f857600080fd5b506100b6610416565b600061021f61020f60005490565b6102199047610990565b83610444565b92915050565b6001600160a01b03811660009081526001602052604081205461024883426102f1565b61025291906109a8565b6001600160a01b03831660009081526001602052604081208054929350839290919061027f908490610990565b90915550506040518181526001600160a01b038316907fc0e523490dd523c33b1878c9eb14ff46991e3f5b2cd33710918618f2a39cba1b9060200160405180910390a26102ed827f00000000000000000000000000000000000000000000000000000000000000008361051e565b5050565b6001600160a01b038216600090815260016020526040812054610380906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015610352573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037691906109bf565b6102199190610990565b9392505050565b6000805461039442610201565b61039e91906109a8565b9050806000808282546103b19190610990565b90915550506040518181527fda9d4e5f101b8b9b1c5b76d0c5a9f7923571acfc02376aa076b75a8c080c956b9060200160405180910390a16104137f000000000000000000000000000000000000000000000000000000000000000082610575565b50565b67ffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690565b600061044e610416565b8267ffffffffffffffff1610156104675750600061021f565b7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff1661049a610416565b6104a49190610990565b8267ffffffffffffffff1611156104bc57508161021f565b7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166104ef610416565b6105039067ffffffffffffffff85166109a8565b61050d90856109d8565b61051791906109f7565b905061021f565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610570908490610693565b505050565b804710156105ca5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064015b60405180910390fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610617576040519150601f19603f3d011682016040523d82523d6000602084013e61061c565b606091505b50509050806105705760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016105c1565b60006106e8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107659092919063ffffffff16565b80519091501561057057808060200190518101906107069190610a19565b6105705760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105c1565b6060610774848460008561077c565b949350505050565b6060824710156107dd5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105c1565b843b61082b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105c1565b600080866001600160a01b031685876040516108479190610a6b565b60006040518083038185875af1925050503d8060008114610884576040519150601f19603f3d011682016040523d82523d6000602084013e610889565b606091505b50915091506108998282866108a4565b979650505050505050565b606083156108b3575081610380565b8251156108c35782518084602001fd5b8160405162461bcd60e51b81526004016105c19190610a87565b803567ffffffffffffffff811681146108f557600080fd5b919050565b60006020828403121561090c57600080fd5b610380826108dd565b80356001600160a01b03811681146108f557600080fd5b60006020828403121561093e57600080fd5b61038082610915565b6000806040838503121561095a57600080fd5b61096383610915565b9150610971602084016108dd565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b600082198211156109a3576109a361097a565b500190565b6000828210156109ba576109ba61097a565b500390565b6000602082840312156109d157600080fd5b5051919050565b60008160001904831182151516156109f2576109f261097a565b500290565b600082610a1457634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610a2b57600080fd5b8151801515811461038057600080fd5b60005b83811015610a56578181015183820152602001610a3e565b83811115610a65576000848401525b50505050565b60008251610a7d818460208701610a3b565b9190910192915050565b6020815260008251806020840152610aa6816040850160208701610a3b565b601f01601f1916919091016040019291505056fea26469706673582212201215f4cbfb4f284b21ad29a62c69f3c4e554847aebdb8467c6b4586ec6298a1764736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x60806040526004361061008a5760003560e01c8063810ec23b11610059578063810ec23b1461016c57806386d1a69f1461018c57806396132521146101a15780639852595c146101b6578063be9a6555146101ec57600080fd5b80630a17b06b146100965780630fb5a6b4146100c9578063191655871461010657806338af3eed1461012857600080fd5b3661009157005b600080fd5b3480156100a257600080fd5b506100b66100b13660046108fa565b610201565b6040519081526020015b60405180910390f35b3480156100d557600080fd5b507f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166100b6565b34801561011257600080fd5b5061012661012136600461092c565b610225565b005b34801561013457600080fd5b506040516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001681526020016100c0565b34801561017857600080fd5b506100b6610187366004610947565b6102f1565b34801561019857600080fd5b50610126610387565b3480156101ad57600080fd5b506000546100b6565b3480156101c257600080fd5b506100b66101d136600461092c565b6001600160a01b031660009081526001602052604090205490565b3480156101f857600080fd5b506100b6610416565b600061021f61020f60005490565b6102199047610990565b83610444565b92915050565b6001600160a01b03811660009081526001602052604081205461024883426102f1565b61025291906109a8565b6001600160a01b03831660009081526001602052604081208054929350839290919061027f908490610990565b90915550506040518181526001600160a01b038316907fc0e523490dd523c33b1878c9eb14ff46991e3f5b2cd33710918618f2a39cba1b9060200160405180910390a26102ed827f00000000000000000000000000000000000000000000000000000000000000008361051e565b5050565b6001600160a01b038216600090815260016020526040812054610380906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa158015610352573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037691906109bf565b6102199190610990565b9392505050565b6000805461039442610201565b61039e91906109a8565b9050806000808282546103b19190610990565b90915550506040518181527fda9d4e5f101b8b9b1c5b76d0c5a9f7923571acfc02376aa076b75a8c080c956b9060200160405180910390a16104137f000000000000000000000000000000000000000000000000000000000000000082610575565b50565b67ffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690565b600061044e610416565b8267ffffffffffffffff1610156104675750600061021f565b7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff1661049a610416565b6104a49190610990565b8267ffffffffffffffff1611156104bc57508161021f565b7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166104ef610416565b6105039067ffffffffffffffff85166109a8565b61050d90856109d8565b61051791906109f7565b905061021f565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610570908490610693565b505050565b804710156105ca5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064015b60405180910390fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610617576040519150601f19603f3d011682016040523d82523d6000602084013e61061c565b606091505b50509050806105705760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016105c1565b60006106e8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107659092919063ffffffff16565b80519091501561057057808060200190518101906107069190610a19565b6105705760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105c1565b6060610774848460008561077c565b949350505050565b6060824710156107dd5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105c1565b843b61082b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105c1565b600080866001600160a01b031685876040516108479190610a6b565b60006040518083038185875af1925050503d8060008114610884576040519150601f19603f3d011682016040523d82523d6000602084013e610889565b606091505b50915091506108998282866108a4565b979650505050505050565b606083156108b3575081610380565b8251156108c35782518084602001fd5b8160405162461bcd60e51b81526004016105c19190610a87565b803567ffffffffffffffff811681146108f557600080fd5b919050565b60006020828403121561090c57600080fd5b610380826108dd565b80356001600160a01b03811681146108f557600080fd5b60006020828403121561093e57600080fd5b61038082610915565b6000806040838503121561095a57600080fd5b61096383610915565b9150610971602084016108dd565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b600082198211156109a3576109a361097a565b500190565b6000828210156109ba576109ba61097a565b500390565b6000602082840312156109d157600080fd5b5051919050565b60008160001904831182151516156109f2576109f261097a565b500290565b600082610a1457634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610a2b57600080fd5b8151801515811461038057600080fd5b60005b83811015610a56578181015183820152602001610a3e565b83811115610a65576000848401525b50505050565b60008251610a7d818460208701610a3b565b9190910192915050565b6020815260008251806020840152610aa6816040850160208701610a3b565b601f01601f1916919091016040019291505056fea26469706673582212201215f4cbfb4f284b21ad29a62c69f3c4e554847aebdb8467c6b4586ec6298a1764736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "beneficiaryAddress", "type": "address", "internalType": "address"}, {"name": "startTimestamp", "type": "uint64", "internalType": "uint64"}, {"name": "durationSeconds", "type": "uint64", "internalType": "uint64"}]}, {"type": "event", "name": "ERC20Released", "inputs": [{"name": "token", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "EtherReleased", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "beneficiary", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "duration", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "release", "stateMutability": "nonpayable", "inputs": [{"name": "token", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "release", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "released", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "released", "stateMutability": "view", "inputs": [{"name": "token", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "start", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "vestedAmount", "stateMutability": "view", "inputs": [{"name": "timestamp", "type": "uint64", "internalType": "uint64"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "vestedAmount", "stateMutability": "view", "inputs": [{"name": "token", "type": "address", "internalType": "address"}, {"name": "timestamp", "type": "uint64", "internalType": "uint64"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This contract handles the vesting of Eth and ERC20 tokens for a given beneficiary. Custody of multiple tokens can be given to this contract, which will release the token to the beneficiary following a given vesting schedule. The vesting schedule is customizable through the {vestedAmount} function. Any token transferred to this contract will follow the vesting schedule as if they were locked from the beginning. Consequently, if the vesting has already started, any amount of tokens sent to this contract will (at least partly) be immediately releasable.", "kind": "dev", "methods": {"beneficiary()": {"details": "Getter for the beneficiary address."}, "constructor": {"details": "Set the beneficiary, start timestamp and vesting duration of the vesting wallet."}, "duration()": {"details": "Getter for the vesting duration."}, "release()": {"details": "Release the native token (ether) that have already vested. Emits a {TokensReleased} event."}, "release(address)": {"details": "Release the tokens that have already vested. Emits a {TokensReleased} event."}, "released()": {"details": "Amount of eth already released"}, "released(address)": {"details": "Amount of token already released"}, "start()": {"details": "Getter for the start timestamp."}, "vestedAmount(address,uint64)": {"details": "Calculates the amount of tokens that has already vested. Default implementation is a linear vesting curve."}, "vestedAmount(uint64)": {"details": "Calculates the amount of ether that has already vested. Default implementation is a linear vesting curve."}}, "title": "VestingWallet", "version": 1}}, "Governor": {"contractName": "Governor", "sourceId": "governance/Governor.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "getVotes(address,uint256)": {"notice": "module:reputation"}, "hasVoted(uint256,address)": {"notice": "module:voting"}, "quorum(uint256)": {"notice": "module:user-config"}, "votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"details": "Core of the governance system, designed to be extended though various modules. This contract is abstract and requires several function to be implemented in various modules: - A counting module must implement {quorum}, {_quorumReached}, {_voteSucceeded} and {_countVote} - A voting module must implement {getVotes} - Additionanly, the {votingPeriod} must also be implemented _Available since v4.3._", "kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "constructor": {"details": "Sets the value for {name} and {version}"}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "getVotes(address,uint256)": {"details": "Voting power of an `account` at a specific `blockNumber`. Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or multiple), {ERC20Votes} tokens."}, "hasVoted(uint256,address)": {"details": "Returns weither `account` has cast a vote on `proposalId`."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_."}, "propose(address[],uint256[],bytes[],string)": {"details": "See {IGovernor-propose}."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "state(uint256)": {"details": "See {IGovernor-state}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "IGovernor": {"contractName": "IGovernor", "sourceId": "governance/IGovernor.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "getVotes(address,uint256)": {"notice": "module:reputation"}, "hasVoted(uint256,address)": {"notice": "module:voting"}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"notice": "module:core"}, "name()": {"notice": "module:core"}, "proposalDeadline(uint256)": {"notice": "module:core"}, "proposalSnapshot(uint256)": {"notice": "module:core"}, "quorum(uint256)": {"notice": "module:user-config"}, "state(uint256)": {"notice": "module:core"}, "version()": {"notice": "module:core"}, "votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"details": "Interface of the {Governor} core. _Available since v4.3._", "events": {"ProposalCanceled(uint256)": {"details": "Emitted when a proposal is canceled."}, "ProposalCreated(uint256,address,address[],uint256[],string[],bytes[],uint256,uint256,string)": {"details": "Emitted when a proposal is created."}, "ProposalExecuted(uint256)": {"details": "Emitted when a proposal is executed."}, "VoteCast(address,uint256,uint8,uint256,string)": {"details": "Emitted when a vote is cast. Note: `support` values should be seen as buckets. There interpretation depends on the voting module used."}}, "kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "castVote(uint256,uint8)": {"details": "Cast a vote Emits a {VoteCast} event."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "Cast a vote using the user cryptographic signature. Emits a {VoteCast} event."}, "castVoteWithReason(uint256,uint8,string)": {"details": "Cast a with a reason Emits a {VoteCast} event."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "Execute a successful proposal. This requires the quorum to be reached, the vote to be successful, and the deadline to be reached. Emits a {ProposalExecuted} event. Note: some module can modify the requirements for execution, for example by adding an additional timelock."}, "getVotes(address,uint256)": {"details": "Voting power of an `account` at a specific `blockNumber`. Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or multiple), {ERC20Votes} tokens."}, "hasVoted(uint256,address)": {"details": "Returns weither `account` has cast a vote on `proposalId`."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "Hashing function used to (re)build the proposal id from the proposal details.."}, "name()": {"details": "Name of the governor instance (used in building the ERC712 domain separator)."}, "proposalDeadline(uint256)": {"details": "Block number at which votes close. Votes close at the end of this block, so it is possible to cast a vote during this block."}, "proposalSnapshot(uint256)": {"details": "Block number used to retrieve user's votes and quorum. As per Compound's Comp and OpenZeppelin's ERC20Votes, the snapshot is performed at the end of this block. Hence, voting for this proposal starts at the beginning of the following block."}, "propose(address[],uint256[],bytes[],string)": {"details": "Create a new proposal. Vote start {IGovernor-votingDelay} blocks after the proposal is created and ends {IGovernor-votingPeriod} blocks after the voting starts. Emits a {ProposalCreated} event."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "state(uint256)": {"details": "Current state of a proposal, following Compound's convention"}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}, "version()": {"details": "Version of the governor instance (used in building the ERC712 domain separator). Default: \"1\""}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "TimelockController": {"contractName": "TimelockController", "sourceId": "governance/TimelockController.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162001e1938038062001e198339810160408190526200003491620003a4565b6200004f60008051602062001db983398151915280620001c9565b6200007960008051602062001dd983398151915260008051602062001db9833981519152620001c9565b620000a360008051602062001df983398151915260008051602062001db9833981519152620001c9565b620000be60008051602062001db98339815191523362000214565b620000d960008051602062001db98339815191523062000214565b60005b825181101562000136576200012360008051602062001dd98339815191528483815181106200010f576200010f62000418565b60200260200101516200021460201b60201c565b6200012e816200042e565b9050620000dc565b5060005b815181101562000180576200016d60008051602062001df98339815191528383815181106200010f576200010f62000418565b62000178816200042e565b90506200013a565b5060028390556040805160008152602081018590527f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5910160405180910390a150505062000456565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b62000220828262000224565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000220576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002803390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620002f257600080fd5b919050565b600082601f8301126200030957600080fd5b815160206001600160401b0380831115620003285762000328620002c4565b8260051b604051601f19603f83011681018181108482111715620003505762000350620002c4565b6040529384528581018301938381019250878511156200036f57600080fd5b83870191505b8482101562000399576200038982620002da565b8352918301919083019062000375565b979650505050505050565b600080600060608486031215620003ba57600080fd5b835160208501519093506001600160401b0380821115620003da57600080fd5b620003e887838801620002f7565b93506040860151915080821115620003ff57600080fd5b506200040e86828701620002f7565b9150509250925092565b634e487b7160e01b600052603260045260246000fd5b6000600182016200044f57634e487b7160e01b600052601160045260246000fd5b5060010190565b61195380620004666000396000f3fe60806040526004361061014f5760003560e01c806364d62353116100b6578063b1c5f4271161006f578063b1c5f427146103f3578063c4d252f514610413578063d45c443514610433578063d547741f14610460578063e38335e514610480578063f27a0c921461049357600080fd5b806364d623531461033c5780638065657f1461035c5780638f2a0bb01461037c5780638f61f4f51461039c57806391d14854146103be578063a217fddf146103de57600080fd5b8063248a9ca311610108578063248a9ca31461025b5780632ab0f5291461028b5780632f2ff15d146102bc57806331d50750146102dc57806336568abe146102fc578063584b153e1461031c57600080fd5b806301d5062a1461015b57806301ffc9a71461017d57806307bd0265146101b25780630d3cf6fc146101f4578063134008d31461022857806313bc9f201461023b57600080fd5b3661015657005b600080fd5b34801561016757600080fd5b5061017b6101763660046111b5565b6104a8565b005b34801561018957600080fd5b5061019d61019836600461122a565b61052c565b60405190151581526020015b60405180910390f35b3480156101be57600080fd5b506101e67fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6381565b6040519081526020016101a9565b34801561020057600080fd5b506101e67f5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca581565b61017b610236366004611254565b610563565b34801561024757600080fd5b5061019d6102563660046112c0565b6105db565b34801561026757600080fd5b506101e66102763660046112c0565b60009081526020819052604090206001015490565b34801561029757600080fd5b5061019d6102a63660046112c0565b6000908152600160208190526040909120541490565b3480156102c857600080fd5b5061017b6102d73660046112d9565b610601565b3480156102e857600080fd5b5061019d6102f73660046112c0565b61062c565b34801561030857600080fd5b5061017b6103173660046112d9565b610645565b34801561032857600080fd5b5061019d6103373660046112c0565b6106c8565b34801561034857600080fd5b5061017b6103573660046112c0565b6106de565b34801561036857600080fd5b506101e6610377366004611254565b610782565b34801561038857600080fd5b5061017b61039736600461134a565b6107c1565b3480156103a857600080fd5b506101e66000805160206118fe83398151915281565b3480156103ca57600080fd5b5061019d6103d93660046112d9565b610902565b3480156103ea57600080fd5b506101e6600081565b3480156103ff57600080fd5b506101e661040e3660046113fc565b61092b565b34801561041f57600080fd5b5061017b61042e3660046112c0565b610970565b34801561043f57600080fd5b506101e661044e3660046112c0565b60009081526001602052604090205490565b34801561046c57600080fd5b5061017b61047b3660046112d9565b610a34565b61017b61048e3660046113fc565b610a5a565b34801561049f57600080fd5b506002546101e6565b6000805160206118fe8339815191526104c18133610b8f565b60006104d1898989898989610782565b90506104dd8184610bf3565b6000817f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8b8b8b8b8b8a604051610519969594939291906114ce565b60405180910390a3505050505050505050565b60006001600160e01b03198216637965db0b60e01b148061055d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b7fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6361058f816000610902565b61059d5761059d8133610b8f565b60006105ad888888888888610782565b90506105b98185610ce2565b6105c88160008a8a8a8a610d7e565b6105d181610e92565b5050505050505050565b6000818152600160205260408120546001811180156105fa5750428111155b9392505050565b60008281526020819052604090206001015461061d8133610b8f565b6106278383610ecb565b505050565b60008181526001602052604081205481905b1192915050565b6001600160a01b03811633146106ba5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6106c48282610f4f565b5050565b600081815260016020819052604082205461063e565b3330146107415760405162461bcd60e51b815260206004820152602b60248201527f54696d656c6f636b436f6e74726f6c6c65723a2063616c6c6572206d7573742060448201526a62652074696d656c6f636b60a81b60648201526084016106b1565b60025460408051918252602082018390527f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5910160405180910390a1600255565b600086868686868660405160200161079f969594939291906114ce565b6040516020818303038152906040528051906020012090509695505050505050565b6000805160206118fe8339815191526107da8133610b8f565b8887146107f95760405162461bcd60e51b81526004016106b19061150b565b8885146108185760405162461bcd60e51b81526004016106b19061150b565b600061082a8b8b8b8b8b8b8b8b61092b565b90506108368184610bf3565b60005b8a8110156108f45780827f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8e8e858181106108765761087661154e565b905060200201602081019061088b9190611564565b8d8d8681811061089d5761089d61154e565b905060200201358c8c878181106108b6576108b661154e565b90506020028101906108c8919061157f565b8c8b6040516108dc969594939291906114ce565b60405180910390a36108ed816115dc565b9050610839565b505050505050505050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000888888888888888860405160200161094c98979695949392919061168a565b60405160208183030381529060405280519060200120905098975050505050505050565b6000805160206118fe8339815191526109898133610b8f565b610992826106c8565b6109f85760405162461bcd60e51b815260206004820152603160248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e2063616044820152701b9b9bdd0818994818d85b98d95b1b1959607a1b60648201526084016106b1565b6000828152600160205260408082208290555183917fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7091a25050565b600082815260208190526040902060010154610a508133610b8f565b6106278383610f4f565b7fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63610a86816000610902565b610a9457610a948133610b8f565b878614610ab35760405162461bcd60e51b81526004016106b19061150b565b878414610ad25760405162461bcd60e51b81526004016106b19061150b565b6000610ae48a8a8a8a8a8a8a8a61092b565b9050610af08185610ce2565b60005b89811015610b7957610b6982828d8d85818110610b1257610b1261154e565b9050602002016020810190610b279190611564565b8c8c86818110610b3957610b3961154e565b905060200201358b8b87818110610b5257610b5261154e565b9050602002810190610b64919061157f565b610d7e565b610b72816115dc565b9050610af3565b50610b8381610e92565b50505050505050505050565b610b998282610902565b6106c457610bb1816001600160a01b03166014610fb4565b610bbc836020610fb4565b604051602001610bcd929190611765565b60408051601f198184030181529082905262461bcd60e51b82526106b1916004016117da565b610bfc8261062c565b15610c615760405162461bcd60e51b815260206004820152602f60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e20616c60448201526e1c9958591e481cd8da19591d5b1959608a1b60648201526084016106b1565b600254811015610cc25760405162461bcd60e51b815260206004820152602660248201527f54696d656c6f636b436f6e74726f6c6c65723a20696e73756666696369656e746044820152652064656c617960d01b60648201526084016106b1565b610ccc814261180d565b6000928352600160205260409092209190915550565b610ceb826105db565b610d075760405162461bcd60e51b81526004016106b190611825565b801580610d235750600081815260016020819052604090912054145b6106c45760405162461bcd60e51b815260206004820152602660248201527f54696d656c6f636b436f6e74726f6c6c65723a206d697373696e6720646570656044820152656e64656e637960d01b60648201526084016106b1565b6000846001600160a01b0316848484604051610d9b92919061186f565b60006040518083038185875af1925050503d8060008114610dd8576040519150601f19603f3d011682016040523d82523d6000602084013e610ddd565b606091505b5050905080610e4a5760405162461bcd60e51b815260206004820152603360248201527f54696d656c6f636b436f6e74726f6c6c65723a20756e6465726c79696e6720746044820152721c985b9cd858dd1a5bdb881c995d995c9d1959606a1b60648201526084016106b1565b85877fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b5887878787604051610e81949392919061187f565b60405180910390a350505050505050565b610e9b816105db565b610eb75760405162461bcd60e51b81526004016106b190611825565b600090815260016020819052604090912055565b610ed58282610902565b6106c4576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610f0b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610f598282610902565b156106c4576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606000610fc38360026118b1565b610fce90600261180d565b67ffffffffffffffff811115610fe657610fe66118d0565b6040519080825280601f01601f191660200182016040528015611010576020820181803683370190505b509050600360fc1b8160008151811061102b5761102b61154e565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061105a5761105a61154e565b60200101906001600160f81b031916908160001a905350600061107e8460026118b1565b61108990600161180d565b90505b6001811115611101576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106110bd576110bd61154e565b1a60f81b8282815181106110d3576110d361154e565b60200101906001600160f81b031916908160001a90535060049490941c936110fa816118e6565b905061108c565b5083156105fa5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106b1565b80356001600160a01b038116811461116757600080fd5b919050565b60008083601f84011261117e57600080fd5b50813567ffffffffffffffff81111561119657600080fd5b6020830191508360208285010111156111ae57600080fd5b9250929050565b600080600080600080600060c0888a0312156111d057600080fd5b6111d988611150565b965060208801359550604088013567ffffffffffffffff8111156111fc57600080fd5b6112088a828b0161116c565b989b979a50986060810135976080820135975060a09091013595509350505050565b60006020828403121561123c57600080fd5b81356001600160e01b0319811681146105fa57600080fd5b60008060008060008060a0878903121561126d57600080fd5b61127687611150565b955060208701359450604087013567ffffffffffffffff81111561129957600080fd5b6112a589828a0161116c565b979a9699509760608101359660809091013595509350505050565b6000602082840312156112d257600080fd5b5035919050565b600080604083850312156112ec57600080fd5b823591506112fc60208401611150565b90509250929050565b60008083601f84011261131757600080fd5b50813567ffffffffffffffff81111561132f57600080fd5b6020830191508360208260051b85010111156111ae57600080fd5b600080600080600080600080600060c08a8c03121561136857600080fd5b893567ffffffffffffffff8082111561138057600080fd5b61138c8d838e01611305565b909b50995060208c01359150808211156113a557600080fd5b6113b18d838e01611305565b909950975060408c01359150808211156113ca57600080fd5b506113d78c828d01611305565b9a9d999c50979a969997986060880135976080810135975060a0013595509350505050565b60008060008060008060008060a0898b03121561141857600080fd5b883567ffffffffffffffff8082111561143057600080fd5b61143c8c838d01611305565b909a50985060208b013591508082111561145557600080fd5b6114618c838d01611305565b909850965060408b013591508082111561147a57600080fd5b506114878b828c01611305565b999c989b509699959896976060870135966080013595509350505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b038716815285602082015260a0604082015260006114f660a0830186886114a5565b60608301949094525060800152949350505050565b60208082526023908201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616040820152620e8c6d60eb1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561157657600080fd5b6105fa82611150565b6000808335601e1984360301811261159657600080fd5b83018035915067ffffffffffffffff8211156115b157600080fd5b6020019150368190038213156111ae57600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016115ee576115ee6115c6565b5060010190565b60008383855260208086019550808560051b8301018460005b8781101561167d57848303601f19018952813536889003601e1901811261163457600080fd5b8701803567ffffffffffffffff81111561164d57600080fd5b80360389131561165c57600080fd5b61166985828885016114a5565b9a86019a945050509083019060010161160e565b5090979650505050505050565b60a0808252810188905260008960c08301825b8b8110156116cb576001600160a01b036116b684611150565b1682526020928301929091019060010161169d565b5083810360208501528881526001600160fb1b038911156116eb57600080fd5b8860051b9150818a60208301378181019150506020810160008152602084830301604085015261171c81888a6115f5565b6060850196909652505050608001529695505050505050565b60005b83811015611750578181015183820152602001611738565b8381111561175f576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161179d816017850160208801611735565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516117ce816028840160208801611735565b01602801949350505050565b60208152600082518060208401526117f9816040850160208701611735565b601f01601f19169190910160400192915050565b60008219821115611820576118206115c6565b500190565b6020808252602a908201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e206973604082015269206e6f7420726561647960b01b606082015260800190565b8183823760009101908152919050565b60018060a01b03851681528360208201526060604082015260006118a76060830184866114a5565b9695505050505050565b60008160001904831182151516156118cb576118cb6115c6565b500290565b634e487b7160e01b600052604160045260246000fd5b6000816118f5576118f56115c6565b50600019019056feb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1a2646970667358221220d5ca05b38a7fdd6ea9b5e78300435aaf1f8eb578af10e2b17cb10aa1b17c41de64736f6c634300080d00335f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca5b09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1d8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63"}, "runtimeBytecode": {"bytecode": "0x60806040526004361061014f5760003560e01c806364d62353116100b6578063b1c5f4271161006f578063b1c5f427146103f3578063c4d252f514610413578063d45c443514610433578063d547741f14610460578063e38335e514610480578063f27a0c921461049357600080fd5b806364d623531461033c5780638065657f1461035c5780638f2a0bb01461037c5780638f61f4f51461039c57806391d14854146103be578063a217fddf146103de57600080fd5b8063248a9ca311610108578063248a9ca31461025b5780632ab0f5291461028b5780632f2ff15d146102bc57806331d50750146102dc57806336568abe146102fc578063584b153e1461031c57600080fd5b806301d5062a1461015b57806301ffc9a71461017d57806307bd0265146101b25780630d3cf6fc146101f4578063134008d31461022857806313bc9f201461023b57600080fd5b3661015657005b600080fd5b34801561016757600080fd5b5061017b6101763660046111b5565b6104a8565b005b34801561018957600080fd5b5061019d61019836600461122a565b61052c565b60405190151581526020015b60405180910390f35b3480156101be57600080fd5b506101e67fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6381565b6040519081526020016101a9565b34801561020057600080fd5b506101e67f5f58e3a2316349923ce3780f8d587db2d72378aed66a8261c916544fa6846ca581565b61017b610236366004611254565b610563565b34801561024757600080fd5b5061019d6102563660046112c0565b6105db565b34801561026757600080fd5b506101e66102763660046112c0565b60009081526020819052604090206001015490565b34801561029757600080fd5b5061019d6102a63660046112c0565b6000908152600160208190526040909120541490565b3480156102c857600080fd5b5061017b6102d73660046112d9565b610601565b3480156102e857600080fd5b5061019d6102f73660046112c0565b61062c565b34801561030857600080fd5b5061017b6103173660046112d9565b610645565b34801561032857600080fd5b5061019d6103373660046112c0565b6106c8565b34801561034857600080fd5b5061017b6103573660046112c0565b6106de565b34801561036857600080fd5b506101e6610377366004611254565b610782565b34801561038857600080fd5b5061017b61039736600461134a565b6107c1565b3480156103a857600080fd5b506101e66000805160206118fe83398151915281565b3480156103ca57600080fd5b5061019d6103d93660046112d9565b610902565b3480156103ea57600080fd5b506101e6600081565b3480156103ff57600080fd5b506101e661040e3660046113fc565b61092b565b34801561041f57600080fd5b5061017b61042e3660046112c0565b610970565b34801561043f57600080fd5b506101e661044e3660046112c0565b60009081526001602052604090205490565b34801561046c57600080fd5b5061017b61047b3660046112d9565b610a34565b61017b61048e3660046113fc565b610a5a565b34801561049f57600080fd5b506002546101e6565b6000805160206118fe8339815191526104c18133610b8f565b60006104d1898989898989610782565b90506104dd8184610bf3565b6000817f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8b8b8b8b8b8a604051610519969594939291906114ce565b60405180910390a3505050505050505050565b60006001600160e01b03198216637965db0b60e01b148061055d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b7fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6361058f816000610902565b61059d5761059d8133610b8f565b60006105ad888888888888610782565b90506105b98185610ce2565b6105c88160008a8a8a8a610d7e565b6105d181610e92565b5050505050505050565b6000818152600160205260408120546001811180156105fa5750428111155b9392505050565b60008281526020819052604090206001015461061d8133610b8f565b6106278383610ecb565b505050565b60008181526001602052604081205481905b1192915050565b6001600160a01b03811633146106ba5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6106c48282610f4f565b5050565b600081815260016020819052604082205461063e565b3330146107415760405162461bcd60e51b815260206004820152602b60248201527f54696d656c6f636b436f6e74726f6c6c65723a2063616c6c6572206d7573742060448201526a62652074696d656c6f636b60a81b60648201526084016106b1565b60025460408051918252602082018390527f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5910160405180910390a1600255565b600086868686868660405160200161079f969594939291906114ce565b6040516020818303038152906040528051906020012090509695505050505050565b6000805160206118fe8339815191526107da8133610b8f565b8887146107f95760405162461bcd60e51b81526004016106b19061150b565b8885146108185760405162461bcd60e51b81526004016106b19061150b565b600061082a8b8b8b8b8b8b8b8b61092b565b90506108368184610bf3565b60005b8a8110156108f45780827f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8e8e858181106108765761087661154e565b905060200201602081019061088b9190611564565b8d8d8681811061089d5761089d61154e565b905060200201358c8c878181106108b6576108b661154e565b90506020028101906108c8919061157f565b8c8b6040516108dc969594939291906114ce565b60405180910390a36108ed816115dc565b9050610839565b505050505050505050505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000888888888888888860405160200161094c98979695949392919061168a565b60405160208183030381529060405280519060200120905098975050505050505050565b6000805160206118fe8339815191526109898133610b8f565b610992826106c8565b6109f85760405162461bcd60e51b815260206004820152603160248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e2063616044820152701b9b9bdd0818994818d85b98d95b1b1959607a1b60648201526084016106b1565b6000828152600160205260408082208290555183917fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7091a25050565b600082815260208190526040902060010154610a508133610b8f565b6106278383610f4f565b7fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63610a86816000610902565b610a9457610a948133610b8f565b878614610ab35760405162461bcd60e51b81526004016106b19061150b565b878414610ad25760405162461bcd60e51b81526004016106b19061150b565b6000610ae48a8a8a8a8a8a8a8a61092b565b9050610af08185610ce2565b60005b89811015610b7957610b6982828d8d85818110610b1257610b1261154e565b9050602002016020810190610b279190611564565b8c8c86818110610b3957610b3961154e565b905060200201358b8b87818110610b5257610b5261154e565b9050602002810190610b64919061157f565b610d7e565b610b72816115dc565b9050610af3565b50610b8381610e92565b50505050505050505050565b610b998282610902565b6106c457610bb1816001600160a01b03166014610fb4565b610bbc836020610fb4565b604051602001610bcd929190611765565b60408051601f198184030181529082905262461bcd60e51b82526106b1916004016117da565b610bfc8261062c565b15610c615760405162461bcd60e51b815260206004820152602f60248201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e20616c60448201526e1c9958591e481cd8da19591d5b1959608a1b60648201526084016106b1565b600254811015610cc25760405162461bcd60e51b815260206004820152602660248201527f54696d656c6f636b436f6e74726f6c6c65723a20696e73756666696369656e746044820152652064656c617960d01b60648201526084016106b1565b610ccc814261180d565b6000928352600160205260409092209190915550565b610ceb826105db565b610d075760405162461bcd60e51b81526004016106b190611825565b801580610d235750600081815260016020819052604090912054145b6106c45760405162461bcd60e51b815260206004820152602660248201527f54696d656c6f636b436f6e74726f6c6c65723a206d697373696e6720646570656044820152656e64656e637960d01b60648201526084016106b1565b6000846001600160a01b0316848484604051610d9b92919061186f565b60006040518083038185875af1925050503d8060008114610dd8576040519150601f19603f3d011682016040523d82523d6000602084013e610ddd565b606091505b5050905080610e4a5760405162461bcd60e51b815260206004820152603360248201527f54696d656c6f636b436f6e74726f6c6c65723a20756e6465726c79696e6720746044820152721c985b9cd858dd1a5bdb881c995d995c9d1959606a1b60648201526084016106b1565b85877fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b5887878787604051610e81949392919061187f565b60405180910390a350505050505050565b610e9b816105db565b610eb75760405162461bcd60e51b81526004016106b190611825565b600090815260016020819052604090912055565b610ed58282610902565b6106c4576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610f0b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610f598282610902565b156106c4576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606000610fc38360026118b1565b610fce90600261180d565b67ffffffffffffffff811115610fe657610fe66118d0565b6040519080825280601f01601f191660200182016040528015611010576020820181803683370190505b509050600360fc1b8160008151811061102b5761102b61154e565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061105a5761105a61154e565b60200101906001600160f81b031916908160001a905350600061107e8460026118b1565b61108990600161180d565b90505b6001811115611101576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106110bd576110bd61154e565b1a60f81b8282815181106110d3576110d361154e565b60200101906001600160f81b031916908160001a90535060049490941c936110fa816118e6565b905061108c565b5083156105fa5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106b1565b80356001600160a01b038116811461116757600080fd5b919050565b60008083601f84011261117e57600080fd5b50813567ffffffffffffffff81111561119657600080fd5b6020830191508360208285010111156111ae57600080fd5b9250929050565b600080600080600080600060c0888a0312156111d057600080fd5b6111d988611150565b965060208801359550604088013567ffffffffffffffff8111156111fc57600080fd5b6112088a828b0161116c565b989b979a50986060810135976080820135975060a09091013595509350505050565b60006020828403121561123c57600080fd5b81356001600160e01b0319811681146105fa57600080fd5b60008060008060008060a0878903121561126d57600080fd5b61127687611150565b955060208701359450604087013567ffffffffffffffff81111561129957600080fd5b6112a589828a0161116c565b979a9699509760608101359660809091013595509350505050565b6000602082840312156112d257600080fd5b5035919050565b600080604083850312156112ec57600080fd5b823591506112fc60208401611150565b90509250929050565b60008083601f84011261131757600080fd5b50813567ffffffffffffffff81111561132f57600080fd5b6020830191508360208260051b85010111156111ae57600080fd5b600080600080600080600080600060c08a8c03121561136857600080fd5b893567ffffffffffffffff8082111561138057600080fd5b61138c8d838e01611305565b909b50995060208c01359150808211156113a557600080fd5b6113b18d838e01611305565b909950975060408c01359150808211156113ca57600080fd5b506113d78c828d01611305565b9a9d999c50979a969997986060880135976080810135975060a0013595509350505050565b60008060008060008060008060a0898b03121561141857600080fd5b883567ffffffffffffffff8082111561143057600080fd5b61143c8c838d01611305565b909a50985060208b013591508082111561145557600080fd5b6114618c838d01611305565b909850965060408b013591508082111561147a57600080fd5b506114878b828c01611305565b999c989b509699959896976060870135966080013595509350505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b038716815285602082015260a0604082015260006114f660a0830186886114a5565b60608301949094525060800152949350505050565b60208082526023908201527f54696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d69736d616040820152620e8c6d60eb1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561157657600080fd5b6105fa82611150565b6000808335601e1984360301811261159657600080fd5b83018035915067ffffffffffffffff8211156115b157600080fd5b6020019150368190038213156111ae57600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016115ee576115ee6115c6565b5060010190565b60008383855260208086019550808560051b8301018460005b8781101561167d57848303601f19018952813536889003601e1901811261163457600080fd5b8701803567ffffffffffffffff81111561164d57600080fd5b80360389131561165c57600080fd5b61166985828885016114a5565b9a86019a945050509083019060010161160e565b5090979650505050505050565b60a0808252810188905260008960c08301825b8b8110156116cb576001600160a01b036116b684611150565b1682526020928301929091019060010161169d565b5083810360208501528881526001600160fb1b038911156116eb57600080fd5b8860051b9150818a60208301378181019150506020810160008152602084830301604085015261171c81888a6115f5565b6060850196909652505050608001529695505050505050565b60005b83811015611750578181015183820152602001611738565b8381111561175f576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161179d816017850160208801611735565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516117ce816028840160208801611735565b01602801949350505050565b60208152600082518060208401526117f9816040850160208701611735565b601f01601f19169190910160400192915050565b60008219821115611820576118206115c6565b500190565b6020808252602a908201527f54696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6e206973604082015269206e6f7420726561647960b01b606082015260800190565b8183823760009101908152919050565b60018060a01b03851681528360208201526060604082015260006118a76060830184866114a5565b9695505050505050565b60008160001904831182151516156118cb576118cb6115c6565b500290565b634e487b7160e01b600052604160045260246000fd5b6000816118f5576118f56115c6565b50600019019056feb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1a2646970667358221220d5ca05b38a7fdd6ea9b5e78300435aaf1f8eb578af10e2b17cb10aa1b17c41de64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "minDelay", "type": "uint256", "internalType": "uint256"}, {"name": "proposers", "type": "address[]", "internalType": "address[]"}, {"name": "executors", "type": "address[]", "internalType": "address[]"}]}, {"type": "event", "name": "CallExecuted", "inputs": [{"name": "id", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "index", "type": "uint256", "internalType": "uint256", "indexed": true}, {"name": "target", "type": "address", "internalType": "address", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "CallScheduled", "inputs": [{"name": "id", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "index", "type": "uint256", "internalType": "uint256", "indexed": true}, {"name": "target", "type": "address", "internalType": "address", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "predecessor", "type": "bytes32", "internalType": "bytes32", "indexed": false}, {"name": "delay", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Cancelled", "inputs": [{"name": "id", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "MinDelayChange", "inputs": [{"name": "oldDuration", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newDuration", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "EXECUTOR_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "PROPOSER_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "TIMELOCK_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "cancel", "stateMutability": "nonpayable", "inputs": [{"name": "id", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "predecessor", "type": "bytes32", "internalType": "bytes32"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "executeBatch", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "datas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "predecessor", "type": "bytes32", "internalType": "bytes32"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "getMinDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "duration", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getTimestamp", "stateMutability": "view", "inputs": [{"name": "id", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "timestamp", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashOperation", "stateMutability": "pure", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "predecessor", "type": "bytes32", "internalType": "bytes32"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "hash", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "hashOperationBatch", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "datas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "predecessor", "type": "bytes32", "internalType": "bytes32"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "hash", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "isOperation", "stateMutability": "view", "inputs": [{"name": "id", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "pending", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isOperationDone", "stateMutability": "view", "inputs": [{"name": "id", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "done", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isOperationPending", "stateMutability": "view", "inputs": [{"name": "id", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "pending", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isOperationReady", "stateMutability": "view", "inputs": [{"name": "id", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "ready", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "schedule", "stateMutability": "nonpayable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "predecessor", "type": "bytes32", "internalType": "bytes32"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}, {"name": "delay", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "scheduleBatch", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "datas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "predecessor", "type": "bytes32", "internalType": "bytes32"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}, {"name": "delay", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "updateDelay", "stateMutability": "nonpayable", "inputs": [{"name": "newDelay", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Contract module which acts as a timelocked controller. When set as the owner of an `Ownable` smart contract, it enforces a timelock on all `onlyOwner` maintenance operations. This gives time for users of the controlled contract to exit before a potentially dangerous maintenance operation is applied. By default, this contract is self administered, meaning administration tasks have to go through the timelock process. The proposer (resp executor) role is in charge of proposing (resp executing) operations. A common use case is to position this {TimelockController} as the owner of a smart contract, with a multisig or a DAO as the sole proposer. _Available since v3.3._", "events": {"CallExecuted(bytes32,uint256,address,uint256,bytes)": {"details": "Emitted when a call is performed as part of operation `id`."}, "CallScheduled(bytes32,uint256,address,uint256,bytes,bytes32,uint256)": {"details": "Emitted when a call is scheduled as part of operation `id`."}, "Cancelled(bytes32)": {"details": "Emitted when operation `id` is cancelled."}, "MinDelayChange(uint256,uint256)": {"details": "Emitted when the minimum delay for future operations is modified."}}, "kind": "dev", "methods": {"cancel(bytes32)": {"details": "Cancel an operation. Requirements: - the caller must have the 'proposer' role."}, "constructor": {"details": "Initializes the contract with a given `minDelay`."}, "execute(address,uint256,bytes,bytes32,bytes32)": {"details": "Execute an (ready) operation containing a single transaction. Emits a {CallExecuted} event. Requirements: - the caller must have the 'executor' role."}, "executeBatch(address[],uint256[],bytes[],bytes32,bytes32)": {"details": "Execute an (ready) operation containing a batch of transactions. Emits one {CallExecuted} event per transaction in the batch. Requirements: - the caller must have the 'executor' role."}, "getMinDelay()": {"details": "Returns the minimum delay for an operation to become valid. This value can be changed by executing an operation that calls `updateDelay`."}, "getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."}, "getTimestamp(bytes32)": {"details": "Returns the timestamp at with an operation becomes ready (0 for unset operations, 1 for done operations)."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "hashOperation(address,uint256,bytes,bytes32,bytes32)": {"details": "Returns the identifier of an operation containing a single transaction."}, "hashOperationBatch(address[],uint256[],bytes[],bytes32,bytes32)": {"details": "Returns the identifier of an operation containing a batch of transactions."}, "isOperation(bytes32)": {"details": "Returns whether an id correspond to a registered operation. This includes both Pending, Ready and Done operations."}, "isOperationDone(bytes32)": {"details": "Returns whether an operation is done or not."}, "isOperationPending(bytes32)": {"details": "Returns whether an operation is pending or not."}, "isOperationReady(bytes32)": {"details": "Returns whether an operation is ready or not."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}, "schedule(address,uint256,bytes,bytes32,bytes32,uint256)": {"details": "Schedule an operation containing a single transaction. Emits a {CallScheduled} event. Requirements: - the caller must have the 'proposer' role."}, "scheduleBatch(address[],uint256[],bytes[],bytes32,bytes32,uint256)": {"details": "Schedule an operation containing a batch of transactions. Emits one {CallScheduled} event per transaction in the batch. Requirements: - the caller must have the 'proposer' role."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "updateDelay(uint256)": {"details": "Changes the minimum timelock duration for future operations. Emits a {MinDelayChange} event. Requirements: - the caller must be the timelock itself. This can only be achieved by scheduling and later executing an operation where the timelock is the target and the data is the ABI-encoded call to this function."}}, "version": 1}}, "GovernorCompatibilityBravo": {"contractName": "GovernorCompatibilityBravo", "sourceId": "governance/compatibility/GovernorCompatibilityBravo.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalQueued", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "eta", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "cancel", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "getActions", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "signatures", "type": "string[]", "internalType": "string[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}]}, {"type": "function", "name": "getReceipt", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "voter", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "tuple", "components": [{"name": "hasVoted", "type": "bool", "internalType": "bool"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "votes", "type": "uint96", "internalType": "uint96"}], "internalType": "struct IGovernorCompatibilityBravo.Receipt"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalEta", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposals", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "proposer", "type": "address", "internalType": "address"}, {"name": "eta", "type": "uint256", "internalType": "uint256"}, {"name": "startBlock", "type": "uint256", "internalType": "uint256"}, {"name": "endBlock", "type": "uint256", "internalType": "uint256"}, {"name": "forVotes", "type": "uint256", "internalType": "uint256"}, {"name": "againstVotes", "type": "uint256", "internalType": "uint256"}, {"name": "abstainVotes", "type": "uint256", "internalType": "uint256"}, {"name": "canceled", "type": "bool", "internalType": "bool"}, {"name": "executed", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "signatures", "type": "string[]", "internalType": "string[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumVotes", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "timelock", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "getVotes(address,uint256)": {"notice": "module:reputation"}, "quorum(uint256)": {"notice": "module:user-config"}, "votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"details": "Compatibility layer that implements GovernorBravo compatibility on to of {Governor}. This compatibility layer includes a voting system and requires a {IGovernorTimelock} compatible module to be added through inheritance. It does not include token bindings, not does it include any variable upgrade patterns. NOTE: When using this module, you may need to enable the Solidity optimizer to avoid hitting the contract size limit. _Available since v4.3._", "kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "cancel(uint256)": {"details": "Cancels a proposal only if sender is the proposer, or proposer delegates dropped below proposal threshold."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "execute(uint256)": {"details": "See {IGovernorCompatibilityBravo-execute}."}, "getActions(uint256)": {"details": "See {IGovernorCompatibilityBravo-getActions}."}, "getReceipt(uint256,address)": {"details": "See {IGovernorCompatibilityBravo-getReceipt}."}, "getVotes(address,uint256)": {"details": "Voting power of an `account` at a specific `blockNumber`. Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or multiple), {ERC20Votes} tokens."}, "hasVoted(uint256,address)": {"details": "See {IGovernor-hasVoted}."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_."}, "proposals(uint256)": {"details": "See {IGovernorCompatibilityBravo-proposals}."}, "propose(address[],uint256[],bytes[],string)": {"details": "See {IGovernor-propose}."}, "propose(address[],uint256[],string[],bytes[],string)": {"details": "See {IGovernorCompatibilityBravo-propose}."}, "queue(uint256)": {"details": "See {IGovernorCompatibilityBravo-queue}."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "quorumVotes()": {"details": "See {IGovernorCompatibilityBravo-quorumVotes}."}, "state(uint256)": {"details": "See {IGovernor-state}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "IGovernorCompatibilityBravo": {"contractName": "IGovernorCompatibilityBravo", "sourceId": "governance/compatibility/IGovernorCompatibilityBravo.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "cancel", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "getActions", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "signatures", "type": "string[]", "internalType": "string[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}]}, {"type": "function", "name": "getReceipt", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "voter", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "tuple", "components": [{"name": "hasVoted", "type": "bool", "internalType": "bool"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "votes", "type": "uint96", "internalType": "uint96"}], "internalType": "struct IGovernorCompatibilityBravo.Receipt"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposals", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "proposer", "type": "address", "internalType": "address"}, {"name": "eta", "type": "uint256", "internalType": "uint256"}, {"name": "startBlock", "type": "uint256", "internalType": "uint256"}, {"name": "endBlock", "type": "uint256", "internalType": "uint256"}, {"name": "forVotes", "type": "uint256", "internalType": "uint256"}, {"name": "againstVotes", "type": "uint256", "internalType": "uint256"}, {"name": "abstainVotes", "type": "uint256", "internalType": "uint256"}, {"name": "canceled", "type": "bool", "internalType": "bool"}, {"name": "executed", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "signatures", "type": "string[]", "internalType": "string[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumVotes", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "getVotes(address,uint256)": {"notice": "module:reputation"}, "hasVoted(uint256,address)": {"notice": "module:voting"}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"notice": "module:core"}, "name()": {"notice": "module:core"}, "proposalDeadline(uint256)": {"notice": "module:core"}, "proposalSnapshot(uint256)": {"notice": "module:core"}, "quorum(uint256)": {"notice": "module:user-config"}, "state(uint256)": {"notice": "module:core"}, "version()": {"notice": "module:core"}, "votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"details": "Interface extension that adds missing functions to the {Governor} core to provide `GovernorBravo` compatibility. _Available since v4.3._", "kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "cancel(uint256)": {"details": "Cancels a proposal only if sender is the proposer, or proposer delegates dropped below proposal threshold."}, "castVote(uint256,uint8)": {"details": "Cast a vote Emits a {VoteCast} event."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "Cast a vote using the user cryptographic signature. Emits a {VoteCast} event."}, "castVoteWithReason(uint256,uint8,string)": {"details": "Cast a with a reason Emits a {VoteCast} event."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "Execute a successful proposal. This requires the quorum to be reached, the vote to be successful, and the deadline to be reached. Emits a {ProposalExecuted} event. Note: some module can modify the requirements for execution, for example by adding an additional timelock."}, "execute(uint256)": {"details": "Part of the Governor Bravo's interface: _\"Executes a queued proposal if eta has passed\"_."}, "getActions(uint256)": {"details": "Part of the Governor Bravo's interface: _\"Gets actions of a proposal\"_."}, "getReceipt(uint256,address)": {"details": "Part of the Governor Bravo's interface: _\"Gets the receipt for a voter on a given proposal\"_."}, "getVotes(address,uint256)": {"details": "Voting power of an `account` at a specific `blockNumber`. Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or multiple), {ERC20Votes} tokens."}, "hasVoted(uint256,address)": {"details": "Returns weither `account` has cast a vote on `proposalId`."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "Hashing function used to (re)build the proposal id from the proposal details.."}, "name()": {"details": "Name of the governor instance (used in building the ERC712 domain separator)."}, "proposalDeadline(uint256)": {"details": "Block number at which votes close. Votes close at the end of this block, so it is possible to cast a vote during this block."}, "proposalSnapshot(uint256)": {"details": "Block number used to retrieve user's votes and quorum. As per Compound's Comp and OpenZeppelin's ERC20Votes, the snapshot is performed at the end of this block. Hence, voting for this proposal starts at the beginning of the following block."}, "proposals(uint256)": {"details": "Part of the Governor Bravo's interface: _\"The official record of all proposals ever proposed\"_."}, "propose(address[],uint256[],bytes[],string)": {"details": "Create a new proposal. Vote start {IGovernor-votingDelay} blocks after the proposal is created and ends {IGovernor-votingPeriod} blocks after the voting starts. Emits a {ProposalCreated} event."}, "propose(address[],uint256[],string[],bytes[],string)": {"details": "Part of the Governor Bravo's interface: _\"Function used to propose a new proposal\"_."}, "queue(uint256)": {"details": "Part of the Governor Bravo's interface: _\"Queues a proposal of state succeeded\"_."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "quorumVotes()": {"details": "Part of the Governor Bravo's interface."}, "state(uint256)": {"details": "Current state of a proposal, following Compound's convention"}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}, "version()": {"details": "Version of the governor instance (used in building the ERC712 domain separator). Default: \"1\""}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "GovernorCountingSimple": {"contractName": "GovernorCountingSimple", "sourceId": "governance/extensions/GovernorCountingSimple.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalVotes", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "againstVotes", "type": "uint256", "internalType": "uint256"}, {"name": "forVotes", "type": "uint256", "internalType": "uint256"}, {"name": "abstainVotes", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"getVotes(address,uint256)": {"notice": "module:reputation"}, "quorum(uint256)": {"notice": "module:user-config"}, "votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"details": "Extension of {Governor} for simple, 3 options, vote counting. _Available since v4.3._", "kind": "dev", "methods": {"COUNTING_MODE()": {"details": "See {IGovernor-COUNTING_MODE}."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "getVotes(address,uint256)": {"details": "Voting power of an `account` at a specific `blockNumber`. Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or multiple), {ERC20Votes} tokens."}, "hasVoted(uint256,address)": {"details": "See {IGovernor-hasVoted}."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_."}, "proposalVotes(uint256)": {"details": "Accessor to the internal vote counts."}, "propose(address[],uint256[],bytes[],string)": {"details": "See {IGovernor-propose}."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "state(uint256)": {"details": "See {IGovernor-state}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "GovernorProposalThreshold": {"contractName": "GovernorProposalThreshold", "sourceId": "governance/extensions/GovernorProposalThreshold.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "getVotes(address,uint256)": {"notice": "module:reputation"}, "hasVoted(uint256,address)": {"notice": "module:voting"}, "quorum(uint256)": {"notice": "module:user-config"}, "votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"details": "Extension of {Governor} for proposal restriction to token holders with a minimum balance. _Available since v4.3._ _Deprecated since v4.4._", "kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "getVotes(address,uint256)": {"details": "Voting power of an `account` at a specific `blockNumber`. Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or multiple), {ERC20Votes} tokens."}, "hasVoted(uint256,address)": {"details": "Returns weither `account` has cast a vote on `proposalId`."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_."}, "propose(address[],uint256[],bytes[],string)": {"details": "See {IGovernor-propose}."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "state(uint256)": {"details": "See {IGovernor-state}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "GovernorSettings": {"contractName": "GovernorSettings", "sourceId": "governance/extensions/GovernorSettings.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalThresholdSet", "inputs": [{"name": "oldProposalThreshold", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newProposalThreshold", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VotingDelaySet", "inputs": [{"name": "oldVotingDelay", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newVotingDelay", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VotingPeriodSet", "inputs": [{"name": "oldVotingPeriod", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newVotingPeriod", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "setProposalThreshold", "stateMutability": "nonpayable", "inputs": [{"name": "newProposalThreshold", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setVotingDelay", "stateMutability": "nonpayable", "inputs": [{"name": "newVotingDelay", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setVotingPeriod", "stateMutability": "nonpayable", "inputs": [{"name": "newVotingPeriod", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "getVotes(address,uint256)": {"notice": "module:reputation"}, "hasVoted(uint256,address)": {"notice": "module:voting"}, "quorum(uint256)": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"details": "Extension of {Governor} for settings updatable through governance. _Available since v4.4._", "kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "constructor": {"details": "Initialize the governance parameters."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "getVotes(address,uint256)": {"details": "Voting power of an `account` at a specific `blockNumber`. Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or multiple), {ERC20Votes} tokens."}, "hasVoted(uint256,address)": {"details": "Returns weither `account` has cast a vote on `proposalId`."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "See {Governor-proposalThreshold}."}, "propose(address[],uint256[],bytes[],string)": {"details": "See {IGovernor-propose}."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "setProposalThreshold(uint256)": {"details": "Update the proposal threshold. This operation can only be performed through a governance proposal. Emits a {ProposalThresholdSet} event."}, "setVotingDelay(uint256)": {"details": "Update the voting delay. This operation can only be performed through a governance proposal. Emits a {VotingDelaySet} event."}, "setVotingPeriod(uint256)": {"details": "Update the voting period. This operation can only be performed through a governance proposal. Emits a {VotingPeriodSet} event."}, "state(uint256)": {"details": "See {IGovernor-state}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "See {IGovernor-votingDelay}."}, "votingPeriod()": {"details": "See {IGovernor-votingPeriod}."}}, "version": 1}}, "GovernorTimelockCompound": {"contractName": "GovernorTimelockCompound", "sourceId": "governance/extensions/GovernorTimelockCompound.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalQueued", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "eta", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TimelockChange", "inputs": [{"name": "oldTimelock", "type": "address", "internalType": "address", "indexed": false}, {"name": "newTimelock", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "__acceptAdmin", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalEta", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "timelock", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "updateTimelock", "stateMutability": "nonpayable", "inputs": [{"name": "newTimelock", "type": "address", "internalType": "contract ICompoundTimelock"}], "outputs": []}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "getVotes(address,uint256)": {"notice": "module:reputation"}, "hasVoted(uint256,address)": {"notice": "module:voting"}, "quorum(uint256)": {"notice": "module:user-config"}, "votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"details": "Extension of {Governor} that binds the execution process to a Compound Timelock. This adds a delay, enforced by the external timelock to all successful proposal (in addition to the voting duration). The {Governor} needs to be the admin of the timelock for any operation to be performed. A public, unrestricted, {GovernorTimelockCompound-__acceptAdmin} is available to accept ownership of the timelock. Using this model means the proposal will be operated by the {TimelockController} and not by the {Governor}. Thus, the assets and permissions must be attached to the {TimelockController}. Any asset sent to the {Governor} will be inaccessible. _Available since v4.3._", "events": {"TimelockChange(address,address)": {"details": "Emitted when the timelock controller used for proposal execution is modified."}}, "kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "__acceptAdmin()": {"details": "Accept admin right over the timelock."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "constructor": {"details": "Set the timelock."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "getVotes(address,uint256)": {"details": "Voting power of an `account` at a specific `blockNumber`. Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or multiple), {ERC20Votes} tokens."}, "hasVoted(uint256,address)": {"details": "Returns weither `account` has cast a vote on `proposalId`."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalEta(uint256)": {"details": "Public accessor to check the eta of a queued proposal"}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_."}, "propose(address[],uint256[],bytes[],string)": {"details": "See {IGovernor-propose}."}, "queue(address[],uint256[],bytes[],bytes32)": {"details": "Function to queue a proposal to the timelock."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "state(uint256)": {"details": "Overriden version of the {Governor-state} function with added support for the `Queued` and `Expired` status."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "timelock()": {"details": "Public accessor to check the address of the timelock"}, "updateTimelock(address)": {"details": "Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates must be proposed, scheduled and executed using the {Governor} workflow. For security reason, the timelock must be handed over to another admin before setting up a new one. The two operations (hand over the timelock) and do the update can be batched in a single proposal. Note that if the timelock admin has been handed over in a previous operation, we refuse updates made through the timelock if admin of the timelock has already been accepted and the operation is executed outside the scope of governance."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "ICompoundTimelock": {"contractName": "ICompoundTimelock", "sourceId": "governance/extensions/GovernorTimelockCompound.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "GRACE_PERIOD", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "MAXIMUM_DELAY", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "MINIMUM_DELAY", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "acceptAdmin", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "admin", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "cancelTransaction", "stateMutability": "nonpayable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "signature", "type": "string", "internalType": "string"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "eta", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "delay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "executeTransaction", "stateMutability": "payable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "signature", "type": "string", "internalType": "string"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "eta", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bytes", "internalType": "bytes"}]}, {"type": "function", "name": "pendingAdmin", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "queueTransaction", "stateMutability": "nonpayable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "signature", "type": "string", "internalType": "string"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "eta", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "queuedTransactions", "stateMutability": "view", "inputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "setDelay", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setPendingAdmin", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "notice": "https://github.com/compound-finance/compound-protocol/blob/master/contracts/Timelock.sol[Compound's timelock] interface", "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "GovernorTimelockControl": {"contractName": "GovernorTimelockControl", "sourceId": "governance/extensions/GovernorTimelockControl.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalQueued", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "eta", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TimelockChange", "inputs": [{"name": "oldTimelock", "type": "address", "internalType": "address", "indexed": false}, {"name": "newTimelock", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalEta", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "timelock", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "updateTimelock", "stateMutability": "nonpayable", "inputs": [{"name": "newTimelock", "type": "address", "internalType": "contract TimelockController"}], "outputs": []}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "getVotes(address,uint256)": {"notice": "module:reputation"}, "hasVoted(uint256,address)": {"notice": "module:voting"}, "quorum(uint256)": {"notice": "module:user-config"}, "votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"details": "Extension of {Governor} that binds the execution process to an instance of {TimelockController}. This adds a delay, enforced by the {TimelockController} to all successful proposal (in addition to the voting duration). The {Governor} needs the proposer (an ideally the executor) roles for the {Governor} to work properly. Using this model means the proposal will be operated by the {TimelockController} and not by the {Governor}. Thus, the assets and permissions must be attached to the {TimelockController}. Any asset sent to the {Governor} will be inaccessible. _Available since v4.3._", "events": {"TimelockChange(address,address)": {"details": "Emitted when the timelock controller used for proposal execution is modified."}}, "kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "constructor": {"details": "Set the timelock."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "getVotes(address,uint256)": {"details": "Voting power of an `account` at a specific `blockNumber`. Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or multiple), {ERC20Votes} tokens."}, "hasVoted(uint256,address)": {"details": "Returns weither `account` has cast a vote on `proposalId`."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalEta(uint256)": {"details": "Public accessor to check the eta of a queued proposal"}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_."}, "propose(address[],uint256[],bytes[],string)": {"details": "See {IGovernor-propose}."}, "queue(address[],uint256[],bytes[],bytes32)": {"details": "Function to queue a proposal to the timelock."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "state(uint256)": {"details": "Overriden version of the {Governor-state} function with added support for the `Queued` status."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "timelock()": {"details": "Public accessor to check the address of the timelock"}, "updateTimelock(address)": {"details": "Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates must be proposed, scheduled and executed using the {Governor} workflow."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "GovernorVotes": {"contractName": "GovernorVotes", "sourceId": "governance/extensions/GovernorVotes.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract ERC20Votes"}]}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "getVotes(address,uint256)": {"notice": "Read the voting weight from the token's built in snapshot mechanism (see {IGovernor-getVotes})."}, "hasVoted(uint256,address)": {"notice": "module:voting"}, "quorum(uint256)": {"notice": "module:user-config"}, "votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"details": "Extension of {Governor} for voting weight extraction from an {ERC20Votes} token. _Available since v4.3._", "kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "hasVoted(uint256,address)": {"details": "Returns weither `account` has cast a vote on `proposalId`."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_."}, "propose(address[],uint256[],bytes[],string)": {"details": "See {IGovernor-propose}."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "state(uint256)": {"details": "See {IGovernor-state}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "GovernorVotesComp": {"contractName": "GovernorVotesComp", "sourceId": "governance/extensions/GovernorVotesComp.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract ERC20VotesComp"}]}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "getVotes(address,uint256)": {"notice": "Read the voting weight from the token's built in snapshot mechanism (see {IGovernor-getVotes})."}, "hasVoted(uint256,address)": {"notice": "module:voting"}, "quorum(uint256)": {"notice": "module:user-config"}, "votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"details": "Extension of {Governor} for voting weight extraction from a Comp token. _Available since v4.3._", "kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "hasVoted(uint256,address)": {"details": "Returns weither `account` has cast a vote on `proposalId`."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_."}, "propose(address[],uint256[],bytes[],string)": {"details": "See {IGovernor-propose}."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "state(uint256)": {"details": "See {IGovernor-state}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "GovernorVotesQuorumFraction": {"contractName": "GovernorVotesQuorumFraction", "sourceId": "governance/extensions/GovernorVotesQuorumFraction.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "QuorumNumeratorUpdated", "inputs": [{"name": "oldQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumDenominator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumNumerator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract ERC20Votes"}]}, {"type": "function", "name": "updateQuorumNumerator", "stateMutability": "nonpayable", "inputs": [{"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "getVotes(address,uint256)": {"notice": "Read the voting weight from the token's built in snapshot mechanism (see {IGovernor-getVotes})."}, "hasVoted(uint256,address)": {"notice": "module:voting"}, "quorum(uint256)": {"notice": "module:user-config"}, "votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"details": "Extension of {Governor} for voting weight extraction from an {ERC20Votes} token and a quorum expressed as a fraction of the total supply. _Available since v4.3._", "kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "hasVoted(uint256,address)": {"details": "Returns weither `account` has cast a vote on `proposalId`."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_."}, "propose(address[],uint256[],bytes[],string)": {"details": "See {IGovernor-propose}."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "state(uint256)": {"details": "See {IGovernor-state}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "IGovernorTimelock": {"contractName": "IGovernorTimelock", "sourceId": "governance/extensions/IGovernorTimelock.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalQueued", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "eta", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalEta", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "timelock", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "getVotes(address,uint256)": {"notice": "module:reputation"}, "hasVoted(uint256,address)": {"notice": "module:voting"}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"notice": "module:core"}, "name()": {"notice": "module:core"}, "proposalDeadline(uint256)": {"notice": "module:core"}, "proposalSnapshot(uint256)": {"notice": "module:core"}, "quorum(uint256)": {"notice": "module:user-config"}, "state(uint256)": {"notice": "module:core"}, "version()": {"notice": "module:core"}, "votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"details": "Extension of the {IGovernor} for timelock supporting modules. _Available since v4.3._", "kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "castVote(uint256,uint8)": {"details": "Cast a vote Emits a {VoteCast} event."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "Cast a vote using the user cryptographic signature. Emits a {VoteCast} event."}, "castVoteWithReason(uint256,uint8,string)": {"details": "Cast a with a reason Emits a {VoteCast} event."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "Execute a successful proposal. This requires the quorum to be reached, the vote to be successful, and the deadline to be reached. Emits a {ProposalExecuted} event. Note: some module can modify the requirements for execution, for example by adding an additional timelock."}, "getVotes(address,uint256)": {"details": "Voting power of an `account` at a specific `blockNumber`. Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or multiple), {ERC20Votes} tokens."}, "hasVoted(uint256,address)": {"details": "Returns weither `account` has cast a vote on `proposalId`."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "Hashing function used to (re)build the proposal id from the proposal details.."}, "name()": {"details": "Name of the governor instance (used in building the ERC712 domain separator)."}, "proposalDeadline(uint256)": {"details": "Block number at which votes close. Votes close at the end of this block, so it is possible to cast a vote during this block."}, "proposalSnapshot(uint256)": {"details": "Block number used to retrieve user's votes and quorum. As per Compound's Comp and OpenZeppelin's ERC20Votes, the snapshot is performed at the end of this block. Hence, voting for this proposal starts at the beginning of the following block."}, "propose(address[],uint256[],bytes[],string)": {"details": "Create a new proposal. Vote start {IGovernor-votingDelay} blocks after the proposal is created and ends {IGovernor-votingPeriod} blocks after the voting starts. Emits a {ProposalCreated} event."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "state(uint256)": {"details": "Current state of a proposal, following Compound's convention"}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}, "version()": {"details": "Version of the governor instance (used in building the ERC712 domain separator). Default: \"1\""}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "IERC1271": {"contractName": "IERC1271", "sourceId": "interfaces/IERC1271.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "isValidSignature", "stateMutability": "view", "inputs": [{"name": "hash", "type": "bytes32", "internalType": "bytes32"}, {"name": "signature", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "magicValue", "type": "bytes4", "internalType": "bytes4"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC1271 standard signature validation method for contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271]. _Available since v4.1._", "kind": "dev", "methods": {"isValidSignature(bytes32,bytes)": {"details": "Should return whether the signature provided is valid for the provided data", "params": {"hash": "Hash of the data to be signed", "signature": "Signature byte array associated with _data"}}}, "version": 1}}, "IERC1363": {"contractName": "IERC1363", "sourceId": "interfaces/IERC1363.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "approveAndCall", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "approveAndCall", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferAndCall", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferAndCall", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFromAndCall", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFromAndCall", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called."}, "approve(address,uint256)": {"details": "Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event."}, "approveAndCall(address,uint256)": {"details": "Approve the passed address to spend the specified amount of tokens on behalf of msg.sender and then call `onApprovalReceived` on spender.", "params": {"spender": "address The address which will spend the funds", "value": "uint256 The amount of tokens to be spent"}}, "approveAndCall(address,uint256,bytes)": {"details": "Approve the passed address to spend the specified amount of tokens on behalf of msg.sender and then call `onApprovalReceived` on spender.", "params": {"data": "bytes Additional data with no specified format, sent in call to `spender`", "spender": "address The address which will spend the funds", "value": "uint256 The amount of tokens to be spent"}}, "balanceOf(address)": {"details": "Returns the amount of tokens owned by `account`."}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}, "totalSupply()": {"details": "Returns the amount of tokens in existence."}, "transfer(address,uint256)": {"details": "Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."}, "transferAndCall(address,uint256)": {"details": "Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver", "params": {"to": "address The address which you want to transfer to", "value": "uint256 The amount of tokens to be transferred"}, "returns": {"_0": "true unless throwing"}}, "transferAndCall(address,uint256,bytes)": {"details": "Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver", "params": {"data": "bytes Additional data with no specified format, sent in call to `to`", "to": "address The address which you want to transfer to", "value": "uint256 The amount of tokens to be transferred"}, "returns": {"_0": "true unless throwing"}}, "transferFrom(address,address,uint256)": {"details": "Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."}, "transferFromAndCall(address,address,uint256)": {"details": "Transfer tokens from one address to another and then call `onTransferReceived` on receiver", "params": {"from": "address The address which you want to send tokens from", "to": "address The address which you want to transfer to", "value": "uint256 The amount of tokens to be transferred"}, "returns": {"_0": "true unless throwing"}}, "transferFromAndCall(address,address,uint256,bytes)": {"details": "Transfer tokens from one address to another and then call `onTransferReceived` on receiver", "params": {"data": "bytes Additional data with no specified format, sent in call to `to`", "from": "address The address which you want to send tokens from", "to": "address The address which you want to transfer to", "value": "uint256 The amount of tokens to be transferred"}, "returns": {"_0": "true unless throwing"}}}, "version": 1}}, "IERC1363Receiver": {"contractName": "IERC1363Receiver", "sourceId": "interfaces/IERC1363Receiver.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "onTransferReceived", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}], "userdoc": {"kind": "user", "methods": {"onTransferReceived(address,address,uint256,bytes)": {"notice": "Handle the receipt of ERC1363 tokens"}}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"onTransferReceived(address,address,uint256,bytes)": {"details": "Any ERC1363 smart contract calls this function on the recipient after a `transfer` or a `transferFrom`. This function MAY throw to revert and reject the transfer. Return of other than the magic value MUST result in the transaction being reverted. Note: the token contract address is always the message sender.", "params": {"data": "bytes Additional data with no specified format", "from": "address The address which are token transferred from", "operator": "address The address which called `transferAndCall` or `transferFromAndCall` function", "value": "uint256 The amount of tokens transferred"}, "returns": {"_0": "`bytes4(keccak256(\"onTransferReceived(address,address,uint256,bytes)\"))` unless throwing"}}}, "version": 1}}, "IERC1363Spender": {"contractName": "IERC1363Spender", "sourceId": "interfaces/IERC1363Spender.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "onApprovalReceived", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}], "userdoc": {"kind": "user", "methods": {"onApprovalReceived(address,uint256,bytes)": {"notice": "Handle the approval of ERC1363 tokens"}}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"onApprovalReceived(address,uint256,bytes)": {"details": "Any ERC1363 smart contract calls this function on the recipient after an `approve`. This function MAY throw to revert and reject the approval. Return of other than the magic value MUST result in the transaction being reverted. Note: the token contract address is always the message sender.", "params": {"data": "bytes Additional data with no specified format", "owner": "address The address which called `approveAndCall` function", "value": "uint256 The amount of tokens to be spent"}, "returns": {"_0": "`bytes4(keccak256(\"onApprovalReceived(address,uint256,bytes)\"))` unless throwing"}}}, "version": 1}}, "IERC2981": {"contractName": "IERC2981", "sourceId": "interfaces/IERC2981.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "royaltyInfo", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "salePrice", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "receiver", "type": "address", "internalType": "address"}, {"name": "royaltyAmount", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface for the NFT Royalty Standard", "kind": "dev", "methods": {"royaltyInfo(uint256,uint256)": {"details": "Called with the sale price to determine how much royalty is owed and to whom.", "params": {"salePrice": "- the sale price of the NFT asset specified by `tokenId`", "tokenId": "- the NFT asset queried for royalty information"}, "returns": {"receiver": "- address of who should be sent the royalty payment", "royaltyAmount": "- the royalty payment amount for `salePrice`"}}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}}, "version": 1}}, "IERC3156FlashBorrower": {"contractName": "IERC3156FlashBorrower", "sourceId": "interfaces/IERC3156FlashBorrower.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "onFlashLoan", "stateMutability": "nonpayable", "inputs": [{"name": "initiator", "type": "address", "internalType": "address"}, {"name": "token", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "fee", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC3156 FlashBorrower, as defined in https://eips.ethereum.org/EIPS/eip-3156[ERC-3156]. _Available since v4.1._", "kind": "dev", "methods": {"onFlashLoan(address,address,uint256,uint256,bytes)": {"details": "Receive a flash loan.", "params": {"amount": "The amount of tokens lent.", "data": "Arbitrary data structure, intended to contain user-defined parameters.", "fee": "The additional amount of tokens to repay.", "initiator": "The initiator of the loan.", "token": "The loan currency."}, "returns": {"_0": "The keccak256 hash of \"ERC3156FlashBorrower.onFlashLoan\""}}}, "version": 1}}, "IERC3156FlashLender": {"contractName": "IERC3156FlashLender", "sourceId": "interfaces/IERC3156FlashLender.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "flashFee", "stateMutability": "view", "inputs": [{"name": "token", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "flashLoan", "stateMutability": "nonpayable", "inputs": [{"name": "receiver", "type": "address", "internalType": "contract IERC3156FlashBorrower"}, {"name": "token", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "maxFlashLoan", "stateMutability": "view", "inputs": [{"name": "token", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC3156 FlashLender, as defined in https://eips.ethereum.org/EIPS/eip-3156[ERC-3156]. _Available since v4.1._", "kind": "dev", "methods": {"flashFee(address,uint256)": {"details": "The fee to be charged for a given loan.", "params": {"amount": "The amount of tokens lent.", "token": "The loan currency."}, "returns": {"_0": "The amount of `token` to be charged for the loan, on top of the returned principal."}}, "flashLoan(address,address,uint256,bytes)": {"details": "Initiate a flash loan.", "params": {"amount": "The amount of tokens lent.", "data": "Arbitrary data structure, intended to contain user-defined parameters.", "receiver": "The receiver of the tokens in the loan, and the receiver of the callback.", "token": "The loan currency."}}, "maxFlashLoan(address)": {"details": "The amount of currency available to be lended.", "params": {"token": "The loan currency."}, "returns": {"_0": "The amount of `token` that can be borrowed."}}}, "version": 1}}, "IERC2612": {"contractName": "IERC2612", "sourceId": "interfaces/draft-IERC2612.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "DOMAIN_SEPARATOR", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "nonces", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "permit", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "deadline", "type": "uint256", "internalType": "uint256"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"DOMAIN_SEPARATOR()": {"details": "Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}."}, "nonces(address)": {"details": "Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times."}, "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {"details": "Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section]."}}, "version": 1}}, "ERC2771Context": {"contractName": "ERC2771Context", "sourceId": "metatx/ERC2771Context.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "isTrustedForwarder", "stateMutability": "view", "inputs": [{"name": "forwarder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Context variant with ERC2771 support.", "kind": "dev", "methods": {}, "version": 1}}, "MinimalForwarder": {"contractName": "MinimalForwarder", "sourceId": "metatx/MinimalForwarder.sol", "deploymentBytecode": {"bytecode": "0x61014060405234801561001157600080fd5b50604080518082018252601081526f26b4b734b6b0b62337b93bb0b93232b960811b602080830191825283518085019094526005845264302e302e3160d81b908401528151902060e08190527fae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc1991638118856101008190524660a0529192917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6100fb8184846040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b6080523060c052610120525061011092505050565b60805160a05160c05160e0516101005161012051610b5061015f60003960006104f2015260006105410152600061051c015260006104750152600061049f015260006104c90152610b506000f3fe6080604052600436106100345760003560e01c80632d0335ab1461003957806347153f8214610082578063bf5d3bdb146100a3575b600080fd5b34801561004557600080fd5b5061006f6100543660046108d2565b6001600160a01b031660009081526020819052604090205490565b6040519081526020015b60405180910390f35b610095610090366004610902565b6100d3565b6040516100799291906109d1565b3480156100af57600080fd5b506100c36100be366004610902565b610272565b6040519015158152602001610079565b600060606100e2858585610272565b61014e5760405162461bcd60e51b815260206004820152603260248201527f4d696e696d616c466f727761726465723a207369676e617475726520646f6573604482015271081b9bdd081b585d18da081c995c5d595cdd60721b60648201526084015b60405180910390fd5b61015d60808601356001610a0d565b60008061016d60208901896108d2565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506000808660200160208101906101a791906108d2565b6001600160a01b0316606088013560408901356101c760a08b018b610a33565b6101d460208d018d6108d2565b6040516020016101e693929190610a7a565b60408051601f198184030181529082905261020091610aa0565b600060405180830381858888f193505050503d806000811461023e576040519150601f19603f3d011682016040523d82523d6000602084013e610243565b606091505b509092509050610258603f6060890135610abc565b5a1161026657610266610ade565b90969095509350505050565b60008061038584848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061037f92507fdd8f4b70b0f4393e889bd39128a30628a78b61816a9eb8199759e7a349657e4891506102e2905060208a018a6108d2565b6102f260408b0160208c016108d2565b60408b013560608c013560808d013561030e60a08f018f610a33565b60405161031c929190610af4565b6040805191829003822060208301989098526001600160a01b0396871690820152949093166060850152608084019190915260a083015260c082015260e081019190915261010001604051602081830303815290604052805190602001206103f0565b90610444565b9050608085013560008061039c60208901896108d2565b6001600160a01b03166001600160a01b03168152602001908152602001600020541480156103e757506103d260208601866108d2565b6001600160a01b0316816001600160a01b0316145b95945050505050565b600061043e6103fd610468565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b92915050565b6000806000610453858561058f565b91509150610460816105fd565b509392505050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156104c157507f000000000000000000000000000000000000000000000000000000000000000046145b156104eb57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60008082516041036105c55760208301516040840151606085015160001a6105b9878285856107b6565b945094505050506105f6565b82516040036105ee57602083015160408401516105e38683836108a3565b9350935050506105f6565b506000905060025b9250929050565b600081600481111561061157610611610b04565b036106195750565b600181600481111561062d5761062d610b04565b0361067a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610145565b600281600481111561068e5761068e610b04565b036106db5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610145565b60038160048111156106ef576106ef610b04565b036107475760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610145565b600481600481111561075b5761075b610b04565b036107b35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610145565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156107ed575060009050600361089a565b8460ff16601b1415801561080557508460ff16601c14155b15610816575060009050600461089a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561086a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108935760006001925092505061089a565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016108c4878288856107b6565b935093505050935093915050565b6000602082840312156108e457600080fd5b81356001600160a01b03811681146108fb57600080fd5b9392505050565b60008060006040848603121561091757600080fd5b833567ffffffffffffffff8082111561092f57600080fd5b9085019060c0828803121561094357600080fd5b9093506020850135908082111561095957600080fd5b818601915086601f83011261096d57600080fd5b81358181111561097c57600080fd5b87602082850101111561098e57600080fd5b6020830194508093505050509250925092565b60005b838110156109bc5781810151838201526020016109a4565b838111156109cb576000848401525b50505050565b821515815260406020820152600082518060408401526109f88160608501602087016109a1565b601f01601f1916919091016060019392505050565b60008219821115610a2e57634e487b7160e01b600052601160045260246000fd5b500190565b6000808335601e19843603018112610a4a57600080fd5b83018035915067ffffffffffffffff821115610a6557600080fd5b6020019150368190038213156105f657600080fd5b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b60008251610ab28184602087016109a1565b9190910192915050565b600082610ad957634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052600160045260246000fd5b8183823760009101908152919050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220a3190a4169d63ed0d813cd351e209f93225443d8f6fb9d78fe2c9a3a6a721e5664736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100345760003560e01c80632d0335ab1461003957806347153f8214610082578063bf5d3bdb146100a3575b600080fd5b34801561004557600080fd5b5061006f6100543660046108d2565b6001600160a01b031660009081526020819052604090205490565b6040519081526020015b60405180910390f35b610095610090366004610902565b6100d3565b6040516100799291906109d1565b3480156100af57600080fd5b506100c36100be366004610902565b610272565b6040519015158152602001610079565b600060606100e2858585610272565b61014e5760405162461bcd60e51b815260206004820152603260248201527f4d696e696d616c466f727761726465723a207369676e617475726520646f6573604482015271081b9bdd081b585d18da081c995c5d595cdd60721b60648201526084015b60405180910390fd5b61015d60808601356001610a0d565b60008061016d60208901896108d2565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506000808660200160208101906101a791906108d2565b6001600160a01b0316606088013560408901356101c760a08b018b610a33565b6101d460208d018d6108d2565b6040516020016101e693929190610a7a565b60408051601f198184030181529082905261020091610aa0565b600060405180830381858888f193505050503d806000811461023e576040519150601f19603f3d011682016040523d82523d6000602084013e610243565b606091505b509092509050610258603f6060890135610abc565b5a1161026657610266610ade565b90969095509350505050565b60008061038584848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061037f92507fdd8f4b70b0f4393e889bd39128a30628a78b61816a9eb8199759e7a349657e4891506102e2905060208a018a6108d2565b6102f260408b0160208c016108d2565b60408b013560608c013560808d013561030e60a08f018f610a33565b60405161031c929190610af4565b6040805191829003822060208301989098526001600160a01b0396871690820152949093166060850152608084019190915260a083015260c082015260e081019190915261010001604051602081830303815290604052805190602001206103f0565b90610444565b9050608085013560008061039c60208901896108d2565b6001600160a01b03166001600160a01b03168152602001908152602001600020541480156103e757506103d260208601866108d2565b6001600160a01b0316816001600160a01b0316145b95945050505050565b600061043e6103fd610468565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b92915050565b6000806000610453858561058f565b91509150610460816105fd565b509392505050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156104c157507f000000000000000000000000000000000000000000000000000000000000000046145b156104eb57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60008082516041036105c55760208301516040840151606085015160001a6105b9878285856107b6565b945094505050506105f6565b82516040036105ee57602083015160408401516105e38683836108a3565b9350935050506105f6565b506000905060025b9250929050565b600081600481111561061157610611610b04565b036106195750565b600181600481111561062d5761062d610b04565b0361067a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610145565b600281600481111561068e5761068e610b04565b036106db5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610145565b60038160048111156106ef576106ef610b04565b036107475760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610145565b600481600481111561075b5761075b610b04565b036107b35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610145565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156107ed575060009050600361089a565b8460ff16601b1415801561080557508460ff16601c14155b15610816575060009050600461089a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561086a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108935760006001925092505061089a565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016108c4878288856107b6565b935093505050935093915050565b6000602082840312156108e457600080fd5b81356001600160a01b03811681146108fb57600080fd5b9392505050565b60008060006040848603121561091757600080fd5b833567ffffffffffffffff8082111561092f57600080fd5b9085019060c0828803121561094357600080fd5b9093506020850135908082111561095957600080fd5b818601915086601f83011261096d57600080fd5b81358181111561097c57600080fd5b87602082850101111561098e57600080fd5b6020830194508093505050509250925092565b60005b838110156109bc5781810151838201526020016109a4565b838111156109cb576000848401525b50505050565b821515815260406020820152600082518060408401526109f88160608501602087016109a1565b601f01601f1916919091016060019392505050565b60008219821115610a2e57634e487b7160e01b600052601160045260246000fd5b500190565b6000808335601e19843603018112610a4a57600080fd5b83018035915067ffffffffffffffff821115610a6557600080fd5b6020019150368190038213156105f657600080fd5b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b60008251610ab28184602087016109a1565b9190910192915050565b600082610ad957634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052600160045260246000fd5b8183823760009101908152919050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220a3190a4169d63ed0d813cd351e209f93225443d8f6fb9d78fe2c9a3a6a721e5664736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": []}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "req", "type": "tuple", "components": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "gas", "type": "uint256", "internalType": "uint256"}, {"name": "nonce", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "internalType": "struct MinimalForwarder.ForwardRequest"}, {"name": "signature", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}, {"name": "", "type": "bytes", "internalType": "bytes"}]}, {"type": "function", "name": "getNonce", "stateMutability": "view", "inputs": [{"name": "from", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "verify", "stateMutability": "view", "inputs": [{"name": "req", "type": "tuple", "components": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "gas", "type": "uint256", "internalType": "uint256"}, {"name": "nonce", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "internalType": "struct MinimalForwarder.ForwardRequest"}, {"name": "signature", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Simple minimal forwarder to be used together with an ERC2771 compatible contract. See {ERC2771Context}.", "kind": "dev", "methods": {}, "version": 1}}, "AccessControlEnumerableMock": {"contractName": "AccessControlEnumerableMock", "sourceId": "mocks/AccessControlEnumerableMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061001c600033610021565b610177565b61002b828261002f565b5050565b610043828261006c60201b6103341760201c565b60008281526001602090815260409091206100679183906103b861010a821b17901c565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661002b576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556100c63390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600061011f836001600160a01b038416610128565b90505b92915050565b600081815260018301602052604081205461016f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610122565b506000610122565b610af9806101866000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80634b9304a4116100715780634b9304a4146101425780639010d07c1461015557806391d1485414610180578063a217fddf14610193578063ca15c8731461019b578063d547741f146101ae57600080fd5b806301ffc9a7146100ae5780631e4e0091146100d6578063248a9ca3146100eb5780632f2ff15d1461011c57806336568abe1461012f575b600080fd5b6100c16100bc36600461088d565b6101c1565b60405190151581526020015b60405180910390f35b6100e96100e43660046108b7565b6101ec565b005b61010e6100f93660046108d9565b60009081526020819052604090206001015490565b6040519081526020016100cd565b6100e961012a3660046108f2565b6101fa565b6100e961013d3660046108f2565b610225565b6100e96101503660046108d9565b6102a4565b6101686101633660046108b7565b6102af565b6040516001600160a01b0390911681526020016100cd565b6100c161018e3660046108f2565b6102ce565b61010e600081565b61010e6101a93660046108d9565b6102f7565b6100e96101bc3660046108f2565b61030e565b60006001600160e01b03198216635a05180f60e01b14806101e657506101e6826103cd565b92915050565b6101f68282610402565b5050565b600082815260208190526040902060010154610216813361044d565b61022083836104b1565b505050565b6001600160a01b038116331461029a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6101f682826104d3565b806101f6813361044d565b60008281526001602052604081206102c790836104f5565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60008181526001602052604081206101e690610501565b60008281526020819052604090206001015461032a813361044d565b61022083836104d3565b61033e82826102ce565b6101f6576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556103743390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006102c7836001600160a01b03841661050b565b60006001600160e01b03198216637965db0b60e01b14806101e657506301ffc9a760e01b6001600160e01b03198316146101e6565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b61045782826102ce565b6101f65761046f816001600160a01b0316601461055a565b61047a83602061055a565b60405160200161048b92919061095e565b60408051601f198184030181529082905262461bcd60e51b8252610291916004016109d3565b6104bb8282610334565b600082815260016020526040902061022090826103b8565b6104dd82826106f6565b6000828152600160205260409020610220908261075b565b60006102c78383610770565b60006101e6825490565b6000818152600183016020526040812054610552575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556101e6565b5060006101e6565b60606000610569836002610a1c565b610574906002610a3b565b67ffffffffffffffff81111561058c5761058c610a53565b6040519080825280601f01601f1916602001820160405280156105b6576020820181803683370190505b509050600360fc1b816000815181106105d1576105d1610a69565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061060057610600610a69565b60200101906001600160f81b031916908160001a9053506000610624846002610a1c565b61062f906001610a3b565b90505b60018111156106a7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061066357610663610a69565b1a60f81b82828151811061067957610679610a69565b60200101906001600160f81b031916908160001a90535060049490941c936106a081610a7f565b9050610632565b5083156102c75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610291565b61070082826102ce565b156101f6576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006102c7836001600160a01b03841661079a565b600082600001828154811061078757610787610a69565b9060005260206000200154905092915050565b600081815260018301602052604081205480156108835760006107be600183610a96565b85549091506000906107d290600190610a96565b90508181146108375760008660000182815481106107f2576107f2610a69565b906000526020600020015490508087600001848154811061081557610815610a69565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061084857610848610aad565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506101e6565b60009150506101e6565b60006020828403121561089f57600080fd5b81356001600160e01b0319811681146102c757600080fd5b600080604083850312156108ca57600080fd5b50508035926020909101359150565b6000602082840312156108eb57600080fd5b5035919050565b6000806040838503121561090557600080fd5b8235915060208301356001600160a01b038116811461092357600080fd5b809150509250929050565b60005b83811015610949578181015183820152602001610931565b83811115610958576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161099681601785016020880161092e565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516109c781602884016020880161092e565b01602801949350505050565b60208152600082518060208401526109f281604085016020870161092e565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610a3657610a36610a06565b500290565b60008219821115610a4e57610a4e610a06565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600081610a8e57610a8e610a06565b506000190190565b600082821015610aa857610aa8610a06565b500390565b634e487b7160e01b600052603160045260246000fdfea26469706673582212207c84a207741c98f89e8b6d9d0daa2b38db03fd6d6b585cf54d5b8c4db7b1b2b464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80634b9304a4116100715780634b9304a4146101425780639010d07c1461015557806391d1485414610180578063a217fddf14610193578063ca15c8731461019b578063d547741f146101ae57600080fd5b806301ffc9a7146100ae5780631e4e0091146100d6578063248a9ca3146100eb5780632f2ff15d1461011c57806336568abe1461012f575b600080fd5b6100c16100bc36600461088d565b6101c1565b60405190151581526020015b60405180910390f35b6100e96100e43660046108b7565b6101ec565b005b61010e6100f93660046108d9565b60009081526020819052604090206001015490565b6040519081526020016100cd565b6100e961012a3660046108f2565b6101fa565b6100e961013d3660046108f2565b610225565b6100e96101503660046108d9565b6102a4565b6101686101633660046108b7565b6102af565b6040516001600160a01b0390911681526020016100cd565b6100c161018e3660046108f2565b6102ce565b61010e600081565b61010e6101a93660046108d9565b6102f7565b6100e96101bc3660046108f2565b61030e565b60006001600160e01b03198216635a05180f60e01b14806101e657506101e6826103cd565b92915050565b6101f68282610402565b5050565b600082815260208190526040902060010154610216813361044d565b61022083836104b1565b505050565b6001600160a01b038116331461029a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6101f682826104d3565b806101f6813361044d565b60008281526001602052604081206102c790836104f5565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60008181526001602052604081206101e690610501565b60008281526020819052604090206001015461032a813361044d565b61022083836104d3565b61033e82826102ce565b6101f6576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556103743390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006102c7836001600160a01b03841661050b565b60006001600160e01b03198216637965db0b60e01b14806101e657506301ffc9a760e01b6001600160e01b03198316146101e6565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b61045782826102ce565b6101f65761046f816001600160a01b0316601461055a565b61047a83602061055a565b60405160200161048b92919061095e565b60408051601f198184030181529082905262461bcd60e51b8252610291916004016109d3565b6104bb8282610334565b600082815260016020526040902061022090826103b8565b6104dd82826106f6565b6000828152600160205260409020610220908261075b565b60006102c78383610770565b60006101e6825490565b6000818152600183016020526040812054610552575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556101e6565b5060006101e6565b60606000610569836002610a1c565b610574906002610a3b565b67ffffffffffffffff81111561058c5761058c610a53565b6040519080825280601f01601f1916602001820160405280156105b6576020820181803683370190505b509050600360fc1b816000815181106105d1576105d1610a69565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061060057610600610a69565b60200101906001600160f81b031916908160001a9053506000610624846002610a1c565b61062f906001610a3b565b90505b60018111156106a7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061066357610663610a69565b1a60f81b82828151811061067957610679610a69565b60200101906001600160f81b031916908160001a90535060049490941c936106a081610a7f565b9050610632565b5083156102c75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610291565b61070082826102ce565b156101f6576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006102c7836001600160a01b03841661079a565b600082600001828154811061078757610787610a69565b9060005260206000200154905092915050565b600081815260018301602052604081205480156108835760006107be600183610a96565b85549091506000906107d290600190610a96565b90508181146108375760008660000182815481106107f2576107f2610a69565b906000526020600020015490508087600001848154811061081557610815610a69565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061084857610848610aad565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506101e6565b60009150506101e6565b60006020828403121561089f57600080fd5b81356001600160e01b0319811681146102c757600080fd5b600080604083850312156108ca57600080fd5b50508035926020909101359150565b6000602082840312156108eb57600080fd5b5035919050565b6000806040838503121561090557600080fd5b8235915060208301356001600160a01b038116811461092357600080fd5b809150509250929050565b60005b83811015610949578181015183820152602001610931565b83811115610958576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161099681601785016020880161092e565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516109c781602884016020880161092e565b01602801949350505050565b60208152600082518060208401526109f281604085016020870161092e565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610a3657610a36610a06565b500290565b60008219821115610a4e57610a4e610a06565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600081610a8e57610a8e610a06565b506000190190565b600082821015610aa857610aa8610a06565b500390565b634e487b7160e01b600052603160045260246000fdfea26469706673582212207c84a207741c98f89e8b6d9d0daa2b38db03fd6d6b585cf54d5b8c4db7b1b2b464736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": []}, {"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleMember", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getRoleMemberCount", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "senderProtected", "stateMutability": "nonpayable", "inputs": [{"name": "roleId", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "setRoleAdmin", "stateMutability": "nonpayable", "inputs": [{"name": "roleId", "type": "bytes32", "internalType": "bytes32"}, {"name": "adminRoleId", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."}, "getRoleMember(bytes32,uint256)": {"details": "Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."}, "getRoleMemberCount(bytes32)": {"details": "Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}}, "version": 1}}, "AccessControlMock": {"contractName": "AccessControlMock", "sourceId": "mocks/AccessControlMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061001c600033610021565b6100cd565b61002b828261002f565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661002b576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556100893390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610830806100dc6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c806336568abe1161006657806336568abe146101195780634b9304a41461012c57806391d148541461013f578063a217fddf14610152578063d547741f1461015a57600080fd5b806301ffc9a7146100985780631e4e0091146100c0578063248a9ca3146100d55780632f2ff15d14610106575b600080fd5b6100ab6100a63660046105f1565b61016d565b60405190151581526020015b60405180910390f35b6100d36100ce36600461061b565b6101a4565b005b6100f86100e336600461063d565b60009081526020819052604090206001015490565b6040519081526020016100b7565b6100d3610114366004610656565b6101b2565b6100d3610127366004610656565b6101dd565b6100d361013a36600461063d565b61025c565b6100ab61014d366004610656565b610267565b6100f8600081565b6100d3610168366004610656565b610290565b60006001600160e01b03198216637965db0b60e01b148061019e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6101ae82826102b6565b5050565b6000828152602081905260409020600101546101ce8133610301565b6101d88383610365565b505050565b6001600160a01b03811633146102525760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6101ae82826103e9565b806101ae8133610301565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000828152602081905260409020600101546102ac8133610301565b6101d883836103e9565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b61030b8282610267565b6101ae57610323816001600160a01b0316601461044e565b61032e83602061044e565b60405160200161033f9291906106c2565b60408051601f198184030181529082905262461bcd60e51b825261024991600401610737565b61036f8282610267565b6101ae576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556103a53390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6103f38282610267565b156101ae576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6060600061045d836002610780565b61046890600261079f565b67ffffffffffffffff811115610480576104806107b7565b6040519080825280601f01601f1916602001820160405280156104aa576020820181803683370190505b509050600360fc1b816000815181106104c5576104c56107cd565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106104f4576104f46107cd565b60200101906001600160f81b031916908160001a9053506000610518846002610780565b61052390600161079f565b90505b600181111561059b576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610557576105576107cd565b1a60f81b82828151811061056d5761056d6107cd565b60200101906001600160f81b031916908160001a90535060049490941c93610594816107e3565b9050610526565b5083156105ea5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610249565b9392505050565b60006020828403121561060357600080fd5b81356001600160e01b0319811681146105ea57600080fd5b6000806040838503121561062e57600080fd5b50508035926020909101359150565b60006020828403121561064f57600080fd5b5035919050565b6000806040838503121561066957600080fd5b8235915060208301356001600160a01b038116811461068757600080fd5b809150509250929050565b60005b838110156106ad578181015183820152602001610695565b838111156106bc576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516106fa816017850160208801610692565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161072b816028840160208801610692565b01602801949350505050565b6020815260008251806020840152610756816040850160208701610692565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561079a5761079a61076a565b500290565b600082198211156107b2576107b261076a565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816107f2576107f261076a565b50600019019056fea26469706673582212208f17e85b333e587fa8c258445ba165bb55af427d66023d536a0e92efeef6d7ad64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100935760003560e01c806336568abe1161006657806336568abe146101195780634b9304a41461012c57806391d148541461013f578063a217fddf14610152578063d547741f1461015a57600080fd5b806301ffc9a7146100985780631e4e0091146100c0578063248a9ca3146100d55780632f2ff15d14610106575b600080fd5b6100ab6100a63660046105f1565b61016d565b60405190151581526020015b60405180910390f35b6100d36100ce36600461061b565b6101a4565b005b6100f86100e336600461063d565b60009081526020819052604090206001015490565b6040519081526020016100b7565b6100d3610114366004610656565b6101b2565b6100d3610127366004610656565b6101dd565b6100d361013a36600461063d565b61025c565b6100ab61014d366004610656565b610267565b6100f8600081565b6100d3610168366004610656565b610290565b60006001600160e01b03198216637965db0b60e01b148061019e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6101ae82826102b6565b5050565b6000828152602081905260409020600101546101ce8133610301565b6101d88383610365565b505050565b6001600160a01b03811633146102525760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6101ae82826103e9565b806101ae8133610301565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000828152602081905260409020600101546102ac8133610301565b6101d883836103e9565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b61030b8282610267565b6101ae57610323816001600160a01b0316601461044e565b61032e83602061044e565b60405160200161033f9291906106c2565b60408051601f198184030181529082905262461bcd60e51b825261024991600401610737565b61036f8282610267565b6101ae576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556103a53390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6103f38282610267565b156101ae576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6060600061045d836002610780565b61046890600261079f565b67ffffffffffffffff811115610480576104806107b7565b6040519080825280601f01601f1916602001820160405280156104aa576020820181803683370190505b509050600360fc1b816000815181106104c5576104c56107cd565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106104f4576104f46107cd565b60200101906001600160f81b031916908160001a9053506000610518846002610780565b61052390600161079f565b90505b600181111561059b576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610557576105576107cd565b1a60f81b82828151811061056d5761056d6107cd565b60200101906001600160f81b031916908160001a90535060049490941c93610594816107e3565b9050610526565b5083156105ea5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610249565b9392505050565b60006020828403121561060357600080fd5b81356001600160e01b0319811681146105ea57600080fd5b6000806040838503121561062e57600080fd5b50508035926020909101359150565b60006020828403121561064f57600080fd5b5035919050565b6000806040838503121561066957600080fd5b8235915060208301356001600160a01b038116811461068757600080fd5b809150509250929050565b60005b838110156106ad578181015183820152602001610695565b838111156106bc576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516106fa816017850160208801610692565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161072b816028840160208801610692565b01602801949350505050565b6020815260008251806020840152610756816040850160208701610692565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561079a5761079a61076a565b500290565b600082198211156107b2576107b261076a565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816107f2576107f261076a565b50600019019056fea26469706673582212208f17e85b333e587fa8c258445ba165bb55af427d66023d536a0e92efeef6d7ad64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": []}, {"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "senderProtected", "stateMutability": "nonpayable", "inputs": [{"name": "roleId", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "setRoleAdmin", "stateMutability": "nonpayable", "inputs": [{"name": "roleId", "type": "bytes32", "internalType": "bytes32"}, {"name": "adminRoleId", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}}, "version": 1}}, "AddressImpl": {"contractName": "AddressImpl", "sourceId": "mocks/AddressImpl.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610c04806100206000396000f3fe6080604052600436106100745760003560e01c8063a0b5ffb01161004e578063a0b5ffb0146100eb578063c21d36f31461010b578063ee33b7e21461012b578063fc40cf731461014b57600080fd5b8063162790551461008057806324a084df146100b65780632a011594146100d857600080fd5b3661007b57005b600080fd5b34801561008c57600080fd5b506100a161009b3660046108a5565b3b151590565b60405190151581526020015b60405180910390f35b3480156100c257600080fd5b506100d66100d13660046108c2565b61016d565b005b6100d66100e6366004610937565b61017b565b3480156100f757600080fd5b506100d6610106366004610993565b610212565b34801561011757600080fd5b506100d6610126366004610993565b6102a6565b34801561013757600080fd5b506100d6610146366004610993565b6102e8565b34801561015757600080fd5b5061016061032a565b6040516100ad9190610a18565b61017782826103b8565b5050565b60006101bf8585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508792506104db915050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c818060200190518101906101f69190610a61565b6040516102039190610a18565b60405180910390a15050505050565b60006102548484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061050b92505050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c8180602001905181019061028b9190610a61565b6040516102989190610a18565b60405180910390a150505050565b60006102548484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061054d92505050565b60006102548484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061057292505050565b6000805461033790610b03565b80601f016020809104026020016040519081016040528092919081815260200182805461036390610b03565b80156103b05780601f10610385576101008083540402835291602001916103b0565b820191906000526020600020905b81548152906001019060200180831161039357829003601f168201915b505050505081565b8047101561040d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064015b60405180910390fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461045a576040519150601f19603f3d011682016040523d82523d6000602084013e61045f565b606091505b50509050806104d65760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610404565b505050565b6060610501848484604051806060016040528060298152602001610b5a60299139610597565b90505b9392505050565b606061050483836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c656400008152506106bf565b60606105048383604051806060016040528060258152602001610b83602591396106ce565b60606105048383604051806060016040528060278152602001610ba86027913961079f565b6060824710156105f85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610404565b843b6106465760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610404565b600080866001600160a01b031685876040516106629190610b3d565b60006040518083038185875af1925050503d806000811461069f576040519150601f19603f3d011682016040523d82523d6000602084013e6106a4565b606091505b50915091506106b4828286610854565b979650505050505050565b60606105018484600085610597565b6060833b61072a5760405162461bcd60e51b8152602060048201526024808201527f416464726573733a207374617469632063616c6c20746f206e6f6e2d636f6e746044820152631c9858dd60e21b6064820152608401610404565b600080856001600160a01b0316856040516107459190610b3d565b600060405180830381855afa9150503d8060008114610780576040519150601f19603f3d011682016040523d82523d6000602084013e610785565b606091505b5091509150610795828286610854565b9695505050505050565b6060833b6107fe5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610404565b600080856001600160a01b0316856040516108199190610b3d565b600060405180830381855af49150503d8060008114610780576040519150601f19603f3d011682016040523d82523d6000602084013e610785565b60608315610863575081610504565b8251156108735782518084602001fd5b8160405162461bcd60e51b81526004016104049190610a18565b6001600160a01b03811681146108a257600080fd5b50565b6000602082840312156108b757600080fd5b81356105048161088d565b600080604083850312156108d557600080fd5b82356108e08161088d565b946020939093013593505050565b60008083601f84011261090057600080fd5b50813567ffffffffffffffff81111561091857600080fd5b60208301915083602082850101111561093057600080fd5b9250929050565b6000806000806060858703121561094d57600080fd5b84356109588161088d565b9350602085013567ffffffffffffffff81111561097457600080fd5b610980878288016108ee565b9598909750949560400135949350505050565b6000806000604084860312156109a857600080fd5b83356109b38161088d565b9250602084013567ffffffffffffffff8111156109cf57600080fd5b6109db868287016108ee565b9497909650939450505050565b60005b83811015610a035781810151838201526020016109eb565b83811115610a12576000848401525b50505050565b6020815260008251806020840152610a378160408501602087016109e8565b601f01601f19169190910160400192915050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610a7357600080fd5b815167ffffffffffffffff80821115610a8b57600080fd5b818401915084601f830112610a9f57600080fd5b815181811115610ab157610ab1610a4b565b604051601f8201601f19908116603f01168101908382118183101715610ad957610ad9610a4b565b81604052828152876020848701011115610af257600080fd5b6106b48360208301602088016109e8565b600181811c90821680610b1757607f821691505b602082108103610b3757634e487b7160e01b600052602260045260246000fd5b50919050565b60008251610b4f8184602087016109e8565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564416464726573733a206c6f772d6c6576656c207374617469632063616c6c206661696c6564416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220aeea6c910158fbe545b0a7aaeeb22a321e2ee9c7b9d7a427b0388a79a0f6efd364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100745760003560e01c8063a0b5ffb01161004e578063a0b5ffb0146100eb578063c21d36f31461010b578063ee33b7e21461012b578063fc40cf731461014b57600080fd5b8063162790551461008057806324a084df146100b65780632a011594146100d857600080fd5b3661007b57005b600080fd5b34801561008c57600080fd5b506100a161009b3660046108a5565b3b151590565b60405190151581526020015b60405180910390f35b3480156100c257600080fd5b506100d66100d13660046108c2565b61016d565b005b6100d66100e6366004610937565b61017b565b3480156100f757600080fd5b506100d6610106366004610993565b610212565b34801561011757600080fd5b506100d6610126366004610993565b6102a6565b34801561013757600080fd5b506100d6610146366004610993565b6102e8565b34801561015757600080fd5b5061016061032a565b6040516100ad9190610a18565b61017782826103b8565b5050565b60006101bf8585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508792506104db915050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c818060200190518101906101f69190610a61565b6040516102039190610a18565b60405180910390a15050505050565b60006102548484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061050b92505050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c8180602001905181019061028b9190610a61565b6040516102989190610a18565b60405180910390a150505050565b60006102548484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061054d92505050565b60006102548484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061057292505050565b6000805461033790610b03565b80601f016020809104026020016040519081016040528092919081815260200182805461036390610b03565b80156103b05780601f10610385576101008083540402835291602001916103b0565b820191906000526020600020905b81548152906001019060200180831161039357829003601f168201915b505050505081565b8047101561040d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064015b60405180910390fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461045a576040519150601f19603f3d011682016040523d82523d6000602084013e61045f565b606091505b50509050806104d65760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610404565b505050565b6060610501848484604051806060016040528060298152602001610b5a60299139610597565b90505b9392505050565b606061050483836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c656400008152506106bf565b60606105048383604051806060016040528060258152602001610b83602591396106ce565b60606105048383604051806060016040528060278152602001610ba86027913961079f565b6060824710156105f85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610404565b843b6106465760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610404565b600080866001600160a01b031685876040516106629190610b3d565b60006040518083038185875af1925050503d806000811461069f576040519150601f19603f3d011682016040523d82523d6000602084013e6106a4565b606091505b50915091506106b4828286610854565b979650505050505050565b60606105018484600085610597565b6060833b61072a5760405162461bcd60e51b8152602060048201526024808201527f416464726573733a207374617469632063616c6c20746f206e6f6e2d636f6e746044820152631c9858dd60e21b6064820152608401610404565b600080856001600160a01b0316856040516107459190610b3d565b600060405180830381855afa9150503d8060008114610780576040519150601f19603f3d011682016040523d82523d6000602084013e610785565b606091505b5091509150610795828286610854565b9695505050505050565b6060833b6107fe5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610404565b600080856001600160a01b0316856040516108199190610b3d565b600060405180830381855af49150503d8060008114610780576040519150601f19603f3d011682016040523d82523d6000602084013e610785565b60608315610863575081610504565b8251156108735782518084602001fd5b8160405162461bcd60e51b81526004016104049190610a18565b6001600160a01b03811681146108a257600080fd5b50565b6000602082840312156108b757600080fd5b81356105048161088d565b600080604083850312156108d557600080fd5b82356108e08161088d565b946020939093013593505050565b60008083601f84011261090057600080fd5b50813567ffffffffffffffff81111561091857600080fd5b60208301915083602082850101111561093057600080fd5b9250929050565b6000806000806060858703121561094d57600080fd5b84356109588161088d565b9350602085013567ffffffffffffffff81111561097457600080fd5b610980878288016108ee565b9598909750949560400135949350505050565b6000806000604084860312156109a857600080fd5b83356109b38161088d565b9250602084013567ffffffffffffffff8111156109cf57600080fd5b6109db868287016108ee565b9497909650939450505050565b60005b83811015610a035781810151838201526020016109eb565b83811115610a12576000848401525b50505050565b6020815260008251806020840152610a378160408501602087016109e8565b601f01601f19169190910160400192915050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610a7357600080fd5b815167ffffffffffffffff80821115610a8b57600080fd5b818401915084601f830112610a9f57600080fd5b815181811115610ab157610ab1610a4b565b604051601f8201601f19908116603f01168101908382118183101715610ad957610ad9610a4b565b81604052828152876020848701011115610af257600080fd5b6106b48360208301602088016109e8565b600181811c90821680610b1757607f821691505b602082108103610b3757634e487b7160e01b600052602260045260246000fd5b50919050565b60008251610b4f8184602087016109e8565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564416464726573733a206c6f772d6c6576656c207374617469632063616c6c206661696c6564416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220aeea6c910158fbe545b0a7aaeeb22a321e2ee9c7b9d7a427b0388a79a0f6efd364736f6c634300080d0033"}, "abi": [{"type": "event", "name": "CallReturnValue", "inputs": [{"name": "data", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "functionCall", "stateMutability": "nonpayable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "functionCallWithValue", "stateMutability": "payable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "functionDelegateCall", "stateMutability": "nonpayable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "functionStaticCall", "stateMutability": "nonpayable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "isContract", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "sendValue", "stateMutability": "nonpayable", "inputs": [{"name": "receiver", "type": "address", "internalType": "address payable"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "sharedAnswer", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ArraysImpl": {"contractName": "ArraysImpl", "sourceId": "mocks/ArraysImpl.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506040516103a53803806103a583398101604081905261002f916100bf565b8051610042906000906020840190610049565b505061017c565b828054828255906000526020600020908101928215610084579160200282015b82811115610084578251825591602001919060010190610069565b50610090929150610094565b5090565b5b808211156100905760008155600101610095565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156100d257600080fd5b82516001600160401b03808211156100e957600080fd5b818501915085601f8301126100fd57600080fd5b81518181111561010f5761010f6100a9565b8060051b604051601f19603f83011681018181108582111715610134576101346100a9565b60405291825284820192508381018501918883111561015257600080fd5b938501935b8285101561017057845184529385019392850192610157565b98975050505050505050565b61021a8061018b6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806333e3a58a14610030575b600080fd5b61004361003e36600461014e565b610055565b60405190815260200160405180910390f35b60006100618183610067565b92915050565b8154600090810361007a57506000610061565b82546000905b808210156100d6576000610094838361012c565b9050848682815481106100a9576100a9610167565b906000526020600020015411156100c2578091506100d0565b6100cd816001610193565b92505b50610080565b60008211801561010b575083856100ee6001856101ab565b815481106100fe576100fe610167565b9060005260206000200154145b156101245761011b6001836101ab565b92505050610061565b509392505050565b600061013b60028484186101c2565b61014790848416610193565b9392505050565b60006020828403121561016057600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156101a6576101a661017d565b500190565b6000828210156101bd576101bd61017d565b500390565b6000826101df57634e487b7160e01b600052601260045260246000fd5b50049056fea264697066735822122010ca24f735e0e93f63a607748ab06c0b15b92be5fe27f7f88bedec5c3cf2877464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806333e3a58a14610030575b600080fd5b61004361003e36600461014e565b610055565b60405190815260200160405180910390f35b60006100618183610067565b92915050565b8154600090810361007a57506000610061565b82546000905b808210156100d6576000610094838361012c565b9050848682815481106100a9576100a9610167565b906000526020600020015411156100c2578091506100d0565b6100cd816001610193565b92505b50610080565b60008211801561010b575083856100ee6001856101ab565b815481106100fe576100fe610167565b9060005260206000200154145b156101245761011b6001836101ab565b92505050610061565b509392505050565b600061013b60028484186101c2565b61014790848416610193565b9392505050565b60006020828403121561016057600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156101a6576101a661017d565b500190565b6000828210156101bd576101bd61017d565b500390565b6000826101df57634e487b7160e01b600052601260045260246000fd5b50049056fea264697066735822122010ca24f735e0e93f63a607748ab06c0b15b92be5fe27f7f88bedec5c3cf2877464736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "array", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "findUpperBound", "stateMutability": "view", "inputs": [{"name": "element", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "BadBeaconNoImpl": {"contractName": "BadBeaconNoImpl", "sourceId": "mocks/BadBeacon.sol", "deploymentBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea26469706673582212204a049e093547cbfa462ef142d60ee9d9277e01da23392971b5c170744dc6933a64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600080fdfea26469706673582212204a049e093547cbfa462ef142d60ee9d9277e01da23392971b5c170744dc6933a64736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "BadBeaconNotContract": {"contractName": "BadBeaconNotContract", "sourceId": "mocks/BadBeacon.sol", "deploymentBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b50607780601d6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c80635c60da1b14602d575b600080fd5b604080516001815290519081900360200190f3fea2646970667358221220ad737da36a8b9ad200d10c47073fa5d43040fd2b814908b72fc24d46f1294d1964736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c80635c60da1b14602d575b600080fd5b604080516001815290519081900360200190f3fea2646970667358221220ad737da36a8b9ad200d10c47073fa5d43040fd2b814908b72fc24d46f1294d1964736f6c634300080d0033"}, "abi": [{"type": "function", "name": "implementation", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "BitMapMock": {"contractName": "BitMapMock", "sourceId": "mocks/BitmapMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506101eb806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063088d22551461005157806360fe47b1146100845780639507d39a146100b4578063dcc9d43c146100fa575b600080fd5b61008261005f366004610167565b600881901c60009081526020819052604090208054600160ff84161b1916905550565b005b610082610092366004610167565b600881901c60009081526020819052604090208054600160ff84161b17905550565b6100e66100c2366004610167565b600881901c600090815260208190526040812054600160ff84161b16151592915050565b604051901515815260200160405180910390f35b610082610108366004610180565b61011460008383610118565b5050565b801561014257600882901c60009081526020849052604090208054600160ff85161b179055505050565b600882901c60009081526020849052604090208054600160ff85161b19169055505050565b60006020828403121561017957600080fd5b5035919050565b6000806040838503121561019357600080fd5b82359150602083013580151581146101aa57600080fd5b80915050925092905056fea2646970667358221220c3567596c099f65066c01875a79daceca7797cfc795eb4cd19467eb2c2709ee664736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063088d22551461005157806360fe47b1146100845780639507d39a146100b4578063dcc9d43c146100fa575b600080fd5b61008261005f366004610167565b600881901c60009081526020819052604090208054600160ff84161b1916905550565b005b610082610092366004610167565b600881901c60009081526020819052604090208054600160ff84161b17905550565b6100e66100c2366004610167565b600881901c600090815260208190526040812054600160ff84161b16151592915050565b604051901515815260200160405180910390f35b610082610108366004610180565b61011460008383610118565b5050565b801561014257600882901c60009081526020849052604090208054600160ff85161b179055505050565b600882901c60009081526020849052604090208054600160ff85161b19169055505050565b60006020828403121561017957600080fd5b5035919050565b6000806040838503121561019357600080fd5b82359150602083013580151581146101aa57600080fd5b80915050925092905056fea2646970667358221220c3567596c099f65066c01875a79daceca7797cfc795eb4cd19467eb2c2709ee664736f6c634300080d0033"}, "abi": [{"type": "function", "name": "get", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "set", "stateMutability": "nonpayable", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setTo", "stateMutability": "nonpayable", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "unset", "stateMutability": "nonpayable", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "CallReceiverMock": {"contractName": "CallReceiverMock", "sourceId": "mocks/CallReceiverMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061053b806100206000396000f3fe6080604052600436106100915760003560e01c8063a793ab4711610059578063a793ab47146100e3578063aa04f77e146100eb578063c8fc769614610100578063fc40cf731461012f578063fdb273251461014457600080fd5b80630c034968146100965780630f63e42c146100a05780632c81d638146100cb5780633bcfaa14146100d35780633e6fec04146100db575b600080fd5b61009e610157565b005b3480156100ac57600080fd5b506100b56101a3565b6040516100c29190610417565b60405180910390f35b61009e600080fd5b61009e6101f0565b6100b56101a3565b61009e6101fa565b3480156100f757600080fd5b506100b5610241565b34801561010c57600080fd5b506040805180820190915260068152650c1e0c4c8ccd60d21b60208201526100b5565b34801561013b57600080fd5b506100b5610290565b6100b561015236600461046c565b61031e565b60405162461bcd60e51b815260206004820152601b60248201527f43616c6c52656365697665724d6f636b3a20726576657274696e670000000000604482015260640160405180910390fd5b6040516060907f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1506040805180820190915260068152650c1e0c4c8ccd60d21b602082015290565b6101f861048e565b565b60005b6001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60181905561023a816104a4565b90506101fd565b604080518082019091526002808252611a1960f11b602090920191825260609161026e916000919061037e565b50506040805180820190915260068152650c1e0c4c8ccd60d21b602082015290565b6000805461029d906104cb565b80601f01602080910402602001604051908101604052809291908181526020018280546102c9906104cb565b80156103165780601f106102eb57610100808354040283529160200191610316565b820191906000526020600020905b8154815290600101906020018083116102f957829003601f168201915b505050505081565b60408051838152602081018390526060917f2b42b3c9af4187c86225f201736204c7597312c830cb5c2537dff6ef24b946ae910160405180910390a1506040805180820190915260068152650c1e0c4c8ccd60d21b602082015292915050565b82805461038a906104cb565b90600052602060002090601f0160209004810192826103ac57600085556103f2565b82601f106103c557805160ff19168380011785556103f2565b828001600101855582156103f2579182015b828111156103f25782518255916020019190600101906103d7565b506103fe929150610402565b5090565b5b808211156103fe5760008155600101610403565b600060208083528351808285015260005b8181101561044457858101830151858201604001528201610428565b81811115610456576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561047f57600080fd5b50508035926020909101359150565b634e487b7160e01b600052600160045260246000fd5b6000600182016104c457634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c908216806104df57607f821691505b6020821081036104ff57634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212203a30d5a6321eedee601d731891f27ade1e8d3e18a2364d8c07c8f7e7e7b1ad4164736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100915760003560e01c8063a793ab4711610059578063a793ab47146100e3578063aa04f77e146100eb578063c8fc769614610100578063fc40cf731461012f578063fdb273251461014457600080fd5b80630c034968146100965780630f63e42c146100a05780632c81d638146100cb5780633bcfaa14146100d35780633e6fec04146100db575b600080fd5b61009e610157565b005b3480156100ac57600080fd5b506100b56101a3565b6040516100c29190610417565b60405180910390f35b61009e600080fd5b61009e6101f0565b6100b56101a3565b61009e6101fa565b3480156100f757600080fd5b506100b5610241565b34801561010c57600080fd5b506040805180820190915260068152650c1e0c4c8ccd60d21b60208201526100b5565b34801561013b57600080fd5b506100b5610290565b6100b561015236600461046c565b61031e565b60405162461bcd60e51b815260206004820152601b60248201527f43616c6c52656365697665724d6f636b3a20726576657274696e670000000000604482015260640160405180910390fd5b6040516060907f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1506040805180820190915260068152650c1e0c4c8ccd60d21b602082015290565b6101f861048e565b565b60005b6001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60181905561023a816104a4565b90506101fd565b604080518082019091526002808252611a1960f11b602090920191825260609161026e916000919061037e565b50506040805180820190915260068152650c1e0c4c8ccd60d21b602082015290565b6000805461029d906104cb565b80601f01602080910402602001604051908101604052809291908181526020018280546102c9906104cb565b80156103165780601f106102eb57610100808354040283529160200191610316565b820191906000526020600020905b8154815290600101906020018083116102f957829003601f168201915b505050505081565b60408051838152602081018390526060917f2b42b3c9af4187c86225f201736204c7597312c830cb5c2537dff6ef24b946ae910160405180910390a1506040805180820190915260068152650c1e0c4c8ccd60d21b602082015292915050565b82805461038a906104cb565b90600052602060002090601f0160209004810192826103ac57600085556103f2565b82601f106103c557805160ff19168380011785556103f2565b828001600101855582156103f2579182015b828111156103f25782518255916020019190600101906103d7565b506103fe929150610402565b5090565b5b808211156103fe5760008155600101610403565b600060208083528351808285015260005b8181101561044457858101830151858201604001528201610428565b81811115610456576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561047f57600080fd5b50508035926020909101359150565b634e487b7160e01b600052600160045260246000fd5b6000600182016104c457634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c908216806104df57607f821691505b6020821081036104ff57634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212203a30d5a6321eedee601d731891f27ade1e8d3e18a2364d8c07c8f7e7e7b1ad4164736f6c634300080d0033"}, "abi": [{"type": "event", "name": "MockFunctionCalled", "inputs": [], "anonymous": false}, {"type": "event", "name": "MockFunctionCalledWithArgs", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "b", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "mockFunction", "stateMutability": "payable", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "mockFunctionNonPayable", "stateMutability": "nonpayable", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "mockFunctionOutOfGas", "stateMutability": "payable", "inputs": [], "outputs": []}, {"type": "function", "name": "mockFunctionRevertsNoReason", "stateMutability": "payable", "inputs": [], "outputs": []}, {"type": "function", "name": "mockFunctionRevertsReason", "stateMutability": "payable", "inputs": [], "outputs": []}, {"type": "function", "name": "mockFunctionThrows", "stateMutability": "payable", "inputs": [], "outputs": []}, {"type": "function", "name": "mockFunctionWithArgs", "stateMutability": "payable", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "mockFunctionWritesStorage", "stateMutability": "nonpayable", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "mockStaticFunction", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "sharedAnswer", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ClashingImplementation": {"contractName": "ClashingImplementation", "sourceId": "mocks/ClashingImplementation.sol", "deploymentBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b5060928061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c8063abf8e0e7146037578063f851a44014604b575b600080fd5b604051600181526020015b60405180910390f35b60405163111111428152602001604256fea26469706673582212206e6061b2391d167b6716d25be1bc9fd15a38e2ea3a8e2d7c41b7ee515d968f1864736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b506004361060325760003560e01c8063abf8e0e7146037578063f851a44014604b575b600080fd5b604051600181526020015b60405180910390f35b60405163111111428152602001604256fea26469706673582212206e6061b2391d167b6716d25be1bc9fd15a38e2ea3a8e2d7c41b7ee515d968f1864736f6c634300080d0033"}, "abi": [{"type": "function", "name": "admin", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "delegatedFunction", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation contract with an admin() function made to clash withTransparentUpgradeableProxy's to test correct functioning of theTransparent Proxy feature.", "kind": "dev", "methods": {}, "version": 1}}, "ClonesMock": {"contractName": "ClonesMock", "sourceId": "mocks/ClonesMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506106d4806100206000396000f3fe6080604052600436106100345760003560e01c80630fbe133c14610039578063360d0fad1461004e5780636e9ebc811461008a575b600080fd5b61004c610047366004610523565b61009d565b005b34801561005a57600080fd5b5061006e610069366004610576565b6100f3565b6040516001600160a01b03909116815260200160405180910390f35b61004c6100983660046105a0565b610111565b6100ee6100b2846001600160a01b031661012d565b83838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506101cf92505050565b505050565b60006101086001600160a01b0384168361022c565b90505b92915050565b6101276100b26001600160a01b03861685610292565b50505050565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528260601b60148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09150506001600160a01b0381166101ca5760405162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b60448201526064015b60405180910390fd5b919050565b8051156101ec576101ea6001600160a01b0383168234610332565b505b6040516001600160a01b03831681527f39a773f10839d86923d91d5ce7d6642f2f63a95d850495abb1f162e38aa04ea59060200160405180910390a15050565b6000610108838330604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b8152606093841b60148201526f5af43d82803e903d91602b57fd5bf3ff60801b6028820152921b6038830152604c8201526037808220606c830152605591012090565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528360601b60148201526e5af43d82803e903d91602b57fd5bf360881b6028820152826037826000f59150506001600160a01b03811661010b5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c656400000000000000000060448201526064016101c1565b606061035884848460405180606001604052806029815260200161067660299139610362565b90505b9392505050565b6060824710156103c35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101c1565b843b6104115760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101c1565b600080866001600160a01b0316858760405161042d9190610626565b60006040518083038185875af1925050503d806000811461046a576040519150601f19603f3d011682016040523d82523d6000602084013e61046f565b606091505b509150915061047f82828661048a565b979650505050505050565b6060831561049957508161035b565b8251156104a95782518084602001fd5b8160405162461bcd60e51b81526004016101c19190610642565b80356001600160a01b03811681146101ca57600080fd5b60008083601f8401126104ec57600080fd5b50813567ffffffffffffffff81111561050457600080fd5b60208301915083602082850101111561051c57600080fd5b9250929050565b60008060006040848603121561053857600080fd5b610541846104c3565b9250602084013567ffffffffffffffff81111561055d57600080fd5b610569868287016104da565b9497909650939450505050565b6000806040838503121561058957600080fd5b610592836104c3565b946020939093013593505050565b600080600080606085870312156105b657600080fd5b6105bf856104c3565b935060208501359250604085013567ffffffffffffffff8111156105e257600080fd5b6105ee878288016104da565b95989497509550505050565b60005b838110156106155781810151838201526020016105fd565b838111156101275750506000910152565b600082516106388184602087016105fa565b9190910192915050565b60208152600082518060208401526106618160408501602087016105fa565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212201db3a8c16067352af32b21cb2ed2e14ed197ef0574909df9460783ce78cc4db464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100345760003560e01c80630fbe133c14610039578063360d0fad1461004e5780636e9ebc811461008a575b600080fd5b61004c610047366004610523565b61009d565b005b34801561005a57600080fd5b5061006e610069366004610576565b6100f3565b6040516001600160a01b03909116815260200160405180910390f35b61004c6100983660046105a0565b610111565b6100ee6100b2846001600160a01b031661012d565b83838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506101cf92505050565b505050565b60006101086001600160a01b0384168361022c565b90505b92915050565b6101276100b26001600160a01b03861685610292565b50505050565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528260601b60148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09150506001600160a01b0381166101ca5760405162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b60448201526064015b60405180910390fd5b919050565b8051156101ec576101ea6001600160a01b0383168234610332565b505b6040516001600160a01b03831681527f39a773f10839d86923d91d5ce7d6642f2f63a95d850495abb1f162e38aa04ea59060200160405180910390a15050565b6000610108838330604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b8152606093841b60148201526f5af43d82803e903d91602b57fd5bf3ff60801b6028820152921b6038830152604c8201526037808220606c830152605591012090565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528360601b60148201526e5af43d82803e903d91602b57fd5bf360881b6028820152826037826000f59150506001600160a01b03811661010b5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c656400000000000000000060448201526064016101c1565b606061035884848460405180606001604052806029815260200161067660299139610362565b90505b9392505050565b6060824710156103c35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101c1565b843b6104115760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101c1565b600080866001600160a01b0316858760405161042d9190610626565b60006040518083038185875af1925050503d806000811461046a576040519150601f19603f3d011682016040523d82523d6000602084013e61046f565b606091505b509150915061047f82828661048a565b979650505050505050565b6060831561049957508161035b565b8251156104a95782518084602001fd5b8160405162461bcd60e51b81526004016101c19190610642565b80356001600160a01b03811681146101ca57600080fd5b60008083601f8401126104ec57600080fd5b50813567ffffffffffffffff81111561050457600080fd5b60208301915083602082850101111561051c57600080fd5b9250929050565b60008060006040848603121561053857600080fd5b610541846104c3565b9250602084013567ffffffffffffffff81111561055d57600080fd5b610569868287016104da565b9497909650939450505050565b6000806040838503121561058957600080fd5b610592836104c3565b946020939093013593505050565b600080600080606085870312156105b657600080fd5b6105bf856104c3565b935060208501359250604085013567ffffffffffffffff8111156105e257600080fd5b6105ee878288016104da565b95989497509550505050565b60005b838110156106155781810151838201526020016105fd565b838111156101275750506000910152565b600082516106388184602087016105fa565b9190910192915050565b60208152600082518060208401526106618160408501602087016105fa565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212201db3a8c16067352af32b21cb2ed2e14ed197ef0574909df9460783ce78cc4db464736f6c634300080d0033"}, "abi": [{"type": "event", "name": "NewInstance", "inputs": [{"name": "instance", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "clone", "stateMutability": "payable", "inputs": [{"name": "implementation", "type": "address", "internalType": "address"}, {"name": "initdata", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "cloneDeterministic", "stateMutability": "payable", "inputs": [{"name": "implementation", "type": "address", "internalType": "address"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}, {"name": "initdata", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "predictDeterministicAddress", "stateMutability": "view", "inputs": [{"name": "implementation", "type": "address", "internalType": "address"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "predicted", "type": "address", "internalType": "address"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ConditionalEscrowMock": {"contractName": "ConditionalEscrowMock", "sourceId": "mocks/ConditionalEscrowMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6106ec8061007e6000396000f3fe60806040526004361061007b5760003560e01c80638da5cb5b1161004e5780638da5cb5b1461014b578063e3a9db1a14610173578063f2fde38b146101b7578063f340fa01146101d757600080fd5b80634697f05d1461008057806351cff8d9146100c8578063685ca194146100e8578063715018a614610136575b600080fd5b34801561008c57600080fd5b506100c661009b3660046105f9565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b005b3480156100d457600080fd5b506100c66100e3366004610637565b6101ea565b3480156100f457600080fd5b50610121610103366004610637565b6001600160a01b031660009081526002602052604090205460ff1690565b60405190151581526020015b60405180910390f35b34801561014257600080fd5b506100c661027f565b34801561015757600080fd5b506000546040516001600160a01b03909116815260200161012d565b34801561017f57600080fd5b506101a961018e366004610637565b6001600160a01b031660009081526001602052604090205490565b60405190815260200161012d565b3480156101c357600080fd5b506100c66101d2366004610637565b6102b5565b6100c66101e5366004610637565b61034d565b6001600160a01b03811660009081526002602052604090205460ff166102735760405162461bcd60e51b815260206004820152603360248201527f436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420604482015272616c6c6f77656420746f20776974686472617760681b60648201526084015b60405180910390fd5b61027c816103e9565b50565b6000546001600160a01b031633146102a95760405162461bcd60e51b815260040161026a9061065b565b6102b36000610476565b565b6000546001600160a01b031633146102df5760405162461bcd60e51b815260040161026a9061065b565b6001600160a01b0381166103445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161026a565b61027c81610476565b6000546001600160a01b031633146103775760405162461bcd60e51b815260040161026a9061065b565b6001600160a01b0381166000908152600160205260408120805434928392916103a1908490610690565b90915550506040518181526001600160a01b038316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020015b60405180910390a25050565b6000546001600160a01b031633146104135760405162461bcd60e51b815260040161026a9061065b565b6001600160a01b038116600081815260016020526040812080549190559061043b90826104c6565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516103dd91815260200190565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b804710156105165760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161026a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610563576040519150601f19603f3d011682016040523d82523d6000602084013e610568565b606091505b50509050806105df5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161026a565b505050565b6001600160a01b038116811461027c57600080fd5b6000806040838503121561060c57600080fd5b8235610617816105e4565b91506020830135801515811461062c57600080fd5b809150509250929050565b60006020828403121561064957600080fd5b8135610654816105e4565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156106b157634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220a28cf437235ddfafcb413b5c6b951cfbfe46df28936986dee655677a039ae3a564736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x60806040526004361061007b5760003560e01c80638da5cb5b1161004e5780638da5cb5b1461014b578063e3a9db1a14610173578063f2fde38b146101b7578063f340fa01146101d757600080fd5b80634697f05d1461008057806351cff8d9146100c8578063685ca194146100e8578063715018a614610136575b600080fd5b34801561008c57600080fd5b506100c661009b3660046105f9565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b005b3480156100d457600080fd5b506100c66100e3366004610637565b6101ea565b3480156100f457600080fd5b50610121610103366004610637565b6001600160a01b031660009081526002602052604090205460ff1690565b60405190151581526020015b60405180910390f35b34801561014257600080fd5b506100c661027f565b34801561015757600080fd5b506000546040516001600160a01b03909116815260200161012d565b34801561017f57600080fd5b506101a961018e366004610637565b6001600160a01b031660009081526001602052604090205490565b60405190815260200161012d565b3480156101c357600080fd5b506100c66101d2366004610637565b6102b5565b6100c66101e5366004610637565b61034d565b6001600160a01b03811660009081526002602052604090205460ff166102735760405162461bcd60e51b815260206004820152603360248201527f436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420604482015272616c6c6f77656420746f20776974686472617760681b60648201526084015b60405180910390fd5b61027c816103e9565b50565b6000546001600160a01b031633146102a95760405162461bcd60e51b815260040161026a9061065b565b6102b36000610476565b565b6000546001600160a01b031633146102df5760405162461bcd60e51b815260040161026a9061065b565b6001600160a01b0381166103445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161026a565b61027c81610476565b6000546001600160a01b031633146103775760405162461bcd60e51b815260040161026a9061065b565b6001600160a01b0381166000908152600160205260408120805434928392916103a1908490610690565b90915550506040518181526001600160a01b038316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020015b60405180910390a25050565b6000546001600160a01b031633146104135760405162461bcd60e51b815260040161026a9061065b565b6001600160a01b038116600081815260016020526040812080549190559061043b90826104c6565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516103dd91815260200190565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b804710156105165760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161026a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610563576040519150601f19603f3d011682016040523d82523d6000602084013e610568565b606091505b50509050806105df5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161026a565b505050565b6001600160a01b038116811461027c57600080fd5b6000806040838503121561060c57600080fd5b8235610617816105e4565b91506020830135801515811461062c57600080fd5b809150509250929050565b60006020828403121561064957600080fd5b8135610654816105e4565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156106b157634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220a28cf437235ddfafcb413b5c6b951cfbfe46df28936986dee655677a039ae3a564736f6c634300080d0033"}, "abi": [{"type": "event", "name": "Deposited", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Withdrawn", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "deposit", "stateMutability": "payable", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "depositsOf", "stateMutability": "view", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "setAllowed", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}, {"name": "allowed", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "withdraw", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address payable"}], "outputs": []}, {"type": "function", "name": "withdrawalAllowed", "stateMutability": "view", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"deposit(address)": {"details": "Stores the sent amount as credit to be withdrawn.", "params": {"payee": "The destination address of the funds."}}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}, "withdraw(address)": {"details": "Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.", "params": {"payee": "The address whose funds will be withdrawn and transferred to."}}, "withdrawalAllowed(address)": {"details": "Returns whether an address is allowed to withdraw their funds. To be implemented by derived contracts.", "params": {"payee": "The destination address of the funds."}}}, "version": 1}}, "ContextMock": {"contractName": "ContextMock", "sourceId": "mocks/ContextMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061025e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063376bf2621461003b578063d737d0c714610050575b600080fd5b61004e6100493660046100e5565b610058565b005b61004e61009a565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea0600036848460405161008e94939291906101a0565b60405180910390a15050565b6040805133815290517fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc9181900360200190a1565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156100f857600080fd5b82359150602083013567ffffffffffffffff8082111561011757600080fd5b818501915085601f83011261012b57600080fd5b81358181111561013d5761013d6100cf565b604051601f8201601f19908116603f01168101908382118183101715610165576101656100cf565b8160405282815288602084870101111561017e57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60608152836060820152838560808301376000608085830101526000601f1980601f8701168301602086818601526080858303016040860152855180608084015260005b818110156102005787810183015184820160a0015282016101e4565b8181111561021257600060a083860101525b50601f019092160160a00197965050505050505056fea2646970667358221220e845e49c0a2abb4dcb4548c9a7de7f52d51b7bbba73bf7abbd4e88f6eb12314664736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063376bf2621461003b578063d737d0c714610050575b600080fd5b61004e6100493660046100e5565b610058565b005b61004e61009a565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea0600036848460405161008e94939291906101a0565b60405180910390a15050565b6040805133815290517fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc9181900360200190a1565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156100f857600080fd5b82359150602083013567ffffffffffffffff8082111561011757600080fd5b818501915085601f83011261012b57600080fd5b81358181111561013d5761013d6100cf565b604051601f8201601f19908116603f01168101908382118183101715610165576101656100cf565b8160405282815288602084870101111561017e57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60608152836060820152838560808301376000608085830101526000601f1980601f8701168301602086818601526080858303016040860152855180608084015260005b818110156102005787810183015184820160a0015282016101e4565b8181111561021257600060a083860101525b50601f019092160160a00197965050505050505056fea2646970667358221220e845e49c0a2abb4dcb4548c9a7de7f52d51b7bbba73bf7abbd4e88f6eb12314664736f6c634300080d0033"}, "abi": [{"type": "event", "name": "Data", "inputs": [{"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "integerValue", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "stringValue", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Sender", "inputs": [{"name": "sender", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "msgData", "stateMutability": "nonpayable", "inputs": [{"name": "integerValue", "type": "uint256", "internalType": "uint256"}, {"name": "stringValue", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "msgSender", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ContextMockCaller": {"contractName": "ContextMockCaller", "sourceId": "mocks/ContextMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506102cf806100206000396000f3fe608060405234801561001057600080fd5b50600436106100355760003560e01c80628604591461003a5780633207ad961461004f575b600080fd5b61004d61004836600461014f565b610062565b005b61004d61005d36600461021a565b6100c7565b604051631bb5f93160e11b81526001600160a01b0384169063376bf26290610090908590859060040161023c565b600060405180830381600087803b1580156100aa57600080fd5b505af11580156100be573d6000803e3d6000fd5b50505050505050565b806001600160a01b031663d737d0c76040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561010257600080fd5b505af1158015610116573d6000803e3d6000fd5b5050505050565b80356001600160a01b038116811461013457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561016457600080fd5b61016d8461011d565b925060208401359150604084013567ffffffffffffffff8082111561019157600080fd5b818601915086601f8301126101a557600080fd5b8135818111156101b7576101b7610139565b604051601f8201601f19908116603f011681019083821181831017156101df576101df610139565b816040528281528960208487010111156101f857600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60006020828403121561022c57600080fd5b6102358261011d565b9392505050565b82815260006020604081840152835180604085015260005b8181101561027057858101830151858201606001528201610254565b81811115610282576000606083870101525b50601f01601f19169290920160600194935050505056fea2646970667358221220b77c620a597f8e88798a608cf89d03bebd7c804b8c6c64a34edad3021eda82be64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100355760003560e01c80628604591461003a5780633207ad961461004f575b600080fd5b61004d61004836600461014f565b610062565b005b61004d61005d36600461021a565b6100c7565b604051631bb5f93160e11b81526001600160a01b0384169063376bf26290610090908590859060040161023c565b600060405180830381600087803b1580156100aa57600080fd5b505af11580156100be573d6000803e3d6000fd5b50505050505050565b806001600160a01b031663d737d0c76040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561010257600080fd5b505af1158015610116573d6000803e3d6000fd5b5050505050565b80356001600160a01b038116811461013457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561016457600080fd5b61016d8461011d565b925060208401359150604084013567ffffffffffffffff8082111561019157600080fd5b818601915086601f8301126101a557600080fd5b8135818111156101b7576101b7610139565b604051601f8201601f19908116603f011681019083821181831017156101df576101df610139565b816040528281528960208487010111156101f857600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60006020828403121561022c57600080fd5b6102358261011d565b9392505050565b82815260006020604081840152835180604085015260005b8181101561027057858101830151858201606001528201610254565b81811115610282576000606083870101525b50601f01601f19169290920160600194935050505056fea2646970667358221220b77c620a597f8e88798a608cf89d03bebd7c804b8c6c64a34edad3021eda82be64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "callData", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "address", "internalType": "contract ContextMock"}, {"name": "integerValue", "type": "uint256", "internalType": "uint256"}, {"name": "stringValue", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "callSender", "stateMutability": "nonpayable", "inputs": [{"name": "context", "type": "address", "internalType": "contract ContextMock"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "CountersImpl": {"contractName": "CountersImpl", "sourceId": "mocks/CountersImpl.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610123806100206000396000f3fe6080604052348015600f57600080fd5b506004361060465760003560e01c80632baeceb714604b5780639fa6a6e3146053578063d09de08a146068578063d826f88f14606e575b600080fd5b60516074565b005b60005460405190815260200160405180910390f35b6051607e565b6051608b565b607c60006093565b565b607c600080546001019055565b607c60008055565b80548060e55760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f770000000000604482015260640160405180910390fd5b60001901905556fea2646970667358221220747c652843886b2e577a3a1b0c8319e0e56764bdd2dd01daeaa512869389ccba64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b506004361060465760003560e01c80632baeceb714604b5780639fa6a6e3146053578063d09de08a146068578063d826f88f14606e575b600080fd5b60516074565b005b60005460405190815260200160405180910390f35b6051607e565b6051608b565b607c60006093565b565b607c600080546001019055565b607c60008055565b80548060e55760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f770000000000604482015260640160405180910390fd5b60001901905556fea2646970667358221220747c652843886b2e577a3a1b0c8319e0e56764bdd2dd01daeaa512869389ccba64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "current", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decrement", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "increment", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "reset", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "Create2Impl": {"contractName": "Create2Impl", "sourceId": "mocks/Create2Impl.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506105b9806100206000396000f3fe6080604052600436106100435760003560e01c8063076c37b21461004f578063481286e61461007157806356299481146100ad57806366cfa057146100cd57600080fd5b3661004a57005b600080fd5b34801561005b57600080fd5b5061006f61006a36600461030e565b6100ed565b005b34801561007d57600080fd5b5061009161008c36600461030e565b61011f565b6040516001600160a01b03909116815260200160405180910390f35b3480156100b957600080fd5b506100916100c8366004610330565b610185565b3480156100d957600080fd5b5061006f6100e836600461038b565b6101e6565b61011a82826040518060200161010290610301565b601f1982820381018352601f909101166040526101f7565b505050565b600061017e8383604080516001600160f81b03196020808301919091526bffffffffffffffffffffffff193060601b16602183015260358201859052605580830185905283518084039091018152607590920190925280519101206000905b9392505050565b604080516001600160f81b03196020808301919091526bffffffffffffffffffffffff19606085901b16602183015260358201869052605580830186905283518084039091018152607590920190925280519101206000905b949350505050565b6101f18383836101f7565b50505050565b6000808447101561024f5760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e636500000060448201526064015b60405180910390fd5b82516000036102a05760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f6044820152606401610246565b8383516020850187f590506001600160a01b0381166101de5760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f79000000000000006044820152606401610246565b6101348061045083390190565b6000806040838503121561032157600080fd5b50508035926020909101359150565b60008060006060848603121561034557600080fd5b833592506020840135915060408401356001600160a01b038116811461036a57600080fd5b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156103a057600080fd5b8335925060208401359150604084013567ffffffffffffffff808211156103c657600080fd5b818601915086601f8301126103da57600080fd5b8135818111156103ec576103ec610375565b604051601f8201601f19908116603f0116810190838211818310171561041457610414610375565b8160405282815289602084870101111561042d57600080fd5b826020860160208301376000602084830101528095505050505050925092509256fe608060405234801561001057600080fd5b50610114806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b603c603836600460a4565b604e565b60405190815260200160405180910390f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16607b576000609d565b7fa2ef4600d742022d532d4747cb3547474667d6f13804902513b2ec01c848f4b45b9392505050565b6000806040838503121560b657600080fd5b8235915060208301356001600160a01b038116811460d357600080fd5b80915050925092905056fea2646970667358221220640cc461f323b6dd9a283fba2a01542533a6eba087367e4b74b31b2b9d6322a064736f6c634300080d0033a2646970667358221220fc934b82b83d096e5b9596c90d0cc307243b24f6d752d801fe8e4ca7bfc17fdc64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100435760003560e01c8063076c37b21461004f578063481286e61461007157806356299481146100ad57806366cfa057146100cd57600080fd5b3661004a57005b600080fd5b34801561005b57600080fd5b5061006f61006a36600461030e565b6100ed565b005b34801561007d57600080fd5b5061009161008c36600461030e565b61011f565b6040516001600160a01b03909116815260200160405180910390f35b3480156100b957600080fd5b506100916100c8366004610330565b610185565b3480156100d957600080fd5b5061006f6100e836600461038b565b6101e6565b61011a82826040518060200161010290610301565b601f1982820381018352601f909101166040526101f7565b505050565b600061017e8383604080516001600160f81b03196020808301919091526bffffffffffffffffffffffff193060601b16602183015260358201859052605580830185905283518084039091018152607590920190925280519101206000905b9392505050565b604080516001600160f81b03196020808301919091526bffffffffffffffffffffffff19606085901b16602183015260358201869052605580830186905283518084039091018152607590920190925280519101206000905b949350505050565b6101f18383836101f7565b50505050565b6000808447101561024f5760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e636500000060448201526064015b60405180910390fd5b82516000036102a05760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f6044820152606401610246565b8383516020850187f590506001600160a01b0381166101de5760405162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f79000000000000006044820152606401610246565b6101348061045083390190565b6000806040838503121561032157600080fd5b50508035926020909101359150565b60008060006060848603121561034557600080fd5b833592506020840135915060408401356001600160a01b038116811461036a57600080fd5b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156103a057600080fd5b8335925060208401359150604084013567ffffffffffffffff808211156103c657600080fd5b818601915086601f8301126103da57600080fd5b8135818111156103ec576103ec610375565b604051601f8201601f19908116603f0116810190838211818310171561041457610414610375565b8160405282815289602084870101111561042d57600080fd5b826020860160208301376000602084830101528095505050505050925092509256fe608060405234801561001057600080fd5b50610114806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b603c603836600460a4565b604e565b60405190815260200160405180910390f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16607b576000609d565b7fa2ef4600d742022d532d4747cb3547474667d6f13804902513b2ec01c848f4b45b9392505050565b6000806040838503121560b657600080fd5b8235915060208301356001600160a01b038116811460d357600080fd5b80915050925092905056fea2646970667358221220640cc461f323b6dd9a283fba2a01542533a6eba087367e4b74b31b2b9d6322a064736f6c634300080d0033a2646970667358221220fc934b82b83d096e5b9596c90d0cc307243b24f6d752d801fe8e4ca7bfc17fdc64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "computeAddress", "stateMutability": "view", "inputs": [{"name": "salt", "type": "bytes32", "internalType": "bytes32"}, {"name": "codeHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "computeAddressWithDeployer", "stateMutability": "pure", "inputs": [{"name": "salt", "type": "bytes32", "internalType": "bytes32"}, {"name": "codeHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "deployer", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "deploy", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}, {"name": "code", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "deployERC1820Implementer", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "DummyImplementation": {"contractName": "DummyImplementation", "sourceId": "mocks/DummyImplementation.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610642806100206000396000f3fe60806040526004361061009c5760003560e01c80635e383d21116100645780635e383d21146101495780636d4ce63c14610169578063763e2831146101855780639fba1f9a146101a5578063d31f8b6b146101af578063e79f5bee146101cf57600080fd5b80631f1bd692146100a1578063227367d5146100cc5780633bccbbc9146100e55780633fa4f245146100fa57806354fd4d501461011e575b600080fd5b3480156100ad57600080fd5b506100b66101dd565b6040516100c391906103dd565b60405180910390f35b3480156100d857600080fd5b506100e3600a600055565b005b3480156100f157600080fd5b506100e361026b565b34801561010657600080fd5b5061011060005481565b6040519081526020016100c3565b34801561012a57600080fd5b50604080518082019091526002815261563160f01b60208201526100b6565b34801561015557600080fd5b50610110610164366004610432565b6102b7565b34801561017557600080fd5b50604051600181526020016100c3565b34801561019157600080fd5b506100e36101a0366004610432565b600055565b6100e36064600055565b3480156101bb57600080fd5b506100e36101ca366004610512565b6102d8565b6100e36101a0366004610432565b600180546101ea906105d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610216906105d2565b80156102635780601f1061023857610100808354040283529160200191610263565b820191906000526020600020905b81548152906001019060200180831161024657829003601f168201915b505050505081565b60405162461bcd60e51b815260206004820152601c60248201527f44756d6d79496d706c656d656e746174696f6e20726576657274656400000000604482015260640160405180910390fd5b600281815481106102c757600080fd5b600091825260209091200154905081565b600083905581516102f090600190602085019061030a565b50805161030490600290602084019061038e565b50505050565b828054610316906105d2565b90600052602060002090601f016020900481019282610338576000855561037e565b82601f1061035157805160ff191683800117855561037e565b8280016001018555821561037e579182015b8281111561037e578251825591602001919060010190610363565b5061038a9291506103c8565b5090565b82805482825590600052602060002090810192821561037e579160200282018281111561037e578251825591602001919060010190610363565b5b8082111561038a57600081556001016103c9565b600060208083528351808285015260005b8181101561040a578581018301518582016040015282016103ee565b8181111561041c576000604083870101525b50601f01601f1916929092016040019392505050565b60006020828403121561044457600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561048a5761048a61044b565b604052919050565b600082601f8301126104a357600080fd5b8135602067ffffffffffffffff8211156104bf576104bf61044b565b8160051b6104ce828201610461565b92835284810182019282810190878511156104e857600080fd5b83870192505b84831015610507578235825291830191908301906104ee565b979650505050505050565b60008060006060848603121561052757600080fd5b8335925060208085013567ffffffffffffffff8082111561054757600080fd5b818701915087601f83011261055b57600080fd5b81358181111561056d5761056d61044b565b61057f601f8201601f19168501610461565b818152898583860101111561059357600080fd5b8185850186830137600091810190940152919350604086013591808311156105ba57600080fd5b50506105c886828701610492565b9150509250925092565b600181811c908216806105e657607f821691505b60208210810361060657634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212205627e7747a42f524a2b02462bdb78cb01d70d2cd099b1e011d69ad09b8b5591f64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x60806040526004361061009c5760003560e01c80635e383d21116100645780635e383d21146101495780636d4ce63c14610169578063763e2831146101855780639fba1f9a146101a5578063d31f8b6b146101af578063e79f5bee146101cf57600080fd5b80631f1bd692146100a1578063227367d5146100cc5780633bccbbc9146100e55780633fa4f245146100fa57806354fd4d501461011e575b600080fd5b3480156100ad57600080fd5b506100b66101dd565b6040516100c391906103dd565b60405180910390f35b3480156100d857600080fd5b506100e3600a600055565b005b3480156100f157600080fd5b506100e361026b565b34801561010657600080fd5b5061011060005481565b6040519081526020016100c3565b34801561012a57600080fd5b50604080518082019091526002815261563160f01b60208201526100b6565b34801561015557600080fd5b50610110610164366004610432565b6102b7565b34801561017557600080fd5b50604051600181526020016100c3565b34801561019157600080fd5b506100e36101a0366004610432565b600055565b6100e36064600055565b3480156101bb57600080fd5b506100e36101ca366004610512565b6102d8565b6100e36101a0366004610432565b600180546101ea906105d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610216906105d2565b80156102635780601f1061023857610100808354040283529160200191610263565b820191906000526020600020905b81548152906001019060200180831161024657829003601f168201915b505050505081565b60405162461bcd60e51b815260206004820152601c60248201527f44756d6d79496d706c656d656e746174696f6e20726576657274656400000000604482015260640160405180910390fd5b600281815481106102c757600080fd5b600091825260209091200154905081565b600083905581516102f090600190602085019061030a565b50805161030490600290602084019061038e565b50505050565b828054610316906105d2565b90600052602060002090601f016020900481019282610338576000855561037e565b82601f1061035157805160ff191683800117855561037e565b8280016001018555821561037e579182015b8281111561037e578251825591602001919060010190610363565b5061038a9291506103c8565b5090565b82805482825590600052602060002090810192821561037e579160200282018281111561037e578251825591602001919060010190610363565b5b8082111561038a57600081556001016103c9565b600060208083528351808285015260005b8181101561040a578581018301518582016040015282016103ee565b8181111561041c576000604083870101525b50601f01601f1916929092016040019392505050565b60006020828403121561044457600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561048a5761048a61044b565b604052919050565b600082601f8301126104a357600080fd5b8135602067ffffffffffffffff8211156104bf576104bf61044b565b8160051b6104ce828201610461565b92835284810182019282810190878511156104e857600080fd5b83870192505b84831015610507578235825291830191908301906104ee565b979650505050505050565b60008060006060848603121561052757600080fd5b8335925060208085013567ffffffffffffffff8082111561054757600080fd5b818701915087601f83011261055b57600080fd5b81358181111561056d5761056d61044b565b61057f601f8201601f19168501610461565b818152898583860101111561059357600080fd5b8185850186830137600091810190940152919350604086013591808311156105ba57600080fd5b50506105c886828701610492565b9150509250925092565b600181811c908216806105e657607f821691505b60208210810361060657634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212205627e7747a42f524a2b02462bdb78cb01d70d2cd099b1e011d69ad09b8b5591f64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "get", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [{"name": "_value", "type": "uint256", "internalType": "uint256"}, {"name": "_text", "type": "string", "internalType": "string"}, {"name": "_values", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}, {"type": "function", "name": "initializeNonPayable", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "initializeNonPayableWithValue", "stateMutability": "nonpayable", "inputs": [{"name": "_value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "initializePayable", "stateMutability": "payable", "inputs": [], "outputs": []}, {"type": "function", "name": "initializePayableWithValue", "stateMutability": "payable", "inputs": [{"name": "_value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "reverts", "stateMutability": "pure", "inputs": [], "outputs": []}, {"type": "function", "name": "text", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "value", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "values", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "version", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "DummyImplementationV2": {"contractName": "DummyImplementationV2", "sourceId": "mocks/DummyImplementation.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061064d806100206000396000f3fe6080604052600436106100a75760003560e01c80635e383d21116100645780635e383d21146101675780636d4ce63c14610187578063763e2831146101a35780639fba1f9a146101be578063d31f8b6b146101c8578063e79f5bee1461012957600080fd5b80631f1bd692146100ac578063227367d5146100d75780633bccbbc9146100f05780633fa4f24514610105578063454b06081461012957806354fd4d501461013c575b600080fd5b3480156100b857600080fd5b506100c16101e8565b6040516100ce91906103e8565b60405180910390f35b3480156100e357600080fd5b506100ee600a600055565b005b3480156100fc57600080fd5b506100ee610276565b34801561011157600080fd5b5061011b60005481565b6040519081526020016100ce565b6100ee61013736600461043d565b600055565b34801561014857600080fd5b506040805180820190915260028152612b1960f11b60208201526100c1565b34801561017357600080fd5b5061011b61018236600461043d565b6102c2565b34801561019357600080fd5b50604051600181526020016100ce565b3480156101af57600080fd5b506100ee61013736600461043d565b6100ee6064600055565b3480156101d457600080fd5b506100ee6101e336600461051d565b6102e3565b600180546101f5906105dd565b80601f0160208091040260200160405190810160405280929190818152602001828054610221906105dd565b801561026e5780601f106102435761010080835404028352916020019161026e565b820191906000526020600020905b81548152906001019060200180831161025157829003601f168201915b505050505081565b60405162461bcd60e51b815260206004820152601c60248201527f44756d6d79496d706c656d656e746174696f6e20726576657274656400000000604482015260640160405180910390fd5b600281815481106102d257600080fd5b600091825260209091200154905081565b600083905581516102fb906001906020850190610315565b50805161030f906002906020840190610399565b50505050565b828054610321906105dd565b90600052602060002090601f0160209004810192826103435760008555610389565b82601f1061035c57805160ff1916838001178555610389565b82800160010185558215610389579182015b8281111561038957825182559160200191906001019061036e565b506103959291506103d3565b5090565b828054828255906000526020600020908101928215610389579160200282018281111561038957825182559160200191906001019061036e565b5b8082111561039557600081556001016103d4565b600060208083528351808285015260005b81811015610415578581018301518582016040015282016103f9565b81811115610427576000604083870101525b50601f01601f1916929092016040019392505050565b60006020828403121561044f57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561049557610495610456565b604052919050565b600082601f8301126104ae57600080fd5b8135602067ffffffffffffffff8211156104ca576104ca610456565b8160051b6104d982820161046c565b92835284810182019282810190878511156104f357600080fd5b83870192505b84831015610512578235825291830191908301906104f9565b979650505050505050565b60008060006060848603121561053257600080fd5b8335925060208085013567ffffffffffffffff8082111561055257600080fd5b818701915087601f83011261056657600080fd5b81358181111561057857610578610456565b61058a601f8201601f1916850161046c565b818152898583860101111561059e57600080fd5b8185850186830137600091810190940152919350604086013591808311156105c557600080fd5b50506105d38682870161049d565b9150509250925092565b600181811c908216806105f157607f821691505b60208210810361061157634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212202ff03e8e558aab80043176c90851678eed92df343f7f374a994bb4cb61e38fd564736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100a75760003560e01c80635e383d21116100645780635e383d21146101675780636d4ce63c14610187578063763e2831146101a35780639fba1f9a146101be578063d31f8b6b146101c8578063e79f5bee1461012957600080fd5b80631f1bd692146100ac578063227367d5146100d75780633bccbbc9146100f05780633fa4f24514610105578063454b06081461012957806354fd4d501461013c575b600080fd5b3480156100b857600080fd5b506100c16101e8565b6040516100ce91906103e8565b60405180910390f35b3480156100e357600080fd5b506100ee600a600055565b005b3480156100fc57600080fd5b506100ee610276565b34801561011157600080fd5b5061011b60005481565b6040519081526020016100ce565b6100ee61013736600461043d565b600055565b34801561014857600080fd5b506040805180820190915260028152612b1960f11b60208201526100c1565b34801561017357600080fd5b5061011b61018236600461043d565b6102c2565b34801561019357600080fd5b50604051600181526020016100ce565b3480156101af57600080fd5b506100ee61013736600461043d565b6100ee6064600055565b3480156101d457600080fd5b506100ee6101e336600461051d565b6102e3565b600180546101f5906105dd565b80601f0160208091040260200160405190810160405280929190818152602001828054610221906105dd565b801561026e5780601f106102435761010080835404028352916020019161026e565b820191906000526020600020905b81548152906001019060200180831161025157829003601f168201915b505050505081565b60405162461bcd60e51b815260206004820152601c60248201527f44756d6d79496d706c656d656e746174696f6e20726576657274656400000000604482015260640160405180910390fd5b600281815481106102d257600080fd5b600091825260209091200154905081565b600083905581516102fb906001906020850190610315565b50805161030f906002906020840190610399565b50505050565b828054610321906105dd565b90600052602060002090601f0160209004810192826103435760008555610389565b82601f1061035c57805160ff1916838001178555610389565b82800160010185558215610389579182015b8281111561038957825182559160200191906001019061036e565b506103959291506103d3565b5090565b828054828255906000526020600020908101928215610389579160200282018281111561038957825182559160200191906001019061036e565b5b8082111561039557600081556001016103d4565b600060208083528351808285015260005b81811015610415578581018301518582016040015282016103f9565b81811115610427576000604083870101525b50601f01601f1916929092016040019392505050565b60006020828403121561044f57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561049557610495610456565b604052919050565b600082601f8301126104ae57600080fd5b8135602067ffffffffffffffff8211156104ca576104ca610456565b8160051b6104d982820161046c565b92835284810182019282810190878511156104f357600080fd5b83870192505b84831015610512578235825291830191908301906104f9565b979650505050505050565b60008060006060848603121561053257600080fd5b8335925060208085013567ffffffffffffffff8082111561055257600080fd5b818701915087601f83011261056657600080fd5b81358181111561057857610578610456565b61058a601f8201601f1916850161046c565b818152898583860101111561059e57600080fd5b8185850186830137600091810190940152919350604086013591808311156105c557600080fd5b50506105d38682870161049d565b9150509250925092565b600181811c908216806105f157607f821691505b60208210810361061157634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212202ff03e8e558aab80043176c90851678eed92df343f7f374a994bb4cb61e38fd564736f6c634300080d0033"}, "abi": [{"type": "function", "name": "get", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [{"name": "_value", "type": "uint256", "internalType": "uint256"}, {"name": "_text", "type": "string", "internalType": "string"}, {"name": "_values", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}, {"type": "function", "name": "initializeNonPayable", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "initializeNonPayableWithValue", "stateMutability": "nonpayable", "inputs": [{"name": "_value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "initializePayable", "stateMutability": "payable", "inputs": [], "outputs": []}, {"type": "function", "name": "initializePayableWithValue", "stateMutability": "payable", "inputs": [{"name": "_value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "migrate", "stateMutability": "payable", "inputs": [{"name": "newVal", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "reverts", "stateMutability": "pure", "inputs": [], "outputs": []}, {"type": "function", "name": "text", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "value", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "values", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "version", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "Impl": {"contractName": "Impl", "sourceId": "mocks/DummyImplementation.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "version", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ECDSAMock": {"contractName": "ECDSAMock", "sourceId": "mocks/ECDSAMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061099e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063126442731461005c57806319045a251461008c578063918a15cf1461009f57806392bd87b5146100c0578063a005410b146100d3575b600080fd5b61006f61006a36600461066e565b6100e6565b6040516001600160a01b0390911681526020015b60405180910390f35b61006f61009a366004610754565b6100fd565b6100b26100ad36600461079b565b610110565b604051908152602001610083565b6100b26100ce3660046107b4565b610121565b61006f6100e13660046107e9565b61012c565b60006100f485858585610141565b95945050505050565b60006101098383610169565b9392505050565b600061011b8261018d565b92915050565b600061011b826101e1565b60006101398484846101ff565b949350505050565b600080600061015287878787610225565b9150915061015f81610312565b5095945050505050565b600080600061017885856104d0565b9150915061018581610312565b509392505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c015b604051602081830303815290604052805190602001209050919050565b60006101ed825161053e565b826040516020016101c4929190610845565b600080600061020f86868661063f565b9150915061021c81610312565b50949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561025c5750600090506003610309565b8460ff16601b1415801561027457508460ff16601c14155b156102855750600090506004610309565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156102d9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661030257600060019250925050610309565b9150600090505b94509492505050565b6000816004811115610326576103266108a0565b0361032e5750565b6001816004811115610342576103426108a0565b036103945760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b60028160048111156103a8576103a86108a0565b036103f55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161038b565b6003816004811115610409576104096108a0565b036104615760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161038b565b6004816004811115610475576104756108a0565b036104cd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161038b565b50565b60008082516041036105065760208301516040840151606085015160001a6104fa87828585610225565b94509450505050610537565b825160400361052f576020830151604084015161052486838361063f565b935093505050610537565b506000905060025b9250929050565b6060816000036105655750506040805180820190915260018152600360fc1b602082015290565b8160005b811561058f5780610579816108cc565b91506105889050600a836108fb565b9150610569565b60008167ffffffffffffffff8111156105aa576105aa6106b1565b6040519080825280601f01601f1916602001820160405280156105d4576020820181803683370190505b5090505b8415610139576105e960018361090f565b91506105f6600a86610926565b61060190603061093a565b60f81b81838151811061061657610616610952565b60200101906001600160f81b031916908160001a905350610638600a866108fb565b94506105d8565b6000806001600160ff1b03831660ff84901c601b0161066087828885610225565b935093505050935093915050565b6000806000806080858703121561068457600080fd5b84359350602085013560ff8116811461069c57600080fd5b93969395505050506040820135916060013590565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126106d857600080fd5b813567ffffffffffffffff808211156106f3576106f36106b1565b604051601f8301601f19908116603f0116810190828211818310171561071b5761071b6106b1565b8160405283815286602085880101111561073457600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561076757600080fd5b82359150602083013567ffffffffffffffff81111561078557600080fd5b610791858286016106c7565b9150509250929050565b6000602082840312156107ad57600080fd5b5035919050565b6000602082840312156107c657600080fd5b813567ffffffffffffffff8111156107dd57600080fd5b610139848285016106c7565b6000806000606084860312156107fe57600080fd5b505081359360208301359350604090920135919050565b60005b83811015610830578181015183820152602001610818565b8381111561083f576000848401525b50505050565b7f19457468657265756d205369676e6564204d6573736167653a0a00000000000081526000835161087d81601a850160208801610815565b83519083019061089481601a840160208801610815565b01601a01949350505050565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016108de576108de6108b6565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261090a5761090a6108e5565b500490565b600082821015610921576109216108b6565b500390565b600082610935576109356108e5565b500690565b6000821982111561094d5761094d6108b6565b500190565b634e487b7160e01b600052603260045260246000fdfea26469706673582212203e12a99737094cacb62716badf386523ecddaebe369aadff44b864a4d822214d64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063126442731461005c57806319045a251461008c578063918a15cf1461009f57806392bd87b5146100c0578063a005410b146100d3575b600080fd5b61006f61006a36600461066e565b6100e6565b6040516001600160a01b0390911681526020015b60405180910390f35b61006f61009a366004610754565b6100fd565b6100b26100ad36600461079b565b610110565b604051908152602001610083565b6100b26100ce3660046107b4565b610121565b61006f6100e13660046107e9565b61012c565b60006100f485858585610141565b95945050505050565b60006101098383610169565b9392505050565b600061011b8261018d565b92915050565b600061011b826101e1565b60006101398484846101ff565b949350505050565b600080600061015287878787610225565b9150915061015f81610312565b5095945050505050565b600080600061017885856104d0565b9150915061018581610312565b509392505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c015b604051602081830303815290604052805190602001209050919050565b60006101ed825161053e565b826040516020016101c4929190610845565b600080600061020f86868661063f565b9150915061021c81610312565b50949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561025c5750600090506003610309565b8460ff16601b1415801561027457508460ff16601c14155b156102855750600090506004610309565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156102d9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661030257600060019250925050610309565b9150600090505b94509492505050565b6000816004811115610326576103266108a0565b0361032e5750565b6001816004811115610342576103426108a0565b036103945760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b60028160048111156103a8576103a86108a0565b036103f55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161038b565b6003816004811115610409576104096108a0565b036104615760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161038b565b6004816004811115610475576104756108a0565b036104cd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161038b565b50565b60008082516041036105065760208301516040840151606085015160001a6104fa87828585610225565b94509450505050610537565b825160400361052f576020830151604084015161052486838361063f565b935093505050610537565b506000905060025b9250929050565b6060816000036105655750506040805180820190915260018152600360fc1b602082015290565b8160005b811561058f5780610579816108cc565b91506105889050600a836108fb565b9150610569565b60008167ffffffffffffffff8111156105aa576105aa6106b1565b6040519080825280601f01601f1916602001820160405280156105d4576020820181803683370190505b5090505b8415610139576105e960018361090f565b91506105f6600a86610926565b61060190603061093a565b60f81b81838151811061061657610616610952565b60200101906001600160f81b031916908160001a905350610638600a866108fb565b94506105d8565b6000806001600160ff1b03831660ff84901c601b0161066087828885610225565b935093505050935093915050565b6000806000806080858703121561068457600080fd5b84359350602085013560ff8116811461069c57600080fd5b93969395505050506040820135916060013590565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126106d857600080fd5b813567ffffffffffffffff808211156106f3576106f36106b1565b604051601f8301601f19908116603f0116810190828211818310171561071b5761071b6106b1565b8160405283815286602085880101111561073457600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561076757600080fd5b82359150602083013567ffffffffffffffff81111561078557600080fd5b610791858286016106c7565b9150509250929050565b6000602082840312156107ad57600080fd5b5035919050565b6000602082840312156107c657600080fd5b813567ffffffffffffffff8111156107dd57600080fd5b610139848285016106c7565b6000806000606084860312156107fe57600080fd5b505081359360208301359350604090920135919050565b60005b83811015610830578181015183820152602001610818565b8381111561083f576000848401525b50505050565b7f19457468657265756d205369676e6564204d6573736167653a0a00000000000081526000835161087d81601a850160208801610815565b83519083019061089481601a840160208801610815565b01601a01949350505050565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016108de576108de6108b6565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261090a5761090a6108e5565b500490565b600082821015610921576109216108b6565b500390565b600082610935576109356108e5565b500690565b6000821982111561094d5761094d6108b6565b500190565b634e487b7160e01b600052603260045260246000fdfea26469706673582212203e12a99737094cacb62716badf386523ecddaebe369aadff44b864a4d822214d64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "recover", "stateMutability": "pure", "inputs": [{"name": "hash", "type": "bytes32", "internalType": "bytes32"}, {"name": "signature", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "recover_r_vs", "stateMutability": "pure", "inputs": [{"name": "hash", "type": "bytes32", "internalType": "bytes32"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "vs", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "recover_v_r_s", "stateMutability": "pure", "inputs": [{"name": "hash", "type": "bytes32", "internalType": "bytes32"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "toEthSignedMessageHash", "stateMutability": "pure", "inputs": [{"name": "hash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "toEthSignedMessageHash", "stateMutability": "pure", "inputs": [{"name": "s", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "EIP712External": {"contractName": "EIP712External", "sourceId": "mocks/EIP712External.sol", "deploymentBytecode": {"bytecode": "0x61014060405234801561001157600080fd5b506040516109f53803806109f583398101604081905261003091610186565b815160209283012081519183019190912060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818801819052818301969096526060810194909452608080850193909352308483018190528151808603909301835260c094850190915281519190950120905291909152610120526101e9565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126100eb57600080fd5b81516001600160401b0380821115610105576101056100c4565b604051601f8301601f19908116603f0116810190828211818310171561012d5761012d6100c4565b8160405283815260209250868385880101111561014957600080fd5b600091505b8382101561016b578582018301518183018401529082019061014e565b8382111561017c5760008385830101525b9695505050505050565b6000806040838503121561019957600080fd5b82516001600160401b03808211156101b057600080fd5b6101bc868387016100da565b935060208501519150808211156101d257600080fd5b506101df858286016100da565b9150509250929050565b60805160a05160c05160e05161010051610120516107bd6102386000396000610234015260006102830152600061025e015260006101b7015260006101e10152600061020b01526107bd6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806308c6e079146100465780633408e4701461005b578063f698da251461006f575b600080fd5b6100596100543660046106c1565b610077565b005b465b60405190815260200160405180910390f35b61005d610123565b60006100ed7f847fc9da8ec3c72cae85ca691245eaeb0a4a1e74f77c3a919c43afda231d39ba8484805190602001206040516020016100d2939291909283526001600160a01b03919091166020830152604082015260600190565b60405160208183030381529060405280519060200120610132565b905060006100fb8287610186565b9050846001600160a01b0316816001600160a01b03161461011b57600080fd5b505050505050565b600061012d6101aa565b905090565b600061018061013f6101aa565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b92915050565b600080600061019585856102d1565b915091506101a28161033f565b509392505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561020357507f000000000000000000000000000000000000000000000000000000000000000046145b1561022d57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60008082516041036103075760208301516040840151606085015160001a6102fb878285856104fd565b94509450505050610338565b825160400361033057602083015160408401516103258683836105ea565b935093505050610338565b506000905060025b9250929050565b600081600481111561035357610353610771565b0361035b5750565b600181600481111561036f5761036f610771565b036103c15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b60028160048111156103d5576103d5610771565b036104225760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016103b8565b600381600481111561043657610436610771565b0361048e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016103b8565b60048160048111156104a2576104a2610771565b036104fa5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016103b8565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561053457506000905060036105e1565b8460ff16601b1415801561054c57508460ff16601c14155b1561055d57506000905060046105e1565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156105b1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166105da576000600192509250506105e1565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161060b878288856104fd565b935093505050935093915050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561064a5761064a610619565b604051601f8501601f19908116603f0116810190828211818310171561067257610672610619565b8160405280935085815286868601111561068b57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146106bc57600080fd5b919050565b600080600080608085870312156106d757600080fd5b843567ffffffffffffffff808211156106ef57600080fd5b818701915087601f83011261070357600080fd5b6107128883356020850161062f565b9550610720602088016106a5565b945061072e604088016106a5565b9350606087013591508082111561074457600080fd5b508501601f8101871361075657600080fd5b6107658782356020840161062f565b91505092959194509250565b634e487b7160e01b600052602160045260246000fdfea26469706673582212200b49e39b79764b695a71537ca3904827f297255c59e0f6d7af6508948fad8a9264736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806308c6e079146100465780633408e4701461005b578063f698da251461006f575b600080fd5b6100596100543660046106c1565b610077565b005b465b60405190815260200160405180910390f35b61005d610123565b60006100ed7f847fc9da8ec3c72cae85ca691245eaeb0a4a1e74f77c3a919c43afda231d39ba8484805190602001206040516020016100d2939291909283526001600160a01b03919091166020830152604082015260600190565b60405160208183030381529060405280519060200120610132565b905060006100fb8287610186565b9050846001600160a01b0316816001600160a01b03161461011b57600080fd5b505050505050565b600061012d6101aa565b905090565b600061018061013f6101aa565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b92915050565b600080600061019585856102d1565b915091506101a28161033f565b509392505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561020357507f000000000000000000000000000000000000000000000000000000000000000046145b1561022d57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60008082516041036103075760208301516040840151606085015160001a6102fb878285856104fd565b94509450505050610338565b825160400361033057602083015160408401516103258683836105ea565b935093505050610338565b506000905060025b9250929050565b600081600481111561035357610353610771565b0361035b5750565b600181600481111561036f5761036f610771565b036103c15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b60028160048111156103d5576103d5610771565b036104225760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016103b8565b600381600481111561043657610436610771565b0361048e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016103b8565b60048160048111156104a2576104a2610771565b036104fa5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016103b8565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561053457506000905060036105e1565b8460ff16601b1415801561054c57508460ff16601c14155b1561055d57506000905060046105e1565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156105b1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166105da576000600192509250506105e1565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161060b878288856104fd565b935093505050935093915050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561064a5761064a610619565b604051601f8501601f19908116603f0116810190828211818310171561067257610672610619565b8160405280935085815286868601111561068b57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146106bc57600080fd5b919050565b600080600080608085870312156106d757600080fd5b843567ffffffffffffffff808211156106ef57600080fd5b818701915087601f83011261070357600080fd5b6107128883356020850161062f565b9550610720602088016106a5565b945061072e604088016106a5565b9350606087013591508082111561074457600080fd5b508501601f8101871361075657600080fd5b6107658782356020840161062f565b91505092959194509250565b634e487b7160e01b600052602160045260246000fdfea26469706673582212200b49e39b79764b695a71537ca3904827f297255c59e0f6d7af6508948fad8a9264736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "version", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "domainSeparator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getChainId", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "verify", "stateMutability": "view", "inputs": [{"name": "signature", "type": "bytes", "internalType": "bytes"}, {"name": "signer", "type": "address", "internalType": "address"}, {"name": "mailTo", "type": "address", "internalType": "address"}, {"name": "mailContents", "type": "string", "internalType": "string"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC1155BurnableMock": {"contractName": "ERC1155BurnableMock", "sourceId": "mocks/ERC1155BurnableMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162001c1338038062001c1383398101604081905262000034916200011d565b80620000408162000048565b505062000235565b80516200005d90600290602084019062000061565b5050565b8280546200006f90620001f9565b90600052602060002090601f016020900481019282620000935760008555620000de565b82601f10620000ae57805160ff1916838001178555620000de565b82800160010185558215620000de579182015b82811115620000de578251825591602001919060010190620000c1565b50620000ec929150620000f0565b5090565b5b80821115620000ec5760008155600101620000f1565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200013157600080fd5b82516001600160401b03808211156200014957600080fd5b818501915085601f8301126200015e57600080fd5b81518181111562000173576200017362000107565b604051601f8201601f19908116603f011681019083821181831017156200019e576200019e62000107565b816040528281528886848701011115620001b757600080fd5b600093505b82841015620001db5784840186015181850187015292850192620001bc565b82841115620001ed5760008684830101525b98975050505050505050565b600181811c908216806200020e57607f821691505b6020821081036200022f57634e487b7160e01b600052602260045260246000fd5b50919050565b6119ce80620002456000396000f3fe608060405234801561001057600080fd5b50600436106100a85760003560e01c80636b20c454116100715780636b20c4541461014b578063731133e91461015e578063a22cb46514610171578063e985e9c514610184578063f242432a146101c0578063f5298aca146101d357600080fd5b8062fdd58e146100ad57806301ffc9a7146100d35780630e89341c146100f65780632eb2c2d6146101165780634e1273f41461012b575b600080fd5b6100c06100bb366004610fb3565b6101e6565b6040519081526020015b60405180910390f35b6100e66100e1366004610ff6565b61027d565b60405190151581526020016100ca565b61010961010436600461101a565b6102cf565b6040516100ca9190611080565b6101296101243660046111df565b610363565b005b61013e610139366004611289565b6103fa565b6040516100ca919061138f565b6101296101593660046113a2565b610524565b61012961016c366004611416565b61056c565b61012961017f366004611477565b61057e565b6100e66101923660046114b3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6101296101ce3660046114e6565b61058d565b6101296101e136600461154b565b6105d2565b60006001600160a01b0383166102575760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806102ae57506001600160e01b031982166303a24d0760e21b145b806102c957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546102de9061157e565b80601f016020809104026020016040519081016040528092919081815260200182805461030a9061157e565b80156103575780601f1061032c57610100808354040283529160200191610357565b820191906000526020600020905b81548152906001019060200180831161033a57829003601f168201915b50505050509050919050565b6001600160a01b03851633148061037f575061037f8533610192565b6103e65760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161024e565b6103f38585858585610615565b5050505050565b6060815183511461045f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161024e565b6000835167ffffffffffffffff81111561047b5761047b611093565b6040519080825280602002602001820160405280156104a4578160200160208202803683370190505b50905060005b845181101561051c576104ef8582815181106104c8576104c86115b8565b60200260200101518583815181106104e2576104e26115b8565b60200260200101516101e6565b828281518110610501576105016115b8565b6020908102919091010152610515816115e4565b90506104aa565b509392505050565b6001600160a01b03831633148061054057506105408333610192565b61055c5760405162461bcd60e51b815260040161024e906115fd565b6105678383836107b1565b505050565b6105788484848461092d565b50505050565b610589338383610a37565b5050565b6001600160a01b0385163314806105a957506105a98533610192565b6105c55760405162461bcd60e51b815260040161024e906115fd565b6103f38585858585610b17565b6001600160a01b0383163314806105ee57506105ee8333610192565b61060a5760405162461bcd60e51b815260040161024e906115fd565b610567838383610c34565b81518351146106365760405162461bcd60e51b815260040161024e90611646565b6001600160a01b03841661065c5760405162461bcd60e51b815260040161024e9061168e565b3360005b845181101561074357600085828151811061067d5761067d6115b8565b60200260200101519050600085838151811061069b5761069b6115b8565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156106eb5760405162461bcd60e51b815260040161024e906116d3565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061072890849061171d565b925050819055505050508061073c906115e4565b9050610660565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610793929190611735565b60405180910390a46107a9818787878787610d36565b505050505050565b6001600160a01b0383166107d75760405162461bcd60e51b815260040161024e90611763565b80518251146107f85760405162461bcd60e51b815260040161024e90611646565b604080516020810190915260009081905233905b83518110156108ce576000848281518110610829576108296115b8565b602002602001015190506000848381518110610847576108476115b8565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156108975760405162461bcd60e51b815260040161024e906117a6565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806108c6816115e4565b91505061080c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161091f929190611735565b60405180910390a450505050565b6001600160a01b03841661098d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161024e565b336109a78160008761099e88610e91565b6103f388610e91565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906109d790849061171d565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46103f381600087878787610edc565b816001600160a01b0316836001600160a01b031603610aaa5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161024e565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416610b3d5760405162461bcd60e51b815260040161024e9061168e565b33610b4d81878761099e88610e91565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015610b8e5760405162461bcd60e51b815260040161024e906116d3565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290610bcb90849061171d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c2b828888888888610edc565b50505050505050565b6001600160a01b038316610c5a5760405162461bcd60e51b815260040161024e90611763565b33610c8a81856000610c6b87610e91565b610c7487610e91565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b038816845290915290205482811015610ccb5760405162461bcd60e51b815260040161024e906117a6565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384163b156107a95760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190610d7a90899089908890889088906004016117ea565b6020604051808303816000875af1925050508015610db5575060408051601f3d908101601f19168201909252610db291810190611848565b60015b610e6157610dc1611865565b806308c379a003610dfa5750610dd5611881565b80610de05750610dfc565b8060405162461bcd60e51b815260040161024e9190611080565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161024e565b6001600160e01b0319811663bc197c8160e01b14610c2b5760405162461bcd60e51b815260040161024e9061190b565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110610ecb57610ecb6115b8565b602090810291909101015292915050565b6001600160a01b0384163b156107a95760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190610f209089908990889088908890600401611953565b6020604051808303816000875af1925050508015610f5b575060408051601f3d908101601f19168201909252610f5891810190611848565b60015b610f6757610dc1611865565b6001600160e01b0319811663f23a6e6160e01b14610c2b5760405162461bcd60e51b815260040161024e9061190b565b80356001600160a01b0381168114610fae57600080fd5b919050565b60008060408385031215610fc657600080fd5b610fcf83610f97565b946020939093013593505050565b6001600160e01b031981168114610ff357600080fd5b50565b60006020828403121561100857600080fd5b813561101381610fdd565b9392505050565b60006020828403121561102c57600080fd5b5035919050565b6000815180845260005b818110156110595760208185018101518683018201520161103d565b8181111561106b576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006110136020830184611033565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156110cf576110cf611093565b6040525050565b600067ffffffffffffffff8211156110f0576110f0611093565b5060051b60200190565b600082601f83011261110b57600080fd5b81356020611118826110d6565b60405161112582826110a9565b83815260059390931b850182019282810191508684111561114557600080fd5b8286015b848110156111605780358352918301918301611149565b509695505050505050565b600082601f83011261117c57600080fd5b813567ffffffffffffffff81111561119657611196611093565b6040516111ad601f8301601f1916602001826110a9565b8181528460208386010111156111c257600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156111f757600080fd5b61120086610f97565b945061120e60208701610f97565b9350604086013567ffffffffffffffff8082111561122b57600080fd5b61123789838a016110fa565b9450606088013591508082111561124d57600080fd5b61125989838a016110fa565b9350608088013591508082111561126f57600080fd5b5061127c8882890161116b565b9150509295509295909350565b6000806040838503121561129c57600080fd5b823567ffffffffffffffff808211156112b457600080fd5b818501915085601f8301126112c857600080fd5b813560206112d5826110d6565b6040516112e282826110a9565b83815260059390931b850182019282810191508984111561130257600080fd5b948201945b838610156113275761131886610f97565b82529482019490820190611307565b9650508601359250508082111561133d57600080fd5b5061134a858286016110fa565b9150509250929050565b600081518084526020808501945080840160005b8381101561138457815187529582019590820190600101611368565b509495945050505050565b6020815260006110136020830184611354565b6000806000606084860312156113b757600080fd5b6113c084610f97565b9250602084013567ffffffffffffffff808211156113dd57600080fd5b6113e9878388016110fa565b935060408601359150808211156113ff57600080fd5b5061140c868287016110fa565b9150509250925092565b6000806000806080858703121561142c57600080fd5b61143585610f97565b93506020850135925060408501359150606085013567ffffffffffffffff81111561145f57600080fd5b61146b8782880161116b565b91505092959194509250565b6000806040838503121561148a57600080fd5b61149383610f97565b9150602083013580151581146114a857600080fd5b809150509250929050565b600080604083850312156114c657600080fd5b6114cf83610f97565b91506114dd60208401610f97565b90509250929050565b600080600080600060a086880312156114fe57600080fd5b61150786610f97565b945061151560208701610f97565b93506040860135925060608601359150608086013567ffffffffffffffff81111561153f57600080fd5b61127c8882890161116b565b60008060006060848603121561156057600080fd5b61156984610f97565b95602085013595506040909401359392505050565b600181811c9082168061159257607f821691505b6020821081036115b257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016115f6576115f66115ce565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60008219821115611730576117306115ce565b500190565b6040815260006117486040830185611354565b828103602084015261175a8185611354565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061181690830186611354565b82810360608401526118288186611354565b9050828103608084015261183c8185611033565b98975050505050505050565b60006020828403121561185a57600080fd5b815161101381610fdd565b600060033d111561187e5760046000803e5060005160e01c5b90565b600060443d101561188f5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156118bf57505050505090565b82850191508151818111156118d75750505050505090565b843d87010160208285010111156118f15750505050505090565b611900602082860101876110a9565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061198d90830184611033565b97965050505050505056fea2646970667358221220edddc85b5fa211b39f3d47f3e03538be2d640c5980e34317708de925fa66471964736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100a85760003560e01c80636b20c454116100715780636b20c4541461014b578063731133e91461015e578063a22cb46514610171578063e985e9c514610184578063f242432a146101c0578063f5298aca146101d357600080fd5b8062fdd58e146100ad57806301ffc9a7146100d35780630e89341c146100f65780632eb2c2d6146101165780634e1273f41461012b575b600080fd5b6100c06100bb366004610fb3565b6101e6565b6040519081526020015b60405180910390f35b6100e66100e1366004610ff6565b61027d565b60405190151581526020016100ca565b61010961010436600461101a565b6102cf565b6040516100ca9190611080565b6101296101243660046111df565b610363565b005b61013e610139366004611289565b6103fa565b6040516100ca919061138f565b6101296101593660046113a2565b610524565b61012961016c366004611416565b61056c565b61012961017f366004611477565b61057e565b6100e66101923660046114b3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6101296101ce3660046114e6565b61058d565b6101296101e136600461154b565b6105d2565b60006001600160a01b0383166102575760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806102ae57506001600160e01b031982166303a24d0760e21b145b806102c957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546102de9061157e565b80601f016020809104026020016040519081016040528092919081815260200182805461030a9061157e565b80156103575780601f1061032c57610100808354040283529160200191610357565b820191906000526020600020905b81548152906001019060200180831161033a57829003601f168201915b50505050509050919050565b6001600160a01b03851633148061037f575061037f8533610192565b6103e65760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161024e565b6103f38585858585610615565b5050505050565b6060815183511461045f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161024e565b6000835167ffffffffffffffff81111561047b5761047b611093565b6040519080825280602002602001820160405280156104a4578160200160208202803683370190505b50905060005b845181101561051c576104ef8582815181106104c8576104c86115b8565b60200260200101518583815181106104e2576104e26115b8565b60200260200101516101e6565b828281518110610501576105016115b8565b6020908102919091010152610515816115e4565b90506104aa565b509392505050565b6001600160a01b03831633148061054057506105408333610192565b61055c5760405162461bcd60e51b815260040161024e906115fd565b6105678383836107b1565b505050565b6105788484848461092d565b50505050565b610589338383610a37565b5050565b6001600160a01b0385163314806105a957506105a98533610192565b6105c55760405162461bcd60e51b815260040161024e906115fd565b6103f38585858585610b17565b6001600160a01b0383163314806105ee57506105ee8333610192565b61060a5760405162461bcd60e51b815260040161024e906115fd565b610567838383610c34565b81518351146106365760405162461bcd60e51b815260040161024e90611646565b6001600160a01b03841661065c5760405162461bcd60e51b815260040161024e9061168e565b3360005b845181101561074357600085828151811061067d5761067d6115b8565b60200260200101519050600085838151811061069b5761069b6115b8565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156106eb5760405162461bcd60e51b815260040161024e906116d3565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061072890849061171d565b925050819055505050508061073c906115e4565b9050610660565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610793929190611735565b60405180910390a46107a9818787878787610d36565b505050505050565b6001600160a01b0383166107d75760405162461bcd60e51b815260040161024e90611763565b80518251146107f85760405162461bcd60e51b815260040161024e90611646565b604080516020810190915260009081905233905b83518110156108ce576000848281518110610829576108296115b8565b602002602001015190506000848381518110610847576108476115b8565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156108975760405162461bcd60e51b815260040161024e906117a6565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806108c6816115e4565b91505061080c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161091f929190611735565b60405180910390a450505050565b6001600160a01b03841661098d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161024e565b336109a78160008761099e88610e91565b6103f388610e91565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906109d790849061171d565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46103f381600087878787610edc565b816001600160a01b0316836001600160a01b031603610aaa5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161024e565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416610b3d5760405162461bcd60e51b815260040161024e9061168e565b33610b4d81878761099e88610e91565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015610b8e5760405162461bcd60e51b815260040161024e906116d3565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290610bcb90849061171d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c2b828888888888610edc565b50505050505050565b6001600160a01b038316610c5a5760405162461bcd60e51b815260040161024e90611763565b33610c8a81856000610c6b87610e91565b610c7487610e91565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b038816845290915290205482811015610ccb5760405162461bcd60e51b815260040161024e906117a6565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384163b156107a95760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190610d7a90899089908890889088906004016117ea565b6020604051808303816000875af1925050508015610db5575060408051601f3d908101601f19168201909252610db291810190611848565b60015b610e6157610dc1611865565b806308c379a003610dfa5750610dd5611881565b80610de05750610dfc565b8060405162461bcd60e51b815260040161024e9190611080565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161024e565b6001600160e01b0319811663bc197c8160e01b14610c2b5760405162461bcd60e51b815260040161024e9061190b565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110610ecb57610ecb6115b8565b602090810291909101015292915050565b6001600160a01b0384163b156107a95760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190610f209089908990889088908890600401611953565b6020604051808303816000875af1925050508015610f5b575060408051601f3d908101601f19168201909252610f5891810190611848565b60015b610f6757610dc1611865565b6001600160e01b0319811663f23a6e6160e01b14610c2b5760405162461bcd60e51b815260040161024e9061190b565b80356001600160a01b0381168114610fae57600080fd5b919050565b60008060408385031215610fc657600080fd5b610fcf83610f97565b946020939093013593505050565b6001600160e01b031981168114610ff357600080fd5b50565b60006020828403121561100857600080fd5b813561101381610fdd565b9392505050565b60006020828403121561102c57600080fd5b5035919050565b6000815180845260005b818110156110595760208185018101518683018201520161103d565b8181111561106b576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006110136020830184611033565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156110cf576110cf611093565b6040525050565b600067ffffffffffffffff8211156110f0576110f0611093565b5060051b60200190565b600082601f83011261110b57600080fd5b81356020611118826110d6565b60405161112582826110a9565b83815260059390931b850182019282810191508684111561114557600080fd5b8286015b848110156111605780358352918301918301611149565b509695505050505050565b600082601f83011261117c57600080fd5b813567ffffffffffffffff81111561119657611196611093565b6040516111ad601f8301601f1916602001826110a9565b8181528460208386010111156111c257600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156111f757600080fd5b61120086610f97565b945061120e60208701610f97565b9350604086013567ffffffffffffffff8082111561122b57600080fd5b61123789838a016110fa565b9450606088013591508082111561124d57600080fd5b61125989838a016110fa565b9350608088013591508082111561126f57600080fd5b5061127c8882890161116b565b9150509295509295909350565b6000806040838503121561129c57600080fd5b823567ffffffffffffffff808211156112b457600080fd5b818501915085601f8301126112c857600080fd5b813560206112d5826110d6565b6040516112e282826110a9565b83815260059390931b850182019282810191508984111561130257600080fd5b948201945b838610156113275761131886610f97565b82529482019490820190611307565b9650508601359250508082111561133d57600080fd5b5061134a858286016110fa565b9150509250929050565b600081518084526020808501945080840160005b8381101561138457815187529582019590820190600101611368565b509495945050505050565b6020815260006110136020830184611354565b6000806000606084860312156113b757600080fd5b6113c084610f97565b9250602084013567ffffffffffffffff808211156113dd57600080fd5b6113e9878388016110fa565b935060408601359150808211156113ff57600080fd5b5061140c868287016110fa565b9150509250925092565b6000806000806080858703121561142c57600080fd5b61143585610f97565b93506020850135925060408501359150606085013567ffffffffffffffff81111561145f57600080fd5b61146b8782880161116b565b91505092959194509250565b6000806040838503121561148a57600080fd5b61149383610f97565b9150602083013580151581146114a857600080fd5b809150509250929050565b600080604083850312156114c657600080fd5b6114cf83610f97565b91506114dd60208401610f97565b90509250929050565b600080600080600060a086880312156114fe57600080fd5b61150786610f97565b945061151560208701610f97565b93506040860135925060608601359150608086013567ffffffffffffffff81111561153f57600080fd5b61127c8882890161116b565b60008060006060848603121561156057600080fd5b61156984610f97565b95602085013595506040909401359392505050565b600181811c9082168061159257607f821691505b6020821081036115b257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016115f6576115f66115ce565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60008219821115611730576117306115ce565b500190565b6040815260006117486040830185611354565b828103602084015261175a8185611354565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061181690830186611354565b82810360608401526118288186611354565b9050828103608084015261183c8185611033565b98975050505050505050565b60006020828403121561185a57600080fd5b815161101381610fdd565b600060033d111561187e5760046000803e5060005160e01c5b90565b600060443d101561188f5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156118bf57505050505090565b82850191508151818111156118d75750505050505090565b843d87010160208285010111156118f15750505050505090565b611900602082860101876110a9565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061198d90830184611033565b97965050505050505056fea2646970667358221220edddc85b5fa211b39f3d47f3e03538be2d640c5980e34317708de925fa66471964736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "uri", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnBatch", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "ERC1155Mock": {"contractName": "ERC1155Mock", "sourceId": "mocks/ERC1155Mock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162001ee338038062001ee383398101604081905262000034916200011d565b80620000408162000048565b505062000235565b80516200005d90600290602084019062000061565b5050565b8280546200006f90620001f9565b90600052602060002090601f016020900481019282620000935760008555620000de565b82601f10620000ae57805160ff1916838001178555620000de565b82800160010185558215620000de579182015b82811115620000de578251825591602001919060010190620000c1565b50620000ec929150620000f0565b5090565b5b80821115620000ec5760008155600101620000f1565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200013157600080fd5b82516001600160401b03808211156200014957600080fd5b818501915085601f8301126200015e57600080fd5b81518181111562000173576200017362000107565b604051601f8201601f19908116603f011681019083821181831017156200019e576200019e62000107565b816040528281528886848701011115620001b757600080fd5b600093505b82841015620001db5784840186015181850187015292850192620001bc565b82841115620001ed5760008684830101525b98975050505050505050565b600181811c908216806200020e57607f821691505b6020821081036200022f57634e487b7160e01b600052602260045260246000fd5b50919050565b611c9e80620002456000396000f3fe608060405234801561001057600080fd5b50600436106100ce5760003560e01c80634e1273f41161008c578063a22cb46511610066578063a22cb465146101bd578063e985e9c5146101d0578063f242432a1461020c578063f5298aca1461021f57600080fd5b80634e1273f4146101775780636b20c45414610197578063731133e9146101aa57600080fd5b8062fdd58e146100d357806301ffc9a7146100f957806302fe53051461011c5780630e89341c146101315780631f7fdffa146101515780632eb2c2d614610164575b600080fd5b6100e66100e13660046111a6565b610232565b6040519081526020015b60405180910390f35b61010c6101073660046111e6565b6102c9565b60405190151581526020016100f0565b61012f61012a3660046112ab565b61031b565b005b61014461013f3660046112fc565b610327565b6040516100f09190611362565b61012f61015f36600461142a565b6103bb565b61012f6101723660046114c3565b6103cd565b61018a61018536600461156d565b610464565b6040516100f09190611673565b61012f6101a5366004611686565b61058e565b61012f6101b83660046116fa565b61059e565b61012f6101cb36600461174f565b6105aa565b61010c6101de36600461178b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61012f61021a3660046117be565b6105b9565b61012f61022d366004611823565b610640565b60006001600160a01b0383166102a35760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806102fa57506001600160e01b031982166303a24d0760e21b145b8061031557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6103248161064b565b50565b60606002805461033690611856565b80601f016020809104026020016040519081016040528092919081815260200182805461036290611856565b80156103af5780601f10610384576101008083540402835291602001916103af565b820191906000526020600020905b81548152906001019060200180831161039257829003601f168201915b50505050509050919050565b6103c78484848461065e565b50505050565b6001600160a01b0385163314806103e957506103e985336101de565b6104505760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161029a565b61045d85858585856107a9565b5050505050565b606081518351146104c95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161029a565b6000835167ffffffffffffffff8111156104e5576104e561120a565b60405190808252806020026020018201604052801561050e578160200160208202803683370190505b50905060005b84518110156105865761055985828151811061053257610532611890565b602002602001015185838151811061054c5761054c611890565b6020026020010151610232565b82828151811061056b5761056b611890565b602090810291909101015261057f816118bc565b9050610514565b509392505050565b610599838383610945565b505050565b6103c784848484610ac1565b6105b5338383610b91565b5050565b6001600160a01b0385163314806105d557506105d585336101de565b6106335760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b606482015260840161029a565b61045d8585858585610c71565b610599838383610d8e565b80516105b59060029060208401906110f1565b6001600160a01b0384166106845760405162461bcd60e51b815260040161029a906118d5565b81518351146106a55760405162461bcd60e51b815260040161029a90611916565b3360005b8451811015610741578381815181106106c4576106c4611890565b60200260200101516000808784815181106106e1576106e1611890565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254610729919061195e565b90915550819050610739816118bc565b9150506106a9565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610792929190611976565b60405180910390a461045d81600087878787610e90565b81518351146107ca5760405162461bcd60e51b815260040161029a90611916565b6001600160a01b0384166107f05760405162461bcd60e51b815260040161029a906119a4565b3360005b84518110156108d757600085828151811061081157610811611890565b60200260200101519050600085838151811061082f5761082f611890565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561087f5760405162461bcd60e51b815260040161029a906119e9565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906108bc90849061195e565b92505081905550505050806108d0906118bc565b90506107f4565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610927929190611976565b60405180910390a461093d818787878787610e90565b505050505050565b6001600160a01b03831661096b5760405162461bcd60e51b815260040161029a90611a33565b805182511461098c5760405162461bcd60e51b815260040161029a90611916565b604080516020810190915260009081905233905b8351811015610a625760008482815181106109bd576109bd611890565b6020026020010151905060008483815181106109db576109db611890565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015610a2b5760405162461bcd60e51b815260040161029a90611a76565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580610a5a816118bc565b9150506109a0565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051610ab3929190611976565b60405180910390a450505050565b6001600160a01b038416610ae75760405162461bcd60e51b815260040161029a906118d5565b33610b0181600087610af888610feb565b61045d88610feb565b6000848152602081815260408083206001600160a01b038916845290915281208054859290610b3190849061195e565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461045d81600087878787611036565b816001600160a01b0316836001600160a01b031603610c045760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161029a565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416610c975760405162461bcd60e51b815260040161029a906119a4565b33610ca7818787610af888610feb565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015610ce85760405162461bcd60e51b815260040161029a906119e9565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290610d2590849061195e565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610d85828888888888611036565b50505050505050565b6001600160a01b038316610db45760405162461bcd60e51b815260040161029a90611a33565b33610de481856000610dc587610feb565b610dce87610feb565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b038816845290915290205482811015610e255760405162461bcd60e51b815260040161029a90611a76565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384163b1561093d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190610ed49089908990889088908890600401611aba565b6020604051808303816000875af1925050508015610f0f575060408051601f3d908101601f19168201909252610f0c91810190611b18565b60015b610fbb57610f1b611b35565b806308c379a003610f545750610f2f611b51565b80610f3a5750610f56565b8060405162461bcd60e51b815260040161029a9190611362565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161029a565b6001600160e01b0319811663bc197c8160e01b14610d855760405162461bcd60e51b815260040161029a90611bdb565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061102557611025611890565b602090810291909101015292915050565b6001600160a01b0384163b1561093d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061107a9089908990889088908890600401611c23565b6020604051808303816000875af19250505080156110b5575060408051601f3d908101601f191682019092526110b291810190611b18565b60015b6110c157610f1b611b35565b6001600160e01b0319811663f23a6e6160e01b14610d855760405162461bcd60e51b815260040161029a90611bdb565b8280546110fd90611856565b90600052602060002090601f01602090048101928261111f5760008555611165565b82601f1061113857805160ff1916838001178555611165565b82800160010185558215611165579182015b8281111561116557825182559160200191906001019061114a565b50611171929150611175565b5090565b5b808211156111715760008155600101611176565b80356001600160a01b03811681146111a157600080fd5b919050565b600080604083850312156111b957600080fd5b6111c28361118a565b946020939093013593505050565b6001600160e01b03198116811461032457600080fd5b6000602082840312156111f857600080fd5b8135611203816111d0565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156112465761124661120a565b6040525050565b600067ffffffffffffffff8311156112675761126761120a565b60405161127e601f8501601f191660200182611220565b80915083815284848401111561129357600080fd5b83836020830137600060208583010152509392505050565b6000602082840312156112bd57600080fd5b813567ffffffffffffffff8111156112d457600080fd5b8201601f810184136112e557600080fd5b6112f48482356020840161124d565b949350505050565b60006020828403121561130e57600080fd5b5035919050565b6000815180845260005b8181101561133b5760208185018101518683018201520161131f565b8181111561134d576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006112036020830184611315565b600067ffffffffffffffff82111561138f5761138f61120a565b5060051b60200190565b600082601f8301126113aa57600080fd5b813560206113b782611375565b6040516113c48282611220565b83815260059390931b85018201928281019150868411156113e457600080fd5b8286015b848110156113ff57803583529183019183016113e8565b509695505050505050565b600082601f83011261141b57600080fd5b6112038383356020850161124d565b6000806000806080858703121561144057600080fd5b6114498561118a565b9350602085013567ffffffffffffffff8082111561146657600080fd5b61147288838901611399565b9450604087013591508082111561148857600080fd5b61149488838901611399565b935060608701359150808211156114aa57600080fd5b506114b78782880161140a565b91505092959194509250565b600080600080600060a086880312156114db57600080fd5b6114e48661118a565b94506114f26020870161118a565b9350604086013567ffffffffffffffff8082111561150f57600080fd5b61151b89838a01611399565b9450606088013591508082111561153157600080fd5b61153d89838a01611399565b9350608088013591508082111561155357600080fd5b506115608882890161140a565b9150509295509295909350565b6000806040838503121561158057600080fd5b823567ffffffffffffffff8082111561159857600080fd5b818501915085601f8301126115ac57600080fd5b813560206115b982611375565b6040516115c68282611220565b83815260059390931b85018201928281019150898411156115e657600080fd5b948201945b8386101561160b576115fc8661118a565b825294820194908201906115eb565b9650508601359250508082111561162157600080fd5b5061162e85828601611399565b9150509250929050565b600081518084526020808501945080840160005b838110156116685781518752958201959082019060010161164c565b509495945050505050565b6020815260006112036020830184611638565b60008060006060848603121561169b57600080fd5b6116a48461118a565b9250602084013567ffffffffffffffff808211156116c157600080fd5b6116cd87838801611399565b935060408601359150808211156116e357600080fd5b506116f086828701611399565b9150509250925092565b6000806000806080858703121561171057600080fd5b6117198561118a565b93506020850135925060408501359150606085013567ffffffffffffffff81111561174357600080fd5b6114b78782880161140a565b6000806040838503121561176257600080fd5b61176b8361118a565b91506020830135801515811461178057600080fd5b809150509250929050565b6000806040838503121561179e57600080fd5b6117a78361118a565b91506117b56020840161118a565b90509250929050565b600080600080600060a086880312156117d657600080fd5b6117df8661118a565b94506117ed6020870161118a565b93506040860135925060608601359150608086013567ffffffffffffffff81111561181757600080fd5b6115608882890161140a565b60008060006060848603121561183857600080fd5b6118418461118a565b95602085013595506040909401359392505050565b600181811c9082168061186a57607f821691505b60208210810361188a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016118ce576118ce6118a6565b5060010190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60008219821115611971576119716118a6565b500190565b6040815260006119896040830185611638565b828103602084015261199b8185611638565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090611ae690830186611638565b8281036060840152611af88186611638565b90508281036080840152611b0c8185611315565b98975050505050505050565b600060208284031215611b2a57600080fd5b8151611203816111d0565b600060033d1115611b4e5760046000803e5060005160e01c5b90565b600060443d1015611b5f5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611b8f57505050505090565b8285019150815181811115611ba75750505050505090565b843d8701016020828501011115611bc15750505050505090565b611bd060208286010187611220565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090611c5d90830184611315565b97965050505050505056fea264697066735822122012b698f17aa4aef2754aae66d4a126c23aa6013bc6695e88f53f943a1eb8de7064736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100ce5760003560e01c80634e1273f41161008c578063a22cb46511610066578063a22cb465146101bd578063e985e9c5146101d0578063f242432a1461020c578063f5298aca1461021f57600080fd5b80634e1273f4146101775780636b20c45414610197578063731133e9146101aa57600080fd5b8062fdd58e146100d357806301ffc9a7146100f957806302fe53051461011c5780630e89341c146101315780631f7fdffa146101515780632eb2c2d614610164575b600080fd5b6100e66100e13660046111a6565b610232565b6040519081526020015b60405180910390f35b61010c6101073660046111e6565b6102c9565b60405190151581526020016100f0565b61012f61012a3660046112ab565b61031b565b005b61014461013f3660046112fc565b610327565b6040516100f09190611362565b61012f61015f36600461142a565b6103bb565b61012f6101723660046114c3565b6103cd565b61018a61018536600461156d565b610464565b6040516100f09190611673565b61012f6101a5366004611686565b61058e565b61012f6101b83660046116fa565b61059e565b61012f6101cb36600461174f565b6105aa565b61010c6101de36600461178b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61012f61021a3660046117be565b6105b9565b61012f61022d366004611823565b610640565b60006001600160a01b0383166102a35760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806102fa57506001600160e01b031982166303a24d0760e21b145b8061031557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6103248161064b565b50565b60606002805461033690611856565b80601f016020809104026020016040519081016040528092919081815260200182805461036290611856565b80156103af5780601f10610384576101008083540402835291602001916103af565b820191906000526020600020905b81548152906001019060200180831161039257829003601f168201915b50505050509050919050565b6103c78484848461065e565b50505050565b6001600160a01b0385163314806103e957506103e985336101de565b6104505760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161029a565b61045d85858585856107a9565b5050505050565b606081518351146104c95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161029a565b6000835167ffffffffffffffff8111156104e5576104e561120a565b60405190808252806020026020018201604052801561050e578160200160208202803683370190505b50905060005b84518110156105865761055985828151811061053257610532611890565b602002602001015185838151811061054c5761054c611890565b6020026020010151610232565b82828151811061056b5761056b611890565b602090810291909101015261057f816118bc565b9050610514565b509392505050565b610599838383610945565b505050565b6103c784848484610ac1565b6105b5338383610b91565b5050565b6001600160a01b0385163314806105d557506105d585336101de565b6106335760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b606482015260840161029a565b61045d8585858585610c71565b610599838383610d8e565b80516105b59060029060208401906110f1565b6001600160a01b0384166106845760405162461bcd60e51b815260040161029a906118d5565b81518351146106a55760405162461bcd60e51b815260040161029a90611916565b3360005b8451811015610741578381815181106106c4576106c4611890565b60200260200101516000808784815181106106e1576106e1611890565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254610729919061195e565b90915550819050610739816118bc565b9150506106a9565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610792929190611976565b60405180910390a461045d81600087878787610e90565b81518351146107ca5760405162461bcd60e51b815260040161029a90611916565b6001600160a01b0384166107f05760405162461bcd60e51b815260040161029a906119a4565b3360005b84518110156108d757600085828151811061081157610811611890565b60200260200101519050600085838151811061082f5761082f611890565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561087f5760405162461bcd60e51b815260040161029a906119e9565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906108bc90849061195e565b92505081905550505050806108d0906118bc565b90506107f4565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610927929190611976565b60405180910390a461093d818787878787610e90565b505050505050565b6001600160a01b03831661096b5760405162461bcd60e51b815260040161029a90611a33565b805182511461098c5760405162461bcd60e51b815260040161029a90611916565b604080516020810190915260009081905233905b8351811015610a625760008482815181106109bd576109bd611890565b6020026020010151905060008483815181106109db576109db611890565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015610a2b5760405162461bcd60e51b815260040161029a90611a76565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580610a5a816118bc565b9150506109a0565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051610ab3929190611976565b60405180910390a450505050565b6001600160a01b038416610ae75760405162461bcd60e51b815260040161029a906118d5565b33610b0181600087610af888610feb565b61045d88610feb565b6000848152602081815260408083206001600160a01b038916845290915281208054859290610b3190849061195e565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461045d81600087878787611036565b816001600160a01b0316836001600160a01b031603610c045760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161029a565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416610c975760405162461bcd60e51b815260040161029a906119a4565b33610ca7818787610af888610feb565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015610ce85760405162461bcd60e51b815260040161029a906119e9565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290610d2590849061195e565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610d85828888888888611036565b50505050505050565b6001600160a01b038316610db45760405162461bcd60e51b815260040161029a90611a33565b33610de481856000610dc587610feb565b610dce87610feb565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b038816845290915290205482811015610e255760405162461bcd60e51b815260040161029a90611a76565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384163b1561093d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190610ed49089908990889088908890600401611aba565b6020604051808303816000875af1925050508015610f0f575060408051601f3d908101601f19168201909252610f0c91810190611b18565b60015b610fbb57610f1b611b35565b806308c379a003610f545750610f2f611b51565b80610f3a5750610f56565b8060405162461bcd60e51b815260040161029a9190611362565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161029a565b6001600160e01b0319811663bc197c8160e01b14610d855760405162461bcd60e51b815260040161029a90611bdb565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061102557611025611890565b602090810291909101015292915050565b6001600160a01b0384163b1561093d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061107a9089908990889088908890600401611c23565b6020604051808303816000875af19250505080156110b5575060408051601f3d908101601f191682019092526110b291810190611b18565b60015b6110c157610f1b611b35565b6001600160e01b0319811663f23a6e6160e01b14610d855760405162461bcd60e51b815260040161029a90611bdb565b8280546110fd90611856565b90600052602060002090601f01602090048101928261111f5760008555611165565b82601f1061113857805160ff1916838001178555611165565b82800160010185558215611165579182015b8281111561116557825182559160200191906001019061114a565b50611171929150611175565b5090565b5b808211156111715760008155600101611176565b80356001600160a01b03811681146111a157600080fd5b919050565b600080604083850312156111b957600080fd5b6111c28361118a565b946020939093013593505050565b6001600160e01b03198116811461032457600080fd5b6000602082840312156111f857600080fd5b8135611203816111d0565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156112465761124661120a565b6040525050565b600067ffffffffffffffff8311156112675761126761120a565b60405161127e601f8501601f191660200182611220565b80915083815284848401111561129357600080fd5b83836020830137600060208583010152509392505050565b6000602082840312156112bd57600080fd5b813567ffffffffffffffff8111156112d457600080fd5b8201601f810184136112e557600080fd5b6112f48482356020840161124d565b949350505050565b60006020828403121561130e57600080fd5b5035919050565b6000815180845260005b8181101561133b5760208185018101518683018201520161131f565b8181111561134d576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006112036020830184611315565b600067ffffffffffffffff82111561138f5761138f61120a565b5060051b60200190565b600082601f8301126113aa57600080fd5b813560206113b782611375565b6040516113c48282611220565b83815260059390931b85018201928281019150868411156113e457600080fd5b8286015b848110156113ff57803583529183019183016113e8565b509695505050505050565b600082601f83011261141b57600080fd5b6112038383356020850161124d565b6000806000806080858703121561144057600080fd5b6114498561118a565b9350602085013567ffffffffffffffff8082111561146657600080fd5b61147288838901611399565b9450604087013591508082111561148857600080fd5b61149488838901611399565b935060608701359150808211156114aa57600080fd5b506114b78782880161140a565b91505092959194509250565b600080600080600060a086880312156114db57600080fd5b6114e48661118a565b94506114f26020870161118a565b9350604086013567ffffffffffffffff8082111561150f57600080fd5b61151b89838a01611399565b9450606088013591508082111561153157600080fd5b61153d89838a01611399565b9350608088013591508082111561155357600080fd5b506115608882890161140a565b9150509295509295909350565b6000806040838503121561158057600080fd5b823567ffffffffffffffff8082111561159857600080fd5b818501915085601f8301126115ac57600080fd5b813560206115b982611375565b6040516115c68282611220565b83815260059390931b85018201928281019150898411156115e657600080fd5b948201945b8386101561160b576115fc8661118a565b825294820194908201906115eb565b9650508601359250508082111561162157600080fd5b5061162e85828601611399565b9150509250929050565b600081518084526020808501945080840160005b838110156116685781518752958201959082019060010161164c565b509495945050505050565b6020815260006112036020830184611638565b60008060006060848603121561169b57600080fd5b6116a48461118a565b9250602084013567ffffffffffffffff808211156116c157600080fd5b6116cd87838801611399565b935060408601359150808211156116e357600080fd5b506116f086828701611399565b9150509250925092565b6000806000806080858703121561171057600080fd5b6117198561118a565b93506020850135925060408501359150606085013567ffffffffffffffff81111561174357600080fd5b6114b78782880161140a565b6000806040838503121561176257600080fd5b61176b8361118a565b91506020830135801515811461178057600080fd5b809150509250929050565b6000806040838503121561179e57600080fd5b6117a78361118a565b91506117b56020840161118a565b90509250929050565b600080600080600060a086880312156117d657600080fd5b6117df8661118a565b94506117ed6020870161118a565b93506040860135925060608601359150608086013567ffffffffffffffff81111561181757600080fd5b6115608882890161140a565b60008060006060848603121561183857600080fd5b6118418461118a565b95602085013595506040909401359392505050565b600181811c9082168061186a57607f821691505b60208210810361188a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016118ce576118ce6118a6565b5060010190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60008219821115611971576119716118a6565b500190565b6040815260006119896040830185611638565b828103602084015261199b8185611638565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090611ae690830186611638565b8281036060840152611af88186611638565b90508281036080840152611b0c8185611315565b98975050505050505050565b600060208284031215611b2a57600080fd5b8151611203816111d0565b600060033d1115611b4e5760046000803e5060005160e01c5b90565b600060443d1015611b5f5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611b8f57505050505090565b8285019150815181811115611ba75750505050505090565b843d8701016020828501011115611bc15750505050505090565b611bd060208286010187611220565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090611c5d90830184611315565b97965050505050505056fea264697066735822122012b698f17aa4aef2754aae66d4a126c23aa6013bc6695e88f53f943a1eb8de7064736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "uri", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnBatch", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "mintBatch", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "setURI", "stateMutability": "nonpayable", "inputs": [{"name": "newuri", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "title": "ERC1155Mock This mock just publicizes internal functions for testing purposes", "version": 1}}, "ERC1155PausableMock": {"contractName": "ERC1155PausableMock", "sourceId": "mocks/ERC1155PausableMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b506040516200210538038062002105833981016040819052620000349162000129565b8080620000418162000054565b50506003805460ff191690555062000241565b8051620000699060029060208401906200006d565b5050565b8280546200007b9062000205565b90600052602060002090601f0160209004810192826200009f5760008555620000ea565b82601f10620000ba57805160ff1916838001178555620000ea565b82800160010185558215620000ea579182015b82811115620000ea578251825591602001919060010190620000cd565b50620000f8929150620000fc565b5090565b5b80821115620000f85760008155600101620000fd565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200013d57600080fd5b82516001600160401b03808211156200015557600080fd5b818501915085601f8301126200016a57600080fd5b8151818111156200017f576200017f62000113565b604051601f8201601f19908116603f01168101908382118183101715620001aa57620001aa62000113565b816040528281528886848701011115620001c357600080fd5b600093505b82841015620001e75784840186015181850187015292850192620001c8565b82841115620001f95760008684830101525b98975050505050505050565b600181811c908216806200021a57607f821691505b6020821081036200023b57634e487b7160e01b600052602260045260246000fd5b50919050565b611eb480620002516000396000f3fe608060405234801561001057600080fd5b50600436106100ff5760003560e01c80635c975abb11610097578063a22cb46511610066578063a22cb46514610209578063e985e9c51461021c578063f242432a14610258578063f5298aca1461026b57600080fd5b80635c975abb146101d05780636b20c454146101db578063731133e9146101ee5780638456cb591461020157600080fd5b80631f7fdffa116100d35780631f7fdffa146101825780632eb2c2d6146101955780633f4ba83a146101a85780634e1273f4146101b057600080fd5b8062fdd58e1461010457806301ffc9a71461012a57806302fe53051461014d5780630e89341c14610162575b600080fd5b6101176101123660046113bc565b61027e565b6040519081526020015b60405180910390f35b61013d6101383660046113fc565b610315565b6040519015158152602001610121565b61016061015b3660046114c1565b610367565b005b610175610170366004611512565b610373565b6040516101219190611578565b610160610190366004611640565b610407565b6101606101a33660046116d9565b610419565b6101606104b0565b6101c36101be366004611783565b6104ba565b6040516101219190611889565b60035460ff1661013d565b6101606101e936600461189c565b6105e4565b6101606101fc366004611910565b6105f4565b610160610600565b610160610217366004611965565b610608565b61013d61022a3660046119a1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6101606102663660046119d4565b610617565b610160610279366004611a39565b61069e565b60006001600160a01b0383166102ef5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061034657506001600160e01b031982166303a24d0760e21b145b8061036157506301ffc9a760e01b6001600160e01b03198316145b92915050565b610370816106a9565b50565b60606002805461038290611a6c565b80601f01602080910402602001604051908101604052809291908181526020018280546103ae90611a6c565b80156103fb5780601f106103d0576101008083540402835291602001916103fb565b820191906000526020600020905b8154815290600101906020018083116103de57829003601f168201915b50505050509050919050565b610413848484846106bc565b50505050565b6001600160a01b0385163314806104355750610435853361022a565b61049c5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016102e6565b6104a98585858585610816565b5050505050565b6104b86109c0565b565b6060815183511461051f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016102e6565b6000835167ffffffffffffffff81111561053b5761053b611420565b604051908082528060200260200182016040528015610564578160200160208202803683370190505b50905060005b84518110156105dc576105af85828151811061058857610588611aa6565b60200260200101518583815181106105a2576105a2611aa6565b602002602001015161027e565b8282815181106105c1576105c1611aa6565b60209081029190910101526105d581611ad2565b905061056a565b509392505050565b6105ef838383610a53565b505050565b61041384848484610be1565b6104b8610cb7565b610613338383610d32565b5050565b6001600160a01b0385163314806106335750610633853361022a565b6106915760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016102e6565b6104a98585858585610e12565b6105ef838383610f2f565b8051610613906002906020840190611307565b6001600160a01b0384166106e25760405162461bcd60e51b81526004016102e690611aeb565b81518351146107035760405162461bcd60e51b81526004016102e690611b2c565b3361071381600087878787611030565b60005b84518110156107ae5783818151811061073157610731611aa6565b602002602001015160008087848151811061074e5761074e611aa6565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546107969190611b74565b909155508190506107a681611ad2565b915050610716565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516107ff929190611b8c565b60405180910390a46104a98160008787878761103e565b81518351146108375760405162461bcd60e51b81526004016102e690611b2c565b6001600160a01b03841661085d5760405162461bcd60e51b81526004016102e690611bba565b3361086c818787878787611030565b60005b845181101561095257600085828151811061088c5761088c611aa6565b6020026020010151905060008583815181106108aa576108aa611aa6565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156108fa5760405162461bcd60e51b81526004016102e690611bff565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610937908490611b74565b925050819055505050508061094b90611ad2565b905061086f565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516109a2929190611b8c565b60405180910390a46109b881878787878761103e565b505050505050565b60035460ff16610a095760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102e6565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038316610a795760405162461bcd60e51b81526004016102e690611c49565b8051825114610a9a5760405162461bcd60e51b81526004016102e690611b2c565b6000339050610abd81856000868660405180602001604052806000815250611030565b60005b8351811015610b82576000848281518110610add57610add611aa6565b602002602001015190506000848381518110610afb57610afb611aa6565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015610b4b5760405162461bcd60e51b81526004016102e690611c8c565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580610b7a81611ad2565b915050610ac0565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051610bd3929190611b8c565b60405180910390a450505050565b6001600160a01b038416610c075760405162461bcd60e51b81526004016102e690611aeb565b33610c2781600087610c1888611199565b610c2188611199565b87611030565b6000848152602081815260408083206001600160a01b038916845290915281208054859290610c57908490611b74565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46104a9816000878787876111e4565b60035460ff1615610cfd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102e6565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610a363390565b816001600160a01b0316836001600160a01b031603610da55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016102e6565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416610e385760405162461bcd60e51b81526004016102e690611bba565b33610e48818787610c1888611199565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015610e895760405162461bcd60e51b81526004016102e690611bff565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290610ec6908490611b74565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f268288888888886111e4565b50505050505050565b6001600160a01b038316610f555760405162461bcd60e51b81526004016102e690611c49565b33610f8481856000610f6687611199565b610f6f87611199565b60405180602001604052806000815250611030565b6000838152602081815260408083206001600160a01b038816845290915290205482811015610fc55760405162461bcd60e51b81526004016102e690611c8c565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6109b886868686868661129f565b6001600160a01b0384163b156109b85760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906110829089908990889088908890600401611cd0565b6020604051808303816000875af19250505080156110bd575060408051601f3d908101601f191682019092526110ba91810190611d2e565b60015b611169576110c9611d4b565b806308c379a00361110257506110dd611d67565b806110e85750611104565b8060405162461bcd60e51b81526004016102e69190611578565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016102e6565b6001600160e01b0319811663bc197c8160e01b14610f265760405162461bcd60e51b81526004016102e690611df1565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106111d3576111d3611aa6565b602090810291909101015292915050565b6001600160a01b0384163b156109b85760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906112289089908990889088908890600401611e39565b6020604051808303816000875af1925050508015611263575060408051601f3d908101601f1916820190925261126091810190611d2e565b60015b61126f576110c9611d4b565b6001600160e01b0319811663f23a6e6160e01b14610f265760405162461bcd60e51b81526004016102e690611df1565b60035460ff16156109b85760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b60648201526084016102e6565b82805461131390611a6c565b90600052602060002090601f016020900481019282611335576000855561137b565b82601f1061134e57805160ff191683800117855561137b565b8280016001018555821561137b579182015b8281111561137b578251825591602001919060010190611360565b5061138792915061138b565b5090565b5b80821115611387576000815560010161138c565b80356001600160a01b03811681146113b757600080fd5b919050565b600080604083850312156113cf57600080fd5b6113d8836113a0565b946020939093013593505050565b6001600160e01b03198116811461037057600080fd5b60006020828403121561140e57600080fd5b8135611419816113e6565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561145c5761145c611420565b6040525050565b600067ffffffffffffffff83111561147d5761147d611420565b604051611494601f8501601f191660200182611436565b8091508381528484840111156114a957600080fd5b83836020830137600060208583010152509392505050565b6000602082840312156114d357600080fd5b813567ffffffffffffffff8111156114ea57600080fd5b8201601f810184136114fb57600080fd5b61150a84823560208401611463565b949350505050565b60006020828403121561152457600080fd5b5035919050565b6000815180845260005b8181101561155157602081850181015186830182015201611535565b81811115611563576000602083870101525b50601f01601f19169290920160200192915050565b602081526000611419602083018461152b565b600067ffffffffffffffff8211156115a5576115a5611420565b5060051b60200190565b600082601f8301126115c057600080fd5b813560206115cd8261158b565b6040516115da8282611436565b83815260059390931b85018201928281019150868411156115fa57600080fd5b8286015b8481101561161557803583529183019183016115fe565b509695505050505050565b600082601f83011261163157600080fd5b61141983833560208501611463565b6000806000806080858703121561165657600080fd5b61165f856113a0565b9350602085013567ffffffffffffffff8082111561167c57600080fd5b611688888389016115af565b9450604087013591508082111561169e57600080fd5b6116aa888389016115af565b935060608701359150808211156116c057600080fd5b506116cd87828801611620565b91505092959194509250565b600080600080600060a086880312156116f157600080fd5b6116fa866113a0565b9450611708602087016113a0565b9350604086013567ffffffffffffffff8082111561172557600080fd5b61173189838a016115af565b9450606088013591508082111561174757600080fd5b61175389838a016115af565b9350608088013591508082111561176957600080fd5b5061177688828901611620565b9150509295509295909350565b6000806040838503121561179657600080fd5b823567ffffffffffffffff808211156117ae57600080fd5b818501915085601f8301126117c257600080fd5b813560206117cf8261158b565b6040516117dc8282611436565b83815260059390931b85018201928281019150898411156117fc57600080fd5b948201945b8386101561182157611812866113a0565b82529482019490820190611801565b9650508601359250508082111561183757600080fd5b50611844858286016115af565b9150509250929050565b600081518084526020808501945080840160005b8381101561187e57815187529582019590820190600101611862565b509495945050505050565b602081526000611419602083018461184e565b6000806000606084860312156118b157600080fd5b6118ba846113a0565b9250602084013567ffffffffffffffff808211156118d757600080fd5b6118e3878388016115af565b935060408601359150808211156118f957600080fd5b50611906868287016115af565b9150509250925092565b6000806000806080858703121561192657600080fd5b61192f856113a0565b93506020850135925060408501359150606085013567ffffffffffffffff81111561195957600080fd5b6116cd87828801611620565b6000806040838503121561197857600080fd5b611981836113a0565b91506020830135801515811461199657600080fd5b809150509250929050565b600080604083850312156119b457600080fd5b6119bd836113a0565b91506119cb602084016113a0565b90509250929050565b600080600080600060a086880312156119ec57600080fd5b6119f5866113a0565b9450611a03602087016113a0565b93506040860135925060608601359150608086013567ffffffffffffffff811115611a2d57600080fd5b61177688828901611620565b600080600060608486031215611a4e57600080fd5b611a57846113a0565b95602085013595506040909401359392505050565b600181811c90821680611a8057607f821691505b602082108103611aa057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611ae457611ae4611abc565b5060010190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60008219821115611b8757611b87611abc565b500190565b604081526000611b9f604083018561184e565b8281036020840152611bb1818561184e565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090611cfc9083018661184e565b8281036060840152611d0e818661184e565b90508281036080840152611d22818561152b565b98975050505050505050565b600060208284031215611d4057600080fd5b8151611419816113e6565b600060033d1115611d645760046000803e5060005160e01c5b90565b600060443d1015611d755790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611da557505050505090565b8285019150815181811115611dbd5750505050505090565b843d8701016020828501011115611dd75750505050505090565b611de660208286010187611436565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090611e739083018461152b565b97965050505050505056fea264697066735822122063d23e339f7273a10df3fe322c77cb83cf36d1cbc34aaa0c531ab676e975925d64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100ff5760003560e01c80635c975abb11610097578063a22cb46511610066578063a22cb46514610209578063e985e9c51461021c578063f242432a14610258578063f5298aca1461026b57600080fd5b80635c975abb146101d05780636b20c454146101db578063731133e9146101ee5780638456cb591461020157600080fd5b80631f7fdffa116100d35780631f7fdffa146101825780632eb2c2d6146101955780633f4ba83a146101a85780634e1273f4146101b057600080fd5b8062fdd58e1461010457806301ffc9a71461012a57806302fe53051461014d5780630e89341c14610162575b600080fd5b6101176101123660046113bc565b61027e565b6040519081526020015b60405180910390f35b61013d6101383660046113fc565b610315565b6040519015158152602001610121565b61016061015b3660046114c1565b610367565b005b610175610170366004611512565b610373565b6040516101219190611578565b610160610190366004611640565b610407565b6101606101a33660046116d9565b610419565b6101606104b0565b6101c36101be366004611783565b6104ba565b6040516101219190611889565b60035460ff1661013d565b6101606101e936600461189c565b6105e4565b6101606101fc366004611910565b6105f4565b610160610600565b610160610217366004611965565b610608565b61013d61022a3660046119a1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6101606102663660046119d4565b610617565b610160610279366004611a39565b61069e565b60006001600160a01b0383166102ef5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061034657506001600160e01b031982166303a24d0760e21b145b8061036157506301ffc9a760e01b6001600160e01b03198316145b92915050565b610370816106a9565b50565b60606002805461038290611a6c565b80601f01602080910402602001604051908101604052809291908181526020018280546103ae90611a6c565b80156103fb5780601f106103d0576101008083540402835291602001916103fb565b820191906000526020600020905b8154815290600101906020018083116103de57829003601f168201915b50505050509050919050565b610413848484846106bc565b50505050565b6001600160a01b0385163314806104355750610435853361022a565b61049c5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016102e6565b6104a98585858585610816565b5050505050565b6104b86109c0565b565b6060815183511461051f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016102e6565b6000835167ffffffffffffffff81111561053b5761053b611420565b604051908082528060200260200182016040528015610564578160200160208202803683370190505b50905060005b84518110156105dc576105af85828151811061058857610588611aa6565b60200260200101518583815181106105a2576105a2611aa6565b602002602001015161027e565b8282815181106105c1576105c1611aa6565b60209081029190910101526105d581611ad2565b905061056a565b509392505050565b6105ef838383610a53565b505050565b61041384848484610be1565b6104b8610cb7565b610613338383610d32565b5050565b6001600160a01b0385163314806106335750610633853361022a565b6106915760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016102e6565b6104a98585858585610e12565b6105ef838383610f2f565b8051610613906002906020840190611307565b6001600160a01b0384166106e25760405162461bcd60e51b81526004016102e690611aeb565b81518351146107035760405162461bcd60e51b81526004016102e690611b2c565b3361071381600087878787611030565b60005b84518110156107ae5783818151811061073157610731611aa6565b602002602001015160008087848151811061074e5761074e611aa6565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546107969190611b74565b909155508190506107a681611ad2565b915050610716565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516107ff929190611b8c565b60405180910390a46104a98160008787878761103e565b81518351146108375760405162461bcd60e51b81526004016102e690611b2c565b6001600160a01b03841661085d5760405162461bcd60e51b81526004016102e690611bba565b3361086c818787878787611030565b60005b845181101561095257600085828151811061088c5761088c611aa6565b6020026020010151905060008583815181106108aa576108aa611aa6565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156108fa5760405162461bcd60e51b81526004016102e690611bff565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610937908490611b74565b925050819055505050508061094b90611ad2565b905061086f565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516109a2929190611b8c565b60405180910390a46109b881878787878761103e565b505050505050565b60035460ff16610a095760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102e6565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038316610a795760405162461bcd60e51b81526004016102e690611c49565b8051825114610a9a5760405162461bcd60e51b81526004016102e690611b2c565b6000339050610abd81856000868660405180602001604052806000815250611030565b60005b8351811015610b82576000848281518110610add57610add611aa6565b602002602001015190506000848381518110610afb57610afb611aa6565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015610b4b5760405162461bcd60e51b81526004016102e690611c8c565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580610b7a81611ad2565b915050610ac0565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051610bd3929190611b8c565b60405180910390a450505050565b6001600160a01b038416610c075760405162461bcd60e51b81526004016102e690611aeb565b33610c2781600087610c1888611199565b610c2188611199565b87611030565b6000848152602081815260408083206001600160a01b038916845290915281208054859290610c57908490611b74565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46104a9816000878787876111e4565b60035460ff1615610cfd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102e6565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610a363390565b816001600160a01b0316836001600160a01b031603610da55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016102e6565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416610e385760405162461bcd60e51b81526004016102e690611bba565b33610e48818787610c1888611199565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015610e895760405162461bcd60e51b81526004016102e690611bff565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290610ec6908490611b74565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f268288888888886111e4565b50505050505050565b6001600160a01b038316610f555760405162461bcd60e51b81526004016102e690611c49565b33610f8481856000610f6687611199565b610f6f87611199565b60405180602001604052806000815250611030565b6000838152602081815260408083206001600160a01b038816845290915290205482811015610fc55760405162461bcd60e51b81526004016102e690611c8c565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6109b886868686868661129f565b6001600160a01b0384163b156109b85760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906110829089908990889088908890600401611cd0565b6020604051808303816000875af19250505080156110bd575060408051601f3d908101601f191682019092526110ba91810190611d2e565b60015b611169576110c9611d4b565b806308c379a00361110257506110dd611d67565b806110e85750611104565b8060405162461bcd60e51b81526004016102e69190611578565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016102e6565b6001600160e01b0319811663bc197c8160e01b14610f265760405162461bcd60e51b81526004016102e690611df1565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106111d3576111d3611aa6565b602090810291909101015292915050565b6001600160a01b0384163b156109b85760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906112289089908990889088908890600401611e39565b6020604051808303816000875af1925050508015611263575060408051601f3d908101601f1916820190925261126091810190611d2e565b60015b61126f576110c9611d4b565b6001600160e01b0319811663f23a6e6160e01b14610f265760405162461bcd60e51b81526004016102e690611df1565b60035460ff16156109b85760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b60648201526084016102e6565b82805461131390611a6c565b90600052602060002090601f016020900481019282611335576000855561137b565b82601f1061134e57805160ff191683800117855561137b565b8280016001018555821561137b579182015b8281111561137b578251825591602001919060010190611360565b5061138792915061138b565b5090565b5b80821115611387576000815560010161138c565b80356001600160a01b03811681146113b757600080fd5b919050565b600080604083850312156113cf57600080fd5b6113d8836113a0565b946020939093013593505050565b6001600160e01b03198116811461037057600080fd5b60006020828403121561140e57600080fd5b8135611419816113e6565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561145c5761145c611420565b6040525050565b600067ffffffffffffffff83111561147d5761147d611420565b604051611494601f8501601f191660200182611436565b8091508381528484840111156114a957600080fd5b83836020830137600060208583010152509392505050565b6000602082840312156114d357600080fd5b813567ffffffffffffffff8111156114ea57600080fd5b8201601f810184136114fb57600080fd5b61150a84823560208401611463565b949350505050565b60006020828403121561152457600080fd5b5035919050565b6000815180845260005b8181101561155157602081850181015186830182015201611535565b81811115611563576000602083870101525b50601f01601f19169290920160200192915050565b602081526000611419602083018461152b565b600067ffffffffffffffff8211156115a5576115a5611420565b5060051b60200190565b600082601f8301126115c057600080fd5b813560206115cd8261158b565b6040516115da8282611436565b83815260059390931b85018201928281019150868411156115fa57600080fd5b8286015b8481101561161557803583529183019183016115fe565b509695505050505050565b600082601f83011261163157600080fd5b61141983833560208501611463565b6000806000806080858703121561165657600080fd5b61165f856113a0565b9350602085013567ffffffffffffffff8082111561167c57600080fd5b611688888389016115af565b9450604087013591508082111561169e57600080fd5b6116aa888389016115af565b935060608701359150808211156116c057600080fd5b506116cd87828801611620565b91505092959194509250565b600080600080600060a086880312156116f157600080fd5b6116fa866113a0565b9450611708602087016113a0565b9350604086013567ffffffffffffffff8082111561172557600080fd5b61173189838a016115af565b9450606088013591508082111561174757600080fd5b61175389838a016115af565b9350608088013591508082111561176957600080fd5b5061177688828901611620565b9150509295509295909350565b6000806040838503121561179657600080fd5b823567ffffffffffffffff808211156117ae57600080fd5b818501915085601f8301126117c257600080fd5b813560206117cf8261158b565b6040516117dc8282611436565b83815260059390931b85018201928281019150898411156117fc57600080fd5b948201945b8386101561182157611812866113a0565b82529482019490820190611801565b9650508601359250508082111561183757600080fd5b50611844858286016115af565b9150509250929050565b600081518084526020808501945080840160005b8381101561187e57815187529582019590820190600101611862565b509495945050505050565b602081526000611419602083018461184e565b6000806000606084860312156118b157600080fd5b6118ba846113a0565b9250602084013567ffffffffffffffff808211156118d757600080fd5b6118e3878388016115af565b935060408601359150808211156118f957600080fd5b50611906868287016115af565b9150509250925092565b6000806000806080858703121561192657600080fd5b61192f856113a0565b93506020850135925060408501359150606085013567ffffffffffffffff81111561195957600080fd5b6116cd87828801611620565b6000806040838503121561197857600080fd5b611981836113a0565b91506020830135801515811461199657600080fd5b809150509250929050565b600080604083850312156119b457600080fd5b6119bd836113a0565b91506119cb602084016113a0565b90509250929050565b600080600080600060a086880312156119ec57600080fd5b6119f5866113a0565b9450611a03602087016113a0565b93506040860135925060608601359150608086013567ffffffffffffffff811115611a2d57600080fd5b61177688828901611620565b600080600060608486031215611a4e57600080fd5b611a57846113a0565b95602085013595506040909401359392505050565b600181811c90821680611a8057607f821691505b602082108103611aa057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611ae457611ae4611abc565b5060010190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60008219821115611b8757611b87611abc565b500190565b604081526000611b9f604083018561184e565b8281036020840152611bb1818561184e565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090611cfc9083018661184e565b8281036060840152611d0e818661184e565b90508281036080840152611d22818561152b565b98975050505050505050565b600060208284031215611d4057600080fd5b8151611419816113e6565b600060033d1115611d645760046000803e5060005160e01c5b90565b600060443d1015611d755790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611da557505050505090565b8285019150815181811115611dbd5750505050505090565b843d8701016020828501011115611dd75750505050505090565b611de660208286010187611436565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090611e739083018461152b565b97965050505050505056fea264697066735822122063d23e339f7273a10df3fe322c77cb83cf36d1cbc34aaa0c531ab676e975925d64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "uri", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnBatch", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "mintBatch", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "setURI", "stateMutability": "nonpayable", "inputs": [{"name": "newuri", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "ERC1155ReceiverMock": {"contractName": "ERC1155ReceiverMock", "sourceId": "mocks/ERC1155ReceiverMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506040516106df3803806106df83398101604081905261002f916100bd565b6000805491151569010000000000000000000260ff60481b1960e094851c65010000000000021664ffffffffff60281b199515156401000000000264ffffffffff199094169690941c95909517919091179290921617919091179055610111565b80516001600160e01b0319811681146100a857600080fd5b919050565b805180151581146100a857600080fd5b600080600080608085870312156100d357600080fd5b6100dc85610090565b93506100ea602086016100ad565b92506100f860408601610090565b9150610106606086016100ad565b905092959194509250565b6105bf806101206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063bc197c811461007f578063f23a6e61146100ab575b600080fd5b61006a610054366004610261565b6001600160e01b0319166301ffc9a760e01b1490565b60405190151581526020015b60405180910390f35b61009261008d36600461033c565b6100be565b6040516001600160e01b03199091168152602001610076565b6100926100b93660046103f7565b61019f565b600080546901000000000000000000900460ff161561013c5760405162461bcd60e51b815260206004820152602f60248201527f4552433131353552656365697665724d6f636b3a20726576657274696e67206f60448201526e6e206261746368207265636569766560881b60648201526084015b60405180910390fd5b7f0bcad9224ba33b574e9c85298de2f44b4c80015a21aa5df474896444909863d889898989898989895a60405161017b999897969594939291906104ce565b60405180910390a15060005465010000000000900460e01b98975050505050505050565b60008054640100000000900460ff161561020d5760405162461bcd60e51b815260206004820152602960248201527f4552433131353552656365697665724d6f636b3a20726576657274696e67206f6044820152686e207265636569766560b81b6064820152608401610133565b7f20dfa9f79060c8c4d7fe892c97c71bcf6e3b63d1dcf66fea7aefc0211628cf298787878787875a604051610248979695949392919061053a565b60405180910390a15060005460e01b9695505050505050565b60006020828403121561027357600080fd5b81356001600160e01b03198116811461028b57600080fd5b9392505050565b80356001600160a01b03811681146102a957600080fd5b919050565b60008083601f8401126102c057600080fd5b50813567ffffffffffffffff8111156102d857600080fd5b6020830191508360208260051b85010111156102f357600080fd5b9250929050565b60008083601f84011261030c57600080fd5b50813567ffffffffffffffff81111561032457600080fd5b6020830191508360208285010111156102f357600080fd5b60008060008060008060008060a0898b03121561035857600080fd5b61036189610292565b975061036f60208a01610292565b9650604089013567ffffffffffffffff8082111561038c57600080fd5b6103988c838d016102ae565b909850965060608b01359150808211156103b157600080fd5b6103bd8c838d016102ae565b909650945060808b01359150808211156103d657600080fd5b506103e38b828c016102fa565b999c989b5096995094979396929594505050565b60008060008060008060a0878903121561041057600080fd5b61041987610292565b955061042760208801610292565b94506040870135935060608701359250608087013567ffffffffffffffff81111561045157600080fd5b61045d89828a016102fa565b979a9699509497509295939492505050565b81835260006001600160fb1b0383111561048857600080fd5b8260051b8083602087013760009401602001938452509192915050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038a811682528916602082015260c0604082018190526000906104fb908301898b61046f565b828103606084015261050e81888a61046f565b905082810360808401526105238186886104a5565b9150508260a08301529a9950505050505050505050565b6001600160a01b03888116825287166020820152604081018690526060810185905260c06080820181905260009061057590830185876104a5565b90508260a08301529897505050505050505056fea26469706673582212208097a2823a79c7ddffd227071988a810da6bd96d9bc5f17a1a54afb0425534b464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063bc197c811461007f578063f23a6e61146100ab575b600080fd5b61006a610054366004610261565b6001600160e01b0319166301ffc9a760e01b1490565b60405190151581526020015b60405180910390f35b61009261008d36600461033c565b6100be565b6040516001600160e01b03199091168152602001610076565b6100926100b93660046103f7565b61019f565b600080546901000000000000000000900460ff161561013c5760405162461bcd60e51b815260206004820152602f60248201527f4552433131353552656365697665724d6f636b3a20726576657274696e67206f60448201526e6e206261746368207265636569766560881b60648201526084015b60405180910390fd5b7f0bcad9224ba33b574e9c85298de2f44b4c80015a21aa5df474896444909863d889898989898989895a60405161017b999897969594939291906104ce565b60405180910390a15060005465010000000000900460e01b98975050505050505050565b60008054640100000000900460ff161561020d5760405162461bcd60e51b815260206004820152602960248201527f4552433131353552656365697665724d6f636b3a20726576657274696e67206f6044820152686e207265636569766560b81b6064820152608401610133565b7f20dfa9f79060c8c4d7fe892c97c71bcf6e3b63d1dcf66fea7aefc0211628cf298787878787875a604051610248979695949392919061053a565b60405180910390a15060005460e01b9695505050505050565b60006020828403121561027357600080fd5b81356001600160e01b03198116811461028b57600080fd5b9392505050565b80356001600160a01b03811681146102a957600080fd5b919050565b60008083601f8401126102c057600080fd5b50813567ffffffffffffffff8111156102d857600080fd5b6020830191508360208260051b85010111156102f357600080fd5b9250929050565b60008083601f84011261030c57600080fd5b50813567ffffffffffffffff81111561032457600080fd5b6020830191508360208285010111156102f357600080fd5b60008060008060008060008060a0898b03121561035857600080fd5b61036189610292565b975061036f60208a01610292565b9650604089013567ffffffffffffffff8082111561038c57600080fd5b6103988c838d016102ae565b909850965060608b01359150808211156103b157600080fd5b6103bd8c838d016102ae565b909650945060808b01359150808211156103d657600080fd5b506103e38b828c016102fa565b999c989b5096995094979396929594505050565b60008060008060008060a0878903121561041057600080fd5b61041987610292565b955061042760208801610292565b94506040870135935060608701359250608087013567ffffffffffffffff81111561045157600080fd5b61045d89828a016102fa565b979a9699509497509295939492505050565b81835260006001600160fb1b0383111561048857600080fd5b8260051b8083602087013760009401602001938452509192915050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038a811682528916602082015260c0604082018190526000906104fb908301898b61046f565b828103606084015261050e81888a61046f565b905082810360808401526105238186886104a5565b9150508260a08301529a9950505050505050505050565b6001600160a01b03888116825287166020820152604081018690526060810185905260c06080820181905260009061057590830185876104a5565b90508260a08301529897505050505050505056fea26469706673582212208097a2823a79c7ddffd227071988a810da6bd96d9bc5f17a1a54afb0425534b464736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "recRetval", "type": "bytes4", "internalType": "bytes4"}, {"name": "recReverts", "type": "bool", "internalType": "bool"}, {"name": "batRetval", "type": "bytes4", "internalType": "bytes4"}, {"name": "batReverts", "type": "bool", "internalType": "bool"}]}, {"type": "event", "name": "BatchReceived", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": false}, {"name": "from", "type": "address", "internalType": "address", "indexed": false}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "gas", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Received", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": false}, {"name": "from", "type": "address", "internalType": "address", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "gas", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "onERC1155BatchReceived", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "onERC1155Received", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": {"details": "Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` (i.e. 0xbc197c81, or its own function selector).", "params": {"data": "Additional data with no specified format", "from": "The address which previously owned the token", "ids": "An array containing ids of each token being transferred (order and length must match values array)", "operator": "The address which initiated the batch transfer (i.e. msg.sender)", "values": "An array containing amounts of each token being transferred (order and length must match ids array)"}, "returns": {"_0": "`bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed"}}, "onERC1155Received(address,address,uint256,uint256,bytes)": {"details": "Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` (i.e. 0xf23a6e61, or its own function selector).", "params": {"data": "Additional data with no specified format", "from": "The address which previously owned the token", "id": "The ID of the token being transferred", "operator": "The address which initiated the transfer (i.e. msg.sender)", "value": "The amount of tokens being transferred"}, "returns": {"_0": "`bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed"}}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}}, "version": 1}}, "ERC1155SupplyMock": {"contractName": "ERC1155SupplyMock", "sourceId": "mocks/ERC1155SupplyMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b50604051620020b2380380620020b283398101604081905262000034916200011f565b808062000041816200004a565b50505062000237565b80516200005f90600290602084019062000063565b5050565b8280546200007190620001fb565b90600052602060002090601f016020900481019282620000955760008555620000e0565b82601f10620000b057805160ff1916838001178555620000e0565b82800160010185558215620000e0579182015b82811115620000e0578251825591602001919060010190620000c3565b50620000ee929150620000f2565b5090565b5b80821115620000ee5760008155600101620000f3565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200013357600080fd5b82516001600160401b03808211156200014b57600080fd5b818501915085601f8301126200016057600080fd5b81518181111562000175576200017562000109565b604051601f8201601f19908116603f01168101908382118183101715620001a057620001a062000109565b816040528281528886848701011115620001b957600080fd5b600093505b82841015620001dd5784840186015181850187015292850192620001be565b82841115620001ef5760008684830101525b98975050505050505050565b600181811c908216806200021057607f821691505b6020821081036200023157634e487b7160e01b600052602260045260246000fd5b50919050565b611e6b80620002476000396000f3fe608060405234801561001057600080fd5b50600436106100f45760003560e01c80634f558e7911610097578063bd85b03911610066578063bd85b03914610218578063e985e9c514610238578063f242432a14610274578063f5298aca1461028757600080fd5b80634f558e79146101bd5780636b20c454146101df578063731133e9146101f2578063a22cb4651461020557600080fd5b80630e89341c116100d35780630e89341c146101575780631f7fdffa146101775780632eb2c2d61461018a5780634e1273f41461019d57600080fd5b8062fdd58e146100f957806301ffc9a71461011f57806302fe530514610142575b600080fd5b61010c61010736600461135c565b61029a565b6040519081526020015b60405180910390f35b61013261012d36600461139c565b610331565b6040519015158152602001610116565b610155610150366004611461565b610383565b005b61016a6101653660046114b2565b61038f565b6040516101169190611518565b6101556101853660046115e0565b610423565b610155610198366004611679565b610435565b6101b06101ab366004611723565b6104cc565b6040516101169190611829565b6101326101cb3660046114b2565b600090815260036020526040902054151590565b6101556101ed36600461183c565b6105f6565b6101556102003660046118b0565b610606565b610155610213366004611905565b610612565b61010c6102263660046114b2565b60009081526003602052604090205490565b610132610246366004611941565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b610155610282366004611974565b610621565b6101556102953660046119d9565b6106a8565b60006001600160a01b03831661030b5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061036257506001600160e01b031982166303a24d0760e21b145b8061037d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b61038c816106b3565b50565b60606002805461039e90611a0c565b80601f01602080910402602001604051908101604052809291908181526020018280546103ca90611a0c565b80156104175780601f106103ec57610100808354040283529160200191610417565b820191906000526020600020905b8154815290600101906020018083116103fa57829003601f168201915b50505050509050919050565b61042f848484846106c6565b50505050565b6001600160a01b03851633148061045157506104518533610246565b6104b85760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610302565b6104c58585858585610820565b5050505050565b606081518351146105315760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610302565b6000835167ffffffffffffffff81111561054d5761054d6113c0565b604051908082528060200260200182016040528015610576578160200160208202803683370190505b50905060005b84518110156105ee576105c185828151811061059a5761059a611a46565b60200260200101518583815181106105b4576105b4611a46565b602002602001015161029a565b8282815181106105d3576105d3611a46565b60209081029190910101526105e781611a72565b905061057c565b509392505050565b6106018383836109ca565b505050565b61042f84848484610b58565b61061d338383610c2e565b5050565b6001600160a01b03851633148061063d575061063d8533610246565b61069b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610302565b6104c58585858585610d0e565b610601838383610e2b565b805161061d9060029060208401906112a7565b6001600160a01b0384166106ec5760405162461bcd60e51b815260040161030290611a8b565b815183511461070d5760405162461bcd60e51b815260040161030290611acc565b3361071d81600087878787610f2c565b60005b84518110156107b85783818151811061073b5761073b611a46565b602002602001015160008087848151811061075857610758611a46565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546107a09190611b14565b909155508190506107b081611a72565b915050610720565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610809929190611b2c565b60405180910390a46104c581600087878787610f3a565b81518351146108415760405162461bcd60e51b815260040161030290611acc565b6001600160a01b0384166108675760405162461bcd60e51b815260040161030290611b5a565b33610876818787878787610f2c565b60005b845181101561095c57600085828151811061089657610896611a46565b6020026020010151905060008583815181106108b4576108b4611a46565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156109045760405162461bcd60e51b815260040161030290611b9f565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610941908490611b14565b925050819055505050508061095590611a72565b9050610879565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516109ac929190611b2c565b60405180910390a46109c2818787878787610f3a565b505050505050565b6001600160a01b0383166109f05760405162461bcd60e51b815260040161030290611be9565b8051825114610a115760405162461bcd60e51b815260040161030290611acc565b6000339050610a3481856000868660405180602001604052806000815250610f2c565b60005b8351811015610af9576000848281518110610a5457610a54611a46565b602002602001015190506000848381518110610a7257610a72611a46565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015610ac25760405162461bcd60e51b815260040161030290611c2c565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580610af181611a72565b915050610a37565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051610b4a929190611b2c565b60405180910390a450505050565b6001600160a01b038416610b7e5760405162461bcd60e51b815260040161030290611a8b565b33610b9e81600087610b8f88611095565b610b9888611095565b87610f2c565b6000848152602081815260408083206001600160a01b038916845290915281208054859290610bce908490611b14565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46104c5816000878787876110e0565b816001600160a01b0316836001600160a01b031603610ca15760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610302565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416610d345760405162461bcd60e51b815260040161030290611b5a565b33610d44818787610b8f88611095565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015610d855760405162461bcd60e51b815260040161030290611b9f565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290610dc2908490611b14565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610e228288888888886110e0565b50505050505050565b6001600160a01b038316610e515760405162461bcd60e51b815260040161030290611be9565b33610e8081856000610e6287611095565b610e6b87611095565b60405180602001604052806000815250610f2c565b6000838152602081815260408083206001600160a01b038816845290915290205482811015610ec15760405162461bcd60e51b815260040161030290611c2c565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6109c286868686868661119b565b6001600160a01b0384163b156109c25760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190610f7e9089908990889088908890600401611c70565b6020604051808303816000875af1925050508015610fb9575060408051601f3d908101601f19168201909252610fb691810190611cce565b60015b61106557610fc5611ceb565b806308c379a003610ffe5750610fd9611d07565b80610fe45750611000565b8060405162461bcd60e51b81526004016103029190611518565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610302565b6001600160e01b0319811663bc197c8160e01b14610e225760405162461bcd60e51b815260040161030290611d91565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106110cf576110cf611a46565b602090810291909101015292915050565b6001600160a01b0384163b156109c25760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906111249089908990889088908890600401611dd9565b6020604051808303816000875af192505050801561115f575060408051601f3d908101601f1916820190925261115c91810190611cce565b60015b61116b57610fc5611ceb565b6001600160e01b0319811663f23a6e6160e01b14610e225760405162461bcd60e51b815260040161030290611d91565b6001600160a01b0385166112225760005b8351811015611220578281815181106111c7576111c7611a46565b6020026020010151600360008684815181106111e5576111e5611a46565b60200260200101518152602001908152602001600020600082825461120a9190611b14565b90915550611219905081611a72565b90506111ac565b505b6001600160a01b0384166109c25760005b8351811015610e225782818151811061124e5761124e611a46565b60200260200101516003600086848151811061126c5761126c611a46565b6020026020010151815260200190815260200160002060008282546112919190611e1e565b909155506112a0905081611a72565b9050611233565b8280546112b390611a0c565b90600052602060002090601f0160209004810192826112d5576000855561131b565b82601f106112ee57805160ff191683800117855561131b565b8280016001018555821561131b579182015b8281111561131b578251825591602001919060010190611300565b5061132792915061132b565b5090565b5b80821115611327576000815560010161132c565b80356001600160a01b038116811461135757600080fd5b919050565b6000806040838503121561136f57600080fd5b61137883611340565b946020939093013593505050565b6001600160e01b03198116811461038c57600080fd5b6000602082840312156113ae57600080fd5b81356113b981611386565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156113fc576113fc6113c0565b6040525050565b600067ffffffffffffffff83111561141d5761141d6113c0565b604051611434601f8501601f1916602001826113d6565b80915083815284848401111561144957600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561147357600080fd5b813567ffffffffffffffff81111561148a57600080fd5b8201601f8101841361149b57600080fd5b6114aa84823560208401611403565b949350505050565b6000602082840312156114c457600080fd5b5035919050565b6000815180845260005b818110156114f1576020818501810151868301820152016114d5565b81811115611503576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006113b960208301846114cb565b600067ffffffffffffffff821115611545576115456113c0565b5060051b60200190565b600082601f83011261156057600080fd5b8135602061156d8261152b565b60405161157a82826113d6565b83815260059390931b850182019282810191508684111561159a57600080fd5b8286015b848110156115b5578035835291830191830161159e565b509695505050505050565b600082601f8301126115d157600080fd5b6113b983833560208501611403565b600080600080608085870312156115f657600080fd5b6115ff85611340565b9350602085013567ffffffffffffffff8082111561161c57600080fd5b6116288883890161154f565b9450604087013591508082111561163e57600080fd5b61164a8883890161154f565b9350606087013591508082111561166057600080fd5b5061166d878288016115c0565b91505092959194509250565b600080600080600060a0868803121561169157600080fd5b61169a86611340565b94506116a860208701611340565b9350604086013567ffffffffffffffff808211156116c557600080fd5b6116d189838a0161154f565b945060608801359150808211156116e757600080fd5b6116f389838a0161154f565b9350608088013591508082111561170957600080fd5b50611716888289016115c0565b9150509295509295909350565b6000806040838503121561173657600080fd5b823567ffffffffffffffff8082111561174e57600080fd5b818501915085601f83011261176257600080fd5b8135602061176f8261152b565b60405161177c82826113d6565b83815260059390931b850182019282810191508984111561179c57600080fd5b948201945b838610156117c1576117b286611340565b825294820194908201906117a1565b965050860135925050808211156117d757600080fd5b506117e48582860161154f565b9150509250929050565b600081518084526020808501945080840160005b8381101561181e57815187529582019590820190600101611802565b509495945050505050565b6020815260006113b960208301846117ee565b60008060006060848603121561185157600080fd5b61185a84611340565b9250602084013567ffffffffffffffff8082111561187757600080fd5b6118838783880161154f565b9350604086013591508082111561189957600080fd5b506118a68682870161154f565b9150509250925092565b600080600080608085870312156118c657600080fd5b6118cf85611340565b93506020850135925060408501359150606085013567ffffffffffffffff8111156118f957600080fd5b61166d878288016115c0565b6000806040838503121561191857600080fd5b61192183611340565b91506020830135801515811461193657600080fd5b809150509250929050565b6000806040838503121561195457600080fd5b61195d83611340565b915061196b60208401611340565b90509250929050565b600080600080600060a0868803121561198c57600080fd5b61199586611340565b94506119a360208701611340565b93506040860135925060608601359150608086013567ffffffffffffffff8111156119cd57600080fd5b611716888289016115c0565b6000806000606084860312156119ee57600080fd5b6119f784611340565b95602085013595506040909401359392505050565b600181811c90821680611a2057607f821691505b602082108103611a4057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611a8457611a84611a5c565b5060010190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60008219821115611b2757611b27611a5c565b500190565b604081526000611b3f60408301856117ee565b8281036020840152611b5181856117ee565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090611c9c908301866117ee565b8281036060840152611cae81866117ee565b90508281036080840152611cc281856114cb565b98975050505050505050565b600060208284031215611ce057600080fd5b81516113b981611386565b600060033d1115611d045760046000803e5060005160e01c5b90565b600060443d1015611d155790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611d4557505050505090565b8285019150815181811115611d5d5750505050505090565b843d8701016020828501011115611d775750505050505090565b611d86602082860101876113d6565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090611e13908301846114cb565b979650505050505050565b600082821015611e3057611e30611a5c565b50039056fea2646970667358221220daf05056ed879395c5df4e9f3ccd6f366f6122d9d61331713af221661e5369d964736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100f45760003560e01c80634f558e7911610097578063bd85b03911610066578063bd85b03914610218578063e985e9c514610238578063f242432a14610274578063f5298aca1461028757600080fd5b80634f558e79146101bd5780636b20c454146101df578063731133e9146101f2578063a22cb4651461020557600080fd5b80630e89341c116100d35780630e89341c146101575780631f7fdffa146101775780632eb2c2d61461018a5780634e1273f41461019d57600080fd5b8062fdd58e146100f957806301ffc9a71461011f57806302fe530514610142575b600080fd5b61010c61010736600461135c565b61029a565b6040519081526020015b60405180910390f35b61013261012d36600461139c565b610331565b6040519015158152602001610116565b610155610150366004611461565b610383565b005b61016a6101653660046114b2565b61038f565b6040516101169190611518565b6101556101853660046115e0565b610423565b610155610198366004611679565b610435565b6101b06101ab366004611723565b6104cc565b6040516101169190611829565b6101326101cb3660046114b2565b600090815260036020526040902054151590565b6101556101ed36600461183c565b6105f6565b6101556102003660046118b0565b610606565b610155610213366004611905565b610612565b61010c6102263660046114b2565b60009081526003602052604090205490565b610132610246366004611941565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b610155610282366004611974565b610621565b6101556102953660046119d9565b6106a8565b60006001600160a01b03831661030b5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061036257506001600160e01b031982166303a24d0760e21b145b8061037d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b61038c816106b3565b50565b60606002805461039e90611a0c565b80601f01602080910402602001604051908101604052809291908181526020018280546103ca90611a0c565b80156104175780601f106103ec57610100808354040283529160200191610417565b820191906000526020600020905b8154815290600101906020018083116103fa57829003601f168201915b50505050509050919050565b61042f848484846106c6565b50505050565b6001600160a01b03851633148061045157506104518533610246565b6104b85760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610302565b6104c58585858585610820565b5050505050565b606081518351146105315760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610302565b6000835167ffffffffffffffff81111561054d5761054d6113c0565b604051908082528060200260200182016040528015610576578160200160208202803683370190505b50905060005b84518110156105ee576105c185828151811061059a5761059a611a46565b60200260200101518583815181106105b4576105b4611a46565b602002602001015161029a565b8282815181106105d3576105d3611a46565b60209081029190910101526105e781611a72565b905061057c565b509392505050565b6106018383836109ca565b505050565b61042f84848484610b58565b61061d338383610c2e565b5050565b6001600160a01b03851633148061063d575061063d8533610246565b61069b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610302565b6104c58585858585610d0e565b610601838383610e2b565b805161061d9060029060208401906112a7565b6001600160a01b0384166106ec5760405162461bcd60e51b815260040161030290611a8b565b815183511461070d5760405162461bcd60e51b815260040161030290611acc565b3361071d81600087878787610f2c565b60005b84518110156107b85783818151811061073b5761073b611a46565b602002602001015160008087848151811061075857610758611a46565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546107a09190611b14565b909155508190506107b081611a72565b915050610720565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610809929190611b2c565b60405180910390a46104c581600087878787610f3a565b81518351146108415760405162461bcd60e51b815260040161030290611acc565b6001600160a01b0384166108675760405162461bcd60e51b815260040161030290611b5a565b33610876818787878787610f2c565b60005b845181101561095c57600085828151811061089657610896611a46565b6020026020010151905060008583815181106108b4576108b4611a46565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156109045760405162461bcd60e51b815260040161030290611b9f565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610941908490611b14565b925050819055505050508061095590611a72565b9050610879565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516109ac929190611b2c565b60405180910390a46109c2818787878787610f3a565b505050505050565b6001600160a01b0383166109f05760405162461bcd60e51b815260040161030290611be9565b8051825114610a115760405162461bcd60e51b815260040161030290611acc565b6000339050610a3481856000868660405180602001604052806000815250610f2c565b60005b8351811015610af9576000848281518110610a5457610a54611a46565b602002602001015190506000848381518110610a7257610a72611a46565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015610ac25760405162461bcd60e51b815260040161030290611c2c565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580610af181611a72565b915050610a37565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051610b4a929190611b2c565b60405180910390a450505050565b6001600160a01b038416610b7e5760405162461bcd60e51b815260040161030290611a8b565b33610b9e81600087610b8f88611095565b610b9888611095565b87610f2c565b6000848152602081815260408083206001600160a01b038916845290915281208054859290610bce908490611b14565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46104c5816000878787876110e0565b816001600160a01b0316836001600160a01b031603610ca15760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610302565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416610d345760405162461bcd60e51b815260040161030290611b5a565b33610d44818787610b8f88611095565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015610d855760405162461bcd60e51b815260040161030290611b9f565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290610dc2908490611b14565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610e228288888888886110e0565b50505050505050565b6001600160a01b038316610e515760405162461bcd60e51b815260040161030290611be9565b33610e8081856000610e6287611095565b610e6b87611095565b60405180602001604052806000815250610f2c565b6000838152602081815260408083206001600160a01b038816845290915290205482811015610ec15760405162461bcd60e51b815260040161030290611c2c565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6109c286868686868661119b565b6001600160a01b0384163b156109c25760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190610f7e9089908990889088908890600401611c70565b6020604051808303816000875af1925050508015610fb9575060408051601f3d908101601f19168201909252610fb691810190611cce565b60015b61106557610fc5611ceb565b806308c379a003610ffe5750610fd9611d07565b80610fe45750611000565b8060405162461bcd60e51b81526004016103029190611518565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610302565b6001600160e01b0319811663bc197c8160e01b14610e225760405162461bcd60e51b815260040161030290611d91565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106110cf576110cf611a46565b602090810291909101015292915050565b6001600160a01b0384163b156109c25760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906111249089908990889088908890600401611dd9565b6020604051808303816000875af192505050801561115f575060408051601f3d908101601f1916820190925261115c91810190611cce565b60015b61116b57610fc5611ceb565b6001600160e01b0319811663f23a6e6160e01b14610e225760405162461bcd60e51b815260040161030290611d91565b6001600160a01b0385166112225760005b8351811015611220578281815181106111c7576111c7611a46565b6020026020010151600360008684815181106111e5576111e5611a46565b60200260200101518152602001908152602001600020600082825461120a9190611b14565b90915550611219905081611a72565b90506111ac565b505b6001600160a01b0384166109c25760005b8351811015610e225782818151811061124e5761124e611a46565b60200260200101516003600086848151811061126c5761126c611a46565b6020026020010151815260200190815260200160002060008282546112919190611e1e565b909155506112a0905081611a72565b9050611233565b8280546112b390611a0c565b90600052602060002090601f0160209004810192826112d5576000855561131b565b82601f106112ee57805160ff191683800117855561131b565b8280016001018555821561131b579182015b8281111561131b578251825591602001919060010190611300565b5061132792915061132b565b5090565b5b80821115611327576000815560010161132c565b80356001600160a01b038116811461135757600080fd5b919050565b6000806040838503121561136f57600080fd5b61137883611340565b946020939093013593505050565b6001600160e01b03198116811461038c57600080fd5b6000602082840312156113ae57600080fd5b81356113b981611386565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156113fc576113fc6113c0565b6040525050565b600067ffffffffffffffff83111561141d5761141d6113c0565b604051611434601f8501601f1916602001826113d6565b80915083815284848401111561144957600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561147357600080fd5b813567ffffffffffffffff81111561148a57600080fd5b8201601f8101841361149b57600080fd5b6114aa84823560208401611403565b949350505050565b6000602082840312156114c457600080fd5b5035919050565b6000815180845260005b818110156114f1576020818501810151868301820152016114d5565b81811115611503576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006113b960208301846114cb565b600067ffffffffffffffff821115611545576115456113c0565b5060051b60200190565b600082601f83011261156057600080fd5b8135602061156d8261152b565b60405161157a82826113d6565b83815260059390931b850182019282810191508684111561159a57600080fd5b8286015b848110156115b5578035835291830191830161159e565b509695505050505050565b600082601f8301126115d157600080fd5b6113b983833560208501611403565b600080600080608085870312156115f657600080fd5b6115ff85611340565b9350602085013567ffffffffffffffff8082111561161c57600080fd5b6116288883890161154f565b9450604087013591508082111561163e57600080fd5b61164a8883890161154f565b9350606087013591508082111561166057600080fd5b5061166d878288016115c0565b91505092959194509250565b600080600080600060a0868803121561169157600080fd5b61169a86611340565b94506116a860208701611340565b9350604086013567ffffffffffffffff808211156116c557600080fd5b6116d189838a0161154f565b945060608801359150808211156116e757600080fd5b6116f389838a0161154f565b9350608088013591508082111561170957600080fd5b50611716888289016115c0565b9150509295509295909350565b6000806040838503121561173657600080fd5b823567ffffffffffffffff8082111561174e57600080fd5b818501915085601f83011261176257600080fd5b8135602061176f8261152b565b60405161177c82826113d6565b83815260059390931b850182019282810191508984111561179c57600080fd5b948201945b838610156117c1576117b286611340565b825294820194908201906117a1565b965050860135925050808211156117d757600080fd5b506117e48582860161154f565b9150509250929050565b600081518084526020808501945080840160005b8381101561181e57815187529582019590820190600101611802565b509495945050505050565b6020815260006113b960208301846117ee565b60008060006060848603121561185157600080fd5b61185a84611340565b9250602084013567ffffffffffffffff8082111561187757600080fd5b6118838783880161154f565b9350604086013591508082111561189957600080fd5b506118a68682870161154f565b9150509250925092565b600080600080608085870312156118c657600080fd5b6118cf85611340565b93506020850135925060408501359150606085013567ffffffffffffffff8111156118f957600080fd5b61166d878288016115c0565b6000806040838503121561191857600080fd5b61192183611340565b91506020830135801515811461193657600080fd5b809150509250929050565b6000806040838503121561195457600080fd5b61195d83611340565b915061196b60208401611340565b90509250929050565b600080600080600060a0868803121561198c57600080fd5b61199586611340565b94506119a360208701611340565b93506040860135925060608601359150608086013567ffffffffffffffff8111156119cd57600080fd5b611716888289016115c0565b6000806000606084860312156119ee57600080fd5b6119f784611340565b95602085013595506040909401359392505050565b600181811c90821680611a2057607f821691505b602082108103611a4057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611a8457611a84611a5c565b5060010190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60008219821115611b2757611b27611a5c565b500190565b604081526000611b3f60408301856117ee565b8281036020840152611b5181856117ee565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090611c9c908301866117ee565b8281036060840152611cae81866117ee565b90508281036080840152611cc281856114cb565b98975050505050505050565b600060208284031215611ce057600080fd5b81516113b981611386565b600060033d1115611d045760046000803e5060005160e01c5b90565b600060443d1015611d155790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611d4557505050505090565b8285019150815181811115611d5d5750505050505090565b843d8701016020828501011115611d775750505050505090565b611d86602082860101876113d6565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090611e13908301846114cb565b979650505050505050565b600082821015611e3057611e30611a5c565b50039056fea2646970667358221220daf05056ed879395c5df4e9f3ccd6f366f6122d9d61331713af221661e5369d964736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "uri", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnBatch", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}, {"type": "function", "name": "exists", "stateMutability": "view", "inputs": [{"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "mintBatch", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "setURI", "stateMutability": "nonpayable", "inputs": [{"name": "newuri", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [{"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "exists(uint256)": {"details": "Indicates whether any token exist with a given id, or not."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "totalSupply(uint256)": {"details": "Total amount of tokens in with a given id."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "ERC1271WalletMock": {"contractName": "ERC1271WalletMock", "sourceId": "mocks/ERC1271WalletMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506040516108cc3803806108cc83398101604081905261002f91610167565b61003833610047565b61004181610097565b50610197565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b031633146100f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b03811661015b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016100ed565b61016481610047565b50565b60006020828403121561017957600080fd5b81516001600160a01b038116811461019057600080fd5b9392505050565b610726806101a66000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80631626ba7e14610051578063715018a6146100825780638da5cb5b1461008c578063f2fde38b146100a7575b600080fd5b61006461005f3660046105f6565b6100ba565b6040516001600160e01b031990911681526020015b60405180910390f35b61008a6100f6565b005b6000546040516001600160a01b039091168152602001610079565b61008a6100b53660046106b1565b610161565b600080546001600160a01b03166100d1848461022c565b6001600160a01b0316146100e65760006100ef565b630b135d3f60e11b5b9392505050565b6000546001600160a01b031633146101555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61015f6000610250565b565b6000546001600160a01b031633146101bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161014c565b6001600160a01b0381166102205760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161014c565b61022981610250565b50565b600080600061023b85856102a0565b915091506102488161030e565b509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008082516041036102d65760208301516040840151606085015160001a6102ca878285856104c4565b94509450505050610307565b82516040036102ff57602083015160408401516102f48683836105b1565b935093505050610307565b506000905060025b9250929050565b6000816004811115610322576103226106da565b0361032a5750565b600181600481111561033e5761033e6106da565b0361038b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161014c565b600281600481111561039f5761039f6106da565b036103ec5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161014c565b6003816004811115610400576104006106da565b036104585760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161014c565b600481600481111561046c5761046c6106da565b036102295760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161014c565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156104fb57506000905060036105a8565b8460ff16601b1415801561051357508460ff16601c14155b1561052457506000905060046105a8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610578573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166105a1576000600192509250506105a8565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016105d2878288856104c4565b935093505050935093915050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561060957600080fd5b82359150602083013567ffffffffffffffff8082111561062857600080fd5b818501915085601f83011261063c57600080fd5b81358181111561064e5761064e6105e0565b604051601f8201601f19908116603f01168101908382118183101715610676576106766105e0565b8160405282815288602084870101111561068f57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000602082840312156106c357600080fd5b81356001600160a01b03811681146100ef57600080fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220ea32098d7ab76e3bade084b535b8391f67395d0b299ab56e5213cb18faf5a48864736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80631626ba7e14610051578063715018a6146100825780638da5cb5b1461008c578063f2fde38b146100a7575b600080fd5b61006461005f3660046105f6565b6100ba565b6040516001600160e01b031990911681526020015b60405180910390f35b61008a6100f6565b005b6000546040516001600160a01b039091168152602001610079565b61008a6100b53660046106b1565b610161565b600080546001600160a01b03166100d1848461022c565b6001600160a01b0316146100e65760006100ef565b630b135d3f60e11b5b9392505050565b6000546001600160a01b031633146101555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61015f6000610250565b565b6000546001600160a01b031633146101bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161014c565b6001600160a01b0381166102205760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161014c565b61022981610250565b50565b600080600061023b85856102a0565b915091506102488161030e565b509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008082516041036102d65760208301516040840151606085015160001a6102ca878285856104c4565b94509450505050610307565b82516040036102ff57602083015160408401516102f48683836105b1565b935093505050610307565b506000905060025b9250929050565b6000816004811115610322576103226106da565b0361032a5750565b600181600481111561033e5761033e6106da565b0361038b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161014c565b600281600481111561039f5761039f6106da565b036103ec5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161014c565b6003816004811115610400576104006106da565b036104585760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161014c565b600481600481111561046c5761046c6106da565b036102295760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161014c565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156104fb57506000905060036105a8565b8460ff16601b1415801561051357508460ff16601c14155b1561052457506000905060046105a8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610578573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166105a1576000600192509250506105a8565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016105d2878288856104c4565b935093505050935093915050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561060957600080fd5b82359150602083013567ffffffffffffffff8082111561062857600080fd5b818501915085601f83011261063c57600080fd5b81358181111561064e5761064e6105e0565b604051601f8201601f19908116603f01168101908382118183101715610676576106766105e0565b8160405282815288602084870101111561068f57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000602082840312156106c357600080fd5b81356001600160a01b03811681146100ef57600080fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220ea32098d7ab76e3bade084b535b8391f67395d0b299ab56e5213cb18faf5a48864736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "originalOwner", "type": "address", "internalType": "address"}]}, {"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "isValidSignature", "stateMutability": "view", "inputs": [{"name": "hash", "type": "bytes32", "internalType": "bytes32"}, {"name": "signature", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "magicValue", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"isValidSignature(bytes32,bytes)": {"details": "Should return whether the signature provided is valid for the provided data", "params": {"hash": "Hash of the data to be signed", "signature": "Signature byte array associated with _data"}}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}}, "version": 1}}, "ERC165InterfacesSupported": {"contractName": "ERC165InterfacesSupported", "sourceId": "mocks/ERC165/ERC165InterfacesSupported.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5060405161036a38038061036a83398101604081905261002f9161015a565b61003f6301ffc9a760e01b61008c565b60005b8151811015610085576100738282815181106100605761006061021e565b602002602001015161008c60201b60201c565b8061007d81610234565b915050610042565b505061025b565b6001600160e01b031980821690036101025760405162461bcd60e51b815260206004820152602f60248201527f455243313635496e7465726661636573537570706f727465643a20696e76616c60448201526e1a59081a5b9d195c999858d9481a59608a1b606482015260840160405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b634e487b7160e01b600052604160045260246000fd5b80516001600160e01b03198116811461015557600080fd5b919050565b6000602080838503121561016d57600080fd5b82516001600160401b038082111561018457600080fd5b818501915085601f83011261019857600080fd5b8151818111156101aa576101aa610127565b8060051b604051601f19603f830116810181811085821117156101cf576101cf610127565b6040529182528482019250838101850191888311156101ed57600080fd5b938501935b82851015610212576102038561013d565b845293850193928501926101f2565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b60006001820161025457634e487b7160e01b600052601160045260246000fd5b5060010190565b6101008061026a6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c146076575b600080fd5b60616042366004609b565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b60836301ffc9a760e01b81565b6040516001600160e01b03199091168152602001606d565b60006020828403121560ac57600080fd5b81356001600160e01b03198116811460c357600080fd5b939250505056fea2646970667358221220b038b2326b5b72f5c1e8bd6616f5c8c4c9926a03855e2cf8ff1eb7265de9838d64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c146076575b600080fd5b60616042366004609b565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b60836301ffc9a760e01b81565b6040516001600160e01b03199091168152602001606d565b60006020828403121560ac57600080fd5b81356001600160e01b03198116811460c357600080fd5b939250505056fea2646970667358221220b038b2326b5b72f5c1e8bd6616f5c8c4c9926a03855e2cf8ff1eb7265de9838d64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "interfaceIds", "type": "bytes4[]", "internalType": "bytes4[]"}]}, {"type": "function", "name": "INTERFACE_ID_ERC165", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"supportsInterface(bytes4)": {"details": "Implement supportsInterface(bytes4) using a lookup table."}}, "version": 1}}, "SupportsInterfaceWithLookupMock": {"contractName": "SupportsInterfaceWithLookupMock", "sourceId": "mocks/ERC165/ERC165InterfacesSupported.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506100216301ffc9a760e01b610026565b6100c1565b6001600160e01b0319808216900361009c5760405162461bcd60e51b815260206004820152602f60248201527f455243313635496e7465726661636573537570706f727465643a20696e76616c60448201526e1a59081a5b9d195c999858d9481a59608a1b606482015260840160405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610100806100d06000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c146076575b600080fd5b60616042366004609b565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b60836301ffc9a760e01b81565b6040516001600160e01b03199091168152602001606d565b60006020828403121560ac57600080fd5b81356001600160e01b03198116811460c357600080fd5b939250505056fea2646970667358221220e661492d33119f72ed696283aa4bf7727559d90003dd7decb3e728df4b1de45464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c146076575b600080fd5b60616042366004609b565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b60836301ffc9a760e01b81565b6040516001600160e01b03199091168152602001606d565b60006020828403121560ac57600080fd5b81356001600160e01b03198116811460c357600080fd5b939250505056fea2646970667358221220e661492d33119f72ed696283aa4bf7727559d90003dd7decb3e728df4b1de45464736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": []}, {"type": "function", "name": "INTERFACE_ID_ERC165", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "notice": "https://eips.ethereum.org/EIPS/eip-214#specification From the specification: > Any attempts to make state-changing operations inside an execution instance with STATIC set to true will instead throw an exception. > These operations include [...], LOG0, LOG1, LOG2, [...] therefore, because this contract is staticcall'd we need to not emit events (which is how solidity-coverage works) solidity-coverage ignores the /mocks folder, so we duplicate its implementation here to avoid instrumenting it", "version": 1}, "devdoc": {"kind": "dev", "methods": {"constructor": {"details": "A contract implementing SupportsInterfaceWithLookup implement ERC165 itself."}, "supportsInterface(bytes4)": {"details": "Implement supportsInterface(bytes4) using a lookup table."}}, "stateVariables": {"_supportedInterfaces": {"details": "A mapping of interface id to whether or not it's supported."}}, "version": 1}}, "ERC165MissingData": {"contractName": "ERC165MissingData", "sourceId": "mocks/ERC165/ERC165MissingData.sol", "deploymentBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b5060a28061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806301ffc9a714602d575b600080fd5b603b6038366004603d565b50565b005b600060208284031215604e57600080fd5b81356001600160e01b031981168114606557600080fd5b939250505056fea2646970667358221220e64ab964d302e6854faddc41f385feb7deab60da66a57a025db77973316123ac64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c806301ffc9a714602d575b600080fd5b603b6038366004603d565b50565b005b600060208284031215604e57600080fd5b81356001600160e01b031981168114606557600080fd5b939250505056fea2646970667358221220e64ab964d302e6854faddc41f385feb7deab60da66a57a025db77973316123ac64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC165NotSupported": {"contractName": "ERC165NotSupported", "sourceId": "mocks/ERC165/ERC165NotSupported.sol", "deploymentBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea2646970667358221220ba164e6f53c0c34a58b5c42a889d0cd567154a2f73bce75293a3124702011f4564736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600080fdfea2646970667358221220ba164e6f53c0c34a58b5c42a889d0cd567154a2f73bce75293a3124702011f4564736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC165CheckerMock": {"contractName": "ERC165CheckerMock", "sourceId": "mocks/ERC165CheckerMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506105fb806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80634b9dd9041461005157806377e6b4cc14610079578063c398a92514610099578063d9057007146100ac575b600080fd5b61006461005f3660046103bf565b6100bf565b60405190151581526020015b60405180910390f35b61008c6100873660046103bf565b6100dd565b6040516100709190610497565b6100646100a73660046104dd565b6100f2565b6100646100ba3660046104f8565b610106565b60006100d46001600160a01b0384168361011b565b90505b92915050565b60606100d46001600160a01b0384168361018b565b60006100d7826001600160a01b0316610241565b60006100d46001600160a01b03841683610274565b600061012683610241565b610132575060006100d7565b60005b825181101561018157610161848483815181106101545761015461052b565b602002602001015161028c565b61016f5760009150506100d7565b8061017981610541565b915050610135565b5060019392505050565b60606000825167ffffffffffffffff8111156101a9576101a9610391565b6040519080825280602002602001820160405280156101d2578160200160208202803683370190505b5090506101de84610241565b156100d45760005b835181101561023957610205858583815181106101545761015461052b565b8282815181106102175761021761052b565b911515602092830291909101909101528061023181610541565b9150506101e6565b509392505050565b6000610254826301ffc9a760e01b61028c565b80156100d7575061026d826001600160e01b031961028c565b1592915050565b600061027f83610241565b80156100d457506100d483835b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166301ffc9a760e01b179052905160009190829081906001600160a01b03871690617530906102f3908690610568565b6000604051808303818686fa925050503d806000811461032f576040519150601f19603f3d011682016040523d82523d6000602084013e610334565b606091505b509150915060208151101561034f57600093505050506100d7565b81801561036b57508080602001905181019061036b91906105a3565b9695505050505050565b80356001600160a01b038116811461038c57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b80356001600160e01b03198116811461038c57600080fd5b600080604083850312156103d257600080fd5b6103db83610375565b915060208084013567ffffffffffffffff808211156103f957600080fd5b818601915086601f83011261040d57600080fd5b81358181111561041f5761041f610391565b8060051b604051601f19603f8301168101818110858211171561044457610444610391565b60405291825284820192508381018501918983111561046257600080fd5b938501935b8285101561048757610478856103a7565b84529385019392850192610467565b8096505050505050509250929050565b6020808252825182820181905260009190848201906040850190845b818110156104d15783511515835292840192918401916001016104b3565b50909695505050505050565b6000602082840312156104ef57600080fd5b6100d482610375565b6000806040838503121561050b57600080fd5b61051483610375565b9150610522602084016103a7565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b60006001820161056157634e487b7160e01b600052601160045260246000fd5b5060010190565b6000825160005b81811015610589576020818601810151858301520161056f565b81811115610598576000828501525b509190910192915050565b6000602082840312156105b557600080fd5b815180151581146100d457600080fdfea2646970667358221220b303a421562e9acf6877cb941aa961b1607c6d417212d80d0e7d05b73a12d69c64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80634b9dd9041461005157806377e6b4cc14610079578063c398a92514610099578063d9057007146100ac575b600080fd5b61006461005f3660046103bf565b6100bf565b60405190151581526020015b60405180910390f35b61008c6100873660046103bf565b6100dd565b6040516100709190610497565b6100646100a73660046104dd565b6100f2565b6100646100ba3660046104f8565b610106565b60006100d46001600160a01b0384168361011b565b90505b92915050565b60606100d46001600160a01b0384168361018b565b60006100d7826001600160a01b0316610241565b60006100d46001600160a01b03841683610274565b600061012683610241565b610132575060006100d7565b60005b825181101561018157610161848483815181106101545761015461052b565b602002602001015161028c565b61016f5760009150506100d7565b8061017981610541565b915050610135565b5060019392505050565b60606000825167ffffffffffffffff8111156101a9576101a9610391565b6040519080825280602002602001820160405280156101d2578160200160208202803683370190505b5090506101de84610241565b156100d45760005b835181101561023957610205858583815181106101545761015461052b565b8282815181106102175761021761052b565b911515602092830291909101909101528061023181610541565b9150506101e6565b509392505050565b6000610254826301ffc9a760e01b61028c565b80156100d7575061026d826001600160e01b031961028c565b1592915050565b600061027f83610241565b80156100d457506100d483835b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166301ffc9a760e01b179052905160009190829081906001600160a01b03871690617530906102f3908690610568565b6000604051808303818686fa925050503d806000811461032f576040519150601f19603f3d011682016040523d82523d6000602084013e610334565b606091505b509150915060208151101561034f57600093505050506100d7565b81801561036b57508080602001905181019061036b91906105a3565b9695505050505050565b80356001600160a01b038116811461038c57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b80356001600160e01b03198116811461038c57600080fd5b600080604083850312156103d257600080fd5b6103db83610375565b915060208084013567ffffffffffffffff808211156103f957600080fd5b818601915086601f83011261040d57600080fd5b81358181111561041f5761041f610391565b8060051b604051601f19603f8301168101818110858211171561044457610444610391565b60405291825284820192508381018501918983111561046257600080fd5b938501935b8285101561048757610478856103a7565b84529385019392850192610467565b8096505050505050509250929050565b6020808252825182820181905260009190848201906040850190845b818110156104d15783511515835292840192918401916001016104b3565b50909695505050505050565b6000602082840312156104ef57600080fd5b6100d482610375565b6000806040838503121561050b57600080fd5b61051483610375565b9150610522602084016103a7565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b60006001820161056157634e487b7160e01b600052601160045260246000fd5b5060010190565b6000825160005b81811015610589576020818601810151858301520161056f565b81811115610598576000828501525b509190910192915050565b6000602082840312156105b557600080fd5b815180151581146100d457600080fdfea2646970667358221220b303a421562e9acf6877cb941aa961b1607c6d417212d80d0e7d05b73a12d69c64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "getSupportedInterfaces", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "interfaceIds", "type": "bytes4[]", "internalType": "bytes4[]"}], "outputs": [{"name": "", "type": "bool[]", "internalType": "bool[]"}]}, {"type": "function", "name": "supportsAllInterfaces", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "interfaceIds", "type": "bytes4[]", "internalType": "bytes4[]"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "supportsERC165", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC165Mock": {"contractName": "ERC165Mock", "sourceId": "mocks/ERC165Mock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5060c78061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806301ffc9a714602d575b600080fd5b604e60383660046062565b6001600160e01b0319166301ffc9a760e01b1490565b604051901515815260200160405180910390f35b600060208284031215607357600080fd5b81356001600160e01b031981168114608a57600080fd5b939250505056fea26469706673582212207512bd65d3d3edfd4977a3f655fd1b656e88a8cccc412d1a49e24250ebadfc1d64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c806301ffc9a714602d575b600080fd5b604e60383660046062565b6001600160e01b0319166301ffc9a760e01b1490565b604051901515815260200160405180910390f35b600060208284031215607357600080fd5b81356001600160e01b031981168114608a57600080fd5b939250505056fea26469706673582212207512bd65d3d3edfd4977a3f655fd1b656e88a8cccc412d1a49e24250ebadfc1d64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}}, "version": 1}}, "ERC165StorageMock": {"contractName": "ERC165StorageMock", "sourceId": "mocks/ERC165StorageMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506101ad806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806301ffc9a71461003b578063214cdb8014610062575b600080fd5b61004e610049366004610146565b610077565b604051901515815260200160405180910390f35b610075610070366004610146565b6100b7565b005b60006301ffc9a760e01b6001600160e01b0319831614806100b157506001600160e01b0319821660009081526020819052604090205460ff165b92915050565b6100c0816100c3565b50565b6001600160e01b031980821690036101215760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015260640160405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b60006020828403121561015857600080fd5b81356001600160e01b03198116811461017057600080fd5b939250505056fea2646970667358221220501741e03a87f04ffd74a3a4b672e9bde7f2dfd4b8e2c0138a61c13765cf53a764736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c806301ffc9a71461003b578063214cdb8014610062575b600080fd5b61004e610049366004610146565b610077565b604051901515815260200160405180910390f35b610075610070366004610146565b6100b7565b005b60006301ffc9a760e01b6001600160e01b0319831614806100b157506001600160e01b0319821660009081526020819052604090205460ff165b92915050565b6100c0816100c3565b50565b6001600160e01b031980821690036101215760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015260640160405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b60006020828403121561015857600080fd5b81356001600160e01b03198116811461017057600080fd5b939250505056fea2646970667358221220501741e03a87f04ffd74a3a4b672e9bde7f2dfd4b8e2c0138a61c13765cf53a764736f6c634300080d0033"}, "abi": [{"type": "function", "name": "registerInterface", "stateMutability": "nonpayable", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}}, "version": 1}}, "ERC1820ImplementerMock": {"contractName": "ERC1820ImplementerMock", "sourceId": "mocks/ERC1820ImplementerMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610169806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063249cb3fa1461003b5780635536e45d14610060575b600080fd5b61004e6100493660046100f7565b61009f565b60405190815260200160405180910390f35b61009d61006e3660046100f7565b6000918252602082815260408084206001600160a01b039390931684529190529020805460ff19166001179055565b005b6000828152602081815260408083206001600160a01b038516845290915281205460ff166100ce5760006100f0565b7fa2ef4600d742022d532d4747cb3547474667d6f13804902513b2ec01c848f4b45b9392505050565b6000806040838503121561010a57600080fd5b8235915060208301356001600160a01b038116811461012857600080fd5b80915050925092905056fea2646970667358221220840e332fd3aa8d19b0c56abfa5c677dad039592658c50527de306d912c50bce164736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063249cb3fa1461003b5780635536e45d14610060575b600080fd5b61004e6100493660046100f7565b61009f565b60405190815260200160405180910390f35b61009d61006e3660046100f7565b6000918252602082815260408084206001600160a01b039390931684529190529020805460ff19166001179055565b005b6000828152602081815260408083206001600160a01b038516845290915281205460ff166100ce5760006100f0565b7fa2ef4600d742022d532d4747cb3547474667d6f13804902513b2ec01c848f4b45b9392505050565b6000806040838503121561010a57600080fd5b8235915060208301356001600160a01b038116811461012857600080fd5b80915050925092905056fea2646970667358221220840e332fd3aa8d19b0c56abfa5c677dad039592658c50527de306d912c50bce164736f6c634300080d0033"}, "abi": [{"type": "function", "name": "canImplementInterfaceForAddress", "stateMutability": "view", "inputs": [{"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "registerInterfaceForAddress", "stateMutability": "nonpayable", "inputs": [{"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"canImplementInterfaceForAddress(bytes32,address)": {"details": "See {IERC1820Implementer-canImplementInterfaceForAddress}."}}, "version": 1}}, "ERC20BurnableMock": {"contractName": "ERC20BurnableMock", "sourceId": "mocks/ERC20BurnableMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162000f0d38038062000f0d8339810160408190526200003491620002dd565b8351849084906200004d9060039060208501906200016a565b508051620000639060049060208401906200016a565b5050506200007882826200008260201b60201c565b50505050620003d3565b6001600160a01b038216620000dd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620000f1919062000370565b90915550506001600160a01b038216600090815260208190526040812080548392906200012090849062000370565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001789062000397565b90600052602060002090601f0160209004810192826200019c5760008555620001e7565b82601f10620001b757805160ff1916838001178555620001e7565b82800160010185558215620001e7579182015b82811115620001e7578251825591602001919060010190620001ca565b50620001f5929150620001f9565b5090565b5b80821115620001f55760008155600101620001fa565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200023857600080fd5b81516001600160401b038082111562000255576200025562000210565b604051601f8301601f19908116603f0116810190828211818310171562000280576200028062000210565b816040528381526020925086838588010111156200029d57600080fd5b600091505b83821015620002c15785820183015181830184015290820190620002a2565b83821115620002d35760008385830101525b9695505050505050565b60008060008060808587031215620002f457600080fd5b84516001600160401b03808211156200030c57600080fd5b6200031a8883890162000226565b955060208701519150808211156200033157600080fd5b50620003408782880162000226565b604087015190945090506001600160a01b03811681146200036057600080fd5b6060959095015193969295505050565b600082198211156200039257634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620003ac57607f821691505b602082108103620003cd57634e487b7160e01b600052602260045260246000fd5b50919050565b610b2a80620003e36000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b41146101ad578063a457c2d7146101b5578063a9059cbb146101c8578063dd62ed3e146101db57600080fd5b806342966c681461015c57806370a082311461017157806379cc67901461019a57600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a5780633950935114610149575b600080fd5b6100dc610214565b6040516100e99190610930565b60405180910390f35b6101056101003660046109a1565b6102a6565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b6101056101353660046109cb565b6102bc565b604051601281526020016100e9565b6101056101573660046109a1565b61036b565b61016f61016a366004610a07565b6103a7565b005b61011961017f366004610a20565b6001600160a01b031660009081526020819052604090205490565b61016f6101a83660046109a1565b6103b4565b6100dc61043a565b6101056101c33660046109a1565b610449565b6101056101d63660046109a1565b6104e2565b6101196101e9366004610a42565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461022390610a75565b80601f016020809104026020016040519081016040528092919081815260200182805461024f90610a75565b801561029c5780601f106102715761010080835404028352916020019161029c565b820191906000526020600020905b81548152906001019060200180831161027f57829003601f168201915b5050505050905090565b60006102b33384846104ef565b50600192915050565b60006102c9848484610613565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103535760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61036085338584036104ef565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102b39185906103a2908690610ac5565b6104ef565b6103b133826107e2565b50565b60006103c083336101e9565b90508181101561041e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b606482015260840161034a565b61042b83338484036104ef565b61043583836107e2565b505050565b60606004805461022390610a75565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104cb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161034a565b6104d833858584036104ef565b5060019392505050565b60006102b3338484610613565b6001600160a01b0383166105515760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161034a565b6001600160a01b0382166105b25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161034a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166106775760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161034a565b6001600160a01b0382166106d95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161034a565b6001600160a01b038316600090815260208190526040902054818110156107515760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161034a565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610788908490610ac5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516107d491815260200190565b60405180910390a350505050565b6001600160a01b0382166108425760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161034a565b6001600160a01b038216600090815260208190526040902054818110156108b65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161034a565b6001600160a01b03831660009081526020819052604081208383039055600280548492906108e5908490610add565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600060208083528351808285015260005b8181101561095d57858101830151858201604001528201610941565b8181111561096f576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461099c57600080fd5b919050565b600080604083850312156109b457600080fd5b6109bd83610985565b946020939093013593505050565b6000806000606084860312156109e057600080fd5b6109e984610985565b92506109f760208501610985565b9150604084013590509250925092565b600060208284031215610a1957600080fd5b5035919050565b600060208284031215610a3257600080fd5b610a3b82610985565b9392505050565b60008060408385031215610a5557600080fd5b610a5e83610985565b9150610a6c60208401610985565b90509250929050565b600181811c90821680610a8957607f821691505b602082108103610aa957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610ad857610ad8610aaf565b500190565b600082821015610aef57610aef610aaf565b50039056fea26469706673582212200667917b47770647dacf678ccdeaf386590e5deb05c4327f6338dd117dc53cee64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b41146101ad578063a457c2d7146101b5578063a9059cbb146101c8578063dd62ed3e146101db57600080fd5b806342966c681461015c57806370a082311461017157806379cc67901461019a57600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a5780633950935114610149575b600080fd5b6100dc610214565b6040516100e99190610930565b60405180910390f35b6101056101003660046109a1565b6102a6565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b6101056101353660046109cb565b6102bc565b604051601281526020016100e9565b6101056101573660046109a1565b61036b565b61016f61016a366004610a07565b6103a7565b005b61011961017f366004610a20565b6001600160a01b031660009081526020819052604090205490565b61016f6101a83660046109a1565b6103b4565b6100dc61043a565b6101056101c33660046109a1565b610449565b6101056101d63660046109a1565b6104e2565b6101196101e9366004610a42565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461022390610a75565b80601f016020809104026020016040519081016040528092919081815260200182805461024f90610a75565b801561029c5780601f106102715761010080835404028352916020019161029c565b820191906000526020600020905b81548152906001019060200180831161027f57829003601f168201915b5050505050905090565b60006102b33384846104ef565b50600192915050565b60006102c9848484610613565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103535760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61036085338584036104ef565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102b39185906103a2908690610ac5565b6104ef565b6103b133826107e2565b50565b60006103c083336101e9565b90508181101561041e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b606482015260840161034a565b61042b83338484036104ef565b61043583836107e2565b505050565b60606004805461022390610a75565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104cb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161034a565b6104d833858584036104ef565b5060019392505050565b60006102b3338484610613565b6001600160a01b0383166105515760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161034a565b6001600160a01b0382166105b25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161034a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166106775760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161034a565b6001600160a01b0382166106d95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161034a565b6001600160a01b038316600090815260208190526040902054818110156107515760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161034a565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610788908490610ac5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516107d491815260200190565b60405180910390a350505050565b6001600160a01b0382166108425760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161034a565b6001600160a01b038216600090815260208190526040902054818110156108b65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161034a565b6001600160a01b03831660009081526020819052604081208383039055600280548492906108e5908490610add565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600060208083528351808285015260005b8181101561095d57858101830151858201604001528201610941565b8181111561096f576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461099c57600080fd5b919050565b600080604083850312156109b457600080fd5b6109bd83610985565b946020939093013593505050565b6000806000606084860312156109e057600080fd5b6109e984610985565b92506109f760208501610985565b9150604084013590509250925092565b600060208284031215610a1957600080fd5b5035919050565b600060208284031215610a3257600080fd5b610a3b82610985565b9392505050565b60008060408385031215610a5557600080fd5b610a5e83610985565b9150610a6c60208401610985565b90509250929050565b600181811c90821680610a8957607f821691505b602082108103610aa957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610ad857610ad8610aaf565b500190565b600082821015610aef57610aef610aaf565b50039056fea26469706673582212200667917b47770647dacf678ccdeaf386590e5deb05c4327f6338dd117dc53cee64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "initialAccount", "type": "address", "internalType": "address"}, {"name": "initialBalance", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnFrom", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "burn(uint256)": {"details": "Destroys `amount` tokens from the caller. See {ERC20-_burn}."}, "burnFrom(address,uint256)": {"details": "Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20CappedMock": {"contractName": "ERC20CappedMock", "sourceId": "mocks/ERC20CappedMock.sol", "deploymentBytecode": {"bytecode": "0x60a06040523480156200001157600080fd5b5060405162000da838038062000da883398101604081905262000034916200023d565b80838381600390805190602001906200004f929190620000ca565b50805162000065906004906020840190620000ca565b50505060008111620000bd5760405162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a2063617020697320300000000000000000000000604482015260640160405180910390fd5b60805250620002ec915050565b828054620000d890620002b0565b90600052602060002090601f016020900481019282620000fc576000855562000147565b82601f106200011757805160ff191683800117855562000147565b8280016001018555821562000147579182015b82811115620001475782518255916020019190600101906200012a565b506200015592915062000159565b5090565b5b808211156200015557600081556001016200015a565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200019857600080fd5b81516001600160401b0380821115620001b557620001b562000170565b604051601f8301601f19908116603f01168101908282118183101715620001e057620001e062000170565b81604052838152602092508683858801011115620001fd57600080fd5b600091505b8382101562000221578582018301518183018401529082019062000202565b83821115620002335760008385830101525b9695505050505050565b6000806000606084860312156200025357600080fd5b83516001600160401b03808211156200026b57600080fd5b620002798783880162000186565b945060208601519150808211156200029057600080fd5b506200029f8682870162000186565b925050604084015190509250925092565b600181811c90821680620002c557607f821691505b602082108103620002e657634e487b7160e01b600052602260045260246000fd5b50919050565b608051610a996200030f6000396000818161014b01526107720152610a996000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063395093511161008c57806395d89b411161006657806395d89b41146101c0578063a457c2d7146101c8578063a9059cbb146101db578063dd62ed3e146101ee57600080fd5b8063395093511461016f57806340c10f191461018257806370a082311461019757600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a578063355274ea14610149575b600080fd5b6100dc610227565b6040516100e991906108d7565b60405180910390f35b610105610100366004610948565b6102b9565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b610105610135366004610972565b6102cf565b604051601281526020016100e9565b7f0000000000000000000000000000000000000000000000000000000000000000610119565b61010561017d366004610948565b61037e565b610195610190366004610948565b6103ba565b005b6101196101a53660046109ae565b6001600160a01b031660009081526020819052604090205490565b6100dc6103c8565b6101056101d6366004610948565b6103d7565b6101056101e9366004610948565b610470565b6101196101fc3660046109d0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461023690610a03565b80601f016020809104026020016040519081016040528092919081815260200182805461026290610a03565b80156102af5780601f10610284576101008083540402835291602001916102af565b820191906000526020600020905b81548152906001019060200180831161029257829003601f168201915b5050505050905090565b60006102c633848461047d565b50600192915050565b60006102dc8484846105a1565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103665760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610373853385840361047d565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102c69185906103b5908690610a3d565b61047d565b6103c48282610770565b5050565b60606004805461023690610a03565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104595760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161035d565b610466338585840361047d565b5060019392505050565b60006102c63384846105a1565b6001600160a01b0383166104df5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161035d565b6001600160a01b0382166105405760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161035d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166106055760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161035d565b6001600160a01b0382166106675760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161035d565b6001600160a01b038316600090815260208190526040902054818110156106df5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161035d565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610716908490610a3d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161076291815260200190565b60405180910390a350505050565b7f00000000000000000000000000000000000000000000000000000000000000008161079b60025490565b6107a59190610a3d565b11156107f35760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015260640161035d565b6103c482826001600160a01b03821661084e5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161035d565b80600260008282546108609190610a3d565b90915550506001600160a01b0382166000908152602081905260408120805483929061088d908490610a3d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600060208083528351808285015260005b81811015610904578581018301518582016040015282016108e8565b81811115610916576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461094357600080fd5b919050565b6000806040838503121561095b57600080fd5b6109648361092c565b946020939093013593505050565b60008060006060848603121561098757600080fd5b6109908461092c565b925061099e6020850161092c565b9150604084013590509250925092565b6000602082840312156109c057600080fd5b6109c98261092c565b9392505050565b600080604083850312156109e357600080fd5b6109ec8361092c565b91506109fa6020840161092c565b90509250929050565b600181811c90821680610a1757607f821691505b602082108103610a3757634e487b7160e01b600052602260045260246000fd5b50919050565b60008219821115610a5e57634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212204087cc95bf3d6bc88fc6c4814a1781a061ed87b53915bd3383f57dd50dd89ac864736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063395093511161008c57806395d89b411161006657806395d89b41146101c0578063a457c2d7146101c8578063a9059cbb146101db578063dd62ed3e146101ee57600080fd5b8063395093511461016f57806340c10f191461018257806370a082311461019757600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a578063355274ea14610149575b600080fd5b6100dc610227565b6040516100e991906108d7565b60405180910390f35b610105610100366004610948565b6102b9565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b610105610135366004610972565b6102cf565b604051601281526020016100e9565b7f0000000000000000000000000000000000000000000000000000000000000000610119565b61010561017d366004610948565b61037e565b610195610190366004610948565b6103ba565b005b6101196101a53660046109ae565b6001600160a01b031660009081526020819052604090205490565b6100dc6103c8565b6101056101d6366004610948565b6103d7565b6101056101e9366004610948565b610470565b6101196101fc3660046109d0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461023690610a03565b80601f016020809104026020016040519081016040528092919081815260200182805461026290610a03565b80156102af5780601f10610284576101008083540402835291602001916102af565b820191906000526020600020905b81548152906001019060200180831161029257829003601f168201915b5050505050905090565b60006102c633848461047d565b50600192915050565b60006102dc8484846105a1565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103665760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610373853385840361047d565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102c69185906103b5908690610a3d565b61047d565b6103c48282610770565b5050565b60606004805461023690610a03565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104595760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161035d565b610466338585840361047d565b5060019392505050565b60006102c63384846105a1565b6001600160a01b0383166104df5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161035d565b6001600160a01b0382166105405760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161035d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166106055760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161035d565b6001600160a01b0382166106675760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161035d565b6001600160a01b038316600090815260208190526040902054818110156106df5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161035d565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610716908490610a3d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161076291815260200190565b60405180910390a350505050565b7f00000000000000000000000000000000000000000000000000000000000000008161079b60025490565b6107a59190610a3d565b11156107f35760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015260640161035d565b6103c482826001600160a01b03821661084e5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161035d565b80600260008282546108609190610a3d565b90915550506001600160a01b0382166000908152602081905260408120805483929061088d908490610a3d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600060208083528351808285015260005b81811015610904578581018301518582016040015282016108e8565b81811115610916576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461094357600080fd5b919050565b6000806040838503121561095b57600080fd5b6109648361092c565b946020939093013593505050565b60008060006060848603121561098757600080fd5b6109908461092c565b925061099e6020850161092c565b9150604084013590509250925092565b6000602082840312156109c057600080fd5b6109c98261092c565b9392505050565b600080604083850312156109e357600080fd5b6109ec8361092c565b91506109fa6020840161092c565b90509250929050565b600181811c90821680610a1757607f821691505b602082108103610a3757634e487b7160e01b600052602260045260246000fd5b50919050565b60008219821115610a5e57634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212204087cc95bf3d6bc88fc6c4814a1781a061ed87b53915bd3383f57dd50dd89ac864736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "cap", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "cap", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "cap()": {"details": "Returns the cap on the token's total supply."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20DecimalsMock": {"contractName": "ERC20DecimalsMock", "sourceId": "mocks/ERC20DecimalsMock.sol", "deploymentBytecode": {"bytecode": "0x60a06040523480156200001157600080fd5b5060405162000baa38038062000baa8339810160408190526200003491620001e8565b8251839083906200004d90600390602085019062000075565b5080516200006390600490602084019062000075565b50505060ff1660805250620002a99050565b82805462000083906200026d565b90600052602060002090601f016020900481019282620000a75760008555620000f2565b82601f10620000c257805160ff1916838001178555620000f2565b82800160010185558215620000f2579182015b82811115620000f2578251825591602001919060010190620000d5565b506200010092915062000104565b5090565b5b8082111562000100576000815560010162000105565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200014357600080fd5b81516001600160401b03808211156200016057620001606200011b565b604051601f8301601f19908116603f011681019082821181831017156200018b576200018b6200011b565b81604052838152602092508683858801011115620001a857600080fd5b600091505b83821015620001cc5785820183015181830184015290820190620001ad565b83821115620001de5760008385830101525b9695505050505050565b600080600060608486031215620001fe57600080fd5b83516001600160401b03808211156200021657600080fd5b620002248783880162000131565b945060208601519150808211156200023b57600080fd5b506200024a8682870162000131565b925050604084015160ff811681146200026257600080fd5b809150509250925092565b600181811c908216806200028257607f821691505b602082108103620002a357634e487b7160e01b600052602260045260246000fd5b50919050565b6080516108e5620002c5600039600061011b01526108e56000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461014557806370a082311461015857806395d89b4114610181578063a457c2d714610189578063a9059cbb1461019c578063dd62ed3e146101af57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101e8565b6040516100c39190610723565b60405180910390f35b6100df6100da366004610794565b61027a565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f3660046107be565b610290565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016100c3565b6100df610153366004610794565b61033f565b6100f36101663660046107fa565b6001600160a01b031660009081526020819052604090205490565b6100b661037b565b6100df610197366004610794565b61038a565b6100df6101aa366004610794565b610423565b6100f36101bd36600461081c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6060600380546101f79061084f565b80601f01602080910402602001604051908101604052809291908181526020018280546102239061084f565b80156102705780601f1061024557610100808354040283529160200191610270565b820191906000526020600020905b81548152906001019060200180831161025357829003601f168201915b5050505050905090565b6000610287338484610430565b50600192915050565b600061029d848484610554565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103275760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103348533858403610430565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610287918590610376908690610889565b610430565b6060600480546101f79061084f565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561040c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161031e565b6104193385858403610430565b5060019392505050565b6000610287338484610554565b6001600160a01b0383166104925760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161031e565b6001600160a01b0382166104f35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161031e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166105b85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161031e565b6001600160a01b03821661061a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161031e565b6001600160a01b038316600090815260208190526040902054818110156106925760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161031e565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906106c9908490610889565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161071591815260200190565b60405180910390a350505050565b600060208083528351808285015260005b8181101561075057858101830151858201604001528201610734565b81811115610762576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461078f57600080fd5b919050565b600080604083850312156107a757600080fd5b6107b083610778565b946020939093013593505050565b6000806000606084860312156107d357600080fd5b6107dc84610778565b92506107ea60208501610778565b9150604084013590509250925092565b60006020828403121561080c57600080fd5b61081582610778565b9392505050565b6000806040838503121561082f57600080fd5b61083883610778565b915061084660208401610778565b90509250929050565b600181811c9082168061086357607f821691505b60208210810361088357634e487b7160e01b600052602260045260246000fd5b50919050565b600082198211156108aa57634e487b7160e01b600052601160045260246000fd5b50019056fea264697066735822122088a590bb1a4d6762557fb7703c582425c7a310d2bc9fc09138a8bbaaf37ed41164736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461014557806370a082311461015857806395d89b4114610181578063a457c2d714610189578063a9059cbb1461019c578063dd62ed3e146101af57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101e8565b6040516100c39190610723565b60405180910390f35b6100df6100da366004610794565b61027a565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f3660046107be565b610290565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016100c3565b6100df610153366004610794565b61033f565b6100f36101663660046107fa565b6001600160a01b031660009081526020819052604090205490565b6100b661037b565b6100df610197366004610794565b61038a565b6100df6101aa366004610794565b610423565b6100f36101bd36600461081c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6060600380546101f79061084f565b80601f01602080910402602001604051908101604052809291908181526020018280546102239061084f565b80156102705780601f1061024557610100808354040283529160200191610270565b820191906000526020600020905b81548152906001019060200180831161025357829003601f168201915b5050505050905090565b6000610287338484610430565b50600192915050565b600061029d848484610554565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103275760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103348533858403610430565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610287918590610376908690610889565b610430565b6060600480546101f79061084f565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561040c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161031e565b6104193385858403610430565b5060019392505050565b6000610287338484610554565b6001600160a01b0383166104925760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161031e565b6001600160a01b0382166104f35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161031e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166105b85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161031e565b6001600160a01b03821661061a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161031e565b6001600160a01b038316600090815260208190526040902054818110156106925760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161031e565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906106c9908490610889565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161071591815260200190565b60405180910390a350505050565b600060208083528351808285015260005b8181101561075057858101830151858201604001528201610734565b81811115610762576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461078f57600080fd5b919050565b600080604083850312156107a757600080fd5b6107b083610778565b946020939093013593505050565b6000806000606084860312156107d357600080fd5b6107dc84610778565b92506107ea60208501610778565b9150604084013590509250925092565b60006020828403121561080c57600080fd5b61081582610778565b9392505050565b6000806040838503121561082f57600080fd5b61083883610778565b915061084660208401610778565b90509250929050565b600181811c9082168061086357607f821691505b60208210810361088357634e487b7160e01b600052602260045260246000fd5b50919050565b600082198211156108aa57634e487b7160e01b600052601160045260246000fd5b50019056fea264697066735822122088a590bb1a4d6762557fb7703c582425c7a310d2bc9fc09138a8bbaaf37ed41164736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name_", "type": "string", "internalType": "string"}, {"name": "symbol_", "type": "string", "internalType": "string"}, {"name": "decimals_", "type": "uint8", "internalType": "uint8"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20FlashMintMock": {"contractName": "ERC20FlashMintMock", "sourceId": "mocks/ERC20FlashMintMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b50604051620012f2380380620012f28339810160408190526200003491620002dd565b8351849084906200004d9060039060208501906200016a565b508051620000639060049060208401906200016a565b5050506200007882826200008260201b60201c565b50505050620003d3565b6001600160a01b038216620000dd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620000f1919062000370565b90915550506001600160a01b038216600090815260208190526040812080548392906200012090849062000370565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001789062000397565b90600052602060002090601f0160209004810192826200019c5760008555620001e7565b82601f10620001b757805160ff1916838001178555620001e7565b82800160010185558215620001e7579182015b82811115620001e7578251825591602001919060010190620001ca565b50620001f5929150620001f9565b5090565b5b80821115620001f55760008155600101620001fa565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200023857600080fd5b81516001600160401b038082111562000255576200025562000210565b604051601f8301601f19908116603f0116810190828211818310171562000280576200028062000210565b816040528381526020925086838588010111156200029d57600080fd5b600091505b83821015620002c15785820183015181830184015290820190620002a2565b83821115620002d35760008385830101525b9695505050505050565b60008060008060808587031215620002f457600080fd5b84516001600160401b03808211156200030c57600080fd5b6200031a8883890162000226565b955060208701519150808211156200033157600080fd5b50620003408782880162000226565b604087015190945090506001600160a01b03811681146200036057600080fd5b6060959095015193969295505050565b600082198211156200039257634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620003ac57607f821691505b602082108103620003cd57634e487b7160e01b600052602260045260246000fd5b50919050565b610f0f80620003e36000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063613255ab1161008c578063a457c2d711610066578063a457c2d7146101ce578063a9059cbb146101e1578063d9d98ce4146101f4578063dd62ed3e1461020757600080fd5b8063613255ab1461018a57806370a082311461019d57806395d89b41146101c657600080fd5b806323b872dd116100c857806323b872dd14610142578063313ce5671461015557806339509351146101645780635cffe9de1461017757600080fd5b806306fdde03146100ef578063095ea7b31461010d57806318160ddd14610130575b600080fd5b6100f7610240565b6040516101049190610c0f565b60405180910390f35b61012061011b366004610c7c565b6102d2565b6040519015158152602001610104565b6002545b604051908152602001610104565b610120610150366004610ca8565b6102e8565b60405160128152602001610104565b610120610172366004610c7c565b610397565b610120610185366004610ce9565b6103d3565b610134610198366004610d88565b6105b0565b6101346101ab366004610d88565b6001600160a01b031660009081526020819052604090205490565b6100f76105de565b6101206101dc366004610c7c565b6105ed565b6101206101ef366004610c7c565b610686565b610134610202366004610c7c565b610693565b610134610215366004610dac565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461024f90610de5565b80601f016020809104026020016040519081016040528092919081815260200182805461027b90610de5565b80156102c85780601f1061029d576101008083540402835291602001916102c8565b820191906000526020600020905b8154815290600101906020018083116102ab57829003601f168201915b5050505050905090565b60006102df3384846106f6565b50600192915050565b60006102f584848461081b565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561037f5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61038c85338584036106f6565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102df9185906103ce908690610e35565b6106f6565b6000806103e08686610693565b90506103ec87866109ea565b6040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b906104449033908b908b9088908c908c90600401610e4d565b6020604051808303816000875af1158015610463573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104879190610ea9565b146104e05760405162461bcd60e51b8152602060048201526024808201527f4552433230466c6173684d696e743a20696e76616c69642072657475726e2076604482015263616c756560e01b6064820152608401610376565b6001600160a01b038716600090815260016020908152604080832030845290915290205461050e8287610e35565b8110156105755760405162461bcd60e51b815260206004820152602f60248201527f4552433230466c6173684d696e743a20616c6c6f77616e636520646f6573206e60448201526e1bdd08185b1b1bddc81c99599d5b99608a1b6064820152608401610376565b61058f8830846105858a86610ec2565b6103ce9190610ec2565b6105a28861059d8489610e35565b610ac9565b506001979650505050505050565b60006001600160a01b03821630146105c95760006105d8565b6002546105d890600019610ec2565b92915050565b60606004805461024f90610de5565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561066f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610376565b61067c33858584036106f6565b5060019392505050565b60006102df33848461081b565b60006001600160a01b03831630146106ed5760405162461bcd60e51b815260206004820152601b60248201527f4552433230466c6173684d696e743a2077726f6e6720746f6b656e00000000006044820152606401610376565b50600092915050565b6001600160a01b0383166107585760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610376565b6001600160a01b0382166107b95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610376565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03831661087f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610376565b6001600160a01b0382166108e15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610376565b6001600160a01b038316600090815260208190526040902054818110156109595760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610376565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610990908490610e35565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516109dc91815260200190565b60405180910390a350505050565b6001600160a01b038216610a405760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610376565b8060026000828254610a529190610e35565b90915550506001600160a01b03821660009081526020819052604081208054839290610a7f908490610e35565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610b295760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610376565b6001600160a01b03821660009081526020819052604090205481811015610b9d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610376565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610bcc908490610ec2565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161080e565b600060208083528351808285015260005b81811015610c3c57858101830151858201604001528201610c20565b81811115610c4e576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b0381168114610c7957600080fd5b50565b60008060408385031215610c8f57600080fd5b8235610c9a81610c64565b946020939093013593505050565b600080600060608486031215610cbd57600080fd5b8335610cc881610c64565b92506020840135610cd881610c64565b929592945050506040919091013590565b600080600080600060808688031215610d0157600080fd5b8535610d0c81610c64565b94506020860135610d1c81610c64565b935060408601359250606086013567ffffffffffffffff80821115610d4057600080fd5b818801915088601f830112610d5457600080fd5b813581811115610d6357600080fd5b896020828501011115610d7557600080fd5b9699959850939650602001949392505050565b600060208284031215610d9a57600080fd5b8135610da581610c64565b9392505050565b60008060408385031215610dbf57600080fd5b8235610dca81610c64565b91506020830135610dda81610c64565b809150509250929050565b600181811c90821680610df957607f821691505b602082108103610e1957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610e4857610e48610e1f565b500190565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b600060208284031215610ebb57600080fd5b5051919050565b600082821015610ed457610ed4610e1f565b50039056fea26469706673582212202447df61f59cc3ba898d467f66f15ce8af9827da77a0132dd6854d0dd011fbdc64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063613255ab1161008c578063a457c2d711610066578063a457c2d7146101ce578063a9059cbb146101e1578063d9d98ce4146101f4578063dd62ed3e1461020757600080fd5b8063613255ab1461018a57806370a082311461019d57806395d89b41146101c657600080fd5b806323b872dd116100c857806323b872dd14610142578063313ce5671461015557806339509351146101645780635cffe9de1461017757600080fd5b806306fdde03146100ef578063095ea7b31461010d57806318160ddd14610130575b600080fd5b6100f7610240565b6040516101049190610c0f565b60405180910390f35b61012061011b366004610c7c565b6102d2565b6040519015158152602001610104565b6002545b604051908152602001610104565b610120610150366004610ca8565b6102e8565b60405160128152602001610104565b610120610172366004610c7c565b610397565b610120610185366004610ce9565b6103d3565b610134610198366004610d88565b6105b0565b6101346101ab366004610d88565b6001600160a01b031660009081526020819052604090205490565b6100f76105de565b6101206101dc366004610c7c565b6105ed565b6101206101ef366004610c7c565b610686565b610134610202366004610c7c565b610693565b610134610215366004610dac565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461024f90610de5565b80601f016020809104026020016040519081016040528092919081815260200182805461027b90610de5565b80156102c85780601f1061029d576101008083540402835291602001916102c8565b820191906000526020600020905b8154815290600101906020018083116102ab57829003601f168201915b5050505050905090565b60006102df3384846106f6565b50600192915050565b60006102f584848461081b565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561037f5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61038c85338584036106f6565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102df9185906103ce908690610e35565b6106f6565b6000806103e08686610693565b90506103ec87866109ea565b6040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b906104449033908b908b9088908c908c90600401610e4d565b6020604051808303816000875af1158015610463573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104879190610ea9565b146104e05760405162461bcd60e51b8152602060048201526024808201527f4552433230466c6173684d696e743a20696e76616c69642072657475726e2076604482015263616c756560e01b6064820152608401610376565b6001600160a01b038716600090815260016020908152604080832030845290915290205461050e8287610e35565b8110156105755760405162461bcd60e51b815260206004820152602f60248201527f4552433230466c6173684d696e743a20616c6c6f77616e636520646f6573206e60448201526e1bdd08185b1b1bddc81c99599d5b99608a1b6064820152608401610376565b61058f8830846105858a86610ec2565b6103ce9190610ec2565b6105a28861059d8489610e35565b610ac9565b506001979650505050505050565b60006001600160a01b03821630146105c95760006105d8565b6002546105d890600019610ec2565b92915050565b60606004805461024f90610de5565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561066f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610376565b61067c33858584036106f6565b5060019392505050565b60006102df33848461081b565b60006001600160a01b03831630146106ed5760405162461bcd60e51b815260206004820152601b60248201527f4552433230466c6173684d696e743a2077726f6e6720746f6b656e00000000006044820152606401610376565b50600092915050565b6001600160a01b0383166107585760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610376565b6001600160a01b0382166107b95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610376565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03831661087f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610376565b6001600160a01b0382166108e15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610376565b6001600160a01b038316600090815260208190526040902054818110156109595760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610376565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610990908490610e35565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516109dc91815260200190565b60405180910390a350505050565b6001600160a01b038216610a405760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610376565b8060026000828254610a529190610e35565b90915550506001600160a01b03821660009081526020819052604081208054839290610a7f908490610e35565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610b295760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610376565b6001600160a01b03821660009081526020819052604090205481811015610b9d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610376565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610bcc908490610ec2565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161080e565b600060208083528351808285015260005b81811015610c3c57858101830151858201604001528201610c20565b81811115610c4e576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b0381168114610c7957600080fd5b50565b60008060408385031215610c8f57600080fd5b8235610c9a81610c64565b946020939093013593505050565b600080600060608486031215610cbd57600080fd5b8335610cc881610c64565b92506020840135610cd881610c64565b929592945050506040919091013590565b600080600080600060808688031215610d0157600080fd5b8535610d0c81610c64565b94506020860135610d1c81610c64565b935060408601359250606086013567ffffffffffffffff80821115610d4057600080fd5b818801915088601f830112610d5457600080fd5b813581811115610d6357600080fd5b896020828501011115610d7557600080fd5b9699959850939650602001949392505050565b600060208284031215610d9a57600080fd5b8135610da581610c64565b9392505050565b60008060408385031215610dbf57600080fd5b8235610dca81610c64565b91506020830135610dda81610c64565b809150509250929050565b600181811c90821680610df957607f821691505b602082108103610e1957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610e4857610e48610e1f565b500190565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b600060208284031215610ebb57600080fd5b5051919050565b600082821015610ed457610ed4610e1f565b50039056fea26469706673582212202447df61f59cc3ba898d467f66f15ce8af9827da77a0132dd6854d0dd011fbdc64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "initialAccount", "type": "address", "internalType": "address"}, {"name": "initialBalance", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "flashFee", "stateMutability": "view", "inputs": [{"name": "token", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "flashLoan", "stateMutability": "nonpayable", "inputs": [{"name": "receiver", "type": "address", "internalType": "contract IERC3156FlashBorrower"}, {"name": "token", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "maxFlashLoan", "stateMutability": "view", "inputs": [{"name": "token", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "flashFee(address,uint256)": {"details": "Returns the fee applied when doing flash loans. By default this implementation has 0 fees. This function can be overloaded to make the flash loan mechanism deflationary.", "params": {"amount": "The amount of tokens to be loaned.", "token": "The token to be flash loaned."}, "returns": {"_0": "The fees applied to the corresponding flash loan."}}, "flashLoan(address,address,uint256,bytes)": {"details": "Performs a flash loan. New tokens are minted and sent to the `receiver`, who is required to implement the {IERC3156FlashBorrower} interface. By the end of the flash loan, the receiver is expected to own amount + fee tokens and have them approved back to the token contract itself so they can be burned.", "params": {"amount": "The amount of tokens to be loaned.", "data": "An arbitrary datafield that is passed to the receiver.", "receiver": "The receiver of the flash loan. Should implement the {IERC3156FlashBorrower.onFlashLoan} interface.", "token": "The token to be flash loaned. Only `address(this)` is supported."}, "returns": {"_0": "`true` is the flash loan was successful."}}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "maxFlashLoan(address)": {"details": "Returns the maximum amount of tokens available for loan.", "params": {"token": "The address of the token that is requested."}, "returns": {"_0": "The amont of token that can be loaned."}}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20Mock": {"contractName": "ERC20Mock", "sourceId": "mocks/ERC20Mock.sol", "deploymentBytecode": {"bytecode": "0x608060405260405162000fb138038062000fb18339810160408190526200002691620002cf565b8351849084906200003f9060039060208501906200015c565b508051620000559060049060208401906200015c565b5050506200006a82826200007460201b60201c565b50505050620003c5565b6001600160a01b038216620000cf5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620000e3919062000362565b90915550506001600160a01b038216600090815260208190526040812080548392906200011290849062000362565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b8280546200016a9062000389565b90600052602060002090601f0160209004810192826200018e5760008555620001d9565b82601f10620001a957805160ff1916838001178555620001d9565b82800160010185558215620001d9579182015b82811115620001d9578251825591602001919060010190620001bc565b50620001e7929150620001eb565b5090565b5b80821115620001e75760008155600101620001ec565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200022a57600080fd5b81516001600160401b038082111562000247576200024762000202565b604051601f8301601f19908116603f0116810190828211818310171562000272576200027262000202565b816040528381526020925086838588010111156200028f57600080fd5b600091505b83821015620002b3578582018301518183018401529082019062000294565b83821115620002c55760008385830101525b9695505050505050565b60008060008060808587031215620002e657600080fd5b84516001600160401b0380821115620002fe57600080fd5b6200030c8883890162000218565b955060208701519150808211156200032357600080fd5b50620003328782880162000218565b604087015190945090506001600160a01b03811681146200035257600080fd5b6060959095015193969295505050565b600082198211156200038457634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200039e57607f821691505b602082108103620003bf57634e487b7160e01b600052602260045260246000fd5b50919050565b610bdc80620003d56000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806340c10f19116100975780639dc29fac116100665780639dc29fac146101ee578063a457c2d714610201578063a9059cbb14610214578063dd62ed3e1461022757600080fd5b806340c10f191461019757806356189cb4146101aa57806370a08231146101bd57806395d89b41146101e657600080fd5b8063222f5be0116100d3578063222f5be01461014d57806323b872dd14610162578063313ce56714610175578063395093511461018457600080fd5b806306fdde03146100fa578063095ea7b31461011857806318160ddd1461013b575b600080fd5b610102610260565b60405161010f91906109fb565b60405180910390f35b61012b610126366004610a6c565b6102f2565b604051901515815260200161010f565b6002545b60405190815260200161010f565b61016061015b366004610a96565b610308565b005b61012b610170366004610a96565b610318565b6040516012815260200161010f565b61012b610192366004610a6c565b6103c7565b6101606101a5366004610a6c565b610403565b6101606101b8366004610a96565b610411565b61013f6101cb366004610ad2565b6001600160a01b031660009081526020819052604090205490565b61010261041c565b6101606101fc366004610a6c565b61042b565b61012b61020f366004610a6c565b610435565b61012b610222366004610a6c565b6104ce565b61013f610235366004610af4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461026f90610b27565b80601f016020809104026020016040519081016040528092919081815260200182805461029b90610b27565b80156102e85780601f106102bd576101008083540402835291602001916102e8565b820191906000526020600020905b8154815290600101906020018083116102cb57829003601f168201915b5050505050905090565b60006102ff3384846104db565b50600192915050565b6103138383836105ff565b505050565b60006103258484846105ff565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103af5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103bc85338584036104db565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102ff9185906103fe908690610b77565b6104db565b61040d82826107ce565b5050565b6103138383836104db565b60606004805461026f90610b27565b61040d82826108ad565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104b75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103a6565b6104c433858584036104db565b5060019392505050565b60006102ff3384846105ff565b6001600160a01b03831661053d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103a6565b6001600160a01b03821661059e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103a6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166106635760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103a6565b6001600160a01b0382166106c55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103a6565b6001600160a01b0383166000908152602081905260409020548181101561073d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103a6565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610774908490610b77565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516107c091815260200190565b60405180910390a350505050565b6001600160a01b0382166108245760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103a6565b80600260008282546108369190610b77565b90915550506001600160a01b03821660009081526020819052604081208054839290610863908490610b77565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03821661090d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103a6565b6001600160a01b038216600090815260208190526040902054818110156109815760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103a6565b6001600160a01b03831660009081526020819052604081208383039055600280548492906109b0908490610b8f565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600060208083528351808285015260005b81811015610a2857858101830151858201604001528201610a0c565b81811115610a3a576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610a6757600080fd5b919050565b60008060408385031215610a7f57600080fd5b610a8883610a50565b946020939093013593505050565b600080600060608486031215610aab57600080fd5b610ab484610a50565b9250610ac260208501610a50565b9150604084013590509250925092565b600060208284031215610ae457600080fd5b610aed82610a50565b9392505050565b60008060408385031215610b0757600080fd5b610b1083610a50565b9150610b1e60208401610a50565b90509250929050565b600181811c90821680610b3b57607f821691505b602082108103610b5b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610b8a57610b8a610b61565b500190565b600082821015610ba157610ba1610b61565b50039056fea2646970667358221220053e3500e5cbe6e2605fbf1f333201f845c5a1d551b37a62fc8d32b593a5832264736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806340c10f19116100975780639dc29fac116100665780639dc29fac146101ee578063a457c2d714610201578063a9059cbb14610214578063dd62ed3e1461022757600080fd5b806340c10f191461019757806356189cb4146101aa57806370a08231146101bd57806395d89b41146101e657600080fd5b8063222f5be0116100d3578063222f5be01461014d57806323b872dd14610162578063313ce56714610175578063395093511461018457600080fd5b806306fdde03146100fa578063095ea7b31461011857806318160ddd1461013b575b600080fd5b610102610260565b60405161010f91906109fb565b60405180910390f35b61012b610126366004610a6c565b6102f2565b604051901515815260200161010f565b6002545b60405190815260200161010f565b61016061015b366004610a96565b610308565b005b61012b610170366004610a96565b610318565b6040516012815260200161010f565b61012b610192366004610a6c565b6103c7565b6101606101a5366004610a6c565b610403565b6101606101b8366004610a96565b610411565b61013f6101cb366004610ad2565b6001600160a01b031660009081526020819052604090205490565b61010261041c565b6101606101fc366004610a6c565b61042b565b61012b61020f366004610a6c565b610435565b61012b610222366004610a6c565b6104ce565b61013f610235366004610af4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461026f90610b27565b80601f016020809104026020016040519081016040528092919081815260200182805461029b90610b27565b80156102e85780601f106102bd576101008083540402835291602001916102e8565b820191906000526020600020905b8154815290600101906020018083116102cb57829003601f168201915b5050505050905090565b60006102ff3384846104db565b50600192915050565b6103138383836105ff565b505050565b60006103258484846105ff565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103af5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103bc85338584036104db565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102ff9185906103fe908690610b77565b6104db565b61040d82826107ce565b5050565b6103138383836104db565b60606004805461026f90610b27565b61040d82826108ad565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104b75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103a6565b6104c433858584036104db565b5060019392505050565b60006102ff3384846105ff565b6001600160a01b03831661053d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103a6565b6001600160a01b03821661059e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103a6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166106635760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103a6565b6001600160a01b0382166106c55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103a6565b6001600160a01b0383166000908152602081905260409020548181101561073d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103a6565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610774908490610b77565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516107c091815260200190565b60405180910390a350505050565b6001600160a01b0382166108245760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103a6565b80600260008282546108369190610b77565b90915550506001600160a01b03821660009081526020819052604081208054839290610863908490610b77565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03821661090d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103a6565b6001600160a01b038216600090815260208190526040902054818110156109815760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103a6565b6001600160a01b03831660009081526020819052604081208383039055600280548492906109b0908490610b8f565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600060208083528351808285015260005b81811015610a2857858101830151858201604001528201610a0c565b81811115610a3a576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610a6757600080fd5b919050565b60008060408385031215610a7f57600080fd5b610a8883610a50565b946020939093013593505050565b600080600060608486031215610aab57600080fd5b610ab484610a50565b9250610ac260208501610a50565b9150604084013590509250925092565b600060208284031215610ae457600080fd5b610aed82610a50565b9392505050565b60008060408385031215610b0757600080fd5b610b1083610a50565b9150610b1e60208401610a50565b90509250929050565b600181811c90821680610b3b57607f821691505b602082108103610b5b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610b8a57610b8a610b61565b500190565b600082821015610ba157610ba1610b61565b50039056fea2646970667358221220053e3500e5cbe6e2605fbf1f333201f845c5a1d551b37a62fc8d32b593a5832264736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "payable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "initialAccount", "type": "address", "internalType": "address"}, {"name": "initialBalance", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "approveInternal", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferInternal", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20PausableMock": {"contractName": "ERC20PausableMock", "sourceId": "mocks/ERC20PausableMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b50604051620011ea380380620011ea833981016040819052620000349162000375565b8351849084906200004d90600390602085019062000202565b5080516200006390600490602084019062000202565b50506005805460ff19169055506200007c828262000086565b505050506200046b565b6001600160a01b038216620000e25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b620000f0600083836200017d565b806002600082825462000104919062000408565b90915550506001600160a01b038216600090815260208190526040812080548392906200013390849062000408565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b62000195838383620001fd60201b620004d21760201c565b60055460ff1615620001fd5760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401620000d9565b505050565b82805462000210906200042f565b90600052602060002090601f0160209004810192826200023457600085556200027f565b82601f106200024f57805160ff19168380011785556200027f565b828001600101855582156200027f579182015b828111156200027f57825182559160200191906001019062000262565b506200028d92915062000291565b5090565b5b808211156200028d576000815560010162000292565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002d057600080fd5b81516001600160401b0380821115620002ed57620002ed620002a8565b604051601f8301601f19908116603f01168101908282118183101715620003185762000318620002a8565b816040528381526020925086838588010111156200033557600080fd5b600091505b838210156200035957858201830151818301840152908201906200033a565b838211156200036b5760008385830101525b9695505050505050565b600080600080608085870312156200038c57600080fd5b84516001600160401b0380821115620003a457600080fd5b620003b288838901620002be565b95506020870151915080821115620003c957600080fd5b50620003d887828801620002be565b604087015190945090506001600160a01b0381168114620003f857600080fd5b6060959095015193969295505050565b600082198211156200042a57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200044457607f821691505b6020821081036200046557634e487b7160e01b600052602260045260246000fd5b50919050565b610d6f806200047b6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80635c975abb116100975780639dc29fac116100665780639dc29fac146101ee578063a457c2d714610201578063a9059cbb14610214578063dd62ed3e1461022757600080fd5b80635c975abb146101aa57806370a08231146101b55780638456cb59146101de57806395d89b41146101e657600080fd5b8063313ce567116100d3578063313ce5671461016b578063395093511461017a5780633f4ba83a1461018d57806340c10f191461019757600080fd5b806306fdde0314610105578063095ea7b31461012357806318160ddd1461014657806323b872dd14610158575b600080fd5b61010d610260565b60405161011a9190610b8e565b60405180910390f35b610136610131366004610bff565b6102f2565b604051901515815260200161011a565b6002545b60405190815260200161011a565b610136610166366004610c29565b610308565b6040516012815260200161011a565b610136610188366004610bff565b6103b7565b6101956103f3565b005b6101956101a5366004610bff565b6103fd565b60055460ff16610136565b61014a6101c3366004610c65565b6001600160a01b031660009081526020819052604090205490565b61019561040b565b61010d610413565b6101956101fc366004610bff565b610422565b61013661020f366004610bff565b61042c565b610136610222366004610bff565b6104c5565b61014a610235366004610c87565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461026f90610cba565b80601f016020809104026020016040519081016040528092919081815260200182805461029b90610cba565b80156102e85780601f106102bd576101008083540402835291602001916102e8565b820191906000526020600020905b8154815290600101906020018083116102cb57829003601f168201915b5050505050905090565b60006102ff3384846104d7565b50600192915050565b60006103158484846105fb565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561039f5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103ac85338584036104d7565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102ff9185906103ee908690610d0a565b6104d7565b6103fb6107d5565b565b6104078282610868565b5050565b6103fb610953565b60606004805461026f90610cba565b61040782826109ce565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104ae5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610396565b6104bb33858584036104d7565b5060019392505050565b60006102ff3384846105fb565b505050565b6001600160a01b0383166105395760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610396565b6001600160a01b03821661059a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610396565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661065f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610396565b6001600160a01b0382166106c15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610396565b6106cc838383610b28565b6001600160a01b038316600090815260208190526040902054818110156107445760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610396565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061077b908490610d0a565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516107c791815260200190565b60405180910390a350505050565b60055460ff1661081e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610396565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166108be5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610396565b6108ca60008383610b28565b80600260008282546108dc9190610d0a565b90915550506001600160a01b03821660009081526020819052604081208054839290610909908490610d0a565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60055460ff16156109995760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610396565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861084b3390565b6001600160a01b038216610a2e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610396565b610a3a82600083610b28565b6001600160a01b03821660009081526020819052604090205481811015610aae5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610396565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610add908490610d22565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60055460ff16156104d25760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610396565b600060208083528351808285015260005b81811015610bbb57858101830151858201604001528201610b9f565b81811115610bcd576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610bfa57600080fd5b919050565b60008060408385031215610c1257600080fd5b610c1b83610be3565b946020939093013593505050565b600080600060608486031215610c3e57600080fd5b610c4784610be3565b9250610c5560208501610be3565b9150604084013590509250925092565b600060208284031215610c7757600080fd5b610c8082610be3565b9392505050565b60008060408385031215610c9a57600080fd5b610ca383610be3565b9150610cb160208401610be3565b90509250929050565b600181811c90821680610cce57607f821691505b602082108103610cee57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610d1d57610d1d610cf4565b500190565b600082821015610d3457610d34610cf4565b50039056fea2646970667358221220afd6f6f63fdb85e78cec4942972edb4d4326c5edea23274992f2fd82780d22f164736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c80635c975abb116100975780639dc29fac116100665780639dc29fac146101ee578063a457c2d714610201578063a9059cbb14610214578063dd62ed3e1461022757600080fd5b80635c975abb146101aa57806370a08231146101b55780638456cb59146101de57806395d89b41146101e657600080fd5b8063313ce567116100d3578063313ce5671461016b578063395093511461017a5780633f4ba83a1461018d57806340c10f191461019757600080fd5b806306fdde0314610105578063095ea7b31461012357806318160ddd1461014657806323b872dd14610158575b600080fd5b61010d610260565b60405161011a9190610b8e565b60405180910390f35b610136610131366004610bff565b6102f2565b604051901515815260200161011a565b6002545b60405190815260200161011a565b610136610166366004610c29565b610308565b6040516012815260200161011a565b610136610188366004610bff565b6103b7565b6101956103f3565b005b6101956101a5366004610bff565b6103fd565b60055460ff16610136565b61014a6101c3366004610c65565b6001600160a01b031660009081526020819052604090205490565b61019561040b565b61010d610413565b6101956101fc366004610bff565b610422565b61013661020f366004610bff565b61042c565b610136610222366004610bff565b6104c5565b61014a610235366004610c87565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461026f90610cba565b80601f016020809104026020016040519081016040528092919081815260200182805461029b90610cba565b80156102e85780601f106102bd576101008083540402835291602001916102e8565b820191906000526020600020905b8154815290600101906020018083116102cb57829003601f168201915b5050505050905090565b60006102ff3384846104d7565b50600192915050565b60006103158484846105fb565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561039f5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103ac85338584036104d7565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102ff9185906103ee908690610d0a565b6104d7565b6103fb6107d5565b565b6104078282610868565b5050565b6103fb610953565b60606004805461026f90610cba565b61040782826109ce565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104ae5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610396565b6104bb33858584036104d7565b5060019392505050565b60006102ff3384846105fb565b505050565b6001600160a01b0383166105395760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610396565b6001600160a01b03821661059a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610396565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661065f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610396565b6001600160a01b0382166106c15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610396565b6106cc838383610b28565b6001600160a01b038316600090815260208190526040902054818110156107445760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610396565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061077b908490610d0a565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516107c791815260200190565b60405180910390a350505050565b60055460ff1661081e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610396565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166108be5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610396565b6108ca60008383610b28565b80600260008282546108dc9190610d0a565b90915550506001600160a01b03821660009081526020819052604081208054839290610909908490610d0a565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60055460ff16156109995760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610396565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861084b3390565b6001600160a01b038216610a2e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610396565b610a3a82600083610b28565b6001600160a01b03821660009081526020819052604090205481811015610aae5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610396565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610add908490610d22565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60055460ff16156104d25760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610396565b600060208083528351808285015260005b81811015610bbb57858101830151858201604001528201610b9f565b81811115610bcd576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610bfa57600080fd5b919050565b60008060408385031215610c1257600080fd5b610c1b83610be3565b946020939093013593505050565b600080600060608486031215610c3e57600080fd5b610c4784610be3565b9250610c5560208501610be3565b9150604084013590509250925092565b600060208284031215610c7757600080fd5b610c8082610be3565b9392505050565b60008060408385031215610c9a57600080fd5b610ca383610be3565b9150610cb160208401610be3565b90509250929050565b600181811c90821680610cce57607f821691505b602082108103610cee57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610d1d57610d1d610cf4565b500190565b600082821015610d3457610d34610cf4565b50039056fea2646970667358221220afd6f6f63fdb85e78cec4942972edb4d4326c5edea23274992f2fd82780d22f164736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "initialAccount", "type": "address", "internalType": "address"}, {"name": "initialBalance", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20PermitMock": {"contractName": "ERC20PermitMock", "sourceId": "mocks/ERC20PermitMock.sol", "deploymentBytecode": {"bytecode": "0x6101606040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c961014090815250604051620014b7380380620014b78339810160408190526200004f91620003a0565b8380604051806040016040528060018152602001603160f81b81525086868160039080519060200190620000859291906200022d565b5080516200009b9060049060208401906200022d565b5050825160209384012082519284019290922060e08390526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818901819052818301979097526060810194909452608080850193909352308483018190528151808603909301835260c09485019091528151919096012090529290925261012052506200013b9050828262000145565b5050505062000496565b6001600160a01b038216620001a05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620001b4919062000433565b90915550506001600160a01b03821660009081526020819052604081208054839290620001e390849062000433565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b8280546200023b906200045a565b90600052602060002090601f0160209004810192826200025f5760008555620002aa565b82601f106200027a57805160ff1916838001178555620002aa565b82800160010185558215620002aa579182015b82811115620002aa5782518255916020019190600101906200028d565b50620002b8929150620002bc565b5090565b5b80821115620002b85760008155600101620002bd565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002fb57600080fd5b81516001600160401b0380821115620003185762000318620002d3565b604051601f8301601f19908116603f01168101908282118183101715620003435762000343620002d3565b816040528381526020925086838588010111156200036057600080fd5b600091505b8382101562000384578582018301518183018401529082019062000365565b83821115620003965760008385830101525b9695505050505050565b60008060008060808587031215620003b757600080fd5b84516001600160401b0380821115620003cf57600080fd5b620003dd88838901620002e9565b95506020870151915080821115620003f457600080fd5b506200040387828801620002e9565b604087015190945090506001600160a01b03811681146200042357600080fd5b6060959095015193969295505050565b600082198211156200045557634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200046f57607f821691505b6020821081036200049057634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161014051610fc6620004f16000396000610513015260006109a0015260006109ef015260006109ca015260006109230152600061094d015260006109770152610fc66000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80633950935111610097578063a457c2d711610066578063a457c2d7146101d4578063a9059cbb146101e7578063d505accf146101fa578063dd62ed3e1461020f57600080fd5b8063395093511461017d57806370a08231146101905780637ecebe00146101b957806395d89b41146101cc57600080fd5b806323b872dd116100d357806323b872dd1461014d578063313ce567146101605780633408e4701461016f5780633644e5151461017557600080fd5b806306fdde03146100fa578063095ea7b31461011857806318160ddd1461013b575b600080fd5b610102610248565b60405161010f9190610d81565b60405180910390f35b61012b610126366004610df2565b6102da565b604051901515815260200161010f565b6002545b60405190815260200161010f565b61012b61015b366004610e1c565b6102f0565b6040516012815260200161010f565b4661013f565b61013f61039f565b61012b61018b366004610df2565b6103ae565b61013f61019e366004610e58565b6001600160a01b031660009081526020819052604090205490565b61013f6101c7366004610e58565b6103ea565b61010261040a565b61012b6101e2366004610df2565b610419565b61012b6101f5366004610df2565b6104b2565b61020d610208366004610e7a565b6104bf565b005b61013f61021d366004610eed565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461025790610f20565b80601f016020809104026020016040519081016040528092919081815260200182805461028390610f20565b80156102d05780601f106102a5576101008083540402835291602001916102d0565b820191906000526020600020905b8154815290600101906020018083116102b357829003601f168201915b5050505050905090565b60006102e7338484610623565b50600192915050565b60006102fd848484610747565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103875760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103948533858403610623565b506001949350505050565b60006103a9610916565b905090565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102e79185906103e5908690610f54565b610623565b6001600160a01b0381166000908152600560205260408120545b92915050565b60606004805461025790610f20565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561049b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161037e565b6104a83385858403610623565b5060019392505050565b60006102e7338484610747565b8342111561050f5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161037e565b60007f000000000000000000000000000000000000000000000000000000000000000088888861053e8c610a3d565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061059982610a65565b905060006105a982878787610ab3565b9050896001600160a01b0316816001600160a01b03161461060c5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161037e565b6106178a8a8a610623565b50505050505050505050565b6001600160a01b0383166106855760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161037e565b6001600160a01b0382166106e65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161037e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166107ab5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161037e565b6001600160a01b03821661080d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161037e565b6001600160a01b038316600090815260208190526040902054818110156108855760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161037e565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906108bc908490610f54565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161090891815260200190565b60405180910390a350505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561096f57507f000000000000000000000000000000000000000000000000000000000000000046145b1561099957507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b6000610404610a72610916565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000610ac487878787610adb565b91509150610ad181610bc8565b5095945050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610b125750600090506003610bbf565b8460ff16601b14158015610b2a57508460ff16601c14155b15610b3b5750600090506004610bbf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610b8f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610bb857600060019250925050610bbf565b9150600090505b94509492505050565b6000816004811115610bdc57610bdc610f7a565b03610be45750565b6001816004811115610bf857610bf8610f7a565b03610c455760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161037e565b6002816004811115610c5957610c59610f7a565b03610ca65760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161037e565b6003816004811115610cba57610cba610f7a565b03610d125760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161037e565b6004816004811115610d2657610d26610f7a565b03610d7e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161037e565b50565b600060208083528351808285015260005b81811015610dae57858101830151858201604001528201610d92565b81811115610dc0576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b610e0e83610dd6565b946020939093013593505050565b600080600060608486031215610e3157600080fd5b610e3a84610dd6565b9250610e4860208501610dd6565b9150604084013590509250925092565b600060208284031215610e6a57600080fd5b610e7382610dd6565b9392505050565b600080600080600080600060e0888a031215610e9557600080fd5b610e9e88610dd6565b9650610eac60208901610dd6565b95506040880135945060608801359350608088013560ff81168114610ed057600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215610f0057600080fd5b610f0983610dd6565b9150610f1760208401610dd6565b90509250929050565b600181811c90821680610f3457607f821691505b602082108103610a5f57634e487b7160e01b600052602260045260246000fd5b60008219821115610f7557634e487b7160e01b600052601160045260246000fd5b500190565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220007bf4e7329ca44c14aa2b822fbb96f4354378e5c903e38f7b91bcec643a164a64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80633950935111610097578063a457c2d711610066578063a457c2d7146101d4578063a9059cbb146101e7578063d505accf146101fa578063dd62ed3e1461020f57600080fd5b8063395093511461017d57806370a08231146101905780637ecebe00146101b957806395d89b41146101cc57600080fd5b806323b872dd116100d357806323b872dd1461014d578063313ce567146101605780633408e4701461016f5780633644e5151461017557600080fd5b806306fdde03146100fa578063095ea7b31461011857806318160ddd1461013b575b600080fd5b610102610248565b60405161010f9190610d81565b60405180910390f35b61012b610126366004610df2565b6102da565b604051901515815260200161010f565b6002545b60405190815260200161010f565b61012b61015b366004610e1c565b6102f0565b6040516012815260200161010f565b4661013f565b61013f61039f565b61012b61018b366004610df2565b6103ae565b61013f61019e366004610e58565b6001600160a01b031660009081526020819052604090205490565b61013f6101c7366004610e58565b6103ea565b61010261040a565b61012b6101e2366004610df2565b610419565b61012b6101f5366004610df2565b6104b2565b61020d610208366004610e7a565b6104bf565b005b61013f61021d366004610eed565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461025790610f20565b80601f016020809104026020016040519081016040528092919081815260200182805461028390610f20565b80156102d05780601f106102a5576101008083540402835291602001916102d0565b820191906000526020600020905b8154815290600101906020018083116102b357829003601f168201915b5050505050905090565b60006102e7338484610623565b50600192915050565b60006102fd848484610747565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103875760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103948533858403610623565b506001949350505050565b60006103a9610916565b905090565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102e79185906103e5908690610f54565b610623565b6001600160a01b0381166000908152600560205260408120545b92915050565b60606004805461025790610f20565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561049b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161037e565b6104a83385858403610623565b5060019392505050565b60006102e7338484610747565b8342111561050f5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161037e565b60007f000000000000000000000000000000000000000000000000000000000000000088888861053e8c610a3d565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061059982610a65565b905060006105a982878787610ab3565b9050896001600160a01b0316816001600160a01b03161461060c5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161037e565b6106178a8a8a610623565b50505050505050505050565b6001600160a01b0383166106855760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161037e565b6001600160a01b0382166106e65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161037e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166107ab5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161037e565b6001600160a01b03821661080d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161037e565b6001600160a01b038316600090815260208190526040902054818110156108855760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161037e565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906108bc908490610f54565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161090891815260200190565b60405180910390a350505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561096f57507f000000000000000000000000000000000000000000000000000000000000000046145b1561099957507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b6000610404610a72610916565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000610ac487878787610adb565b91509150610ad181610bc8565b5095945050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610b125750600090506003610bbf565b8460ff16601b14158015610b2a57508460ff16601c14155b15610b3b5750600090506004610bbf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610b8f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610bb857600060019250925050610bbf565b9150600090505b94509492505050565b6000816004811115610bdc57610bdc610f7a565b03610be45750565b6001816004811115610bf857610bf8610f7a565b03610c455760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161037e565b6002816004811115610c5957610c59610f7a565b03610ca65760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161037e565b6003816004811115610cba57610cba610f7a565b03610d125760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161037e565b6004816004811115610d2657610d26610f7a565b03610d7e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161037e565b50565b600060208083528351808285015260005b81811015610dae57858101830151858201604001528201610d92565b81811115610dc0576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b610e0e83610dd6565b946020939093013593505050565b600080600060608486031215610e3157600080fd5b610e3a84610dd6565b9250610e4860208501610dd6565b9150604084013590509250925092565b600060208284031215610e6a57600080fd5b610e7382610dd6565b9392505050565b600080600080600080600060e0888a031215610e9557600080fd5b610e9e88610dd6565b9650610eac60208901610dd6565b95506040880135945060608801359350608088013560ff81168114610ed057600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215610f0057600080fd5b610f0983610dd6565b9150610f1760208401610dd6565b90509250929050565b600181811c90821680610f3457607f821691505b602082108103610a5f57634e487b7160e01b600052602260045260246000fd5b60008219821115610f7557634e487b7160e01b600052601160045260246000fd5b500190565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220007bf4e7329ca44c14aa2b822fbb96f4354378e5c903e38f7b91bcec643a164a64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "payable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "initialAccount", "type": "address", "internalType": "address"}, {"name": "initialBalance", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "DOMAIN_SEPARATOR", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "getChainId", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "nonces", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "permit", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "deadline", "type": "uint256", "internalType": "uint256"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"DOMAIN_SEPARATOR()": {"details": "See {IERC20Permit-DOMAIN_SEPARATOR}."}, "allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "nonces(address)": {"details": "See {IERC20Permit-nonces}."}, "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {"details": "See {IERC20Permit-permit}."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20SnapshotMock": {"contractName": "ERC20SnapshotMock", "sourceId": "mocks/ERC20SnapshotMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b50604051620015d7380380620015d783398101604081905262000034916200045d565b8351849084906200004d906003906020850190620002ea565b50805162000063906004906020840190620002ea565b5050506200007882826200008260201b60201c565b505050506200058d565b6001600160a01b038216620000dd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b620000eb6000838362000178565b8060026000828254620000ff919062000506565b90915550506001600160a01b038216600090815260208190526040812080548392906200012e90849062000506565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b62000190838383620001b460201b620005631760201c565b6001600160a01b038316620001b957620001aa82620001e4565b620001b46200021c565b505050565b6001600160a01b038216620001d357620001aa83620001e4565b620001de83620001e4565b620001b4825b6001600160a01b038116600090815260056020908152604080832091839052909120546200021991906200022e565b6200022e565b50565b6200022c60066200021360025490565b565b60006200023a6200027d565b90508062000248846200029b565b1015620001b4578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b6000620002966008620002e660201b620005681760201c565b905090565b80546000908103620002af57506000919050565b81548290620002c19060019062000521565b81548110620002d457620002d46200053b565b90600052602060002001549050919050565b5490565b828054620002f89062000551565b90600052602060002090601f0160209004810192826200031c576000855562000367565b82601f106200033757805160ff191683800117855562000367565b8280016001018555821562000367579182015b82811115620003675782518255916020019190600101906200034a565b506200037592915062000379565b5090565b5b808211156200037557600081556001016200037a565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620003b857600080fd5b81516001600160401b0380821115620003d557620003d562000390565b604051601f8301601f19908116603f0116810190828211818310171562000400576200040062000390565b816040528381526020925086838588010111156200041d57600080fd5b600091505b8382101562000441578582018301518183018401529082019062000422565b83821115620004535760008385830101525b9695505050505050565b600080600080608085870312156200047457600080fd5b84516001600160401b03808211156200048c57600080fd5b6200049a88838901620003a6565b95506020870151915080821115620004b157600080fd5b50620004c087828801620003a6565b604087015190945090506001600160a01b0381168114620004e057600080fd5b6060959095015193969295505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156200051c576200051c620004f0565b500190565b600082821015620005365762000536620004f0565b500390565b634e487b7160e01b600052603260045260246000fd5b600181811c908216806200056657607f821691505b6020821081036200058757634e487b7160e01b600052602260045260246000fd5b50919050565b61103a806200059d6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806370a08231116100975780639dc29fac116100665780639dc29fac14610201578063a457c2d714610214578063a9059cbb14610227578063dd62ed3e1461023a57600080fd5b806370a08231146101b557806395d89b41146101de5780639711715a146101e6578063981b24d0146101ee57600080fd5b8063313ce567116100d3578063313ce5671461016b578063395093511461017a57806340c10f191461018d5780634ee2cd7e146101a257600080fd5b806306fdde0314610105578063095ea7b31461012357806318160ddd1461014657806323b872dd14610158575b600080fd5b61010d610273565b60405161011a9190610e14565b60405180910390f35b610136610131366004610e80565b610305565b604051901515815260200161011a565b6002545b60405190815260200161011a565b610136610166366004610eaa565b61031c565b6040516012815260200161011a565b610136610188366004610e80565b6103cb565b6101a061019b366004610e80565b610407565b005b61014a6101b0366004610e80565b610415565b61014a6101c3366004610ee6565b6001600160a01b031660009081526020819052604090205490565b61010d61046e565b6101a061047d565b61014a6101fc366004610f01565b610488565b6101a061020f366004610e80565b6104b3565b610136610222366004610e80565b6104bd565b610136610235366004610e80565b610556565b61014a610248366004610f1a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461028290610f4d565b80601f01602080910402602001604051908101604052809291908181526020018280546102ae90610f4d565b80156102fb5780601f106102d0576101008083540402835291602001916102fb565b820191906000526020600020905b8154815290600101906020018083116102de57829003601f168201915b5050505050905090565b600061031233848461056c565b5060015b92915050565b6000610329848484610690565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103b35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103c0853385840361056c565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610312918590610402908690610f9d565b61056c565b610411828261086a565b5050565b6001600160a01b03821660009081526005602052604081208190819061043c908590610955565b9150915081610463576001600160a01b038516600090815260208190526040902054610465565b805b95945050505050565b60606004805461028290610f4d565b610485610a4b565b50565b6000806000610498846006610955565b91509150816104a9576002546104ab565b805b949350505050565b6104118282610aa5565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561053f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103aa565b61054c338585840361056c565b5060019392505050565b6000610312338484610690565b505050565b5490565b6001600160a01b0383166105ce5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103aa565b6001600160a01b03821661062f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103aa565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166106f45760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103aa565b6001600160a01b0382166107565760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103aa565b610761838383610bff565b6001600160a01b038316600090815260208190526040902054818110156107d95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103aa565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610810908490610f9d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161085c91815260200190565b60405180910390a350505050565b6001600160a01b0382166108c05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103aa565b6108cc60008383610bff565b80600260008282546108de9190610f9d565b90915550506001600160a01b0382166000908152602081905260408120805483929061090b908490610f9d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080600084116109a15760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b60448201526064016103aa565b6109a9610c47565b8411156109f85760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000060448201526064016103aa565b6000610a048486610c57565b84549091508103610a1c576000809250925050610a44565b6001846001018281548110610a3357610a33610fb5565b906000526020600020015492509250505b9250929050565b6000610a5b600880546001019055565b6000610a65610c47565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb6781604051610a9891815260200190565b60405180910390a1919050565b6001600160a01b038216610b055760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103aa565b610b1182600083610bff565b6001600160a01b03821660009081526020819052604090205481811015610b855760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103aa565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610bb4908490610fcb565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6001600160a01b038316610c1e57610c1682610d1c565b610563610d4e565b6001600160a01b038216610c3557610c1683610d1c565b610c3e83610d1c565b61056382610d1c565b6000610c5260085490565b905090565b81546000908103610c6a57506000610316565b82546000905b80821015610cc6576000610c848383610d5e565b905084868281548110610c9957610c99610fb5565b90600052602060002001541115610cb257809150610cc0565b610cbd816001610f9d565b92505b50610c70565b600082118015610cfb57508385610cde600185610fcb565b81548110610cee57610cee610fb5565b9060005260206000200154145b15610d1457610d0b600183610fcb565b92505050610316565b509050610316565b6001600160a01b038116600090815260056020908152604080832091839052909120546104859190610d80565b610d80565b610d5c6006610d4960025490565b565b6000610d6d6002848418610fe2565b610d7990848416610f9d565b9392505050565b6000610d8a610c47565b905080610d9684610dca565b1015610563578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b80546000908103610ddd57506000919050565b81548290610ded90600190610fcb565b81548110610dfd57610dfd610fb5565b90600052602060002001549050919050565b919050565b600060208083528351808285015260005b81811015610e4157858101830151858201604001528201610e25565b81811115610e53576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610e0f57600080fd5b60008060408385031215610e9357600080fd5b610e9c83610e69565b946020939093013593505050565b600080600060608486031215610ebf57600080fd5b610ec884610e69565b9250610ed660208501610e69565b9150604084013590509250925092565b600060208284031215610ef857600080fd5b610d7982610e69565b600060208284031215610f1357600080fd5b5035919050565b60008060408385031215610f2d57600080fd5b610f3683610e69565b9150610f4460208401610e69565b90509250929050565b600181811c90821680610f6157607f821691505b602082108103610f8157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610fb057610fb0610f87565b500190565b634e487b7160e01b600052603260045260246000fd5b600082821015610fdd57610fdd610f87565b500390565b600082610fff57634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212200e22734691813c3e5e797086f7b60403171e2c321e1835782fca60efa4093db364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c806370a08231116100975780639dc29fac116100665780639dc29fac14610201578063a457c2d714610214578063a9059cbb14610227578063dd62ed3e1461023a57600080fd5b806370a08231146101b557806395d89b41146101de5780639711715a146101e6578063981b24d0146101ee57600080fd5b8063313ce567116100d3578063313ce5671461016b578063395093511461017a57806340c10f191461018d5780634ee2cd7e146101a257600080fd5b806306fdde0314610105578063095ea7b31461012357806318160ddd1461014657806323b872dd14610158575b600080fd5b61010d610273565b60405161011a9190610e14565b60405180910390f35b610136610131366004610e80565b610305565b604051901515815260200161011a565b6002545b60405190815260200161011a565b610136610166366004610eaa565b61031c565b6040516012815260200161011a565b610136610188366004610e80565b6103cb565b6101a061019b366004610e80565b610407565b005b61014a6101b0366004610e80565b610415565b61014a6101c3366004610ee6565b6001600160a01b031660009081526020819052604090205490565b61010d61046e565b6101a061047d565b61014a6101fc366004610f01565b610488565b6101a061020f366004610e80565b6104b3565b610136610222366004610e80565b6104bd565b610136610235366004610e80565b610556565b61014a610248366004610f1a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461028290610f4d565b80601f01602080910402602001604051908101604052809291908181526020018280546102ae90610f4d565b80156102fb5780601f106102d0576101008083540402835291602001916102fb565b820191906000526020600020905b8154815290600101906020018083116102de57829003601f168201915b5050505050905090565b600061031233848461056c565b5060015b92915050565b6000610329848484610690565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103b35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103c0853385840361056c565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610312918590610402908690610f9d565b61056c565b610411828261086a565b5050565b6001600160a01b03821660009081526005602052604081208190819061043c908590610955565b9150915081610463576001600160a01b038516600090815260208190526040902054610465565b805b95945050505050565b60606004805461028290610f4d565b610485610a4b565b50565b6000806000610498846006610955565b91509150816104a9576002546104ab565b805b949350505050565b6104118282610aa5565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561053f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103aa565b61054c338585840361056c565b5060019392505050565b6000610312338484610690565b505050565b5490565b6001600160a01b0383166105ce5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103aa565b6001600160a01b03821661062f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103aa565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166106f45760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103aa565b6001600160a01b0382166107565760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103aa565b610761838383610bff565b6001600160a01b038316600090815260208190526040902054818110156107d95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103aa565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610810908490610f9d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161085c91815260200190565b60405180910390a350505050565b6001600160a01b0382166108c05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103aa565b6108cc60008383610bff565b80600260008282546108de9190610f9d565b90915550506001600160a01b0382166000908152602081905260408120805483929061090b908490610f9d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080600084116109a15760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b60448201526064016103aa565b6109a9610c47565b8411156109f85760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000060448201526064016103aa565b6000610a048486610c57565b84549091508103610a1c576000809250925050610a44565b6001846001018281548110610a3357610a33610fb5565b906000526020600020015492509250505b9250929050565b6000610a5b600880546001019055565b6000610a65610c47565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb6781604051610a9891815260200190565b60405180910390a1919050565b6001600160a01b038216610b055760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103aa565b610b1182600083610bff565b6001600160a01b03821660009081526020819052604090205481811015610b855760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103aa565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610bb4908490610fcb565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6001600160a01b038316610c1e57610c1682610d1c565b610563610d4e565b6001600160a01b038216610c3557610c1683610d1c565b610c3e83610d1c565b61056382610d1c565b6000610c5260085490565b905090565b81546000908103610c6a57506000610316565b82546000905b80821015610cc6576000610c848383610d5e565b905084868281548110610c9957610c99610fb5565b90600052602060002001541115610cb257809150610cc0565b610cbd816001610f9d565b92505b50610c70565b600082118015610cfb57508385610cde600185610fcb565b81548110610cee57610cee610fb5565b9060005260206000200154145b15610d1457610d0b600183610fcb565b92505050610316565b509050610316565b6001600160a01b038116600090815260056020908152604080832091839052909120546104859190610d80565b610d80565b610d5c6006610d4960025490565b565b6000610d6d6002848418610fe2565b610d7990848416610f9d565b9392505050565b6000610d8a610c47565b905080610d9684610dca565b1015610563578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b80546000908103610ddd57506000919050565b81548290610ded90600190610fcb565b81548110610dfd57610dfd610fb5565b90600052602060002001549050919050565b919050565b600060208083528351808285015260005b81811015610e4157858101830151858201604001528201610e25565b81811115610e53576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610e0f57600080fd5b60008060408385031215610e9357600080fd5b610e9c83610e69565b946020939093013593505050565b600080600060608486031215610ebf57600080fd5b610ec884610e69565b9250610ed660208501610e69565b9150604084013590509250925092565b600060208284031215610ef857600080fd5b610d7982610e69565b600060208284031215610f1357600080fd5b5035919050565b60008060408385031215610f2d57600080fd5b610f3683610e69565b9150610f4460208401610e69565b90509250929050565b600181811c90821680610f6157607f821691505b602082108103610f8157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610fb057610fb0610f87565b500190565b634e487b7160e01b600052603260045260246000fd5b600082821015610fdd57610fdd610f87565b500390565b600082610fff57634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212200e22734691813c3e5e797086f7b60403171e2c321e1835782fca60efa4093db364736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "initialAccount", "type": "address", "internalType": "address"}, {"name": "initialBalance", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Snapshot", "inputs": [{"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfAt", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "snapshotId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "snapshot", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "totalSupplyAt", "stateMutability": "view", "inputs": [{"name": "snapshotId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "balanceOfAt(address,uint256)": {"details": "Retrieves the balance of `account` at the time `snapshotId` was created."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "totalSupplyAt(uint256)": {"details": "Retrieves the total supply at the time `snapshotId` was created."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20VotesCompMock": {"contractName": "ERC20VotesCompMock", "sourceId": "mocks/ERC20VotesCompMock.sol", "deploymentBytecode": {"bytecode": "0x6101606040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610140523480156200003757600080fd5b50604051620022a1380380620022a18339810160408190526200005a91620002b7565b8180604051806040016040528060018152602001603160f81b815250848481600390805190602001906200009092919062000144565b508051620000a690600490602084019062000144565b5050825160208085019190912083518483012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c0019052805194019390932091935091906080523060c05261012052506200035d95505050505050565b828054620001529062000321565b90600052602060002090601f016020900481019282620001765760008555620001c1565b82601f106200019157805160ff1916838001178555620001c1565b82800160010185558215620001c1579182015b82811115620001c1578251825591602001919060010190620001a4565b50620001cf929150620001d3565b5090565b5b80821115620001cf5760008155600101620001d4565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200021257600080fd5b81516001600160401b03808211156200022f576200022f620001ea565b604051601f8301601f19908116603f011681019082821181831017156200025a576200025a620001ea565b816040528381526020925086838588010111156200027757600080fd5b600091505b838210156200029b57858201830151818301840152908201906200027c565b83821115620002ad5760008385830101525b9695505050505050565b60008060408385031215620002cb57600080fd5b82516001600160401b0380821115620002e357600080fd5b620002f18683870162000200565b935060208501519150808211156200030857600080fd5b50620003178582860162000200565b9150509250929050565b600181811c908216806200033657607f821691505b6020821081036200035757634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161014051611ee9620003b86000396000610a3301526000610f4f01526000610f9e01526000610f7901526000610ed201526000610efc01526000610f260152611ee96000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063a457c2d711610097578063c3cda52011610071578063c3cda520146103cc578063d505accf146103df578063dd62ed3e146103f2578063f1127ed81461042b57600080fd5b8063a457c2d714610393578063a9059cbb146103a6578063b4b5ea57146103b957600080fd5b80638e539e8c116100d35780638e539e8c1461035257806395d89b41146103655780639ab24eb01461036d5780639dc29fac1461038057600080fd5b806370a08231146102eb578063782d6fe1146103145780637ecebe001461033f57600080fd5b80633644e5151161016657806340c10f191161014057806340c10f1914610257578063587cde1e1461026c5780635c19a95c146102b05780636fcfff45146102c357600080fd5b80633644e5151461022957806339509351146102315780633a46b1a81461024457600080fd5b806306fdde03146101ae578063095ea7b3146101cc57806318160ddd146101ef57806323b872dd14610201578063313ce567146102145780633408e47014610223575b600080fd5b6101b6610468565b6040516101c39190611b9b565b60405180910390f35b6101df6101da366004611c0c565b6104fa565b60405190151581526020016101c3565b6002545b6040519081526020016101c3565b6101df61020f366004611c36565b610510565b604051601281526020016101c3565b466101f3565b6101f36105bf565b6101df61023f366004611c0c565b6105ce565b6101f3610252366004611c0c565b61060a565b61026a610265366004611c0c565b610684565b005b61029861027a366004611c72565b6001600160a01b039081166000908152600660205260409020541690565b6040516001600160a01b0390911681526020016101c3565b61026a6102be366004611c72565b610692565b6102d66102d1366004611c72565b61069f565b60405163ffffffff90911681526020016101c3565b6101f36102f9366004611c72565b6001600160a01b031660009081526020819052604090205490565b610327610322366004611c0c565b6106c7565b6040516001600160601b0390911681526020016101c3565b6101f361034d366004611c72565b6106db565b6101f3610360366004611c8d565b6106f9565b6101b6610755565b6101f361037b366004611c72565b610764565b61026a61038e366004611c0c565b6107eb565b6101df6103a1366004611c0c565b6107f5565b6101df6103b4366004611c0c565b61088e565b6103276103c7366004611c72565b61089b565b61026a6103da366004611cb7565b6108a9565b61026a6103ed366004611d0f565b6109df565b6101f3610400366004611d79565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61043e610439366004611dac565b610b43565b60408051825163ffffffff1681526020928301516001600160e01b031692810192909252016101c3565b60606003805461047790611dec565b80601f01602080910402602001604051908101604052809291908181526020018280546104a390611dec565b80156104f05780601f106104c5576101008083540402835291602001916104f0565b820191906000526020600020905b8154815290600101906020018083116104d357829003601f168201915b5050505050905090565b6000610507338484610bc7565b50600192915050565b600061051d848484610ceb565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105a75760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105b48533858403610bc7565b506001949350505050565b60006105c9610ec5565b905090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610507918590610605908690611e36565b610bc7565b600043821061065b5760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400604482015260640161059e565b6001600160a01b038316600090815260076020526040902061067d9083610fec565b9392505050565b61068e82826110a9565b5050565b61069c3382611133565b50565b6001600160a01b0381166000908152600760205260408120546106c1906111ac565b92915050565b600061067d6106d6848461060a565b611215565b6001600160a01b0381166000908152600560205260408120546106c1565b600043821061074a5760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400604482015260640161059e565b6106c1600883610fec565b60606004805461047790611dec565b6001600160a01b03811660009081526007602052604081205480156107d8576001600160a01b03831660009081526007602052604090206107a6600183611e4e565b815481106107b6576107b6611e65565b60009182526020909120015464010000000090046001600160e01b03166107db565b60005b6001600160e01b03169392505050565b61068e828261127d565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156108775760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161059e565b6108843385858403610bc7565b5060019392505050565b6000610507338484610ceb565b60006106c16106d683610764565b834211156108f95760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e61747572652065787069726564000000604482015260640161059e565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b0388169181019190915260608101869052608081018590526000906109739061096b9060a00160405160208183030381529060405280519060200120611295565b8585856112e3565b905061097e8161130b565b86146109cc5760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e636500000000000000604482015260640161059e565b6109d68188611133565b50505050505050565b83421115610a2f5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161059e565b60007f0000000000000000000000000000000000000000000000000000000000000000888888610a5e8c61130b565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610ab982611295565b90506000610ac9828787876112e3565b9050896001600160a01b0316816001600160a01b031614610b2c5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161059e565b610b378a8a8a610bc7565b50505050505050505050565b60408051808201909152600080825260208201526001600160a01b0383166000908152600760205260409020805463ffffffff8416908110610b8757610b87611e65565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6001600160a01b038316610c295760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161059e565b6001600160a01b038216610c8a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161059e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610d4f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161059e565b6001600160a01b038216610db15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161059e565b6001600160a01b03831660009081526020819052604090205481811015610e295760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161059e565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610e60908490611e36565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610eac91815260200190565b60405180910390a3610ebf848484611338565b50505050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015610f1e57507f000000000000000000000000000000000000000000000000000000000000000046145b15610f4857507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b8154600090815b81811015611050576000611007828461136a565b90508486828154811061101c5761101c611e65565b60009182526020909120015463ffffffff16111561103c5780925061104a565b611047816001611e36565b91505b50610ff3565b81156110945784611062600184611e4e565b8154811061107257611072611e65565b60009182526020909120015464010000000090046001600160e01b0316611097565b60005b6001600160e01b031695945050505050565b6110b38282611385565b6002546001600160601b0310156111255760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b606482015260840161059e565b610ebf600861146c83611478565b6001600160a01b038281166000818152600660208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610ebf8284836115f1565b600063ffffffff8211156112115760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b606482015260840161059e565b5090565b60006001600160601b038211156112115760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203960448201526536206269747360d01b606482015260840161059e565b611287828261172e565b610ebf600861188383611478565b60006106c16112a2610ec5565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006112f48787878761188f565b915091506113018161197c565b5095945050505050565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b505050565b6001600160a01b03838116600090815260066020526040808220548584168352912054611333929182169116836115f1565b60006113796002848418611e7b565b61067d90848416611e36565b6001600160a01b0382166113db5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161059e565b80600260008282546113ed9190611e36565b90915550506001600160a01b0382166000908152602081905260408120805483929061141a908490611e36565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361068e60008383611338565b600061067d8284611e36565b8254600090819080156114c35785611491600183611e4e565b815481106114a1576114a1611e65565b60009182526020909120015464010000000090046001600160e01b03166114c6565b60005b6001600160e01b031692506114df83858763ffffffff16565b915060008111801561151d575043866114f9600184611e4e565b8154811061150957611509611e65565b60009182526020909120015463ffffffff16145b1561157d5761152b82611b32565b86611537600184611e4e565b8154811061154757611547611e65565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b031602179055506115e8565b856040518060400160405280611592436111ac565b63ffffffff1681526020016115a685611b32565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b816001600160a01b0316836001600160a01b0316141580156116135750600081115b15611333576001600160a01b038316156116a1576001600160a01b0383166000908152600760205260408120819061164e9061188385611478565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611696929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611333576001600160a01b038216600090815260076020526040812081906116d79061146c85611478565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724838360405161171f929190918252602082015260400190565b60405180910390a25050505050565b6001600160a01b03821661178e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161059e565b6001600160a01b038216600090815260208190526040902054818110156118025760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161059e565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611831908490611e4e565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361133383600084611338565b600061067d8284611e4e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156118c65750600090506003611973565b8460ff16601b141580156118de57508460ff16601c14155b156118ef5750600090506004611973565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611943573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661196c57600060019250925050611973565b9150600090505b94509492505050565b600081600481111561199057611990611e9d565b036119985750565b60018160048111156119ac576119ac611e9d565b036119f95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161059e565b6002816004811115611a0d57611a0d611e9d565b03611a5a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161059e565b6003816004811115611a6e57611a6e611e9d565b03611ac65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161059e565b6004816004811115611ada57611ada611e9d565b0361069c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161059e565b60006001600160e01b038211156112115760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b606482015260840161059e565b600060208083528351808285015260005b81811015611bc857858101830151858201604001528201611bac565b81811115611bda576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114611c0757600080fd5b919050565b60008060408385031215611c1f57600080fd5b611c2883611bf0565b946020939093013593505050565b600080600060608486031215611c4b57600080fd5b611c5484611bf0565b9250611c6260208501611bf0565b9150604084013590509250925092565b600060208284031215611c8457600080fd5b61067d82611bf0565b600060208284031215611c9f57600080fd5b5035919050565b803560ff81168114611c0757600080fd5b60008060008060008060c08789031215611cd057600080fd5b611cd987611bf0565b95506020870135945060408701359350611cf560608801611ca6565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a031215611d2a57600080fd5b611d3388611bf0565b9650611d4160208901611bf0565b95506040880135945060608801359350611d5d60808901611ca6565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215611d8c57600080fd5b611d9583611bf0565b9150611da360208401611bf0565b90509250929050565b60008060408385031215611dbf57600080fd5b611dc883611bf0565b9150602083013563ffffffff81168114611de157600080fd5b809150509250929050565b600181811c90821680611e0057607f821691505b60208210810361132d57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611e4957611e49611e20565b500190565b600082821015611e6057611e60611e20565b500390565b634e487b7160e01b600052603260045260246000fd5b600082611e9857634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea26469706673582212202c623732d3283830c00eeefde63b0a35b5d8b41b98a4e64636c31e77ecbe962664736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063a457c2d711610097578063c3cda52011610071578063c3cda520146103cc578063d505accf146103df578063dd62ed3e146103f2578063f1127ed81461042b57600080fd5b8063a457c2d714610393578063a9059cbb146103a6578063b4b5ea57146103b957600080fd5b80638e539e8c116100d35780638e539e8c1461035257806395d89b41146103655780639ab24eb01461036d5780639dc29fac1461038057600080fd5b806370a08231146102eb578063782d6fe1146103145780637ecebe001461033f57600080fd5b80633644e5151161016657806340c10f191161014057806340c10f1914610257578063587cde1e1461026c5780635c19a95c146102b05780636fcfff45146102c357600080fd5b80633644e5151461022957806339509351146102315780633a46b1a81461024457600080fd5b806306fdde03146101ae578063095ea7b3146101cc57806318160ddd146101ef57806323b872dd14610201578063313ce567146102145780633408e47014610223575b600080fd5b6101b6610468565b6040516101c39190611b9b565b60405180910390f35b6101df6101da366004611c0c565b6104fa565b60405190151581526020016101c3565b6002545b6040519081526020016101c3565b6101df61020f366004611c36565b610510565b604051601281526020016101c3565b466101f3565b6101f36105bf565b6101df61023f366004611c0c565b6105ce565b6101f3610252366004611c0c565b61060a565b61026a610265366004611c0c565b610684565b005b61029861027a366004611c72565b6001600160a01b039081166000908152600660205260409020541690565b6040516001600160a01b0390911681526020016101c3565b61026a6102be366004611c72565b610692565b6102d66102d1366004611c72565b61069f565b60405163ffffffff90911681526020016101c3565b6101f36102f9366004611c72565b6001600160a01b031660009081526020819052604090205490565b610327610322366004611c0c565b6106c7565b6040516001600160601b0390911681526020016101c3565b6101f361034d366004611c72565b6106db565b6101f3610360366004611c8d565b6106f9565b6101b6610755565b6101f361037b366004611c72565b610764565b61026a61038e366004611c0c565b6107eb565b6101df6103a1366004611c0c565b6107f5565b6101df6103b4366004611c0c565b61088e565b6103276103c7366004611c72565b61089b565b61026a6103da366004611cb7565b6108a9565b61026a6103ed366004611d0f565b6109df565b6101f3610400366004611d79565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61043e610439366004611dac565b610b43565b60408051825163ffffffff1681526020928301516001600160e01b031692810192909252016101c3565b60606003805461047790611dec565b80601f01602080910402602001604051908101604052809291908181526020018280546104a390611dec565b80156104f05780601f106104c5576101008083540402835291602001916104f0565b820191906000526020600020905b8154815290600101906020018083116104d357829003601f168201915b5050505050905090565b6000610507338484610bc7565b50600192915050565b600061051d848484610ceb565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105a75760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105b48533858403610bc7565b506001949350505050565b60006105c9610ec5565b905090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610507918590610605908690611e36565b610bc7565b600043821061065b5760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400604482015260640161059e565b6001600160a01b038316600090815260076020526040902061067d9083610fec565b9392505050565b61068e82826110a9565b5050565b61069c3382611133565b50565b6001600160a01b0381166000908152600760205260408120546106c1906111ac565b92915050565b600061067d6106d6848461060a565b611215565b6001600160a01b0381166000908152600560205260408120546106c1565b600043821061074a5760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400604482015260640161059e565b6106c1600883610fec565b60606004805461047790611dec565b6001600160a01b03811660009081526007602052604081205480156107d8576001600160a01b03831660009081526007602052604090206107a6600183611e4e565b815481106107b6576107b6611e65565b60009182526020909120015464010000000090046001600160e01b03166107db565b60005b6001600160e01b03169392505050565b61068e828261127d565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156108775760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161059e565b6108843385858403610bc7565b5060019392505050565b6000610507338484610ceb565b60006106c16106d683610764565b834211156108f95760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e61747572652065787069726564000000604482015260640161059e565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b0388169181019190915260608101869052608081018590526000906109739061096b9060a00160405160208183030381529060405280519060200120611295565b8585856112e3565b905061097e8161130b565b86146109cc5760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e636500000000000000604482015260640161059e565b6109d68188611133565b50505050505050565b83421115610a2f5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161059e565b60007f0000000000000000000000000000000000000000000000000000000000000000888888610a5e8c61130b565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610ab982611295565b90506000610ac9828787876112e3565b9050896001600160a01b0316816001600160a01b031614610b2c5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161059e565b610b378a8a8a610bc7565b50505050505050505050565b60408051808201909152600080825260208201526001600160a01b0383166000908152600760205260409020805463ffffffff8416908110610b8757610b87611e65565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6001600160a01b038316610c295760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161059e565b6001600160a01b038216610c8a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161059e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610d4f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161059e565b6001600160a01b038216610db15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161059e565b6001600160a01b03831660009081526020819052604090205481811015610e295760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161059e565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610e60908490611e36565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610eac91815260200190565b60405180910390a3610ebf848484611338565b50505050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015610f1e57507f000000000000000000000000000000000000000000000000000000000000000046145b15610f4857507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b8154600090815b81811015611050576000611007828461136a565b90508486828154811061101c5761101c611e65565b60009182526020909120015463ffffffff16111561103c5780925061104a565b611047816001611e36565b91505b50610ff3565b81156110945784611062600184611e4e565b8154811061107257611072611e65565b60009182526020909120015464010000000090046001600160e01b0316611097565b60005b6001600160e01b031695945050505050565b6110b38282611385565b6002546001600160601b0310156111255760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b606482015260840161059e565b610ebf600861146c83611478565b6001600160a01b038281166000818152600660208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610ebf8284836115f1565b600063ffffffff8211156112115760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b606482015260840161059e565b5090565b60006001600160601b038211156112115760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203960448201526536206269747360d01b606482015260840161059e565b611287828261172e565b610ebf600861188383611478565b60006106c16112a2610ec5565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006112f48787878761188f565b915091506113018161197c565b5095945050505050565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b505050565b6001600160a01b03838116600090815260066020526040808220548584168352912054611333929182169116836115f1565b60006113796002848418611e7b565b61067d90848416611e36565b6001600160a01b0382166113db5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161059e565b80600260008282546113ed9190611e36565b90915550506001600160a01b0382166000908152602081905260408120805483929061141a908490611e36565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361068e60008383611338565b600061067d8284611e36565b8254600090819080156114c35785611491600183611e4e565b815481106114a1576114a1611e65565b60009182526020909120015464010000000090046001600160e01b03166114c6565b60005b6001600160e01b031692506114df83858763ffffffff16565b915060008111801561151d575043866114f9600184611e4e565b8154811061150957611509611e65565b60009182526020909120015463ffffffff16145b1561157d5761152b82611b32565b86611537600184611e4e565b8154811061154757611547611e65565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b031602179055506115e8565b856040518060400160405280611592436111ac565b63ffffffff1681526020016115a685611b32565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b816001600160a01b0316836001600160a01b0316141580156116135750600081115b15611333576001600160a01b038316156116a1576001600160a01b0383166000908152600760205260408120819061164e9061188385611478565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611696929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611333576001600160a01b038216600090815260076020526040812081906116d79061146c85611478565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724838360405161171f929190918252602082015260400190565b60405180910390a25050505050565b6001600160a01b03821661178e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161059e565b6001600160a01b038216600090815260208190526040902054818110156118025760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161059e565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611831908490611e4e565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361133383600084611338565b600061067d8284611e4e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156118c65750600090506003611973565b8460ff16601b141580156118de57508460ff16601c14155b156118ef5750600090506004611973565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611943573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661196c57600060019250925050611973565b9150600090505b94509492505050565b600081600481111561199057611990611e9d565b036119985750565b60018160048111156119ac576119ac611e9d565b036119f95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161059e565b6002816004811115611a0d57611a0d611e9d565b03611a5a5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161059e565b6003816004811115611a6e57611a6e611e9d565b03611ac65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161059e565b6004816004811115611ada57611ada611e9d565b0361069c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161059e565b60006001600160e01b038211156112115760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b606482015260840161059e565b600060208083528351808285015260005b81811015611bc857858101830151858201604001528201611bac565b81811115611bda576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114611c0757600080fd5b919050565b60008060408385031215611c1f57600080fd5b611c2883611bf0565b946020939093013593505050565b600080600060608486031215611c4b57600080fd5b611c5484611bf0565b9250611c6260208501611bf0565b9150604084013590509250925092565b600060208284031215611c8457600080fd5b61067d82611bf0565b600060208284031215611c9f57600080fd5b5035919050565b803560ff81168114611c0757600080fd5b60008060008060008060c08789031215611cd057600080fd5b611cd987611bf0565b95506020870135945060408701359350611cf560608801611ca6565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a031215611d2a57600080fd5b611d3388611bf0565b9650611d4160208901611bf0565b95506040880135945060608801359350611d5d60808901611ca6565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215611d8c57600080fd5b611d9583611bf0565b9150611da360208401611bf0565b90509250929050565b60008060408385031215611dbf57600080fd5b611dc883611bf0565b9150602083013563ffffffff81168114611de157600080fd5b809150509250929050565b600181811c90821680611e0057607f821691505b60208210810361132d57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611e4957611e49611e20565b500190565b600082821015611e6057611e60611e20565b500390565b634e487b7160e01b600052603260045260246000fd5b600082611e9857634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea26469706673582212202c623732d3283830c00eeefde63b0a35b5d8b41b98a4e64636c31e77ecbe962664736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "DelegateChanged", "inputs": [{"name": "delegator", "type": "address", "internalType": "address", "indexed": true}, {"name": "fromDelegate", "type": "address", "internalType": "address", "indexed": true}, {"name": "toDelegate", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "DelegateVotesChanged", "inputs": [{"name": "delegate", "type": "address", "internalType": "address", "indexed": true}, {"name": "previousBalance", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newBalance", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "DOMAIN_SEPARATOR", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "checkpoints", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "pos", "type": "uint32", "internalType": "uint32"}], "outputs": [{"name": "", "type": "tuple", "components": [{"name": "fromBlock", "type": "uint32", "internalType": "uint32"}, {"name": "votes", "type": "uint224", "internalType": "uint224"}], "internalType": "struct ERC20Votes.Checkpoint"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "delegate", "stateMutability": "nonpayable", "inputs": [{"name": "delegatee", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "delegateBySig", "stateMutability": "nonpayable", "inputs": [{"name": "delegatee", "type": "address", "internalType": "address"}, {"name": "nonce", "type": "uint256", "internalType": "uint256"}, {"name": "expiry", "type": "uint256", "internalType": "uint256"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "delegates", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getChainId", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getCurrentVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint96", "internalType": "uint96"}]}, {"type": "function", "name": "getPastTotalSupply", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getPastVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getPriorVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint96", "internalType": "uint96"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "nonces", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "numCheckpoints", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint32", "internalType": "uint32"}]}, {"type": "function", "name": "permit", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "deadline", "type": "uint256", "internalType": "uint256"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"DOMAIN_SEPARATOR()": {"details": "See {IERC20Permit-DOMAIN_SEPARATOR}."}, "allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "checkpoints(address,uint32)": {"details": "Get the `pos`-th checkpoint for `account`."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "delegate(address)": {"details": "Delegate votes from the sender to `delegatee`."}, "delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32)": {"details": "Delegates votes from signer to `delegatee`"}, "delegates(address)": {"details": "Get the address `account` is currently delegating to."}, "getCurrentVotes(address)": {"details": "Comp version of the {getVotes} accessor, with `uint96` return type."}, "getPastTotalSupply(uint256)": {"details": "Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances. It is but NOT the sum of all the delegated votes! Requirements: - `blockNumber` must have been already mined"}, "getPastVotes(address,uint256)": {"details": "Retrieve the number of votes for `account` at the end of `blockNumber`. Requirements: - `blockNumber` must have been already mined"}, "getPriorVotes(address,uint256)": {"details": "Comp version of the {getPastVotes} accessor, with `uint96` return type."}, "getVotes(address)": {"details": "Gets the current votes balance for `account`"}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "nonces(address)": {"details": "See {IERC20Permit-nonces}."}, "numCheckpoints(address)": {"details": "Get number of checkpoints for `account`."}, "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {"details": "See {IERC20Permit-permit}."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20VotesMock": {"contractName": "ERC20VotesMock", "sourceId": "mocks/ERC20VotesMock.sol", "deploymentBytecode": {"bytecode": "0x6101606040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610140523480156200003757600080fd5b50604051620021a3380380620021a38339810160408190526200005a91620002b7565b8180604051806040016040528060018152602001603160f81b815250848481600390805190602001906200009092919062000144565b508051620000a690600490602084019062000144565b5050825160208085019190912083518483012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c0019052805194019390932091935091906080523060c05261012052506200035d95505050505050565b828054620001529062000321565b90600052602060002090601f016020900481019282620001765760008555620001c1565b82601f106200019157805160ff1916838001178555620001c1565b82800160010185558215620001c1579182015b82811115620001c1578251825591602001919060010190620001a4565b50620001cf929150620001d3565b5090565b5b80821115620001cf5760008155600101620001d4565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200021257600080fd5b81516001600160401b03808211156200022f576200022f620001ea565b604051601f8301601f19908116603f011681019082821181831017156200025a576200025a620001ea565b816040528381526020925086838588010111156200027757600080fd5b600091505b838210156200029b57858201830151818301840152908201906200027c565b83821115620002ad5760008385830101525b9695505050505050565b60008060408385031215620002cb57600080fd5b82516001600160401b0380821115620002e357600080fd5b620002f18683870162000200565b935060208501519150808211156200030857600080fd5b50620003178582860162000200565b9150509250929050565b600181811c908216806200033657607f821691505b6020821081036200035757634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161014051611deb620003b8600039600061099d01526000610eb901526000610f0801526000610ee301526000610e3c01526000610e6601526000610e900152611deb6000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80636fcfff45116100de5780639dc29fac11610097578063c3cda52011610071578063c3cda52014610358578063d505accf1461036b578063dd62ed3e1461037e578063f1127ed8146103b757600080fd5b80639dc29fac1461031f578063a457c2d714610332578063a9059cbb1461034557600080fd5b80636fcfff451461028d57806370a08231146102b55780637ecebe00146102de5780638e539e8c146102f157806395d89b41146103045780639ab24eb01461030c57600080fd5b80633644e515116101305780633644e515146101f357806339509351146101fb5780633a46b1a81461020e57806340c10f1914610221578063587cde1e146102365780635c19a95c1461027a57600080fd5b806306fdde0314610178578063095ea7b31461019657806318160ddd146101b957806323b872dd146101cb578063313ce567146101de5780633408e470146101ed575b600080fd5b6101806103f4565b60405161018d9190611a9d565b60405180910390f35b6101a96101a4366004611b0e565b610486565b604051901515815260200161018d565b6002545b60405190815260200161018d565b6101a96101d9366004611b38565b61049c565b6040516012815260200161018d565b466101bd565b6101bd61054b565b6101a9610209366004611b0e565b61055a565b6101bd61021c366004611b0e565b610596565b61023461022f366004611b0e565b610610565b005b610262610244366004611b74565b6001600160a01b039081166000908152600660205260409020541690565b6040516001600160a01b03909116815260200161018d565b610234610288366004611b74565b61061e565b6102a061029b366004611b74565b61062b565b60405163ffffffff909116815260200161018d565b6101bd6102c3366004611b74565b6001600160a01b031660009081526020819052604090205490565b6101bd6102ec366004611b74565b610653565b6101bd6102ff366004611b8f565b610671565b6101806106cd565b6101bd61031a366004611b74565b6106dc565b61023461032d366004611b0e565b610763565b6101a9610340366004611b0e565b61076d565b6101a9610353366004611b0e565b610806565b610234610366366004611bb9565b610813565b610234610379366004611c11565b610949565b6101bd61038c366004611c7b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103ca6103c5366004611cae565b610aad565b60408051825163ffffffff1681526020928301516001600160e01b0316928101929092520161018d565b60606003805461040390611cee565b80601f016020809104026020016040519081016040528092919081815260200182805461042f90611cee565b801561047c5780601f106104515761010080835404028352916020019161047c565b820191906000526020600020905b81548152906001019060200180831161045f57829003601f168201915b5050505050905090565b6000610493338484610b31565b50600192915050565b60006104a9848484610c55565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105335760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105408533858403610b31565b506001949350505050565b6000610555610e2f565b905090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610493918590610591908690611d38565b610b31565b60004382106105e75760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400604482015260640161052a565b6001600160a01b03831660009081526007602052604090206106099083610f56565b9392505050565b61061a8282611013565b5050565b610628338261109d565b50565b6001600160a01b03811660009081526007602052604081205461064d90611116565b92915050565b6001600160a01b03811660009081526005602052604081205461064d565b60004382106106c25760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400604482015260640161052a565b61064d600883610f56565b60606004805461040390611cee565b6001600160a01b0381166000908152600760205260408120548015610750576001600160a01b038316600090815260076020526040902061071e600183611d50565b8154811061072e5761072e611d67565b60009182526020909120015464010000000090046001600160e01b0316610753565b60005b6001600160e01b03169392505050565b61061a828261117f565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156107ef5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161052a565b6107fc3385858403610b31565b5060019392505050565b6000610493338484610c55565b834211156108635760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e61747572652065787069726564000000604482015260640161052a565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b0388169181019190915260608101869052608081018590526000906108dd906108d59060a00160405160208183030381529060405280519060200120611197565b8585856111e5565b90506108e88161120d565b86146109365760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e636500000000000000604482015260640161052a565b610940818861109d565b50505050505050565b834211156109995760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161052a565b60007f00000000000000000000000000000000000000000000000000000000000000008888886109c88c61120d565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610a2382611197565b90506000610a33828787876111e5565b9050896001600160a01b0316816001600160a01b031614610a965760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161052a565b610aa18a8a8a610b31565b50505050505050505050565b60408051808201909152600080825260208201526001600160a01b0383166000908152600760205260409020805463ffffffff8416908110610af157610af1611d67565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6001600160a01b038316610b935760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161052a565b6001600160a01b038216610bf45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161052a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610cb95760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161052a565b6001600160a01b038216610d1b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161052a565b6001600160a01b03831660009081526020819052604090205481811015610d935760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161052a565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610dca908490611d38565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610e1691815260200190565b60405180910390a3610e2984848461123a565b50505050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015610e8857507f000000000000000000000000000000000000000000000000000000000000000046145b15610eb257507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b8154600090815b81811015610fba576000610f71828461126c565b905084868281548110610f8657610f86611d67565b60009182526020909120015463ffffffff161115610fa657809250610fb4565b610fb1816001611d38565b91505b50610f5d565b8115610ffe5784610fcc600184611d50565b81548110610fdc57610fdc611d67565b60009182526020909120015464010000000090046001600160e01b0316611001565b60005b6001600160e01b031695945050505050565b61101d8282611287565b6002546001600160e01b03101561108f5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b606482015260840161052a565b610e29600861136e8361137a565b6001600160a01b038281166000818152600660208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610e298284836114f3565b600063ffffffff82111561117b5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b606482015260840161052a565b5090565b6111898282611630565b610e2960086117858361137a565b600061064d6111a4610e2f565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006111f687878787611791565b915091506112038161187e565b5095945050505050565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b505050565b6001600160a01b03838116600090815260066020526040808220548584168352912054611235929182169116836114f3565b600061127b6002848418611d7d565b61060990848416611d38565b6001600160a01b0382166112dd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161052a565b80600260008282546112ef9190611d38565b90915550506001600160a01b0382166000908152602081905260408120805483929061131c908490611d38565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361061a6000838361123a565b60006106098284611d38565b8254600090819080156113c55785611393600183611d50565b815481106113a3576113a3611d67565b60009182526020909120015464010000000090046001600160e01b03166113c8565b60005b6001600160e01b031692506113e183858763ffffffff16565b915060008111801561141f575043866113fb600184611d50565b8154811061140b5761140b611d67565b60009182526020909120015463ffffffff16145b1561147f5761142d82611a34565b86611439600184611d50565b8154811061144957611449611d67565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b031602179055506114ea565b85604051806040016040528061149443611116565b63ffffffff1681526020016114a885611a34565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b816001600160a01b0316836001600160a01b0316141580156115155750600081115b15611235576001600160a01b038316156115a3576001600160a01b03831660009081526007602052604081208190611550906117858561137a565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611598929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611235576001600160a01b038216600090815260076020526040812081906115d99061136e8561137a565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611621929190918252602082015260400190565b60405180910390a25050505050565b6001600160a01b0382166116905760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161052a565b6001600160a01b038216600090815260208190526040902054818110156117045760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161052a565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611733908490611d50565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36112358360008461123a565b60006106098284611d50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156117c85750600090506003611875565b8460ff16601b141580156117e057508460ff16601c14155b156117f15750600090506004611875565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611845573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661186e57600060019250925050611875565b9150600090505b94509492505050565b600081600481111561189257611892611d9f565b0361189a5750565b60018160048111156118ae576118ae611d9f565b036118fb5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161052a565b600281600481111561190f5761190f611d9f565b0361195c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161052a565b600381600481111561197057611970611d9f565b036119c85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161052a565b60048160048111156119dc576119dc611d9f565b036106285760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161052a565b60006001600160e01b0382111561117b5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b606482015260840161052a565b600060208083528351808285015260005b81811015611aca57858101830151858201604001528201611aae565b81811115611adc576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114611b0957600080fd5b919050565b60008060408385031215611b2157600080fd5b611b2a83611af2565b946020939093013593505050565b600080600060608486031215611b4d57600080fd5b611b5684611af2565b9250611b6460208501611af2565b9150604084013590509250925092565b600060208284031215611b8657600080fd5b61060982611af2565b600060208284031215611ba157600080fd5b5035919050565b803560ff81168114611b0957600080fd5b60008060008060008060c08789031215611bd257600080fd5b611bdb87611af2565b95506020870135945060408701359350611bf760608801611ba8565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a031215611c2c57600080fd5b611c3588611af2565b9650611c4360208901611af2565b95506040880135945060608801359350611c5f60808901611ba8565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215611c8e57600080fd5b611c9783611af2565b9150611ca560208401611af2565b90509250929050565b60008060408385031215611cc157600080fd5b611cca83611af2565b9150602083013563ffffffff81168114611ce357600080fd5b809150509250929050565b600181811c90821680611d0257607f821691505b60208210810361122f57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611d4b57611d4b611d22565b500190565b600082821015611d6257611d62611d22565b500390565b634e487b7160e01b600052603260045260246000fd5b600082611d9a57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220d30d39e09bbfbe56fa102a322c6a50a8a925dee0418389ab5dd0f46d060953bb64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101735760003560e01c80636fcfff45116100de5780639dc29fac11610097578063c3cda52011610071578063c3cda52014610358578063d505accf1461036b578063dd62ed3e1461037e578063f1127ed8146103b757600080fd5b80639dc29fac1461031f578063a457c2d714610332578063a9059cbb1461034557600080fd5b80636fcfff451461028d57806370a08231146102b55780637ecebe00146102de5780638e539e8c146102f157806395d89b41146103045780639ab24eb01461030c57600080fd5b80633644e515116101305780633644e515146101f357806339509351146101fb5780633a46b1a81461020e57806340c10f1914610221578063587cde1e146102365780635c19a95c1461027a57600080fd5b806306fdde0314610178578063095ea7b31461019657806318160ddd146101b957806323b872dd146101cb578063313ce567146101de5780633408e470146101ed575b600080fd5b6101806103f4565b60405161018d9190611a9d565b60405180910390f35b6101a96101a4366004611b0e565b610486565b604051901515815260200161018d565b6002545b60405190815260200161018d565b6101a96101d9366004611b38565b61049c565b6040516012815260200161018d565b466101bd565b6101bd61054b565b6101a9610209366004611b0e565b61055a565b6101bd61021c366004611b0e565b610596565b61023461022f366004611b0e565b610610565b005b610262610244366004611b74565b6001600160a01b039081166000908152600660205260409020541690565b6040516001600160a01b03909116815260200161018d565b610234610288366004611b74565b61061e565b6102a061029b366004611b74565b61062b565b60405163ffffffff909116815260200161018d565b6101bd6102c3366004611b74565b6001600160a01b031660009081526020819052604090205490565b6101bd6102ec366004611b74565b610653565b6101bd6102ff366004611b8f565b610671565b6101806106cd565b6101bd61031a366004611b74565b6106dc565b61023461032d366004611b0e565b610763565b6101a9610340366004611b0e565b61076d565b6101a9610353366004611b0e565b610806565b610234610366366004611bb9565b610813565b610234610379366004611c11565b610949565b6101bd61038c366004611c7b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103ca6103c5366004611cae565b610aad565b60408051825163ffffffff1681526020928301516001600160e01b0316928101929092520161018d565b60606003805461040390611cee565b80601f016020809104026020016040519081016040528092919081815260200182805461042f90611cee565b801561047c5780601f106104515761010080835404028352916020019161047c565b820191906000526020600020905b81548152906001019060200180831161045f57829003601f168201915b5050505050905090565b6000610493338484610b31565b50600192915050565b60006104a9848484610c55565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105335760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105408533858403610b31565b506001949350505050565b6000610555610e2f565b905090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610493918590610591908690611d38565b610b31565b60004382106105e75760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400604482015260640161052a565b6001600160a01b03831660009081526007602052604090206106099083610f56565b9392505050565b61061a8282611013565b5050565b610628338261109d565b50565b6001600160a01b03811660009081526007602052604081205461064d90611116565b92915050565b6001600160a01b03811660009081526005602052604081205461064d565b60004382106106c25760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e656400604482015260640161052a565b61064d600883610f56565b60606004805461040390611cee565b6001600160a01b0381166000908152600760205260408120548015610750576001600160a01b038316600090815260076020526040902061071e600183611d50565b8154811061072e5761072e611d67565b60009182526020909120015464010000000090046001600160e01b0316610753565b60005b6001600160e01b03169392505050565b61061a828261117f565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156107ef5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161052a565b6107fc3385858403610b31565b5060019392505050565b6000610493338484610c55565b834211156108635760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e61747572652065787069726564000000604482015260640161052a565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b0388169181019190915260608101869052608081018590526000906108dd906108d59060a00160405160208183030381529060405280519060200120611197565b8585856111e5565b90506108e88161120d565b86146109365760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e636500000000000000604482015260640161052a565b610940818861109d565b50505050505050565b834211156109995760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161052a565b60007f00000000000000000000000000000000000000000000000000000000000000008888886109c88c61120d565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610a2382611197565b90506000610a33828787876111e5565b9050896001600160a01b0316816001600160a01b031614610a965760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161052a565b610aa18a8a8a610b31565b50505050505050505050565b60408051808201909152600080825260208201526001600160a01b0383166000908152600760205260409020805463ffffffff8416908110610af157610af1611d67565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6001600160a01b038316610b935760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161052a565b6001600160a01b038216610bf45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161052a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610cb95760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161052a565b6001600160a01b038216610d1b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161052a565b6001600160a01b03831660009081526020819052604090205481811015610d935760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161052a565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610dca908490611d38565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610e1691815260200190565b60405180910390a3610e2984848461123a565b50505050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015610e8857507f000000000000000000000000000000000000000000000000000000000000000046145b15610eb257507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b8154600090815b81811015610fba576000610f71828461126c565b905084868281548110610f8657610f86611d67565b60009182526020909120015463ffffffff161115610fa657809250610fb4565b610fb1816001611d38565b91505b50610f5d565b8115610ffe5784610fcc600184611d50565b81548110610fdc57610fdc611d67565b60009182526020909120015464010000000090046001600160e01b0316611001565b60005b6001600160e01b031695945050505050565b61101d8282611287565b6002546001600160e01b03101561108f5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b606482015260840161052a565b610e29600861136e8361137a565b6001600160a01b038281166000818152600660208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610e298284836114f3565b600063ffffffff82111561117b5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b606482015260840161052a565b5090565b6111898282611630565b610e2960086117858361137a565b600061064d6111a4610e2f565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006111f687878787611791565b915091506112038161187e565b5095945050505050565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b505050565b6001600160a01b03838116600090815260066020526040808220548584168352912054611235929182169116836114f3565b600061127b6002848418611d7d565b61060990848416611d38565b6001600160a01b0382166112dd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161052a565b80600260008282546112ef9190611d38565b90915550506001600160a01b0382166000908152602081905260408120805483929061131c908490611d38565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361061a6000838361123a565b60006106098284611d38565b8254600090819080156113c55785611393600183611d50565b815481106113a3576113a3611d67565b60009182526020909120015464010000000090046001600160e01b03166113c8565b60005b6001600160e01b031692506113e183858763ffffffff16565b915060008111801561141f575043866113fb600184611d50565b8154811061140b5761140b611d67565b60009182526020909120015463ffffffff16145b1561147f5761142d82611a34565b86611439600184611d50565b8154811061144957611449611d67565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b031602179055506114ea565b85604051806040016040528061149443611116565b63ffffffff1681526020016114a885611a34565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b816001600160a01b0316836001600160a01b0316141580156115155750600081115b15611235576001600160a01b038316156115a3576001600160a01b03831660009081526007602052604081208190611550906117858561137a565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611598929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611235576001600160a01b038216600090815260076020526040812081906115d99061136e8561137a565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611621929190918252602082015260400190565b60405180910390a25050505050565b6001600160a01b0382166116905760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161052a565b6001600160a01b038216600090815260208190526040902054818110156117045760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161052a565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611733908490611d50565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36112358360008461123a565b60006106098284611d50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156117c85750600090506003611875565b8460ff16601b141580156117e057508460ff16601c14155b156117f15750600090506004611875565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611845573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661186e57600060019250925050611875565b9150600090505b94509492505050565b600081600481111561189257611892611d9f565b0361189a5750565b60018160048111156118ae576118ae611d9f565b036118fb5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161052a565b600281600481111561190f5761190f611d9f565b0361195c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161052a565b600381600481111561197057611970611d9f565b036119c85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161052a565b60048160048111156119dc576119dc611d9f565b036106285760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161052a565b60006001600160e01b0382111561117b5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b606482015260840161052a565b600060208083528351808285015260005b81811015611aca57858101830151858201604001528201611aae565b81811115611adc576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114611b0957600080fd5b919050565b60008060408385031215611b2157600080fd5b611b2a83611af2565b946020939093013593505050565b600080600060608486031215611b4d57600080fd5b611b5684611af2565b9250611b6460208501611af2565b9150604084013590509250925092565b600060208284031215611b8657600080fd5b61060982611af2565b600060208284031215611ba157600080fd5b5035919050565b803560ff81168114611b0957600080fd5b60008060008060008060c08789031215611bd257600080fd5b611bdb87611af2565b95506020870135945060408701359350611bf760608801611ba8565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a031215611c2c57600080fd5b611c3588611af2565b9650611c4360208901611af2565b95506040880135945060608801359350611c5f60808901611ba8565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215611c8e57600080fd5b611c9783611af2565b9150611ca560208401611af2565b90509250929050565b60008060408385031215611cc157600080fd5b611cca83611af2565b9150602083013563ffffffff81168114611ce357600080fd5b809150509250929050565b600181811c90821680611d0257607f821691505b60208210810361122f57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611d4b57611d4b611d22565b500190565b600082821015611d6257611d62611d22565b500390565b634e487b7160e01b600052603260045260246000fd5b600082611d9a57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220d30d39e09bbfbe56fa102a322c6a50a8a925dee0418389ab5dd0f46d060953bb64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "DelegateChanged", "inputs": [{"name": "delegator", "type": "address", "internalType": "address", "indexed": true}, {"name": "fromDelegate", "type": "address", "internalType": "address", "indexed": true}, {"name": "toDelegate", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "DelegateVotesChanged", "inputs": [{"name": "delegate", "type": "address", "internalType": "address", "indexed": true}, {"name": "previousBalance", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newBalance", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "DOMAIN_SEPARATOR", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "checkpoints", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "pos", "type": "uint32", "internalType": "uint32"}], "outputs": [{"name": "", "type": "tuple", "components": [{"name": "fromBlock", "type": "uint32", "internalType": "uint32"}, {"name": "votes", "type": "uint224", "internalType": "uint224"}], "internalType": "struct ERC20Votes.Checkpoint"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "delegate", "stateMutability": "nonpayable", "inputs": [{"name": "delegatee", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "delegateBySig", "stateMutability": "nonpayable", "inputs": [{"name": "delegatee", "type": "address", "internalType": "address"}, {"name": "nonce", "type": "uint256", "internalType": "uint256"}, {"name": "expiry", "type": "uint256", "internalType": "uint256"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "delegates", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getChainId", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getPastTotalSupply", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getPastVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "nonces", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "numCheckpoints", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint32", "internalType": "uint32"}]}, {"type": "function", "name": "permit", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "deadline", "type": "uint256", "internalType": "uint256"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"DOMAIN_SEPARATOR()": {"details": "See {IERC20Permit-DOMAIN_SEPARATOR}."}, "allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "checkpoints(address,uint32)": {"details": "Get the `pos`-th checkpoint for `account`."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "delegate(address)": {"details": "Delegate votes from the sender to `delegatee`."}, "delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32)": {"details": "Delegates votes from signer to `delegatee`"}, "delegates(address)": {"details": "Get the address `account` is currently delegating to."}, "getPastTotalSupply(uint256)": {"details": "Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances. It is but NOT the sum of all the delegated votes! Requirements: - `blockNumber` must have been already mined"}, "getPastVotes(address,uint256)": {"details": "Retrieve the number of votes for `account` at the end of `blockNumber`. Requirements: - `blockNumber` must have been already mined"}, "getVotes(address)": {"details": "Gets the current votes balance for `account`"}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "nonces(address)": {"details": "See {IERC20Permit-nonces}."}, "numCheckpoints(address)": {"details": "Get number of checkpoints for `account`."}, "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {"details": "See {IERC20Permit-permit}."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20WrapperMock": {"contractName": "ERC20WrapperMock", "sourceId": "mocks/ERC20WrapperMock.sol", "deploymentBytecode": {"bytecode": "0x60a06040523480156200001157600080fd5b5060405162001329380380620013298339810160408190526200003491620001f1565b82828281600390805190602001906200004f9291906200007e565b508051620000659060049060208401906200007e565b5050506001600160a01b031660805250620002b7915050565b8280546200008c906200027b565b90600052602060002090601f016020900481019282620000b05760008555620000fb565b82601f10620000cb57805160ff1916838001178555620000fb565b82800160010185558215620000fb579182015b82811115620000fb578251825591602001919060010190620000de565b50620001099291506200010d565b5090565b5b808211156200010957600081556001016200010e565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200014c57600080fd5b81516001600160401b038082111562000169576200016962000124565b604051601f8301601f19908116603f0116810190828211818310171562000194576200019462000124565b81604052838152602092508683858801011115620001b157600080fd5b600091505b83821015620001d55785820183015181830184015290820190620001b6565b83821115620001e75760008385830101525b9695505050505050565b6000806000606084860312156200020757600080fd5b83516001600160a01b03811681146200021f57600080fd5b60208501519093506001600160401b03808211156200023d57600080fd5b6200024b878388016200013a565b935060408601519150808211156200026257600080fd5b5062000271868287016200013a565b9150509250925092565b600181811c908216806200029057607f821691505b602082108103620002b157634e487b7160e01b600052602260045260246000fd5b50919050565b608051611041620002e8600039600081816101c40152818161035801528181610436015261069e01526110416000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063313ce5671161009757806395d89b411161006657806395d89b4114610227578063a457c2d71461022f578063a9059cbb14610242578063dd62ed3e1461025557600080fd5b8063313ce5671461019d57806339509351146101ac5780636f307dc3146101bf57806370a08231146101fe57600080fd5b806318160ddd116100d357806318160ddd1461015c578063205c28781461016457806323b872dd146101775780632f4f21e21461018a57600080fd5b806306fdde03146100fa578063095ea7b3146101185780630cd865ec1461013b575b600080fd5b61010261028e565b60405161010f9190610e32565b60405180910390f35b61012b610126366004610e81565b610320565b604051901515815260200161010f565b61014e610149366004610eab565b610336565b60405190815260200161010f565b60025461014e565b61012b610172366004610e81565b610347565b61012b610185366004610ec6565b61037e565b61012b610198366004610e81565b61042f565b6040516012815260200161010f565b61012b6101ba366004610e81565b610467565b6101e67f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161010f565b61014e61020c366004610eab565b6001600160a01b031660009081526020819052604090205490565b6101026104a3565b61012b61023d366004610e81565b6104b2565b61012b610250366004610e81565b61054b565b61014e610263366004610f02565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461029d90610f35565b80601f01602080910402602001604051908101604052809291908181526020018280546102c990610f35565b80156103165780601f106102eb57610100808354040283529160200191610316565b820191906000526020600020905b8154815290600101906020018083116102f957829003601f168201915b5050505050905090565b600061032d338484610558565b50600192915050565b60006103418261067d565b92915050565b60006103533383610727565b61032d7f00000000000000000000000000000000000000000000000000000000000000008484610872565b600061038b8484846108d5565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104155760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6104228533858403610558565b60019150505b9392505050565b600061045d7f0000000000000000000000000000000000000000000000000000000000000000333085610aa5565b61032d8383610add565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161032d91859061049e908690610f85565b610558565b60606004805461029d90610f35565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156105345760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161040c565b6105413385858403610558565b5060019392505050565b600061032d3384846108d5565b6001600160a01b0383166105ba5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161040c565b6001600160a01b03821661061b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161040c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60008061068960025490565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156106ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107119190610f9d565b61071b9190610fb6565b90506103418382610add565b6001600160a01b0382166107875760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161040c565b6001600160a01b038216600090815260208190526040902054818110156107fb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161040c565b6001600160a01b038316600090815260208190526040812083830390556002805484929061082a908490610fb6565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610670565b505050565b6040516001600160a01b03831660248201526044810182905261086d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610bbc565b6001600160a01b0383166109395760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161040c565b6001600160a01b03821661099b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161040c565b6001600160a01b03831660009081526020819052604090205481811015610a135760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161040c565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610a4a908490610f85565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a9691815260200190565b60405180910390a35b50505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a9f9085906323b872dd60e01b9060840161089e565b6001600160a01b038216610b335760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161040c565b8060026000828254610b459190610f85565b90915550506001600160a01b03821660009081526020819052604081208054839290610b72908490610f85565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000610c11826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c8e9092919063ffffffff16565b80519091501561086d5780806020019051810190610c2f9190610fcd565b61086d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161040c565b6060610c9d8484600085610ca5565b949350505050565b606082471015610d065760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161040c565b843b610d545760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161040c565b600080866001600160a01b03168587604051610d709190610fef565b60006040518083038185875af1925050503d8060008114610dad576040519150601f19603f3d011682016040523d82523d6000602084013e610db2565b606091505b5091509150610dc2828286610dcd565b979650505050505050565b60608315610ddc575081610428565b825115610dec5782518084602001fd5b8160405162461bcd60e51b815260040161040c9190610e32565b60005b83811015610e21578181015183820152602001610e09565b83811115610a9f5750506000910152565b6020815260008251806020840152610e51816040850160208701610e06565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114610e7c57600080fd5b919050565b60008060408385031215610e9457600080fd5b610e9d83610e65565b946020939093013593505050565b600060208284031215610ebd57600080fd5b61042882610e65565b600080600060608486031215610edb57600080fd5b610ee484610e65565b9250610ef260208501610e65565b9150604084013590509250925092565b60008060408385031215610f1557600080fd5b610f1e83610e65565b9150610f2c60208401610e65565b90509250929050565b600181811c90821680610f4957607f821691505b602082108103610f6957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610f9857610f98610f6f565b500190565b600060208284031215610faf57600080fd5b5051919050565b600082821015610fc857610fc8610f6f565b500390565b600060208284031215610fdf57600080fd5b8151801515811461042857600080fd5b60008251611001818460208701610e06565b919091019291505056fea2646970667358221220e36e49c4fe4caf7424a8393f40f5777fa00b063fd445fbad24e5955efb796ce864736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063313ce5671161009757806395d89b411161006657806395d89b4114610227578063a457c2d71461022f578063a9059cbb14610242578063dd62ed3e1461025557600080fd5b8063313ce5671461019d57806339509351146101ac5780636f307dc3146101bf57806370a08231146101fe57600080fd5b806318160ddd116100d357806318160ddd1461015c578063205c28781461016457806323b872dd146101775780632f4f21e21461018a57600080fd5b806306fdde03146100fa578063095ea7b3146101185780630cd865ec1461013b575b600080fd5b61010261028e565b60405161010f9190610e32565b60405180910390f35b61012b610126366004610e81565b610320565b604051901515815260200161010f565b61014e610149366004610eab565b610336565b60405190815260200161010f565b60025461014e565b61012b610172366004610e81565b610347565b61012b610185366004610ec6565b61037e565b61012b610198366004610e81565b61042f565b6040516012815260200161010f565b61012b6101ba366004610e81565b610467565b6101e67f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161010f565b61014e61020c366004610eab565b6001600160a01b031660009081526020819052604090205490565b6101026104a3565b61012b61023d366004610e81565b6104b2565b61012b610250366004610e81565b61054b565b61014e610263366004610f02565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461029d90610f35565b80601f01602080910402602001604051908101604052809291908181526020018280546102c990610f35565b80156103165780601f106102eb57610100808354040283529160200191610316565b820191906000526020600020905b8154815290600101906020018083116102f957829003601f168201915b5050505050905090565b600061032d338484610558565b50600192915050565b60006103418261067d565b92915050565b60006103533383610727565b61032d7f00000000000000000000000000000000000000000000000000000000000000008484610872565b600061038b8484846108d5565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104155760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6104228533858403610558565b60019150505b9392505050565b600061045d7f0000000000000000000000000000000000000000000000000000000000000000333085610aa5565b61032d8383610add565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161032d91859061049e908690610f85565b610558565b60606004805461029d90610f35565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156105345760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161040c565b6105413385858403610558565b5060019392505050565b600061032d3384846108d5565b6001600160a01b0383166105ba5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161040c565b6001600160a01b03821661061b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161040c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60008061068960025490565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156106ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107119190610f9d565b61071b9190610fb6565b90506103418382610add565b6001600160a01b0382166107875760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161040c565b6001600160a01b038216600090815260208190526040902054818110156107fb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161040c565b6001600160a01b038316600090815260208190526040812083830390556002805484929061082a908490610fb6565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610670565b505050565b6040516001600160a01b03831660248201526044810182905261086d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610bbc565b6001600160a01b0383166109395760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161040c565b6001600160a01b03821661099b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161040c565b6001600160a01b03831660009081526020819052604090205481811015610a135760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161040c565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610a4a908490610f85565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a9691815260200190565b60405180910390a35b50505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a9f9085906323b872dd60e01b9060840161089e565b6001600160a01b038216610b335760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161040c565b8060026000828254610b459190610f85565b90915550506001600160a01b03821660009081526020819052604081208054839290610b72908490610f85565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000610c11826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c8e9092919063ffffffff16565b80519091501561086d5780806020019051810190610c2f9190610fcd565b61086d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161040c565b6060610c9d8484600085610ca5565b949350505050565b606082471015610d065760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161040c565b843b610d545760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161040c565b600080866001600160a01b03168587604051610d709190610fef565b60006040518083038185875af1925050503d8060008114610dad576040519150601f19603f3d011682016040523d82523d6000602084013e610db2565b606091505b5091509150610dc2828286610dcd565b979650505050505050565b60608315610ddc575081610428565b825115610dec5782518084602001fd5b8160405162461bcd60e51b815260040161040c9190610e32565b60005b83811015610e21578181015183820152602001610e09565b83811115610a9f5750506000910152565b6020815260008251806020840152610e51816040850160208701610e06565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114610e7c57600080fd5b919050565b60008060408385031215610e9457600080fd5b610e9d83610e65565b946020939093013593505050565b600060208284031215610ebd57600080fd5b61042882610e65565b600080600060608486031215610edb57600080fd5b610ee484610e65565b9250610ef260208501610e65565b9150604084013590509250925092565b60008060408385031215610f1557600080fd5b610f1e83610e65565b9150610f2c60208401610e65565b90509250929050565b600181811c90821680610f4957607f821691505b602082108103610f6957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610f9857610f98610f6f565b500190565b600060208284031215610faf57600080fd5b5051919050565b600082821015610fc857610fc8610f6f565b500390565b600060208284031215610fdf57600080fd5b8151801515811461042857600080fd5b60008251611001818460208701610e06565b919091019291505056fea2646970667358221220e36e49c4fe4caf7424a8393f40f5777fa00b063fd445fbad24e5955efb796ce864736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "_underlyingToken", "type": "address", "internalType": "contract IERC20"}, {"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "depositFor", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "recover", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "underlying", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract IERC20"}]}, {"type": "function", "name": "withdrawTo", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "depositFor(address,uint256)": {"details": "Allow a user to deposit underlying tokens and mint the corresponding number of wrapped tokens."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}, "withdrawTo(address,uint256)": {"details": "Allow a user to burn a number of wrapped tokens and withdraw the corresponding number of underlying tokens."}}, "version": 1}}, "ERC2771ContextMock": {"contractName": "ERC2771ContextMock", "sourceId": "mocks/ERC2771ContextMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5060405161044838038061044883398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b6103b5806100936000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063376bf26214610046578063572b6c051461005b578063d737d0c714610091575b600080fd5b6100596100543660046101bd565b610099565b005b61007d610069366004610278565b6000546001600160a01b0391821691161490565b604051901515815260200160405180910390f35b6100596100e0565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea06100c2610126565b84846040516100d494939291906102a8565b60405180910390a15050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc610109610139565b6040516001600160a01b03909116815260200160405180910390a1565b366000610131610148565b915091509091565b6000610143610182565b905090565b600080543691906001600160a01b0316330361017a576000803661016d601482610330565b9261013193929190610355565b600036610131565b600080546001600160a01b031633036101a2575060131936013560601c90565b503390565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156101d057600080fd5b82359150602083013567ffffffffffffffff808211156101ef57600080fd5b818501915085601f83011261020357600080fd5b813581811115610215576102156101a7565b604051601f8201601f19908116603f0116810190838211818310171561023d5761023d6101a7565b8160405282815288602084870101111561025657600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60006020828403121561028a57600080fd5b81356001600160a01b03811681146102a157600080fd5b9392505050565b60608152836060820152838560808301376000608085830101526000601f1980601f8701168301602086818601526080858303016040860152855180608084015260005b818110156103085787810183015184820160a0015282016102ec565b8181111561031a57600060a083860101525b50601f019092160160a001979650505050505050565b60008282101561035057634e487b7160e01b600052601160045260246000fd5b500390565b6000808585111561036557600080fd5b8386111561037257600080fd5b505082019391909203915056fea264697066735822122020d82525349ab70b3dd2c7cc565853e2526cfcc9be24f20f23e9be8bcded6efe64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063376bf26214610046578063572b6c051461005b578063d737d0c714610091575b600080fd5b6100596100543660046101bd565b610099565b005b61007d610069366004610278565b6000546001600160a01b0391821691161490565b604051901515815260200160405180910390f35b6100596100e0565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea06100c2610126565b84846040516100d494939291906102a8565b60405180910390a15050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc610109610139565b6040516001600160a01b03909116815260200160405180910390a1565b366000610131610148565b915091509091565b6000610143610182565b905090565b600080543691906001600160a01b0316330361017a576000803661016d601482610330565b9261013193929190610355565b600036610131565b600080546001600160a01b031633036101a2575060131936013560601c90565b503390565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156101d057600080fd5b82359150602083013567ffffffffffffffff808211156101ef57600080fd5b818501915085601f83011261020357600080fd5b813581811115610215576102156101a7565b604051601f8201601f19908116603f0116810190838211818310171561023d5761023d6101a7565b8160405282815288602084870101111561025657600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60006020828403121561028a57600080fd5b81356001600160a01b03811681146102a157600080fd5b9392505050565b60608152836060820152838560808301376000608085830101526000601f1980601f8701168301602086818601526080858303016040860152855180608084015260005b818110156103085787810183015184820160a0015282016102ec565b8181111561031a57600060a083860101525b50601f019092160160a001979650505050505050565b60008282101561035057634e487b7160e01b600052601160045260246000fd5b500390565b6000808585111561036557600080fd5b8386111561037257600080fd5b505082019391909203915056fea264697066735822122020d82525349ab70b3dd2c7cc565853e2526cfcc9be24f20f23e9be8bcded6efe64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "trustedForwarder", "type": "address", "internalType": "address"}]}, {"type": "event", "name": "Data", "inputs": [{"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "integerValue", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "stringValue", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Sender", "inputs": [{"name": "sender", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "isTrustedForwarder", "stateMutability": "view", "inputs": [{"name": "forwarder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "msgData", "stateMutability": "nonpayable", "inputs": [{"name": "integerValue", "type": "uint256", "internalType": "uint256"}, {"name": "stringValue", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "msgSender", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC3156FlashBorrowerMock": {"contractName": "ERC3156FlashBorrowerMock", "sourceId": "mocks/ERC3156FlashBorrowerMock.sol", "deploymentBytecode": {"bytecode": "0x60c060405234801561001057600080fd5b5060405161075538038061075583398101604081905261002f91610053565b1515608052151560a052610086565b8051801515811461004e57600080fd5b919050565b6000806040838503121561006657600080fd5b61006f8361003e565b915061007d6020840161003e565b90509250929050565b60805160a0516106aa6100ab60003960006102c50152600061021401526106aa6000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806323e30c8b14610030575b600080fd5b61004361003e3660046104ee565b610055565b60405190815260200160405180910390f35b6000336001600160a01b0387161461006c57600080fd5b6040516370a0823160e01b815230600482018190527f6ff2acfcb07917b1e80e53f0fe390b467b1151d15b38730a6e08397799c05a8b918891906001600160a01b038316906370a0823190602401602060405180830381865afa1580156100d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100fb9190610594565b604080516001600160a01b0394851681529390921660208401529082015260600160405180910390a17f7249fd4c03cce09b30a13d77804b198e2647c0ccd59eadf4de4e7c16099badc586876001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610184573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a89190610594565b604080516001600160a01b03909316835260208301919091520160405180910390a18115610212576102108684848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061031c92505050565b505b7f0000000000000000000000000000000000000000000000000000000000000000156102c3576001600160a01b03861663095ea7b38761025287896105ad565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561029d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c191906105d3565b505b7f00000000000000000000000000000000000000000000000000000000000000006102ef576000610311565b7f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd95b979650505050505050565b606061035e83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610365565b9392505050565b6060610374848460008561037c565b949350505050565b6060824710156103e25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084015b60405180910390fd5b843b6104305760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103d9565b600080866001600160a01b0316858760405161044c9190610625565b60006040518083038185875af1925050503d8060008114610489576040519150601f19603f3d011682016040523d82523d6000602084013e61048e565b606091505b5091509150610311828286606083156104a857508161035e565b8251156104b85782518084602001fd5b8160405162461bcd60e51b81526004016103d99190610641565b80356001600160a01b03811681146104e957600080fd5b919050565b60008060008060008060a0878903121561050757600080fd5b610510876104d2565b955061051e602088016104d2565b94506040870135935060608701359250608087013567ffffffffffffffff8082111561054957600080fd5b818901915089601f83011261055d57600080fd5b81358181111561056c57600080fd5b8a602082850101111561057e57600080fd5b6020830194508093505050509295509295509295565b6000602082840312156105a657600080fd5b5051919050565b600082198211156105ce57634e487b7160e01b600052601160045260246000fd5b500190565b6000602082840312156105e557600080fd5b8151801515811461035e57600080fd5b60005b838110156106105781810151838201526020016105f8565b8381111561061f576000848401525b50505050565b600082516106378184602087016105f5565b9190910192915050565b60208152600082518060208401526106608160408501602087016105f5565b601f01601f1916919091016040019291505056fea264697066735822122064d4bc380a23414e58d914af53a01ef0f8fa553f7aff73a62eaa4d4deaf455ef64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806323e30c8b14610030575b600080fd5b61004361003e3660046104ee565b610055565b60405190815260200160405180910390f35b6000336001600160a01b0387161461006c57600080fd5b6040516370a0823160e01b815230600482018190527f6ff2acfcb07917b1e80e53f0fe390b467b1151d15b38730a6e08397799c05a8b918891906001600160a01b038316906370a0823190602401602060405180830381865afa1580156100d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100fb9190610594565b604080516001600160a01b0394851681529390921660208401529082015260600160405180910390a17f7249fd4c03cce09b30a13d77804b198e2647c0ccd59eadf4de4e7c16099badc586876001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610184573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a89190610594565b604080516001600160a01b03909316835260208301919091520160405180910390a18115610212576102108684848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061031c92505050565b505b7f0000000000000000000000000000000000000000000000000000000000000000156102c3576001600160a01b03861663095ea7b38761025287896105ad565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561029d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c191906105d3565b505b7f00000000000000000000000000000000000000000000000000000000000000006102ef576000610311565b7f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd95b979650505050505050565b606061035e83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610365565b9392505050565b6060610374848460008561037c565b949350505050565b6060824710156103e25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084015b60405180910390fd5b843b6104305760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103d9565b600080866001600160a01b0316858760405161044c9190610625565b60006040518083038185875af1925050503d8060008114610489576040519150601f19603f3d011682016040523d82523d6000602084013e61048e565b606091505b5091509150610311828286606083156104a857508161035e565b8251156104b85782518084602001fd5b8160405162461bcd60e51b81526004016103d99190610641565b80356001600160a01b03811681146104e957600080fd5b919050565b60008060008060008060a0878903121561050757600080fd5b610510876104d2565b955061051e602088016104d2565b94506040870135935060608701359250608087013567ffffffffffffffff8082111561054957600080fd5b818901915089601f83011261055d57600080fd5b81358181111561056c57600080fd5b8a602082850101111561057e57600080fd5b6020830194508093505050509295509295509295565b6000602082840312156105a657600080fd5b5051919050565b600082198211156105ce57634e487b7160e01b600052601160045260246000fd5b500190565b6000602082840312156105e557600080fd5b8151801515811461035e57600080fd5b60005b838110156106105781810151838201526020016105f8565b8381111561061f576000848401525b50505050565b600082516106378184602087016105f5565b9190910192915050565b60208152600082518060208401526106608160408501602087016105f5565b601f01601f1916919091016040019291505056fea264697066735822122064d4bc380a23414e58d914af53a01ef0f8fa553f7aff73a62eaa4d4deaf455ef64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "enableReturn", "type": "bool", "internalType": "bool"}, {"name": "enableApprove", "type": "bool", "internalType": "bool"}]}, {"type": "event", "name": "BalanceOf", "inputs": [{"name": "token", "type": "address", "internalType": "address", "indexed": false}, {"name": "account", "type": "address", "internalType": "address", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TotalSupply", "inputs": [{"name": "token", "type": "address", "internalType": "address", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "onFlashLoan", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "token", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "fee", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "WARNING: this IERC3156FlashBorrower mock implementation is for testing purposes ONLY. Writing a secure flash lock borrower is not an easy task, and should be done with the utmost care. This is not an example of how it should be done, and no pattern present in this mock should be considered secure. Following best practices, always have your contract properly audited before using them to manipulate important funds on live networks.", "kind": "dev", "methods": {}, "version": 1}}, "ERC721BurnableMock": {"contractName": "ERC721BurnableMock", "sourceId": "mocks/ERC721BurnableMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b50604051620018de380380620018de8339810160408190526200003491620001e1565b8151829082906200004d9060009060208501906200006e565b508051620000639060019060208401906200006e565b505050505062000287565b8280546200007c906200024b565b90600052602060002090601f016020900481019282620000a05760008555620000eb565b82601f10620000bb57805160ff1916838001178555620000eb565b82800160010185558215620000eb579182015b82811115620000eb578251825591602001919060010190620000ce565b50620000f9929150620000fd565b5090565b5b80821115620000f95760008155600101620000fe565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013c57600080fd5b81516001600160401b038082111562000159576200015962000114565b604051601f8301601f19908116603f0116810190828211818310171562000184576200018462000114565b81604052838152602092508683858801011115620001a157600080fd5b600091505b83821015620001c55785820183015181830184015290820190620001a6565b83821115620001d75760008385830101525b9695505050505050565b60008060408385031215620001f557600080fd5b82516001600160401b03808211156200020d57600080fd5b6200021b868387016200012a565b935060208501519150808211156200023257600080fd5b5062000241858286016200012a565b9150509250929050565b600181811c908216806200026057607f821691505b6020821081036200028157634e487b7160e01b600052602260045260246000fd5b50919050565b61164780620002976000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80636352211e116100a2578063a144819411610071578063a144819414610246578063a22cb46514610259578063b88d4fde1461026c578063c87b56dd1461027f578063e985e9c51461029257600080fd5b80636352211e146101f757806370a082311461020a5780638832e6e31461022b57806395d89b411461023e57600080fd5b806323b872dd116100e957806323b872dd1461019857806340c10f19146101ab57806342842e0e146101be57806342966c68146101d15780634f558e79146101e457600080fd5b806301ffc9a71461011b57806306fdde0314610143578063081812fc14610158578063095ea7b314610183575b600080fd5b61012e6101293660046110ea565b6102ce565b60405190151581526020015b60405180910390f35b61014b610320565b60405161013a919061115f565b61016b610166366004611172565b6103b2565b6040516001600160a01b03909116815260200161013a565b6101966101913660046111a7565b61044c565b005b6101966101a63660046111d1565b610561565b6101966101b93660046111a7565b610593565b6101966101cc3660046111d1565b6105a1565b6101966101df366004611172565b6105bc565b61012e6101f2366004611172565b610636565b61016b610205366004611172565b610655565b61021d61021836600461120d565b6106cc565b60405190815260200161013a565b6101966102393660046112cb565b610753565b61014b61075e565b6101966102543660046111a7565b61076d565b610196610267366004611322565b610777565b61019661027a36600461135e565b610782565b61014b61028d366004611172565b6107ba565b61012e6102a03660046113c6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b14806102ff57506001600160e01b03198216635b5e139f60e01b145b8061031a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461032f906113f9565b80601f016020809104026020016040519081016040528092919081815260200182805461035b906113f9565b80156103a85780601f1061037d576101008083540402835291602001916103a8565b820191906000526020600020905b81548152906001019060200180831161038b57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104305760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061045782610655565b9050806001600160a01b0316836001600160a01b0316036104c45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610427565b336001600160a01b03821614806104e057506104e081336102a0565b6105525760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610427565b61055c83836108a2565b505050565b61056c335b82610910565b6105885760405162461bcd60e51b815260040161042790611433565b61055c838383610a07565b61059d8282610ba7565b5050565b61055c83838360405180602001604052806000815250610782565b6105c533610566565b61062a5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610427565b61063381610ce9565b50565b6000818152600260205260408120546001600160a01b0316151561031a565b6000818152600260205260408120546001600160a01b03168061031a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610427565b60006001600160a01b0382166107375760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610427565b506001600160a01b031660009081526003602052604090205490565b61055c838383610d84565b60606001805461032f906113f9565b61059d8282610db7565b61059d338383610dd1565b61078c3383610910565b6107a85760405162461bcd60e51b815260040161042790611433565b6107b484848484610e9f565b50505050565b6000818152600260205260409020546060906001600160a01b03166108395760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610427565b600061085060408051602081019091526000815290565b90506000815111610870576040518060200160405280600081525061089b565b8061087a84610ed2565b60405160200161088b929190611484565b6040516020818303038152906040525b9392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906108d782610655565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166109895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610427565b600061099483610655565b9050806001600160a01b0316846001600160a01b031614806109cf5750836001600160a01b03166109c4846103b2565b6001600160a01b0316145b806109ff57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610a1a82610655565b6001600160a01b031614610a825760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610427565b6001600160a01b038216610ae45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610427565b610aef6000826108a2565b6001600160a01b0383166000908152600360205260408120805460019290610b189084906114c9565b90915550506001600160a01b0382166000908152600360205260408120805460019290610b469084906114e0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610bfd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610427565b6000818152600260205260409020546001600160a01b031615610c625760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610427565b6001600160a01b0382166000908152600360205260408120805460019290610c8b9084906114e0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000610cf482610655565b9050610d016000836108a2565b6001600160a01b0381166000908152600360205260408120805460019290610d2a9084906114c9565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b610d8e8383610ba7565b610d9b6000848484610fd3565b61055c5760405162461bcd60e51b8152600401610427906114f8565b61059d828260405180602001604052806000815250610d84565b816001600160a01b0316836001600160a01b031603610e325760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610427565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610eaa848484610a07565b610eb684848484610fd3565b6107b45760405162461bcd60e51b8152600401610427906114f8565b606081600003610ef95750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610f235780610f0d8161154a565b9150610f1c9050600a83611579565b9150610efd565b60008167ffffffffffffffff811115610f3e57610f3e611228565b6040519080825280601f01601f191660200182016040528015610f68576020820181803683370190505b5090505b84156109ff57610f7d6001836114c9565b9150610f8a600a8661158d565b610f959060306114e0565b60f81b818381518110610faa57610faa6115a1565b60200101906001600160f81b031916908160001a905350610fcc600a86611579565b9450610f6c565b60006001600160a01b0384163b156110c957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906110179033908990889088906004016115b7565b6020604051808303816000875af1925050508015611052575060408051601f3d908101601f1916820190925261104f918101906115f4565b60015b6110af573d808015611080576040519150601f19603f3d011682016040523d82523d6000602084013e611085565b606091505b5080516000036110a75760405162461bcd60e51b8152600401610427906114f8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506109ff565b506001949350505050565b6001600160e01b03198116811461063357600080fd5b6000602082840312156110fc57600080fd5b813561089b816110d4565b60005b8381101561112257818101518382015260200161110a565b838111156107b45750506000910152565b6000815180845261114b816020860160208601611107565b601f01601f19169290920160200192915050565b60208152600061089b6020830184611133565b60006020828403121561118457600080fd5b5035919050565b80356001600160a01b03811681146111a257600080fd5b919050565b600080604083850312156111ba57600080fd5b6111c38361118b565b946020939093013593505050565b6000806000606084860312156111e657600080fd5b6111ef8461118b565b92506111fd6020850161118b565b9150604084013590509250925092565b60006020828403121561121f57600080fd5b61089b8261118b565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261124f57600080fd5b813567ffffffffffffffff8082111561126a5761126a611228565b604051601f8301601f19908116603f0116810190828211818310171561129257611292611228565b816040528381528660208588010111156112ab57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000606084860312156112e057600080fd5b6112e98461118b565b925060208401359150604084013567ffffffffffffffff81111561130c57600080fd5b6113188682870161123e565b9150509250925092565b6000806040838503121561133557600080fd5b61133e8361118b565b91506020830135801515811461135357600080fd5b809150509250929050565b6000806000806080858703121561137457600080fd5b61137d8561118b565b935061138b6020860161118b565b925060408501359150606085013567ffffffffffffffff8111156113ae57600080fd5b6113ba8782880161123e565b91505092959194509250565b600080604083850312156113d957600080fd5b6113e28361118b565b91506113f06020840161118b565b90509250929050565b600181811c9082168061140d57607f821691505b60208210810361142d57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008351611496818460208801611107565b8351908301906114aa818360208801611107565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156114db576114db6114b3565b500390565b600082198211156114f3576114f36114b3565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006001820161155c5761155c6114b3565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261158857611588611563565b500490565b60008261159c5761159c611563565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906115ea90830184611133565b9695505050505050565b60006020828403121561160657600080fd5b815161089b816110d456fea2646970667358221220dcc0d60d401ad10686a21e37b29f59115a34f7e64853066ebe275b78f28e5b4364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101165760003560e01c80636352211e116100a2578063a144819411610071578063a144819414610246578063a22cb46514610259578063b88d4fde1461026c578063c87b56dd1461027f578063e985e9c51461029257600080fd5b80636352211e146101f757806370a082311461020a5780638832e6e31461022b57806395d89b411461023e57600080fd5b806323b872dd116100e957806323b872dd1461019857806340c10f19146101ab57806342842e0e146101be57806342966c68146101d15780634f558e79146101e457600080fd5b806301ffc9a71461011b57806306fdde0314610143578063081812fc14610158578063095ea7b314610183575b600080fd5b61012e6101293660046110ea565b6102ce565b60405190151581526020015b60405180910390f35b61014b610320565b60405161013a919061115f565b61016b610166366004611172565b6103b2565b6040516001600160a01b03909116815260200161013a565b6101966101913660046111a7565b61044c565b005b6101966101a63660046111d1565b610561565b6101966101b93660046111a7565b610593565b6101966101cc3660046111d1565b6105a1565b6101966101df366004611172565b6105bc565b61012e6101f2366004611172565b610636565b61016b610205366004611172565b610655565b61021d61021836600461120d565b6106cc565b60405190815260200161013a565b6101966102393660046112cb565b610753565b61014b61075e565b6101966102543660046111a7565b61076d565b610196610267366004611322565b610777565b61019661027a36600461135e565b610782565b61014b61028d366004611172565b6107ba565b61012e6102a03660046113c6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b14806102ff57506001600160e01b03198216635b5e139f60e01b145b8061031a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461032f906113f9565b80601f016020809104026020016040519081016040528092919081815260200182805461035b906113f9565b80156103a85780601f1061037d576101008083540402835291602001916103a8565b820191906000526020600020905b81548152906001019060200180831161038b57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104305760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061045782610655565b9050806001600160a01b0316836001600160a01b0316036104c45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610427565b336001600160a01b03821614806104e057506104e081336102a0565b6105525760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610427565b61055c83836108a2565b505050565b61056c335b82610910565b6105885760405162461bcd60e51b815260040161042790611433565b61055c838383610a07565b61059d8282610ba7565b5050565b61055c83838360405180602001604052806000815250610782565b6105c533610566565b61062a5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610427565b61063381610ce9565b50565b6000818152600260205260408120546001600160a01b0316151561031a565b6000818152600260205260408120546001600160a01b03168061031a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610427565b60006001600160a01b0382166107375760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610427565b506001600160a01b031660009081526003602052604090205490565b61055c838383610d84565b60606001805461032f906113f9565b61059d8282610db7565b61059d338383610dd1565b61078c3383610910565b6107a85760405162461bcd60e51b815260040161042790611433565b6107b484848484610e9f565b50505050565b6000818152600260205260409020546060906001600160a01b03166108395760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610427565b600061085060408051602081019091526000815290565b90506000815111610870576040518060200160405280600081525061089b565b8061087a84610ed2565b60405160200161088b929190611484565b6040516020818303038152906040525b9392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906108d782610655565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166109895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610427565b600061099483610655565b9050806001600160a01b0316846001600160a01b031614806109cf5750836001600160a01b03166109c4846103b2565b6001600160a01b0316145b806109ff57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610a1a82610655565b6001600160a01b031614610a825760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610427565b6001600160a01b038216610ae45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610427565b610aef6000826108a2565b6001600160a01b0383166000908152600360205260408120805460019290610b189084906114c9565b90915550506001600160a01b0382166000908152600360205260408120805460019290610b469084906114e0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610bfd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610427565b6000818152600260205260409020546001600160a01b031615610c625760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610427565b6001600160a01b0382166000908152600360205260408120805460019290610c8b9084906114e0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000610cf482610655565b9050610d016000836108a2565b6001600160a01b0381166000908152600360205260408120805460019290610d2a9084906114c9565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b610d8e8383610ba7565b610d9b6000848484610fd3565b61055c5760405162461bcd60e51b8152600401610427906114f8565b61059d828260405180602001604052806000815250610d84565b816001600160a01b0316836001600160a01b031603610e325760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610427565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610eaa848484610a07565b610eb684848484610fd3565b6107b45760405162461bcd60e51b8152600401610427906114f8565b606081600003610ef95750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610f235780610f0d8161154a565b9150610f1c9050600a83611579565b9150610efd565b60008167ffffffffffffffff811115610f3e57610f3e611228565b6040519080825280601f01601f191660200182016040528015610f68576020820181803683370190505b5090505b84156109ff57610f7d6001836114c9565b9150610f8a600a8661158d565b610f959060306114e0565b60f81b818381518110610faa57610faa6115a1565b60200101906001600160f81b031916908160001a905350610fcc600a86611579565b9450610f6c565b60006001600160a01b0384163b156110c957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906110179033908990889088906004016115b7565b6020604051808303816000875af1925050508015611052575060408051601f3d908101601f1916820190925261104f918101906115f4565b60015b6110af573d808015611080576040519150601f19603f3d011682016040523d82523d6000602084013e611085565b606091505b5080516000036110a75760405162461bcd60e51b8152600401610427906114f8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506109ff565b506001949350505050565b6001600160e01b03198116811461063357600080fd5b6000602082840312156110fc57600080fd5b813561089b816110d4565b60005b8381101561112257818101518382015260200161110a565b838111156107b45750506000910152565b6000815180845261114b816020860160208601611107565b601f01601f19169290920160200192915050565b60208152600061089b6020830184611133565b60006020828403121561118457600080fd5b5035919050565b80356001600160a01b03811681146111a257600080fd5b919050565b600080604083850312156111ba57600080fd5b6111c38361118b565b946020939093013593505050565b6000806000606084860312156111e657600080fd5b6111ef8461118b565b92506111fd6020850161118b565b9150604084013590509250925092565b60006020828403121561121f57600080fd5b61089b8261118b565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261124f57600080fd5b813567ffffffffffffffff8082111561126a5761126a611228565b604051601f8301601f19908116603f0116810190828211818310171561129257611292611228565b816040528381528660208588010111156112ab57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000606084860312156112e057600080fd5b6112e98461118b565b925060208401359150604084013567ffffffffffffffff81111561130c57600080fd5b6113188682870161123e565b9150509250925092565b6000806040838503121561133557600080fd5b61133e8361118b565b91506020830135801515811461135357600080fd5b809150509250929050565b6000806000806080858703121561137457600080fd5b61137d8561118b565b935061138b6020860161118b565b925060408501359150606085013567ffffffffffffffff8111156113ae57600080fd5b6113ba8782880161123e565b91505092959194509250565b600080604083850312156113d957600080fd5b6113e28361118b565b91506113f06020840161118b565b90509250929050565b600181811c9082168061140d57607f821691505b60208210810361142d57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008351611496818460208801611107565b8351908301906114aa818360208801611107565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156114db576114db6114b3565b500390565b600082198211156114f3576114f36114b3565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006001820161155c5761155c6114b3565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261158857611588611563565b500490565b60008261159c5761159c611563565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906115ea90830184611133565b9695505050505050565b60006020828403121561160657600080fd5b815161089b816110d456fea2646970667358221220dcc0d60d401ad10686a21e37b29f59115a34f7e64853066ebe275b78f28e5b4364736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "exists", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeMint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeMint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "burn(uint256)": {"details": "Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "version": 1}}, "ERC721EnumerableMock": {"contractName": "ERC721EnumerableMock", "sourceId": "mocks/ERC721EnumerableMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162001de638038062001de68339810160408190526200003491620001e1565b8151829082906200004d9060009060208501906200006e565b508051620000639060019060208401906200006e565b505050505062000287565b8280546200007c906200024b565b90600052602060002090601f016020900481019282620000a05760008555620000eb565b82601f10620000bb57805160ff1916838001178555620000eb565b82800160010185558215620000eb579182015b82811115620000eb578251825591602001919060010190620000ce565b50620000f9929150620000fd565b5090565b5b80821115620000f95760008155600101620000fe565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013c57600080fd5b81516001600160401b038082111562000159576200015962000114565b604051601f8301601f19908116603f0116810190828211818310171562000184576200018462000114565b81604052838152602092508683858801011115620001a157600080fd5b600091505b83821015620001c55785820183015181830184015290820190620001a6565b83821115620001d75760008385830101525b9695505050505050565b60008060408385031215620001f557600080fd5b82516001600160401b03808211156200020d57600080fd5b6200021b868387016200012a565b935060208501519150808211156200023257600080fd5b5062000241858286016200012a565b9150509250929050565b600181811c908216806200026057607f821691505b6020821081036200028157634e487b7160e01b600052602260045260246000fd5b50919050565b611b4f80620002976000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80634f6ccce7116100c357806395d89b411161007c57806395d89b41146102ba578063a1448194146102c2578063a22cb465146102d5578063b88d4fde146102e8578063c87b56dd146102fb578063e985e9c51461030e57600080fd5b80634f6ccce71461025357806355f804b3146102665780636352211e146102795780636c0360eb1461028c57806370a08231146102945780638832e6e3146102a757600080fd5b806323b872dd1161011557806323b872dd146101e15780632f745c59146101f457806340c10f191461020757806342842e0e1461021a57806342966c681461022d5780634f558e791461024057600080fd5b806301ffc9a71461015257806306fdde031461017a578063081812fc1461018f578063095ea7b3146101ba57806318160ddd146101cf575b600080fd5b61016561016036600461156a565b61034a565b60405190151581526020015b60405180910390f35b610182610375565b60405161017191906115df565b6101a261019d3660046115f2565b610407565b6040516001600160a01b039091168152602001610171565b6101cd6101c8366004611627565b6104a1565b005b6008545b604051908152602001610171565b6101cd6101ef366004611651565b6105b6565b6101d3610202366004611627565b6105e7565b6101cd610215366004611627565b61067d565b6101cd610228366004611651565b61068b565b6101cd61023b3660046115f2565b6106a6565b61016561024e3660046115f2565b6106b2565b6101d36102613660046115f2565b6106d1565b6101cd61027436600461168d565b610764565b6101a26102873660046115f2565b610770565b6101826107e7565b6101d36102a23660046116ff565b6107f6565b6101cd6102b53660046117bd565b61087d565b610182610888565b6101cd6102d0366004611627565b610897565b6101cd6102e3366004611814565b6108a1565b6101cd6102f6366004611850565b6108ac565b6101826103093660046115f2565b6108e4565b61016561031c3660046118b8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b0319821663780e9d6360e01b148061036f575061036f826109bf565b92915050565b606060008054610384906118eb565b80601f01602080910402602001604051908101604052809291908181526020018280546103b0906118eb565b80156103fd5780601f106103d2576101008083540402835291602001916103fd565b820191906000526020600020905b8154815290600101906020018083116103e057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104855760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104ac82610770565b9050806001600160a01b0316836001600160a01b0316036105195760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161047c565b336001600160a01b03821614806105355750610535813361031c565b6105a75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161047c565b6105b18383610a0f565b505050565b6105c03382610a7d565b6105dc5760405162461bcd60e51b815260040161047c90611925565b6105b1838383610b74565b60006105f2836107f6565b82106106545760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161047c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6106878282610d1f565b5050565b6105b1838383604051806020016040528060008152506108ac565b6106af81610e6d565b50565b6000818152600260205260408120546001600160a01b0316151561036f565b60006106dc60085490565b821061073f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161047c565b6008828154811061075257610752611976565b90600052602060002001549050919050565b6105b1600a83836114bb565b6000818152600260205260408120546001600160a01b03168061036f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161047c565b60606107f1610f14565b905090565b60006001600160a01b0382166108615760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161047c565b506001600160a01b031660009081526003602052604090205490565b6105b1838383610f23565b606060018054610384906118eb565b6106878282610f56565b610687338383610f70565b6108b63383610a7d565b6108d25760405162461bcd60e51b815260040161047c90611925565b6108de8484848461103e565b50505050565b6000818152600260205260409020546060906001600160a01b03166109635760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161047c565b600061096d610f14565b9050600081511161098d57604051806020016040528060008152506109b8565b8061099784611071565b6040516020016109a892919061198c565b6040516020818303038152906040525b9392505050565b60006001600160e01b031982166380ac58cd60e01b14806109f057506001600160e01b03198216635b5e139f60e01b145b8061036f57506301ffc9a760e01b6001600160e01b031983161461036f565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610a4482610770565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610af65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161047c565b6000610b0183610770565b9050806001600160a01b0316846001600160a01b03161480610b3c5750836001600160a01b0316610b3184610407565b6001600160a01b0316145b80610b6c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610b8782610770565b6001600160a01b031614610bef5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161047c565b6001600160a01b038216610c515760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161047c565b610c5c838383611172565b610c67600082610a0f565b6001600160a01b0383166000908152600360205260408120805460019290610c909084906119d1565b90915550506001600160a01b0382166000908152600360205260408120805460019290610cbe9084906119e8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610d755760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161047c565b6000818152600260205260409020546001600160a01b031615610dda5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161047c565b610de660008383611172565b6001600160a01b0382166000908152600360205260408120805460019290610e0f9084906119e8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000610e7882610770565b9050610e8681600084611172565b610e91600083610a0f565b6001600160a01b0381166000908152600360205260408120805460019290610eba9084906119d1565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6060600a8054610384906118eb565b610f2d8383610d1f565b610f3a600084848461122a565b6105b15760405162461bcd60e51b815260040161047c90611a00565b610687828260405180602001604052806000815250610f23565b816001600160a01b0316836001600160a01b031603610fd15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161047c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611049848484610b74565b6110558484848461122a565b6108de5760405162461bcd60e51b815260040161047c90611a00565b6060816000036110985750506040805180820190915260018152600360fc1b602082015290565b8160005b81156110c257806110ac81611a52565b91506110bb9050600a83611a81565b915061109c565b60008167ffffffffffffffff8111156110dd576110dd61171a565b6040519080825280601f01601f191660200182016040528015611107576020820181803683370190505b5090505b8415610b6c5761111c6001836119d1565b9150611129600a86611a95565b6111349060306119e8565b60f81b81838151811061114957611149611976565b60200101906001600160f81b031916908160001a90535061116b600a86611a81565b945061110b565b6001600160a01b0383166111cd576111c881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6111f0565b816001600160a01b0316836001600160a01b0316146111f0576111f0838261132b565b6001600160a01b038216611207576105b1816113c8565b826001600160a01b0316826001600160a01b0316146105b1576105b18282611477565b60006001600160a01b0384163b1561132057604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061126e903390899088908890600401611aa9565b6020604051808303816000875af19250505080156112a9575060408051601f3d908101601f191682019092526112a691810190611ae6565b60015b611306573d8080156112d7576040519150601f19603f3d011682016040523d82523d6000602084013e6112dc565b606091505b5080516000036112fe5760405162461bcd60e51b815260040161047c90611a00565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610b6c565b506001949350505050565b60006001611338846107f6565b61134291906119d1565b600083815260076020526040902054909150808214611395576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906113da906001906119d1565b6000838152600960205260408120546008805493945090928490811061140257611402611976565b90600052602060002001549050806008838154811061142357611423611976565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061145b5761145b611b03565b6001900381819060005260206000200160009055905550505050565b6000611482836107f6565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546114c7906118eb565b90600052602060002090601f0160209004810192826114e9576000855561152f565b82601f106115025782800160ff1982351617855561152f565b8280016001018555821561152f579182015b8281111561152f578235825591602001919060010190611514565b5061153b92915061153f565b5090565b5b8082111561153b5760008155600101611540565b6001600160e01b0319811681146106af57600080fd5b60006020828403121561157c57600080fd5b81356109b881611554565b60005b838110156115a257818101518382015260200161158a565b838111156108de5750506000910152565b600081518084526115cb816020860160208601611587565b601f01601f19169290920160200192915050565b6020815260006109b860208301846115b3565b60006020828403121561160457600080fd5b5035919050565b80356001600160a01b038116811461162257600080fd5b919050565b6000806040838503121561163a57600080fd5b6116438361160b565b946020939093013593505050565b60008060006060848603121561166657600080fd5b61166f8461160b565b925061167d6020850161160b565b9150604084013590509250925092565b600080602083850312156116a057600080fd5b823567ffffffffffffffff808211156116b857600080fd5b818501915085601f8301126116cc57600080fd5b8135818111156116db57600080fd5b8660208285010111156116ed57600080fd5b60209290920196919550909350505050565b60006020828403121561171157600080fd5b6109b88261160b565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261174157600080fd5b813567ffffffffffffffff8082111561175c5761175c61171a565b604051601f8301601f19908116603f011681019082821181831017156117845761178461171a565b8160405283815286602085880101111561179d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000606084860312156117d257600080fd5b6117db8461160b565b925060208401359150604084013567ffffffffffffffff8111156117fe57600080fd5b61180a86828701611730565b9150509250925092565b6000806040838503121561182757600080fd5b6118308361160b565b91506020830135801515811461184557600080fd5b809150509250929050565b6000806000806080858703121561186657600080fd5b61186f8561160b565b935061187d6020860161160b565b925060408501359150606085013567ffffffffffffffff8111156118a057600080fd5b6118ac87828801611730565b91505092959194509250565b600080604083850312156118cb57600080fd5b6118d48361160b565b91506118e26020840161160b565b90509250929050565b600181811c908216806118ff57607f821691505b60208210810361191f57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000835161199e818460208801611587565b8351908301906119b2818360208801611587565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156119e3576119e36119bb565b500390565b600082198211156119fb576119fb6119bb565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060018201611a6457611a646119bb565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611a9057611a90611a6b565b500490565b600082611aa457611aa4611a6b565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611adc908301846115b3565b9695505050505050565b600060208284031215611af857600080fd5b81516109b881611554565b634e487b7160e01b600052603160045260246000fdfea26469706673582212204751ee4ad4e83a24720af69223431d472e0fe9c22b072c812356cd366db1777864736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80634f6ccce7116100c357806395d89b411161007c57806395d89b41146102ba578063a1448194146102c2578063a22cb465146102d5578063b88d4fde146102e8578063c87b56dd146102fb578063e985e9c51461030e57600080fd5b80634f6ccce71461025357806355f804b3146102665780636352211e146102795780636c0360eb1461028c57806370a08231146102945780638832e6e3146102a757600080fd5b806323b872dd1161011557806323b872dd146101e15780632f745c59146101f457806340c10f191461020757806342842e0e1461021a57806342966c681461022d5780634f558e791461024057600080fd5b806301ffc9a71461015257806306fdde031461017a578063081812fc1461018f578063095ea7b3146101ba57806318160ddd146101cf575b600080fd5b61016561016036600461156a565b61034a565b60405190151581526020015b60405180910390f35b610182610375565b60405161017191906115df565b6101a261019d3660046115f2565b610407565b6040516001600160a01b039091168152602001610171565b6101cd6101c8366004611627565b6104a1565b005b6008545b604051908152602001610171565b6101cd6101ef366004611651565b6105b6565b6101d3610202366004611627565b6105e7565b6101cd610215366004611627565b61067d565b6101cd610228366004611651565b61068b565b6101cd61023b3660046115f2565b6106a6565b61016561024e3660046115f2565b6106b2565b6101d36102613660046115f2565b6106d1565b6101cd61027436600461168d565b610764565b6101a26102873660046115f2565b610770565b6101826107e7565b6101d36102a23660046116ff565b6107f6565b6101cd6102b53660046117bd565b61087d565b610182610888565b6101cd6102d0366004611627565b610897565b6101cd6102e3366004611814565b6108a1565b6101cd6102f6366004611850565b6108ac565b6101826103093660046115f2565b6108e4565b61016561031c3660046118b8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b0319821663780e9d6360e01b148061036f575061036f826109bf565b92915050565b606060008054610384906118eb565b80601f01602080910402602001604051908101604052809291908181526020018280546103b0906118eb565b80156103fd5780601f106103d2576101008083540402835291602001916103fd565b820191906000526020600020905b8154815290600101906020018083116103e057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104855760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104ac82610770565b9050806001600160a01b0316836001600160a01b0316036105195760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161047c565b336001600160a01b03821614806105355750610535813361031c565b6105a75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161047c565b6105b18383610a0f565b505050565b6105c03382610a7d565b6105dc5760405162461bcd60e51b815260040161047c90611925565b6105b1838383610b74565b60006105f2836107f6565b82106106545760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161047c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6106878282610d1f565b5050565b6105b1838383604051806020016040528060008152506108ac565b6106af81610e6d565b50565b6000818152600260205260408120546001600160a01b0316151561036f565b60006106dc60085490565b821061073f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161047c565b6008828154811061075257610752611976565b90600052602060002001549050919050565b6105b1600a83836114bb565b6000818152600260205260408120546001600160a01b03168061036f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161047c565b60606107f1610f14565b905090565b60006001600160a01b0382166108615760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161047c565b506001600160a01b031660009081526003602052604090205490565b6105b1838383610f23565b606060018054610384906118eb565b6106878282610f56565b610687338383610f70565b6108b63383610a7d565b6108d25760405162461bcd60e51b815260040161047c90611925565b6108de8484848461103e565b50505050565b6000818152600260205260409020546060906001600160a01b03166109635760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161047c565b600061096d610f14565b9050600081511161098d57604051806020016040528060008152506109b8565b8061099784611071565b6040516020016109a892919061198c565b6040516020818303038152906040525b9392505050565b60006001600160e01b031982166380ac58cd60e01b14806109f057506001600160e01b03198216635b5e139f60e01b145b8061036f57506301ffc9a760e01b6001600160e01b031983161461036f565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610a4482610770565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610af65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161047c565b6000610b0183610770565b9050806001600160a01b0316846001600160a01b03161480610b3c5750836001600160a01b0316610b3184610407565b6001600160a01b0316145b80610b6c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610b8782610770565b6001600160a01b031614610bef5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161047c565b6001600160a01b038216610c515760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161047c565b610c5c838383611172565b610c67600082610a0f565b6001600160a01b0383166000908152600360205260408120805460019290610c909084906119d1565b90915550506001600160a01b0382166000908152600360205260408120805460019290610cbe9084906119e8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610d755760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161047c565b6000818152600260205260409020546001600160a01b031615610dda5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161047c565b610de660008383611172565b6001600160a01b0382166000908152600360205260408120805460019290610e0f9084906119e8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000610e7882610770565b9050610e8681600084611172565b610e91600083610a0f565b6001600160a01b0381166000908152600360205260408120805460019290610eba9084906119d1565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6060600a8054610384906118eb565b610f2d8383610d1f565b610f3a600084848461122a565b6105b15760405162461bcd60e51b815260040161047c90611a00565b610687828260405180602001604052806000815250610f23565b816001600160a01b0316836001600160a01b031603610fd15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161047c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611049848484610b74565b6110558484848461122a565b6108de5760405162461bcd60e51b815260040161047c90611a00565b6060816000036110985750506040805180820190915260018152600360fc1b602082015290565b8160005b81156110c257806110ac81611a52565b91506110bb9050600a83611a81565b915061109c565b60008167ffffffffffffffff8111156110dd576110dd61171a565b6040519080825280601f01601f191660200182016040528015611107576020820181803683370190505b5090505b8415610b6c5761111c6001836119d1565b9150611129600a86611a95565b6111349060306119e8565b60f81b81838151811061114957611149611976565b60200101906001600160f81b031916908160001a90535061116b600a86611a81565b945061110b565b6001600160a01b0383166111cd576111c881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6111f0565b816001600160a01b0316836001600160a01b0316146111f0576111f0838261132b565b6001600160a01b038216611207576105b1816113c8565b826001600160a01b0316826001600160a01b0316146105b1576105b18282611477565b60006001600160a01b0384163b1561132057604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061126e903390899088908890600401611aa9565b6020604051808303816000875af19250505080156112a9575060408051601f3d908101601f191682019092526112a691810190611ae6565b60015b611306573d8080156112d7576040519150601f19603f3d011682016040523d82523d6000602084013e6112dc565b606091505b5080516000036112fe5760405162461bcd60e51b815260040161047c90611a00565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610b6c565b506001949350505050565b60006001611338846107f6565b61134291906119d1565b600083815260076020526040902054909150808214611395576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906113da906001906119d1565b6000838152600960205260408120546008805493945090928490811061140257611402611976565b90600052602060002001549050806008838154811061142357611423611976565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061145b5761145b611b03565b6001900381819060005260206000200160009055905550505050565b6000611482836107f6565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546114c7906118eb565b90600052602060002090601f0160209004810192826114e9576000855561152f565b82601f106115025782800160ff1982351617855561152f565b8280016001018555821561152f579182015b8281111561152f578235825591602001919060010190611514565b5061153b92915061153f565b5090565b5b8082111561153b5760008155600101611540565b6001600160e01b0319811681146106af57600080fd5b60006020828403121561157c57600080fd5b81356109b881611554565b60005b838110156115a257818101518382015260200161158a565b838111156108de5750506000910152565b600081518084526115cb816020860160208601611587565b601f01601f19169290920160200192915050565b6020815260006109b860208301846115b3565b60006020828403121561160457600080fd5b5035919050565b80356001600160a01b038116811461162257600080fd5b919050565b6000806040838503121561163a57600080fd5b6116438361160b565b946020939093013593505050565b60008060006060848603121561166657600080fd5b61166f8461160b565b925061167d6020850161160b565b9150604084013590509250925092565b600080602083850312156116a057600080fd5b823567ffffffffffffffff808211156116b857600080fd5b818501915085601f8301126116cc57600080fd5b8135818111156116db57600080fd5b8660208285010111156116ed57600080fd5b60209290920196919550909350505050565b60006020828403121561171157600080fd5b6109b88261160b565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261174157600080fd5b813567ffffffffffffffff8082111561175c5761175c61171a565b604051601f8301601f19908116603f011681019082821181831017156117845761178461171a565b8160405283815286602085880101111561179d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000606084860312156117d257600080fd5b6117db8461160b565b925060208401359150604084013567ffffffffffffffff8111156117fe57600080fd5b61180a86828701611730565b9150509250925092565b6000806040838503121561182757600080fd5b6118308361160b565b91506020830135801515811461184557600080fd5b809150509250929050565b6000806000806080858703121561186657600080fd5b61186f8561160b565b935061187d6020860161160b565b925060408501359150606085013567ffffffffffffffff8111156118a057600080fd5b6118ac87828801611730565b91505092959194509250565b600080604083850312156118cb57600080fd5b6118d48361160b565b91506118e26020840161160b565b90509250929050565b600181811c908216806118ff57607f821691505b60208210810361191f57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000835161199e818460208801611587565b8351908301906119b2818360208801611587565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156119e3576119e36119bb565b500390565b600082198211156119fb576119fb6119bb565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060018201611a6457611a646119bb565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611a9057611a90611a6b565b500490565b600082611aa457611aa4611a6b565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611adc908301846115b3565b9695505050505050565b600060208284031215611af857600080fd5b81516109b881611554565b634e487b7160e01b600052603160045260246000fdfea26469706673582212204751ee4ad4e83a24720af69223431d472e0fe9c22b072c812356cd366db1777864736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "baseURI", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "exists", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeMint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeMint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "setBaseURI", "stateMutability": "nonpayable", "inputs": [{"name": "newBaseTokenURI", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenByIndex", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenOfOwnerByIndex", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenByIndex(uint256)": {"details": "See {IERC721Enumerable-tokenByIndex}."}, "tokenOfOwnerByIndex(address,uint256)": {"details": "See {IERC721Enumerable-tokenOfOwnerByIndex}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "totalSupply()": {"details": "See {IERC721Enumerable-totalSupply}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "title": "ERC721Mock This mock just provides a public safeMint, mint, and burn functions for testing purposes", "version": 1}}, "ERC721Mock": {"contractName": "ERC721Mock", "sourceId": "mocks/ERC721Mock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b506040516200189e3803806200189e8339810160408190526200003491620001e1565b8151829082906200004d9060009060208501906200006e565b508051620000639060019060208401906200006e565b505050505062000287565b8280546200007c906200024b565b90600052602060002090601f016020900481019282620000a05760008555620000eb565b82601f10620000bb57805160ff1916838001178555620000eb565b82800160010185558215620000eb579182015b82811115620000eb578251825591602001919060010190620000ce565b50620000f9929150620000fd565b5090565b5b80821115620000f95760008155600101620000fe565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013c57600080fd5b81516001600160401b038082111562000159576200015962000114565b604051601f8301601f19908116603f0116810190828211818310171562000184576200018462000114565b81604052838152602092508683858801011115620001a157600080fd5b600091505b83821015620001c55785820183015181830184015290820190620001a6565b83821115620001d75760008385830101525b9695505050505050565b60008060408385031215620001f557600080fd5b82516001600160401b03808211156200020d57600080fd5b6200021b868387016200012a565b935060208501519150808211156200023257600080fd5b5062000241858286016200012a565b9150509250929050565b600181811c908216806200026057607f821691505b6020821081036200028157634e487b7160e01b600052602260045260246000fd5b50919050565b61160780620002976000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80636352211e116100ad578063a144819411610071578063a144819414610259578063a22cb4651461026c578063b88d4fde1461027f578063c87b56dd14610292578063e985e9c5146102a557600080fd5b80636352211e146102025780636c0360eb1461021557806370a082311461021d5780638832e6e31461023e57806395d89b411461025157600080fd5b806323b872dd116100f457806323b872dd146101a357806340c10f19146101b657806342842e0e146101c957806342966c68146101dc5780634f558e79146101ef57600080fd5b806301ffc9a71461012657806306fdde031461014e578063081812fc14610163578063095ea7b31461018e575b600080fd5b6101396101343660046110aa565b6102e1565b60405190151581526020015b60405180910390f35b610156610333565b604051610145919061111f565b610176610171366004611132565b6103c5565b6040516001600160a01b039091168152602001610145565b6101a161019c366004611167565b61045f565b005b6101a16101b1366004611191565b610574565b6101a16101c4366004611167565b6105a5565b6101a16101d7366004611191565b6105b3565b6101a16101ea366004611132565b6105ce565b6101396101fd366004611132565b6105da565b610176610210366004611132565b6105f9565b610156610670565b61023061022b3660046111cd565b61068c565b604051908152602001610145565b6101a161024c36600461128b565b610713565b61015661071e565b6101a1610267366004611167565b61072d565b6101a161027a3660046112e2565b610737565b6101a161028d36600461131e565b610742565b6101566102a0366004611132565b61077a565b6101396102b3366004611386565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061031257506001600160e01b03198216635b5e139f60e01b145b8061032d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610342906113b9565b80601f016020809104026020016040519081016040528092919081815260200182805461036e906113b9565b80156103bb5780601f10610390576101008083540402835291602001916103bb565b820191906000526020600020905b81548152906001019060200180831161039e57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104435760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061046a826105f9565b9050806001600160a01b0316836001600160a01b0316036104d75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161043a565b336001600160a01b03821614806104f357506104f381336102b3565b6105655760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161043a565b61056f8383610862565b505050565b61057e33826108d0565b61059a5760405162461bcd60e51b815260040161043a906113f3565b61056f8383836109c7565b6105af8282610b67565b5050565b61056f83838360405180602001604052806000815250610742565b6105d781610ca9565b50565b6000818152600260205260408120546001600160a01b0316151561032d565b6000818152600260205260408120546001600160a01b03168061032d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161043a565b606061068760408051602081019091526000815290565b905090565b60006001600160a01b0382166106f75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161043a565b506001600160a01b031660009081526003602052604090205490565b61056f838383610d44565b606060018054610342906113b9565b6105af8282610d77565b6105af338383610d91565b61074c33836108d0565b6107685760405162461bcd60e51b815260040161043a906113f3565b61077484848484610e5f565b50505050565b6000818152600260205260409020546060906001600160a01b03166107f95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161043a565b600061081060408051602081019091526000815290565b90506000815111610830576040518060200160405280600081525061085b565b8061083a84610e92565b60405160200161084b929190611444565b6040516020818303038152906040525b9392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610897826105f9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166109495760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161043a565b6000610954836105f9565b9050806001600160a01b0316846001600160a01b0316148061098f5750836001600160a01b0316610984846103c5565b6001600160a01b0316145b806109bf57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166109da826105f9565b6001600160a01b031614610a425760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161043a565b6001600160a01b038216610aa45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161043a565b610aaf600082610862565b6001600160a01b0383166000908152600360205260408120805460019290610ad8908490611489565b90915550506001600160a01b0382166000908152600360205260408120805460019290610b069084906114a0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610bbd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161043a565b6000818152600260205260409020546001600160a01b031615610c225760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161043a565b6001600160a01b0382166000908152600360205260408120805460019290610c4b9084906114a0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000610cb4826105f9565b9050610cc1600083610862565b6001600160a01b0381166000908152600360205260408120805460019290610cea908490611489565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b610d4e8383610b67565b610d5b6000848484610f93565b61056f5760405162461bcd60e51b815260040161043a906114b8565b6105af828260405180602001604052806000815250610d44565b816001600160a01b0316836001600160a01b031603610df25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161043a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610e6a8484846109c7565b610e7684848484610f93565b6107745760405162461bcd60e51b815260040161043a906114b8565b606081600003610eb95750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610ee35780610ecd8161150a565b9150610edc9050600a83611539565b9150610ebd565b60008167ffffffffffffffff811115610efe57610efe6111e8565b6040519080825280601f01601f191660200182016040528015610f28576020820181803683370190505b5090505b84156109bf57610f3d600183611489565b9150610f4a600a8661154d565b610f559060306114a0565b60f81b818381518110610f6a57610f6a611561565b60200101906001600160f81b031916908160001a905350610f8c600a86611539565b9450610f2c565b60006001600160a01b0384163b1561108957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610fd7903390899088908890600401611577565b6020604051808303816000875af1925050508015611012575060408051601f3d908101601f1916820190925261100f918101906115b4565b60015b61106f573d808015611040576040519150601f19603f3d011682016040523d82523d6000602084013e611045565b606091505b5080516000036110675760405162461bcd60e51b815260040161043a906114b8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506109bf565b506001949350505050565b6001600160e01b0319811681146105d757600080fd5b6000602082840312156110bc57600080fd5b813561085b81611094565b60005b838110156110e25781810151838201526020016110ca565b838111156107745750506000910152565b6000815180845261110b8160208601602086016110c7565b601f01601f19169290920160200192915050565b60208152600061085b60208301846110f3565b60006020828403121561114457600080fd5b5035919050565b80356001600160a01b038116811461116257600080fd5b919050565b6000806040838503121561117a57600080fd5b6111838361114b565b946020939093013593505050565b6000806000606084860312156111a657600080fd5b6111af8461114b565b92506111bd6020850161114b565b9150604084013590509250925092565b6000602082840312156111df57600080fd5b61085b8261114b565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261120f57600080fd5b813567ffffffffffffffff8082111561122a5761122a6111e8565b604051601f8301601f19908116603f01168101908282118183101715611252576112526111e8565b8160405283815286602085880101111561126b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000606084860312156112a057600080fd5b6112a98461114b565b925060208401359150604084013567ffffffffffffffff8111156112cc57600080fd5b6112d8868287016111fe565b9150509250925092565b600080604083850312156112f557600080fd5b6112fe8361114b565b91506020830135801515811461131357600080fd5b809150509250929050565b6000806000806080858703121561133457600080fd5b61133d8561114b565b935061134b6020860161114b565b925060408501359150606085013567ffffffffffffffff81111561136e57600080fd5b61137a878288016111fe565b91505092959194509250565b6000806040838503121561139957600080fd5b6113a28361114b565b91506113b06020840161114b565b90509250929050565b600181811c908216806113cd57607f821691505b6020821081036113ed57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600083516114568184602088016110c7565b83519083019061146a8183602088016110c7565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b60008282101561149b5761149b611473565b500390565b600082198211156114b3576114b3611473565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006001820161151c5761151c611473565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261154857611548611523565b500490565b60008261155c5761155c611523565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906115aa908301846110f3565b9695505050505050565b6000602082840312156115c657600080fd5b815161085b8161109456fea26469706673582212205bb14e1c54f8d419d65dbee8059b88bdbdeccfe7c22b3b6b0f7b427cc6c302dc64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101215760003560e01c80636352211e116100ad578063a144819411610071578063a144819414610259578063a22cb4651461026c578063b88d4fde1461027f578063c87b56dd14610292578063e985e9c5146102a557600080fd5b80636352211e146102025780636c0360eb1461021557806370a082311461021d5780638832e6e31461023e57806395d89b411461025157600080fd5b806323b872dd116100f457806323b872dd146101a357806340c10f19146101b657806342842e0e146101c957806342966c68146101dc5780634f558e79146101ef57600080fd5b806301ffc9a71461012657806306fdde031461014e578063081812fc14610163578063095ea7b31461018e575b600080fd5b6101396101343660046110aa565b6102e1565b60405190151581526020015b60405180910390f35b610156610333565b604051610145919061111f565b610176610171366004611132565b6103c5565b6040516001600160a01b039091168152602001610145565b6101a161019c366004611167565b61045f565b005b6101a16101b1366004611191565b610574565b6101a16101c4366004611167565b6105a5565b6101a16101d7366004611191565b6105b3565b6101a16101ea366004611132565b6105ce565b6101396101fd366004611132565b6105da565b610176610210366004611132565b6105f9565b610156610670565b61023061022b3660046111cd565b61068c565b604051908152602001610145565b6101a161024c36600461128b565b610713565b61015661071e565b6101a1610267366004611167565b61072d565b6101a161027a3660046112e2565b610737565b6101a161028d36600461131e565b610742565b6101566102a0366004611132565b61077a565b6101396102b3366004611386565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061031257506001600160e01b03198216635b5e139f60e01b145b8061032d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610342906113b9565b80601f016020809104026020016040519081016040528092919081815260200182805461036e906113b9565b80156103bb5780601f10610390576101008083540402835291602001916103bb565b820191906000526020600020905b81548152906001019060200180831161039e57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104435760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061046a826105f9565b9050806001600160a01b0316836001600160a01b0316036104d75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161043a565b336001600160a01b03821614806104f357506104f381336102b3565b6105655760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161043a565b61056f8383610862565b505050565b61057e33826108d0565b61059a5760405162461bcd60e51b815260040161043a906113f3565b61056f8383836109c7565b6105af8282610b67565b5050565b61056f83838360405180602001604052806000815250610742565b6105d781610ca9565b50565b6000818152600260205260408120546001600160a01b0316151561032d565b6000818152600260205260408120546001600160a01b03168061032d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161043a565b606061068760408051602081019091526000815290565b905090565b60006001600160a01b0382166106f75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161043a565b506001600160a01b031660009081526003602052604090205490565b61056f838383610d44565b606060018054610342906113b9565b6105af8282610d77565b6105af338383610d91565b61074c33836108d0565b6107685760405162461bcd60e51b815260040161043a906113f3565b61077484848484610e5f565b50505050565b6000818152600260205260409020546060906001600160a01b03166107f95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161043a565b600061081060408051602081019091526000815290565b90506000815111610830576040518060200160405280600081525061085b565b8061083a84610e92565b60405160200161084b929190611444565b6040516020818303038152906040525b9392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610897826105f9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166109495760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161043a565b6000610954836105f9565b9050806001600160a01b0316846001600160a01b0316148061098f5750836001600160a01b0316610984846103c5565b6001600160a01b0316145b806109bf57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166109da826105f9565b6001600160a01b031614610a425760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161043a565b6001600160a01b038216610aa45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161043a565b610aaf600082610862565b6001600160a01b0383166000908152600360205260408120805460019290610ad8908490611489565b90915550506001600160a01b0382166000908152600360205260408120805460019290610b069084906114a0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610bbd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161043a565b6000818152600260205260409020546001600160a01b031615610c225760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161043a565b6001600160a01b0382166000908152600360205260408120805460019290610c4b9084906114a0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000610cb4826105f9565b9050610cc1600083610862565b6001600160a01b0381166000908152600360205260408120805460019290610cea908490611489565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b610d4e8383610b67565b610d5b6000848484610f93565b61056f5760405162461bcd60e51b815260040161043a906114b8565b6105af828260405180602001604052806000815250610d44565b816001600160a01b0316836001600160a01b031603610df25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161043a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610e6a8484846109c7565b610e7684848484610f93565b6107745760405162461bcd60e51b815260040161043a906114b8565b606081600003610eb95750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610ee35780610ecd8161150a565b9150610edc9050600a83611539565b9150610ebd565b60008167ffffffffffffffff811115610efe57610efe6111e8565b6040519080825280601f01601f191660200182016040528015610f28576020820181803683370190505b5090505b84156109bf57610f3d600183611489565b9150610f4a600a8661154d565b610f559060306114a0565b60f81b818381518110610f6a57610f6a611561565b60200101906001600160f81b031916908160001a905350610f8c600a86611539565b9450610f2c565b60006001600160a01b0384163b1561108957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610fd7903390899088908890600401611577565b6020604051808303816000875af1925050508015611012575060408051601f3d908101601f1916820190925261100f918101906115b4565b60015b61106f573d808015611040576040519150601f19603f3d011682016040523d82523d6000602084013e611045565b606091505b5080516000036110675760405162461bcd60e51b815260040161043a906114b8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506109bf565b506001949350505050565b6001600160e01b0319811681146105d757600080fd5b6000602082840312156110bc57600080fd5b813561085b81611094565b60005b838110156110e25781810151838201526020016110ca565b838111156107745750506000910152565b6000815180845261110b8160208601602086016110c7565b601f01601f19169290920160200192915050565b60208152600061085b60208301846110f3565b60006020828403121561114457600080fd5b5035919050565b80356001600160a01b038116811461116257600080fd5b919050565b6000806040838503121561117a57600080fd5b6111838361114b565b946020939093013593505050565b6000806000606084860312156111a657600080fd5b6111af8461114b565b92506111bd6020850161114b565b9150604084013590509250925092565b6000602082840312156111df57600080fd5b61085b8261114b565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261120f57600080fd5b813567ffffffffffffffff8082111561122a5761122a6111e8565b604051601f8301601f19908116603f01168101908282118183101715611252576112526111e8565b8160405283815286602085880101111561126b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000606084860312156112a057600080fd5b6112a98461114b565b925060208401359150604084013567ffffffffffffffff8111156112cc57600080fd5b6112d8868287016111fe565b9150509250925092565b600080604083850312156112f557600080fd5b6112fe8361114b565b91506020830135801515811461131357600080fd5b809150509250929050565b6000806000806080858703121561133457600080fd5b61133d8561114b565b935061134b6020860161114b565b925060408501359150606085013567ffffffffffffffff81111561136e57600080fd5b61137a878288016111fe565b91505092959194509250565b6000806040838503121561139957600080fd5b6113a28361114b565b91506113b06020840161114b565b90509250929050565b600181811c908216806113cd57607f821691505b6020821081036113ed57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600083516114568184602088016110c7565b83519083019061146a8183602088016110c7565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b60008282101561149b5761149b611473565b500390565b600082198211156114b3576114b3611473565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006001820161151c5761151c611473565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261154857611548611523565b500490565b60008261155c5761155c611523565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906115aa908301846110f3565b9695505050505050565b6000602082840312156115c657600080fd5b815161085b8161109456fea26469706673582212205bb14e1c54f8d419d65dbee8059b88bdbdeccfe7c22b3b6b0f7b427cc6c302dc64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "baseURI", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "exists", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeMint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeMint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "title": "ERC721Mock This mock just provides a public safeMint, mint, and burn functions for testing purposes", "version": 1}}, "ERC721PausableMock": {"contractName": "ERC721PausableMock", "sourceId": "mocks/ERC721PausableMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162001a6038038062001a608339810160408190526200003491620001ec565b8151829082906200004d90600090602085019062000079565b5080516200006390600190602084019062000079565b50506006805460ff191690555062000292915050565b828054620000879062000256565b90600052602060002090601f016020900481019282620000ab5760008555620000f6565b82601f10620000c657805160ff1916838001178555620000f6565b82800160010185558215620000f6579182015b82811115620000f6578251825591602001919060010190620000d9565b506200010492915062000108565b5090565b5b8082111562000104576000815560010162000109565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200014757600080fd5b81516001600160401b03808211156200016457620001646200011f565b604051601f8301601f19908116603f011681019082821181831017156200018f576200018f6200011f565b81604052838152602092508683858801011115620001ac57600080fd5b600091505b83821015620001d05785820183015181830184015290820190620001b1565b83821115620001e25760008385830101525b9695505050505050565b600080604083850312156200020057600080fd5b82516001600160401b03808211156200021857600080fd5b620002268683870162000135565b935060208501519150808211156200023d57600080fd5b506200024c8582860162000135565b9150509250929050565b600181811c908216806200026b57607f821691505b6020821081036200028c57634e487b7160e01b600052602260045260246000fd5b50919050565b6117be80620002a26000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c80635c975abb116100b857806395d89b411161007c57806395d89b411461027a578063a144819414610282578063a22cb46514610295578063b88d4fde146102a8578063c87b56dd146102bb578063e985e9c5146102ce57600080fd5b80635c975abb146102205780636352211e1461022b57806370a082311461023e5780638456cb591461025f5780638832e6e31461026757600080fd5b80633f4ba83a116100ff5780633f4ba83a146101cc57806340c10f19146101d457806342842e0e146101e757806342966c68146101fa5780634f558e791461020d57600080fd5b806301ffc9a71461013c57806306fdde0314610164578063081812fc14610179578063095ea7b3146101a457806323b872dd146101b9575b600080fd5b61014f61014a366004611261565b61030a565b60405190151581526020015b60405180910390f35b61016c61035c565b60405161015b91906112d6565b61018c6101873660046112e9565b6103ee565b6040516001600160a01b03909116815260200161015b565b6101b76101b236600461131e565b610488565b005b6101b76101c7366004611348565b61059d565b6101b76105ce565b6101b76101e236600461131e565b6105d8565b6101b76101f5366004611348565b6105e6565b6101b76102083660046112e9565b610601565b61014f61021b3660046112e9565b61060d565b60065460ff1661014f565b61018c6102393660046112e9565b61062c565b61025161024c366004611384565b6106a3565b60405190815260200161015b565b6101b761072a565b6101b7610275366004611442565b610732565b61016c61073d565b6101b761029036600461131e565b61074c565b6101b76102a3366004611499565b610756565b6101b76102b63660046114d5565b610761565b61016c6102c93660046112e9565b610799565b61014f6102dc36600461153d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061033b57506001600160e01b03198216635b5e139f60e01b145b8061035657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461036b90611570565b80601f016020809104026020016040519081016040528092919081815260200182805461039790611570565b80156103e45780601f106103b9576101008083540402835291602001916103e4565b820191906000526020600020905b8154815290600101906020018083116103c757829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661046c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104938261062c565b9050806001600160a01b0316836001600160a01b0316036105005760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610463565b336001600160a01b038216148061051c575061051c81336102dc565b61058e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610463565b6105988383610881565b505050565b6105a733826108ef565b6105c35760405162461bcd60e51b8152600401610463906115aa565b6105988383836109e6565b6105d6610b91565b565b6105e28282610c24565b5050565b61059883838360405180602001604052806000815250610761565b61060a81610d72565b50565b6000818152600260205260408120546001600160a01b03161515610356565b6000818152600260205260408120546001600160a01b0316806103565760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610463565b60006001600160a01b03821661070e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610463565b506001600160a01b031660009081526003602052604090205490565b6105d6610e19565b610598838383610e94565b60606001805461036b90611570565b6105e28282610ec7565b6105e2338383610ee1565b61076b33836108ef565b6107875760405162461bcd60e51b8152600401610463906115aa565b61079384848484610faf565b50505050565b6000818152600260205260409020546060906001600160a01b03166108185760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610463565b600061082f60408051602081019091526000815290565b9050600081511161084f576040518060200160405280600081525061087a565b8061085984610fe2565b60405160200161086a9291906115fb565b6040516020818303038152906040525b9392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906108b68261062c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166109685760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610463565b60006109738361062c565b9050806001600160a01b0316846001600160a01b031614806109ae5750836001600160a01b03166109a3846103ee565b6001600160a01b0316145b806109de57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166109f98261062c565b6001600160a01b031614610a615760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610463565b6001600160a01b038216610ac35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610463565b610ace8383836110e3565b610ad9600082610881565b6001600160a01b0383166000908152600360205260408120805460019290610b02908490611640565b90915550506001600160a01b0382166000908152600360205260408120805460019290610b30908490611657565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60065460ff16610bda5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610463565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038216610c7a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610463565b6000818152600260205260409020546001600160a01b031615610cdf5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610463565b610ceb600083836110e3565b6001600160a01b0382166000908152600360205260408120805460019290610d14908490611657565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000610d7d8261062c565b9050610d8b816000846110e3565b610d96600083610881565b6001600160a01b0381166000908152600360205260408120805460019290610dbf908490611640565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60065460ff1615610e5f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610463565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c073390565b610e9e8383610c24565b610eab600084848461114a565b6105985760405162461bcd60e51b81526004016104639061166f565b6105e2828260405180602001604052806000815250610e94565b816001600160a01b0316836001600160a01b031603610f425760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610463565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610fba8484846109e6565b610fc68484848461114a565b6107935760405162461bcd60e51b81526004016104639061166f565b6060816000036110095750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611033578061101d816116c1565b915061102c9050600a836116f0565b915061100d565b60008167ffffffffffffffff81111561104e5761104e61139f565b6040519080825280601f01601f191660200182016040528015611078576020820181803683370190505b5090505b84156109de5761108d600183611640565b915061109a600a86611704565b6110a5906030611657565b60f81b8183815181106110ba576110ba611718565b60200101906001600160f81b031916908160001a9053506110dc600a866116f0565b945061107c565b60065460ff16156105985760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610463565b60006001600160a01b0384163b1561124057604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061118e90339089908890889060040161172e565b6020604051808303816000875af19250505080156111c9575060408051601f3d908101601f191682019092526111c69181019061176b565b60015b611226573d8080156111f7576040519150601f19603f3d011682016040523d82523d6000602084013e6111fc565b606091505b50805160000361121e5760405162461bcd60e51b81526004016104639061166f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506109de565b506001949350505050565b6001600160e01b03198116811461060a57600080fd5b60006020828403121561127357600080fd5b813561087a8161124b565b60005b83811015611299578181015183820152602001611281565b838111156107935750506000910152565b600081518084526112c281602086016020860161127e565b601f01601f19169290920160200192915050565b60208152600061087a60208301846112aa565b6000602082840312156112fb57600080fd5b5035919050565b80356001600160a01b038116811461131957600080fd5b919050565b6000806040838503121561133157600080fd5b61133a83611302565b946020939093013593505050565b60008060006060848603121561135d57600080fd5b61136684611302565b925061137460208501611302565b9150604084013590509250925092565b60006020828403121561139657600080fd5b61087a82611302565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126113c657600080fd5b813567ffffffffffffffff808211156113e1576113e161139f565b604051601f8301601f19908116603f011681019082821181831017156114095761140961139f565b8160405283815286602085880101111561142257600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561145757600080fd5b61146084611302565b925060208401359150604084013567ffffffffffffffff81111561148357600080fd5b61148f868287016113b5565b9150509250925092565b600080604083850312156114ac57600080fd5b6114b583611302565b9150602083013580151581146114ca57600080fd5b809150509250929050565b600080600080608085870312156114eb57600080fd5b6114f485611302565b935061150260208601611302565b925060408501359150606085013567ffffffffffffffff81111561152557600080fd5b611531878288016113b5565b91505092959194509250565b6000806040838503121561155057600080fd5b61155983611302565b915061156760208401611302565b90509250929050565b600181811c9082168061158457607f821691505b6020821081036115a457634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000835161160d81846020880161127e565b83519083019061162181836020880161127e565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156116525761165261162a565b500390565b6000821982111561166a5761166a61162a565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600182016116d3576116d361162a565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826116ff576116ff6116da565b500490565b600082611713576117136116da565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611761908301846112aa565b9695505050505050565b60006020828403121561177d57600080fd5b815161087a8161124b56fea26469706673582212203a86839039205906fbb7c6252e08c6eae4eb9c80321a5a4ad4a87a842b01e1fc64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101375760003560e01c80635c975abb116100b857806395d89b411161007c57806395d89b411461027a578063a144819414610282578063a22cb46514610295578063b88d4fde146102a8578063c87b56dd146102bb578063e985e9c5146102ce57600080fd5b80635c975abb146102205780636352211e1461022b57806370a082311461023e5780638456cb591461025f5780638832e6e31461026757600080fd5b80633f4ba83a116100ff5780633f4ba83a146101cc57806340c10f19146101d457806342842e0e146101e757806342966c68146101fa5780634f558e791461020d57600080fd5b806301ffc9a71461013c57806306fdde0314610164578063081812fc14610179578063095ea7b3146101a457806323b872dd146101b9575b600080fd5b61014f61014a366004611261565b61030a565b60405190151581526020015b60405180910390f35b61016c61035c565b60405161015b91906112d6565b61018c6101873660046112e9565b6103ee565b6040516001600160a01b03909116815260200161015b565b6101b76101b236600461131e565b610488565b005b6101b76101c7366004611348565b61059d565b6101b76105ce565b6101b76101e236600461131e565b6105d8565b6101b76101f5366004611348565b6105e6565b6101b76102083660046112e9565b610601565b61014f61021b3660046112e9565b61060d565b60065460ff1661014f565b61018c6102393660046112e9565b61062c565b61025161024c366004611384565b6106a3565b60405190815260200161015b565b6101b761072a565b6101b7610275366004611442565b610732565b61016c61073d565b6101b761029036600461131e565b61074c565b6101b76102a3366004611499565b610756565b6101b76102b63660046114d5565b610761565b61016c6102c93660046112e9565b610799565b61014f6102dc36600461153d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061033b57506001600160e01b03198216635b5e139f60e01b145b8061035657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461036b90611570565b80601f016020809104026020016040519081016040528092919081815260200182805461039790611570565b80156103e45780601f106103b9576101008083540402835291602001916103e4565b820191906000526020600020905b8154815290600101906020018083116103c757829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661046c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104938261062c565b9050806001600160a01b0316836001600160a01b0316036105005760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610463565b336001600160a01b038216148061051c575061051c81336102dc565b61058e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610463565b6105988383610881565b505050565b6105a733826108ef565b6105c35760405162461bcd60e51b8152600401610463906115aa565b6105988383836109e6565b6105d6610b91565b565b6105e28282610c24565b5050565b61059883838360405180602001604052806000815250610761565b61060a81610d72565b50565b6000818152600260205260408120546001600160a01b03161515610356565b6000818152600260205260408120546001600160a01b0316806103565760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610463565b60006001600160a01b03821661070e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610463565b506001600160a01b031660009081526003602052604090205490565b6105d6610e19565b610598838383610e94565b60606001805461036b90611570565b6105e28282610ec7565b6105e2338383610ee1565b61076b33836108ef565b6107875760405162461bcd60e51b8152600401610463906115aa565b61079384848484610faf565b50505050565b6000818152600260205260409020546060906001600160a01b03166108185760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610463565b600061082f60408051602081019091526000815290565b9050600081511161084f576040518060200160405280600081525061087a565b8061085984610fe2565b60405160200161086a9291906115fb565b6040516020818303038152906040525b9392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906108b68261062c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166109685760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610463565b60006109738361062c565b9050806001600160a01b0316846001600160a01b031614806109ae5750836001600160a01b03166109a3846103ee565b6001600160a01b0316145b806109de57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166109f98261062c565b6001600160a01b031614610a615760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610463565b6001600160a01b038216610ac35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610463565b610ace8383836110e3565b610ad9600082610881565b6001600160a01b0383166000908152600360205260408120805460019290610b02908490611640565b90915550506001600160a01b0382166000908152600360205260408120805460019290610b30908490611657565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60065460ff16610bda5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610463565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038216610c7a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610463565b6000818152600260205260409020546001600160a01b031615610cdf5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610463565b610ceb600083836110e3565b6001600160a01b0382166000908152600360205260408120805460019290610d14908490611657565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000610d7d8261062c565b9050610d8b816000846110e3565b610d96600083610881565b6001600160a01b0381166000908152600360205260408120805460019290610dbf908490611640565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60065460ff1615610e5f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610463565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c073390565b610e9e8383610c24565b610eab600084848461114a565b6105985760405162461bcd60e51b81526004016104639061166f565b6105e2828260405180602001604052806000815250610e94565b816001600160a01b0316836001600160a01b031603610f425760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610463565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610fba8484846109e6565b610fc68484848461114a565b6107935760405162461bcd60e51b81526004016104639061166f565b6060816000036110095750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611033578061101d816116c1565b915061102c9050600a836116f0565b915061100d565b60008167ffffffffffffffff81111561104e5761104e61139f565b6040519080825280601f01601f191660200182016040528015611078576020820181803683370190505b5090505b84156109de5761108d600183611640565b915061109a600a86611704565b6110a5906030611657565b60f81b8183815181106110ba576110ba611718565b60200101906001600160f81b031916908160001a9053506110dc600a866116f0565b945061107c565b60065460ff16156105985760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610463565b60006001600160a01b0384163b1561124057604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061118e90339089908890889060040161172e565b6020604051808303816000875af19250505080156111c9575060408051601f3d908101601f191682019092526111c69181019061176b565b60015b611226573d8080156111f7576040519150601f19603f3d011682016040523d82523d6000602084013e6111fc565b606091505b50805160000361121e5760405162461bcd60e51b81526004016104639061166f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506109de565b506001949350505050565b6001600160e01b03198116811461060a57600080fd5b60006020828403121561127357600080fd5b813561087a8161124b565b60005b83811015611299578181015183820152602001611281565b838111156107935750506000910152565b600081518084526112c281602086016020860161127e565b601f01601f19169290920160200192915050565b60208152600061087a60208301846112aa565b6000602082840312156112fb57600080fd5b5035919050565b80356001600160a01b038116811461131957600080fd5b919050565b6000806040838503121561133157600080fd5b61133a83611302565b946020939093013593505050565b60008060006060848603121561135d57600080fd5b61136684611302565b925061137460208501611302565b9150604084013590509250925092565b60006020828403121561139657600080fd5b61087a82611302565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126113c657600080fd5b813567ffffffffffffffff808211156113e1576113e161139f565b604051601f8301601f19908116603f011681019082821181831017156114095761140961139f565b8160405283815286602085880101111561142257600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561145757600080fd5b61146084611302565b925060208401359150604084013567ffffffffffffffff81111561148357600080fd5b61148f868287016113b5565b9150509250925092565b600080604083850312156114ac57600080fd5b6114b583611302565b9150602083013580151581146114ca57600080fd5b809150509250929050565b600080600080608085870312156114eb57600080fd5b6114f485611302565b935061150260208601611302565b925060408501359150606085013567ffffffffffffffff81111561152557600080fd5b611531878288016113b5565b91505092959194509250565b6000806040838503121561155057600080fd5b61155983611302565b915061156760208401611302565b90509250929050565b600181811c9082168061158457607f821691505b6020821081036115a457634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000835161160d81846020880161127e565b83519083019061162181836020880161127e565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156116525761165261162a565b500390565b6000821982111561166a5761166a61162a565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600182016116d3576116d361162a565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826116ff576116ff6116da565b500490565b600082611713576117136116da565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611761908301846112aa565b9695505050505050565b60006020828403121561177d57600080fd5b815161087a8161124b56fea26469706673582212203a86839039205906fbb7c6252e08c6eae4eb9c80321a5a4ad4a87a842b01e1fc64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "exists", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeMint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeMint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "title": "ERC721PausableMock This mock just provides a public mint, burn and exists functions for testing purposes", "version": 1}}, "ERC721ReceiverMock": {"contractName": "ERC721ReceiverMock", "sourceId": "mocks/ERC721ReceiverMock.sol", "deploymentBytecode": {"bytecode": "0x60c060405234801561001057600080fd5b506040516104d23803806104d283398101604081905261002f9161006e565b6001600160e01b0319821660805280600381111561004f5761004f6100b9565b60a0816003811115610063576100636100b9565b8152505050506100cf565b6000806040838503121561008157600080fd5b82516001600160e01b03198116811461009957600080fd5b6020840151909250600481106100ae57600080fd5b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b60805160a0516103d26101006000396000818160660152818160eb0152610129015260006101af01526103d26000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b61004361003e366004610208565b610060565b6040516001600160e01b0319909116815260200160405180910390f35b600060017f00000000000000000000000000000000000000000000000000000000000000006003811115610096576100966102e4565b036100e75760405162461bcd60e51b815260206004820152601d60248201527f45524337323152656365697665724d6f636b3a20726576657274696e67000000604482015260640160405180910390fd5b60027f0000000000000000000000000000000000000000000000000000000000000000600381111561011b5761011b6102e4565b0361012557600080fd5b60037f00000000000000000000000000000000000000000000000000000000000000006003811115610159576101596102e4565b0361016d57600061016a81806102fa565b50505b7f28fa6e16458f9c24aa59ddd4085264573006dbe30304837873c7deafc702b038858585855a6040516101a495949392919061031c565b60405180910390a1507f0000000000000000000000000000000000000000000000000000000000000000949350505050565b80356001600160a01b03811681146101ed57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561021e57600080fd5b610227856101d6565b9350610235602086016101d6565b925060408501359150606085013567ffffffffffffffff8082111561025957600080fd5b818701915087601f83011261026d57600080fd5b81358181111561027f5761027f6101f2565b604051601f8201601f19908116603f011681019083821181831017156102a7576102a76101f2565b816040528281528a60208487010111156102c057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b634e487b7160e01b600052602160045260246000fd5b60008261031757634e487b7160e01b600052601260045260246000fd5b500490565b600060018060a01b03808816835260208188168185015286604085015260a06060850152855191508160a085015260005b828110156103695786810182015185820160c00152810161034d565b8281111561037b57600060c084870101525b5050608083019390935250601f91909101601f19160160c00194935050505056fea264697066735822122071c5b65e38bc6ec57567cb93f42ce0b9bbce7049ab673062b65607cf45a4569364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b61004361003e366004610208565b610060565b6040516001600160e01b0319909116815260200160405180910390f35b600060017f00000000000000000000000000000000000000000000000000000000000000006003811115610096576100966102e4565b036100e75760405162461bcd60e51b815260206004820152601d60248201527f45524337323152656365697665724d6f636b3a20726576657274696e67000000604482015260640160405180910390fd5b60027f0000000000000000000000000000000000000000000000000000000000000000600381111561011b5761011b6102e4565b0361012557600080fd5b60037f00000000000000000000000000000000000000000000000000000000000000006003811115610159576101596102e4565b0361016d57600061016a81806102fa565b50505b7f28fa6e16458f9c24aa59ddd4085264573006dbe30304837873c7deafc702b038858585855a6040516101a495949392919061031c565b60405180910390a1507f0000000000000000000000000000000000000000000000000000000000000000949350505050565b80356001600160a01b03811681146101ed57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561021e57600080fd5b610227856101d6565b9350610235602086016101d6565b925060408501359150606085013567ffffffffffffffff8082111561025957600080fd5b818701915087601f83011261026d57600080fd5b81358181111561027f5761027f6101f2565b604051601f8201601f19908116603f011681019083821181831017156102a7576102a76101f2565b816040528281528a60208487010111156102c057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b634e487b7160e01b600052602160045260246000fd5b60008261031757634e487b7160e01b600052601260045260246000fd5b500490565b600060018060a01b03808816835260208188168185015286604085015260a06060850152855191508160a085015260005b828110156103695786810182015185820160c00152810161034d565b8281111561037b57600060c084870101525b5050608083019390935250601f91909101601f19160160c00194935050505056fea264697066735822122071c5b65e38bc6ec57567cb93f42ce0b9bbce7049ab673062b65607cf45a4569364736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "retval", "type": "bytes4", "internalType": "bytes4"}, {"name": "error", "type": "uint8", "internalType": "enum ERC721ReceiverMock.Error"}]}, {"type": "event", "name": "Received", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": false}, {"name": "from", "type": "address", "internalType": "address", "indexed": false}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "gas", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "onERC721Received", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"onERC721Received(address,address,uint256,bytes)": {"details": "Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} by `operator` from `from`, this function is called. It must return its Solidity selector to confirm the token transfer. If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`."}}, "version": 1}}, "ERC721URIStorageMock": {"contractName": "ERC721URIStorageMock", "sourceId": "mocks/ERC721URIStorageMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162001cfe38038062001cfe8339810160408190526200003491620001e1565b8151829082906200004d9060009060208501906200006e565b508051620000639060019060208401906200006e565b505050505062000287565b8280546200007c906200024b565b90600052602060002090601f016020900481019282620000a05760008555620000eb565b82601f10620000bb57805160ff1916838001178555620000eb565b82800160010185558215620000eb579182015b82811115620000eb578251825591602001919060010190620000ce565b50620000f9929150620000fd565b5090565b5b80821115620000f95760008155600101620000fe565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013c57600080fd5b81516001600160401b038082111562000159576200015962000114565b604051601f8301601f19908116603f0116810190828211818310171562000184576200018462000114565b81604052838152602092508683858801011115620001a157600080fd5b600091505b83821015620001c55785820183015181830184015290820190620001a6565b83821115620001d75760008385830101525b9695505050505050565b60008060408385031215620001f557600080fd5b82516001600160401b03808211156200020d57600080fd5b6200021b868387016200012a565b935060208501519150808211156200023257600080fd5b5062000241858286016200012a565b9150509250929050565b600181811c908216806200026057607f821691505b6020821081036200028157634e487b7160e01b600052602260045260246000fd5b50919050565b611a6780620002976000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806355f804b3116100b857806395d89b411161007c57806395d89b411461028d578063a144819414610295578063a22cb465146102a8578063b88d4fde146102bb578063c87b56dd146102ce578063e985e9c5146102e157600080fd5b806355f804b31461022b5780636352211e1461023e5780636c0360eb1461025157806370a08231146102595780638832e6e31461027a57600080fd5b806323b872dd116100ff57806323b872dd146101cc57806340c10f19146101df57806342842e0e146101f257806342966c68146102055780634f558e791461021857600080fd5b806301ffc9a71461013c57806306fdde0314610164578063081812fc14610179578063095ea7b3146101a4578063162094c4146101b9575b600080fd5b61014f61014a366004611434565b61031d565b60405190151581526020015b60405180910390f35b61016c61036f565b60405161015b91906114a9565b61018c6101873660046114bc565b610401565b6040516001600160a01b03909116815260200161015b565b6101b76101b23660046114f1565b61048e565b005b6101b76101c73660046115a7565b6105a3565b6101b76101da366004611602565b6105b1565b6101b76101ed3660046114f1565b6105e2565b6101b7610200366004611602565b6105ec565b6101b76102133660046114bc565b610607565b61014f6102263660046114bc565b610613565b6101b761023936600461163e565b61061e565b61018c61024c3660046114bc565b61062a565b61016c6106a1565b61026c6102673660046116b0565b6106b0565b60405190815260200161015b565b6101b76102883660046116eb565b610737565b61016c610742565b6101b76102a33660046114f1565b610751565b6101b76102b6366004611742565b61075b565b6101b76102c936600461177e565b610766565b61016c6102dc3660046114bc565b61079e565b61014f6102ef3660046117e6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061034e57506001600160e01b03198216635b5e139f60e01b145b8061036957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461037e90611819565b80601f01602080910402602001604051908101604052809291908181526020018280546103aa90611819565b80156103f75780601f106103cc576101008083540402835291602001916103f7565b820191906000526020600020905b8154815290600101906020018083116103da57829003601f168201915b5050505050905090565b600061040c82610907565b6104725760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104998261062a565b9050806001600160a01b0316836001600160a01b0316036105065760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610469565b336001600160a01b0382161480610522575061052281336102ef565b6105945760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610469565b61059e8383610924565b505050565b6105ad8282610992565b5050565b6105bb3382610a1d565b6105d75760405162461bcd60e51b815260040161046990611853565b61059e838383610b03565b6105ad8282610ca3565b61059e83838360405180602001604052806000815250610766565b61061081610dd6565b50565b600061036982610907565b61059e600783836112db565b6000818152600260205260408120546001600160a01b0316806103695760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610469565b60606106ab610e16565b905090565b60006001600160a01b03821661071b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610469565b506001600160a01b031660009081526003602052604090205490565b61059e838383610e25565b60606001805461037e90611819565b6105ad8282610e58565b6105ad338383610e72565b6107703383610a1d565b61078c5760405162461bcd60e51b815260040161046990611853565b61079884848484610f40565b50505050565b60606107a982610907565b61080f5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610469565b6000828152600660205260408120805461082890611819565b80601f016020809104026020016040519081016040528092919081815260200182805461085490611819565b80156108a15780601f10610876576101008083540402835291602001916108a1565b820191906000526020600020905b81548152906001019060200180831161088457829003601f168201915b5050505050905060006108b2610e16565b905080516000036108c4575092915050565b8151156108f65780826040516020016108de9291906118a4565b60405160208183030381529060405292505050919050565b6108ff84610f73565b949350505050565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906109598261062a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61099b82610907565b6109fe5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610469565b6000828152600660209081526040909120825161059e9284019061135f565b6000610a2882610907565b610a895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610469565b6000610a948361062a565b9050806001600160a01b0316846001600160a01b03161480610acf5750836001600160a01b0316610ac484610401565b6001600160a01b0316145b806108ff57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff166108ff565b826001600160a01b0316610b168261062a565b6001600160a01b031614610b7e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610469565b6001600160a01b038216610be05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610469565b610beb600082610924565b6001600160a01b0383166000908152600360205260408120805460019290610c149084906118e9565b90915550506001600160a01b0382166000908152600360205260408120805460019290610c42908490611900565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610cf95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610469565b610d0281610907565b15610d4f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610469565b6001600160a01b0382166000908152600360205260408120805460019290610d78908490611900565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b610ddf8161103e565b60008181526006602052604090208054610df890611819565b159050610610576000818152600660205260408120610610916113d3565b60606007805461037e90611819565b610e2f8383610ca3565b610e3c60008484846110d9565b61059e5760405162461bcd60e51b815260040161046990611918565b6105ad828260405180602001604052806000815250610e25565b816001600160a01b0316836001600160a01b031603610ed35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610469565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610f4b848484610b03565b610f57848484846110d9565b6107985760405162461bcd60e51b815260040161046990611918565b6060610f7e82610907565b610fe25760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610469565b6000610fec610e16565b9050600081511161100c5760405180602001604052806000815250611037565b80611016846111da565b6040516020016110279291906118a4565b6040516020818303038152906040525b9392505050565b60006110498261062a565b9050611056600083610924565b6001600160a01b038116600090815260036020526040812080546001929061107f9084906118e9565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b156111cf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061111d90339089908890889060040161196a565b6020604051808303816000875af1925050508015611158575060408051601f3d908101601f19168201909252611155918101906119a7565b60015b6111b5573d808015611186576040519150601f19603f3d011682016040523d82523d6000602084013e61118b565b606091505b5080516000036111ad5760405162461bcd60e51b815260040161046990611918565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506108ff565b506001949350505050565b6060816000036112015750506040805180820190915260018152600360fc1b602082015290565b8160005b811561122b5780611215816119c4565b91506112249050600a836119f3565b9150611205565b60008167ffffffffffffffff8111156112465761124661151b565b6040519080825280601f01601f191660200182016040528015611270576020820181803683370190505b5090505b84156108ff576112856001836118e9565b9150611292600a86611a07565b61129d906030611900565b60f81b8183815181106112b2576112b2611a1b565b60200101906001600160f81b031916908160001a9053506112d4600a866119f3565b9450611274565b8280546112e790611819565b90600052602060002090601f016020900481019282611309576000855561134f565b82601f106113225782800160ff1982351617855561134f565b8280016001018555821561134f579182015b8281111561134f578235825591602001919060010190611334565b5061135b929150611409565b5090565b82805461136b90611819565b90600052602060002090601f01602090048101928261138d576000855561134f565b82601f106113a657805160ff191683800117855561134f565b8280016001018555821561134f579182015b8281111561134f5782518255916020019190600101906113b8565b5080546113df90611819565b6000825580601f106113ef575050565b601f01602090049060005260206000209081019061061091905b5b8082111561135b576000815560010161140a565b6001600160e01b03198116811461061057600080fd5b60006020828403121561144657600080fd5b81356110378161141e565b60005b8381101561146c578181015183820152602001611454565b838111156107985750506000910152565b60008151808452611495816020860160208601611451565b601f01601f19169290920160200192915050565b602081526000611037602083018461147d565b6000602082840312156114ce57600080fd5b5035919050565b80356001600160a01b03811681146114ec57600080fd5b919050565b6000806040838503121561150457600080fd5b61150d836114d5565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561154c5761154c61151b565b604051601f8501601f19908116603f011681019082821181831017156115745761157461151b565b8160405280935085815286868601111561158d57600080fd5b858560208301376000602087830101525050509392505050565b600080604083850312156115ba57600080fd5b82359150602083013567ffffffffffffffff8111156115d857600080fd5b8301601f810185136115e957600080fd5b6115f885823560208401611531565b9150509250929050565b60008060006060848603121561161757600080fd5b611620846114d5565b925061162e602085016114d5565b9150604084013590509250925092565b6000806020838503121561165157600080fd5b823567ffffffffffffffff8082111561166957600080fd5b818501915085601f83011261167d57600080fd5b81358181111561168c57600080fd5b86602082850101111561169e57600080fd5b60209290920196919550909350505050565b6000602082840312156116c257600080fd5b611037826114d5565b600082601f8301126116dc57600080fd5b61103783833560208501611531565b60008060006060848603121561170057600080fd5b611709846114d5565b925060208401359150604084013567ffffffffffffffff81111561172c57600080fd5b611738868287016116cb565b9150509250925092565b6000806040838503121561175557600080fd5b61175e836114d5565b91506020830135801515811461177357600080fd5b809150509250929050565b6000806000806080858703121561179457600080fd5b61179d856114d5565b93506117ab602086016114d5565b925060408501359150606085013567ffffffffffffffff8111156117ce57600080fd5b6117da878288016116cb565b91505092959194509250565b600080604083850312156117f957600080fd5b611802836114d5565b9150611810602084016114d5565b90509250929050565b600181811c9082168061182d57607f821691505b60208210810361184d57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600083516118b6818460208801611451565b8351908301906118ca818360208801611451565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156118fb576118fb6118d3565b500390565b60008219821115611913576119136118d3565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061199d9083018461147d565b9695505050505050565b6000602082840312156119b957600080fd5b81516110378161141e565b6000600182016119d6576119d66118d3565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611a0257611a026119dd565b500490565b600082611a1657611a166119dd565b500690565b634e487b7160e01b600052603260045260246000fdfea264697066735822122030498e9bc3aecc4e2ad1ddede51b820cc8f78e3e0ae0899dbc926b2b5988478464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101375760003560e01c806355f804b3116100b857806395d89b411161007c57806395d89b411461028d578063a144819414610295578063a22cb465146102a8578063b88d4fde146102bb578063c87b56dd146102ce578063e985e9c5146102e157600080fd5b806355f804b31461022b5780636352211e1461023e5780636c0360eb1461025157806370a08231146102595780638832e6e31461027a57600080fd5b806323b872dd116100ff57806323b872dd146101cc57806340c10f19146101df57806342842e0e146101f257806342966c68146102055780634f558e791461021857600080fd5b806301ffc9a71461013c57806306fdde0314610164578063081812fc14610179578063095ea7b3146101a4578063162094c4146101b9575b600080fd5b61014f61014a366004611434565b61031d565b60405190151581526020015b60405180910390f35b61016c61036f565b60405161015b91906114a9565b61018c6101873660046114bc565b610401565b6040516001600160a01b03909116815260200161015b565b6101b76101b23660046114f1565b61048e565b005b6101b76101c73660046115a7565b6105a3565b6101b76101da366004611602565b6105b1565b6101b76101ed3660046114f1565b6105e2565b6101b7610200366004611602565b6105ec565b6101b76102133660046114bc565b610607565b61014f6102263660046114bc565b610613565b6101b761023936600461163e565b61061e565b61018c61024c3660046114bc565b61062a565b61016c6106a1565b61026c6102673660046116b0565b6106b0565b60405190815260200161015b565b6101b76102883660046116eb565b610737565b61016c610742565b6101b76102a33660046114f1565b610751565b6101b76102b6366004611742565b61075b565b6101b76102c936600461177e565b610766565b61016c6102dc3660046114bc565b61079e565b61014f6102ef3660046117e6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061034e57506001600160e01b03198216635b5e139f60e01b145b8061036957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461037e90611819565b80601f01602080910402602001604051908101604052809291908181526020018280546103aa90611819565b80156103f75780601f106103cc576101008083540402835291602001916103f7565b820191906000526020600020905b8154815290600101906020018083116103da57829003601f168201915b5050505050905090565b600061040c82610907565b6104725760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104998261062a565b9050806001600160a01b0316836001600160a01b0316036105065760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610469565b336001600160a01b0382161480610522575061052281336102ef565b6105945760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610469565b61059e8383610924565b505050565b6105ad8282610992565b5050565b6105bb3382610a1d565b6105d75760405162461bcd60e51b815260040161046990611853565b61059e838383610b03565b6105ad8282610ca3565b61059e83838360405180602001604052806000815250610766565b61061081610dd6565b50565b600061036982610907565b61059e600783836112db565b6000818152600260205260408120546001600160a01b0316806103695760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610469565b60606106ab610e16565b905090565b60006001600160a01b03821661071b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610469565b506001600160a01b031660009081526003602052604090205490565b61059e838383610e25565b60606001805461037e90611819565b6105ad8282610e58565b6105ad338383610e72565b6107703383610a1d565b61078c5760405162461bcd60e51b815260040161046990611853565b61079884848484610f40565b50505050565b60606107a982610907565b61080f5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610469565b6000828152600660205260408120805461082890611819565b80601f016020809104026020016040519081016040528092919081815260200182805461085490611819565b80156108a15780601f10610876576101008083540402835291602001916108a1565b820191906000526020600020905b81548152906001019060200180831161088457829003601f168201915b5050505050905060006108b2610e16565b905080516000036108c4575092915050565b8151156108f65780826040516020016108de9291906118a4565b60405160208183030381529060405292505050919050565b6108ff84610f73565b949350505050565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906109598261062a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61099b82610907565b6109fe5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610469565b6000828152600660209081526040909120825161059e9284019061135f565b6000610a2882610907565b610a895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610469565b6000610a948361062a565b9050806001600160a01b0316846001600160a01b03161480610acf5750836001600160a01b0316610ac484610401565b6001600160a01b0316145b806108ff57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff166108ff565b826001600160a01b0316610b168261062a565b6001600160a01b031614610b7e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610469565b6001600160a01b038216610be05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610469565b610beb600082610924565b6001600160a01b0383166000908152600360205260408120805460019290610c149084906118e9565b90915550506001600160a01b0382166000908152600360205260408120805460019290610c42908490611900565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216610cf95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610469565b610d0281610907565b15610d4f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610469565b6001600160a01b0382166000908152600360205260408120805460019290610d78908490611900565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b610ddf8161103e565b60008181526006602052604090208054610df890611819565b159050610610576000818152600660205260408120610610916113d3565b60606007805461037e90611819565b610e2f8383610ca3565b610e3c60008484846110d9565b61059e5760405162461bcd60e51b815260040161046990611918565b6105ad828260405180602001604052806000815250610e25565b816001600160a01b0316836001600160a01b031603610ed35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610469565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610f4b848484610b03565b610f57848484846110d9565b6107985760405162461bcd60e51b815260040161046990611918565b6060610f7e82610907565b610fe25760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610469565b6000610fec610e16565b9050600081511161100c5760405180602001604052806000815250611037565b80611016846111da565b6040516020016110279291906118a4565b6040516020818303038152906040525b9392505050565b60006110498261062a565b9050611056600083610924565b6001600160a01b038116600090815260036020526040812080546001929061107f9084906118e9565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b156111cf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061111d90339089908890889060040161196a565b6020604051808303816000875af1925050508015611158575060408051601f3d908101601f19168201909252611155918101906119a7565b60015b6111b5573d808015611186576040519150601f19603f3d011682016040523d82523d6000602084013e61118b565b606091505b5080516000036111ad5760405162461bcd60e51b815260040161046990611918565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506108ff565b506001949350505050565b6060816000036112015750506040805180820190915260018152600360fc1b602082015290565b8160005b811561122b5780611215816119c4565b91506112249050600a836119f3565b9150611205565b60008167ffffffffffffffff8111156112465761124661151b565b6040519080825280601f01601f191660200182016040528015611270576020820181803683370190505b5090505b84156108ff576112856001836118e9565b9150611292600a86611a07565b61129d906030611900565b60f81b8183815181106112b2576112b2611a1b565b60200101906001600160f81b031916908160001a9053506112d4600a866119f3565b9450611274565b8280546112e790611819565b90600052602060002090601f016020900481019282611309576000855561134f565b82601f106113225782800160ff1982351617855561134f565b8280016001018555821561134f579182015b8281111561134f578235825591602001919060010190611334565b5061135b929150611409565b5090565b82805461136b90611819565b90600052602060002090601f01602090048101928261138d576000855561134f565b82601f106113a657805160ff191683800117855561134f565b8280016001018555821561134f579182015b8281111561134f5782518255916020019190600101906113b8565b5080546113df90611819565b6000825580601f106113ef575050565b601f01602090049060005260206000209081019061061091905b5b8082111561135b576000815560010161140a565b6001600160e01b03198116811461061057600080fd5b60006020828403121561144657600080fd5b81356110378161141e565b60005b8381101561146c578181015183820152602001611454565b838111156107985750506000910152565b60008151808452611495816020860160208601611451565b601f01601f19169290920160200192915050565b602081526000611037602083018461147d565b6000602082840312156114ce57600080fd5b5035919050565b80356001600160a01b03811681146114ec57600080fd5b919050565b6000806040838503121561150457600080fd5b61150d836114d5565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561154c5761154c61151b565b604051601f8501601f19908116603f011681019082821181831017156115745761157461151b565b8160405280935085815286868601111561158d57600080fd5b858560208301376000602087830101525050509392505050565b600080604083850312156115ba57600080fd5b82359150602083013567ffffffffffffffff8111156115d857600080fd5b8301601f810185136115e957600080fd5b6115f885823560208401611531565b9150509250929050565b60008060006060848603121561161757600080fd5b611620846114d5565b925061162e602085016114d5565b9150604084013590509250925092565b6000806020838503121561165157600080fd5b823567ffffffffffffffff8082111561166957600080fd5b818501915085601f83011261167d57600080fd5b81358181111561168c57600080fd5b86602082850101111561169e57600080fd5b60209290920196919550909350505050565b6000602082840312156116c257600080fd5b611037826114d5565b600082601f8301126116dc57600080fd5b61103783833560208501611531565b60008060006060848603121561170057600080fd5b611709846114d5565b925060208401359150604084013567ffffffffffffffff81111561172c57600080fd5b611738868287016116cb565b9150509250925092565b6000806040838503121561175557600080fd5b61175e836114d5565b91506020830135801515811461177357600080fd5b809150509250929050565b6000806000806080858703121561179457600080fd5b61179d856114d5565b93506117ab602086016114d5565b925060408501359150606085013567ffffffffffffffff8111156117ce57600080fd5b6117da878288016116cb565b91505092959194509250565b600080604083850312156117f957600080fd5b611802836114d5565b9150611810602084016114d5565b90509250929050565b600181811c9082168061182d57607f821691505b60208210810361184d57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600083516118b6818460208801611451565b8351908301906118ca818360208801611451565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156118fb576118fb6118d3565b500390565b60008219821115611913576119136118d3565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061199d9083018461147d565b9695505050505050565b6000602082840312156119b957600080fd5b81516110378161141e565b6000600182016119d6576119d66118d3565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611a0257611a026119dd565b500490565b600082611a1657611a166119dd565b500690565b634e487b7160e01b600052603260045260246000fdfea264697066735822122030498e9bc3aecc4e2ad1ddede51b820cc8f78e3e0ae0899dbc926b2b5988478464736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "baseURI", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "exists", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeMint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeMint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "setBaseURI", "stateMutability": "nonpayable", "inputs": [{"name": "newBaseTokenURI", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "setTokenURI", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_tokenURI", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "title": "ERC721Mock This mock just provides a public safeMint, mint, and burn functions for testing purposes", "version": 1}}, "ERC777Mock": {"contractName": "ERC777Mock", "sourceId": "mocks/ERC777Mock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162002511380380620025118339810160408190526200003491620007ea565b82828282600290805190602001906200004f929190620005e3565b50815162000065906003906020850190620005e3565b5080516200007b90600490602084019062000672565b5060005b8151811015620000eb57600160056000848481518110620000a457620000a462000913565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580620000e2816200093f565b9150506200007f565b506040516329965a1d60e01b815230600482018190527fac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce217705460248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad24906329965a1d90606401600060405180830381600087803b1580156200016657600080fd5b505af11580156200017b573d6000803e3d6000fd5b50506040516329965a1d60e01b815230600482018190527faea199e31a596269b42cdafd93407f14436db6e4cad65417994c2eb37381e05a60248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad2492506329965a1d9150606401600060405180830381600087803b158015620001f957600080fd5b505af11580156200020e573d6000803e3d6000fd5b5050505050505062000247858560405180602001604052806000815250604051806020016040528060008152506200025260201b60201c565b505050505062000a9c565b6200026284848484600162000268565b50505050565b6001600160a01b038516620002c45760405162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f206164647265737360448201526064015b60405180910390fd5b33620002d48160008888620003c9565b8460016000828254620002e891906200095b565b90915550506001600160a01b03861660009081526020819052604081208054879290620003179084906200095b565b909155506200032f90508160008888888888620003f8565b856001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d8787876040516200037893929190620009a4565b60405180910390a36040518581526001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050505050565b6040517f52316ab8e8b0687ce803e403dfe429541bccd4f6c4683ec65d254d382f15a26590600090a150505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa1580156200047a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004a09190620009dd565b90506001600160a01b0381161562000522576040516223de2960e01b81526001600160a01b038216906223de2990620004e8908b908b908b908b908b908b9060040162000a02565b600060405180830381600087803b1580156200050357600080fd5b505af115801562000518573d6000803e3d6000fd5b50505050620005d3565b8115620005d35762000548866001600160a01b0316620005dd60201b62000a4c1760201c565b15620005d35760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a401620002bb565b5050505050505050565b3b151590565b828054620005f19062000a60565b90600052602060002090601f01602090048101928262000615576000855562000660565b82601f106200063057805160ff191683800117855562000660565b8280016001018555821562000660579182015b828111156200066057825182559160200191906001019062000643565b506200066e929150620006ca565b5090565b82805482825590600052602060002090810192821562000660579160200282015b828111156200066057825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000693565b5b808211156200066e5760008155600101620006cb565b80516001600160a01b0381168114620006f957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200073f576200073f620006fe565b604052919050565b60005b83811015620007645781810151838201526020016200074a565b83811115620002625750506000910152565b600082601f8301126200078857600080fd5b81516001600160401b03811115620007a457620007a4620006fe565b620007b9601f8201601f191660200162000714565b818152846020838601011115620007cf57600080fd5b620007e282602083016020870162000747565b949350505050565b600080600080600060a086880312156200080357600080fd5b6200080e86620006e1565b60208781015160408901519297509550906001600160401b03808211156200083557600080fd5b620008438a838b0162000776565b955060608901519150808211156200085a57600080fd5b620008688a838b0162000776565b945060808901519150808211156200087f57600080fd5b818901915089601f8301126200089457600080fd5b815181811115620008a957620008a9620006fe565b8060051b9150620008bc84830162000714565b818152918301840191848101908c841115620008d757600080fd5b938501935b838510156200090057620008f085620006e1565b82529385019390850190620008dc565b8096505050505050509295509295909350565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820162000954576200095462000929565b5060010190565b6000821982111562000971576200097162000929565b500190565b600081518084526200099081602086016020860162000747565b601f01601f19169290920160200192915050565b838152606060208201526000620009bf606083018562000976565b8281036040840152620009d3818562000976565b9695505050505050565b600060208284031215620009f057600080fd5b620009fb82620006e1565b9392505050565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c06080820181905260009062000a3f9083018562000976565b82810360a084015262000a53818562000976565b9998505050505050505050565b600181811c9082168062000a7557607f821691505b60208210810362000a9657634e487b7160e01b600052602260045260246000fd5b50919050565b611a658062000aac6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063959b8c3f116100b8578063cfbfab0b1161007c578063cfbfab0b14610272578063d95b637114610285578063dd62ed3e14610298578063fad8b32a146102d1578063fc673c4f146102e4578063fe9d9303146102f757600080fd5b8063959b8c3f1461021e57806395d89b41146102315780639bd9bbc614610239578063a9059cbb1461024c578063b1f0b5be1461025f57600080fd5b8063313ce567116100ff578063313ce567146101b7578063556f0dc7146101c657806356189cb4146101cd57806362ad1b83146101e257806370a08231146101f557600080fd5b806306e485381461013c57806306fdde031461015a578063095ea7b31461016f57806318160ddd1461019257806323b872dd146101a4575b600080fd5b61014461030a565b60405161015191906113fc565b60405180910390f35b61016261036c565b6040516101519190611496565b61018261017d3660046114c1565b6103f5565b6040519015158152602001610151565b6001545b604051908152602001610151565b6101826101b23660046114ed565b61040d565b60405160128152602001610151565b6001610196565b6101e06101db3660046114ed565b6105d6565b005b6101e06101f03660046115d1565b6105e6565b610196610203366004611664565b6001600160a01b031660009081526020819052604090205490565b6101e061022c366004611664565b610622565b61016261073f565b6101e0610247366004611681565b61074e565b61018261025a3660046114c1565b61076c565b6101e061026d3660046116da565b61081f565b6101e061028036600461175a565b610831565b6101826102933660046117f4565b61083e565b6101966102a63660046117f4565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b6101e06102df366004611664565b6108e0565b6101e06102f23660046116da565b6109fb565b6101e061030536600461182d565b610a2d565b6060600480548060200260200160405190810160405280929190818152602001828054801561036257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610344575b5050505050905090565b60606002805461037b90611874565b80601f01602080910402602001604051908101604052809291908181526020018280546103a790611874565b80156103625780601f106103c957610100808354040283529160200191610362565b820191906000526020600020905b8154815290600101906020018083116103d757509395945050505050565b600033610403818585610a52565b5060019392505050565b60006001600160a01b03831661043e5760405162461bcd60e51b8152600401610435906118ae565b60405180910390fd5b6001600160a01b0384166104a35760405162461bcd60e51b815260206004820152602660248201527f4552433737373a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b6064820152608401610435565b60003390506104d4818686866040518060200160405280600081525060405180602001604052806000815250610b79565b610500818686866040518060200160405280600081525060405180602001604052806000815250610ca1565b6001600160a01b03808616600090815260086020908152604080832093851683529290522054838110156105885760405162461bcd60e51b815260206004820152602960248201527f4552433737373a207472616e7366657220616d6f756e74206578636565647320604482015268616c6c6f77616e636560b81b6064820152608401610435565b61059c86836105978785611908565b610a52565b6105ca8287878760405180602001604052806000815250604051806020016040528060008152506000610e13565b50600195945050505050565b6105e1838383610a52565b505050565b6105f0338661083e565b61060c5760405162461bcd60e51b81526004016104359061191f565b61061b85858585856001610fd8565b5050505050565b6001600160a01b03811633036106865760405162461bcd60e51b8152602060048201526024808201527f4552433737373a20617574686f72697a696e672073656c66206173206f70657260448201526330ba37b960e11b6064820152608401610435565b6001600160a01b03811660009081526005602052604090205460ff16156106d7573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff19169055610706565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790555b60405133906001600160a01b038316907ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f990600090a350565b60606003805461037b90611874565b6105e133848484604051806020016040528060008152506001610fd8565b60006001600160a01b0383166107945760405162461bcd60e51b8152600401610435906118ae565b60003390506107c5818286866040518060200160405280600081525060405180602001604052806000815250610b79565b6107f1818286866040518060200160405280600081525060405180602001604052806000815250610ca1565b6104038182868660405180602001604052806000815250604051806020016040528060008152506000610e13565b61082b848484846110bb565b50505050565b61061b85858585856110c5565b6000816001600160a01b0316836001600160a01b031614806108a957506001600160a01b03831660009081526005602052604090205460ff1680156108a957506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b806108d957506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b336001600160a01b038216036109425760405162461bcd60e51b815260206004820152602160248201527f4552433737373a207265766f6b696e672073656c66206173206f70657261746f6044820152603960f91b6064820152608401610435565b6001600160a01b03811660009081526005602052604090205460ff1615610996573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff191660011790556109c2565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191690555b60405133906001600160a01b038316907f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa190600090a350565b610a05338561083e565b610a215760405162461bcd60e51b81526004016104359061191f565b61082b84848484611217565b610a4833838360405180602001604052806000815250611217565b5050565b3b151590565b6001600160a01b038316610ab65760405162461bcd60e51b815260206004820152602560248201527f4552433737373a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610435565b6001600160a01b038216610b185760405162461bcd60e51b815260206004820152602360248201527f4552433737373a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610435565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe8956024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa158015610bfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1e919061196b565b90506001600160a01b03811615610c9857604051633ad5cbc160e11b81526001600160a01b038216906375ab978290610c65908a908a908a908a908a908a90600401611988565b600060405180830381600087803b158015610c7f57600080fd5b505af1158015610c93573d6000803e3d6000fd5b505050505b50505050505050565b610cad868686866113cd565b6001600160a01b03851660009081526020819052604090205483811015610d265760405162461bcd60e51b815260206004820152602760248201527f4552433737373a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b6064820152608401610435565b6001600160a01b03808716600090815260208190526040808220878503905591871681529081208054869290610d5d9084906119e2565b92505081905550846001600160a01b0316866001600160a01b0316886001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987878787604051610db5939291906119fa565b60405180910390a4846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef86604051610e0291815260200190565b60405180910390a350505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa158015610e94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb8919061196b565b90506001600160a01b03811615610f34576040516223de2960e01b81526001600160a01b038216906223de2990610efd908b908b908b908b908b908b90600401611988565b600060405180830381600087803b158015610f1757600080fd5b505af1158015610f2b573d6000803e3d6000fd5b50505050610fce565b8115610fce576001600160a01b0386163b15610fce5760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a401610435565b5050505050505050565b6001600160a01b0386166110395760405162461bcd60e51b815260206004820152602260248201527f4552433737373a2073656e642066726f6d20746865207a65726f206164647265604482015261737360f01b6064820152608401610435565b6001600160a01b03851661108f5760405162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f20616464726573736044820152606401610435565b3361109e818888888888610b79565b6110ac818888888888610ca1565b610c9881888888888888610e13565b61082b8484848460015b6001600160a01b03851661111b5760405162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f20616464726573736044820152606401610435565b3361112981600088886113cd565b846001600082825461113b91906119e2565b90915550506001600160a01b038616600090815260208190526040812080548792906111689084906119e2565b9091555061117e90508160008888888888610e13565b856001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d8787876040516111c5939291906119fa565b60405180910390a36040518581526001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a3505050505050565b6001600160a01b0384166112785760405162461bcd60e51b815260206004820152602260248201527f4552433737373a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b6064820152608401610435565b3361128881866000878787610b79565b61129581866000876113cd565b6001600160a01b0385166000908152602081905260409020548481101561130a5760405162461bcd60e51b815260206004820152602360248201527f4552433737373a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b6064820152608401610435565b6001600160a01b0386166000908152602081905260408120868303905560018054879290611339908490611908565b92505081905550856001600160a01b0316826001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098878787604051611387939291906119fa565b60405180910390a36040518581526000906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611207565b6040517f52316ab8e8b0687ce803e403dfe429541bccd4f6c4683ec65d254d382f15a26590600090a150505050565b6020808252825182820181905260009190848201906040850190845b8181101561143d5783516001600160a01b031683529284019291840191600101611418565b50909695505050505050565b6000815180845260005b8181101561146f57602081850181015186830182015201611453565b81811115611481576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006108d96020830184611449565b6001600160a01b03811681146114be57600080fd5b50565b600080604083850312156114d457600080fd5b82356114df816114a9565b946020939093013593505050565b60008060006060848603121561150257600080fd5b833561150d816114a9565b9250602084013561151d816114a9565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261155557600080fd5b813567ffffffffffffffff808211156115705761157061152e565b604051601f8301601f19908116603f011681019082821181831017156115985761159861152e565b816040528381528660208588010111156115b157600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a086880312156115e957600080fd5b85356115f4816114a9565b94506020860135611604816114a9565b935060408601359250606086013567ffffffffffffffff8082111561162857600080fd5b61163489838a01611544565b9350608088013591508082111561164a57600080fd5b5061165788828901611544565b9150509295509295909350565b60006020828403121561167657600080fd5b81356108d9816114a9565b60008060006060848603121561169657600080fd5b83356116a1816114a9565b925060208401359150604084013567ffffffffffffffff8111156116c457600080fd5b6116d086828701611544565b9150509250925092565b600080600080608085870312156116f057600080fd5b84356116fb816114a9565b935060208501359250604085013567ffffffffffffffff8082111561171f57600080fd5b61172b88838901611544565b9350606087013591508082111561174157600080fd5b5061174e87828801611544565b91505092959194509250565b600080600080600060a0868803121561177257600080fd5b853561177d816114a9565b945060208601359350604086013567ffffffffffffffff808211156117a157600080fd5b6117ad89838a01611544565b945060608801359150808211156117c357600080fd5b506117d088828901611544565b925050608086013580151581146117e657600080fd5b809150509295509295909350565b6000806040838503121561180757600080fd5b8235611812816114a9565b91506020830135611822816114a9565b809150509250929050565b6000806040838503121561184057600080fd5b82359150602083013567ffffffffffffffff81111561185e57600080fd5b61186a85828601611544565b9150509250929050565b600181811c9082168061188857607f821691505b6020821081036118a857634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526024908201527f4552433737373a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008282101561191a5761191a6118f2565b500390565b6020808252602c908201527f4552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f60408201526b39103337b9103437b63232b960a11b606082015260800190565b60006020828403121561197d57600080fd5b81516108d9816114a9565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c0608082018190526000906119c390830185611449565b82810360a08401526119d58185611449565b9998505050505050505050565b600082198211156119f5576119f56118f2565b500190565b838152606060208201526000611a136060830185611449565b8281036040840152611a258185611449565b969550505050505056fea26469706673582212200b5b547af6e3ea7f36f297ef51bca3ffca2f417ed353a799e9765f5b07e498eb64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101375760003560e01c8063959b8c3f116100b8578063cfbfab0b1161007c578063cfbfab0b14610272578063d95b637114610285578063dd62ed3e14610298578063fad8b32a146102d1578063fc673c4f146102e4578063fe9d9303146102f757600080fd5b8063959b8c3f1461021e57806395d89b41146102315780639bd9bbc614610239578063a9059cbb1461024c578063b1f0b5be1461025f57600080fd5b8063313ce567116100ff578063313ce567146101b7578063556f0dc7146101c657806356189cb4146101cd57806362ad1b83146101e257806370a08231146101f557600080fd5b806306e485381461013c57806306fdde031461015a578063095ea7b31461016f57806318160ddd1461019257806323b872dd146101a4575b600080fd5b61014461030a565b60405161015191906113fc565b60405180910390f35b61016261036c565b6040516101519190611496565b61018261017d3660046114c1565b6103f5565b6040519015158152602001610151565b6001545b604051908152602001610151565b6101826101b23660046114ed565b61040d565b60405160128152602001610151565b6001610196565b6101e06101db3660046114ed565b6105d6565b005b6101e06101f03660046115d1565b6105e6565b610196610203366004611664565b6001600160a01b031660009081526020819052604090205490565b6101e061022c366004611664565b610622565b61016261073f565b6101e0610247366004611681565b61074e565b61018261025a3660046114c1565b61076c565b6101e061026d3660046116da565b61081f565b6101e061028036600461175a565b610831565b6101826102933660046117f4565b61083e565b6101966102a63660046117f4565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b6101e06102df366004611664565b6108e0565b6101e06102f23660046116da565b6109fb565b6101e061030536600461182d565b610a2d565b6060600480548060200260200160405190810160405280929190818152602001828054801561036257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610344575b5050505050905090565b60606002805461037b90611874565b80601f01602080910402602001604051908101604052809291908181526020018280546103a790611874565b80156103625780601f106103c957610100808354040283529160200191610362565b820191906000526020600020905b8154815290600101906020018083116103d757509395945050505050565b600033610403818585610a52565b5060019392505050565b60006001600160a01b03831661043e5760405162461bcd60e51b8152600401610435906118ae565b60405180910390fd5b6001600160a01b0384166104a35760405162461bcd60e51b815260206004820152602660248201527f4552433737373a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b6064820152608401610435565b60003390506104d4818686866040518060200160405280600081525060405180602001604052806000815250610b79565b610500818686866040518060200160405280600081525060405180602001604052806000815250610ca1565b6001600160a01b03808616600090815260086020908152604080832093851683529290522054838110156105885760405162461bcd60e51b815260206004820152602960248201527f4552433737373a207472616e7366657220616d6f756e74206578636565647320604482015268616c6c6f77616e636560b81b6064820152608401610435565b61059c86836105978785611908565b610a52565b6105ca8287878760405180602001604052806000815250604051806020016040528060008152506000610e13565b50600195945050505050565b6105e1838383610a52565b505050565b6105f0338661083e565b61060c5760405162461bcd60e51b81526004016104359061191f565b61061b85858585856001610fd8565b5050505050565b6001600160a01b03811633036106865760405162461bcd60e51b8152602060048201526024808201527f4552433737373a20617574686f72697a696e672073656c66206173206f70657260448201526330ba37b960e11b6064820152608401610435565b6001600160a01b03811660009081526005602052604090205460ff16156106d7573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff19169055610706565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790555b60405133906001600160a01b038316907ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f990600090a350565b60606003805461037b90611874565b6105e133848484604051806020016040528060008152506001610fd8565b60006001600160a01b0383166107945760405162461bcd60e51b8152600401610435906118ae565b60003390506107c5818286866040518060200160405280600081525060405180602001604052806000815250610b79565b6107f1818286866040518060200160405280600081525060405180602001604052806000815250610ca1565b6104038182868660405180602001604052806000815250604051806020016040528060008152506000610e13565b61082b848484846110bb565b50505050565b61061b85858585856110c5565b6000816001600160a01b0316836001600160a01b031614806108a957506001600160a01b03831660009081526005602052604090205460ff1680156108a957506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b806108d957506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b336001600160a01b038216036109425760405162461bcd60e51b815260206004820152602160248201527f4552433737373a207265766f6b696e672073656c66206173206f70657261746f6044820152603960f91b6064820152608401610435565b6001600160a01b03811660009081526005602052604090205460ff1615610996573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff191660011790556109c2565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191690555b60405133906001600160a01b038316907f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa190600090a350565b610a05338561083e565b610a215760405162461bcd60e51b81526004016104359061191f565b61082b84848484611217565b610a4833838360405180602001604052806000815250611217565b5050565b3b151590565b6001600160a01b038316610ab65760405162461bcd60e51b815260206004820152602560248201527f4552433737373a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610435565b6001600160a01b038216610b185760405162461bcd60e51b815260206004820152602360248201527f4552433737373a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610435565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe8956024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa158015610bfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1e919061196b565b90506001600160a01b03811615610c9857604051633ad5cbc160e11b81526001600160a01b038216906375ab978290610c65908a908a908a908a908a908a90600401611988565b600060405180830381600087803b158015610c7f57600080fd5b505af1158015610c93573d6000803e3d6000fd5b505050505b50505050505050565b610cad868686866113cd565b6001600160a01b03851660009081526020819052604090205483811015610d265760405162461bcd60e51b815260206004820152602760248201527f4552433737373a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b6064820152608401610435565b6001600160a01b03808716600090815260208190526040808220878503905591871681529081208054869290610d5d9084906119e2565b92505081905550846001600160a01b0316866001600160a01b0316886001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987878787604051610db5939291906119fa565b60405180910390a4846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef86604051610e0291815260200190565b60405180910390a350505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa158015610e94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb8919061196b565b90506001600160a01b03811615610f34576040516223de2960e01b81526001600160a01b038216906223de2990610efd908b908b908b908b908b908b90600401611988565b600060405180830381600087803b158015610f1757600080fd5b505af1158015610f2b573d6000803e3d6000fd5b50505050610fce565b8115610fce576001600160a01b0386163b15610fce5760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a401610435565b5050505050505050565b6001600160a01b0386166110395760405162461bcd60e51b815260206004820152602260248201527f4552433737373a2073656e642066726f6d20746865207a65726f206164647265604482015261737360f01b6064820152608401610435565b6001600160a01b03851661108f5760405162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f20616464726573736044820152606401610435565b3361109e818888888888610b79565b6110ac818888888888610ca1565b610c9881888888888888610e13565b61082b8484848460015b6001600160a01b03851661111b5760405162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f20616464726573736044820152606401610435565b3361112981600088886113cd565b846001600082825461113b91906119e2565b90915550506001600160a01b038616600090815260208190526040812080548792906111689084906119e2565b9091555061117e90508160008888888888610e13565b856001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d8787876040516111c5939291906119fa565b60405180910390a36040518581526001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a3505050505050565b6001600160a01b0384166112785760405162461bcd60e51b815260206004820152602260248201527f4552433737373a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b6064820152608401610435565b3361128881866000878787610b79565b61129581866000876113cd565b6001600160a01b0385166000908152602081905260409020548481101561130a5760405162461bcd60e51b815260206004820152602360248201527f4552433737373a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b6064820152608401610435565b6001600160a01b0386166000908152602081905260408120868303905560018054879290611339908490611908565b92505081905550856001600160a01b0316826001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098878787604051611387939291906119fa565b60405180910390a36040518581526000906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611207565b6040517f52316ab8e8b0687ce803e403dfe429541bccd4f6c4683ec65d254d382f15a26590600090a150505050565b6020808252825182820181905260009190848201906040850190845b8181101561143d5783516001600160a01b031683529284019291840191600101611418565b50909695505050505050565b6000815180845260005b8181101561146f57602081850181015186830182015201611453565b81811115611481576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006108d96020830184611449565b6001600160a01b03811681146114be57600080fd5b50565b600080604083850312156114d457600080fd5b82356114df816114a9565b946020939093013593505050565b60008060006060848603121561150257600080fd5b833561150d816114a9565b9250602084013561151d816114a9565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261155557600080fd5b813567ffffffffffffffff808211156115705761157061152e565b604051601f8301601f19908116603f011681019082821181831017156115985761159861152e565b816040528381528660208588010111156115b157600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a086880312156115e957600080fd5b85356115f4816114a9565b94506020860135611604816114a9565b935060408601359250606086013567ffffffffffffffff8082111561162857600080fd5b61163489838a01611544565b9350608088013591508082111561164a57600080fd5b5061165788828901611544565b9150509295509295909350565b60006020828403121561167657600080fd5b81356108d9816114a9565b60008060006060848603121561169657600080fd5b83356116a1816114a9565b925060208401359150604084013567ffffffffffffffff8111156116c457600080fd5b6116d086828701611544565b9150509250925092565b600080600080608085870312156116f057600080fd5b84356116fb816114a9565b935060208501359250604085013567ffffffffffffffff8082111561171f57600080fd5b61172b88838901611544565b9350606087013591508082111561174157600080fd5b5061174e87828801611544565b91505092959194509250565b600080600080600060a0868803121561177257600080fd5b853561177d816114a9565b945060208601359350604086013567ffffffffffffffff808211156117a157600080fd5b6117ad89838a01611544565b945060608801359150808211156117c357600080fd5b506117d088828901611544565b925050608086013580151581146117e657600080fd5b809150509295509295909350565b6000806040838503121561180757600080fd5b8235611812816114a9565b91506020830135611822816114a9565b809150509250929050565b6000806040838503121561184057600080fd5b82359150602083013567ffffffffffffffff81111561185e57600080fd5b61186a85828601611544565b9150509250929050565b600181811c9082168061188857607f821691505b6020821081036118a857634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526024908201527f4552433737373a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008282101561191a5761191a6118f2565b500390565b6020808252602c908201527f4552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f60408201526b39103337b9103437b63232b960a11b606082015260800190565b60006020828403121561197d57600080fd5b81516108d9816114a9565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c0608082018190526000906119c390830185611449565b82810360a08401526119d58185611449565b9998505050505050505050565b600082198211156119f5576119f56118f2565b500190565b838152606060208201526000611a136060830185611449565b8281036040840152611a258185611449565b969550505050505056fea26469706673582212200b5b547af6e3ea7f36f297ef51bca3ffca2f417ed353a799e9765f5b07e498eb64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "initialHolder", "type": "address", "internalType": "address"}, {"name": "initialBalance", "type": "uint256", "internalType": "uint256"}, {"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "defaultOperators", "type": "address[]", "internalType": "address[]"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "AuthorizedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "BeforeTokenTransfer", "inputs": [], "anonymous": false}, {"type": "event", "name": "Burned", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Minted", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RevokedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Sent", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "holder", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "approveInternal", "stateMutability": "nonpayable", "inputs": [{"name": "holder", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "authorizeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "tokenHolder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "defaultOperators", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address[]", "internalType": "address[]"}]}, {"type": "function", "name": "granularity", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "isOperatorFor", "stateMutability": "view", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "tokenHolder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mintInternal", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "userData", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "mintInternalExtended", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "userData", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}, {"name": "requireReceptionAck", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "operatorBurn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "operatorSend", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "revokeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "send", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "holder", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}. Note that operator and allowance concepts are orthogonal: operators may not have allowance, and accounts with allowance may not be operators themselves."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Note that accounts cannot have allowance issued by their operators."}, "authorizeOperator(address)": {"details": "See {IERC777-authorizeOperator}."}, "balanceOf(address)": {"details": "Returns the amount of tokens owned by an account (`tokenHolder`)."}, "burn(uint256,bytes)": {"details": "See {IERC777-burn}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."}, "decimals()": {"details": "See {ERC20-decimals}. Always returns 18, as per the [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility)."}, "defaultOperators()": {"details": "See {IERC777-defaultOperators}."}, "granularity()": {"details": "See {IERC777-granularity}. This implementation always returns `1`."}, "isOperatorFor(address,address)": {"details": "See {IERC777-isOperatorFor}."}, "name()": {"details": "See {IERC777-name}."}, "operatorBurn(address,uint256,bytes,bytes)": {"details": "See {IERC777-operatorBurn}. Emits {Burned} and {IERC20-Transfer} events."}, "operatorSend(address,address,uint256,bytes,bytes)": {"details": "See {IERC777-operatorSend}. Emits {Sent} and {IERC20-Transfer} events."}, "revokeOperator(address)": {"details": "See {IERC777-revokeOperator}."}, "send(address,uint256,bytes)": {"details": "See {IERC777-send}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."}, "symbol()": {"details": "See {IERC777-symbol}."}, "totalSupply()": {"details": "See {IERC777-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient} interface if it is a contract. Also emits a {Sent} event."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Note that operator and allowance concepts are orthogonal: operators cannot call `transferFrom` (unless they have allowance), and accounts with allowance cannot call `operatorSend` (unless they are operators). Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events."}}, "version": 1}}, "ERC777SenderRecipientMock": {"contractName": "ERC777SenderRecipientMock", "sourceId": "mocks/ERC777SenderRecipientMock.sol", "deploymentBytecode": {"bytecode": "0x60806040526001805462010000600160b01b031916751820a4b7618bde71dce8cdc73aab6c95905fad24000017905534801561003a57600080fd5b50610b918061004a6000396000f3fe608060405234801561001057600080fd5b50600436106100a85760003560e01c806375ab97821161007157806375ab97821461012e578063a8badaa514610141578063c97e18fc14610154578063d2de64741461017c578063e0eb21801461018f578063e1ecbd30146101a257600080fd5b806223de29146100ad578063249cb3fa146100c25780633836ef89146100e757806344d17187146100fa5780634e4ae5a51461010d575b600080fd5b6100c06100bb36600461077c565b6101b5565b005b6100d56100d036600461082d565b610307565b60405190815260200160405180910390f35b6100c06100f5366004610900565b61035f565b6100c061010836600461096c565b6103c7565b6100c061011b3660046109c5565b6001805460ff1916911515919091179055565b6100c061013c36600461077c565b61042c565b6100c061014f3660046109e7565b610564565b6100c06101623660046109c5565b600180549115156101000261ff0019909216919091179055565b6100c061018a3660046109e7565b6105fa565b6100c061019d3660046109e7565b610643565b6100c06101b03660046109e7565b610688565b600154610100900460ff16156101ca57600080fd5b6000336040516370a0823160e01b81526001600160a01b038a811660048301529192506000918316906370a0823190602401602060405180830381865afa158015610219573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023d9190610a04565b6040516370a0823160e01b81526001600160a01b038a811660048301529192506000918416906370a0823190602401602060405180830381865afa158015610289573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ad9190610a04565b90507f47e915878c47f3ec4d7ff646a2becb229f64fd2abe4d2b5e2bb4275b0cf50d4e8b8b8b8b8b8b8b8b8b8b8b6040516102f29b9a99989796959493929190610a46565b60405180910390a15050505050505050505050565b6000828152602081815260408083206001600160a01b038516845290915281205460ff16610336576000610358565b7fa2ef4600d742022d532d4747cb3547474667d6f13804902513b2ec01c848f4b45b9392505050565b604051634decdde360e11b81526001600160a01b03851690639bd9bbc69061038f90869086908690600401610b0a565b600060405180830381600087803b1580156103a957600080fd5b505af11580156103bd573d6000803e3d6000fd5b5050505050505050565b60405163fe9d930360e01b81526001600160a01b0384169063fe9d9303906103f59085908590600401610b3a565b600060405180830381600087803b15801561040f57600080fd5b505af1158015610423573d6000803e3d6000fd5b50505050505050565b60015460ff161561043c57600080fd5b6000336040516370a0823160e01b81526001600160a01b038a811660048301529192506000918316906370a0823190602401602060405180830381865afa15801561048b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104af9190610a04565b6040516370a0823160e01b81526001600160a01b038a811660048301529192506000918416906370a0823190602401602060405180830381865afa1580156104fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051f9190610a04565b90507faa3e88aca472e90221daf7d3d601abafb62b120319089d7a2c2f63588da855298b8b8b8b8b8b8b8b8b8b8b6040516102f29b9a99989796959493929190610a46565b6001546040516329965a1d60e01b81523060048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201526001600160a01b03838116604483015262010000909204909116906329965a1d906064015b600060405180830381600087803b1580156105df57600080fd5b505af11580156105f3573d6000803e3d6000fd5b5050505050565b6106247f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe895826106ed565b306001600160a01b03821681900361063f5761063f81610688565b5050565b61066d7fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b826106ed565b306001600160a01b03821681900361063f5761063f81610564565b6001546040516329965a1d60e01b81523060048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201526001600160a01b03838116604483015262010000909204909116906329965a1d906064016105c5565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff19166001179055565b6001600160a01b038116811461073057600080fd5b50565b60008083601f84011261074557600080fd5b50813567ffffffffffffffff81111561075d57600080fd5b60208301915083602082850101111561077557600080fd5b9250929050565b60008060008060008060008060c0898b03121561079857600080fd5b88356107a38161071b565b975060208901356107b38161071b565b965060408901356107c38161071b565b955060608901359450608089013567ffffffffffffffff808211156107e757600080fd5b6107f38c838d01610733565b909650945060a08b013591508082111561080c57600080fd5b506108198b828c01610733565b999c989b5096995094979396929594505050565b6000806040838503121561084057600080fd5b8235915060208301356108528161071b565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261088457600080fd5b813567ffffffffffffffff8082111561089f5761089f61085d565b604051601f8301601f19908116603f011681019082821181831017156108c7576108c761085d565b816040528381528660208588010111156108e057600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561091657600080fd5b84356109218161071b565b935060208501356109318161071b565b925060408501359150606085013567ffffffffffffffff81111561095457600080fd5b61096087828801610873565b91505092959194509250565b60008060006060848603121561098157600080fd5b833561098c8161071b565b925060208401359150604084013567ffffffffffffffff8111156109af57600080fd5b6109bb86828701610873565b9150509250925092565b6000602082840312156109d757600080fd5b8135801515811461035857600080fd5b6000602082840312156109f957600080fd5b81356103588161071b565b600060208284031215610a1657600080fd5b5051919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038c811682528b811660208301528a81166040830152606082018a905261012060808301819052600091610a848483018b8d610a1d565b915083820360a0850152610a9982898b610a1d565b961660c0840152505060e08101929092526101009091015298975050505050505050565b6000815180845260005b81811015610ae357602081850181015186830182015201610ac7565b81811115610af5576000602083870101525b50601f01601f19169290920160200192915050565b60018060a01b0384168152826020820152606060408201526000610b316060830184610abd565b95945050505050565b828152604060208201526000610b536040830184610abd565b94935050505056fea26469706673582212207a29d3787c43540eb4b21341fecbf96b402de903364887e43cf188d69fe84f4a64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100a85760003560e01c806375ab97821161007157806375ab97821461012e578063a8badaa514610141578063c97e18fc14610154578063d2de64741461017c578063e0eb21801461018f578063e1ecbd30146101a257600080fd5b806223de29146100ad578063249cb3fa146100c25780633836ef89146100e757806344d17187146100fa5780634e4ae5a51461010d575b600080fd5b6100c06100bb36600461077c565b6101b5565b005b6100d56100d036600461082d565b610307565b60405190815260200160405180910390f35b6100c06100f5366004610900565b61035f565b6100c061010836600461096c565b6103c7565b6100c061011b3660046109c5565b6001805460ff1916911515919091179055565b6100c061013c36600461077c565b61042c565b6100c061014f3660046109e7565b610564565b6100c06101623660046109c5565b600180549115156101000261ff0019909216919091179055565b6100c061018a3660046109e7565b6105fa565b6100c061019d3660046109e7565b610643565b6100c06101b03660046109e7565b610688565b600154610100900460ff16156101ca57600080fd5b6000336040516370a0823160e01b81526001600160a01b038a811660048301529192506000918316906370a0823190602401602060405180830381865afa158015610219573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023d9190610a04565b6040516370a0823160e01b81526001600160a01b038a811660048301529192506000918416906370a0823190602401602060405180830381865afa158015610289573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ad9190610a04565b90507f47e915878c47f3ec4d7ff646a2becb229f64fd2abe4d2b5e2bb4275b0cf50d4e8b8b8b8b8b8b8b8b8b8b8b6040516102f29b9a99989796959493929190610a46565b60405180910390a15050505050505050505050565b6000828152602081815260408083206001600160a01b038516845290915281205460ff16610336576000610358565b7fa2ef4600d742022d532d4747cb3547474667d6f13804902513b2ec01c848f4b45b9392505050565b604051634decdde360e11b81526001600160a01b03851690639bd9bbc69061038f90869086908690600401610b0a565b600060405180830381600087803b1580156103a957600080fd5b505af11580156103bd573d6000803e3d6000fd5b5050505050505050565b60405163fe9d930360e01b81526001600160a01b0384169063fe9d9303906103f59085908590600401610b3a565b600060405180830381600087803b15801561040f57600080fd5b505af1158015610423573d6000803e3d6000fd5b50505050505050565b60015460ff161561043c57600080fd5b6000336040516370a0823160e01b81526001600160a01b038a811660048301529192506000918316906370a0823190602401602060405180830381865afa15801561048b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104af9190610a04565b6040516370a0823160e01b81526001600160a01b038a811660048301529192506000918416906370a0823190602401602060405180830381865afa1580156104fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051f9190610a04565b90507faa3e88aca472e90221daf7d3d601abafb62b120319089d7a2c2f63588da855298b8b8b8b8b8b8b8b8b8b8b6040516102f29b9a99989796959493929190610a46565b6001546040516329965a1d60e01b81523060048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201526001600160a01b03838116604483015262010000909204909116906329965a1d906064015b600060405180830381600087803b1580156105df57600080fd5b505af11580156105f3573d6000803e3d6000fd5b5050505050565b6106247f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe895826106ed565b306001600160a01b03821681900361063f5761063f81610688565b5050565b61066d7fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b826106ed565b306001600160a01b03821681900361063f5761063f81610564565b6001546040516329965a1d60e01b81523060048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201526001600160a01b03838116604483015262010000909204909116906329965a1d906064016105c5565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff19166001179055565b6001600160a01b038116811461073057600080fd5b50565b60008083601f84011261074557600080fd5b50813567ffffffffffffffff81111561075d57600080fd5b60208301915083602082850101111561077557600080fd5b9250929050565b60008060008060008060008060c0898b03121561079857600080fd5b88356107a38161071b565b975060208901356107b38161071b565b965060408901356107c38161071b565b955060608901359450608089013567ffffffffffffffff808211156107e757600080fd5b6107f38c838d01610733565b909650945060a08b013591508082111561080c57600080fd5b506108198b828c01610733565b999c989b5096995094979396929594505050565b6000806040838503121561084057600080fd5b8235915060208301356108528161071b565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261088457600080fd5b813567ffffffffffffffff8082111561089f5761089f61085d565b604051601f8301601f19908116603f011681019082821181831017156108c7576108c761085d565b816040528381528660208588010111156108e057600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561091657600080fd5b84356109218161071b565b935060208501356109318161071b565b925060408501359150606085013567ffffffffffffffff81111561095457600080fd5b61096087828801610873565b91505092959194509250565b60008060006060848603121561098157600080fd5b833561098c8161071b565b925060208401359150604084013567ffffffffffffffff8111156109af57600080fd5b6109bb86828701610873565b9150509250925092565b6000602082840312156109d757600080fd5b8135801515811461035857600080fd5b6000602082840312156109f957600080fd5b81356103588161071b565b600060208284031215610a1657600080fd5b5051919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038c811682528b811660208301528a81166040830152606082018a905261012060808301819052600091610a848483018b8d610a1d565b915083820360a0850152610a9982898b610a1d565b961660c0840152505060e08101929092526101009091015298975050505050505050565b6000815180845260005b81811015610ae357602081850181015186830182015201610ac7565b81811115610af5576000602083870101525b50601f01601f19169290920160200192915050565b60018060a01b0384168152826020820152606060408201526000610b316060830184610abd565b95945050505050565b828152604060208201526000610b536040830184610abd565b94935050505056fea26469706673582212207a29d3787c43540eb4b21341fecbf96b402de903364887e43cf188d69fe84f4a64736f6c634300080d0033"}, "abi": [{"type": "event", "name": "BeforeTokenTransfer", "inputs": [], "anonymous": false}, {"type": "event", "name": "TokensReceivedCalled", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": false}, {"name": "from", "type": "address", "internalType": "address", "indexed": false}, {"name": "to", "type": "address", "internalType": "address", "indexed": false}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "token", "type": "address", "internalType": "address", "indexed": false}, {"name": "fromBalance", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "toBalance", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TokensToSendCalled", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": false}, {"name": "from", "type": "address", "internalType": "address", "indexed": false}, {"name": "to", "type": "address", "internalType": "address", "indexed": false}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "token", "type": "address", "internalType": "address", "indexed": false}, {"name": "fromBalance", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "toBalance", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "token", "type": "address", "internalType": "contract IERC777"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "canImplementInterfaceForAddress", "stateMutability": "view", "inputs": [{"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "recipientFor", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "registerRecipient", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "registerSender", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "send", "stateMutability": "nonpayable", "inputs": [{"name": "token", "type": "address", "internalType": "contract IERC777"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "senderFor", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "setShouldRevertReceive", "stateMutability": "nonpayable", "inputs": [{"name": "shouldRevert", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "setShouldRevertSend", "stateMutability": "nonpayable", "inputs": [{"name": "shouldRevert", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "tokensReceived", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "userData", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "tokensToSend", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "userData", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"canImplementInterfaceForAddress(bytes32,address)": {"details": "See {IERC1820Implementer-canImplementInterfaceForAddress}."}, "tokensReceived(address,address,address,uint256,bytes,bytes)": {"details": "Called by an {IERC777} token contract whenever tokens are being moved or created into a registered account (`to`). The type of operation is conveyed by `from` being the zero address or not. This call occurs _after_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the post-operation state. This function may revert to prevent the operation from being executed."}, "tokensToSend(address,address,address,uint256,bytes,bytes)": {"details": "Called by an {IERC777} token contract whenever a registered holder's (`from`) tokens are about to be moved or destroyed. The type of operation is conveyed by `to` being the zero address or not. This call occurs _before_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the pre-operation state. This function may revert to prevent the operation from being executed."}}, "version": 1}}, "EnumerableMapMock": {"contractName": "EnumerableMapMock", "sourceId": "mocks/EnumerableMapMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610829806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80639507d39a1161005b5780639507d39a14610102578063c051a3a61461012d578063c34052e014610140578063e0886f901461016357600080fd5b80631f7b6d321461008d5780632f30c6f6146100a85780634cc82215146100bd578063871394d9146100d0575b600080fd5b610095610193565b6040519081526020015b60405180910390f35b6100bb6100b636600461067c565b6101a4565b005b6100bb6100cb3660046106b8565b6101f3565b6100e36100de3660046106b8565b610240565b6040805192151583526001600160a01b0390911660208301520161009f565b6101156101103660046106b8565b610256565b6040516001600160a01b03909116815260200161009f565b61011561013b3660046106d1565b610268565b61015361014e3660046106b8565b6102b4565b604051901515815260200161009f565b6101766101713660046106b8565b6102c0565b604080519283526001600160a01b0390911660208301520161009f565b600061019f60006102cd565b905090565b60006101b18184846102d8565b90507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33816040516101e6911515815260200190565b60405180910390a1505050565b60006101ff81836102ee565b90507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e3381604051610234911515815260200190565b60405180910390a15050565b60008061024d8184610301565b91509150915091565b6000610262818361031f565b92915050565b60006102ac8484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250949392505061032b9050565b949350505050565b60006102628183610338565b60008061024d8184610344565b600061026282610353565b60006102ac84846001600160a01b03851661035e565b60006102fa838361037b565b9392505050565b60008080806103108686610398565b909450925050505b9250929050565b60006102fa83836103d2565b60006102ac848484610447565b60006102fa8383610493565b6000808080610310868661049f565b6000610262826104ca565b600082815260028401602052604081208290556102ac84846104d4565b600081815260028301602052604081208190556102fa83836104e0565b60008181526002830160205260408120548190806103c7576103ba8585610493565b9250600091506103189050565b600192509050610318565b6000818152600283016020526040812054801515806103f657506103f68484610493565b6102fa5760405162461bcd60e51b815260206004820152601e60248201527f456e756d657261626c654d61703a206e6f6e6578697374656e74206b6579000060448201526064015b60405180910390fd5b60008281526002840160205260408120548015158061046b575061046b8585610493565b839061048a5760405162461bcd60e51b815260040161043e919061074d565b50949350505050565b60006102fa83836104ec565b600080806104ad8585610504565b600081815260029690960160205260409095205494959350505050565b6000610262825490565b60006102fa8383610510565b60006102fa838361055f565b600081815260018301602052604081205415156102fa565b60006102fa8383610652565b600081815260018301602052604081205461055757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610262565b506000610262565b600081815260018301602052604081205480156106485760006105836001836107a2565b8554909150600090610597906001906107a2565b90508181146105fc5760008660000182815481106105b7576105b76107c7565b90600052602060002001549050808760000184815481106105da576105da6107c7565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061060d5761060d6107dd565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610262565b6000915050610262565b6000826000018281548110610669576106696107c7565b9060005260206000200154905092915050565b6000806040838503121561068f57600080fd5b8235915060208301356001600160a01b03811681146106ad57600080fd5b809150509250929050565b6000602082840312156106ca57600080fd5b5035919050565b6000806000604084860312156106e657600080fd5b83359250602084013567ffffffffffffffff8082111561070557600080fd5b818601915086601f83011261071957600080fd5b81358181111561072857600080fd5b87602082850101111561073a57600080fd5b6020830194508093505050509250925092565b600060208083528351808285015260005b8181101561077a5785810183015185820160400152820161075e565b8181111561078c576000604083870101525b50601f01601f1916929092016040019392505050565b6000828210156107c257634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220a09d3a54b77d9dd2a60e1785d7e7ccd786dce73c8c4eaa1533ebf943d25047b564736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100885760003560e01c80639507d39a1161005b5780639507d39a14610102578063c051a3a61461012d578063c34052e014610140578063e0886f901461016357600080fd5b80631f7b6d321461008d5780632f30c6f6146100a85780634cc82215146100bd578063871394d9146100d0575b600080fd5b610095610193565b6040519081526020015b60405180910390f35b6100bb6100b636600461067c565b6101a4565b005b6100bb6100cb3660046106b8565b6101f3565b6100e36100de3660046106b8565b610240565b6040805192151583526001600160a01b0390911660208301520161009f565b6101156101103660046106b8565b610256565b6040516001600160a01b03909116815260200161009f565b61011561013b3660046106d1565b610268565b61015361014e3660046106b8565b6102b4565b604051901515815260200161009f565b6101766101713660046106b8565b6102c0565b604080519283526001600160a01b0390911660208301520161009f565b600061019f60006102cd565b905090565b60006101b18184846102d8565b90507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33816040516101e6911515815260200190565b60405180910390a1505050565b60006101ff81836102ee565b90507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e3381604051610234911515815260200190565b60405180910390a15050565b60008061024d8184610301565b91509150915091565b6000610262818361031f565b92915050565b60006102ac8484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250949392505061032b9050565b949350505050565b60006102628183610338565b60008061024d8184610344565b600061026282610353565b60006102ac84846001600160a01b03851661035e565b60006102fa838361037b565b9392505050565b60008080806103108686610398565b909450925050505b9250929050565b60006102fa83836103d2565b60006102ac848484610447565b60006102fa8383610493565b6000808080610310868661049f565b6000610262826104ca565b600082815260028401602052604081208290556102ac84846104d4565b600081815260028301602052604081208190556102fa83836104e0565b60008181526002830160205260408120548190806103c7576103ba8585610493565b9250600091506103189050565b600192509050610318565b6000818152600283016020526040812054801515806103f657506103f68484610493565b6102fa5760405162461bcd60e51b815260206004820152601e60248201527f456e756d657261626c654d61703a206e6f6e6578697374656e74206b6579000060448201526064015b60405180910390fd5b60008281526002840160205260408120548015158061046b575061046b8585610493565b839061048a5760405162461bcd60e51b815260040161043e919061074d565b50949350505050565b60006102fa83836104ec565b600080806104ad8585610504565b600081815260029690960160205260409095205494959350505050565b6000610262825490565b60006102fa8383610510565b60006102fa838361055f565b600081815260018301602052604081205415156102fa565b60006102fa8383610652565b600081815260018301602052604081205461055757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610262565b506000610262565b600081815260018301602052604081205480156106485760006105836001836107a2565b8554909150600090610597906001906107a2565b90508181146105fc5760008660000182815481106105b7576105b76107c7565b90600052602060002001549050808760000184815481106105da576105da6107c7565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061060d5761060d6107dd565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610262565b6000915050610262565b6000826000018281548110610669576106696107c7565b9060005260206000200154905092915050565b6000806040838503121561068f57600080fd5b8235915060208301356001600160a01b03811681146106ad57600080fd5b809150509250929050565b6000602082840312156106ca57600080fd5b5035919050565b6000806000604084860312156106e657600080fd5b83359250602084013567ffffffffffffffff8082111561070557600080fd5b818601915086601f83011261071957600080fd5b81358181111561072857600080fd5b87602082850101111561073a57600080fd5b6020830194508093505050509250925092565b600060208083528351808285015260005b8181101561077a5785810183015185820160400152820161075e565b8181111561078c576000604083870101525b50601f01601f1916929092016040019392505050565b6000828210156107c257634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220a09d3a54b77d9dd2a60e1785d7e7ccd786dce73c8c4eaa1533ebf943d25047b564736f6c634300080d0033"}, "abi": [{"type": "event", "name": "OperationResult", "inputs": [{"name": "result", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "function", "name": "at", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "key", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "contains", "stateMutability": "view", "inputs": [{"name": "key", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "get", "stateMutability": "view", "inputs": [{"name": "key", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getWithMessage", "stateMutability": "view", "inputs": [{"name": "key", "type": "uint256", "internalType": "uint256"}, {"name": "errorMessage", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "length", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "remove", "stateMutability": "nonpayable", "inputs": [{"name": "key", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "set", "stateMutability": "nonpayable", "inputs": [{"name": "key", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "tryGet", "stateMutability": "view", "inputs": [{"name": "key", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}, {"name": "", "type": "address", "internalType": "address"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "EnumerableAddressSetMock": {"contractName": "EnumerableAddressSetMock", "sourceId": "mocks/EnumerableSetMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506104f5806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80630a3b0a4f146100675780631f7b6d321461007c57806329092d0e146100975780635dbe47e8146100aa578063971217b7146100cd578063e0886f90146100e2575b600080fd5b61007a6100753660046103df565b61010d565b005b61008461015a565b6040519081526020015b60405180910390f35b61007a6100a53660046103df565b61016b565b6100bd6100b83660046103df565b610177565b604051901515815260200161008e565b6100d5610189565b60405161008e9190610408565b6100f56100f0366004610455565b610195565b6040516001600160a01b03909116815260200161008e565b600061011981836101a1565b90507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e338160405161014e911515815260200190565b60405180910390a15050565b600061016660006101bd565b905090565b600061011981836101c7565b600061018381836101dc565b92915050565b606061016660006101fe565b6000610183818361020b565b60006101b6836001600160a01b038416610217565b9392505050565b6000610183825490565b60006101b6836001600160a01b038416610266565b6001600160a01b038116600090815260018301602052604081205415156101b6565b606060006101b683610359565b60006101b683836103b5565b600081815260018301602052604081205461025e57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610183565b506000610183565b6000818152600183016020526040812054801561034f57600061028a60018361046e565b855490915060009061029e9060019061046e565b90508181146103035760008660000182815481106102be576102be610493565b90600052602060002001549050808760000184815481106102e1576102e1610493565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080610314576103146104a9565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610183565b6000915050610183565b6060816000018054806020026020016040519081016040528092919081815260200182805480156103a957602002820191906000526020600020905b815481526020019060010190808311610395575b50505050509050919050565b60008260000182815481106103cc576103cc610493565b9060005260206000200154905092915050565b6000602082840312156103f157600080fd5b81356001600160a01b03811681146101b657600080fd5b6020808252825182820181905260009190848201906040850190845b818110156104495783516001600160a01b031683529284019291840191600101610424565b50909695505050505050565b60006020828403121561046757600080fd5b5035919050565b60008282101561048e57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220a761293ab27094aac0f480ca47cc7bb222d914d5452e879779b2eb7e6eed98fe64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100625760003560e01c80630a3b0a4f146100675780631f7b6d321461007c57806329092d0e146100975780635dbe47e8146100aa578063971217b7146100cd578063e0886f90146100e2575b600080fd5b61007a6100753660046103df565b61010d565b005b61008461015a565b6040519081526020015b60405180910390f35b61007a6100a53660046103df565b61016b565b6100bd6100b83660046103df565b610177565b604051901515815260200161008e565b6100d5610189565b60405161008e9190610408565b6100f56100f0366004610455565b610195565b6040516001600160a01b03909116815260200161008e565b600061011981836101a1565b90507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e338160405161014e911515815260200190565b60405180910390a15050565b600061016660006101bd565b905090565b600061011981836101c7565b600061018381836101dc565b92915050565b606061016660006101fe565b6000610183818361020b565b60006101b6836001600160a01b038416610217565b9392505050565b6000610183825490565b60006101b6836001600160a01b038416610266565b6001600160a01b038116600090815260018301602052604081205415156101b6565b606060006101b683610359565b60006101b683836103b5565b600081815260018301602052604081205461025e57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610183565b506000610183565b6000818152600183016020526040812054801561034f57600061028a60018361046e565b855490915060009061029e9060019061046e565b90508181146103035760008660000182815481106102be576102be610493565b90600052602060002001549050808760000184815481106102e1576102e1610493565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080610314576103146104a9565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610183565b6000915050610183565b6060816000018054806020026020016040519081016040528092919081815260200182805480156103a957602002820191906000526020600020905b815481526020019060010190808311610395575b50505050509050919050565b60008260000182815481106103cc576103cc610493565b9060005260206000200154905092915050565b6000602082840312156103f157600080fd5b81356001600160a01b03811681146101b657600080fd5b6020808252825182820181905260009190848201906040850190845b818110156104495783516001600160a01b031683529284019291840191600101610424565b50909695505050505050565b60006020828403121561046757600080fd5b5035919050565b60008282101561048e57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220a761293ab27094aac0f480ca47cc7bb222d914d5452e879779b2eb7e6eed98fe64736f6c634300080d0033"}, "abi": [{"type": "event", "name": "OperationResult", "inputs": [{"name": "result", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "function", "name": "add", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "at", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "contains", "stateMutability": "view", "inputs": [{"name": "value", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "length", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "remove", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "values", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address[]", "internalType": "address[]"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "EnumerableBytes32SetMock": {"contractName": "EnumerableBytes32SetMock", "sourceId": "mocks/EnumerableSetMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610489806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631d1a696d146100675780631f7b6d321461008f578063446bffba146100a557806395bc2673146100ba578063971217b7146100cd578063e0886f90146100e2575b600080fd5b61007a6100753660046103a5565b6100f5565b60405190151581526020015b60405180910390f35b610097610107565b604051908152602001610086565b6100b86100b33660046103a5565b610118565b005b6100b86100c83660046103a5565b610165565b6100d5610171565b60405161008691906103be565b6100976100f03660046103a5565b61017d565b60006101018183610189565b92915050565b600061011360006101a4565b905090565b600061012481836101ae565b90507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e3381604051610159911515815260200190565b60405180910390a15050565b600061012481836101ba565b606061011360006101c6565b600061010181836101d1565b600081815260018301602052604081205415155b9392505050565b6000610101825490565b600061019d83836101dd565b600061019d838361022c565b60606101018261031f565b600061019d838361037b565b600081815260018301602052604081205461022457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610101565b506000610101565b60008181526001830160205260408120548015610315576000610250600183610402565b855490915060009061026490600190610402565b90508181146102c957600086600001828154811061028457610284610427565b90600052602060002001549050808760000184815481106102a7576102a7610427565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806102da576102da61043d565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610101565b6000915050610101565b60608160000180548060200260200160405190810160405280929190818152602001828054801561036f57602002820191906000526020600020905b81548152602001906001019080831161035b575b50505050509050919050565b600082600001828154811061039257610392610427565b9060005260206000200154905092915050565b6000602082840312156103b757600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b818110156103f6578351835292840192918401916001016103da565b50909695505050505050565b60008282101561042257634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220524b0027ac7529da67ad7efab0e21e5175bcdb4753b06f08d31b8a0305331fda64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100625760003560e01c80631d1a696d146100675780631f7b6d321461008f578063446bffba146100a557806395bc2673146100ba578063971217b7146100cd578063e0886f90146100e2575b600080fd5b61007a6100753660046103a5565b6100f5565b60405190151581526020015b60405180910390f35b610097610107565b604051908152602001610086565b6100b86100b33660046103a5565b610118565b005b6100b86100c83660046103a5565b610165565b6100d5610171565b60405161008691906103be565b6100976100f03660046103a5565b61017d565b60006101018183610189565b92915050565b600061011360006101a4565b905090565b600061012481836101ae565b90507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e3381604051610159911515815260200190565b60405180910390a15050565b600061012481836101ba565b606061011360006101c6565b600061010181836101d1565b600081815260018301602052604081205415155b9392505050565b6000610101825490565b600061019d83836101dd565b600061019d838361022c565b60606101018261031f565b600061019d838361037b565b600081815260018301602052604081205461022457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610101565b506000610101565b60008181526001830160205260408120548015610315576000610250600183610402565b855490915060009061026490600190610402565b90508181146102c957600086600001828154811061028457610284610427565b90600052602060002001549050808760000184815481106102a7576102a7610427565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806102da576102da61043d565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610101565b6000915050610101565b60608160000180548060200260200160405190810160405280929190818152602001828054801561036f57602002820191906000526020600020905b81548152602001906001019080831161035b575b50505050509050919050565b600082600001828154811061039257610392610427565b9060005260206000200154905092915050565b6000602082840312156103b757600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b818110156103f6578351835292840192918401916001016103da565b50909695505050505050565b60008282101561042257634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220524b0027ac7529da67ad7efab0e21e5175bcdb4753b06f08d31b8a0305331fda64736f6c634300080d0033"}, "abi": [{"type": "event", "name": "OperationResult", "inputs": [{"name": "result", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "function", "name": "add", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "at", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "contains", "stateMutability": "view", "inputs": [{"name": "value", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "length", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "remove", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "values", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32[]", "internalType": "bytes32[]"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "EnumerableUintSetMock": {"contractName": "EnumerableUintSetMock", "sourceId": "mocks/EnumerableSetMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061048f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631003e2d2146100675780631f7b6d321461007c5780634cc8221514610097578063971217b7146100aa578063c34052e0146100bf578063e0886f90146100e2575b600080fd5b61007a6100753660046103ab565b6100f5565b005b610084610142565b6040519081526020015b60405180910390f35b61007a6100a53660046103ab565b610153565b6100b261015f565b60405161008e91906103c4565b6100d26100cd3660046103ab565b61016b565b604051901515815260200161008e565b6100846100f03660046103ab565b61017d565b60006101018183610189565b90507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e3381604051610136911515815260200190565b60405180910390a15050565b600061014e600061019c565b905090565b600061010181836101a6565b606061014e60006101b2565b600061017781836101bf565b92915050565b600061017781836101d7565b600061019583836101e3565b9392505050565b6000610177825490565b60006101958383610232565b6060600061019583610325565b60008181526001830160205260408120541515610195565b60006101958383610381565b600081815260018301602052604081205461022a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610177565b506000610177565b6000818152600183016020526040812054801561031b576000610256600183610408565b855490915060009061026a90600190610408565b90508181146102cf57600086600001828154811061028a5761028a61042d565b90600052602060002001549050808760000184815481106102ad576102ad61042d565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806102e0576102e0610443565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610177565b6000915050610177565b60608160000180548060200260200160405190810160405280929190818152602001828054801561037557602002820191906000526020600020905b815481526020019060010190808311610361575b50505050509050919050565b60008260000182815481106103985761039861042d565b9060005260206000200154905092915050565b6000602082840312156103bd57600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b818110156103fc578351835292840192918401916001016103e0565b50909695505050505050565b60008282101561042857634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea26469706673582212202f7de0cc87bc5fa4415d305d9b24d8f26dc2d5012807f21cfc393cf24a3de10664736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100625760003560e01c80631003e2d2146100675780631f7b6d321461007c5780634cc8221514610097578063971217b7146100aa578063c34052e0146100bf578063e0886f90146100e2575b600080fd5b61007a6100753660046103ab565b6100f5565b005b610084610142565b6040519081526020015b60405180910390f35b61007a6100a53660046103ab565b610153565b6100b261015f565b60405161008e91906103c4565b6100d26100cd3660046103ab565b61016b565b604051901515815260200161008e565b6100846100f03660046103ab565b61017d565b60006101018183610189565b90507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e3381604051610136911515815260200190565b60405180910390a15050565b600061014e600061019c565b905090565b600061010181836101a6565b606061014e60006101b2565b600061017781836101bf565b92915050565b600061017781836101d7565b600061019583836101e3565b9392505050565b6000610177825490565b60006101958383610232565b6060600061019583610325565b60008181526001830160205260408120541515610195565b60006101958383610381565b600081815260018301602052604081205461022a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610177565b506000610177565b6000818152600183016020526040812054801561031b576000610256600183610408565b855490915060009061026a90600190610408565b90508181146102cf57600086600001828154811061028a5761028a61042d565b90600052602060002001549050808760000184815481106102ad576102ad61042d565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806102e0576102e0610443565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610177565b6000915050610177565b60608160000180548060200260200160405190810160405280929190818152602001828054801561037557602002820191906000526020600020905b815481526020019060010190808311610361575b50505050509050919050565b60008260000182815481106103985761039861042d565b9060005260206000200154905092915050565b6000602082840312156103bd57600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b818110156103fc578351835292840192918401916001016103e0565b50909695505050505050565b60008282101561042857634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea26469706673582212202f7de0cc87bc5fa4415d305d9b24d8f26dc2d5012807f21cfc393cf24a3de10664736f6c634300080d0033"}, "abi": [{"type": "event", "name": "OperationResult", "inputs": [{"name": "result", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "function", "name": "add", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "at", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "contains", "stateMutability": "view", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "length", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "remove", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "values", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "EtherReceiverMock": {"contractName": "EtherReceiverMock", "sourceId": "mocks/EtherReceiverMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5060c08061001f6000396000f3fe60806040526004361060205760003560e01c80634fea120c14603957600080fd5b3660345760005460ff16603257600080fd5b005b600080fd5b348015604457600080fd5b50603260503660046063565b6000805460ff1916911515919091179055565b600060208284031215607457600080fd5b81358015158114608357600080fd5b939250505056fea2646970667358221220e7a5a952e38a0c06f0480279181fd1b76f0e165c5d2b778a87b7fa6aafa955d864736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x60806040526004361060205760003560e01c80634fea120c14603957600080fd5b3660345760005460ff16603257600080fd5b005b600080fd5b348015604457600080fd5b50603260503660046063565b6000805460ff1916911515919091179055565b600060208284031215607457600080fd5b81358015158114608357600080fd5b939250505056fea2646970667358221220e7a5a952e38a0c06f0480279181fd1b76f0e165c5d2b778a87b7fa6aafa955d864736f6c634300080d0033"}, "abi": [{"type": "function", "name": "setAcceptEther", "stateMutability": "nonpayable", "inputs": [{"name": "acceptEther", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "GovernorCompMock": {"contractName": "GovernorCompMock", "sourceId": "mocks/GovernorCompMock.sol", "deploymentBytecode": {"bytecode": "0x6101606040523480156200001257600080fd5b50604051620024b7380380620024b78339810160408190526200003591620001ee565b808280620000576040805180820190915260018152603160f81b602082015290565b815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c0526101205250508251620000fd925060009150602084019062000115565b50506001600160a01b031661014052506200031b9050565b8280546200012390620002df565b90600052602060002090601f01602090048101928262000147576000855562000192565b82601f106200016257805160ff191683800117855562000192565b8280016001018555821562000192579182015b828111156200019257825182559160200191906001019062000175565b50620001a0929150620001a4565b5090565b5b80821115620001a05760008155600101620001a5565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620001e957600080fd5b919050565b600080604083850312156200020257600080fd5b82516001600160401b03808211156200021a57600080fd5b818501915085601f8301126200022f57600080fd5b815181811115620002445762000244620001bb565b604051601f8201601f19908116603f011681019083821181831017156200026f576200026f620001bb565b816040528281526020935088848487010111156200028c57600080fd5b600091505b82821015620002b0578482018401518183018501529083019062000291565b82821115620002c25760008484830101525b9550620002d4915050858201620001d1565b925050509250929050565b600181811c90821680620002f457607f821691505b6020821081036200031557634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516101405161213a6200037d600039600081816104c80152611171015260006112b601526000611305015260006112e001526000611239015260006112630152600061128d015261213a6000f3fe6080604052600436106101445760003560e01c806354fd4d50116100b6578063c59057e41161006f578063c59057e4146103db578063dd4e2ba5146103fb578063deaaa7cc14610441578063eb9019d414610475578063f8ce560a14610495578063fc0c546a146104b657600080fd5b806354fd4d501461031d57806356781388146103475780637b3c71d3146103675780637d5e81e214610387578063b58131b0146103a7578063c01f9e37146103bb57600080fd5b80633932abb1116101085780633932abb1146101f85780633bccf4fd1461020c5780633e4f49e61461022c5780634385963214610259578063452115d6146102a3578063544ffc9c146102c357600080fd5b806301ffc9a71461015057806302a251a31461018557806306fdde03146101a35780632656227d146101c55780632d63f693146101d857600080fd5b3661014b57005b600080fd5b34801561015c57600080fd5b5061017061016b36600461177a565b610502565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b5060105b60405190815260200161017c565b3480156101af57600080fd5b506101b8610539565b60405161017c9190611800565b6101956101d3366004611a50565b6105cb565b3480156101e457600080fd5b506101956101f3366004611adf565b6106dd565b34801561020457600080fd5b506004610195565b34801561021857600080fd5b50610195610227366004611b09565b610714565b34801561023857600080fd5b5061024c610247366004611adf565b6107a8565b60405161017c9190611b6d565b34801561026557600080fd5b50610170610274366004611b95565b60008281526002602090815260408083206001600160a01b038516845260030190915290205460ff1692915050565b3480156102af57600080fd5b506101956102be366004611a50565b61090d565b3480156102cf57600080fd5b506103026102de366004611adf565b60008181526002602081905260409091208054600182015491909201549193909250565b6040805193845260208401929092529082015260600161017c565b34801561032957600080fd5b506040805180820190915260018152603160f81b60208201526101b8565b34801561035357600080fd5b50610195610362366004611bc1565b610924565b34801561037357600080fd5b50610195610382366004611be4565b61094d565b34801561039357600080fd5b506101956103a2366004611c6a565b61099f565b3480156103b357600080fd5b506000610195565b3480156103c757600080fd5b506101956103d6366004611adf565b610c6c565b3480156103e757600080fd5b506101956103f6366004611a50565b610c9b565b34801561040757600080fd5b506040805180820190915260208082527f737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e908201526101b8565b34801561044d57600080fd5b506101957f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b34801561048157600080fd5b50610195610490366004611d2a565b610cd5565b3480156104a157600080fd5b506101956104b0366004611adf565b50600090565b3480156104c257600080fd5b506104ea7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161017c565b60006001600160e01b0319821663bf26d89760e01b148061053357506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461054890611d54565b80601f016020809104026020016040519081016040528092919081815260200182805461057490611d54565b80156105c15780601f10610596576101008083540402835291602001916105c1565b820191906000526020600020905b8154815290600101906020018083116105a457829003601f168201915b5050505050905090565b6000806105da86868686610c9b565b905060006105e7826107a8565b905060048160078111156105fd576105fd611b57565b148061061a5750600581600781111561061857610618611b57565b145b6106755760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756044820152601b60fa1b60648201526084015b60405180910390fd5b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a16106d38288888888610ce1565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff851660608201526000908190610780906107789060800160405160208183030381529060405280519060200120610de0565b868686610e2e565b905061079d87828860405180602001604052806000815250610e4c565b979650505050505050565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff8082161580159484019490945261010090910416151560608201529061081d5750600792915050565b8060600151156108305750600292915050565b80515143906001600160401b03161061084c5750600092915050565b4361085982602001515190565b6001600160401b0316106108705750600192915050565b61087d8160200151610f57565b156108bf5761088b83610f86565b80156108aa575060008381526002602052604090208054600190910154115b6108b55760036108b8565b60045b9392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c206964000000604482015260640161066c565b50919050565b600061091b85858585610fbe565b95945050505050565b60008033905061094584828560405180602001604052806000815250610e4c565b949350505050565b60008033905061099586828787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610e4c92505050565b9695505050505050565b6000806109b133610490600143611d9e565b1015610a315760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a40161066c565b6000610a468686868680519060200120610c9b565b90508451865114610a695760405162461bcd60e51b815260040161066c90611db5565b8351865114610a8a5760405162461bcd60e51b815260040161066c90611db5565b6000865111610adb5760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c0000000000000000604482015260640161066c565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215610b5b5760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b606482015260840161066c565b6000610b6760046110dc565b610b70436110dc565b610b7a9190611df6565b90506000610b8860106110dc565b610b929083611df6565b835467ffffffffffffffff19166001600160401b038416178455905060018301805467ffffffffffffffff19166001600160401b0383161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b03811115610c0a57610c0a611813565b604051908082528060200260200182016040528015610c3d57816020015b6060815260200190600190039081610c285790505b508c88888e604051610c5799989796959493929190611eea565b60405180910390a15091979650505050505050565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610705565b600084848484604051602001610cb49493929190611fd9565b60408051601f19818403018152919052805160209091012095945050505050565b60006108b88383611148565b60006040518060600160405280602781526020016120de60279139905060005b8551811015610dd757600080878381518110610d1f57610d1f612024565b60200260200101516001600160a01b0316878481518110610d4257610d42612024565b6020026020010151878581518110610d5c57610d5c612024565b6020026020010151604051610d71919061203a565b60006040518083038185875af1925050503d8060008114610dae576040519150601f19603f3d011682016040523d82523d6000602084013e610db3565b606091505b5091509150610dc38282866111f3565b50505080610dd090612056565b9050610d01565b50505050505050565b6000610533610ded61122c565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000610e3f87878787611353565b915091506106d381611440565b6000848152600160208190526040822090610e66876107a8565b6007811115610e7757610e77611b57565b14610ed05760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b606482015260840161066c565b604080516020810190915281546001600160401b031690819052600090610ef8908790610cd5565b9050610f06878787846115f9565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda488878488604051610f45949392919061206f565b60405180910390a29695505050505050565b6000610f6c82516001600160401b0316151590565b801561053357505051436001600160401b03909116111590565b60008181526002602081905260408220908101546001820154610fa99190612097565b610fb56104b0856106dd565b11159392505050565b600080610fcd86868686610c9b565b90506000610fda826107a8565b90506002816007811115610ff057610ff0611b57565b141580156110105750600681600781111561100d5761100d611b57565b14155b801561102e5750600781600781111561102b5761102b611b57565b14155b61107a5760405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a2070726f706f73616c206e6f7420616374697665000000604482015260640161066c565b60008281526001602052604090819020600201805461ff001916610100179055517f789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c906110ca9084815260200190565b60405180910390a15095945050505050565b60006001600160401b038211156111445760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b606482015260840161066c565b5090565b60405163782d6fe160e01b81526001600160a01b038381166004830152602482018390526000917f00000000000000000000000000000000000000000000000000000000000000009091169063782d6fe190604401602060405180830381865afa1580156111ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111de91906120af565b6bffffffffffffffffffffffff169392505050565b606083156112025750816108b8565b8251156112125782518084602001fd5b8160405162461bcd60e51b815260040161066c9190611800565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561128557507f000000000000000000000000000000000000000000000000000000000000000046145b156112af57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561138a5750600090506003611437565b8460ff16601b141580156113a257508460ff16601c14155b156113b35750600090506004611437565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611407573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661143057600060019250925050611437565b9150600090505b94509492505050565b600081600481111561145457611454611b57565b0361145c5750565b600181600481111561147057611470611b57565b036114bd5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161066c565b60028160048111156114d1576114d1611b57565b0361151e5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161066c565b600381600481111561153257611532611b57565b0361158a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161066c565b600481600481111561159e5761159e611b57565b036115f65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161066c565b50565b60008481526002602090815260408083206001600160a01b0387168452600381019092529091205460ff16156116815760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72566f74696e6753696d706c653a20766f746520616c726561604482015266191e4818d85cdd60ca1b606482015260840161066c565b6001600160a01b03841660009081526003820160205260409020805460ff1916600117905560ff83166116cd57818160000160008282546116c29190612097565b909155506117739050565b60001960ff8416016116ed57818160010160008282546116c29190612097565b60011960ff84160161170d57818160020160008282546116c29190612097565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b606482015260840161066c565b5050505050565b60006020828403121561178c57600080fd5b81356001600160e01b0319811681146108b857600080fd5b60005b838110156117bf5781810151838201526020016117a7565b838111156117ce576000848401525b50505050565b600081518084526117ec8160208601602086016117a4565b601f01601f19169290920160200192915050565b6020815260006108b860208301846117d4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561185157611851611813565b604052919050565b60006001600160401b0382111561187257611872611813565b5060051b60200190565b80356001600160a01b038116811461189357600080fd5b919050565b600082601f8301126118a957600080fd5b813560206118be6118b983611859565b611829565b82815260059290921b840181019181810190868411156118dd57600080fd5b8286015b848110156118ff576118f28161187c565b83529183019183016118e1565b509695505050505050565b600082601f83011261191b57600080fd5b8135602061192b6118b983611859565b82815260059290921b8401810191818101908684111561194a57600080fd5b8286015b848110156118ff578035835291830191830161194e565b60006001600160401b0383111561197e5761197e611813565b611991601f8401601f1916602001611829565b90508281528383830111156119a557600080fd5b828260208301376000602084830101529392505050565b600082601f8301126119cd57600080fd5b813560206119dd6118b983611859565b82815260059290921b840181019181810190868411156119fc57600080fd5b8286015b848110156118ff5780356001600160401b03811115611a1f5760008081fd5b8701603f81018913611a315760008081fd5b611a42898683013560408401611965565b845250918301918301611a00565b60008060008060808587031215611a6657600080fd5b84356001600160401b0380821115611a7d57600080fd5b611a8988838901611898565b95506020870135915080821115611a9f57600080fd5b611aab8883890161190a565b94506040870135915080821115611ac157600080fd5b50611ace878288016119bc565b949793965093946060013593505050565b600060208284031215611af157600080fd5b5035919050565b803560ff8116811461189357600080fd5b600080600080600060a08688031215611b2157600080fd5b85359450611b3160208701611af8565b9350611b3f60408701611af8565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b6020810160088310611b8f57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215611ba857600080fd5b82359150611bb86020840161187c565b90509250929050565b60008060408385031215611bd457600080fd5b82359150611bb860208401611af8565b60008060008060608587031215611bfa57600080fd5b84359350611c0a60208601611af8565b925060408501356001600160401b0380821115611c2657600080fd5b818701915087601f830112611c3a57600080fd5b813581811115611c4957600080fd5b886020828501011115611c5b57600080fd5b95989497505060200194505050565b60008060008060808587031215611c8057600080fd5b84356001600160401b0380821115611c9757600080fd5b611ca388838901611898565b95506020870135915080821115611cb957600080fd5b611cc58883890161190a565b94506040870135915080821115611cdb57600080fd5b611ce7888389016119bc565b93506060870135915080821115611cfd57600080fd5b508501601f81018713611d0f57600080fd5b611d1e87823560208401611965565b91505092959194509250565b60008060408385031215611d3d57600080fd5b611d468361187c565b946020939093013593505050565b600181811c90821680611d6857607f821691505b60208210810361090757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015611db057611db0611d88565b500390565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b03808316818516808303821115611e1857611e18611d88565b01949350505050565b600081518084526020808501945080840160005b83811015611e5a5781516001600160a01b031687529582019590820190600101611e35565b509495945050505050565b600081518084526020808501945080840160005b83811015611e5a57815187529582019590820190600101611e79565b600081518084526020808501808196508360051b8101915082860160005b85811015611edd578284038952611ecb8483516117d4565b98850198935090840190600101611eb3565b5091979650505050505050565b60006101208b8352602060018060a01b038c1681850152816040850152611f138285018c611e21565b91508382036060850152611f27828b611e65565b915083820360808501528189518084528284019150828160051b850101838c0160005b83811015611f7857601f19878403018552611f668383516117d4565b94860194925090850190600101611f4a565b505086810360a0880152611f8c818c611e95565b945050505050611fa760c08401876001600160401b03169052565b6001600160401b03851660e0840152828103610100840152611fc981856117d4565b9c9b505050505050505050505050565b608081526000611fec6080830187611e21565b8281036020840152611ffe8187611e65565b905082810360408401526120128186611e95565b91505082606083015295945050505050565b634e487b7160e01b600052603260045260246000fd5b6000825161204c8184602087016117a4565b9190910192915050565b60006001820161206857612068611d88565b5060010190565b84815260ff8416602082015282604082015260806060820152600061099560808301846117d4565b600082198211156120aa576120aa611d88565b500190565b6000602082840312156120c157600080fd5b81516bffffffffffffffffffffffff811681146108b857600080fdfe476f7665726e6f723a2063616c6c20726576657274656420776974686f7574206d657373616765a2646970667358221220e2bd6580b737b62dd970d1f3c658390d790c073dd80aa664fc8948ab0ff8b33364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106101445760003560e01c806354fd4d50116100b6578063c59057e41161006f578063c59057e4146103db578063dd4e2ba5146103fb578063deaaa7cc14610441578063eb9019d414610475578063f8ce560a14610495578063fc0c546a146104b657600080fd5b806354fd4d501461031d57806356781388146103475780637b3c71d3146103675780637d5e81e214610387578063b58131b0146103a7578063c01f9e37146103bb57600080fd5b80633932abb1116101085780633932abb1146101f85780633bccf4fd1461020c5780633e4f49e61461022c5780634385963214610259578063452115d6146102a3578063544ffc9c146102c357600080fd5b806301ffc9a71461015057806302a251a31461018557806306fdde03146101a35780632656227d146101c55780632d63f693146101d857600080fd5b3661014b57005b600080fd5b34801561015c57600080fd5b5061017061016b36600461177a565b610502565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b5060105b60405190815260200161017c565b3480156101af57600080fd5b506101b8610539565b60405161017c9190611800565b6101956101d3366004611a50565b6105cb565b3480156101e457600080fd5b506101956101f3366004611adf565b6106dd565b34801561020457600080fd5b506004610195565b34801561021857600080fd5b50610195610227366004611b09565b610714565b34801561023857600080fd5b5061024c610247366004611adf565b6107a8565b60405161017c9190611b6d565b34801561026557600080fd5b50610170610274366004611b95565b60008281526002602090815260408083206001600160a01b038516845260030190915290205460ff1692915050565b3480156102af57600080fd5b506101956102be366004611a50565b61090d565b3480156102cf57600080fd5b506103026102de366004611adf565b60008181526002602081905260409091208054600182015491909201549193909250565b6040805193845260208401929092529082015260600161017c565b34801561032957600080fd5b506040805180820190915260018152603160f81b60208201526101b8565b34801561035357600080fd5b50610195610362366004611bc1565b610924565b34801561037357600080fd5b50610195610382366004611be4565b61094d565b34801561039357600080fd5b506101956103a2366004611c6a565b61099f565b3480156103b357600080fd5b506000610195565b3480156103c757600080fd5b506101956103d6366004611adf565b610c6c565b3480156103e757600080fd5b506101956103f6366004611a50565b610c9b565b34801561040757600080fd5b506040805180820190915260208082527f737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e908201526101b8565b34801561044d57600080fd5b506101957f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b34801561048157600080fd5b50610195610490366004611d2a565b610cd5565b3480156104a157600080fd5b506101956104b0366004611adf565b50600090565b3480156104c257600080fd5b506104ea7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161017c565b60006001600160e01b0319821663bf26d89760e01b148061053357506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461054890611d54565b80601f016020809104026020016040519081016040528092919081815260200182805461057490611d54565b80156105c15780601f10610596576101008083540402835291602001916105c1565b820191906000526020600020905b8154815290600101906020018083116105a457829003601f168201915b5050505050905090565b6000806105da86868686610c9b565b905060006105e7826107a8565b905060048160078111156105fd576105fd611b57565b148061061a5750600581600781111561061857610618611b57565b145b6106755760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756044820152601b60fa1b60648201526084015b60405180910390fd5b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a16106d38288888888610ce1565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff851660608201526000908190610780906107789060800160405160208183030381529060405280519060200120610de0565b868686610e2e565b905061079d87828860405180602001604052806000815250610e4c565b979650505050505050565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff8082161580159484019490945261010090910416151560608201529061081d5750600792915050565b8060600151156108305750600292915050565b80515143906001600160401b03161061084c5750600092915050565b4361085982602001515190565b6001600160401b0316106108705750600192915050565b61087d8160200151610f57565b156108bf5761088b83610f86565b80156108aa575060008381526002602052604090208054600190910154115b6108b55760036108b8565b60045b9392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c206964000000604482015260640161066c565b50919050565b600061091b85858585610fbe565b95945050505050565b60008033905061094584828560405180602001604052806000815250610e4c565b949350505050565b60008033905061099586828787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610e4c92505050565b9695505050505050565b6000806109b133610490600143611d9e565b1015610a315760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a40161066c565b6000610a468686868680519060200120610c9b565b90508451865114610a695760405162461bcd60e51b815260040161066c90611db5565b8351865114610a8a5760405162461bcd60e51b815260040161066c90611db5565b6000865111610adb5760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c0000000000000000604482015260640161066c565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215610b5b5760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b606482015260840161066c565b6000610b6760046110dc565b610b70436110dc565b610b7a9190611df6565b90506000610b8860106110dc565b610b929083611df6565b835467ffffffffffffffff19166001600160401b038416178455905060018301805467ffffffffffffffff19166001600160401b0383161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b03811115610c0a57610c0a611813565b604051908082528060200260200182016040528015610c3d57816020015b6060815260200190600190039081610c285790505b508c88888e604051610c5799989796959493929190611eea565b60405180910390a15091979650505050505050565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610705565b600084848484604051602001610cb49493929190611fd9565b60408051601f19818403018152919052805160209091012095945050505050565b60006108b88383611148565b60006040518060600160405280602781526020016120de60279139905060005b8551811015610dd757600080878381518110610d1f57610d1f612024565b60200260200101516001600160a01b0316878481518110610d4257610d42612024565b6020026020010151878581518110610d5c57610d5c612024565b6020026020010151604051610d71919061203a565b60006040518083038185875af1925050503d8060008114610dae576040519150601f19603f3d011682016040523d82523d6000602084013e610db3565b606091505b5091509150610dc38282866111f3565b50505080610dd090612056565b9050610d01565b50505050505050565b6000610533610ded61122c565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000610e3f87878787611353565b915091506106d381611440565b6000848152600160208190526040822090610e66876107a8565b6007811115610e7757610e77611b57565b14610ed05760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b606482015260840161066c565b604080516020810190915281546001600160401b031690819052600090610ef8908790610cd5565b9050610f06878787846115f9565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda488878488604051610f45949392919061206f565b60405180910390a29695505050505050565b6000610f6c82516001600160401b0316151590565b801561053357505051436001600160401b03909116111590565b60008181526002602081905260408220908101546001820154610fa99190612097565b610fb56104b0856106dd565b11159392505050565b600080610fcd86868686610c9b565b90506000610fda826107a8565b90506002816007811115610ff057610ff0611b57565b141580156110105750600681600781111561100d5761100d611b57565b14155b801561102e5750600781600781111561102b5761102b611b57565b14155b61107a5760405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a2070726f706f73616c206e6f7420616374697665000000604482015260640161066c565b60008281526001602052604090819020600201805461ff001916610100179055517f789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c906110ca9084815260200190565b60405180910390a15095945050505050565b60006001600160401b038211156111445760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b606482015260840161066c565b5090565b60405163782d6fe160e01b81526001600160a01b038381166004830152602482018390526000917f00000000000000000000000000000000000000000000000000000000000000009091169063782d6fe190604401602060405180830381865afa1580156111ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111de91906120af565b6bffffffffffffffffffffffff169392505050565b606083156112025750816108b8565b8251156112125782518084602001fd5b8160405162461bcd60e51b815260040161066c9190611800565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561128557507f000000000000000000000000000000000000000000000000000000000000000046145b156112af57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561138a5750600090506003611437565b8460ff16601b141580156113a257508460ff16601c14155b156113b35750600090506004611437565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611407573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661143057600060019250925050611437565b9150600090505b94509492505050565b600081600481111561145457611454611b57565b0361145c5750565b600181600481111561147057611470611b57565b036114bd5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161066c565b60028160048111156114d1576114d1611b57565b0361151e5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161066c565b600381600481111561153257611532611b57565b0361158a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161066c565b600481600481111561159e5761159e611b57565b036115f65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161066c565b50565b60008481526002602090815260408083206001600160a01b0387168452600381019092529091205460ff16156116815760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72566f74696e6753696d706c653a20766f746520616c726561604482015266191e4818d85cdd60ca1b606482015260840161066c565b6001600160a01b03841660009081526003820160205260409020805460ff1916600117905560ff83166116cd57818160000160008282546116c29190612097565b909155506117739050565b60001960ff8416016116ed57818160010160008282546116c29190612097565b60011960ff84160161170d57818160020160008282546116c29190612097565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b606482015260840161066c565b5050505050565b60006020828403121561178c57600080fd5b81356001600160e01b0319811681146108b857600080fd5b60005b838110156117bf5781810151838201526020016117a7565b838111156117ce576000848401525b50505050565b600081518084526117ec8160208601602086016117a4565b601f01601f19169290920160200192915050565b6020815260006108b860208301846117d4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561185157611851611813565b604052919050565b60006001600160401b0382111561187257611872611813565b5060051b60200190565b80356001600160a01b038116811461189357600080fd5b919050565b600082601f8301126118a957600080fd5b813560206118be6118b983611859565b611829565b82815260059290921b840181019181810190868411156118dd57600080fd5b8286015b848110156118ff576118f28161187c565b83529183019183016118e1565b509695505050505050565b600082601f83011261191b57600080fd5b8135602061192b6118b983611859565b82815260059290921b8401810191818101908684111561194a57600080fd5b8286015b848110156118ff578035835291830191830161194e565b60006001600160401b0383111561197e5761197e611813565b611991601f8401601f1916602001611829565b90508281528383830111156119a557600080fd5b828260208301376000602084830101529392505050565b600082601f8301126119cd57600080fd5b813560206119dd6118b983611859565b82815260059290921b840181019181810190868411156119fc57600080fd5b8286015b848110156118ff5780356001600160401b03811115611a1f5760008081fd5b8701603f81018913611a315760008081fd5b611a42898683013560408401611965565b845250918301918301611a00565b60008060008060808587031215611a6657600080fd5b84356001600160401b0380821115611a7d57600080fd5b611a8988838901611898565b95506020870135915080821115611a9f57600080fd5b611aab8883890161190a565b94506040870135915080821115611ac157600080fd5b50611ace878288016119bc565b949793965093946060013593505050565b600060208284031215611af157600080fd5b5035919050565b803560ff8116811461189357600080fd5b600080600080600060a08688031215611b2157600080fd5b85359450611b3160208701611af8565b9350611b3f60408701611af8565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b6020810160088310611b8f57634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215611ba857600080fd5b82359150611bb86020840161187c565b90509250929050565b60008060408385031215611bd457600080fd5b82359150611bb860208401611af8565b60008060008060608587031215611bfa57600080fd5b84359350611c0a60208601611af8565b925060408501356001600160401b0380821115611c2657600080fd5b818701915087601f830112611c3a57600080fd5b813581811115611c4957600080fd5b886020828501011115611c5b57600080fd5b95989497505060200194505050565b60008060008060808587031215611c8057600080fd5b84356001600160401b0380821115611c9757600080fd5b611ca388838901611898565b95506020870135915080821115611cb957600080fd5b611cc58883890161190a565b94506040870135915080821115611cdb57600080fd5b611ce7888389016119bc565b93506060870135915080821115611cfd57600080fd5b508501601f81018713611d0f57600080fd5b611d1e87823560208401611965565b91505092959194509250565b60008060408385031215611d3d57600080fd5b611d468361187c565b946020939093013593505050565b600181811c90821680611d6857607f821691505b60208210810361090757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015611db057611db0611d88565b500390565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b03808316818516808303821115611e1857611e18611d88565b01949350505050565b600081518084526020808501945080840160005b83811015611e5a5781516001600160a01b031687529582019590820190600101611e35565b509495945050505050565b600081518084526020808501945080840160005b83811015611e5a57815187529582019590820190600101611e79565b600081518084526020808501808196508360051b8101915082860160005b85811015611edd578284038952611ecb8483516117d4565b98850198935090840190600101611eb3565b5091979650505050505050565b60006101208b8352602060018060a01b038c1681850152816040850152611f138285018c611e21565b91508382036060850152611f27828b611e65565b915083820360808501528189518084528284019150828160051b850101838c0160005b83811015611f7857601f19878403018552611f668383516117d4565b94860194925090850190600101611f4a565b505086810360a0880152611f8c818c611e95565b945050505050611fa760c08401876001600160401b03169052565b6001600160401b03851660e0840152828103610100840152611fc981856117d4565b9c9b505050505050505050505050565b608081526000611fec6080830187611e21565b8281036020840152611ffe8187611e65565b905082810360408401526120128186611e95565b91505082606083015295945050505050565b634e487b7160e01b600052603260045260246000fd5b6000825161204c8184602087016117a4565b9190910192915050565b60006001820161206857612068611d88565b5060010190565b84815260ff8416602082015282604082015260806060820152600061099560808301846117d4565b600082198211156120aa576120aa611d88565b500190565b6000602082840312156120c157600080fd5b81516bffffffffffffffffffffffff811681146108b857600080fdfe476f7665726e6f723a2063616c6c20726576657274656420776974686f7574206d657373616765a2646970667358221220e2bd6580b737b62dd970d1f3c658390d790c073dd80aa664fc8948ab0ff8b33364736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name_", "type": "string", "internalType": "string"}, {"name": "token_", "type": "address", "internalType": "contract ERC20VotesComp"}]}, {"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "cancel", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalVotes", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "againstVotes", "type": "uint256", "internalType": "uint256"}, {"name": "forVotes", "type": "uint256", "internalType": "uint256"}, {"name": "abstainVotes", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "pure", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract ERC20VotesComp"}]}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"COUNTING_MODE()": {"details": "See {IGovernor-COUNTING_MODE}."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "hasVoted(uint256,address)": {"details": "See {IGovernor-hasVoted}."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_."}, "proposalVotes(uint256)": {"details": "Accessor to the internal vote counts."}, "propose(address[],uint256[],bytes[],string)": {"details": "See {IGovernor-propose}."}, "state(uint256)": {"details": "See {IGovernor-state}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "GovernorCompatibilityBravoMock": {"contractName": "GovernorCompatibilityBravoMock", "sourceId": "mocks/GovernorCompatibilityBravoMock.sol", "deploymentBytecode": {"bytecode": "0x6101606040523480156200001257600080fd5b5060405162004821380380620048218339810160408190526200003591620003be565b84818585858a806200005b6040805180820190915260018152603160f81b602082015290565b815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c0526101205250508251620001019250600091506020840190620002e5565b506200010f90508362000154565b6200011a8262000195565b62000125816200023b565b50505062000139816200027c60201b60201c565b506001600160a01b0316610140525062000519945050505050565b60035460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600355565b60008111620001fa5760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b606482015260840160405180910390fd5b60045460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600455565b60055460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600555565b600654604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600680546001600160a01b0319166001600160a01b0392909216919091179055565b828054620002f390620004dd565b90600052602060002090601f01602090048101928262000317576000855562000362565b82601f106200033257805160ff191683800117855562000362565b8280016001018555821562000362579182015b828111156200036257825182559160200191906001019062000345565b506200037092915062000374565b5090565b5b8082111562000370576000815560010162000375565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620003b957600080fd5b919050565b60008060008060008060c08789031215620003d857600080fd5b86516001600160401b0380821115620003f057600080fd5b818901915089601f8301126200040557600080fd5b8151818111156200041a576200041a6200038b565b604051601f8201601f19908116603f011681019083821181831017156200044557620004456200038b565b81604052828152602093508c848487010111156200046257600080fd5b600091505b8282101562000486578482018401518183018501529083019062000467565b82821115620004985760008484830101525b9950620004aa915050898201620003a1565b96505050604087015193506060870151925060808701519150620004d160a08801620003a1565b90509295509295509295565b600181811c90821680620004f257607f821691505b6020821081036200051357634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161012051610140516142a66200057b6000396000818161085e015261231e015260006125390152600061258801526000612563015260006124bc015260006124e60152600061251001526142a66000f3fe6080604052600436106102295760003560e01c80637d5e81e211610123578063dd4e2ba5116100ab578063eb9019d41161006f578063eb9019d4146107eb578063ece40cc11461080b578063f8ce560a1461082b578063fc0c546a1461084c578063fe0d94c11461088057600080fd5b8063dd4e2ba514610667578063ddf0b009146106ad578063deaaa7cc146106cd578063e23a9a5214610701578063ea0217cf146107cb57600080fd5b8063b9a61961116100f2578063b9a61961146105c0578063c01f9e37146105d5578063c59057e4146105f5578063d33219b414610615578063da95691a1461064757600080fd5b80637d5e81e21461054b578063a890c9101461056b578063ab58fb8e1461058b578063b58131b0146105ab57600080fd5b80633932abb1116101b1578063452115d611610175578063452115d6146104a157806354fd4d50146104c157806356781388146104eb57806370b0f6601461050b5780637b3c71d31461052b57600080fd5b80633932abb1146103d55780633bccf4fd146103ea5780633e4f49e61461040a57806340e58ee514610437578063438596321461045757600080fd5b8063160cbed7116101f8578063160cbed71461033d57806324bc1a641461035d5780632656227d146103725780632d63f69314610385578063328dd982146103a557600080fd5b8063013cf08b1461025157806301ffc9a7146102cc57806302a251a3146102fc57806306fdde031461031b57600080fd5b3661024c5730610237610893565b6001600160a01b03161461024a57600080fd5b005b600080fd5b34801561025d57600080fd5b5061027161026c366004613609565b6108ac565b604080519a8b526001600160a01b0390991660208b0152978901969096526060880194909452608087019290925260a086015260c085015260e084015215156101008301521515610120820152610140015b60405180910390f35b3480156102d857600080fd5b506102ec6102e7366004613622565b610955565b60405190151581526020016102c3565b34801561030857600080fd5b506004545b6040519081526020016102c3565b34801561032757600080fd5b50610330610966565b6040516102c391906136a4565b34801561034957600080fd5b5061030d6103583660046138f8565b6109f8565b34801561036957600080fd5b5061030d610a0f565b61030d6103803660046138f8565b610a1f565b34801561039157600080fd5b5061030d6103a0366004613609565b610a2d565b3480156103b157600080fd5b506103c56103c0366004613609565b610a64565b6040516102c39493929190613a50565b3480156103e157600080fd5b5060035461030d565b3480156103f657600080fd5b5061030d610405366004613ab3565b610cf5565b34801561041657600080fd5b5061042a610425366004613609565b610d89565b6040516102c39190613b17565b34801561044357600080fd5b5061024a610452366004613609565b610d94565b34801561046357600080fd5b506102ec610472366004613b3f565b60008281526002602090815260408083206001600160a01b038516845260080190915290205460ff1692915050565b3480156104ad57600080fd5b5061030d6104bc3660046138f8565b6110b1565b3480156104cd57600080fd5b506040805180820190915260018152603160f81b6020820152610330565b3480156104f757600080fd5b5061030d610506366004613b6f565b6110bf565b34801561051757600080fd5b5061024a610526366004613609565b6110e8565b34801561053757600080fd5b5061030d610546366004613b9b565b61112c565b34801561055757600080fd5b5061030d610566366004613c41565b61117e565b34801561057757600080fd5b5061024a610586366004613ced565b61118c565b34801561059757600080fd5b5061030d6105a6366004613609565b6111cd565b3480156105b757600080fd5b5061030d6111d8565b3480156105cc57600080fd5b5061024a6111e3565b3480156105e157600080fd5b5061030d6105f0366004613609565b61124d565b34801561060157600080fd5b5061030d6106103660046138f8565b61127c565b34801561062157600080fd5b506006546001600160a01b03165b6040516001600160a01b0390911681526020016102c3565b34801561065357600080fd5b5061030d610662366004613d89565b6112b6565b34801561067357600080fd5b5060408051808201909152601a81527f737570706f72743d627261766f2671756f72756d3d627261766f0000000000006020820152610330565b3480156106b957600080fd5b5061024a6106c8366004613609565b6112db565b3480156106d957600080fd5b5061030d7f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b34801561070d57600080fd5b5061079b61071c366004613b3f565b60408051606081018252600080825260208201819052918101919091525060009182526002602090815260408084206001600160a01b0393909316845260089092018152918190208151606081018352905460ff8082161515835261010082041693820193909352620100009092046001600160601b03169082015290565b6040805182511515815260208084015160ff1690820152918101516001600160601b0316908201526060016102c3565b3480156107d757600080fd5b5061024a6107e6366004613609565b611549565b3480156107f757600080fd5b5061030d610806366004613e5a565b61158a565b34801561081757600080fd5b5061024a610826366004613609565b61159d565b34801561083757600080fd5b5061030d610846366004613609565b50600090565b34801561085857600080fd5b5061062f7f000000000000000000000000000000000000000000000000000000000000000081565b61024a61088e366004613609565b6115de565b60006108a76006546001600160a01b031690565b905090565b80600080808080808080806108c08a6111cd565b97506108cb8b610a2d565b96506108d68b61124d565b60008c815260026020526040812080546005820154600683015460078401546001600160a01b039093169e50949a5098509296509194506109168d610d89565b9050600281600781111561092c5761092c613b01565b149350600781600781111561094357610943613b01565b14925050509193959799509193959799565b60006109608261184c565b92915050565b60606000805461097590613e86565b80601f01602080910402602001604051908101604052809291908181526020018280546109a190613e86565b80156109ee5780601f106109c3576101008083540402835291602001916109ee565b820191906000526020600020905b8154815290600101906020018083116109d157829003601f168201915b5050505050905090565b6000610a0685858585611871565b95945050505050565b60006108a7610846600143613ed0565b6000610a0685858585611beb565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b60608060608060006002600087815260200190815260200160002090508060010181600201826003018360040183805480602002602001604051908101604052809291908181526020018280548015610ae657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610ac8575b5050505050935082805480602002602001604051908101604052809291908181526020018280548015610b3857602002820191906000526020600020905b815481526020019060010190808311610b24575b5050505050925081805480602002602001604051908101604052809291908181526020016000905b82821015610c0c578382906000526020600020018054610b7f90613e86565b80601f0160208091040260200160405190810160405280929190818152602001828054610bab90613e86565b8015610bf85780601f10610bcd57610100808354040283529160200191610bf8565b820191906000526020600020905b815481529060010190602001808311610bdb57829003601f168201915b505050505081526020019060010190610b60565b50505050915080805480602002602001604051908101604052809291908181526020016000905b82821015610cdf578382906000526020600020018054610c5290613e86565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7e90613e86565b8015610ccb5780601f10610ca057610100808354040283529160200191610ccb565b820191906000526020600020905b815481529060010190602001808311610cae57829003601f168201915b505050505081526020019060010190610c33565b5050505090509450945094509450509193509193565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff851660608201526000908190610d6190610d599060800160405160208183030381529060405280519060200120611cbe565b868686611d0c565b9050610d7e87828860405180602001604052806000815250611d2a565b979650505050505050565b600061096082611e35565b600081815260026020526040902080546001600160a01b0316336001600160a01b03161480610de25750610dc66111d8565b8154610de0906001600160a01b0316610806600143613ed0565b105b610e435760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72427261766f3a2070726f706f7365722061626f76652074686044820152661c995cda1bdb1960ca1b60648201526084015b60405180910390fd5b6110ac81600101805480602002602001604051908101604052809291908181526020018280548015610e9e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610e80575b505050505082600201805480602002602001604051908101604052809291908181526020018280548015610ef157602002820191906000526020600020905b815481526020019060010190808311610edd575b50505050506110a284600301805480602002602001604051908101604052809291908181526020016000905b82821015610fc9578382906000526020600020018054610f3c90613e86565b80601f0160208091040260200160405190810160405280929190818152602001828054610f6890613e86565b8015610fb55780601f10610f8a57610100808354040283529160200191610fb5565b820191906000526020600020905b815481529060010190602001808311610f9857829003601f168201915b505050505081526020019060010190610f1d565b50505060048701805460408051602080840282018101909252828152935060009084015b8282101561109957838290600052602060002001805461100c90613e86565b80601f016020809104026020016040519081016040528092919081815260200182805461103890613e86565b80156110855780601f1061105a57610100808354040283529160200191611085565b820191906000526020600020905b81548152906001019060200180831161106857829003601f168201915b505050505081526020019060010190610fed565b50505050611f19565b846009015461204b565b505050565b6000610a068585858561204b565b6000803390506110e084828560405180602001604052806000815250611d2a565b949350505050565b6110f0610893565b6001600160a01b0316336001600160a01b0316146111205760405162461bcd60e51b8152600401610e3a90613ee7565b61112981612059565b50565b60008033905061117486828787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d2a92505050565b9695505050505050565b6000610a068585858561209a565b611194610893565b6001600160a01b0316336001600160a01b0316146111c45760405162461bcd60e51b8152600401610e3a90613ee7565b61112981612102565b60006109608261216b565b60006108a760055490565b600660009054906101000a90046001600160a01b03166001600160a01b0316630e18b6816040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561123357600080fd5b505af1158015611247573d6000803e3d6000fd5b50505050565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610a55565b6000848484846040516020016112959493929190613f1e565b60408051601f19818403018152919052805160209091012095945050505050565b60006112c6338787878787612197565b61117486866112d58787611f19565b8561117e565b60008181526002602090815260409182902060018101805484518185028101850190955280855291936110ac9390929083018282801561134457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611326575b50505050508260020180548060200260200160405190810160405280929190818152602001828054801561139757602002820191906000526020600020905b815481526020019060010190808311611383575b505050505061153f84600301805480602002602001604051908101604052809291908181526020016000905b8282101561146f5783829060005260206000200180546113e290613e86565b80601f016020809104026020016040519081016040528092919081815260200182805461140e90613e86565b801561145b5780601f106114305761010080835404028352916020019161145b565b820191906000526020600020905b81548152906001019060200180831161143e57829003601f168201915b5050505050815260200190600101906113c3565b50505060048701805460408051602080840282018101909252828152935060009084015b828210156110995783829060005260206000200180546114b290613e86565b80601f01602080910402602001604051908101604052809291908181526020018280546114de90613e86565b801561152b5780601f106115005761010080835404028352916020019161152b565b820191906000526020600020905b81548152906001019060200180831161150e57829003601f168201915b505050505081526020019060010190611493565b84600901546109f8565b611551610893565b6001600160a01b0316336001600160a01b0316146115815760405162461bcd60e51b8152600401610e3a90613ee7565b61112981612254565b600061159683836122f5565b9392505050565b6115a5610893565b6001600160a01b0316336001600160a01b0316146115d55760405162461bcd60e51b8152600401610e3a90613ee7565b6111298161239b565b60008181526002602090815260409182902060018101805484518185028101850190955280855291936110ac9390929083018282801561164757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611629575b50505050508260020180548060200260200160405190810160405280929190818152602001828054801561169a57602002820191906000526020600020905b815481526020019060010190808311611686575b505050505061184284600301805480602002602001604051908101604052809291908181526020016000905b828210156117725783829060005260206000200180546116e590613e86565b80601f016020809104026020016040519081016040528092919081815260200182805461171190613e86565b801561175e5780601f106117335761010080835404028352916020019161175e565b820191906000526020600020905b81548152906001019060200180831161174157829003601f168201915b5050505050815260200190600101906116c6565b50505060048701805460408051602080840282018101909252828152935060009084015b828210156110995783829060005260206000200180546117b590613e86565b80601f01602080910402602001604051908101604052809291908181526020018280546117e190613e86565b801561182e5780601f106118035761010080835404028352916020019161182e565b820191906000526020600020905b81548152906001019060200180831161181157829003601f168201915b505050505081526020019060010190611796565b8460090154610a1f565b60006001600160e01b03198216636e665ced60e01b14806109605750610960826123dc565b6000806118808686868661127c565b9050600461188d82610d89565b600781111561189e5761189e613b01565b146118bb5760405162461bcd60e51b8152600401610e3a90613f69565b60065460408051630d48571f60e31b815290516000926001600160a01b031691636a42b8f89160048083019260209291908290030181865afa158015611905573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119299190613faa565b6119339042613fc3565b905061195561194182612411565b60008481526007602052604090209061247d565b60005b8751811015611ba65760065488516001600160a01b039091169063f2b06537908a908490811061198a5761198a613fdb565b60200260200101518984815181106119a4576119a4613fdb565b60200260200101518985815181106119be576119be613fdb565b6020026020010151866040516020016119da9493929190613ff1565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401611a0e91815260200190565b602060405180830381865afa158015611a2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a4f9190614037565b15611acd5760405162461bcd60e51b815260206004820152604260248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a206964656e746960448201527f63616c2070726f706f73616c20616374696f6e20616c72656164792071756575606482015261195960f21b608482015260a401610e3a565b60065488516001600160a01b0390911690633a66f901908a9084908110611af657611af6613fdb565b6020026020010151898481518110611b1057611b10613fdb565b6020026020010151898581518110611b2a57611b2a613fdb565b6020026020010151866040518563ffffffff1660e01b8152600401611b529493929190613ff1565b6020604051808303816000875af1158015611b71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b959190613faa565b50611b9f81614059565b9050611958565b5060408051838152602081018390527f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda289291015b60405180910390a15095945050505050565b600080611bfa8686868661127c565b90506000611c0782610d89565b90506004816007811115611c1d57611c1d613b01565b1480611c3a57506005816007811115611c3857611c38613b01565b145b611c565760405162461bcd60e51b8152600401610e3a90613f69565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a1611cb4828888888861249b565b5095945050505050565b6000610960611ccb6124af565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611d1d878787876125d6565b91509150611cb4816126c3565b6000848152600160208190526040822090611d4487610d89565b6007811115611d5557611d55613b01565b14611dae5760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b6064820152608401610e3a565b604080516020810190915281546001600160401b031690819052600090611dd690879061158a565b9050611de487878784612879565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda488878488604051611e239493929190614072565b60405180910390a29695505050505050565b600080611e4183612a1e565b90506004816007811115611e5757611e57613b01565b14611e625792915050565b6000611e6d846111cd565b905080600003611e7e575092915050565b600660009054906101000a90046001600160a01b03166001600160a01b031663c1a287e26040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ed1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef59190613faa565b611eff9082613fc3565b4210611f0f575060069392505050565b5060059392505050565b6060600082516001600160401b03811115611f3657611f366136b7565b604051908082528060200260200182016040528015611f6957816020015b6060815260200190600190039081611f545790505b50905060005b845181101561204357848181518110611f8a57611f8a613fdb565b602002602001015151600014611ffa57848181518110611fac57611fac613fdb565b602002602001015180519060200120848281518110611fcd57611fcd613fdb565b6020026020010151604051602001611fe692919061409a565b604051602081830303815290604052612015565b83818151811061200c5761200c613fdb565b60200260200101515b82828151811061202757612027613fdb565b60200260200101819052508061203c90614059565b9050611f6f565b509392505050565b6000610a0685858585612b85565b60035460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600355565b60006120f633868686516001600160401b038111156120bb576120bb6136b7565b6040519080825280602002602001820160405280156120ee57816020015b60608152602001906001900390816120d95790505b508787612197565b610a0685858585612ca0565b600654604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600680546001600160a01b0319166001600160a01b0392909216919091179055565b60008181526007602090815260408083208151928301909152546001600160401b031690819052610a55565b8051602082012060006121b587876121af8888611f19565b8561127c565b60008181526002602052604090206009810154919250906122495780546001600160a01b0319166001600160a01b038a1617815587516121fe90600183019060208b01906133bf565b50865161221490600283019060208a0190613420565b50855161222a906003830190602089019061345b565b50845161224090600483019060208801906134b4565b50600981018390555b505050505050505050565b600081116122b45760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b6064820152608401610e3a565b60045460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600455565b60405163782d6fe160e01b81526001600160a01b038381166004830152602482018390526000917f00000000000000000000000000000000000000000000000000000000000000009091169063782d6fe190604401602060405180830381865afa158015612367573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238b91906140cb565b6001600160601b03169392505050565b60055460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600555565b60006001600160e01b0319821663bf26d89760e01b148061096057506301ffc9a760e01b6001600160e01b0319831614610960565b60006001600160401b038211156124795760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b6064820152608401610e3a565b5090565b815467ffffffffffffffff19166001600160401b0391909116179055565b6124a88585858585612f5c565b5050505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561250857507f000000000000000000000000000000000000000000000000000000000000000046145b1561253257507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561260d57506000905060036126ba565b8460ff16601b1415801561262557508460ff16601c14155b1561263657506000905060046126ba565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561268a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166126b3576000600192509250506126ba565b9150600090505b94509492505050565b60008160048111156126d7576126d7613b01565b036126df5750565b60018160048111156126f3576126f3613b01565b036127405760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610e3a565b600281600481111561275457612754613b01565b036127a15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610e3a565b60038160048111156127b5576127b5613b01565b0361280d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610e3a565b600481600481111561282157612821613b01565b036111295760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610e3a565b60008481526002602090815260408083206001600160a01b038716845260088101909252909120805460ff16156129085760405162461bcd60e51b815260206004820152602d60248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a20766f746560448201526c08185b1c9958591e4818d85cdd609a1b6064820152608401610e3a565b805460ff85166101000261ffff19909116176001178155612928836130db565b81546001600160601b039190911662010000026dffffffffffffffffffffffff00001990911617815560ff8416612978578282600601600082825461296d9190613fc3565b90915550612a169050565b60001960ff851601612998578282600501600082825461296d9190613fc3565b60011960ff8516016129b8578282600701600082825461296d9190613fc3565b60405162461bcd60e51b815260206004820152602d60248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a20696e766160448201526c6c696420766f7465207479706560981b6064820152608401610e3a565b505050505050565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff80821615801594840194909452610100909104161515606082015290612a935750600792915050565b806060015115612aa65750600292915050565b80515143906001600160401b031610612ac25750600092915050565b43612acf82602001515190565b6001600160401b031610612ae65750600192915050565b612af38160200151613143565b15612b3757612b0183613172565b8015612b23575060008381526002602052604090206006810154600590910154115b612b2e576003611596565b60049392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c2069640000006044820152606401610e3a565b50919050565b600080612b948686868661319a565b90506000612ba1826111cd565b90508015611cb45760005b8751811015612c7d5760065488516001600160a01b039091169063591fcdfe908a9084908110612bde57612bde613fdb565b6020026020010151898481518110612bf857612bf8613fdb565b6020026020010151898581518110612c1257612c12613fdb565b6020026020010151866040518563ffffffff1660e01b8152600401612c3a9493929190613ff1565b600060405180830381600087803b158015612c5457600080fd5b505af1158015612c68573d6000803e3d6000fd5b5050505080612c7690614059565b9050612bac565b506000828152600760205260409020805467ffffffffffffffff19169055611cb4565b6000612caa6111d8565b612cb933610806600143613ed0565b1015612d395760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a401610e3a565b6000612d4e868686868051906020012061127c565b90508451865114612d715760405162461bcd60e51b8152600401610e3a906140f4565b8351865114612d925760405162461bcd60e51b8152600401610e3a906140f4565b6000865111612de35760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c00000000000000006044820152606401610e3a565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215612e635760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b6064820152608401610e3a565b6000612e76612e7160035490565b612411565b612e7f43612411565b612e899190614135565b90506000612e99612e7160045490565b612ea39083614135565b9050612eaf838361247d565b612ebc600184018261247d565b7f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b03811115612efa57612efa6136b7565b604051908082528060200260200182016040528015612f2d57816020015b6060815260200190600190039081612f185790505b508c88888e604051612f4799989796959493929190614160565b60405180910390a15091979650505050505050565b6000612f67866111cd565b905060008111612fd35760405162461bcd60e51b815260206004820152603160248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a2070726f706f73604482015270185b081b9bdd081e595d081c5d595d5959607a1b6064820152608401610e3a565b600654612fe9906001600160a01b0316346132a6565b60005b85518110156130d25760065486516001600160a01b0390911690630825f38f9088908490811061301e5761301e613fdb565b602002602001015187848151811061303857613038613fdb565b602002602001015187858151811061305257613052613fdb565b6020026020010151866040518563ffffffff1660e01b815260040161307a9493929190613ff1565b6000604051808303816000875af1158015613099573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526130c19190810190614203565b506130cb81614059565b9050612fec565b50505050505050565b60006001600160601b038211156124795760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203960448201526536206269747360d01b6064820152608401610e3a565b600061315882516001600160401b0316151590565b801561096057505051436001600160401b03909116111590565b6000818152600260205260408120600581015461319161084685610a2d565b11159392505050565b6000806131a98686868661127c565b905060006131b682610d89565b905060028160078111156131cc576131cc613b01565b141580156131ec575060068160078111156131e9576131e9613b01565b14155b801561320a5750600781600781111561320757613207613b01565b14155b6132565760405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a2070726f706f73616c206e6f74206163746976650000006044820152606401610e3a565b60008281526001602052604090819020600201805461ff001916610100179055517f789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c90611bd99084815260200190565b804710156132f65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610e3a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613343576040519150601f19603f3d011682016040523d82523d6000602084013e613348565b606091505b50509050806110ac5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610e3a565b828054828255906000526020600020908101928215613414579160200282015b8281111561341457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906133df565b5061247992915061350d565b828054828255906000526020600020908101928215613414579160200282015b82811115613414578251825591602001919060010190613440565b8280548282559060005260206000209081019282156134a8579160200282015b828111156134a85782518051613498918491602090910190613522565b509160200191906001019061347b565b50612479929150613595565b828054828255906000526020600020908101928215613501579160200282015b8281111561350157825180516134f1918491602090910190613522565b50916020019190600101906134d4565b506124799291506135b2565b5b80821115612479576000815560010161350e565b82805461352e90613e86565b90600052602060002090601f0160209004810192826135505760008555613414565b82601f1061356957805160ff1916838001178555613414565b828001600101855582156134145791820182811115613414578251825591602001919060010190613440565b808211156124795760006135a982826135cf565b50600101613595565b808211156124795760006135c682826135cf565b506001016135b2565b5080546135db90613e86565b6000825580601f106135eb575050565b601f016020900490600052602060002090810190611129919061350d565b60006020828403121561361b57600080fd5b5035919050565b60006020828403121561363457600080fd5b81356001600160e01b03198116811461159657600080fd5b60005b8381101561366757818101518382015260200161364f565b838111156112475750506000910152565b6000815180845261369081602086016020860161364c565b601f01601f19169290920160200192915050565b6020815260006115966020830184613678565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156136f5576136f56136b7565b604052919050565b60006001600160401b03821115613716576137166136b7565b5060051b60200190565b6001600160a01b038116811461112957600080fd5b600082601f83011261374657600080fd5b8135602061375b613756836136fd565b6136cd565b82815260059290921b8401810191818101908684111561377a57600080fd5b8286015b8481101561379e57803561379181613720565b835291830191830161377e565b509695505050505050565b600082601f8301126137ba57600080fd5b813560206137ca613756836136fd565b82815260059290921b840181019181810190868411156137e957600080fd5b8286015b8481101561379e57803583529183019183016137ed565b60006001600160401b0382111561381d5761381d6136b7565b50601f01601f191660200190565b600061383961375684613804565b905082815283838301111561384d57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261387557600080fd5b81356020613885613756836136fd565b82815260059290921b840181019181810190868411156138a457600080fd5b8286015b8481101561379e5780356001600160401b038111156138c75760008081fd5b8701603f810189136138d95760008081fd5b6138ea89868301356040840161382b565b8452509183019183016138a8565b6000806000806080858703121561390e57600080fd5b84356001600160401b038082111561392557600080fd5b61393188838901613735565b9550602087013591508082111561394757600080fd5b613953888389016137a9565b9450604087013591508082111561396957600080fd5b5061397687828801613864565b949793965093946060013593505050565b600081518084526020808501945080840160005b838110156139c05781516001600160a01b03168752958201959082019060010161399b565b509495945050505050565b600081518084526020808501945080840160005b838110156139c0578151875295820195908201906001016139df565b600081518084526020808501808196508360051b8101915082860160005b85811015613a43578284038952613a31848351613678565b98850198935090840190600101613a19565b5091979650505050505050565b608081526000613a636080830187613987565b8281036020840152613a7581876139cb565b90508281036040840152613a8981866139fb565b90508281036060840152610d7e81856139fb565b803560ff81168114613aae57600080fd5b919050565b600080600080600060a08688031215613acb57600080fd5b85359450613adb60208701613a9d565b9350613ae960408701613a9d565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b6020810160088310613b3957634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215613b5257600080fd5b823591506020830135613b6481613720565b809150509250929050565b60008060408385031215613b8257600080fd5b82359150613b9260208401613a9d565b90509250929050565b60008060008060608587031215613bb157600080fd5b84359350613bc160208601613a9d565b925060408501356001600160401b0380821115613bdd57600080fd5b818701915087601f830112613bf157600080fd5b813581811115613c0057600080fd5b886020828501011115613c1257600080fd5b95989497505060200194505050565b600082601f830112613c3257600080fd5b6115968383356020850161382b565b60008060008060808587031215613c5757600080fd5b84356001600160401b0380821115613c6e57600080fd5b613c7a88838901613735565b95506020870135915080821115613c9057600080fd5b613c9c888389016137a9565b94506040870135915080821115613cb257600080fd5b613cbe88838901613864565b93506060870135915080821115613cd457600080fd5b50613ce187828801613c21565b91505092959194509250565b600060208284031215613cff57600080fd5b813561159681613720565b600082601f830112613d1b57600080fd5b81356020613d2b613756836136fd565b82815260059290921b84018101918181019086841115613d4a57600080fd5b8286015b8481101561379e5780356001600160401b03811115613d6d5760008081fd5b613d7b8986838b0101613c21565b845250918301918301613d4e565b600080600080600060a08688031215613da157600080fd5b85356001600160401b0380821115613db857600080fd5b613dc489838a01613735565b96506020880135915080821115613dda57600080fd5b613de689838a016137a9565b95506040880135915080821115613dfc57600080fd5b613e0889838a01613d0a565b94506060880135915080821115613e1e57600080fd5b613e2a89838a01613864565b93506080880135915080821115613e4057600080fd5b50613e4d88828901613c21565b9150509295509295909350565b60008060408385031215613e6d57600080fd5b8235613e7881613720565b946020939093013593505050565b600181811c90821680613e9a57607f821691505b602082108103612b7f57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015613ee257613ee2613eba565b500390565b60208082526018908201527f476f7665726e6f723a206f6e6c79476f7665726e616e63650000000000000000604082015260600190565b608081526000613f316080830187613987565b8281036020840152613f4381876139cb565b90508281036040840152613f5781866139fb565b91505082606083015295945050505050565b60208082526021908201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756040820152601b60fa1b606082015260800190565b600060208284031215613fbc57600080fd5b5051919050565b60008219821115613fd657613fd6613eba565b500190565b634e487b7160e01b600052603260045260246000fd5b60018060a01b038516815283602082015260a06040820152600060a082015260c06060820152600061402660c0830185613678565b905082608083015295945050505050565b60006020828403121561404957600080fd5b8151801515811461159657600080fd5b60006001820161406b5761406b613eba565b5060010190565b84815260ff841660208201528260408201526080606082015260006111746080830184613678565b6001600160e01b03198316815281516000906140bd81600485016020870161364c565b919091016004019392505050565b6000602082840312156140dd57600080fd5b81516001600160601b038116811461159657600080fd5b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b0380831681851680830382111561415757614157613eba565b01949350505050565b8981526001600160a01b03891660208201526101206040820181905260009061418b8382018b613987565b9050828103606084015261419f818a6139cb565b905082810360808401526141b381896139fb565b905082810360a08401526141c781886139fb565b6001600160401b0387811660c0860152861660e085015283810361010085015290506141f38185613678565b9c9b505050505050505050505050565b60006020828403121561421557600080fd5b81516001600160401b0381111561422b57600080fd5b8201601f8101841361423c57600080fd5b805161424a61375682613804565b81815285602083850101111561425f57600080fd5b610a0682602083016020860161364c56fea264697066735822122096549f8577f50ab1bd6da06ff00448b06fc4ca715383ff9db2e913fe4635bdad64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106102295760003560e01c80637d5e81e211610123578063dd4e2ba5116100ab578063eb9019d41161006f578063eb9019d4146107eb578063ece40cc11461080b578063f8ce560a1461082b578063fc0c546a1461084c578063fe0d94c11461088057600080fd5b8063dd4e2ba514610667578063ddf0b009146106ad578063deaaa7cc146106cd578063e23a9a5214610701578063ea0217cf146107cb57600080fd5b8063b9a61961116100f2578063b9a61961146105c0578063c01f9e37146105d5578063c59057e4146105f5578063d33219b414610615578063da95691a1461064757600080fd5b80637d5e81e21461054b578063a890c9101461056b578063ab58fb8e1461058b578063b58131b0146105ab57600080fd5b80633932abb1116101b1578063452115d611610175578063452115d6146104a157806354fd4d50146104c157806356781388146104eb57806370b0f6601461050b5780637b3c71d31461052b57600080fd5b80633932abb1146103d55780633bccf4fd146103ea5780633e4f49e61461040a57806340e58ee514610437578063438596321461045757600080fd5b8063160cbed7116101f8578063160cbed71461033d57806324bc1a641461035d5780632656227d146103725780632d63f69314610385578063328dd982146103a557600080fd5b8063013cf08b1461025157806301ffc9a7146102cc57806302a251a3146102fc57806306fdde031461031b57600080fd5b3661024c5730610237610893565b6001600160a01b03161461024a57600080fd5b005b600080fd5b34801561025d57600080fd5b5061027161026c366004613609565b6108ac565b604080519a8b526001600160a01b0390991660208b0152978901969096526060880194909452608087019290925260a086015260c085015260e084015215156101008301521515610120820152610140015b60405180910390f35b3480156102d857600080fd5b506102ec6102e7366004613622565b610955565b60405190151581526020016102c3565b34801561030857600080fd5b506004545b6040519081526020016102c3565b34801561032757600080fd5b50610330610966565b6040516102c391906136a4565b34801561034957600080fd5b5061030d6103583660046138f8565b6109f8565b34801561036957600080fd5b5061030d610a0f565b61030d6103803660046138f8565b610a1f565b34801561039157600080fd5b5061030d6103a0366004613609565b610a2d565b3480156103b157600080fd5b506103c56103c0366004613609565b610a64565b6040516102c39493929190613a50565b3480156103e157600080fd5b5060035461030d565b3480156103f657600080fd5b5061030d610405366004613ab3565b610cf5565b34801561041657600080fd5b5061042a610425366004613609565b610d89565b6040516102c39190613b17565b34801561044357600080fd5b5061024a610452366004613609565b610d94565b34801561046357600080fd5b506102ec610472366004613b3f565b60008281526002602090815260408083206001600160a01b038516845260080190915290205460ff1692915050565b3480156104ad57600080fd5b5061030d6104bc3660046138f8565b6110b1565b3480156104cd57600080fd5b506040805180820190915260018152603160f81b6020820152610330565b3480156104f757600080fd5b5061030d610506366004613b6f565b6110bf565b34801561051757600080fd5b5061024a610526366004613609565b6110e8565b34801561053757600080fd5b5061030d610546366004613b9b565b61112c565b34801561055757600080fd5b5061030d610566366004613c41565b61117e565b34801561057757600080fd5b5061024a610586366004613ced565b61118c565b34801561059757600080fd5b5061030d6105a6366004613609565b6111cd565b3480156105b757600080fd5b5061030d6111d8565b3480156105cc57600080fd5b5061024a6111e3565b3480156105e157600080fd5b5061030d6105f0366004613609565b61124d565b34801561060157600080fd5b5061030d6106103660046138f8565b61127c565b34801561062157600080fd5b506006546001600160a01b03165b6040516001600160a01b0390911681526020016102c3565b34801561065357600080fd5b5061030d610662366004613d89565b6112b6565b34801561067357600080fd5b5060408051808201909152601a81527f737570706f72743d627261766f2671756f72756d3d627261766f0000000000006020820152610330565b3480156106b957600080fd5b5061024a6106c8366004613609565b6112db565b3480156106d957600080fd5b5061030d7f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b34801561070d57600080fd5b5061079b61071c366004613b3f565b60408051606081018252600080825260208201819052918101919091525060009182526002602090815260408084206001600160a01b0393909316845260089092018152918190208151606081018352905460ff8082161515835261010082041693820193909352620100009092046001600160601b03169082015290565b6040805182511515815260208084015160ff1690820152918101516001600160601b0316908201526060016102c3565b3480156107d757600080fd5b5061024a6107e6366004613609565b611549565b3480156107f757600080fd5b5061030d610806366004613e5a565b61158a565b34801561081757600080fd5b5061024a610826366004613609565b61159d565b34801561083757600080fd5b5061030d610846366004613609565b50600090565b34801561085857600080fd5b5061062f7f000000000000000000000000000000000000000000000000000000000000000081565b61024a61088e366004613609565b6115de565b60006108a76006546001600160a01b031690565b905090565b80600080808080808080806108c08a6111cd565b97506108cb8b610a2d565b96506108d68b61124d565b60008c815260026020526040812080546005820154600683015460078401546001600160a01b039093169e50949a5098509296509194506109168d610d89565b9050600281600781111561092c5761092c613b01565b149350600781600781111561094357610943613b01565b14925050509193959799509193959799565b60006109608261184c565b92915050565b60606000805461097590613e86565b80601f01602080910402602001604051908101604052809291908181526020018280546109a190613e86565b80156109ee5780601f106109c3576101008083540402835291602001916109ee565b820191906000526020600020905b8154815290600101906020018083116109d157829003601f168201915b5050505050905090565b6000610a0685858585611871565b95945050505050565b60006108a7610846600143613ed0565b6000610a0685858585611beb565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b60608060608060006002600087815260200190815260200160002090508060010181600201826003018360040183805480602002602001604051908101604052809291908181526020018280548015610ae657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610ac8575b5050505050935082805480602002602001604051908101604052809291908181526020018280548015610b3857602002820191906000526020600020905b815481526020019060010190808311610b24575b5050505050925081805480602002602001604051908101604052809291908181526020016000905b82821015610c0c578382906000526020600020018054610b7f90613e86565b80601f0160208091040260200160405190810160405280929190818152602001828054610bab90613e86565b8015610bf85780601f10610bcd57610100808354040283529160200191610bf8565b820191906000526020600020905b815481529060010190602001808311610bdb57829003601f168201915b505050505081526020019060010190610b60565b50505050915080805480602002602001604051908101604052809291908181526020016000905b82821015610cdf578382906000526020600020018054610c5290613e86565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7e90613e86565b8015610ccb5780601f10610ca057610100808354040283529160200191610ccb565b820191906000526020600020905b815481529060010190602001808311610cae57829003601f168201915b505050505081526020019060010190610c33565b5050505090509450945094509450509193509193565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff851660608201526000908190610d6190610d599060800160405160208183030381529060405280519060200120611cbe565b868686611d0c565b9050610d7e87828860405180602001604052806000815250611d2a565b979650505050505050565b600061096082611e35565b600081815260026020526040902080546001600160a01b0316336001600160a01b03161480610de25750610dc66111d8565b8154610de0906001600160a01b0316610806600143613ed0565b105b610e435760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72427261766f3a2070726f706f7365722061626f76652074686044820152661c995cda1bdb1960ca1b60648201526084015b60405180910390fd5b6110ac81600101805480602002602001604051908101604052809291908181526020018280548015610e9e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610e80575b505050505082600201805480602002602001604051908101604052809291908181526020018280548015610ef157602002820191906000526020600020905b815481526020019060010190808311610edd575b50505050506110a284600301805480602002602001604051908101604052809291908181526020016000905b82821015610fc9578382906000526020600020018054610f3c90613e86565b80601f0160208091040260200160405190810160405280929190818152602001828054610f6890613e86565b8015610fb55780601f10610f8a57610100808354040283529160200191610fb5565b820191906000526020600020905b815481529060010190602001808311610f9857829003601f168201915b505050505081526020019060010190610f1d565b50505060048701805460408051602080840282018101909252828152935060009084015b8282101561109957838290600052602060002001805461100c90613e86565b80601f016020809104026020016040519081016040528092919081815260200182805461103890613e86565b80156110855780601f1061105a57610100808354040283529160200191611085565b820191906000526020600020905b81548152906001019060200180831161106857829003601f168201915b505050505081526020019060010190610fed565b50505050611f19565b846009015461204b565b505050565b6000610a068585858561204b565b6000803390506110e084828560405180602001604052806000815250611d2a565b949350505050565b6110f0610893565b6001600160a01b0316336001600160a01b0316146111205760405162461bcd60e51b8152600401610e3a90613ee7565b61112981612059565b50565b60008033905061117486828787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d2a92505050565b9695505050505050565b6000610a068585858561209a565b611194610893565b6001600160a01b0316336001600160a01b0316146111c45760405162461bcd60e51b8152600401610e3a90613ee7565b61112981612102565b60006109608261216b565b60006108a760055490565b600660009054906101000a90046001600160a01b03166001600160a01b0316630e18b6816040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561123357600080fd5b505af1158015611247573d6000803e3d6000fd5b50505050565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610a55565b6000848484846040516020016112959493929190613f1e565b60408051601f19818403018152919052805160209091012095945050505050565b60006112c6338787878787612197565b61117486866112d58787611f19565b8561117e565b60008181526002602090815260409182902060018101805484518185028101850190955280855291936110ac9390929083018282801561134457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611326575b50505050508260020180548060200260200160405190810160405280929190818152602001828054801561139757602002820191906000526020600020905b815481526020019060010190808311611383575b505050505061153f84600301805480602002602001604051908101604052809291908181526020016000905b8282101561146f5783829060005260206000200180546113e290613e86565b80601f016020809104026020016040519081016040528092919081815260200182805461140e90613e86565b801561145b5780601f106114305761010080835404028352916020019161145b565b820191906000526020600020905b81548152906001019060200180831161143e57829003601f168201915b5050505050815260200190600101906113c3565b50505060048701805460408051602080840282018101909252828152935060009084015b828210156110995783829060005260206000200180546114b290613e86565b80601f01602080910402602001604051908101604052809291908181526020018280546114de90613e86565b801561152b5780601f106115005761010080835404028352916020019161152b565b820191906000526020600020905b81548152906001019060200180831161150e57829003601f168201915b505050505081526020019060010190611493565b84600901546109f8565b611551610893565b6001600160a01b0316336001600160a01b0316146115815760405162461bcd60e51b8152600401610e3a90613ee7565b61112981612254565b600061159683836122f5565b9392505050565b6115a5610893565b6001600160a01b0316336001600160a01b0316146115d55760405162461bcd60e51b8152600401610e3a90613ee7565b6111298161239b565b60008181526002602090815260409182902060018101805484518185028101850190955280855291936110ac9390929083018282801561164757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611629575b50505050508260020180548060200260200160405190810160405280929190818152602001828054801561169a57602002820191906000526020600020905b815481526020019060010190808311611686575b505050505061184284600301805480602002602001604051908101604052809291908181526020016000905b828210156117725783829060005260206000200180546116e590613e86565b80601f016020809104026020016040519081016040528092919081815260200182805461171190613e86565b801561175e5780601f106117335761010080835404028352916020019161175e565b820191906000526020600020905b81548152906001019060200180831161174157829003601f168201915b5050505050815260200190600101906116c6565b50505060048701805460408051602080840282018101909252828152935060009084015b828210156110995783829060005260206000200180546117b590613e86565b80601f01602080910402602001604051908101604052809291908181526020018280546117e190613e86565b801561182e5780601f106118035761010080835404028352916020019161182e565b820191906000526020600020905b81548152906001019060200180831161181157829003601f168201915b505050505081526020019060010190611796565b8460090154610a1f565b60006001600160e01b03198216636e665ced60e01b14806109605750610960826123dc565b6000806118808686868661127c565b9050600461188d82610d89565b600781111561189e5761189e613b01565b146118bb5760405162461bcd60e51b8152600401610e3a90613f69565b60065460408051630d48571f60e31b815290516000926001600160a01b031691636a42b8f89160048083019260209291908290030181865afa158015611905573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119299190613faa565b6119339042613fc3565b905061195561194182612411565b60008481526007602052604090209061247d565b60005b8751811015611ba65760065488516001600160a01b039091169063f2b06537908a908490811061198a5761198a613fdb565b60200260200101518984815181106119a4576119a4613fdb565b60200260200101518985815181106119be576119be613fdb565b6020026020010151866040516020016119da9493929190613ff1565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401611a0e91815260200190565b602060405180830381865afa158015611a2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a4f9190614037565b15611acd5760405162461bcd60e51b815260206004820152604260248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a206964656e746960448201527f63616c2070726f706f73616c20616374696f6e20616c72656164792071756575606482015261195960f21b608482015260a401610e3a565b60065488516001600160a01b0390911690633a66f901908a9084908110611af657611af6613fdb565b6020026020010151898481518110611b1057611b10613fdb565b6020026020010151898581518110611b2a57611b2a613fdb565b6020026020010151866040518563ffffffff1660e01b8152600401611b529493929190613ff1565b6020604051808303816000875af1158015611b71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b959190613faa565b50611b9f81614059565b9050611958565b5060408051838152602081018390527f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda289291015b60405180910390a15095945050505050565b600080611bfa8686868661127c565b90506000611c0782610d89565b90506004816007811115611c1d57611c1d613b01565b1480611c3a57506005816007811115611c3857611c38613b01565b145b611c565760405162461bcd60e51b8152600401610e3a90613f69565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a1611cb4828888888861249b565b5095945050505050565b6000610960611ccb6124af565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611d1d878787876125d6565b91509150611cb4816126c3565b6000848152600160208190526040822090611d4487610d89565b6007811115611d5557611d55613b01565b14611dae5760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b6064820152608401610e3a565b604080516020810190915281546001600160401b031690819052600090611dd690879061158a565b9050611de487878784612879565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda488878488604051611e239493929190614072565b60405180910390a29695505050505050565b600080611e4183612a1e565b90506004816007811115611e5757611e57613b01565b14611e625792915050565b6000611e6d846111cd565b905080600003611e7e575092915050565b600660009054906101000a90046001600160a01b03166001600160a01b031663c1a287e26040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ed1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef59190613faa565b611eff9082613fc3565b4210611f0f575060069392505050565b5060059392505050565b6060600082516001600160401b03811115611f3657611f366136b7565b604051908082528060200260200182016040528015611f6957816020015b6060815260200190600190039081611f545790505b50905060005b845181101561204357848181518110611f8a57611f8a613fdb565b602002602001015151600014611ffa57848181518110611fac57611fac613fdb565b602002602001015180519060200120848281518110611fcd57611fcd613fdb565b6020026020010151604051602001611fe692919061409a565b604051602081830303815290604052612015565b83818151811061200c5761200c613fdb565b60200260200101515b82828151811061202757612027613fdb565b60200260200101819052508061203c90614059565b9050611f6f565b509392505050565b6000610a0685858585612b85565b60035460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600355565b60006120f633868686516001600160401b038111156120bb576120bb6136b7565b6040519080825280602002602001820160405280156120ee57816020015b60608152602001906001900390816120d95790505b508787612197565b610a0685858585612ca0565b600654604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600680546001600160a01b0319166001600160a01b0392909216919091179055565b60008181526007602090815260408083208151928301909152546001600160401b031690819052610a55565b8051602082012060006121b587876121af8888611f19565b8561127c565b60008181526002602052604090206009810154919250906122495780546001600160a01b0319166001600160a01b038a1617815587516121fe90600183019060208b01906133bf565b50865161221490600283019060208a0190613420565b50855161222a906003830190602089019061345b565b50845161224090600483019060208801906134b4565b50600981018390555b505050505050505050565b600081116122b45760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b6064820152608401610e3a565b60045460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600455565b60405163782d6fe160e01b81526001600160a01b038381166004830152602482018390526000917f00000000000000000000000000000000000000000000000000000000000000009091169063782d6fe190604401602060405180830381865afa158015612367573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238b91906140cb565b6001600160601b03169392505050565b60055460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600555565b60006001600160e01b0319821663bf26d89760e01b148061096057506301ffc9a760e01b6001600160e01b0319831614610960565b60006001600160401b038211156124795760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b6064820152608401610e3a565b5090565b815467ffffffffffffffff19166001600160401b0391909116179055565b6124a88585858585612f5c565b5050505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561250857507f000000000000000000000000000000000000000000000000000000000000000046145b1561253257507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561260d57506000905060036126ba565b8460ff16601b1415801561262557508460ff16601c14155b1561263657506000905060046126ba565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561268a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166126b3576000600192509250506126ba565b9150600090505b94509492505050565b60008160048111156126d7576126d7613b01565b036126df5750565b60018160048111156126f3576126f3613b01565b036127405760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610e3a565b600281600481111561275457612754613b01565b036127a15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610e3a565b60038160048111156127b5576127b5613b01565b0361280d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610e3a565b600481600481111561282157612821613b01565b036111295760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610e3a565b60008481526002602090815260408083206001600160a01b038716845260088101909252909120805460ff16156129085760405162461bcd60e51b815260206004820152602d60248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a20766f746560448201526c08185b1c9958591e4818d85cdd609a1b6064820152608401610e3a565b805460ff85166101000261ffff19909116176001178155612928836130db565b81546001600160601b039190911662010000026dffffffffffffffffffffffff00001990911617815560ff8416612978578282600601600082825461296d9190613fc3565b90915550612a169050565b60001960ff851601612998578282600501600082825461296d9190613fc3565b60011960ff8516016129b8578282600701600082825461296d9190613fc3565b60405162461bcd60e51b815260206004820152602d60248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a20696e766160448201526c6c696420766f7465207479706560981b6064820152608401610e3a565b505050505050565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff80821615801594840194909452610100909104161515606082015290612a935750600792915050565b806060015115612aa65750600292915050565b80515143906001600160401b031610612ac25750600092915050565b43612acf82602001515190565b6001600160401b031610612ae65750600192915050565b612af38160200151613143565b15612b3757612b0183613172565b8015612b23575060008381526002602052604090206006810154600590910154115b612b2e576003611596565b60049392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c2069640000006044820152606401610e3a565b50919050565b600080612b948686868661319a565b90506000612ba1826111cd565b90508015611cb45760005b8751811015612c7d5760065488516001600160a01b039091169063591fcdfe908a9084908110612bde57612bde613fdb565b6020026020010151898481518110612bf857612bf8613fdb565b6020026020010151898581518110612c1257612c12613fdb565b6020026020010151866040518563ffffffff1660e01b8152600401612c3a9493929190613ff1565b600060405180830381600087803b158015612c5457600080fd5b505af1158015612c68573d6000803e3d6000fd5b5050505080612c7690614059565b9050612bac565b506000828152600760205260409020805467ffffffffffffffff19169055611cb4565b6000612caa6111d8565b612cb933610806600143613ed0565b1015612d395760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a401610e3a565b6000612d4e868686868051906020012061127c565b90508451865114612d715760405162461bcd60e51b8152600401610e3a906140f4565b8351865114612d925760405162461bcd60e51b8152600401610e3a906140f4565b6000865111612de35760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c00000000000000006044820152606401610e3a565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215612e635760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b6064820152608401610e3a565b6000612e76612e7160035490565b612411565b612e7f43612411565b612e899190614135565b90506000612e99612e7160045490565b612ea39083614135565b9050612eaf838361247d565b612ebc600184018261247d565b7f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b03811115612efa57612efa6136b7565b604051908082528060200260200182016040528015612f2d57816020015b6060815260200190600190039081612f185790505b508c88888e604051612f4799989796959493929190614160565b60405180910390a15091979650505050505050565b6000612f67866111cd565b905060008111612fd35760405162461bcd60e51b815260206004820152603160248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a2070726f706f73604482015270185b081b9bdd081e595d081c5d595d5959607a1b6064820152608401610e3a565b600654612fe9906001600160a01b0316346132a6565b60005b85518110156130d25760065486516001600160a01b0390911690630825f38f9088908490811061301e5761301e613fdb565b602002602001015187848151811061303857613038613fdb565b602002602001015187858151811061305257613052613fdb565b6020026020010151866040518563ffffffff1660e01b815260040161307a9493929190613ff1565b6000604051808303816000875af1158015613099573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526130c19190810190614203565b506130cb81614059565b9050612fec565b50505050505050565b60006001600160601b038211156124795760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203960448201526536206269747360d01b6064820152608401610e3a565b600061315882516001600160401b0316151590565b801561096057505051436001600160401b03909116111590565b6000818152600260205260408120600581015461319161084685610a2d565b11159392505050565b6000806131a98686868661127c565b905060006131b682610d89565b905060028160078111156131cc576131cc613b01565b141580156131ec575060068160078111156131e9576131e9613b01565b14155b801561320a5750600781600781111561320757613207613b01565b14155b6132565760405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a2070726f706f73616c206e6f74206163746976650000006044820152606401610e3a565b60008281526001602052604090819020600201805461ff001916610100179055517f789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c90611bd99084815260200190565b804710156132f65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610e3a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613343576040519150601f19603f3d011682016040523d82523d6000602084013e613348565b606091505b50509050806110ac5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610e3a565b828054828255906000526020600020908101928215613414579160200282015b8281111561341457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906133df565b5061247992915061350d565b828054828255906000526020600020908101928215613414579160200282015b82811115613414578251825591602001919060010190613440565b8280548282559060005260206000209081019282156134a8579160200282015b828111156134a85782518051613498918491602090910190613522565b509160200191906001019061347b565b50612479929150613595565b828054828255906000526020600020908101928215613501579160200282015b8281111561350157825180516134f1918491602090910190613522565b50916020019190600101906134d4565b506124799291506135b2565b5b80821115612479576000815560010161350e565b82805461352e90613e86565b90600052602060002090601f0160209004810192826135505760008555613414565b82601f1061356957805160ff1916838001178555613414565b828001600101855582156134145791820182811115613414578251825591602001919060010190613440565b808211156124795760006135a982826135cf565b50600101613595565b808211156124795760006135c682826135cf565b506001016135b2565b5080546135db90613e86565b6000825580601f106135eb575050565b601f016020900490600052602060002090810190611129919061350d565b60006020828403121561361b57600080fd5b5035919050565b60006020828403121561363457600080fd5b81356001600160e01b03198116811461159657600080fd5b60005b8381101561366757818101518382015260200161364f565b838111156112475750506000910152565b6000815180845261369081602086016020860161364c565b601f01601f19169290920160200192915050565b6020815260006115966020830184613678565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156136f5576136f56136b7565b604052919050565b60006001600160401b03821115613716576137166136b7565b5060051b60200190565b6001600160a01b038116811461112957600080fd5b600082601f83011261374657600080fd5b8135602061375b613756836136fd565b6136cd565b82815260059290921b8401810191818101908684111561377a57600080fd5b8286015b8481101561379e57803561379181613720565b835291830191830161377e565b509695505050505050565b600082601f8301126137ba57600080fd5b813560206137ca613756836136fd565b82815260059290921b840181019181810190868411156137e957600080fd5b8286015b8481101561379e57803583529183019183016137ed565b60006001600160401b0382111561381d5761381d6136b7565b50601f01601f191660200190565b600061383961375684613804565b905082815283838301111561384d57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261387557600080fd5b81356020613885613756836136fd565b82815260059290921b840181019181810190868411156138a457600080fd5b8286015b8481101561379e5780356001600160401b038111156138c75760008081fd5b8701603f810189136138d95760008081fd5b6138ea89868301356040840161382b565b8452509183019183016138a8565b6000806000806080858703121561390e57600080fd5b84356001600160401b038082111561392557600080fd5b61393188838901613735565b9550602087013591508082111561394757600080fd5b613953888389016137a9565b9450604087013591508082111561396957600080fd5b5061397687828801613864565b949793965093946060013593505050565b600081518084526020808501945080840160005b838110156139c05781516001600160a01b03168752958201959082019060010161399b565b509495945050505050565b600081518084526020808501945080840160005b838110156139c0578151875295820195908201906001016139df565b600081518084526020808501808196508360051b8101915082860160005b85811015613a43578284038952613a31848351613678565b98850198935090840190600101613a19565b5091979650505050505050565b608081526000613a636080830187613987565b8281036020840152613a7581876139cb565b90508281036040840152613a8981866139fb565b90508281036060840152610d7e81856139fb565b803560ff81168114613aae57600080fd5b919050565b600080600080600060a08688031215613acb57600080fd5b85359450613adb60208701613a9d565b9350613ae960408701613a9d565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b6020810160088310613b3957634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215613b5257600080fd5b823591506020830135613b6481613720565b809150509250929050565b60008060408385031215613b8257600080fd5b82359150613b9260208401613a9d565b90509250929050565b60008060008060608587031215613bb157600080fd5b84359350613bc160208601613a9d565b925060408501356001600160401b0380821115613bdd57600080fd5b818701915087601f830112613bf157600080fd5b813581811115613c0057600080fd5b886020828501011115613c1257600080fd5b95989497505060200194505050565b600082601f830112613c3257600080fd5b6115968383356020850161382b565b60008060008060808587031215613c5757600080fd5b84356001600160401b0380821115613c6e57600080fd5b613c7a88838901613735565b95506020870135915080821115613c9057600080fd5b613c9c888389016137a9565b94506040870135915080821115613cb257600080fd5b613cbe88838901613864565b93506060870135915080821115613cd457600080fd5b50613ce187828801613c21565b91505092959194509250565b600060208284031215613cff57600080fd5b813561159681613720565b600082601f830112613d1b57600080fd5b81356020613d2b613756836136fd565b82815260059290921b84018101918181019086841115613d4a57600080fd5b8286015b8481101561379e5780356001600160401b03811115613d6d5760008081fd5b613d7b8986838b0101613c21565b845250918301918301613d4e565b600080600080600060a08688031215613da157600080fd5b85356001600160401b0380821115613db857600080fd5b613dc489838a01613735565b96506020880135915080821115613dda57600080fd5b613de689838a016137a9565b95506040880135915080821115613dfc57600080fd5b613e0889838a01613d0a565b94506060880135915080821115613e1e57600080fd5b613e2a89838a01613864565b93506080880135915080821115613e4057600080fd5b50613e4d88828901613c21565b9150509295509295909350565b60008060408385031215613e6d57600080fd5b8235613e7881613720565b946020939093013593505050565b600181811c90821680613e9a57607f821691505b602082108103612b7f57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015613ee257613ee2613eba565b500390565b60208082526018908201527f476f7665726e6f723a206f6e6c79476f7665726e616e63650000000000000000604082015260600190565b608081526000613f316080830187613987565b8281036020840152613f4381876139cb565b90508281036040840152613f5781866139fb565b91505082606083015295945050505050565b60208082526021908201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756040820152601b60fa1b606082015260800190565b600060208284031215613fbc57600080fd5b5051919050565b60008219821115613fd657613fd6613eba565b500190565b634e487b7160e01b600052603260045260246000fd5b60018060a01b038516815283602082015260a06040820152600060a082015260c06060820152600061402660c0830185613678565b905082608083015295945050505050565b60006020828403121561404957600080fd5b8151801515811461159657600080fd5b60006001820161406b5761406b613eba565b5060010190565b84815260ff841660208201528260408201526080606082015260006111746080830184613678565b6001600160e01b03198316815281516000906140bd81600485016020870161364c565b919091016004019392505050565b6000602082840312156140dd57600080fd5b81516001600160601b038116811461159657600080fd5b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b0380831681851680830382111561415757614157613eba565b01949350505050565b8981526001600160a01b03891660208201526101206040820181905260009061418b8382018b613987565b9050828103606084015261419f818a6139cb565b905082810360808401526141b381896139fb565b905082810360a08401526141c781886139fb565b6001600160401b0387811660c0860152861660e085015283810361010085015290506141f38185613678565b9c9b505050505050505050505050565b60006020828403121561421557600080fd5b81516001600160401b0381111561422b57600080fd5b8201601f8101841361423c57600080fd5b805161424a61375682613804565b81815285602083850101111561425f57600080fd5b610a0682602083016020860161364c56fea264697066735822122096549f8577f50ab1bd6da06ff00448b06fc4ca715383ff9db2e913fe4635bdad64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name_", "type": "string", "internalType": "string"}, {"name": "token_", "type": "address", "internalType": "contract ERC20VotesComp"}, {"name": "votingDelay_", "type": "uint256", "internalType": "uint256"}, {"name": "votingPeriod_", "type": "uint256", "internalType": "uint256"}, {"name": "proposalThreshold_", "type": "uint256", "internalType": "uint256"}, {"name": "timelock_", "type": "address", "internalType": "contract ICompoundTimelock"}]}, {"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalQueued", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "eta", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalThresholdSet", "inputs": [{"name": "oldProposalThreshold", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newProposalThreshold", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TimelockChange", "inputs": [{"name": "oldTimelock", "type": "address", "internalType": "address", "indexed": false}, {"name": "newTimelock", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VotingDelaySet", "inputs": [{"name": "oldVotingDelay", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newVotingDelay", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VotingPeriodSet", "inputs": [{"name": "oldVotingPeriod", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newVotingPeriod", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "__acceptAdmin", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "cancel", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "cancel", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "getActions", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "signatures", "type": "string[]", "internalType": "string[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}]}, {"type": "function", "name": "getReceipt", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "voter", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "tuple", "components": [{"name": "hasVoted", "type": "bool", "internalType": "bool"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "votes", "type": "uint96", "internalType": "uint96"}], "internalType": "struct IGovernorCompatibilityBravo.Receipt"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalEta", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposals", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "proposer", "type": "address", "internalType": "address"}, {"name": "eta", "type": "uint256", "internalType": "uint256"}, {"name": "startBlock", "type": "uint256", "internalType": "uint256"}, {"name": "endBlock", "type": "uint256", "internalType": "uint256"}, {"name": "forVotes", "type": "uint256", "internalType": "uint256"}, {"name": "againstVotes", "type": "uint256", "internalType": "uint256"}, {"name": "abstainVotes", "type": "uint256", "internalType": "uint256"}, {"name": "canceled", "type": "bool", "internalType": "bool"}, {"name": "executed", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "signatures", "type": "string[]", "internalType": "string[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "quorum", "stateMutability": "pure", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumVotes", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "setProposalThreshold", "stateMutability": "nonpayable", "inputs": [{"name": "newProposalThreshold", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setVotingDelay", "stateMutability": "nonpayable", "inputs": [{"name": "newVotingDelay", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setVotingPeriod", "stateMutability": "nonpayable", "inputs": [{"name": "newVotingPeriod", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "timelock", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract ERC20VotesComp"}]}, {"type": "function", "name": "updateTimelock", "stateMutability": "nonpayable", "inputs": [{"name": "newTimelock", "type": "address", "internalType": "contract ICompoundTimelock"}], "outputs": []}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "cancel(address[],uint256[],bytes[],bytes32)": {"notice": "WARNING: this is for mock purposes only. Ability to the _cancel function should be restricted for live deployments."}}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "__acceptAdmin()": {"details": "Accept admin right over the timelock."}, "cancel(uint256)": {"details": "Cancels a proposal only if sender is the proposer, or proposer delegates dropped below proposal threshold."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(uint256)": {"details": "See {IGovernorCompatibilityBravo-execute}."}, "getActions(uint256)": {"details": "See {IGovernorCompatibilityBravo-getActions}."}, "getReceipt(uint256,address)": {"details": "See {IGovernorCompatibilityBravo-getReceipt}."}, "hasVoted(uint256,address)": {"details": "See {IGovernor-hasVoted}."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposals(uint256)": {"details": "See {IGovernorCompatibilityBravo-proposals}."}, "propose(address[],uint256[],string[],bytes[],string)": {"details": "See {IGovernorCompatibilityBravo-propose}."}, "queue(uint256)": {"details": "See {IGovernorCompatibilityBravo-queue}."}, "quorumVotes()": {"details": "See {IGovernorCompatibilityBravo-quorumVotes}."}, "setProposalThreshold(uint256)": {"details": "Update the proposal threshold. This operation can only be performed through a governance proposal. Emits a {ProposalThresholdSet} event."}, "setVotingDelay(uint256)": {"details": "Update the voting delay. This operation can only be performed through a governance proposal. Emits a {VotingDelaySet} event."}, "setVotingPeriod(uint256)": {"details": "Update the voting period. This operation can only be performed through a governance proposal. Emits a {VotingPeriodSet} event."}, "timelock()": {"details": "Public accessor to check the address of the timelock"}, "updateTimelock(address)": {"details": "Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates must be proposed, scheduled and executed using the {Governor} workflow. For security reason, the timelock must be handed over to another admin before setting up a new one. The two operations (hand over the timelock) and do the update can be batched in a single proposal. Note that if the timelock admin has been handed over in a previous operation, we refuse updates made through the timelock if admin of the timelock has already been accepted and the operation is executed outside the scope of governance."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "See {IGovernor-votingDelay}."}, "votingPeriod()": {"details": "See {IGovernor-votingPeriod}."}}, "version": 1}}, "GovernorMock": {"contractName": "GovernorMock", "sourceId": "mocks/GovernorMock.sol", "deploymentBytecode": {"bytecode": "0x6101606040523480156200001257600080fd5b5060405162002bea38038062002bea833981016040819052620000359162000419565b80848484600089806200005c6040805180820190915260018152603160f81b602082015290565b815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c052610120525050825162000102925060009150602084019062000340565b50620001109050836200014d565b6200011b826200018e565b620001268162000235565b5050506001600160a01b031661014052620001418162000276565b50505050505062000561565b60025460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600255565b60008111620001f45760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b60648201526084015b60405180910390fd5b60035460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600355565b60045460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600455565b6064811115620002fb5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a401620001eb565b600580549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b8280546200034e9062000525565b90600052602060002090601f016020900481019282620003725760008555620003bd565b82601f106200038d57805160ff1916838001178555620003bd565b82800160010185558215620003bd579182015b82811115620003bd578251825591602001919060010190620003a0565b50620003cb929150620003cf565b5090565b5b80821115620003cb5760008155600101620003d0565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200041457600080fd5b919050565b600080600080600060a086880312156200043257600080fd5b85516001600160401b03808211156200044a57600080fd5b818801915088601f8301126200045f57600080fd5b815181811115620004745762000474620003e6565b604051601f8201601f19908116603f011681019083821181831017156200049f576200049f620003e6565b81604052828152602093508b84848701011115620004bc57600080fd5b600091505b82821015620004e05784820184015181830185015290830190620004c1565b82821115620004f25760008484830101525b985062000504915050888201620003fc565b604089015160608a01516080909a0151989b919a5098979650945050505050565b600181811c908216806200053a57607f821691505b6020821081036200055b57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161014051612620620005ca600039600081816105f201528181610c200152611282015260006113f3015260006114420152600061141d01526000611376015260006113a0015260006113ca01526126206000f3fe6080604052600436106101c65760003560e01c806370b0f660116100f7578063c59057e411610095578063eb9019d411610064578063eb9019d414610580578063ece40cc1146105a0578063f8ce560a146105c0578063fc0c546a146105e057600080fd5b8063c59057e4146104c6578063dd4e2ba5146104e6578063deaaa7cc1461052c578063ea0217cf1461056057600080fd5b806397c3d334116100d157806397c3d33414610468578063a7713a701461047c578063b58131b014610491578063c01f9e37146104a657600080fd5b806370b0f660146104085780637b3c71d3146104285780637d5e81e21461044857600080fd5b80633bccf4fd11610164578063452115d61161013e578063452115d614610349578063544ffc9c1461036957806354fd4d50146103be57806356781388146103e857600080fd5b80633bccf4fd146102b25780633e4f49e6146102d257806343859632146102ff57600080fd5b806306fdde03116101a057806306fdde03146102485780632656227d1461026a5780632d63f6931461027d5780633932abb11461029d57600080fd5b806301ffc9a7146101d457806302a251a31461020957806306f3f9e61461022857600080fd5b366101cf57005b005b600080fd5b3480156101e057600080fd5b506101f46101ef366004611bfd565b61062c565b60405190151581526020015b60405180910390f35b34801561021557600080fd5b506003545b604051908152602001610200565b34801561023457600080fd5b506101cd610243366004611c27565b610663565b34801561025457600080fd5b5061025d610697565b6040516102009190611c9c565b61021a610278366004611eec565b610729565b34801561028957600080fd5b5061021a610298366004611c27565b610836565b3480156102a957600080fd5b5060025461021a565b3480156102be57600080fd5b5061021a6102cd366004611f8c565b61086d565b3480156102de57600080fd5b506102f26102ed366004611c27565b610901565b6040516102009190611ff0565b34801561030b57600080fd5b506101f461031a366004612018565b60008281526006602090815260408083206001600160a01b038516845260030190915290205460ff1692915050565b34801561035557600080fd5b5061021a610364366004611eec565b610a66565b34801561037557600080fd5b506103a3610384366004611c27565b6000908152600660205260409020805460018201546002909201549092565b60408051938452602084019290925290820152606001610200565b3480156103ca57600080fd5b506040805180820190915260018152603160f81b602082015261025d565b3480156103f457600080fd5b5061021a610403366004612044565b610a7d565b34801561041457600080fd5b506101cd610423366004611c27565b610aa6565b34801561043457600080fd5b5061021a610443366004612067565b610ace565b34801561045457600080fd5b5061021a6104633660046120ed565b610b20565b34801561047457600080fd5b50606461021a565b34801561048857600080fd5b5060055461021a565b34801561049d57600080fd5b5061021a610b2e565b3480156104b257600080fd5b5061021a6104c1366004611c27565b610b3e565b3480156104d257600080fd5b5061021a6104e1366004611eec565b610b6d565b3480156104f257600080fd5b506040805180820190915260208082527f737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e9082015261025d565b34801561053857600080fd5b5061021a7f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b34801561056c57600080fd5b506101cd61057b366004611c27565b610ba7565b34801561058c57600080fd5b5061021a61059b3660046121ad565b610bcf565b3480156105ac57600080fd5b506101cd6105bb366004611c27565b610bdb565b3480156105cc57600080fd5b5061021a6105db366004611c27565b610c03565b3480156105ec57600080fd5b506106147f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610200565b60006001600160e01b0319821663bf26d89760e01b148061065d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b33301461068b5760405162461bcd60e51b8152600401610682906121d7565b60405180910390fd5b61069481610ca7565b50565b6060600080546106a69061220e565b80601f01602080910402602001604051908101604052809291908181526020018280546106d29061220e565b801561071f5780601f106106f45761010080835404028352916020019161071f565b820191906000526020600020905b81548152906001019060200180831161070257829003601f168201915b5050505050905090565b60008061073886868686610b6d565b9050600061074582610901565b9050600481600781111561075b5761075b611fda565b14806107785750600581600781111561077657610776611fda565b145b6107ce5760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756044820152601b60fa1b6064820152608401610682565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a161082c8288888888610d6f565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff8516606082015260009081906108d9906108d19060800160405160208183030381529060405280519060200120610e6e565b868686610ebc565b90506108f687828860405180602001604052806000815250610eda565b979650505050505050565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff808216158015948401949094526101009091041615156060820152906109765750600792915050565b8060600151156109895750600292915050565b80515143906001600160401b0316106109a55750600092915050565b436109b282602001515190565b6001600160401b0316106109c95750600192915050565b6109d68160200151610fe5565b15610a18576109e483611014565b8015610a03575060008381526006602052604090208054600190910154115b610a0e576003610a11565b60045b9392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c2069640000006044820152606401610682565b50919050565b6000610a748585858561104b565b95945050505050565b600080339050610a9e84828560405180602001604052806000815250610eda565b949350505050565b333014610ac55760405162461bcd60e51b8152600401610682906121d7565b61069481611169565b600080339050610b1686828787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610eda92505050565b9695505050505050565b6000610a74858585856111aa565b6000610b3960045490565b905090565b60008181526001602081815260408084208151928301909152909101546001600160401b03169081905261085e565b600084848484604051602001610b86949392919061230b565b60408051601f19818403018152919052805160209091012095945050505050565b333014610bc65760405162461bcd60e51b8152600401610682906121d7565b610694816111b8565b6000610a118383611259565b333014610bfa5760405162461bcd60e51b8152600401610682906121d7565b610694816112ef565b60006064600554604051632394e7a360e21b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690638e539e8c90602401602060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190612356565b610c9d9190612385565b61065d91906123a4565b6064811115610d2a5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a401610682565b600580549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b60006040518060600160405280602781526020016125c460279139905060005b8551811015610e6557600080878381518110610dad57610dad6123c6565b60200260200101516001600160a01b0316878481518110610dd057610dd06123c6565b6020026020010151878581518110610dea57610dea6123c6565b6020026020010151604051610dff91906123dc565b60006040518083038185875af1925050503d8060008114610e3c576040519150601f19603f3d011682016040523d82523d6000602084013e610e41565b606091505b5091509150610e51828286611330565b50505080610e5e906123f8565b9050610d8f565b50505050505050565b600061065d610e7b611369565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000610ecd87878787611490565b9150915061082c8161157d565b6000848152600160208190526040822090610ef487610901565b6007811115610f0557610f05611fda565b14610f5e5760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b6064820152608401610682565b604080516020810190915281546001600160401b031690819052600090610f86908790610bcf565b9050610f9487878784611733565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda488878488604051610fd39493929190612411565b60405180910390a29695505050505050565b6000610ffa82516001600160401b0316151590565b801561065d57505051436001600160401b03909116111590565b6000818152600660205260408120600281015460018201546110369190612439565b6110426105db85610836565b11159392505050565b60008061105a86868686610b6d565b9050600061106782610901565b9050600281600781111561107d5761107d611fda565b1415801561109d5750600681600781111561109a5761109a611fda565b14155b80156110bb575060078160078111156110b8576110b8611fda565b14155b6111075760405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a2070726f706f73616c206e6f74206163746976650000006044820152606401610682565b60008281526001602052604090819020600201805461ff001916610100179055517f789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c906111579084815260200190565b60405180910390a15095945050505050565b60025460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600255565b6000610a74858585856118b4565b600081116112185760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b6064820152608401610682565b60035460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600355565b604051630748d63560e31b81526001600160a01b038381166004830152602482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690633a46b1a890604401602060405180830381865afa1580156112cb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a119190612356565b60045460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600455565b6060831561133f575081610a11565b82511561134f5782518084602001fd5b8160405162461bcd60e51b81526004016106829190611c9c565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156113c257507f000000000000000000000000000000000000000000000000000000000000000046145b156113ec57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156114c75750600090506003611574565b8460ff16601b141580156114df57508460ff16601c14155b156114f05750600090506004611574565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611544573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661156d57600060019250925050611574565b9150600090505b94509492505050565b600081600481111561159157611591611fda565b036115995750565b60018160048111156115ad576115ad611fda565b036115fa5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610682565b600281600481111561160e5761160e611fda565b0361165b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610682565b600381600481111561166f5761166f611fda565b036116c75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610682565b60048160048111156116db576116db611fda565b036106945760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610682565b60008481526006602090815260408083206001600160a01b0387168452600381019092529091205460ff16156117bb5760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72566f74696e6753696d706c653a20766f746520616c726561604482015266191e4818d85cdd60ca1b6064820152608401610682565b6001600160a01b03841660009081526003820160205260409020805460ff1916600117905560ff831661180757818160000160008282546117fc9190612439565b909155506118ad9050565b60001960ff84160161182757818160010160008282546117fc9190612439565b60011960ff84160161184757818160020160008282546117fc9190612439565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b6064820152608401610682565b5050505050565b60006118be610b2e565b6118cd3361059b600143612451565b101561194d5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a401610682565b60006119628686868680519060200120610b6d565b905084518651146119855760405162461bcd60e51b815260040161068290612468565b83518651146119a65760405162461bcd60e51b815260040161068290612468565b60008651116119f75760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c00000000000000006044820152606401610682565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215611a775760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b6064820152608401610682565b6000611a8a611a8560025490565b611b91565b611a9343611b91565b611a9d91906124a9565b90506000611aad611a8560035490565b611ab790836124a9565b835467ffffffffffffffff19166001600160401b038416178455905060018301805467ffffffffffffffff19166001600160401b0383161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b03811115611b2f57611b2f611caf565b604051908082528060200260200182016040528015611b6257816020015b6060815260200190600190039081611b4d5790505b508c88888e604051611b7c999897969594939291906124d4565b60405180910390a15091979650505050505050565b60006001600160401b03821115611bf95760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b6064820152608401610682565b5090565b600060208284031215611c0f57600080fd5b81356001600160e01b031981168114610a1157600080fd5b600060208284031215611c3957600080fd5b5035919050565b60005b83811015611c5b578181015183820152602001611c43565b83811115611c6a576000848401525b50505050565b60008151808452611c88816020860160208601611c40565b601f01601f19169290920160200192915050565b602081526000610a116020830184611c70565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611ced57611ced611caf565b604052919050565b60006001600160401b03821115611d0e57611d0e611caf565b5060051b60200190565b80356001600160a01b0381168114611d2f57600080fd5b919050565b600082601f830112611d4557600080fd5b81356020611d5a611d5583611cf5565b611cc5565b82815260059290921b84018101918181019086841115611d7957600080fd5b8286015b84811015611d9b57611d8e81611d18565b8352918301918301611d7d565b509695505050505050565b600082601f830112611db757600080fd5b81356020611dc7611d5583611cf5565b82815260059290921b84018101918181019086841115611de657600080fd5b8286015b84811015611d9b5780358352918301918301611dea565b60006001600160401b03831115611e1a57611e1a611caf565b611e2d601f8401601f1916602001611cc5565b9050828152838383011115611e4157600080fd5b828260208301376000602084830101529392505050565b600082601f830112611e6957600080fd5b81356020611e79611d5583611cf5565b82815260059290921b84018101918181019086841115611e9857600080fd5b8286015b84811015611d9b5780356001600160401b03811115611ebb5760008081fd5b8701603f81018913611ecd5760008081fd5b611ede898683013560408401611e01565b845250918301918301611e9c565b60008060008060808587031215611f0257600080fd5b84356001600160401b0380821115611f1957600080fd5b611f2588838901611d34565b95506020870135915080821115611f3b57600080fd5b611f4788838901611da6565b94506040870135915080821115611f5d57600080fd5b50611f6a87828801611e58565b949793965093946060013593505050565b803560ff81168114611d2f57600080fd5b600080600080600060a08688031215611fa457600080fd5b85359450611fb460208701611f7b565b9350611fc260408701611f7b565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b602081016008831061201257634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561202b57600080fd5b8235915061203b60208401611d18565b90509250929050565b6000806040838503121561205757600080fd5b8235915061203b60208401611f7b565b6000806000806060858703121561207d57600080fd5b8435935061208d60208601611f7b565b925060408501356001600160401b03808211156120a957600080fd5b818701915087601f8301126120bd57600080fd5b8135818111156120cc57600080fd5b8860208285010111156120de57600080fd5b95989497505060200194505050565b6000806000806080858703121561210357600080fd5b84356001600160401b038082111561211a57600080fd5b61212688838901611d34565b9550602087013591508082111561213c57600080fd5b61214888838901611da6565b9450604087013591508082111561215e57600080fd5b61216a88838901611e58565b9350606087013591508082111561218057600080fd5b508501601f8101871361219257600080fd5b6121a187823560208401611e01565b91505092959194509250565b600080604083850312156121c057600080fd5b6121c983611d18565b946020939093013593505050565b60208082526018908201527f476f7665726e6f723a206f6e6c79476f7665726e616e63650000000000000000604082015260600190565b600181811c9082168061222257607f821691505b602082108103610a6057634e487b7160e01b600052602260045260246000fd5b600081518084526020808501945080840160005b8381101561227b5781516001600160a01b031687529582019590820190600101612256565b509495945050505050565b600081518084526020808501945080840160005b8381101561227b5781518752958201959082019060010161229a565b600081518084526020808501808196508360051b8101915082860160005b858110156122fe5782840389526122ec848351611c70565b988501989350908401906001016122d4565b5091979650505050505050565b60808152600061231e6080830187612242565b82810360208401526123308187612286565b9050828103604084015261234481866122b6565b91505082606083015295945050505050565b60006020828403121561236857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561239f5761239f61236f565b500290565b6000826123c157634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600082516123ee818460208701611c40565b9190910192915050565b60006001820161240a5761240a61236f565b5060010190565b84815260ff84166020820152826040820152608060608201526000610b166080830184611c70565b6000821982111561244c5761244c61236f565b500190565b6000828210156124635761246361236f565b500390565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b038083168185168083038211156124cb576124cb61236f565b01949350505050565b60006101208b8352602060018060a01b038c16818501528160408501526124fd8285018c612242565b91508382036060850152612511828b612286565b915083820360808501528189518084528284019150828160051b850101838c0160005b8381101561256257601f19878403018552612550838351611c70565b94860194925090850190600101612534565b505086810360a0880152612576818c6122b6565b94505050505061259160c08401876001600160401b03169052565b6001600160401b03851660e08401528281036101008401526125b38185611c70565b9c9b50505050505050505050505056fe476f7665726e6f723a2063616c6c20726576657274656420776974686f7574206d657373616765a26469706673582212201ef687795314821ae8452bc1b0862cc31b38394d549b5e2b4a4ca1c0bdf1fa2964736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106101c65760003560e01c806370b0f660116100f7578063c59057e411610095578063eb9019d411610064578063eb9019d414610580578063ece40cc1146105a0578063f8ce560a146105c0578063fc0c546a146105e057600080fd5b8063c59057e4146104c6578063dd4e2ba5146104e6578063deaaa7cc1461052c578063ea0217cf1461056057600080fd5b806397c3d334116100d157806397c3d33414610468578063a7713a701461047c578063b58131b014610491578063c01f9e37146104a657600080fd5b806370b0f660146104085780637b3c71d3146104285780637d5e81e21461044857600080fd5b80633bccf4fd11610164578063452115d61161013e578063452115d614610349578063544ffc9c1461036957806354fd4d50146103be57806356781388146103e857600080fd5b80633bccf4fd146102b25780633e4f49e6146102d257806343859632146102ff57600080fd5b806306fdde03116101a057806306fdde03146102485780632656227d1461026a5780632d63f6931461027d5780633932abb11461029d57600080fd5b806301ffc9a7146101d457806302a251a31461020957806306f3f9e61461022857600080fd5b366101cf57005b005b600080fd5b3480156101e057600080fd5b506101f46101ef366004611bfd565b61062c565b60405190151581526020015b60405180910390f35b34801561021557600080fd5b506003545b604051908152602001610200565b34801561023457600080fd5b506101cd610243366004611c27565b610663565b34801561025457600080fd5b5061025d610697565b6040516102009190611c9c565b61021a610278366004611eec565b610729565b34801561028957600080fd5b5061021a610298366004611c27565b610836565b3480156102a957600080fd5b5060025461021a565b3480156102be57600080fd5b5061021a6102cd366004611f8c565b61086d565b3480156102de57600080fd5b506102f26102ed366004611c27565b610901565b6040516102009190611ff0565b34801561030b57600080fd5b506101f461031a366004612018565b60008281526006602090815260408083206001600160a01b038516845260030190915290205460ff1692915050565b34801561035557600080fd5b5061021a610364366004611eec565b610a66565b34801561037557600080fd5b506103a3610384366004611c27565b6000908152600660205260409020805460018201546002909201549092565b60408051938452602084019290925290820152606001610200565b3480156103ca57600080fd5b506040805180820190915260018152603160f81b602082015261025d565b3480156103f457600080fd5b5061021a610403366004612044565b610a7d565b34801561041457600080fd5b506101cd610423366004611c27565b610aa6565b34801561043457600080fd5b5061021a610443366004612067565b610ace565b34801561045457600080fd5b5061021a6104633660046120ed565b610b20565b34801561047457600080fd5b50606461021a565b34801561048857600080fd5b5060055461021a565b34801561049d57600080fd5b5061021a610b2e565b3480156104b257600080fd5b5061021a6104c1366004611c27565b610b3e565b3480156104d257600080fd5b5061021a6104e1366004611eec565b610b6d565b3480156104f257600080fd5b506040805180820190915260208082527f737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e9082015261025d565b34801561053857600080fd5b5061021a7f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b34801561056c57600080fd5b506101cd61057b366004611c27565b610ba7565b34801561058c57600080fd5b5061021a61059b3660046121ad565b610bcf565b3480156105ac57600080fd5b506101cd6105bb366004611c27565b610bdb565b3480156105cc57600080fd5b5061021a6105db366004611c27565b610c03565b3480156105ec57600080fd5b506106147f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610200565b60006001600160e01b0319821663bf26d89760e01b148061065d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b33301461068b5760405162461bcd60e51b8152600401610682906121d7565b60405180910390fd5b61069481610ca7565b50565b6060600080546106a69061220e565b80601f01602080910402602001604051908101604052809291908181526020018280546106d29061220e565b801561071f5780601f106106f45761010080835404028352916020019161071f565b820191906000526020600020905b81548152906001019060200180831161070257829003601f168201915b5050505050905090565b60008061073886868686610b6d565b9050600061074582610901565b9050600481600781111561075b5761075b611fda565b14806107785750600581600781111561077657610776611fda565b145b6107ce5760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756044820152601b60fa1b6064820152608401610682565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a161082c8288888888610d6f565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff8516606082015260009081906108d9906108d19060800160405160208183030381529060405280519060200120610e6e565b868686610ebc565b90506108f687828860405180602001604052806000815250610eda565b979650505050505050565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff808216158015948401949094526101009091041615156060820152906109765750600792915050565b8060600151156109895750600292915050565b80515143906001600160401b0316106109a55750600092915050565b436109b282602001515190565b6001600160401b0316106109c95750600192915050565b6109d68160200151610fe5565b15610a18576109e483611014565b8015610a03575060008381526006602052604090208054600190910154115b610a0e576003610a11565b60045b9392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c2069640000006044820152606401610682565b50919050565b6000610a748585858561104b565b95945050505050565b600080339050610a9e84828560405180602001604052806000815250610eda565b949350505050565b333014610ac55760405162461bcd60e51b8152600401610682906121d7565b61069481611169565b600080339050610b1686828787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610eda92505050565b9695505050505050565b6000610a74858585856111aa565b6000610b3960045490565b905090565b60008181526001602081815260408084208151928301909152909101546001600160401b03169081905261085e565b600084848484604051602001610b86949392919061230b565b60408051601f19818403018152919052805160209091012095945050505050565b333014610bc65760405162461bcd60e51b8152600401610682906121d7565b610694816111b8565b6000610a118383611259565b333014610bfa5760405162461bcd60e51b8152600401610682906121d7565b610694816112ef565b60006064600554604051632394e7a360e21b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690638e539e8c90602401602060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190612356565b610c9d9190612385565b61065d91906123a4565b6064811115610d2a5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a401610682565b600580549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b60006040518060600160405280602781526020016125c460279139905060005b8551811015610e6557600080878381518110610dad57610dad6123c6565b60200260200101516001600160a01b0316878481518110610dd057610dd06123c6565b6020026020010151878581518110610dea57610dea6123c6565b6020026020010151604051610dff91906123dc565b60006040518083038185875af1925050503d8060008114610e3c576040519150601f19603f3d011682016040523d82523d6000602084013e610e41565b606091505b5091509150610e51828286611330565b50505080610e5e906123f8565b9050610d8f565b50505050505050565b600061065d610e7b611369565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000610ecd87878787611490565b9150915061082c8161157d565b6000848152600160208190526040822090610ef487610901565b6007811115610f0557610f05611fda565b14610f5e5760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b6064820152608401610682565b604080516020810190915281546001600160401b031690819052600090610f86908790610bcf565b9050610f9487878784611733565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda488878488604051610fd39493929190612411565b60405180910390a29695505050505050565b6000610ffa82516001600160401b0316151590565b801561065d57505051436001600160401b03909116111590565b6000818152600660205260408120600281015460018201546110369190612439565b6110426105db85610836565b11159392505050565b60008061105a86868686610b6d565b9050600061106782610901565b9050600281600781111561107d5761107d611fda565b1415801561109d5750600681600781111561109a5761109a611fda565b14155b80156110bb575060078160078111156110b8576110b8611fda565b14155b6111075760405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a2070726f706f73616c206e6f74206163746976650000006044820152606401610682565b60008281526001602052604090819020600201805461ff001916610100179055517f789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c906111579084815260200190565b60405180910390a15095945050505050565b60025460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600255565b6000610a74858585856118b4565b600081116112185760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b6064820152608401610682565b60035460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600355565b604051630748d63560e31b81526001600160a01b038381166004830152602482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690633a46b1a890604401602060405180830381865afa1580156112cb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a119190612356565b60045460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600455565b6060831561133f575081610a11565b82511561134f5782518084602001fd5b8160405162461bcd60e51b81526004016106829190611c9c565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156113c257507f000000000000000000000000000000000000000000000000000000000000000046145b156113ec57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156114c75750600090506003611574565b8460ff16601b141580156114df57508460ff16601c14155b156114f05750600090506004611574565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611544573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661156d57600060019250925050611574565b9150600090505b94509492505050565b600081600481111561159157611591611fda565b036115995750565b60018160048111156115ad576115ad611fda565b036115fa5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610682565b600281600481111561160e5761160e611fda565b0361165b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610682565b600381600481111561166f5761166f611fda565b036116c75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610682565b60048160048111156116db576116db611fda565b036106945760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610682565b60008481526006602090815260408083206001600160a01b0387168452600381019092529091205460ff16156117bb5760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72566f74696e6753696d706c653a20766f746520616c726561604482015266191e4818d85cdd60ca1b6064820152608401610682565b6001600160a01b03841660009081526003820160205260409020805460ff1916600117905560ff831661180757818160000160008282546117fc9190612439565b909155506118ad9050565b60001960ff84160161182757818160010160008282546117fc9190612439565b60011960ff84160161184757818160020160008282546117fc9190612439565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b6064820152608401610682565b5050505050565b60006118be610b2e565b6118cd3361059b600143612451565b101561194d5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a401610682565b60006119628686868680519060200120610b6d565b905084518651146119855760405162461bcd60e51b815260040161068290612468565b83518651146119a65760405162461bcd60e51b815260040161068290612468565b60008651116119f75760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c00000000000000006044820152606401610682565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215611a775760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b6064820152608401610682565b6000611a8a611a8560025490565b611b91565b611a9343611b91565b611a9d91906124a9565b90506000611aad611a8560035490565b611ab790836124a9565b835467ffffffffffffffff19166001600160401b038416178455905060018301805467ffffffffffffffff19166001600160401b0383161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b03811115611b2f57611b2f611caf565b604051908082528060200260200182016040528015611b6257816020015b6060815260200190600190039081611b4d5790505b508c88888e604051611b7c999897969594939291906124d4565b60405180910390a15091979650505050505050565b60006001600160401b03821115611bf95760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b6064820152608401610682565b5090565b600060208284031215611c0f57600080fd5b81356001600160e01b031981168114610a1157600080fd5b600060208284031215611c3957600080fd5b5035919050565b60005b83811015611c5b578181015183820152602001611c43565b83811115611c6a576000848401525b50505050565b60008151808452611c88816020860160208601611c40565b601f01601f19169290920160200192915050565b602081526000610a116020830184611c70565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611ced57611ced611caf565b604052919050565b60006001600160401b03821115611d0e57611d0e611caf565b5060051b60200190565b80356001600160a01b0381168114611d2f57600080fd5b919050565b600082601f830112611d4557600080fd5b81356020611d5a611d5583611cf5565b611cc5565b82815260059290921b84018101918181019086841115611d7957600080fd5b8286015b84811015611d9b57611d8e81611d18565b8352918301918301611d7d565b509695505050505050565b600082601f830112611db757600080fd5b81356020611dc7611d5583611cf5565b82815260059290921b84018101918181019086841115611de657600080fd5b8286015b84811015611d9b5780358352918301918301611dea565b60006001600160401b03831115611e1a57611e1a611caf565b611e2d601f8401601f1916602001611cc5565b9050828152838383011115611e4157600080fd5b828260208301376000602084830101529392505050565b600082601f830112611e6957600080fd5b81356020611e79611d5583611cf5565b82815260059290921b84018101918181019086841115611e9857600080fd5b8286015b84811015611d9b5780356001600160401b03811115611ebb5760008081fd5b8701603f81018913611ecd5760008081fd5b611ede898683013560408401611e01565b845250918301918301611e9c565b60008060008060808587031215611f0257600080fd5b84356001600160401b0380821115611f1957600080fd5b611f2588838901611d34565b95506020870135915080821115611f3b57600080fd5b611f4788838901611da6565b94506040870135915080821115611f5d57600080fd5b50611f6a87828801611e58565b949793965093946060013593505050565b803560ff81168114611d2f57600080fd5b600080600080600060a08688031215611fa457600080fd5b85359450611fb460208701611f7b565b9350611fc260408701611f7b565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b602081016008831061201257634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561202b57600080fd5b8235915061203b60208401611d18565b90509250929050565b6000806040838503121561205757600080fd5b8235915061203b60208401611f7b565b6000806000806060858703121561207d57600080fd5b8435935061208d60208601611f7b565b925060408501356001600160401b03808211156120a957600080fd5b818701915087601f8301126120bd57600080fd5b8135818111156120cc57600080fd5b8860208285010111156120de57600080fd5b95989497505060200194505050565b6000806000806080858703121561210357600080fd5b84356001600160401b038082111561211a57600080fd5b61212688838901611d34565b9550602087013591508082111561213c57600080fd5b61214888838901611da6565b9450604087013591508082111561215e57600080fd5b61216a88838901611e58565b9350606087013591508082111561218057600080fd5b508501601f8101871361219257600080fd5b6121a187823560208401611e01565b91505092959194509250565b600080604083850312156121c057600080fd5b6121c983611d18565b946020939093013593505050565b60208082526018908201527f476f7665726e6f723a206f6e6c79476f7665726e616e63650000000000000000604082015260600190565b600181811c9082168061222257607f821691505b602082108103610a6057634e487b7160e01b600052602260045260246000fd5b600081518084526020808501945080840160005b8381101561227b5781516001600160a01b031687529582019590820190600101612256565b509495945050505050565b600081518084526020808501945080840160005b8381101561227b5781518752958201959082019060010161229a565b600081518084526020808501808196508360051b8101915082860160005b858110156122fe5782840389526122ec848351611c70565b988501989350908401906001016122d4565b5091979650505050505050565b60808152600061231e6080830187612242565b82810360208401526123308187612286565b9050828103604084015261234481866122b6565b91505082606083015295945050505050565b60006020828403121561236857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561239f5761239f61236f565b500290565b6000826123c157634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600082516123ee818460208701611c40565b9190910192915050565b60006001820161240a5761240a61236f565b5060010190565b84815260ff84166020820152826040820152608060608201526000610b166080830184611c70565b6000821982111561244c5761244c61236f565b500190565b6000828210156124635761246361236f565b500390565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b038083168185168083038211156124cb576124cb61236f565b01949350505050565b60006101208b8352602060018060a01b038c16818501528160408501526124fd8285018c612242565b91508382036060850152612511828b612286565b915083820360808501528189518084528284019150828160051b850101838c0160005b8381101561256257601f19878403018552612550838351611c70565b94860194925090850190600101612534565b505086810360a0880152612576818c6122b6565b94505050505061259160c08401876001600160401b03169052565b6001600160401b03851660e08401528281036101008401526125b38185611c70565b9c9b50505050505050505050505056fe476f7665726e6f723a2063616c6c20726576657274656420776974686f7574206d657373616765a26469706673582212201ef687795314821ae8452bc1b0862cc31b38394d549b5e2b4a4ca1c0bdf1fa2964736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name_", "type": "string", "internalType": "string"}, {"name": "token_", "type": "address", "internalType": "contract ERC20Votes"}, {"name": "votingDelay_", "type": "uint256", "internalType": "uint256"}, {"name": "votingPeriod_", "type": "uint256", "internalType": "uint256"}, {"name": "quorumNumerator_", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalThresholdSet", "inputs": [{"name": "oldProposalThreshold", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newProposalThreshold", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "QuorumNumeratorUpdated", "inputs": [{"name": "oldQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VotingDelaySet", "inputs": [{"name": "oldVotingDelay", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newVotingDelay", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VotingPeriodSet", "inputs": [{"name": "oldVotingPeriod", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newVotingPeriod", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "cancel", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalVotes", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "againstVotes", "type": "uint256", "internalType": "uint256"}, {"name": "forVotes", "type": "uint256", "internalType": "uint256"}, {"name": "abstainVotes", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumDenominator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumNumerator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "setProposalThreshold", "stateMutability": "nonpayable", "inputs": [{"name": "newProposalThreshold", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setVotingDelay", "stateMutability": "nonpayable", "inputs": [{"name": "newVotingDelay", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setVotingPeriod", "stateMutability": "nonpayable", "inputs": [{"name": "newVotingPeriod", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract ERC20Votes"}]}, {"type": "function", "name": "updateQuorumNumerator", "stateMutability": "nonpayable", "inputs": [{"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"quorum(uint256)": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"COUNTING_MODE()": {"details": "See {IGovernor-COUNTING_MODE}."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "hasVoted(uint256,address)": {"details": "See {IGovernor-hasVoted}."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalVotes(uint256)": {"details": "Accessor to the internal vote counts."}, "quorum(uint256)": {"details": "Minimum number of cast voted required for a proposal to be successful. Note: The `blockNumber` parameter corresponds to the snaphot used for counting vote. This allows to scale the quroum depending on values such as the totalSupply of a token at this block (see {ERC20Votes})."}, "setProposalThreshold(uint256)": {"details": "Update the proposal threshold. This operation can only be performed through a governance proposal. Emits a {ProposalThresholdSet} event."}, "setVotingDelay(uint256)": {"details": "Update the voting delay. This operation can only be performed through a governance proposal. Emits a {VotingDelaySet} event."}, "setVotingPeriod(uint256)": {"details": "Update the voting period. This operation can only be performed through a governance proposal. Emits a {VotingPeriodSet} event."}, "state(uint256)": {"details": "See {IGovernor-state}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "See {IGovernor-votingDelay}."}, "votingPeriod()": {"details": "See {IGovernor-votingPeriod}."}}, "version": 1}}, "GovernorTimelockCompoundMock": {"contractName": "GovernorTimelockCompoundMock", "sourceId": "mocks/GovernorTimelockCompoundMock.sol", "deploymentBytecode": {"bytecode": "0x6101606040523480156200001257600080fd5b50604051620036f4380380620036f4833981016040819052620000359162000496565b808583868660008b806200005d6040805180820190915260018152603160f81b602082015290565b815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c0526101205250508251620001039250600091506020840190620003bd565b506200011190508362000161565b6200011c82620001a2565b620001278162000249565b5050506200013b816200028a60201b60201c565b506001600160a01b0316610140526200015481620002f3565b50505050505050620005f1565b60025460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600255565b60008111620002085760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b60648201526084015b60405180910390fd5b60035460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600355565b60045460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600455565b600554604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600580546001600160a01b0319166001600160a01b0392909216919091179055565b6064811115620003785760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a401620001ff565b600780549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b828054620003cb90620005b5565b90600052602060002090601f016020900481019282620003ef57600085556200043a565b82601f106200040a57805160ff19168380011785556200043a565b828001600101855582156200043a579182015b828111156200043a5782518255916020019190600101906200041d565b50620004489291506200044c565b5090565b5b808211156200044857600081556001016200044d565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200049157600080fd5b919050565b60008060008060008060c08789031215620004b057600080fd5b86516001600160401b0380821115620004c857600080fd5b818901915089601f830112620004dd57600080fd5b815181811115620004f257620004f262000463565b604051601f8201601f19908116603f011681019083821181831017156200051d576200051d62000463565b81604052828152602093508c848487010111156200053a57600080fd5b600091505b828210156200055e57848201840151818301850152908301906200053f565b82821115620005705760008484830101525b99506200058291505089820162000479565b965050506040870151935060608701519250620005a26080880162000479565b915060a087015190509295509295509295565b600181811c90821680620005ca57607f821691505b602082108103620005eb57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516101405161309a6200065a600039600081816106ea0152818161181a01526118e501526000611baa01526000611bf901526000611bd401526000611b2d01526000611b5701526000611b81015261309a6000f3fe6080604052600436106101fd5760003560e01c80637d5e81e21161010d578063c59057e4116100a0578063ea0217cf1161006f578063ea0217cf14610658578063eb9019d414610678578063ece40cc114610698578063f8ce560a146106b8578063fc0c546a146106d857600080fd5b8063c59057e41461058c578063d33219b4146105ac578063dd4e2ba5146105de578063deaaa7cc1461062457600080fd5b8063ab58fb8e116100dc578063ab58fb8e14610522578063b58131b014610542578063b9a6196114610557578063c01f9e371461056c57600080fd5b80637d5e81e2146104b957806397c3d334146104d9578063a7713a70146104ed578063a890c9101461050257600080fd5b80633bccf4fd11610190578063544ffc9c1161015f578063544ffc9c146103da57806354fd4d501461042f578063567813881461045957806370b0f660146104795780637b3c71d31461049957600080fd5b80633bccf4fd146103235780633e4f49e6146103435780634385963214610370578063452115d6146103ba57600080fd5b8063160cbed7116101cc578063160cbed7146102bb5780632656227d146102db5780632d63f693146102ee5780633932abb11461030e57600080fd5b806301ffc9a71461022557806302a251a31461025a57806306f3f9e61461027957806306fdde031461029957600080fd5b36610220573061020b61070c565b6001600160a01b03161461021e57600080fd5b005b600080fd5b34801561023157600080fd5b50610245610240366004612573565b610725565b60405190151581526020015b60405180910390f35b34801561026657600080fd5b506003545b604051908152602001610251565b34801561028557600080fd5b5061021e61029436600461259d565b610736565b3480156102a557600080fd5b506102ae610783565b604051610251919061260e565b3480156102c757600080fd5b5061026b6102d6366004612862565b610815565b61026b6102e9366004612862565b610b8f565b3480156102fa57600080fd5b5061026b61030936600461259d565b610c62565b34801561031a57600080fd5b5060025461026b565b34801561032f57600080fd5b5061026b61033e366004612907565b610c99565b34801561034f57600080fd5b5061036361035e36600461259d565b610d2d565b604051610251919061296b565b34801561037c57600080fd5b5061024561038b366004612993565b60008281526008602090815260408083206001600160a01b038516845260030190915290205460ff1692915050565b3480156103c657600080fd5b5061026b6103d5366004612862565b610d38565b3480156103e657600080fd5b506104146103f536600461259d565b6000908152600860205260409020805460018201546002909201549092565b60408051938452602084019290925290820152606001610251565b34801561043b57600080fd5b506040805180820190915260018152603160f81b60208201526102ae565b34801561046557600080fd5b5061026b6104743660046129c3565b610d4f565b34801561048557600080fd5b5061021e61049436600461259d565b610d78565b3480156104a557600080fd5b5061026b6104b43660046129ef565b610db9565b3480156104c557600080fd5b5061026b6104d4366004612a75565b610e0b565b3480156104e557600080fd5b50606461026b565b3480156104f957600080fd5b5060075461026b565b34801561050e57600080fd5b5061021e61051d366004612b35565b6110c7565b34801561052e57600080fd5b5061026b61053d36600461259d565b611108565b34801561054e57600080fd5b5061026b611134565b34801561056357600080fd5b5061021e61113f565b34801561057857600080fd5b5061026b61058736600461259d565b6111a9565b34801561059857600080fd5b5061026b6105a7366004612862565b6111d8565b3480156105b857600080fd5b506005546001600160a01b03165b6040516001600160a01b039091168152602001610251565b3480156105ea57600080fd5b506040805180820190915260208082527f737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e908201526102ae565b34801561063057600080fd5b5061026b7f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b34801561066457600080fd5b5061021e61067336600461259d565b611212565b34801561068457600080fd5b5061026b610693366004612b52565b611253565b3480156106a457600080fd5b5061021e6106b336600461259d565b611266565b3480156106c457600080fd5b5061026b6106d336600461259d565b6112a7565b3480156106e457600080fd5b506105c67f000000000000000000000000000000000000000000000000000000000000000081565b60006107206005546001600160a01b031690565b905090565b6000610730826112b2565b92915050565b61073e61070c565b6001600160a01b0316336001600160a01b0316146107775760405162461bcd60e51b815260040161076e90612b7e565b60405180910390fd5b610780816112d7565b50565b60606000805461079290612bb5565b80601f01602080910402602001604051908101604052809291908181526020018280546107be90612bb5565b801561080b5780601f106107e05761010080835404028352916020019161080b565b820191906000526020600020905b8154815290600101906020018083116107ee57829003601f168201915b5050505050905090565b600080610824868686866111d8565b9050600461083182610d2d565b600781111561084257610842612955565b1461085f5760405162461bcd60e51b815260040161076e90612be9565b60055460408051630d48571f60e31b815290516000926001600160a01b031691636a42b8f89160048083019260209291908290030181865afa1580156108a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108cd9190612c2a565b6108d79042612c59565b90506108f96108e58261139f565b60008481526006602052604090209061140b565b60005b8751811015610b4a5760055488516001600160a01b039091169063f2b06537908a908490811061092e5761092e612c71565b602002602001015189848151811061094857610948612c71565b602002602001015189858151811061096257610962612c71565b60200260200101518660405160200161097e9493929190612c87565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004016109b291815260200190565b602060405180830381865afa1580156109cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f39190612ccd565b15610a715760405162461bcd60e51b815260206004820152604260248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a206964656e746960448201527f63616c2070726f706f73616c20616374696f6e20616c72656164792071756575606482015261195960f21b608482015260a40161076e565b60055488516001600160a01b0390911690633a66f901908a9084908110610a9a57610a9a612c71565b6020026020010151898481518110610ab457610ab4612c71565b6020026020010151898581518110610ace57610ace612c71565b6020026020010151866040518563ffffffff1660e01b8152600401610af69493929190612c87565b6020604051808303816000875af1158015610b15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b399190612c2a565b50610b4381612cef565b90506108fc565b5060408051838152602081018390527f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda289291015b60405180910390a15095945050505050565b600080610b9e868686866111d8565b90506000610bab82610d2d565b90506004816007811115610bc157610bc1612955565b1480610bde57506005816007811115610bdc57610bdc612955565b145b610bfa5760405162461bcd60e51b815260040161076e90612be9565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a1610c588288888888611429565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff851660608201526000908190610d0590610cfd906080016040516020818303038152906040528051906020012061143d565b86868661148b565b9050610d22878288604051806020016040528060008152506114a9565b979650505050505050565b6000610730826115b4565b6000610d4685858585611698565b95945050505050565b600080339050610d70848285604051806020016040528060008152506114a9565b949350505050565b610d8061070c565b6001600160a01b0316336001600160a01b031614610db05760405162461bcd60e51b815260040161076e90612b7e565b610780816116a6565b600080339050610e0186828787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506114a992505050565b9695505050505050565b6000610e15611134565b610e2433610693600143612d08565b1015610ea45760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a40161076e565b6000610eb986868686805190602001206111d8565b90508451865114610edc5760405162461bcd60e51b815260040161076e90612d1f565b8351865114610efd5760405162461bcd60e51b815260040161076e90612d1f565b6000865111610f4e5760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c0000000000000000604482015260640161076e565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215610fce5760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b606482015260840161076e565b6000610fe1610fdc60025490565b61139f565b610fea4361139f565b610ff49190612d60565b90506000611004610fdc60035490565b61100e9083612d60565b905061101a838361140b565b611027600184018261140b565b7f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b0381111561106557611065612621565b60405190808252806020026020018201604052801561109857816020015b60608152602001906001900390816110835790505b508c88888e6040516110b299989796959493929190612e54565b60405180910390a15091979650505050505050565b6110cf61070c565b6001600160a01b0316336001600160a01b0316146110ff5760405162461bcd60e51b815260040161076e90612b7e565b610780816116e7565b60008181526006602090815260408083208151928301909152546001600160401b031690819052610c8a565b600061072060045490565b600560009054906101000a90046001600160a01b03166001600160a01b0316630e18b6816040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561118f57600080fd5b505af11580156111a3573d6000803e3d6000fd5b50505050565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610c8a565b6000848484846040516020016111f19493929190612f43565b60408051601f19818403018152919052805160209091012095945050505050565b61121a61070c565b6001600160a01b0316336001600160a01b03161461124a5760405162461bcd60e51b815260040161076e90612b7e565b61078081611750565b600061125f83836117f1565b9392505050565b61126e61070c565b6001600160a01b0316336001600160a01b03161461129e5760405162461bcd60e51b815260040161076e90612b7e565b61078081611887565b6000610730826118c8565b60006001600160e01b03198216636e665ced60e01b148061073057506107308261196c565b606481111561135a5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a40161076e565b600780549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b60006001600160401b038211156114075760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b606482015260840161076e565b5090565b815467ffffffffffffffff19166001600160401b0391909116179055565b61143685858585856119a1565b5050505050565b600061073061144a611b20565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061149c87878787611c47565b91509150610c5881611d34565b60008481526001602081905260408220906114c387610d2d565b60078111156114d4576114d4612955565b1461152d5760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b606482015260840161076e565b604080516020810190915281546001600160401b031690819052600090611555908790611253565b905061156387878784611eea565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4888784886040516115a29493929190612f8e565b60405180910390a29695505050505050565b6000806115c083612064565b905060048160078111156115d6576115d6612955565b146115e15792915050565b60006115ec84611108565b9050806000036115fd575092915050565b600560009054906101000a90046001600160a01b03166001600160a01b031663c1a287e26040518163ffffffff1660e01b8152600401602060405180830381865afa158015611650573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116749190612c2a565b61167e9082612c59565b421061168e575060069392505050565b5060059392505050565b6000610d46858585856121c8565b60025460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600255565b600554604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600580546001600160a01b0319166001600160a01b0392909216919091179055565b600081116117b05760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b606482015260840161076e565b60035460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600355565b604051630748d63560e31b81526001600160a01b038381166004830152602482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690633a46b1a890604401602060405180830381865afa158015611863573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125f9190612c2a565b60045460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600455565b60006064600754604051632394e7a360e21b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690638e539e8c90602401602060405180830381865afa158015611934573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119589190612c2a565b6119629190612fb6565b6107309190612fd5565b60006001600160e01b0319821663bf26d89760e01b148061073057506301ffc9a760e01b6001600160e01b0319831614610730565b60006119ac86611108565b905060008111611a185760405162461bcd60e51b815260206004820152603160248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a2070726f706f73604482015270185b081b9bdd081e595d081c5d595d5959607a1b606482015260840161076e565b600554611a2e906001600160a01b0316346122e3565b60005b8551811015611b175760055486516001600160a01b0390911690630825f38f90889084908110611a6357611a63612c71565b6020026020010151878481518110611a7d57611a7d612c71565b6020026020010151878581518110611a9757611a97612c71565b6020026020010151866040518563ffffffff1660e01b8152600401611abf9493929190612c87565b6000604051808303816000875af1158015611ade573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b069190810190612ff7565b50611b1081612cef565b9050611a31565b50505050505050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015611b7957507f000000000000000000000000000000000000000000000000000000000000000046145b15611ba357507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611c7e5750600090506003611d2b565b8460ff16601b14158015611c9657508460ff16601c14155b15611ca75750600090506004611d2b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611cfb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d2457600060019250925050611d2b565b9150600090505b94509492505050565b6000816004811115611d4857611d48612955565b03611d505750565b6001816004811115611d6457611d64612955565b03611db15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161076e565b6002816004811115611dc557611dc5612955565b03611e125760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161076e565b6003816004811115611e2657611e26612955565b03611e7e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161076e565b6004816004811115611e9257611e92612955565b036107805760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161076e565b60008481526008602090815260408083206001600160a01b0387168452600381019092529091205460ff1615611f725760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72566f74696e6753696d706c653a20766f746520616c726561604482015266191e4818d85cdd60ca1b606482015260840161076e565b6001600160a01b03841660009081526003820160205260409020805460ff1916600117905560ff8316611fbe5781816000016000828254611fb39190612c59565b909155506114369050565b60001960ff841601611fde5781816001016000828254611fb39190612c59565b60011960ff841601611ffe5781816002016000828254611fb39190612c59565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b606482015260840161076e565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff808216158015948401949094526101009091041615156060820152906120d95750600792915050565b8060600151156120ec5750600292915050565b80515143906001600160401b0316106121085750600092915050565b4361211582602001515190565b6001600160401b03161061212c5750600192915050565b6121398160200151612401565b1561217a5761214783612430565b8015612166575060008381526008602052604090208054600190910154115b61217157600361125f565b60049392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c206964000000604482015260640161076e565b50919050565b6000806121d786868686612467565b905060006121e482611108565b90508015610c585760005b87518110156122c05760055488516001600160a01b039091169063591fcdfe908a908490811061222157612221612c71565b602002602001015189848151811061223b5761223b612c71565b602002602001015189858151811061225557612255612c71565b6020026020010151866040518563ffffffff1660e01b815260040161227d9493929190612c87565b600060405180830381600087803b15801561229757600080fd5b505af11580156122ab573d6000803e3d6000fd5b50505050806122b990612cef565b90506121ef565b506000828152600660205260409020805467ffffffffffffffff19169055610c58565b804710156123335760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161076e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612380576040519150601f19603f3d011682016040523d82523d6000602084013e612385565b606091505b50509050806123fc5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161076e565b505050565b600061241682516001600160401b0316151590565b801561073057505051436001600160401b03909116111590565b6000818152600860205260408120600281015460018201546124529190612c59565b61245e6106d385610c62565b11159392505050565b600080612476868686866111d8565b9050600061248382610d2d565b9050600281600781111561249957612499612955565b141580156124b9575060068160078111156124b6576124b6612955565b14155b80156124d7575060078160078111156124d4576124d4612955565b14155b6125235760405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a2070726f706f73616c206e6f7420616374697665000000604482015260640161076e565b60008281526001602052604090819020600201805461ff001916610100179055517f789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c90610b7d9084815260200190565b60006020828403121561258557600080fd5b81356001600160e01b03198116811461125f57600080fd5b6000602082840312156125af57600080fd5b5035919050565b60005b838110156125d15781810151838201526020016125b9565b838111156111a35750506000910152565b600081518084526125fa8160208601602086016125b6565b601f01601f19169290920160200192915050565b60208152600061125f60208301846125e2565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561265f5761265f612621565b604052919050565b60006001600160401b0382111561268057612680612621565b5060051b60200190565b6001600160a01b038116811461078057600080fd5b600082601f8301126126b057600080fd5b813560206126c56126c083612667565b612637565b82815260059290921b840181019181810190868411156126e457600080fd5b8286015b848110156127085780356126fb8161268a565b83529183019183016126e8565b509695505050505050565b600082601f83011261272457600080fd5b813560206127346126c083612667565b82815260059290921b8401810191818101908684111561275357600080fd5b8286015b848110156127085780358352918301918301612757565b60006001600160401b0382111561278757612787612621565b50601f01601f191660200190565b60006127a36126c08461276e565b90508281528383830111156127b757600080fd5b828260208301376000602084830101529392505050565b600082601f8301126127df57600080fd5b813560206127ef6126c083612667565b82815260059290921b8401810191818101908684111561280e57600080fd5b8286015b848110156127085780356001600160401b038111156128315760008081fd5b8701603f810189136128435760008081fd5b612854898683013560408401612795565b845250918301918301612812565b6000806000806080858703121561287857600080fd5b84356001600160401b038082111561288f57600080fd5b61289b8883890161269f565b955060208701359150808211156128b157600080fd5b6128bd88838901612713565b945060408701359150808211156128d357600080fd5b506128e0878288016127ce565b949793965093946060013593505050565b803560ff8116811461290257600080fd5b919050565b600080600080600060a0868803121561291f57600080fd5b8535945061292f602087016128f1565b935061293d604087016128f1565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b602081016008831061298d57634e487b7160e01b600052602160045260246000fd5b91905290565b600080604083850312156129a657600080fd5b8235915060208301356129b88161268a565b809150509250929050565b600080604083850312156129d657600080fd5b823591506129e6602084016128f1565b90509250929050565b60008060008060608587031215612a0557600080fd5b84359350612a15602086016128f1565b925060408501356001600160401b0380821115612a3157600080fd5b818701915087601f830112612a4557600080fd5b813581811115612a5457600080fd5b886020828501011115612a6657600080fd5b95989497505060200194505050565b60008060008060808587031215612a8b57600080fd5b84356001600160401b0380821115612aa257600080fd5b612aae8883890161269f565b95506020870135915080821115612ac457600080fd5b612ad088838901612713565b94506040870135915080821115612ae657600080fd5b612af2888389016127ce565b93506060870135915080821115612b0857600080fd5b508501601f81018713612b1a57600080fd5b612b2987823560208401612795565b91505092959194509250565b600060208284031215612b4757600080fd5b813561125f8161268a565b60008060408385031215612b6557600080fd5b8235612b708161268a565b946020939093013593505050565b60208082526018908201527f476f7665726e6f723a206f6e6c79476f7665726e616e63650000000000000000604082015260600190565b600181811c90821680612bc957607f821691505b6020821081036121c257634e487b7160e01b600052602260045260246000fd5b60208082526021908201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756040820152601b60fa1b606082015260800190565b600060208284031215612c3c57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612c6c57612c6c612c43565b500190565b634e487b7160e01b600052603260045260246000fd5b60018060a01b038516815283602082015260a06040820152600060a082015260c060608201526000612cbc60c08301856125e2565b905082608083015295945050505050565b600060208284031215612cdf57600080fd5b8151801515811461125f57600080fd5b600060018201612d0157612d01612c43565b5060010190565b600082821015612d1a57612d1a612c43565b500390565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b03808316818516808303821115612d8257612d82612c43565b01949350505050565b600081518084526020808501945080840160005b83811015612dc45781516001600160a01b031687529582019590820190600101612d9f565b509495945050505050565b600081518084526020808501945080840160005b83811015612dc457815187529582019590820190600101612de3565b600081518084526020808501808196508360051b8101915082860160005b85811015612e47578284038952612e358483516125e2565b98850198935090840190600101612e1d565b5091979650505050505050565b60006101208b8352602060018060a01b038c1681850152816040850152612e7d8285018c612d8b565b91508382036060850152612e91828b612dcf565b915083820360808501528189518084528284019150828160051b850101838c0160005b83811015612ee257601f19878403018552612ed08383516125e2565b94860194925090850190600101612eb4565b505086810360a0880152612ef6818c612dff565b945050505050612f1160c08401876001600160401b03169052565b6001600160401b03851660e0840152828103610100840152612f3381856125e2565b9c9b505050505050505050505050565b608081526000612f566080830187612d8b565b8281036020840152612f688187612dcf565b90508281036040840152612f7c8186612dff565b91505082606083015295945050505050565b84815260ff84166020820152826040820152608060608201526000610e0160808301846125e2565b6000816000190483118215151615612fd057612fd0612c43565b500290565b600082612ff257634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561300957600080fd5b81516001600160401b0381111561301f57600080fd5b8201601f8101841361303057600080fd5b805161303e6126c08261276e565b81815285602083850101111561305357600080fd5b610d468260208301602086016125b656fea26469706673582212206c2ec92f2271df0e04d32af13efa9f49670a50b3ec5eb33f48656cf08acce72e64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106101fd5760003560e01c80637d5e81e21161010d578063c59057e4116100a0578063ea0217cf1161006f578063ea0217cf14610658578063eb9019d414610678578063ece40cc114610698578063f8ce560a146106b8578063fc0c546a146106d857600080fd5b8063c59057e41461058c578063d33219b4146105ac578063dd4e2ba5146105de578063deaaa7cc1461062457600080fd5b8063ab58fb8e116100dc578063ab58fb8e14610522578063b58131b014610542578063b9a6196114610557578063c01f9e371461056c57600080fd5b80637d5e81e2146104b957806397c3d334146104d9578063a7713a70146104ed578063a890c9101461050257600080fd5b80633bccf4fd11610190578063544ffc9c1161015f578063544ffc9c146103da57806354fd4d501461042f578063567813881461045957806370b0f660146104795780637b3c71d31461049957600080fd5b80633bccf4fd146103235780633e4f49e6146103435780634385963214610370578063452115d6146103ba57600080fd5b8063160cbed7116101cc578063160cbed7146102bb5780632656227d146102db5780632d63f693146102ee5780633932abb11461030e57600080fd5b806301ffc9a71461022557806302a251a31461025a57806306f3f9e61461027957806306fdde031461029957600080fd5b36610220573061020b61070c565b6001600160a01b03161461021e57600080fd5b005b600080fd5b34801561023157600080fd5b50610245610240366004612573565b610725565b60405190151581526020015b60405180910390f35b34801561026657600080fd5b506003545b604051908152602001610251565b34801561028557600080fd5b5061021e61029436600461259d565b610736565b3480156102a557600080fd5b506102ae610783565b604051610251919061260e565b3480156102c757600080fd5b5061026b6102d6366004612862565b610815565b61026b6102e9366004612862565b610b8f565b3480156102fa57600080fd5b5061026b61030936600461259d565b610c62565b34801561031a57600080fd5b5060025461026b565b34801561032f57600080fd5b5061026b61033e366004612907565b610c99565b34801561034f57600080fd5b5061036361035e36600461259d565b610d2d565b604051610251919061296b565b34801561037c57600080fd5b5061024561038b366004612993565b60008281526008602090815260408083206001600160a01b038516845260030190915290205460ff1692915050565b3480156103c657600080fd5b5061026b6103d5366004612862565b610d38565b3480156103e657600080fd5b506104146103f536600461259d565b6000908152600860205260409020805460018201546002909201549092565b60408051938452602084019290925290820152606001610251565b34801561043b57600080fd5b506040805180820190915260018152603160f81b60208201526102ae565b34801561046557600080fd5b5061026b6104743660046129c3565b610d4f565b34801561048557600080fd5b5061021e61049436600461259d565b610d78565b3480156104a557600080fd5b5061026b6104b43660046129ef565b610db9565b3480156104c557600080fd5b5061026b6104d4366004612a75565b610e0b565b3480156104e557600080fd5b50606461026b565b3480156104f957600080fd5b5060075461026b565b34801561050e57600080fd5b5061021e61051d366004612b35565b6110c7565b34801561052e57600080fd5b5061026b61053d36600461259d565b611108565b34801561054e57600080fd5b5061026b611134565b34801561056357600080fd5b5061021e61113f565b34801561057857600080fd5b5061026b61058736600461259d565b6111a9565b34801561059857600080fd5b5061026b6105a7366004612862565b6111d8565b3480156105b857600080fd5b506005546001600160a01b03165b6040516001600160a01b039091168152602001610251565b3480156105ea57600080fd5b506040805180820190915260208082527f737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e908201526102ae565b34801561063057600080fd5b5061026b7f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b34801561066457600080fd5b5061021e61067336600461259d565b611212565b34801561068457600080fd5b5061026b610693366004612b52565b611253565b3480156106a457600080fd5b5061021e6106b336600461259d565b611266565b3480156106c457600080fd5b5061026b6106d336600461259d565b6112a7565b3480156106e457600080fd5b506105c67f000000000000000000000000000000000000000000000000000000000000000081565b60006107206005546001600160a01b031690565b905090565b6000610730826112b2565b92915050565b61073e61070c565b6001600160a01b0316336001600160a01b0316146107775760405162461bcd60e51b815260040161076e90612b7e565b60405180910390fd5b610780816112d7565b50565b60606000805461079290612bb5565b80601f01602080910402602001604051908101604052809291908181526020018280546107be90612bb5565b801561080b5780601f106107e05761010080835404028352916020019161080b565b820191906000526020600020905b8154815290600101906020018083116107ee57829003601f168201915b5050505050905090565b600080610824868686866111d8565b9050600461083182610d2d565b600781111561084257610842612955565b1461085f5760405162461bcd60e51b815260040161076e90612be9565b60055460408051630d48571f60e31b815290516000926001600160a01b031691636a42b8f89160048083019260209291908290030181865afa1580156108a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108cd9190612c2a565b6108d79042612c59565b90506108f96108e58261139f565b60008481526006602052604090209061140b565b60005b8751811015610b4a5760055488516001600160a01b039091169063f2b06537908a908490811061092e5761092e612c71565b602002602001015189848151811061094857610948612c71565b602002602001015189858151811061096257610962612c71565b60200260200101518660405160200161097e9493929190612c87565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004016109b291815260200190565b602060405180830381865afa1580156109cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f39190612ccd565b15610a715760405162461bcd60e51b815260206004820152604260248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a206964656e746960448201527f63616c2070726f706f73616c20616374696f6e20616c72656164792071756575606482015261195960f21b608482015260a40161076e565b60055488516001600160a01b0390911690633a66f901908a9084908110610a9a57610a9a612c71565b6020026020010151898481518110610ab457610ab4612c71565b6020026020010151898581518110610ace57610ace612c71565b6020026020010151866040518563ffffffff1660e01b8152600401610af69493929190612c87565b6020604051808303816000875af1158015610b15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b399190612c2a565b50610b4381612cef565b90506108fc565b5060408051838152602081018390527f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda289291015b60405180910390a15095945050505050565b600080610b9e868686866111d8565b90506000610bab82610d2d565b90506004816007811115610bc157610bc1612955565b1480610bde57506005816007811115610bdc57610bdc612955565b145b610bfa5760405162461bcd60e51b815260040161076e90612be9565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a1610c588288888888611429565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff851660608201526000908190610d0590610cfd906080016040516020818303038152906040528051906020012061143d565b86868661148b565b9050610d22878288604051806020016040528060008152506114a9565b979650505050505050565b6000610730826115b4565b6000610d4685858585611698565b95945050505050565b600080339050610d70848285604051806020016040528060008152506114a9565b949350505050565b610d8061070c565b6001600160a01b0316336001600160a01b031614610db05760405162461bcd60e51b815260040161076e90612b7e565b610780816116a6565b600080339050610e0186828787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506114a992505050565b9695505050505050565b6000610e15611134565b610e2433610693600143612d08565b1015610ea45760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a40161076e565b6000610eb986868686805190602001206111d8565b90508451865114610edc5760405162461bcd60e51b815260040161076e90612d1f565b8351865114610efd5760405162461bcd60e51b815260040161076e90612d1f565b6000865111610f4e5760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c0000000000000000604482015260640161076e565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215610fce5760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b606482015260840161076e565b6000610fe1610fdc60025490565b61139f565b610fea4361139f565b610ff49190612d60565b90506000611004610fdc60035490565b61100e9083612d60565b905061101a838361140b565b611027600184018261140b565b7f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b0381111561106557611065612621565b60405190808252806020026020018201604052801561109857816020015b60608152602001906001900390816110835790505b508c88888e6040516110b299989796959493929190612e54565b60405180910390a15091979650505050505050565b6110cf61070c565b6001600160a01b0316336001600160a01b0316146110ff5760405162461bcd60e51b815260040161076e90612b7e565b610780816116e7565b60008181526006602090815260408083208151928301909152546001600160401b031690819052610c8a565b600061072060045490565b600560009054906101000a90046001600160a01b03166001600160a01b0316630e18b6816040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561118f57600080fd5b505af11580156111a3573d6000803e3d6000fd5b50505050565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610c8a565b6000848484846040516020016111f19493929190612f43565b60408051601f19818403018152919052805160209091012095945050505050565b61121a61070c565b6001600160a01b0316336001600160a01b03161461124a5760405162461bcd60e51b815260040161076e90612b7e565b61078081611750565b600061125f83836117f1565b9392505050565b61126e61070c565b6001600160a01b0316336001600160a01b03161461129e5760405162461bcd60e51b815260040161076e90612b7e565b61078081611887565b6000610730826118c8565b60006001600160e01b03198216636e665ced60e01b148061073057506107308261196c565b606481111561135a5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a40161076e565b600780549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b60006001600160401b038211156114075760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b606482015260840161076e565b5090565b815467ffffffffffffffff19166001600160401b0391909116179055565b61143685858585856119a1565b5050505050565b600061073061144a611b20565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061149c87878787611c47565b91509150610c5881611d34565b60008481526001602081905260408220906114c387610d2d565b60078111156114d4576114d4612955565b1461152d5760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b606482015260840161076e565b604080516020810190915281546001600160401b031690819052600090611555908790611253565b905061156387878784611eea565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4888784886040516115a29493929190612f8e565b60405180910390a29695505050505050565b6000806115c083612064565b905060048160078111156115d6576115d6612955565b146115e15792915050565b60006115ec84611108565b9050806000036115fd575092915050565b600560009054906101000a90046001600160a01b03166001600160a01b031663c1a287e26040518163ffffffff1660e01b8152600401602060405180830381865afa158015611650573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116749190612c2a565b61167e9082612c59565b421061168e575060069392505050565b5060059392505050565b6000610d46858585856121c8565b60025460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600255565b600554604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600580546001600160a01b0319166001600160a01b0392909216919091179055565b600081116117b05760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b606482015260840161076e565b60035460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600355565b604051630748d63560e31b81526001600160a01b038381166004830152602482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690633a46b1a890604401602060405180830381865afa158015611863573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125f9190612c2a565b60045460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600455565b60006064600754604051632394e7a360e21b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690638e539e8c90602401602060405180830381865afa158015611934573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119589190612c2a565b6119629190612fb6565b6107309190612fd5565b60006001600160e01b0319821663bf26d89760e01b148061073057506301ffc9a760e01b6001600160e01b0319831614610730565b60006119ac86611108565b905060008111611a185760405162461bcd60e51b815260206004820152603160248201527f476f7665726e6f7254696d656c6f636b436f6d706f756e643a2070726f706f73604482015270185b081b9bdd081e595d081c5d595d5959607a1b606482015260840161076e565b600554611a2e906001600160a01b0316346122e3565b60005b8551811015611b175760055486516001600160a01b0390911690630825f38f90889084908110611a6357611a63612c71565b6020026020010151878481518110611a7d57611a7d612c71565b6020026020010151878581518110611a9757611a97612c71565b6020026020010151866040518563ffffffff1660e01b8152600401611abf9493929190612c87565b6000604051808303816000875af1158015611ade573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b069190810190612ff7565b50611b1081612cef565b9050611a31565b50505050505050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015611b7957507f000000000000000000000000000000000000000000000000000000000000000046145b15611ba357507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611c7e5750600090506003611d2b565b8460ff16601b14158015611c9657508460ff16601c14155b15611ca75750600090506004611d2b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611cfb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d2457600060019250925050611d2b565b9150600090505b94509492505050565b6000816004811115611d4857611d48612955565b03611d505750565b6001816004811115611d6457611d64612955565b03611db15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161076e565b6002816004811115611dc557611dc5612955565b03611e125760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161076e565b6003816004811115611e2657611e26612955565b03611e7e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161076e565b6004816004811115611e9257611e92612955565b036107805760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161076e565b60008481526008602090815260408083206001600160a01b0387168452600381019092529091205460ff1615611f725760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72566f74696e6753696d706c653a20766f746520616c726561604482015266191e4818d85cdd60ca1b606482015260840161076e565b6001600160a01b03841660009081526003820160205260409020805460ff1916600117905560ff8316611fbe5781816000016000828254611fb39190612c59565b909155506114369050565b60001960ff841601611fde5781816001016000828254611fb39190612c59565b60011960ff841601611ffe5781816002016000828254611fb39190612c59565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b606482015260840161076e565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff808216158015948401949094526101009091041615156060820152906120d95750600792915050565b8060600151156120ec5750600292915050565b80515143906001600160401b0316106121085750600092915050565b4361211582602001515190565b6001600160401b03161061212c5750600192915050565b6121398160200151612401565b1561217a5761214783612430565b8015612166575060008381526008602052604090208054600190910154115b61217157600361125f565b60049392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c206964000000604482015260640161076e565b50919050565b6000806121d786868686612467565b905060006121e482611108565b90508015610c585760005b87518110156122c05760055488516001600160a01b039091169063591fcdfe908a908490811061222157612221612c71565b602002602001015189848151811061223b5761223b612c71565b602002602001015189858151811061225557612255612c71565b6020026020010151866040518563ffffffff1660e01b815260040161227d9493929190612c87565b600060405180830381600087803b15801561229757600080fd5b505af11580156122ab573d6000803e3d6000fd5b50505050806122b990612cef565b90506121ef565b506000828152600660205260409020805467ffffffffffffffff19169055610c58565b804710156123335760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161076e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612380576040519150601f19603f3d011682016040523d82523d6000602084013e612385565b606091505b50509050806123fc5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161076e565b505050565b600061241682516001600160401b0316151590565b801561073057505051436001600160401b03909116111590565b6000818152600860205260408120600281015460018201546124529190612c59565b61245e6106d385610c62565b11159392505050565b600080612476868686866111d8565b9050600061248382610d2d565b9050600281600781111561249957612499612955565b141580156124b9575060068160078111156124b6576124b6612955565b14155b80156124d7575060078160078111156124d4576124d4612955565b14155b6125235760405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a2070726f706f73616c206e6f7420616374697665000000604482015260640161076e565b60008281526001602052604090819020600201805461ff001916610100179055517f789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c90610b7d9084815260200190565b60006020828403121561258557600080fd5b81356001600160e01b03198116811461125f57600080fd5b6000602082840312156125af57600080fd5b5035919050565b60005b838110156125d15781810151838201526020016125b9565b838111156111a35750506000910152565b600081518084526125fa8160208601602086016125b6565b601f01601f19169290920160200192915050565b60208152600061125f60208301846125e2565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561265f5761265f612621565b604052919050565b60006001600160401b0382111561268057612680612621565b5060051b60200190565b6001600160a01b038116811461078057600080fd5b600082601f8301126126b057600080fd5b813560206126c56126c083612667565b612637565b82815260059290921b840181019181810190868411156126e457600080fd5b8286015b848110156127085780356126fb8161268a565b83529183019183016126e8565b509695505050505050565b600082601f83011261272457600080fd5b813560206127346126c083612667565b82815260059290921b8401810191818101908684111561275357600080fd5b8286015b848110156127085780358352918301918301612757565b60006001600160401b0382111561278757612787612621565b50601f01601f191660200190565b60006127a36126c08461276e565b90508281528383830111156127b757600080fd5b828260208301376000602084830101529392505050565b600082601f8301126127df57600080fd5b813560206127ef6126c083612667565b82815260059290921b8401810191818101908684111561280e57600080fd5b8286015b848110156127085780356001600160401b038111156128315760008081fd5b8701603f810189136128435760008081fd5b612854898683013560408401612795565b845250918301918301612812565b6000806000806080858703121561287857600080fd5b84356001600160401b038082111561288f57600080fd5b61289b8883890161269f565b955060208701359150808211156128b157600080fd5b6128bd88838901612713565b945060408701359150808211156128d357600080fd5b506128e0878288016127ce565b949793965093946060013593505050565b803560ff8116811461290257600080fd5b919050565b600080600080600060a0868803121561291f57600080fd5b8535945061292f602087016128f1565b935061293d604087016128f1565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b602081016008831061298d57634e487b7160e01b600052602160045260246000fd5b91905290565b600080604083850312156129a657600080fd5b8235915060208301356129b88161268a565b809150509250929050565b600080604083850312156129d657600080fd5b823591506129e6602084016128f1565b90509250929050565b60008060008060608587031215612a0557600080fd5b84359350612a15602086016128f1565b925060408501356001600160401b0380821115612a3157600080fd5b818701915087601f830112612a4557600080fd5b813581811115612a5457600080fd5b886020828501011115612a6657600080fd5b95989497505060200194505050565b60008060008060808587031215612a8b57600080fd5b84356001600160401b0380821115612aa257600080fd5b612aae8883890161269f565b95506020870135915080821115612ac457600080fd5b612ad088838901612713565b94506040870135915080821115612ae657600080fd5b612af2888389016127ce565b93506060870135915080821115612b0857600080fd5b508501601f81018713612b1a57600080fd5b612b2987823560208401612795565b91505092959194509250565b600060208284031215612b4757600080fd5b813561125f8161268a565b60008060408385031215612b6557600080fd5b8235612b708161268a565b946020939093013593505050565b60208082526018908201527f476f7665726e6f723a206f6e6c79476f7665726e616e63650000000000000000604082015260600190565b600181811c90821680612bc957607f821691505b6020821081036121c257634e487b7160e01b600052602260045260246000fd5b60208082526021908201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756040820152601b60fa1b606082015260800190565b600060208284031215612c3c57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612c6c57612c6c612c43565b500190565b634e487b7160e01b600052603260045260246000fd5b60018060a01b038516815283602082015260a06040820152600060a082015260c060608201526000612cbc60c08301856125e2565b905082608083015295945050505050565b600060208284031215612cdf57600080fd5b8151801515811461125f57600080fd5b600060018201612d0157612d01612c43565b5060010190565b600082821015612d1a57612d1a612c43565b500390565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b03808316818516808303821115612d8257612d82612c43565b01949350505050565b600081518084526020808501945080840160005b83811015612dc45781516001600160a01b031687529582019590820190600101612d9f565b509495945050505050565b600081518084526020808501945080840160005b83811015612dc457815187529582019590820190600101612de3565b600081518084526020808501808196508360051b8101915082860160005b85811015612e47578284038952612e358483516125e2565b98850198935090840190600101612e1d565b5091979650505050505050565b60006101208b8352602060018060a01b038c1681850152816040850152612e7d8285018c612d8b565b91508382036060850152612e91828b612dcf565b915083820360808501528189518084528284019150828160051b850101838c0160005b83811015612ee257601f19878403018552612ed08383516125e2565b94860194925090850190600101612eb4565b505086810360a0880152612ef6818c612dff565b945050505050612f1160c08401876001600160401b03169052565b6001600160401b03851660e0840152828103610100840152612f3381856125e2565b9c9b505050505050505050505050565b608081526000612f566080830187612d8b565b8281036020840152612f688187612dcf565b90508281036040840152612f7c8186612dff565b91505082606083015295945050505050565b84815260ff84166020820152826040820152608060608201526000610e0160808301846125e2565b6000816000190483118215151615612fd057612fd0612c43565b500290565b600082612ff257634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561300957600080fd5b81516001600160401b0381111561301f57600080fd5b8201601f8101841361303057600080fd5b805161303e6126c08261276e565b81815285602083850101111561305357600080fd5b610d468260208301602086016125b656fea26469706673582212206c2ec92f2271df0e04d32af13efa9f49670a50b3ec5eb33f48656cf08acce72e64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name_", "type": "string", "internalType": "string"}, {"name": "token_", "type": "address", "internalType": "contract ERC20Votes"}, {"name": "votingDelay_", "type": "uint256", "internalType": "uint256"}, {"name": "votingPeriod_", "type": "uint256", "internalType": "uint256"}, {"name": "timelock_", "type": "address", "internalType": "contract ICompoundTimelock"}, {"name": "quorumNumerator_", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalQueued", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "eta", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalThresholdSet", "inputs": [{"name": "oldProposalThreshold", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newProposalThreshold", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "QuorumNumeratorUpdated", "inputs": [{"name": "oldQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TimelockChange", "inputs": [{"name": "oldTimelock", "type": "address", "internalType": "address", "indexed": false}, {"name": "newTimelock", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VotingDelaySet", "inputs": [{"name": "oldVotingDelay", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newVotingDelay", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VotingPeriodSet", "inputs": [{"name": "oldVotingPeriod", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newVotingPeriod", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "__acceptAdmin", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "cancel", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "salt", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalEta", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalVotes", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "againstVotes", "type": "uint256", "internalType": "uint256"}, {"name": "forVotes", "type": "uint256", "internalType": "uint256"}, {"name": "abstainVotes", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumDenominator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumNumerator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "setProposalThreshold", "stateMutability": "nonpayable", "inputs": [{"name": "newProposalThreshold", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setVotingDelay", "stateMutability": "nonpayable", "inputs": [{"name": "newVotingDelay", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setVotingPeriod", "stateMutability": "nonpayable", "inputs": [{"name": "newVotingPeriod", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "timelock", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract ERC20Votes"}]}, {"type": "function", "name": "updateQuorumNumerator", "stateMutability": "nonpayable", "inputs": [{"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "updateTimelock", "stateMutability": "nonpayable", "inputs": [{"name": "newTimelock", "type": "address", "internalType": "contract ICompoundTimelock"}], "outputs": []}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"state(uint256)": {"notice": "Overriding nightmare"}}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"COUNTING_MODE()": {"details": "See {IGovernor-COUNTING_MODE}."}, "__acceptAdmin()": {"details": "Accept admin right over the timelock."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "hasVoted(uint256,address)": {"details": "See {IGovernor-hasVoted}."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalEta(uint256)": {"details": "Public accessor to check the eta of a queued proposal"}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalVotes(uint256)": {"details": "Accessor to the internal vote counts."}, "propose(address[],uint256[],bytes[],string)": {"details": "See {IGovernor-propose}."}, "queue(address[],uint256[],bytes[],bytes32)": {"details": "Function to queue a proposal to the timelock."}, "setProposalThreshold(uint256)": {"details": "Update the proposal threshold. This operation can only be performed through a governance proposal. Emits a {ProposalThresholdSet} event."}, "setVotingDelay(uint256)": {"details": "Update the voting delay. This operation can only be performed through a governance proposal. Emits a {VotingDelaySet} event."}, "setVotingPeriod(uint256)": {"details": "Update the voting period. This operation can only be performed through a governance proposal. Emits a {VotingPeriodSet} event."}, "timelock()": {"details": "Public accessor to check the address of the timelock"}, "updateTimelock(address)": {"details": "Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates must be proposed, scheduled and executed using the {Governor} workflow. For security reason, the timelock must be handed over to another admin before setting up a new one. The two operations (hand over the timelock) and do the update can be batched in a single proposal. Note that if the timelock admin has been handed over in a previous operation, we refuse updates made through the timelock if admin of the timelock has already been accepted and the operation is executed outside the scope of governance."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "See {IGovernor-votingDelay}."}, "votingPeriod()": {"details": "See {IGovernor-votingPeriod}."}}, "version": 1}}, "GovernorTimelockControlMock": {"contractName": "GovernorTimelockControlMock", "sourceId": "mocks/GovernorTimelockControlMock.sol", "deploymentBytecode": {"bytecode": "0x6101606040523480156200001257600080fd5b506040516200326138038062003261833981016040819052620000359162000496565b808583868660008b806200005d6040805180820190915260018152603160f81b602082015290565b815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c0526101205250508251620001039250600091506020840190620003bd565b506200011190508362000161565b6200011c82620001a2565b620001278162000249565b5050506200013b816200028a60201b60201c565b506001600160a01b0316610140526200015481620002f3565b50505050505050620005f1565b60025460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600255565b60008111620002085760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b60648201526084015b60405180910390fd5b60035460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600355565b60045460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600455565b600554604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600580546001600160a01b0319166001600160a01b0392909216919091179055565b6064811115620003785760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a401620001ff565b600780549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b828054620003cb90620005b5565b90600052602060002090601f016020900481019282620003ef57600085556200043a565b82601f106200040a57805160ff19168380011785556200043a565b828001600101855582156200043a579182015b828111156200043a5782518255916020019190600101906200041d565b50620004489291506200044c565b5090565b5b808211156200044857600081556001016200044d565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200049157600080fd5b919050565b60008060008060008060c08789031215620004b057600080fd5b86516001600160401b0380821115620004c857600080fd5b818901915089601f830112620004dd57600080fd5b815181811115620004f257620004f262000463565b604051601f8201601f19908116603f011681019083821181831017156200051d576200051d62000463565b81604052828152602093508c848487010111156200053a57600080fd5b600091505b828210156200055e57848201840151818301850152908301906200053f565b82821115620005705760008484830101525b99506200058291505089820162000479565b965050506040870151935060608701519250620005a26080880162000479565b915060a087015190509295509295509295565b600181811c90821680620005ca57607f821691505b602082108103620005eb57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161014051612c076200065a600039600081816106ca0152818161166c0152611737015260006118f1015260006119400152600061191b015260006118740152600061189e015260006118c80152612c076000f3fe6080604052600436106101f25760003560e01c80637b3c71d31161010d578063c59057e4116100a0578063ea0217cf1161006f578063ea0217cf14610638578063eb9019d414610658578063ece40cc114610678578063f8ce560a14610698578063fc0c546a146106b857600080fd5b8063c59057e41461056c578063d33219b41461058c578063dd4e2ba5146105be578063deaaa7cc1461060457600080fd5b8063a890c910116100dc578063a890c910146104f7578063ab58fb8e14610517578063b58131b014610537578063c01f9e371461054c57600080fd5b80637b3c71d31461048e5780637d5e81e2146104ae57806397c3d334146104ce578063a7713a70146104e257600080fd5b80633bccf4fd11610185578063544ffc9c11610154578063544ffc9c146103cf57806354fd4d5014610424578063567813881461044e57806370b0f6601461046e57600080fd5b80633bccf4fd146103185780633e4f49e6146103385780634385963214610365578063452115d6146103af57600080fd5b8063160cbed7116101c1578063160cbed7146102b05780632656227d146102d05780632d63f693146102e35780633932abb11461030357600080fd5b806301ffc9a71461021a57806302a251a31461024f57806306f3f9e61461026e57806306fdde031461028e57600080fd5b3661021557306102006106ec565b6001600160a01b03161461021357600080fd5b005b600080fd5b34801561022657600080fd5b5061023a610235366004612133565b610705565b60405190151581526020015b60405180910390f35b34801561025b57600080fd5b506003545b604051908152602001610246565b34801561027a57600080fd5b5061021361028936600461215d565b610716565b34801561029a57600080fd5b506102a3610763565b60405161024691906121c3565b3480156102bc57600080fd5b506102606102cb36600461240e565b6107f5565b6102606102de36600461240e565b6109f6565b3480156102ef57600080fd5b506102606102fe36600461215d565b610ac9565b34801561030f57600080fd5b50600254610260565b34801561032457600080fd5b506102606103333660046124b3565b610b00565b34801561034457600080fd5b5061035861035336600461215d565b610b94565b6040516102469190612517565b34801561037157600080fd5b5061023a61038036600461253f565b60008281526008602090815260408083206001600160a01b038516845260030190915290205460ff1692915050565b3480156103bb57600080fd5b506102606103ca36600461240e565b610b9f565b3480156103db57600080fd5b506104096103ea36600461215d565b6000908152600860205260409020805460018201546002909201549092565b60408051938452602084019290925290820152606001610246565b34801561043057600080fd5b506040805180820190915260018152603160f81b60208201526102a3565b34801561045a57600080fd5b5061026061046936600461256f565b610bb6565b34801561047a57600080fd5b5061021361048936600461215d565b610bdf565b34801561049a57600080fd5b506102606104a936600461259b565b610c20565b3480156104ba57600080fd5b506102606104c9366004612621565b610c72565b3480156104da57600080fd5b506064610260565b3480156104ee57600080fd5b50600754610260565b34801561050357600080fd5b506102136105123660046126e1565b610f4f565b34801561052357600080fd5b5061026061053236600461215d565b610f90565b34801561054357600080fd5b5061026061102b565b34801561055857600080fd5b5061026061056736600461215d565b611036565b34801561057857600080fd5b5061026061058736600461240e565b611065565b34801561059857600080fd5b506005546001600160a01b03165b6040516001600160a01b039091168152602001610246565b3480156105ca57600080fd5b506040805180820190915260208082527f737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e908201526102a3565b34801561061057600080fd5b506102607f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b34801561064457600080fd5b5061021361065336600461215d565b61109f565b34801561066457600080fd5b506102606106733660046126fe565b6110e0565b34801561068457600080fd5b5061021361069336600461215d565b6110ec565b3480156106a457600080fd5b506102606106b336600461215d565b61112d565b3480156106c457600080fd5b506105a67f000000000000000000000000000000000000000000000000000000000000000081565b60006107006005546001600160a01b031690565b905090565b600061071082611138565b92915050565b61071e6106ec565b6001600160a01b0316336001600160a01b0316146107575760405162461bcd60e51b815260040161074e9061272a565b60405180910390fd5b6107608161115d565b50565b60606000805461077290612761565b80601f016020809104026020016040519081016040528092919081815260200182805461079e90612761565b80156107eb5780601f106107c0576101008083540402835291602001916107eb565b820191906000526020600020905b8154815290600101906020018083116107ce57829003601f168201915b5050505050905090565b60008061080486868686611065565b9050600461081182610b94565b600781111561082257610822612501565b1461083f5760405162461bcd60e51b815260040161074e90612795565b6005546040805163793d064960e11b815290516000926001600160a01b03169163f27a0c929160048083019260209291908290030181865afa158015610889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ad91906127d6565b60055460405163b1c5f42760e01b81529192506001600160a01b03169063b1c5f427906108e7908a908a908a906000908b906004016128b5565b602060405180830381865afa158015610904573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092891906127d6565b6000838152600660205260408082209290925560055491516308f2a0bb60e41b81526001600160a01b0390921691638f2a0bb091610973918b918b918b91908b908990600401612903565b600060405180830381600087803b15801561098d57600080fd5b505af11580156109a1573d6000803e3d6000fd5b505050507f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda28928282426109d39190612971565b604080519283526020830191909152015b60405180910390a15095945050505050565b600080610a0586868686611065565b90506000610a1282610b94565b90506004816007811115610a2857610a28612501565b1480610a4557506005816007811115610a4357610a43612501565b145b610a615760405162461bcd60e51b815260040161074e90612795565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a1610abf8288888888611225565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff851660608201526000908190610b6c90610b649060800160405160208183030381529060405280519060200120611239565b868686611287565b9050610b89878288604051806020016040528060008152506112a5565b979650505050505050565b6000610710826113b0565b6000610bad8585858561147e565b95945050505050565b600080339050610bd7848285604051806020016040528060008152506112a5565b949350505050565b610be76106ec565b6001600160a01b0316336001600160a01b031614610c175760405162461bcd60e51b815260040161074e9061272a565b6107608161148c565b600080339050610c6886828787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506112a592505050565b9695505050505050565b6000610c7c61102b565b610c8b33610673600143612989565b1015610d0b5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a40161074e565b6000610d208686868680519060200120611065565b90508451865114610d435760405162461bcd60e51b815260040161074e906129a0565b8351865114610d645760405162461bcd60e51b815260040161074e906129a0565b6000865111610db55760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c0000000000000000604482015260640161074e565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215610e355760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b606482015260840161074e565b6000610e48610e4360025490565b6114cd565b610e51436114cd565b610e5b91906129e1565b90506000610e6b610e4360035490565b610e7590836129e1565b835467ffffffffffffffff19166001600160401b038416178455905060018301805467ffffffffffffffff19166001600160401b0383161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b03811115610eed57610eed6121d6565b604051908082528060200260200182016040528015610f2057816020015b6060815260200190600190039081610f0b5790505b508c88888e604051610f3a99989796959493929190612a0c565b60405180910390a15091979650505050505050565b610f576106ec565b6001600160a01b0316336001600160a01b031614610f875760405162461bcd60e51b815260040161074e9061272a565b61076081611539565b60055460008281526006602052604080822054905163d45c443560e01b81526004810191909152909182916001600160a01b039091169063d45c443590602401602060405180830381865afa158015610fed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101191906127d6565b9050806001146110215780611024565b60005b9392505050565b600061070060045490565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610af1565b60008484848460405160200161107e9493929190612afb565b60408051601f19818403018152919052805160209091012095945050505050565b6110a76106ec565b6001600160a01b0316336001600160a01b0316146110d75760405162461bcd60e51b815260040161074e9061272a565b610760816115a2565b60006110248383611643565b6110f46106ec565b6001600160a01b0316336001600160a01b0316146111245760405162461bcd60e51b815260040161074e9061272a565b610760816116d9565b60006107108261171a565b60006001600160e01b03198216636e665ced60e01b14806107105750610710826117be565b60648111156111e05760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a40161074e565b600780549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b61123285858585856117f3565b5050505050565b6000610710611246611867565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006112988787878761198e565b91509150610abf81611a7b565b60008481526001602081905260408220906112bf87610b94565b60078111156112d0576112d0612501565b146113295760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b606482015260840161074e565b604080516020810190915281546001600160401b0316908190526000906113519087906110e0565b905061135f87878784611c31565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda48887848860405161139e9493929190612b46565b60405180910390a29695505050505050565b6000806113bc83611dab565b905060048160078111156113d2576113d2612501565b146113dd5792915050565b600083815260066020526040902054806113f8575092915050565b600554604051632ab0f52960e01b8152600481018390526001600160a01b0390911690632ab0f52990602401602060405180830381865afa158015611441573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114659190612b6e565b15611474575060079392505050565b5060059392505050565b6000610bad85858585611f0f565b60025460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600255565b60006001600160401b038211156115355760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b606482015260840161074e565b5090565b600554604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600580546001600160a01b0319166001600160a01b0392909216919091179055565b600081116116025760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b606482015260840161074e565b60035460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600355565b604051630748d63560e31b81526001600160a01b038381166004830152602482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690633a46b1a890604401602060405180830381865afa1580156116b5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102491906127d6565b60045460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600455565b60006064600754604051632394e7a360e21b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690638e539e8c90602401602060405180830381865afa158015611786573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117aa91906127d6565b6117b49190612b90565b6107109190612baf565b60006001600160e01b0319821663bf26d89760e01b148061071057506301ffc9a760e01b6001600160e01b0319831614610710565b60055460405163e38335e560e01b81526001600160a01b039091169063e38335e590349061182e9088908890889060009089906004016128b5565b6000604051808303818588803b15801561184757600080fd5b505af115801561185b573d6000803e3d6000fd5b50505050505050505050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156118c057507f000000000000000000000000000000000000000000000000000000000000000046145b156118ea57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156119c55750600090506003611a72565b8460ff16601b141580156119dd57508460ff16601c14155b156119ee5750600090506004611a72565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611a42573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611a6b57600060019250925050611a72565b9150600090505b94509492505050565b6000816004811115611a8f57611a8f612501565b03611a975750565b6001816004811115611aab57611aab612501565b03611af85760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161074e565b6002816004811115611b0c57611b0c612501565b03611b595760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161074e565b6003816004811115611b6d57611b6d612501565b03611bc55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161074e565b6004816004811115611bd957611bd9612501565b036107605760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161074e565b60008481526008602090815260408083206001600160a01b0387168452600381019092529091205460ff1615611cb95760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72566f74696e6753696d706c653a20766f746520616c726561604482015266191e4818d85cdd60ca1b606482015260840161074e565b6001600160a01b03841660009081526003820160205260409020805460ff1916600117905560ff8316611d055781816000016000828254611cfa9190612971565b909155506112329050565b60001960ff841601611d255781816001016000828254611cfa9190612971565b60011960ff841601611d455781816002016000828254611cfa9190612971565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b606482015260840161074e565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff80821615801594840194909452610100909104161515606082015290611e205750600792915050565b806060015115611e335750600292915050565b80515143906001600160401b031610611e4f5750600092915050565b43611e5c82602001515190565b6001600160401b031610611e735750600192915050565b611e808160200151611fc1565b15611ec157611e8e83611ff0565b8015611ead575060008381526008602052604090208054600190910154115b611eb8576003611024565b60049392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c206964000000604482015260640161074e565b50919050565b600080611f1e86868686612027565b60008181526006602052604090205490915015610bad576005546000828152600660205260409081902054905163c4d252f560e01b81526001600160a01b039092169163c4d252f591611f779160040190815260200190565b600060405180830381600087803b158015611f9157600080fd5b505af1158015611fa5573d6000803e3d6000fd5b5050506000828152600660205260408120555095945050505050565b6000611fd682516001600160401b0316151590565b801561071057505051436001600160401b03909116111590565b6000818152600860205260408120600281015460018201546120129190612971565b61201e6106b385610ac9565b11159392505050565b60008061203686868686611065565b9050600061204382610b94565b9050600281600781111561205957612059612501565b141580156120795750600681600781111561207657612076612501565b14155b80156120975750600781600781111561209457612094612501565b14155b6120e35760405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a2070726f706f73616c206e6f7420616374697665000000604482015260640161074e565b60008281526001602052604090819020600201805461ff001916610100179055517f789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c906109e49084815260200190565b60006020828403121561214557600080fd5b81356001600160e01b03198116811461102457600080fd5b60006020828403121561216f57600080fd5b5035919050565b6000815180845260005b8181101561219c57602081850181015186830182015201612180565b818111156121ae576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006110246020830184612176565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612214576122146121d6565b604052919050565b60006001600160401b03821115612235576122356121d6565b5060051b60200190565b6001600160a01b038116811461076057600080fd5b600082601f83011261226557600080fd5b8135602061227a6122758361221c565b6121ec565b82815260059290921b8401810191818101908684111561229957600080fd5b8286015b848110156122bd5780356122b08161223f565b835291830191830161229d565b509695505050505050565b600082601f8301126122d957600080fd5b813560206122e96122758361221c565b82815260059290921b8401810191818101908684111561230857600080fd5b8286015b848110156122bd578035835291830191830161230c565b60006001600160401b0383111561233c5761233c6121d6565b61234f601f8401601f19166020016121ec565b905082815283838301111561236357600080fd5b828260208301376000602084830101529392505050565b600082601f83011261238b57600080fd5b8135602061239b6122758361221c565b82815260059290921b840181019181810190868411156123ba57600080fd5b8286015b848110156122bd5780356001600160401b038111156123dd5760008081fd5b8701603f810189136123ef5760008081fd5b612400898683013560408401612323565b8452509183019183016123be565b6000806000806080858703121561242457600080fd5b84356001600160401b038082111561243b57600080fd5b61244788838901612254565b9550602087013591508082111561245d57600080fd5b612469888389016122c8565b9450604087013591508082111561247f57600080fd5b5061248c8782880161237a565b949793965093946060013593505050565b803560ff811681146124ae57600080fd5b919050565b600080600080600060a086880312156124cb57600080fd5b853594506124db6020870161249d565b93506124e96040870161249d565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b602081016008831061253957634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561255257600080fd5b8235915060208301356125648161223f565b809150509250929050565b6000806040838503121561258257600080fd5b823591506125926020840161249d565b90509250929050565b600080600080606085870312156125b157600080fd5b843593506125c16020860161249d565b925060408501356001600160401b03808211156125dd57600080fd5b818701915087601f8301126125f157600080fd5b81358181111561260057600080fd5b88602082850101111561261257600080fd5b95989497505060200194505050565b6000806000806080858703121561263757600080fd5b84356001600160401b038082111561264e57600080fd5b61265a88838901612254565b9550602087013591508082111561267057600080fd5b61267c888389016122c8565b9450604087013591508082111561269257600080fd5b61269e8883890161237a565b935060608701359150808211156126b457600080fd5b508501601f810187136126c657600080fd5b6126d587823560208401612323565b91505092959194509250565b6000602082840312156126f357600080fd5b81356110248161223f565b6000806040838503121561271157600080fd5b823561271c8161223f565b946020939093013593505050565b60208082526018908201527f476f7665726e6f723a206f6e6c79476f7665726e616e63650000000000000000604082015260600190565b600181811c9082168061277557607f821691505b602082108103611f0957634e487b7160e01b600052602260045260246000fd5b60208082526021908201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756040820152601b60fa1b606082015260800190565b6000602082840312156127e857600080fd5b5051919050565b600081518084526020808501945080840160005b838110156128285781516001600160a01b031687529582019590820190600101612803565b509495945050505050565b600081518084526020808501945080840160005b8381101561282857815187529582019590820190600101612847565b6000815180845260208085019450848260051b860182860160005b858110156128a8578383038952612896838351612176565b9885019892509084019060010161287e565b5090979650505050505050565b60a0815260006128c860a08301886127ef565b82810360208401526128da8188612833565b905082810360408401526128ee8187612863565b60608401959095525050608001529392505050565b60c08152600061291660c08301896127ef565b82810360208401526129288189612833565b9050828103604084015261293c8188612863565b60608401969096525050608081019290925260a0909101529392505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156129845761298461295b565b500190565b60008282101561299b5761299b61295b565b500390565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b03808316818516808303821115612a0357612a0361295b565b01949350505050565b60006101208b8352602060018060a01b038c1681850152816040850152612a358285018c6127ef565b91508382036060850152612a49828b612833565b915083820360808501528189518084528284019150828160051b850101838c0160005b83811015612a9a57601f19878403018552612a88838351612176565b94860194925090850190600101612a6c565b505086810360a0880152612aae818c612863565b945050505050612ac960c08401876001600160401b03169052565b6001600160401b03851660e0840152828103610100840152612aeb8185612176565b9c9b505050505050505050505050565b608081526000612b0e60808301876127ef565b8281036020840152612b208187612833565b90508281036040840152612b348186612863565b91505082606083015295945050505050565b84815260ff84166020820152826040820152608060608201526000610c686080830184612176565b600060208284031215612b8057600080fd5b8151801515811461102457600080fd5b6000816000190483118215151615612baa57612baa61295b565b500290565b600082612bcc57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220673f330a29382fbeb3d9604345086c306a2ddf590fb8786b3d9afe8e31e64af364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106101f25760003560e01c80637b3c71d31161010d578063c59057e4116100a0578063ea0217cf1161006f578063ea0217cf14610638578063eb9019d414610658578063ece40cc114610678578063f8ce560a14610698578063fc0c546a146106b857600080fd5b8063c59057e41461056c578063d33219b41461058c578063dd4e2ba5146105be578063deaaa7cc1461060457600080fd5b8063a890c910116100dc578063a890c910146104f7578063ab58fb8e14610517578063b58131b014610537578063c01f9e371461054c57600080fd5b80637b3c71d31461048e5780637d5e81e2146104ae57806397c3d334146104ce578063a7713a70146104e257600080fd5b80633bccf4fd11610185578063544ffc9c11610154578063544ffc9c146103cf57806354fd4d5014610424578063567813881461044e57806370b0f6601461046e57600080fd5b80633bccf4fd146103185780633e4f49e6146103385780634385963214610365578063452115d6146103af57600080fd5b8063160cbed7116101c1578063160cbed7146102b05780632656227d146102d05780632d63f693146102e35780633932abb11461030357600080fd5b806301ffc9a71461021a57806302a251a31461024f57806306f3f9e61461026e57806306fdde031461028e57600080fd5b3661021557306102006106ec565b6001600160a01b03161461021357600080fd5b005b600080fd5b34801561022657600080fd5b5061023a610235366004612133565b610705565b60405190151581526020015b60405180910390f35b34801561025b57600080fd5b506003545b604051908152602001610246565b34801561027a57600080fd5b5061021361028936600461215d565b610716565b34801561029a57600080fd5b506102a3610763565b60405161024691906121c3565b3480156102bc57600080fd5b506102606102cb36600461240e565b6107f5565b6102606102de36600461240e565b6109f6565b3480156102ef57600080fd5b506102606102fe36600461215d565b610ac9565b34801561030f57600080fd5b50600254610260565b34801561032457600080fd5b506102606103333660046124b3565b610b00565b34801561034457600080fd5b5061035861035336600461215d565b610b94565b6040516102469190612517565b34801561037157600080fd5b5061023a61038036600461253f565b60008281526008602090815260408083206001600160a01b038516845260030190915290205460ff1692915050565b3480156103bb57600080fd5b506102606103ca36600461240e565b610b9f565b3480156103db57600080fd5b506104096103ea36600461215d565b6000908152600860205260409020805460018201546002909201549092565b60408051938452602084019290925290820152606001610246565b34801561043057600080fd5b506040805180820190915260018152603160f81b60208201526102a3565b34801561045a57600080fd5b5061026061046936600461256f565b610bb6565b34801561047a57600080fd5b5061021361048936600461215d565b610bdf565b34801561049a57600080fd5b506102606104a936600461259b565b610c20565b3480156104ba57600080fd5b506102606104c9366004612621565b610c72565b3480156104da57600080fd5b506064610260565b3480156104ee57600080fd5b50600754610260565b34801561050357600080fd5b506102136105123660046126e1565b610f4f565b34801561052357600080fd5b5061026061053236600461215d565b610f90565b34801561054357600080fd5b5061026061102b565b34801561055857600080fd5b5061026061056736600461215d565b611036565b34801561057857600080fd5b5061026061058736600461240e565b611065565b34801561059857600080fd5b506005546001600160a01b03165b6040516001600160a01b039091168152602001610246565b3480156105ca57600080fd5b506040805180820190915260208082527f737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e908201526102a3565b34801561061057600080fd5b506102607f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b34801561064457600080fd5b5061021361065336600461215d565b61109f565b34801561066457600080fd5b506102606106733660046126fe565b6110e0565b34801561068457600080fd5b5061021361069336600461215d565b6110ec565b3480156106a457600080fd5b506102606106b336600461215d565b61112d565b3480156106c457600080fd5b506105a67f000000000000000000000000000000000000000000000000000000000000000081565b60006107006005546001600160a01b031690565b905090565b600061071082611138565b92915050565b61071e6106ec565b6001600160a01b0316336001600160a01b0316146107575760405162461bcd60e51b815260040161074e9061272a565b60405180910390fd5b6107608161115d565b50565b60606000805461077290612761565b80601f016020809104026020016040519081016040528092919081815260200182805461079e90612761565b80156107eb5780601f106107c0576101008083540402835291602001916107eb565b820191906000526020600020905b8154815290600101906020018083116107ce57829003601f168201915b5050505050905090565b60008061080486868686611065565b9050600461081182610b94565b600781111561082257610822612501565b1461083f5760405162461bcd60e51b815260040161074e90612795565b6005546040805163793d064960e11b815290516000926001600160a01b03169163f27a0c929160048083019260209291908290030181865afa158015610889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ad91906127d6565b60055460405163b1c5f42760e01b81529192506001600160a01b03169063b1c5f427906108e7908a908a908a906000908b906004016128b5565b602060405180830381865afa158015610904573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092891906127d6565b6000838152600660205260408082209290925560055491516308f2a0bb60e41b81526001600160a01b0390921691638f2a0bb091610973918b918b918b91908b908990600401612903565b600060405180830381600087803b15801561098d57600080fd5b505af11580156109a1573d6000803e3d6000fd5b505050507f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda28928282426109d39190612971565b604080519283526020830191909152015b60405180910390a15095945050505050565b600080610a0586868686611065565b90506000610a1282610b94565b90506004816007811115610a2857610a28612501565b1480610a4557506005816007811115610a4357610a43612501565b145b610a615760405162461bcd60e51b815260040161074e90612795565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a1610abf8288888888611225565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff851660608201526000908190610b6c90610b649060800160405160208183030381529060405280519060200120611239565b868686611287565b9050610b89878288604051806020016040528060008152506112a5565b979650505050505050565b6000610710826113b0565b6000610bad8585858561147e565b95945050505050565b600080339050610bd7848285604051806020016040528060008152506112a5565b949350505050565b610be76106ec565b6001600160a01b0316336001600160a01b031614610c175760405162461bcd60e51b815260040161074e9061272a565b6107608161148c565b600080339050610c6886828787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506112a592505050565b9695505050505050565b6000610c7c61102b565b610c8b33610673600143612989565b1015610d0b5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a40161074e565b6000610d208686868680519060200120611065565b90508451865114610d435760405162461bcd60e51b815260040161074e906129a0565b8351865114610d645760405162461bcd60e51b815260040161074e906129a0565b6000865111610db55760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c0000000000000000604482015260640161074e565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215610e355760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b606482015260840161074e565b6000610e48610e4360025490565b6114cd565b610e51436114cd565b610e5b91906129e1565b90506000610e6b610e4360035490565b610e7590836129e1565b835467ffffffffffffffff19166001600160401b038416178455905060018301805467ffffffffffffffff19166001600160401b0383161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b03811115610eed57610eed6121d6565b604051908082528060200260200182016040528015610f2057816020015b6060815260200190600190039081610f0b5790505b508c88888e604051610f3a99989796959493929190612a0c565b60405180910390a15091979650505050505050565b610f576106ec565b6001600160a01b0316336001600160a01b031614610f875760405162461bcd60e51b815260040161074e9061272a565b61076081611539565b60055460008281526006602052604080822054905163d45c443560e01b81526004810191909152909182916001600160a01b039091169063d45c443590602401602060405180830381865afa158015610fed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101191906127d6565b9050806001146110215780611024565b60005b9392505050565b600061070060045490565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610af1565b60008484848460405160200161107e9493929190612afb565b60408051601f19818403018152919052805160209091012095945050505050565b6110a76106ec565b6001600160a01b0316336001600160a01b0316146110d75760405162461bcd60e51b815260040161074e9061272a565b610760816115a2565b60006110248383611643565b6110f46106ec565b6001600160a01b0316336001600160a01b0316146111245760405162461bcd60e51b815260040161074e9061272a565b610760816116d9565b60006107108261171a565b60006001600160e01b03198216636e665ced60e01b14806107105750610710826117be565b60648111156111e05760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a40161074e565b600780549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b61123285858585856117f3565b5050505050565b6000610710611246611867565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006112988787878761198e565b91509150610abf81611a7b565b60008481526001602081905260408220906112bf87610b94565b60078111156112d0576112d0612501565b146113295760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b606482015260840161074e565b604080516020810190915281546001600160401b0316908190526000906113519087906110e0565b905061135f87878784611c31565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda48887848860405161139e9493929190612b46565b60405180910390a29695505050505050565b6000806113bc83611dab565b905060048160078111156113d2576113d2612501565b146113dd5792915050565b600083815260066020526040902054806113f8575092915050565b600554604051632ab0f52960e01b8152600481018390526001600160a01b0390911690632ab0f52990602401602060405180830381865afa158015611441573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114659190612b6e565b15611474575060079392505050565b5060059392505050565b6000610bad85858585611f0f565b60025460408051918252602082018390527fc565b045403dc03c2eea82b81a0465edad9e2e7fc4d97e11421c209da93d7a93910160405180910390a1600255565b60006001600160401b038211156115355760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b606482015260840161074e565b5090565b600554604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600580546001600160a01b0319166001600160a01b0392909216919091179055565b600081116116025760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f7253657474696e67733a20766f74696e6720706572696f6420604482015266746f6f206c6f7760c81b606482015260840161074e565b60035460408051918252602082018390527f7e3f7f0708a84de9203036abaa450dccc85ad5ff52f78c170f3edb55cf5e8828910160405180910390a1600355565b604051630748d63560e31b81526001600160a01b038381166004830152602482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690633a46b1a890604401602060405180830381865afa1580156116b5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102491906127d6565b60045460408051918252602082018390527fccb45da8d5717e6c4544694297c4ba5cf151d455c9bb0ed4fc7a38411bc05461910160405180910390a1600455565b60006064600754604051632394e7a360e21b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690638e539e8c90602401602060405180830381865afa158015611786573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117aa91906127d6565b6117b49190612b90565b6107109190612baf565b60006001600160e01b0319821663bf26d89760e01b148061071057506301ffc9a760e01b6001600160e01b0319831614610710565b60055460405163e38335e560e01b81526001600160a01b039091169063e38335e590349061182e9088908890889060009089906004016128b5565b6000604051808303818588803b15801561184757600080fd5b505af115801561185b573d6000803e3d6000fd5b50505050505050505050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156118c057507f000000000000000000000000000000000000000000000000000000000000000046145b156118ea57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156119c55750600090506003611a72565b8460ff16601b141580156119dd57508460ff16601c14155b156119ee5750600090506004611a72565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611a42573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611a6b57600060019250925050611a72565b9150600090505b94509492505050565b6000816004811115611a8f57611a8f612501565b03611a975750565b6001816004811115611aab57611aab612501565b03611af85760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161074e565b6002816004811115611b0c57611b0c612501565b03611b595760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161074e565b6003816004811115611b6d57611b6d612501565b03611bc55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161074e565b6004816004811115611bd957611bd9612501565b036107605760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161074e565b60008481526008602090815260408083206001600160a01b0387168452600381019092529091205460ff1615611cb95760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72566f74696e6753696d706c653a20766f746520616c726561604482015266191e4818d85cdd60ca1b606482015260840161074e565b6001600160a01b03841660009081526003820160205260409020805460ff1916600117905560ff8316611d055781816000016000828254611cfa9190612971565b909155506112329050565b60001960ff841601611d255781816001016000828254611cfa9190612971565b60011960ff841601611d455781816002016000828254611cfa9190612971565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b606482015260840161074e565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff80821615801594840194909452610100909104161515606082015290611e205750600792915050565b806060015115611e335750600292915050565b80515143906001600160401b031610611e4f5750600092915050565b43611e5c82602001515190565b6001600160401b031610611e735750600192915050565b611e808160200151611fc1565b15611ec157611e8e83611ff0565b8015611ead575060008381526008602052604090208054600190910154115b611eb8576003611024565b60049392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c206964000000604482015260640161074e565b50919050565b600080611f1e86868686612027565b60008181526006602052604090205490915015610bad576005546000828152600660205260409081902054905163c4d252f560e01b81526001600160a01b039092169163c4d252f591611f779160040190815260200190565b600060405180830381600087803b158015611f9157600080fd5b505af1158015611fa5573d6000803e3d6000fd5b5050506000828152600660205260408120555095945050505050565b6000611fd682516001600160401b0316151590565b801561071057505051436001600160401b03909116111590565b6000818152600860205260408120600281015460018201546120129190612971565b61201e6106b385610ac9565b11159392505050565b60008061203686868686611065565b9050600061204382610b94565b9050600281600781111561205957612059612501565b141580156120795750600681600781111561207657612076612501565b14155b80156120975750600781600781111561209457612094612501565b14155b6120e35760405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a2070726f706f73616c206e6f7420616374697665000000604482015260640161074e565b60008281526001602052604090819020600201805461ff001916610100179055517f789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c906109e49084815260200190565b60006020828403121561214557600080fd5b81356001600160e01b03198116811461102457600080fd5b60006020828403121561216f57600080fd5b5035919050565b6000815180845260005b8181101561219c57602081850181015186830182015201612180565b818111156121ae576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006110246020830184612176565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612214576122146121d6565b604052919050565b60006001600160401b03821115612235576122356121d6565b5060051b60200190565b6001600160a01b038116811461076057600080fd5b600082601f83011261226557600080fd5b8135602061227a6122758361221c565b6121ec565b82815260059290921b8401810191818101908684111561229957600080fd5b8286015b848110156122bd5780356122b08161223f565b835291830191830161229d565b509695505050505050565b600082601f8301126122d957600080fd5b813560206122e96122758361221c565b82815260059290921b8401810191818101908684111561230857600080fd5b8286015b848110156122bd578035835291830191830161230c565b60006001600160401b0383111561233c5761233c6121d6565b61234f601f8401601f19166020016121ec565b905082815283838301111561236357600080fd5b828260208301376000602084830101529392505050565b600082601f83011261238b57600080fd5b8135602061239b6122758361221c565b82815260059290921b840181019181810190868411156123ba57600080fd5b8286015b848110156122bd5780356001600160401b038111156123dd5760008081fd5b8701603f810189136123ef5760008081fd5b612400898683013560408401612323565b8452509183019183016123be565b6000806000806080858703121561242457600080fd5b84356001600160401b038082111561243b57600080fd5b61244788838901612254565b9550602087013591508082111561245d57600080fd5b612469888389016122c8565b9450604087013591508082111561247f57600080fd5b5061248c8782880161237a565b949793965093946060013593505050565b803560ff811681146124ae57600080fd5b919050565b600080600080600060a086880312156124cb57600080fd5b853594506124db6020870161249d565b93506124e96040870161249d565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b602081016008831061253957634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561255257600080fd5b8235915060208301356125648161223f565b809150509250929050565b6000806040838503121561258257600080fd5b823591506125926020840161249d565b90509250929050565b600080600080606085870312156125b157600080fd5b843593506125c16020860161249d565b925060408501356001600160401b03808211156125dd57600080fd5b818701915087601f8301126125f157600080fd5b81358181111561260057600080fd5b88602082850101111561261257600080fd5b95989497505060200194505050565b6000806000806080858703121561263757600080fd5b84356001600160401b038082111561264e57600080fd5b61265a88838901612254565b9550602087013591508082111561267057600080fd5b61267c888389016122c8565b9450604087013591508082111561269257600080fd5b61269e8883890161237a565b935060608701359150808211156126b457600080fd5b508501601f810187136126c657600080fd5b6126d587823560208401612323565b91505092959194509250565b6000602082840312156126f357600080fd5b81356110248161223f565b6000806040838503121561271157600080fd5b823561271c8161223f565b946020939093013593505050565b60208082526018908201527f476f7665726e6f723a206f6e6c79476f7665726e616e63650000000000000000604082015260600190565b600181811c9082168061277557607f821691505b602082108103611f0957634e487b7160e01b600052602260045260246000fd5b60208082526021908201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756040820152601b60fa1b606082015260800190565b6000602082840312156127e857600080fd5b5051919050565b600081518084526020808501945080840160005b838110156128285781516001600160a01b031687529582019590820190600101612803565b509495945050505050565b600081518084526020808501945080840160005b8381101561282857815187529582019590820190600101612847565b6000815180845260208085019450848260051b860182860160005b858110156128a8578383038952612896838351612176565b9885019892509084019060010161287e565b5090979650505050505050565b60a0815260006128c860a08301886127ef565b82810360208401526128da8188612833565b905082810360408401526128ee8187612863565b60608401959095525050608001529392505050565b60c08152600061291660c08301896127ef565b82810360208401526129288189612833565b9050828103604084015261293c8188612863565b60608401969096525050608081019290925260a0909101529392505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156129845761298461295b565b500190565b60008282101561299b5761299b61295b565b500390565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b03808316818516808303821115612a0357612a0361295b565b01949350505050565b60006101208b8352602060018060a01b038c1681850152816040850152612a358285018c6127ef565b91508382036060850152612a49828b612833565b915083820360808501528189518084528284019150828160051b850101838c0160005b83811015612a9a57601f19878403018552612a88838351612176565b94860194925090850190600101612a6c565b505086810360a0880152612aae818c612863565b945050505050612ac960c08401876001600160401b03169052565b6001600160401b03851660e0840152828103610100840152612aeb8185612176565b9c9b505050505050505050505050565b608081526000612b0e60808301876127ef565b8281036020840152612b208187612833565b90508281036040840152612b348186612863565b91505082606083015295945050505050565b84815260ff84166020820152826040820152608060608201526000610c686080830184612176565b600060208284031215612b8057600080fd5b8151801515811461102457600080fd5b6000816000190483118215151615612baa57612baa61295b565b500290565b600082612bcc57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220673f330a29382fbeb3d9604345086c306a2ddf590fb8786b3d9afe8e31e64af364736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name_", "type": "string", "internalType": "string"}, {"name": "token_", "type": "address", "internalType": "contract ERC20Votes"}, {"name": "votingDelay_", "type": "uint256", "internalType": "uint256"}, {"name": "votingPeriod_", "type": "uint256", "internalType": "uint256"}, {"name": "timelock_", "type": "address", "internalType": "contract TimelockController"}, {"name": "quorumNumerator_", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalQueued", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "eta", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalThresholdSet", "inputs": [{"name": "oldProposalThreshold", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newProposalThreshold", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "QuorumNumeratorUpdated", "inputs": [{"name": "oldQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TimelockChange", "inputs": [{"name": "oldTimelock", "type": "address", "internalType": "address", "indexed": false}, {"name": "newTimelock", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VotingDelaySet", "inputs": [{"name": "oldVotingDelay", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newVotingDelay", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VotingPeriodSet", "inputs": [{"name": "oldVotingPeriod", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newVotingPeriod", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "cancel", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalEta", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalVotes", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "againstVotes", "type": "uint256", "internalType": "uint256"}, {"name": "forVotes", "type": "uint256", "internalType": "uint256"}, {"name": "abstainVotes", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumDenominator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumNumerator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "setProposalThreshold", "stateMutability": "nonpayable", "inputs": [{"name": "newProposalThreshold", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setVotingDelay", "stateMutability": "nonpayable", "inputs": [{"name": "newVotingDelay", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setVotingPeriod", "stateMutability": "nonpayable", "inputs": [{"name": "newVotingPeriod", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "timelock", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract ERC20Votes"}]}, {"type": "function", "name": "updateQuorumNumerator", "stateMutability": "nonpayable", "inputs": [{"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "updateTimelock", "stateMutability": "nonpayable", "inputs": [{"name": "newTimelock", "type": "address", "internalType": "contract TimelockController"}], "outputs": []}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"state(uint256)": {"notice": "Overriding nightmare"}}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"COUNTING_MODE()": {"details": "See {IGovernor-COUNTING_MODE}."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "hasVoted(uint256,address)": {"details": "See {IGovernor-hasVoted}."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalEta(uint256)": {"details": "Public accessor to check the eta of a queued proposal"}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalVotes(uint256)": {"details": "Accessor to the internal vote counts."}, "propose(address[],uint256[],bytes[],string)": {"details": "See {IGovernor-propose}."}, "queue(address[],uint256[],bytes[],bytes32)": {"details": "Function to queue a proposal to the timelock."}, "setProposalThreshold(uint256)": {"details": "Update the proposal threshold. This operation can only be performed through a governance proposal. Emits a {ProposalThresholdSet} event."}, "setVotingDelay(uint256)": {"details": "Update the voting delay. This operation can only be performed through a governance proposal. Emits a {VotingDelaySet} event."}, "setVotingPeriod(uint256)": {"details": "Update the voting period. This operation can only be performed through a governance proposal. Emits a {VotingPeriodSet} event."}, "timelock()": {"details": "Public accessor to check the address of the timelock"}, "updateTimelock(address)": {"details": "Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates must be proposed, scheduled and executed using the {Governor} workflow."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "See {IGovernor-votingDelay}."}, "votingPeriod()": {"details": "See {IGovernor-votingPeriod}."}}, "version": 1}}, "ConstructorInitializableMock": {"contractName": "ConstructorInitializableMock", "sourceId": "mocks/InitializableMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600054610100900460ff1661002c5760005460ff1615610034565b6100346100d4565b61008a5760405162461bcd60e51b815260206004820152602e602482015260008051602061046983398151915260448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600054610100900460ff161580156100ac576000805461ffff19166101011790555b6100b46100ef565b6100bc6101ab565b80156100ce576000805461ff00191690555b50610231565b60006100e93061022b60201b6101ed1760201c565b15905090565b600054610100900460ff1661010a5760005460ff1615610112565b6101126100d4565b6101635760405162461bcd60e51b815260206004820152602e602482015260008051602061046983398151915260448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610081565b600054610100900460ff16158015610185576000805461ffff19166101011790555b6000805462ff000019166201000017905580156101a8576000805461ff00191690555b50565b600054610100900460ff166102165760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610081565b6000805463ff00000019166301000000179055565b3b151590565b610229806102406000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806310065ed2146100515780637cffe97a1461005b5780638129fc1c14610083578063c3b8ef2a1461008b575b600080fd5b61005961009e565b005b60005461006f906301000000900460ff1681565b604051901515815260200160405180910390f35b610059610123565b60005461006f9062010000900460ff1681565b600054610100900460ff1661010e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084015b60405180910390fd5b6000805463ff00000019166301000000179055565b600054610100900460ff1661013e5760005460ff1615610142565b303b155b6101a55760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610105565b600054610100900460ff161580156101c7576000805461ffff19166101011790555b6000805462ff000019166201000017905580156101ea576000805461ff00191690555b50565b3b15159056fea264697066735822122096ddec66bc01d9de91d87a5ad37592a6dbf4fe13115f137c30cd45f47669276f64736f6c634300080d0033496e697469616c697a61626c653a20636f6e747261637420697320616c726561"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806310065ed2146100515780637cffe97a1461005b5780638129fc1c14610083578063c3b8ef2a1461008b575b600080fd5b61005961009e565b005b60005461006f906301000000900460ff1681565b604051901515815260200160405180910390f35b610059610123565b60005461006f9062010000900460ff1681565b600054610100900460ff1661010e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084015b60405180910390fd5b6000805463ff00000019166301000000179055565b600054610100900460ff1661013e5760005460ff1615610142565b303b155b6101a55760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610105565b600054610100900460ff161580156101c7576000805461ffff19166101011790555b6000805462ff000019166201000017905580156101ea576000805461ff00191690555b50565b3b15159056fea264697066735822122096ddec66bc01d9de91d87a5ad37592a6dbf4fe13115f137c30cd45f47669276f64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": []}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "initializeOnlyInitializing", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "initializerRan", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "onlyInitializingRan", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "InitializableMock": {"contractName": "InitializableMock", "sourceId": "mocks/InitializableMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506104e3806100206000396000f3fe6080604052600436106100905760003560e01c80637cffe97a116100595780637cffe97a146101125780638129fc1c14610143578063a9cc471814610158578063c3b8ef2a1461016d578063e955c9ec1461018d57600080fd5b806218eaa8146100955780630c55699c146100aa57806310065ed2146100d357806368449d1b146100e857806376268ae8146100fd575b600080fd5b6100a86100a3366004610446565b6101a0565b005b3480156100b657600080fd5b506100c060015481565b6040519081526020015b60405180910390f35b3480156100df57600080fd5b506100a8610221565b3480156100f457600080fd5b506100a86102a1565b34801561010957600080fd5b506100a861031b565b34801561011e57600080fd5b50600054610133906301000000900460ff1681565b60405190151581526020016100ca565b34801561014f57600080fd5b506100a861037c565b34801561016457600080fd5b506100a86103fe565b34801561017957600080fd5b506000546101339062010000900460ff1681565b6100a861019b366004610446565b600155565b600054610100900460ff166101bb5760005460ff16156101bf565b303b155b6101e45760405162461bcd60e51b81526004016101db9061045f565b60405180910390fd5b600054610100900460ff16158015610206576000805461ffff19166101011790555b6001829055801561021d576000805461ff00191690555b5050565b600054610100900460ff1661028c5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016101db565b6000805463ff00000019166301000000179055565b600054610100900460ff166102bc5760005460ff16156102c0565b303b155b6102dc5760405162461bcd60e51b81526004016101db9061045f565b600054610100900460ff161580156102fe576000805461ffff19166101011790555b610306610221565b8015610318576000805461ff00191690555b50565b600054610100900460ff166103365760005460ff161561033a565b303b155b6103565760405162461bcd60e51b81526004016101db9061045f565b600054610100900460ff16158015610378576000805461ffff19166101011790555b6103065b600054610100900460ff166103975760005460ff161561039b565b303b155b6103b75760405162461bcd60e51b81526004016101db9061045f565b600054610100900460ff161580156103d9576000805461ffff19166101011790555b6000805462ff00001916620100001790558015610318576000805461ff001916905550565b60405162461bcd60e51b815260206004820181905260248201527f496e697469616c697a61626c654d6f636b20666f72636564206661696c75726560448201526064016101db565b60006020828403121561045857600080fd5b5035919050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b60608201526080019056fea2646970667358221220f6293bc5404ec3fae63efbe08c06608130740798c79b505cc12c536f43dfc22264736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100905760003560e01c80637cffe97a116100595780637cffe97a146101125780638129fc1c14610143578063a9cc471814610158578063c3b8ef2a1461016d578063e955c9ec1461018d57600080fd5b806218eaa8146100955780630c55699c146100aa57806310065ed2146100d357806368449d1b146100e857806376268ae8146100fd575b600080fd5b6100a86100a3366004610446565b6101a0565b005b3480156100b657600080fd5b506100c060015481565b6040519081526020015b60405180910390f35b3480156100df57600080fd5b506100a8610221565b3480156100f457600080fd5b506100a86102a1565b34801561010957600080fd5b506100a861031b565b34801561011e57600080fd5b50600054610133906301000000900460ff1681565b60405190151581526020016100ca565b34801561014f57600080fd5b506100a861037c565b34801561016457600080fd5b506100a86103fe565b34801561017957600080fd5b506000546101339062010000900460ff1681565b6100a861019b366004610446565b600155565b600054610100900460ff166101bb5760005460ff16156101bf565b303b155b6101e45760405162461bcd60e51b81526004016101db9061045f565b60405180910390fd5b600054610100900460ff16158015610206576000805461ffff19166101011790555b6001829055801561021d576000805461ff00191690555b5050565b600054610100900460ff1661028c5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016101db565b6000805463ff00000019166301000000179055565b600054610100900460ff166102bc5760005460ff16156102c0565b303b155b6102dc5760405162461bcd60e51b81526004016101db9061045f565b600054610100900460ff161580156102fe576000805461ffff19166101011790555b610306610221565b8015610318576000805461ff00191690555b50565b600054610100900460ff166103365760005460ff161561033a565b303b155b6103565760405162461bcd60e51b81526004016101db9061045f565b600054610100900460ff16158015610378576000805461ffff19166101011790555b6103065b600054610100900460ff166103975760005460ff161561039b565b303b155b6103b75760405162461bcd60e51b81526004016101db9061045f565b600054610100900460ff161580156103d9576000805461ffff19166101011790555b6000805462ff00001916620100001790558015610318576000805461ff001916905550565b60405162461bcd60e51b815260206004820181905260248201527f496e697469616c697a61626c654d6f636b20666f72636564206661696c75726560448201526064016101db565b60006020828403121561045857600080fd5b5035919050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b60608201526080019056fea2646970667358221220f6293bc5404ec3fae63efbe08c06608130740798c79b505cc12c536f43dfc22264736f6c634300080d0033"}, "abi": [{"type": "function", "name": "fail", "stateMutability": "pure", "inputs": [], "outputs": []}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "initializeOnlyInitializing", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "initializeWithX", "stateMutability": "payable", "inputs": [{"name": "_x", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "initializerNested", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "initializerRan", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "nonInitializable", "stateMutability": "payable", "inputs": [{"name": "_x", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "onlyInitializingNested", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "onlyInitializingRan", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "x", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This contract is a mock to test initializable functionality", "kind": "dev", "methods": {}, "title": "InitializableMock", "version": 1}}, "MathMock": {"contractName": "MathMock", "sourceId": "mocks/MathMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610215806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80632b7423ab146100515780636d5433e6146100765780637ae2b5c7146100895780639cb353271461009c575b600080fd5b61006461005f366004610159565b6100af565b60405190815260200160405180910390f35b610064610084366004610159565b6100c2565b610064610097366004610159565b6100ce565b6100646100aa366004610159565b6100da565b60006100bb83836100e6565b9392505050565b60006100bb8383610101565b60006100bb8383610118565b60006100bb8383610127565b60006100f56002848418610191565b6100bb908484166101a5565b60008183101561011157816100bb565b5090919050565b600081831061011157816100bb565b600061013382846101cb565b1561013f576001610142565b60005b60ff1661014f8385610191565b6100bb91906101a5565b6000806040838503121561016c57600080fd5b50508035926020909101359150565b634e487b7160e01b600052601260045260246000fd5b6000826101a0576101a061017b565b500490565b600082198211156101c657634e487b7160e01b600052601160045260246000fd5b500190565b6000826101da576101da61017b565b50069056fea264697066735822122047c54adc72f24650acc487f5e6660553d17c9eecb2cdfe83e37c6fadffb94d0f64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80632b7423ab146100515780636d5433e6146100765780637ae2b5c7146100895780639cb353271461009c575b600080fd5b61006461005f366004610159565b6100af565b60405190815260200160405180910390f35b610064610084366004610159565b6100c2565b610064610097366004610159565b6100ce565b6100646100aa366004610159565b6100da565b60006100bb83836100e6565b9392505050565b60006100bb8383610101565b60006100bb8383610118565b60006100bb8383610127565b60006100f56002848418610191565b6100bb908484166101a5565b60008183101561011157816100bb565b5090919050565b600081831061011157816100bb565b600061013382846101cb565b1561013f576001610142565b60005b60ff1661014f8385610191565b6100bb91906101a5565b6000806040838503121561016c57600080fd5b50508035926020909101359150565b634e487b7160e01b600052601260045260246000fd5b6000826101a0576101a061017b565b500490565b600082198211156101c657634e487b7160e01b600052601160045260246000fd5b500190565b6000826101da576101da61017b565b50069056fea264697066735822122047c54adc72f24650acc487f5e6660553d17c9eecb2cdfe83e37c6fadffb94d0f64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "average", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "ceilDiv", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "max", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "min", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "MerkleProofWrapper": {"contractName": "MerkleProofWrapper", "sourceId": "mocks/MerkleProofWrapper.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610325806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80635a9a49c71461003b57806362702a6b14610063575b600080fd5b61004e61004936600461021f565b610084565b60405190151581526020015b60405180910390f35b61007661007136600461026d565b610099565b60405190815260200161005a565b60006100918484846100ac565b949350505050565b60006100a583836100c2565b9392505050565b6000826100b985846100c2565b14949350505050565b600081815b84518110156101665760008582815181106100e4576100e46102b2565b60200260200101519050808311610126576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610153565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061015e816102c8565b9150506100c7565b509392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261019557600080fd5b8135602067ffffffffffffffff808311156101b2576101b261016e565b8260051b604051601f19603f830116810181811084821117156101d7576101d761016e565b6040529384528581018301938381019250878511156101f557600080fd5b83870191505b84821015610214578135835291830191908301906101fb565b979650505050505050565b60008060006060848603121561023457600080fd5b833567ffffffffffffffff81111561024b57600080fd5b61025786828701610184565b9660208601359650604090950135949350505050565b6000806040838503121561028057600080fd5b823567ffffffffffffffff81111561029757600080fd5b6102a385828601610184565b95602094909401359450505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016102e857634e487b7160e01b600052601160045260246000fd5b506001019056fea264697066735822122084c6b9d6126fb8667862db96a3b12294ca6c56a5c153fe5ee223939a49a1ebb964736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c80635a9a49c71461003b57806362702a6b14610063575b600080fd5b61004e61004936600461021f565b610084565b60405190151581526020015b60405180910390f35b61007661007136600461026d565b610099565b60405190815260200161005a565b60006100918484846100ac565b949350505050565b60006100a583836100c2565b9392505050565b6000826100b985846100c2565b14949350505050565b600081815b84518110156101665760008582815181106100e4576100e46102b2565b60200260200101519050808311610126576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610153565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061015e816102c8565b9150506100c7565b509392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261019557600080fd5b8135602067ffffffffffffffff808311156101b2576101b261016e565b8260051b604051601f19603f830116810181811084821117156101d7576101d761016e565b6040529384528581018301938381019250878511156101f557600080fd5b83870191505b84821015610214578135835291830191908301906101fb565b979650505050505050565b60008060006060848603121561023457600080fd5b833567ffffffffffffffff81111561024b57600080fd5b61025786828701610184565b9660208601359650604090950135949350505050565b6000806040838503121561028057600080fd5b823567ffffffffffffffff81111561029757600080fd5b6102a385828601610184565b95602094909401359450505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016102e857634e487b7160e01b600052601160045260246000fd5b506001019056fea264697066735822122084c6b9d6126fb8667862db96a3b12294ca6c56a5c153fe5ee223939a49a1ebb964736f6c634300080d0033"}, "abi": [{"type": "function", "name": "processProof", "stateMutability": "pure", "inputs": [{"name": "proof", "type": "bytes32[]", "internalType": "bytes32[]"}, {"name": "leaf", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "verify", "stateMutability": "pure", "inputs": [{"name": "proof", "type": "bytes32[]", "internalType": "bytes32[]"}, {"name": "root", "type": "bytes32", "internalType": "bytes32"}, {"name": "leaf", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "MulticallTest": {"contractName": "MulticallTest", "sourceId": "mocks/MulticallTest.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506105d8806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063bc548f7614610030575b600080fd5b61004361003e366004610295565b610045565b005b60008367ffffffffffffffff81111561006057610060610318565b60405190808252806020026020018201604052801561009357816020015b606081526020019060019003908161007e5790505b50905060005b8481101561015a578585828181106100b3576100b361032e565b90506020020160208101906100c89190610344565b8484838181106100da576100da61032e565b6040516001600160a01b039094166024850152602002919091013560448301525060640160408051601f198184030181529190526020810180516001600160e01b031663a9059cbb60e01b179052825183908390811061013c5761013c61032e565b6020026020010181905250808061015290610368565b915050610099565b50604051631592ca1b60e31b81526000906001600160a01b0388169063ac9650d89061018a9085906004016103bf565b6000604051808303816000875af11580156101a9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101d1919081019061046a565b905060005b8151811015610227578181815181106101f1576101f161032e565b602002602001015180602001905181019061020c9190610580565b61021557600080fd5b8061021f81610368565b9150506101d6565b5050505050505050565b6001600160a01b038116811461024657600080fd5b50565b60008083601f84011261025b57600080fd5b50813567ffffffffffffffff81111561027357600080fd5b6020830191508360208260051b850101111561028e57600080fd5b9250929050565b6000806000806000606086880312156102ad57600080fd5b85356102b881610231565b9450602086013567ffffffffffffffff808211156102d557600080fd5b6102e189838a01610249565b909650945060408801359150808211156102fa57600080fd5b5061030788828901610249565b969995985093965092949392505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561035657600080fd5b813561036181610231565b9392505050565b60006001820161038857634e487b7160e01b600052601160045260246000fd5b5060010190565b60005b838110156103aa578181015183820152602001610392565b838111156103b9576000848401525b50505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561042c57878503603f190184528151805180875261040d818989018a850161038f565b601f01601f1916959095018601945092850192908501906001016103e6565b5092979650505050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561046257610462610318565b604052919050565b6000602080838503121561047d57600080fd5b825167ffffffffffffffff8082111561049557600080fd5b8185019150601f86818401126104aa57600080fd5b8251828111156104bc576104bc610318565b8060051b6104cb868201610439565b918252848101860191868101908a8411156104e557600080fd5b87870192505b83831015610572578251868111156105035760008081fd5b8701603f81018c136105155760008081fd5b8881015160408882111561052b5761052b610318565b61053c828901601f19168c01610439565b8281528e828486010111156105515760008081fd5b610560838d830184870161038f565b855250505091870191908701906104eb565b9a9950505050505050505050565b60006020828403121561059257600080fd5b8151801515811461036157600080fdfea264697066735822122083aeb0c47fd03c4e9e45ce48b8318985bb09a61ed552d9643e04bcef1750042564736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063bc548f7614610030575b600080fd5b61004361003e366004610295565b610045565b005b60008367ffffffffffffffff81111561006057610060610318565b60405190808252806020026020018201604052801561009357816020015b606081526020019060019003908161007e5790505b50905060005b8481101561015a578585828181106100b3576100b361032e565b90506020020160208101906100c89190610344565b8484838181106100da576100da61032e565b6040516001600160a01b039094166024850152602002919091013560448301525060640160408051601f198184030181529190526020810180516001600160e01b031663a9059cbb60e01b179052825183908390811061013c5761013c61032e565b6020026020010181905250808061015290610368565b915050610099565b50604051631592ca1b60e31b81526000906001600160a01b0388169063ac9650d89061018a9085906004016103bf565b6000604051808303816000875af11580156101a9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101d1919081019061046a565b905060005b8151811015610227578181815181106101f1576101f161032e565b602002602001015180602001905181019061020c9190610580565b61021557600080fd5b8061021f81610368565b9150506101d6565b5050505050505050565b6001600160a01b038116811461024657600080fd5b50565b60008083601f84011261025b57600080fd5b50813567ffffffffffffffff81111561027357600080fd5b6020830191508360208260051b850101111561028e57600080fd5b9250929050565b6000806000806000606086880312156102ad57600080fd5b85356102b881610231565b9450602086013567ffffffffffffffff808211156102d557600080fd5b6102e189838a01610249565b909650945060408801359150808211156102fa57600080fd5b5061030788828901610249565b969995985093965092949392505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561035657600080fd5b813561036181610231565b9392505050565b60006001820161038857634e487b7160e01b600052601160045260246000fd5b5060010190565b60005b838110156103aa578181015183820152602001610392565b838111156103b9576000848401525b50505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561042c57878503603f190184528151805180875261040d818989018a850161038f565b601f01601f1916959095018601945092850192908501906001016103e6565b5092979650505050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561046257610462610318565b604052919050565b6000602080838503121561047d57600080fd5b825167ffffffffffffffff8082111561049557600080fd5b8185019150601f86818401126104aa57600080fd5b8251828111156104bc576104bc610318565b8060051b6104cb868201610439565b918252848101860191868101908a8411156104e557600080fd5b87870192505b83831015610572578251868111156105035760008081fd5b8701603f81018c136105155760008081fd5b8881015160408882111561052b5761052b610318565b61053c828901601f19168c01610439565b8281528e828486010111156105515760008081fd5b610560838d830184870161038f565b855250505091870191908701906104eb565b9a9950505050505050505050565b60006020828403121561059257600080fd5b8151801515811461036157600080fdfea264697066735822122083aeb0c47fd03c4e9e45ce48b8318985bb09a61ed552d9643e04bcef1750042564736f6c634300080d0033"}, "abi": [{"type": "function", "name": "testReturnValues", "stateMutability": "nonpayable", "inputs": [{"name": "multicallToken", "type": "address", "internalType": "contract MulticallTokenMock"}, {"name": "recipients", "type": "address[]", "internalType": "address[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "MulticallTokenMock": {"contractName": "MulticallTokenMock", "sourceId": "mocks/MulticallTokenMock.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b50604051620012cc380380620012cc833981016040819052620000349162000257565b6040518060400160405280600e81526020016d26bab63a34b1b0b6362a37b5b2b760911b815250604051806040016040528060038152602001621090d560ea1b81525033838383816003908051906020019062000093929190620001b1565b508051620000a9906004906020840190620001b1565b505050620000be8282620000c960201b60201c565b5050505050620002d4565b6001600160a01b038216620001245760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b806002600082825462000138919062000271565b90915550506001600160a01b038216600090815260208190526040812080548392906200016790849062000271565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001bf9062000298565b90600052602060002090601f016020900481019282620001e357600085556200022e565b82601f10620001fe57805160ff19168380011785556200022e565b828001600101855582156200022e579182015b828111156200022e57825182559160200191906001019062000211565b506200023c92915062000240565b5090565b5b808211156200023c576000815560010162000241565b6000602082840312156200026a57600080fd5b5051919050565b600082198211156200029357634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620002ad57607f821691505b602082108103620002ce57634e487b7160e01b600052602260045260246000fd5b50919050565b610fe880620002e46000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806356189cb411610097578063a457c2d711610066578063a457c2d71461020c578063a9059cbb1461021f578063ac9650d814610232578063dd62ed3e1461025257600080fd5b806356189cb4146101b557806370a08231146101c857806395d89b41146101f15780639dc29fac146101f957600080fd5b806323b872dd116100d357806323b872dd1461016d578063313ce56714610180578063395093511461018f57806340c10f19146101a257600080fd5b806306fdde0314610105578063095ea7b31461012357806318160ddd14610146578063222f5be014610158575b600080fd5b61010d61028b565b60405161011a9190610ca3565b60405180910390f35b610136610131366004610cd2565b61031d565b604051901515815260200161011a565b6002545b60405190815260200161011a565b61016b610166366004610cfc565b610333565b005b61013661017b366004610cfc565b610343565b6040516012815260200161011a565b61013661019d366004610cd2565b6103f4565b61016b6101b0366004610cd2565b610430565b61016b6101c3366004610cfc565b61043e565b61014a6101d6366004610d38565b6001600160a01b031660009081526020819052604090205490565b61010d610449565b61016b610207366004610cd2565b610458565b61013661021a366004610cd2565b610462565b61013661022d366004610cd2565b6104fb565b610245610240366004610d53565b610508565b60405161011a9190610dc8565b61014a610260366004610e2a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461029a90610e5d565b80601f01602080910402602001604051908101604052809291908181526020018280546102c690610e5d565b80156103135780601f106102e857610100808354040283529160200191610313565b820191906000526020600020905b8154815290600101906020018083116102f657829003601f168201915b5050505050905090565b600061032a3384846105fd565b50600192915050565b61033e838383610721565b505050565b6000610350848484610721565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103da5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103e785338584036105fd565b60019150505b9392505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161032a91859061042b908690610ead565b6105fd565b61043a82826108f1565b5050565b61033e8383836105fd565b60606004805461029a90610e5d565b61043a82826109d0565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104e45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103d1565b6104f133858584036105fd565b5060019392505050565b600061032a338484610721565b60608167ffffffffffffffff81111561052357610523610ec5565b60405190808252806020026020018201604052801561055657816020015b60608152602001906001900390816105415790505b50905060005b828110156105f6576105c63085858481811061057a5761057a610edb565b905060200281019061058c9190610ef1565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610b1e92505050565b8282815181106105d8576105d8610edb565b602002602001018190525080806105ee90610f3f565b91505061055c565b5092915050565b6001600160a01b03831661065f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103d1565b6001600160a01b0382166106c05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103d1565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166107855760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103d1565b6001600160a01b0382166107e75760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103d1565b6001600160a01b0383166000908152602081905260409020548181101561085f5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103d1565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610896908490610ead565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516108e291815260200190565b60405180910390a35b50505050565b6001600160a01b0382166109475760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103d1565b80600260008282546109599190610ead565b90915550506001600160a01b03821660009081526020819052604081208054839290610986908490610ead565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610a305760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103d1565b6001600160a01b03821660009081526020819052604090205481811015610aa45760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103d1565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610ad3908490610f58565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60606103ed8383604051806060016040528060278152602001610f8c602791396060833b610b9d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016103d1565b600080856001600160a01b031685604051610bb89190610f6f565b600060405180830381855af49150503d8060008114610bf3576040519150601f19603f3d011682016040523d82523d6000602084013e610bf8565b606091505b5091509150610c08828286610c12565b9695505050505050565b60608315610c215750816103ed565b825115610c315782518084602001fd5b8160405162461bcd60e51b81526004016103d19190610ca3565b60005b83811015610c66578181015183820152602001610c4e565b838111156108eb5750506000910152565b60008151808452610c8f816020860160208601610c4b565b601f01601f19169290920160200192915050565b6020815260006103ed6020830184610c77565b80356001600160a01b0381168114610ccd57600080fd5b919050565b60008060408385031215610ce557600080fd5b610cee83610cb6565b946020939093013593505050565b600080600060608486031215610d1157600080fd5b610d1a84610cb6565b9250610d2860208501610cb6565b9150604084013590509250925092565b600060208284031215610d4a57600080fd5b6103ed82610cb6565b60008060208385031215610d6657600080fd5b823567ffffffffffffffff80821115610d7e57600080fd5b818501915085601f830112610d9257600080fd5b813581811115610da157600080fd5b8660208260051b8501011115610db657600080fd5b60209290920196919550909350505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015610e1d57603f19888603018452610e0b858351610c77565b94509285019290850190600101610def565b5092979650505050505050565b60008060408385031215610e3d57600080fd5b610e4683610cb6565b9150610e5460208401610cb6565b90509250929050565b600181811c90821680610e7157607f821691505b602082108103610e9157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610ec057610ec0610e97565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112610f0857600080fd5b83018035915067ffffffffffffffff821115610f2357600080fd5b602001915036819003821315610f3857600080fd5b9250929050565b600060018201610f5157610f51610e97565b5060010190565b600082821015610f6a57610f6a610e97565b500390565b60008251610f81818460208701610c4b565b919091019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220472dc8e6ba980c77ea0ca2b201967690f1745a26b0624541c7adfae71fbb914364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c806356189cb411610097578063a457c2d711610066578063a457c2d71461020c578063a9059cbb1461021f578063ac9650d814610232578063dd62ed3e1461025257600080fd5b806356189cb4146101b557806370a08231146101c857806395d89b41146101f15780639dc29fac146101f957600080fd5b806323b872dd116100d357806323b872dd1461016d578063313ce56714610180578063395093511461018f57806340c10f19146101a257600080fd5b806306fdde0314610105578063095ea7b31461012357806318160ddd14610146578063222f5be014610158575b600080fd5b61010d61028b565b60405161011a9190610ca3565b60405180910390f35b610136610131366004610cd2565b61031d565b604051901515815260200161011a565b6002545b60405190815260200161011a565b61016b610166366004610cfc565b610333565b005b61013661017b366004610cfc565b610343565b6040516012815260200161011a565b61013661019d366004610cd2565b6103f4565b61016b6101b0366004610cd2565b610430565b61016b6101c3366004610cfc565b61043e565b61014a6101d6366004610d38565b6001600160a01b031660009081526020819052604090205490565b61010d610449565b61016b610207366004610cd2565b610458565b61013661021a366004610cd2565b610462565b61013661022d366004610cd2565b6104fb565b610245610240366004610d53565b610508565b60405161011a9190610dc8565b61014a610260366004610e2a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461029a90610e5d565b80601f01602080910402602001604051908101604052809291908181526020018280546102c690610e5d565b80156103135780601f106102e857610100808354040283529160200191610313565b820191906000526020600020905b8154815290600101906020018083116102f657829003601f168201915b5050505050905090565b600061032a3384846105fd565b50600192915050565b61033e838383610721565b505050565b6000610350848484610721565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103da5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103e785338584036105fd565b60019150505b9392505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161032a91859061042b908690610ead565b6105fd565b61043a82826108f1565b5050565b61033e8383836105fd565b60606004805461029a90610e5d565b61043a82826109d0565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104e45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103d1565b6104f133858584036105fd565b5060019392505050565b600061032a338484610721565b60608167ffffffffffffffff81111561052357610523610ec5565b60405190808252806020026020018201604052801561055657816020015b60608152602001906001900390816105415790505b50905060005b828110156105f6576105c63085858481811061057a5761057a610edb565b905060200281019061058c9190610ef1565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610b1e92505050565b8282815181106105d8576105d8610edb565b602002602001018190525080806105ee90610f3f565b91505061055c565b5092915050565b6001600160a01b03831661065f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103d1565b6001600160a01b0382166106c05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103d1565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166107855760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103d1565b6001600160a01b0382166107e75760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103d1565b6001600160a01b0383166000908152602081905260409020548181101561085f5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103d1565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610896908490610ead565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516108e291815260200190565b60405180910390a35b50505050565b6001600160a01b0382166109475760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103d1565b80600260008282546109599190610ead565b90915550506001600160a01b03821660009081526020819052604081208054839290610986908490610ead565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610a305760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103d1565b6001600160a01b03821660009081526020819052604090205481811015610aa45760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103d1565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610ad3908490610f58565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60606103ed8383604051806060016040528060278152602001610f8c602791396060833b610b9d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016103d1565b600080856001600160a01b031685604051610bb89190610f6f565b600060405180830381855af49150503d8060008114610bf3576040519150601f19603f3d011682016040523d82523d6000602084013e610bf8565b606091505b5091509150610c08828286610c12565b9695505050505050565b60608315610c215750816103ed565b825115610c315782518084602001fd5b8160405162461bcd60e51b81526004016103d19190610ca3565b60005b83811015610c66578181015183820152602001610c4e565b838111156108eb5750506000910152565b60008151808452610c8f816020860160208601610c4b565b601f01601f19169290920160200192915050565b6020815260006103ed6020830184610c77565b80356001600160a01b0381168114610ccd57600080fd5b919050565b60008060408385031215610ce557600080fd5b610cee83610cb6565b946020939093013593505050565b600080600060608486031215610d1157600080fd5b610d1a84610cb6565b9250610d2860208501610cb6565b9150604084013590509250925092565b600060208284031215610d4a57600080fd5b6103ed82610cb6565b60008060208385031215610d6657600080fd5b823567ffffffffffffffff80821115610d7e57600080fd5b818501915085601f830112610d9257600080fd5b813581811115610da157600080fd5b8660208260051b8501011115610db657600080fd5b60209290920196919550909350505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015610e1d57603f19888603018452610e0b858351610c77565b94509285019290850190600101610def565b5092979650505050505050565b60008060408385031215610e3d57600080fd5b610e4683610cb6565b9150610e5460208401610cb6565b90509250929050565b600181811c90821680610e7157607f821691505b602082108103610e9157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610ec057610ec0610e97565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112610f0857600080fd5b83018035915067ffffffffffffffff821115610f2357600080fd5b602001915036819003821315610f3857600080fd5b9250929050565b600060018201610f5157610f51610e97565b5060010190565b600082821015610f6a57610f6a610e97565b500390565b60008251610f81818460208701610c4b565b919091019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220472dc8e6ba980c77ea0ca2b201967690f1745a26b0624541c7adfae71fbb914364736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "initialBalance", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "approveInternal", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "multicall", "stateMutability": "nonpayable", "inputs": [{"name": "data", "type": "bytes[]", "internalType": "bytes[]"}], "outputs": [{"name": "results", "type": "bytes[]", "internalType": "bytes[]"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferInternal", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "multicall(bytes[])": {"details": "Receives and executes a batch of function calls on this contract."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "SampleChild": {"contractName": "SampleChild", "sourceId": "mocks/MultipleInheritanceInitializableMocks.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506109f9806100206000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80638beaf7d7116100665780638beaf7d714610108578063ed7dfee31461011b578063f62d188814610124578063fa39851f14610137578063fe4b84df1461014c57600080fd5b80631c8aca3b146100a3578063237b5e96146100bf5780634a6c9db6146100c85780636f2edbd2146100eb5780638129fc1c14610100575b600080fd5b6100ac60035481565b6040519081526020015b60405180910390f35b6100ac60045481565b6000546100db9062010000900460ff1681565b60405190151581526020016100b6565b6100fe6100f93660046107a9565b61015f565b005b6100fe6101ea565b6100fe610116366004610800565b610264565b6100ac60015481565b6100fe610132366004610845565b6102e2565b61013f61035e565b6040516100b69190610882565b6100fe61015a3660046108d7565b6103ec565b600054610100900460ff1661017a5760005460ff161561017e565b303b155b6101a35760405162461bcd60e51b815260040161019a906108f0565b60405180910390fd5b600054610100900460ff161580156101c5576000805461ffff19166101011790555b6101d185858585610452565b80156101e3576000805461ff00191690555b5050505050565b600054610100900460ff166102055760005460ff1615610209565b303b155b6102255760405162461bcd60e51b815260040161019a906108f0565b600054610100900460ff16158015610247576000805461ffff19166101011790555b61024f61049b565b8015610261576000805461ff00191690555b50565b600054610100900460ff1661027f5760005460ff1615610283565b303b155b61029f5760405162461bcd60e51b815260040161019a906108f0565b600054610100900460ff161580156102c1576000805461ffff19166101011790555b6102cb83836104cc565b80156102dd576000805461ff00191690555b505050565b600054610100900460ff166102fd5760005460ff1615610301565b303b155b61031d5760405162461bcd60e51b815260040161019a906108f0565b600054610100900460ff1615801561033f576000805461ffff19166101011790555b61034882610505565b801561035a576000805461ff00191690555b5050565b6002805461036b9061093e565b80601f01602080910402602001604051908101604052809291908181526020018280546103979061093e565b80156103e45780601f106103b9576101008083540402835291602001916103e4565b820191906000526020600020905b8154815290600101906020018083116103c757829003601f168201915b505050505081565b600054610100900460ff166104075760005460ff161561040b565b303b155b6104275760405162461bcd60e51b815260040161019a906108f0565b600054610100900460ff16158015610449576000805461ffff19166101011790555b6103488261053d565b600054610100900460ff166104795760405162461bcd60e51b815260040161019a90610978565b6104828461053d565b61048c83836104cc565b61049581610575565b50505050565b600054610100900460ff166104c25760405162461bcd60e51b815260040161019a90610978565b6104ca6105a1565b565b600054610100900460ff166104f35760405162461bcd60e51b815260040161019a90610978565b6104fc82610505565b61035a816105db565b600054610100900460ff1661052c5760405162461bcd60e51b815260040161019a90610978565b61053461049b565b61026181610607565b600054610100900460ff166105645760405162461bcd60e51b815260040161019a90610978565b61056c61049b565b61026181610641565b600054610100900460ff1661059c5760405162461bcd60e51b815260040161019a90610978565b600455565b600054610100900460ff166105c85760405162461bcd60e51b815260040161019a90610978565b6000805462ff0000191662010000179055565b600054610100900460ff166106025760405162461bcd60e51b815260040161019a90610978565b600355565b600054610100900460ff1661062e5760405162461bcd60e51b815260040161019a90610978565b805161035a90600290602084019061066d565b600054610100900460ff166106685760405162461bcd60e51b815260040161019a90610978565b600155565b8280546106799061093e565b90600052602060002090601f01602090048101928261069b57600085556106e1565b82601f106106b457805160ff19168380011785556106e1565b828001600101855582156106e1579182015b828111156106e15782518255916020019190600101906106c6565b506106ed9291506106f1565b5090565b5b808211156106ed57600081556001016106f2565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261072d57600080fd5b813567ffffffffffffffff8082111561074857610748610706565b604051601f8301601f19908116603f0116810190828211818310171561077057610770610706565b8160405283815286602085880101111561078957600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080608085870312156107bf57600080fd5b84359350602085013567ffffffffffffffff8111156107dd57600080fd5b6107e98782880161071c565b949794965050505060408301359260600135919050565b6000806040838503121561081357600080fd5b823567ffffffffffffffff81111561082a57600080fd5b6108368582860161071c565b95602094909401359450505050565b60006020828403121561085757600080fd5b813567ffffffffffffffff81111561086e57600080fd5b61087a8482850161071c565b949350505050565b600060208083528351808285015260005b818110156108af57858101830151858201604001528201610893565b818111156108c1576000604083870101525b50601f01601f1916929092016040019392505050565b6000602082840312156108e957600080fd5b5035919050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600181811c9082168061095257607f821691505b60208210810361097257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220c2fd339773715194229d81ec3c78415aa6fc5497174be7de0bcd6738f9f35a2264736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061009e5760003560e01c80638beaf7d7116100665780638beaf7d714610108578063ed7dfee31461011b578063f62d188814610124578063fa39851f14610137578063fe4b84df1461014c57600080fd5b80631c8aca3b146100a3578063237b5e96146100bf5780634a6c9db6146100c85780636f2edbd2146100eb5780638129fc1c14610100575b600080fd5b6100ac60035481565b6040519081526020015b60405180910390f35b6100ac60045481565b6000546100db9062010000900460ff1681565b60405190151581526020016100b6565b6100fe6100f93660046107a9565b61015f565b005b6100fe6101ea565b6100fe610116366004610800565b610264565b6100ac60015481565b6100fe610132366004610845565b6102e2565b61013f61035e565b6040516100b69190610882565b6100fe61015a3660046108d7565b6103ec565b600054610100900460ff1661017a5760005460ff161561017e565b303b155b6101a35760405162461bcd60e51b815260040161019a906108f0565b60405180910390fd5b600054610100900460ff161580156101c5576000805461ffff19166101011790555b6101d185858585610452565b80156101e3576000805461ff00191690555b5050505050565b600054610100900460ff166102055760005460ff1615610209565b303b155b6102255760405162461bcd60e51b815260040161019a906108f0565b600054610100900460ff16158015610247576000805461ffff19166101011790555b61024f61049b565b8015610261576000805461ff00191690555b50565b600054610100900460ff1661027f5760005460ff1615610283565b303b155b61029f5760405162461bcd60e51b815260040161019a906108f0565b600054610100900460ff161580156102c1576000805461ffff19166101011790555b6102cb83836104cc565b80156102dd576000805461ff00191690555b505050565b600054610100900460ff166102fd5760005460ff1615610301565b303b155b61031d5760405162461bcd60e51b815260040161019a906108f0565b600054610100900460ff1615801561033f576000805461ffff19166101011790555b61034882610505565b801561035a576000805461ff00191690555b5050565b6002805461036b9061093e565b80601f01602080910402602001604051908101604052809291908181526020018280546103979061093e565b80156103e45780601f106103b9576101008083540402835291602001916103e4565b820191906000526020600020905b8154815290600101906020018083116103c757829003601f168201915b505050505081565b600054610100900460ff166104075760005460ff161561040b565b303b155b6104275760405162461bcd60e51b815260040161019a906108f0565b600054610100900460ff16158015610449576000805461ffff19166101011790555b6103488261053d565b600054610100900460ff166104795760405162461bcd60e51b815260040161019a90610978565b6104828461053d565b61048c83836104cc565b61049581610575565b50505050565b600054610100900460ff166104c25760405162461bcd60e51b815260040161019a90610978565b6104ca6105a1565b565b600054610100900460ff166104f35760405162461bcd60e51b815260040161019a90610978565b6104fc82610505565b61035a816105db565b600054610100900460ff1661052c5760405162461bcd60e51b815260040161019a90610978565b61053461049b565b61026181610607565b600054610100900460ff166105645760405162461bcd60e51b815260040161019a90610978565b61056c61049b565b61026181610641565b600054610100900460ff1661059c5760405162461bcd60e51b815260040161019a90610978565b600455565b600054610100900460ff166105c85760405162461bcd60e51b815260040161019a90610978565b6000805462ff0000191662010000179055565b600054610100900460ff166106025760405162461bcd60e51b815260040161019a90610978565b600355565b600054610100900460ff1661062e5760405162461bcd60e51b815260040161019a90610978565b805161035a90600290602084019061066d565b600054610100900460ff166106685760405162461bcd60e51b815260040161019a90610978565b600155565b8280546106799061093e565b90600052602060002090601f01602090048101928261069b57600085556106e1565b82601f106106b457805160ff19168380011785556106e1565b828001600101855582156106e1579182015b828111156106e15782518255916020019190600101906106c6565b506106ed9291506106f1565b5090565b5b808211156106ed57600081556001016106f2565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261072d57600080fd5b813567ffffffffffffffff8082111561074857610748610706565b604051601f8301601f19908116603f0116810190828211818310171561077057610770610706565b8160405283815286602085880101111561078957600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080608085870312156107bf57600080fd5b84359350602085013567ffffffffffffffff8111156107dd57600080fd5b6107e98782880161071c565b949794965050505060408301359260600135919050565b6000806040838503121561081357600080fd5b823567ffffffffffffffff81111561082a57600080fd5b6108368582860161071c565b95602094909401359450505050565b60006020828403121561085757600080fd5b813567ffffffffffffffff81111561086e57600080fd5b61087a8482850161071c565b949350505050565b600060208083528351808285015260005b818110156108af57858101830151858201604001528201610893565b818111156108c1576000604083870101525b50601f01601f1916929092016040019392505050565b6000602082840312156108e957600080fd5b5035919050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600181811c9082168061095257607f821691505b60208210810361097257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220c2fd339773715194229d81ec3c78415aa6fc5497174be7de0bcd6738f9f35a2264736f6c634300080d0033"}, "abi": [{"type": "function", "name": "child", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "father", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "gramps", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [{"name": "_mother", "type": "uint256", "internalType": "uint256"}, {"name": "_gramps", "type": "string", "internalType": "string"}, {"name": "_father", "type": "uint256", "internalType": "uint256"}, {"name": "_child", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [{"name": "_gramps", "type": "string", "internalType": "string"}, {"name": "_father", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "isHuman", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mother", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "notice": "Child extends from mother, father (gramps)", "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "SampleFather": {"contractName": "SampleFather", "sourceId": "mocks/MultipleInheritanceInitializableMocks.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061074f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631c8aca3b146100675780634a6c9db6146100835780638129fc1c146100a65780638beaf7d7146100b0578063f62d1888146100c3578063fa39851f146100d6575b600080fd5b61007060025481565b6040519081526020015b60405180910390f35b6000546100969062010000900460ff1681565b604051901515815260200161007a565b6100ae6100eb565b005b6100ae6100be36600461056f565b61016e565b6100ae6100d13660046105b4565b6101ec565b6100de610268565b60405161007a91906105f1565b600054610100900460ff166101065760005460ff161561010a565b303b155b61012f5760405162461bcd60e51b815260040161012690610646565b60405180910390fd5b600054610100900460ff16158015610151576000805461ffff19166101011790555b6101596102f6565b801561016b576000805461ff00191690555b50565b600054610100900460ff166101895760005460ff161561018d565b303b155b6101a95760405162461bcd60e51b815260040161012690610646565b600054610100900460ff161580156101cb576000805461ffff19166101011790555b6101d58383610327565b80156101e7576000805461ff00191690555b505050565b600054610100900460ff166102075760005460ff161561020b565b303b155b6102275760405162461bcd60e51b815260040161012690610646565b600054610100900460ff16158015610249576000805461ffff19166101011790555b61025282610360565b8015610264576000805461ff00191690555b5050565b6001805461027590610694565b80601f01602080910402602001604051908101604052809291908181526020018280546102a190610694565b80156102ee5780601f106102c3576101008083540402835291602001916102ee565b820191906000526020600020905b8154815290600101906020018083116102d157829003601f168201915b505050505081565b600054610100900460ff1661031d5760405162461bcd60e51b8152600401610126906106ce565b610325610398565b565b600054610100900460ff1661034e5760405162461bcd60e51b8152600401610126906106ce565b61035782610360565b610264816103d2565b600054610100900460ff166103875760405162461bcd60e51b8152600401610126906106ce565b61038f6102f6565b61016b816103fe565b600054610100900460ff166103bf5760405162461bcd60e51b8152600401610126906106ce565b6000805462ff0000191662010000179055565b600054610100900460ff166103f95760405162461bcd60e51b8152600401610126906106ce565b600255565b600054610100900460ff166104255760405162461bcd60e51b8152600401610126906106ce565b805161026490600190602084019082805461043f90610694565b90600052602060002090601f01602090048101928261046157600085556104a7565b82601f1061047a57805160ff19168380011785556104a7565b828001600101855582156104a7579182015b828111156104a757825182559160200191906001019061048c565b506104b39291506104b7565b5090565b5b808211156104b357600081556001016104b8565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126104f357600080fd5b813567ffffffffffffffff8082111561050e5761050e6104cc565b604051601f8301601f19908116603f01168101908282118183101715610536576105366104cc565b8160405283815286602085880101111561054f57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561058257600080fd5b823567ffffffffffffffff81111561059957600080fd5b6105a5858286016104e2565b95602094909401359450505050565b6000602082840312156105c657600080fd5b813567ffffffffffffffff8111156105dd57600080fd5b6105e9848285016104e2565b949350505050565b600060208083528351808285015260005b8181101561061e57858101830151858201604001528201610602565b81811115610630576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600181811c908216806106a857607f821691505b6020821081036106c857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220a5c3948e136b58dfb8331b987e6990b538bfb2992976ab7606e16b78c3bd6b1464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100625760003560e01c80631c8aca3b146100675780634a6c9db6146100835780638129fc1c146100a65780638beaf7d7146100b0578063f62d1888146100c3578063fa39851f146100d6575b600080fd5b61007060025481565b6040519081526020015b60405180910390f35b6000546100969062010000900460ff1681565b604051901515815260200161007a565b6100ae6100eb565b005b6100ae6100be36600461056f565b61016e565b6100ae6100d13660046105b4565b6101ec565b6100de610268565b60405161007a91906105f1565b600054610100900460ff166101065760005460ff161561010a565b303b155b61012f5760405162461bcd60e51b815260040161012690610646565b60405180910390fd5b600054610100900460ff16158015610151576000805461ffff19166101011790555b6101596102f6565b801561016b576000805461ff00191690555b50565b600054610100900460ff166101895760005460ff161561018d565b303b155b6101a95760405162461bcd60e51b815260040161012690610646565b600054610100900460ff161580156101cb576000805461ffff19166101011790555b6101d58383610327565b80156101e7576000805461ff00191690555b505050565b600054610100900460ff166102075760005460ff161561020b565b303b155b6102275760405162461bcd60e51b815260040161012690610646565b600054610100900460ff16158015610249576000805461ffff19166101011790555b61025282610360565b8015610264576000805461ff00191690555b5050565b6001805461027590610694565b80601f01602080910402602001604051908101604052809291908181526020018280546102a190610694565b80156102ee5780601f106102c3576101008083540402835291602001916102ee565b820191906000526020600020905b8154815290600101906020018083116102d157829003601f168201915b505050505081565b600054610100900460ff1661031d5760405162461bcd60e51b8152600401610126906106ce565b610325610398565b565b600054610100900460ff1661034e5760405162461bcd60e51b8152600401610126906106ce565b61035782610360565b610264816103d2565b600054610100900460ff166103875760405162461bcd60e51b8152600401610126906106ce565b61038f6102f6565b61016b816103fe565b600054610100900460ff166103bf5760405162461bcd60e51b8152600401610126906106ce565b6000805462ff0000191662010000179055565b600054610100900460ff166103f95760405162461bcd60e51b8152600401610126906106ce565b600255565b600054610100900460ff166104255760405162461bcd60e51b8152600401610126906106ce565b805161026490600190602084019082805461043f90610694565b90600052602060002090601f01602090048101928261046157600085556104a7565b82601f1061047a57805160ff19168380011785556104a7565b828001600101855582156104a7579182015b828111156104a757825182559160200191906001019061048c565b506104b39291506104b7565b5090565b5b808211156104b357600081556001016104b8565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126104f357600080fd5b813567ffffffffffffffff8082111561050e5761050e6104cc565b604051601f8301601f19908116603f01168101908282118183101715610536576105366104cc565b8160405283815286602085880101111561054f57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561058257600080fd5b823567ffffffffffffffff81111561059957600080fd5b6105a5858286016104e2565b95602094909401359450505050565b6000602082840312156105c657600080fd5b813567ffffffffffffffff8111156105dd57600080fd5b6105e9848285016104e2565b949350505050565b600060208083528351808285015260005b8181101561061e57858101830151858201604001528201610602565b81811115610630576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600181811c908216806106a857607f821691505b6020821081036106c857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220a5c3948e136b58dfb8331b987e6990b538bfb2992976ab7606e16b78c3bd6b1464736f6c634300080d0033"}, "abi": [{"type": "function", "name": "father", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "gramps", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [{"name": "_gramps", "type": "string", "internalType": "string"}, {"name": "_father", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "isHuman", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "notice": "Sample base intializable contract that defines a field father and extends from gramps", "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "SampleGramps": {"contractName": "SampleGramps", "sourceId": "mocks/MultipleInheritanceInitializableMocks.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506105ce806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80634a6c9db6146100515780638129fc1c14610079578063f62d188814610083578063fa39851f14610096575b600080fd5b6000546100649062010000900460ff1681565b60405190151581526020015b60405180910390f35b6100816100ab565b005b6100816100913660046103bf565b61012e565b61009e6101aa565b6040516100709190610470565b600054610100900460ff166100c65760005460ff16156100ca565b303b155b6100ef5760405162461bcd60e51b81526004016100e6906104c5565b60405180910390fd5b600054610100900460ff16158015610111576000805461ffff19166101011790555b610119610238565b801561012b576000805461ff00191690555b50565b600054610100900460ff166101495760005460ff161561014d565b303b155b6101695760405162461bcd60e51b81526004016100e6906104c5565b600054610100900460ff1615801561018b576000805461ffff19166101011790555b61019482610269565b80156101a6576000805461ff00191690555b5050565b600180546101b790610513565b80601f01602080910402602001604051908101604052809291908181526020018280546101e390610513565b80156102305780601f1061020557610100808354040283529160200191610230565b820191906000526020600020905b81548152906001019060200180831161021357829003601f168201915b505050505081565b600054610100900460ff1661025f5760405162461bcd60e51b81526004016100e69061054d565b6102676102a1565b565b600054610100900460ff166102905760405162461bcd60e51b81526004016100e69061054d565b610298610238565b61012b816102db565b600054610100900460ff166102c85760405162461bcd60e51b81526004016100e69061054d565b6000805462ff0000191662010000179055565b600054610100900460ff166103025760405162461bcd60e51b81526004016100e69061054d565b80516101a690600190602084019082805461031c90610513565b90600052602060002090601f01602090048101928261033e5760008555610384565b82601f1061035757805160ff1916838001178555610384565b82800160010185558215610384579182015b82811115610384578251825591602001919060010190610369565b50610390929150610394565b5090565b5b808211156103905760008155600101610395565b634e487b7160e01b600052604160045260246000fd5b6000602082840312156103d157600080fd5b813567ffffffffffffffff808211156103e957600080fd5b818401915084601f8301126103fd57600080fd5b81358181111561040f5761040f6103a9565b604051601f8201601f19908116603f01168101908382118183101715610437576104376103a9565b8160405282815287602084870101111561045057600080fd5b826020860160208301376000928101602001929092525095945050505050565b600060208083528351808285015260005b8181101561049d57858101830151858201604001528201610481565b818111156104af576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600181811c9082168061052757607f821691505b60208210810361054757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220335b84349e937a8c46c2db94f2a78078440d7743985339124a12083db040979364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80634a6c9db6146100515780638129fc1c14610079578063f62d188814610083578063fa39851f14610096575b600080fd5b6000546100649062010000900460ff1681565b60405190151581526020015b60405180910390f35b6100816100ab565b005b6100816100913660046103bf565b61012e565b61009e6101aa565b6040516100709190610470565b600054610100900460ff166100c65760005460ff16156100ca565b303b155b6100ef5760405162461bcd60e51b81526004016100e6906104c5565b60405180910390fd5b600054610100900460ff16158015610111576000805461ffff19166101011790555b610119610238565b801561012b576000805461ff00191690555b50565b600054610100900460ff166101495760005460ff161561014d565b303b155b6101695760405162461bcd60e51b81526004016100e6906104c5565b600054610100900460ff1615801561018b576000805461ffff19166101011790555b61019482610269565b80156101a6576000805461ff00191690555b5050565b600180546101b790610513565b80601f01602080910402602001604051908101604052809291908181526020018280546101e390610513565b80156102305780601f1061020557610100808354040283529160200191610230565b820191906000526020600020905b81548152906001019060200180831161021357829003601f168201915b505050505081565b600054610100900460ff1661025f5760405162461bcd60e51b81526004016100e69061054d565b6102676102a1565b565b600054610100900460ff166102905760405162461bcd60e51b81526004016100e69061054d565b610298610238565b61012b816102db565b600054610100900460ff166102c85760405162461bcd60e51b81526004016100e69061054d565b6000805462ff0000191662010000179055565b600054610100900460ff166103025760405162461bcd60e51b81526004016100e69061054d565b80516101a690600190602084019082805461031c90610513565b90600052602060002090601f01602090048101928261033e5760008555610384565b82601f1061035757805160ff1916838001178555610384565b82800160010185558215610384579182015b82811115610384578251825591602001919060010190610369565b50610390929150610394565b5090565b5b808211156103905760008155600101610395565b634e487b7160e01b600052604160045260246000fd5b6000602082840312156103d157600080fd5b813567ffffffffffffffff808211156103e957600080fd5b818401915084601f8301126103fd57600080fd5b81358181111561040f5761040f6103a9565b604051601f8201601f19908116603f01168101908382118183101715610437576104376103a9565b8160405282815287602084870101111561045057600080fd5b826020860160208301376000928101602001929092525095945050505050565b600060208083528351808285015260005b8181101561049d57858101830151858201604001528201610481565b818111156104af576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600181811c9082168061052757607f821691505b60208210810361054757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220335b84349e937a8c46c2db94f2a78078440d7743985339124a12083db040979364736f6c634300080d0033"}, "abi": [{"type": "function", "name": "gramps", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "string", "internalType": "string"}], "outputs": []}, {"type": "function", "name": "isHuman", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "notice": "Sample base intializable contract that defines a field gramps", "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "SampleHuman": {"contractName": "SampleHuman", "sourceId": "mocks/MultipleInheritanceInitializableMocks.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061021e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80634a6c9db61461003b5780638129fc1c14610062575b600080fd5b60005461004e9062010000900460ff1681565b604051901515815260200160405180910390f35b61006a61006c565b005b600054610100900460ff166100875760005460ff161561008b565b303b155b6100f35760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600054610100900460ff16158015610115576000805461ffff19166101011790555b61011d610132565b801561012f576000805461ff00191690555b50565b600054610100900460ff166101595760405162461bcd60e51b81526004016100ea9061019d565b610161610163565b565b600054610100900460ff1661018a5760405162461bcd60e51b81526004016100ea9061019d565b6000805462ff0000191662010000179055565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea26469706673582212205866833213f9b9740514026827fe1577c2488a701e678cffc40e42399bea10f864736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c80634a6c9db61461003b5780638129fc1c14610062575b600080fd5b60005461004e9062010000900460ff1681565b604051901515815260200160405180910390f35b61006a61006c565b005b600054610100900460ff166100875760005460ff161561008b565b303b155b6100f35760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600054610100900460ff16158015610115576000805461ffff19166101011790555b61011d610132565b801561012f576000805461ff00191690555b50565b600054610100900460ff166101595760405162461bcd60e51b81526004016100ea9061019d565b610161610163565b565b600054610100900460ff1661018a5760405162461bcd60e51b81526004016100ea9061019d565b6000805462ff0000191662010000179055565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea26469706673582212205866833213f9b9740514026827fe1577c2488a701e678cffc40e42399bea10f864736f6c634300080d0033"}, "abi": [{"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "isHuman", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "notice": "Sample base intializable contract that is a human", "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "SampleMother": {"contractName": "SampleMother", "sourceId": "mocks/MultipleInheritanceInitializableMocks.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610363806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80634a6c9db6146100515780638129fc1c14610079578063ed7dfee314610083578063fe4b84df1461009a575b600080fd5b6000546100649062010000900460ff1681565b60405190151581526020015b60405180910390f35b6100816100ad565b005b61008c60015481565b604051908152602001610070565b6100816100a836600461027b565b610130565b600054610100900460ff166100c85760005460ff16156100cc565b303b155b6100f15760405162461bcd60e51b81526004016100e890610294565b60405180910390fd5b600054610100900460ff16158015610113576000805461ffff19166101011790555b61011b6101ac565b801561012d576000805461ff00191690555b50565b600054610100900460ff1661014b5760005460ff161561014f565b303b155b61016b5760405162461bcd60e51b81526004016100e890610294565b600054610100900460ff1615801561018d576000805461ffff19166101011790555b610196826101dd565b80156101a8576000805461ff00191690555b5050565b600054610100900460ff166101d35760405162461bcd60e51b81526004016100e8906102e2565b6101db610215565b565b600054610100900460ff166102045760405162461bcd60e51b81526004016100e8906102e2565b61020c6101ac565b61012d8161024f565b600054610100900460ff1661023c5760405162461bcd60e51b81526004016100e8906102e2565b6000805462ff0000191662010000179055565b600054610100900460ff166102765760405162461bcd60e51b81526004016100e8906102e2565b600155565b60006020828403121561028d57600080fd5b5035919050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220636e4980ecd152097bb7d66b20e359675180d9cc4d8ffe4c37ae4b061c07d63b64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80634a6c9db6146100515780638129fc1c14610079578063ed7dfee314610083578063fe4b84df1461009a575b600080fd5b6000546100649062010000900460ff1681565b60405190151581526020015b60405180910390f35b6100816100ad565b005b61008c60015481565b604051908152602001610070565b6100816100a836600461027b565b610130565b600054610100900460ff166100c85760005460ff16156100cc565b303b155b6100f15760405162461bcd60e51b81526004016100e890610294565b60405180910390fd5b600054610100900460ff16158015610113576000805461ffff19166101011790555b61011b6101ac565b801561012d576000805461ff00191690555b50565b600054610100900460ff1661014b5760005460ff161561014f565b303b155b61016b5760405162461bcd60e51b81526004016100e890610294565b600054610100900460ff1615801561018d576000805461ffff19166101011790555b610196826101dd565b80156101a8576000805461ff00191690555b5050565b600054610100900460ff166101d35760405162461bcd60e51b81526004016100e8906102e2565b6101db610215565b565b600054610100900460ff166102045760405162461bcd60e51b81526004016100e8906102e2565b61020c6101ac565b61012d8161024f565b600054610100900460ff1661023c5760405162461bcd60e51b81526004016100e8906102e2565b6000805462ff0000191662010000179055565b600054610100900460ff166102765760405162461bcd60e51b81526004016100e8906102e2565b600155565b60006020828403121561028d57600080fd5b5035919050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220636e4980ecd152097bb7d66b20e359675180d9cc4d8ffe4c37ae4b061c07d63b64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "isHuman", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mother", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "notice": "Sample base intializable contract that defines a field mother", "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "OwnableMock": {"contractName": "OwnableMock", "sourceId": "mocks/OwnableMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61026e8061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063715018a6146100465780638da5cb5b14610050578063f2fde38b1461006f575b600080fd5b61004e610082565b005b600054604080516001600160a01b039092168252519081900360200190f35b61004e61007d366004610208565b6100ed565b6000546001600160a01b031633146100e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6100eb60006101b8565b565b6000546001600160a01b031633146101475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016100d8565b6001600160a01b0381166101ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016100d8565b6101b5816101b8565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561021a57600080fd5b81356001600160a01b038116811461023157600080fd5b939250505056fea264697066735822122005314d8e821e0b606ca56e19f26e3c1230d1e93888cb7f3a7f8ca9812ae6818464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063715018a6146100465780638da5cb5b14610050578063f2fde38b1461006f575b600080fd5b61004e610082565b005b600054604080516001600160a01b039092168252519081900360200190f35b61004e61007d366004610208565b6100ed565b6000546001600160a01b031633146100e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6100eb60006101b8565b565b6000546001600160a01b031633146101475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016100d8565b6001600160a01b0381166101ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016100d8565b6101b5816101b8565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561021a57600080fd5b81356001600160a01b038116811461023157600080fd5b939250505056fea264697066735822122005314d8e821e0b606ca56e19f26e3c1230d1e93888cb7f3a7f8ca9812ae6818464736f6c634300080d0033"}, "abi": [{"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}}, "version": 1}}, "PausableMock": {"contractName": "PausableMock", "sourceId": "mocks/PausableMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506000805461ffff191681556001556103228061002e6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806376657b8e1161005b57806376657b8e146100bf5780638456cb59146100d15780639958f045146100d9578063e7651d7a146100e157600080fd5b806306661abd146100825780633f4ba83a1461009e5780635c975abb146100a8575b600080fd5b61008b60015481565b6040519081526020015b60405180910390f35b6100a66100e9565b005b60005460ff165b6040519015158152602001610095565b6000546100af90610100900460ff1681565b6100a66100f3565b6100a66100fb565b6100a661015a565b6100f16101b7565b565b6100f161024a565b60005460ff166101495760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064015b60405180910390fd5b6000805461ff001916610100179055565b60005460ff16156101a05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610140565b600180549060006101b0836102c5565b9190505550565b60005460ff166102005760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610140565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff16156102905760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610140565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861022d3390565b6000600182016102e557634e487b7160e01b600052601160045260246000fd5b506001019056fea264697066735822122015f4946cdd325007f211c1b474e42a5f5158ec0ad29bbb27505b83530f874a7964736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c806376657b8e1161005b57806376657b8e146100bf5780638456cb59146100d15780639958f045146100d9578063e7651d7a146100e157600080fd5b806306661abd146100825780633f4ba83a1461009e5780635c975abb146100a8575b600080fd5b61008b60015481565b6040519081526020015b60405180910390f35b6100a66100e9565b005b60005460ff165b6040519015158152602001610095565b6000546100af90610100900460ff1681565b6100a66100f3565b6100a66100fb565b6100a661015a565b6100f16101b7565b565b6100f161024a565b60005460ff166101495760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064015b60405180910390fd5b6000805461ff001916610100179055565b60005460ff16156101a05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610140565b600180549060006101b0836102c5565b9190505550565b60005460ff166102005760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610140565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff16156102905760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610140565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861022d3390565b6000600182016102e557634e487b7160e01b600052601160045260246000fd5b506001019056fea264697066735822122015f4946cdd325007f211c1b474e42a5f5158ec0ad29bbb27505b83530f874a7964736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": []}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "count", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "drasticMeasure", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "drasticMeasureTaken", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "normalProcess", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"paused()": {"details": "Returns true if the contract is paused, and false otherwise."}}, "version": 1}}, "PullPaymentMock": {"contractName": "PullPaymentMock", "sourceId": "mocks/PullPaymentMock.sol", "deploymentBytecode": {"bytecode": "0x60a06040526040516100109061003e565b604051809103906000f08015801561002c573d6000803e3d6000fd5b506001600160a01b031660805261004b565b6105f28061035f83390190565b6080516102ec6100736000396000818160b20152818161014101526101d301526102ec6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806331b3eb9414610046578063d44409911461005b578063e2982c211461006e575b600080fd5b61005961005436600461024d565b610093565b005b610059610069366004610271565b610111565b61008161007c36600461024d565b61011f565b60405190815260200160405180910390f35b6040516351cff8d960e01b81526001600160a01b0382811660048301527f000000000000000000000000000000000000000000000000000000000000000016906351cff8d990602401600060405180830381600087803b1580156100f657600080fd5b505af115801561010a573d6000803e3d6000fd5b5050505050565b61011b82826101b4565b5050565b6040516371d4ed8d60e11b81526001600160a01b0382811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063e3a9db1a90602401602060405180830381865afa15801561018a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ae919061029d565b92915050565b60405163f340fa0160e01b81526001600160a01b0383811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063f340fa019083906024016000604051808303818588803b15801561021857600080fd5b505af115801561022c573d6000803e3d6000fd5b50505050505050565b6001600160a01b038116811461024a57600080fd5b50565b60006020828403121561025f57600080fd5b813561026a81610235565b9392505050565b6000806040838503121561028457600080fd5b823561028f81610235565b946020939093013593505050565b6000602082840312156102af57600080fd5b505191905056fea2646970667358221220b841b754b06f6d15c2949d8bf3c87c57063258adae7fdbecee1885dab8a1aea364736f6c634300080d0033608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6105748061007e6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461007c5780638da5cb5b14610091578063e3a9db1a146100be578063f2fde38b14610102578063f340fa0114610122575b600080fd5b34801561006657600080fd5b5061007a6100753660046104bf565b610135565b005b34801561008857600080fd5b5061007a6101d7565b34801561009d57600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b3480156100ca57600080fd5b506100f46100d93660046104bf565b6001600160a01b031660009081526001602052604090205490565b6040519081526020016100b5565b34801561010e57600080fd5b5061007a61011d3660046104bf565b61020d565b61007a6101303660046104bf565b6102a8565b6000546001600160a01b031633146101685760405162461bcd60e51b815260040161015f906104e3565b60405180910390fd5b6001600160a01b0381166000818152600160205260408120805491905590610190908261033c565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516101cb91815260200190565b60405180910390a25050565b6000546001600160a01b031633146102015760405162461bcd60e51b815260040161015f906104e3565b61020b600061045a565b565b6000546001600160a01b031633146102375760405162461bcd60e51b815260040161015f906104e3565b6001600160a01b03811661029c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161015f565b6102a58161045a565b50565b6000546001600160a01b031633146102d25760405162461bcd60e51b815260040161015f906104e3565b6001600160a01b0381166000908152600160205260408120805434928392916102fc908490610518565b90915550506040518181526001600160a01b038316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020016101cb565b8047101561038c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161015f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146103d9576040519150601f19603f3d011682016040523d82523d6000602084013e6103de565b606091505b50509050806104555760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161015f565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146102a557600080fd5b6000602082840312156104d157600080fd5b81356104dc816104aa565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561053957634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212206cc97246e6fbc2b4eac8231f2c0a9d93b40fba36a34b504db86a101136dc96f164736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806331b3eb9414610046578063d44409911461005b578063e2982c211461006e575b600080fd5b61005961005436600461024d565b610093565b005b610059610069366004610271565b610111565b61008161007c36600461024d565b61011f565b60405190815260200160405180910390f35b6040516351cff8d960e01b81526001600160a01b0382811660048301527f000000000000000000000000000000000000000000000000000000000000000016906351cff8d990602401600060405180830381600087803b1580156100f657600080fd5b505af115801561010a573d6000803e3d6000fd5b5050505050565b61011b82826101b4565b5050565b6040516371d4ed8d60e11b81526001600160a01b0382811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063e3a9db1a90602401602060405180830381865afa15801561018a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ae919061029d565b92915050565b60405163f340fa0160e01b81526001600160a01b0383811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063f340fa019083906024016000604051808303818588803b15801561021857600080fd5b505af115801561022c573d6000803e3d6000fd5b50505050505050565b6001600160a01b038116811461024a57600080fd5b50565b60006020828403121561025f57600080fd5b813561026a81610235565b9392505050565b6000806040838503121561028457600080fd5b823561028f81610235565b946020939093013593505050565b6000602082840312156102af57600080fd5b505191905056fea2646970667358221220b841b754b06f6d15c2949d8bf3c87c57063258adae7fdbecee1885dab8a1aea364736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "payable", "inputs": []}, {"type": "function", "name": "callTransfer", "stateMutability": "nonpayable", "inputs": [{"name": "dest", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "payments", "stateMutability": "view", "inputs": [{"name": "dest", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "withdrawPayments", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address payable"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"payments(address)": {"details": "Returns the payments owed to an address.", "params": {"dest": "The creditor's address."}}, "withdrawPayments(address)": {"details": "Withdraw accumulated payments, forwarding all gas to the recipient. Note that _any_ account can call this function, not just the `payee`. This means that contracts unaware of the `PullPayment` protocol can still receive funds this way, by having a separate account call {withdrawPayments}. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.", "params": {"payee": "Whose payments will be withdrawn."}}}, "version": 1}}, "ReentrancyAttack": {"contractName": "ReentrancyAttack", "sourceId": "mocks/ReentrancyAttack.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506101be806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80630a2df1ed14610030575b600080fd5b61004361003e36600461011c565b610045565b005b60408051600481526024810182526020810180516001600160e01b03166001600160e01b0319851617905290516000913391610081919061014d565b6000604051808303816000865af19150503d80600081146100be576040519150601f19603f3d011682016040523d82523d6000602084013e6100c3565b606091505b50509050806101185760405162461bcd60e51b815260206004820152601d60248201527f5265656e7472616e637941747461636b3a206661696c65642063616c6c000000604482015260640160405180910390fd5b5050565b60006020828403121561012e57600080fd5b81356001600160e01b03198116811461014657600080fd5b9392505050565b6000825160005b8181101561016e5760208186018101518583015201610154565b8181111561017d576000828501525b50919091019291505056fea264697066735822122015c115312be7c4da69c303ae52ff7837a4f86d40e4bbab13d268187edc19211864736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80630a2df1ed14610030575b600080fd5b61004361003e36600461011c565b610045565b005b60408051600481526024810182526020810180516001600160e01b03166001600160e01b0319851617905290516000913391610081919061014d565b6000604051808303816000865af19150503d80600081146100be576040519150601f19603f3d011682016040523d82523d6000602084013e6100c3565b606091505b50509050806101185760405162461bcd60e51b815260206004820152601d60248201527f5265656e7472616e637941747461636b3a206661696c65642063616c6c000000604482015260640160405180910390fd5b5050565b60006020828403121561012e57600080fd5b81356001600160e01b03198116811461014657600080fd5b9392505050565b6000825160005b8181101561016e5760208186018101518583015201610154565b8181111561017d576000828501525b50919091019291505056fea264697066735822122015c115312be7c4da69c303ae52ff7837a4f86d40e4bbab13d268187edc19211864736f6c634300080d0033"}, "abi": [{"type": "function", "name": "callSender", "stateMutability": "nonpayable", "inputs": [{"name": "data", "type": "bytes4", "internalType": "bytes4"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ReentrancyMock": {"contractName": "ReentrancyMock", "sourceId": "mocks/ReentrancyMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5060016000818155905561046c806100296000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063083b27321461005c57806361bc221a146100665780638c5344fa1461008157806396ffa69014610094578063b672ad8b146100a7575b600080fd5b6100646100ba565b005b61006f60015481565b60405190815260200160405180910390f35b61006461008f366004610336565b6100f9565b6100646100a2366004610336565b610220565b6100646100b536600461034f565b610263565b6002600054036100e55760405162461bcd60e51b81526004016100dc9061037f565b60405180910390fd5b60026000556100f261031d565b6001600055565b60026000540361011b5760405162461bcd60e51b81526004016100dc9061037f565b600260005580156102185761012e61031d565b60003061013c6001846103cc565b60405160240161014e91815260200190565b60408051601f198184030181529181526020820180516001600160e01b0316634629a27d60e11b1790525161018391906103e3565b6000604051808303816000865af19150503d80600081146101c0576040519150601f19603f3d011682016040523d82523d6000602084013e6101c5565b606091505b50509050806102165760405162461bcd60e51b815260206004820152601b60248201527f5265656e7472616e63794d6f636b3a206661696c65642063616c6c000000000060448201526064016100dc565b505b506001600055565b6002600054036102425760405162461bcd60e51b81526004016100dc9061037f565b600260005580156102185761025561031d565b6102186100a26001836103cc565b6002600054036102855760405162461bcd60e51b81526004016100dc9061037f565b600260005561029261031d565b604051630a2df1ed60e01b815263041d939960e11b60048201527f083b2732f78169bfaad6b407fa338cc97d697ed69d3915a18239cc111d51a402906001600160a01b03831690630a2df1ed90602401600060405180830381600087803b1580156102fc57600080fd5b505af1158015610310573d6000803e3d6000fd5b5050600160005550505050565b600180600082825461032f919061041e565b9091555050565b60006020828403121561034857600080fd5b5035919050565b60006020828403121561036157600080fd5b81356001600160a01b038116811461037857600080fd5b9392505050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000828210156103de576103de6103b6565b500390565b6000825160005b8181101561040457602081860181015185830152016103ea565b81811115610413576000828501525b509190910192915050565b60008219821115610431576104316103b6565b50019056fea26469706673582212208d1792d9085944e697885cc1bfc83583b3968b35b3ea2235a412746091d50ec964736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063083b27321461005c57806361bc221a146100665780638c5344fa1461008157806396ffa69014610094578063b672ad8b146100a7575b600080fd5b6100646100ba565b005b61006f60015481565b60405190815260200160405180910390f35b61006461008f366004610336565b6100f9565b6100646100a2366004610336565b610220565b6100646100b536600461034f565b610263565b6002600054036100e55760405162461bcd60e51b81526004016100dc9061037f565b60405180910390fd5b60026000556100f261031d565b6001600055565b60026000540361011b5760405162461bcd60e51b81526004016100dc9061037f565b600260005580156102185761012e61031d565b60003061013c6001846103cc565b60405160240161014e91815260200190565b60408051601f198184030181529181526020820180516001600160e01b0316634629a27d60e11b1790525161018391906103e3565b6000604051808303816000865af19150503d80600081146101c0576040519150601f19603f3d011682016040523d82523d6000602084013e6101c5565b606091505b50509050806102165760405162461bcd60e51b815260206004820152601b60248201527f5265656e7472616e63794d6f636b3a206661696c65642063616c6c000000000060448201526064016100dc565b505b506001600055565b6002600054036102425760405162461bcd60e51b81526004016100dc9061037f565b600260005580156102185761025561031d565b6102186100a26001836103cc565b6002600054036102855760405162461bcd60e51b81526004016100dc9061037f565b600260005561029261031d565b604051630a2df1ed60e01b815263041d939960e11b60048201527f083b2732f78169bfaad6b407fa338cc97d697ed69d3915a18239cc111d51a402906001600160a01b03831690630a2df1ed90602401600060405180830381600087803b1580156102fc57600080fd5b505af1158015610310573d6000803e3d6000fd5b5050600160005550505050565b600180600082825461032f919061041e565b9091555050565b60006020828403121561034857600080fd5b5035919050565b60006020828403121561036157600080fd5b81356001600160a01b038116811461037857600080fd5b9392505050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000828210156103de576103de6103b6565b500390565b6000825160005b8181101561040457602081860181015185830152016103ea565b81811115610413576000828501525b509190910192915050565b60008219821115610431576104316103b6565b50019056fea26469706673582212208d1792d9085944e697885cc1bfc83583b3968b35b3ea2235a412746091d50ec964736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": []}, {"type": "function", "name": "callback", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "countAndCall", "stateMutability": "nonpayable", "inputs": [{"name": "attacker", "type": "address", "internalType": "contract ReentrancyAttack"}], "outputs": []}, {"type": "function", "name": "countLocalRecursive", "stateMutability": "nonpayable", "inputs": [{"name": "n", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "countThisRecursive", "stateMutability": "nonpayable", "inputs": [{"name": "n", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "counter", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "Implementation1": {"contractName": "Implementation1", "sourceId": "mocks/RegressionImplementation.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061015f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063552410771461003b5780638129fc1c14610050575b600080fd5b61004e610049366004610110565b600155565b005b61004e600054610100900460ff1661006e5760005460ff1615610072565b303b155b6100d95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff161580156100fb576000805461ffff19166101011790555b801561010d576000805461ff00191690555b50565b60006020828403121561012257600080fd5b503591905056fea2646970667358221220a0985a56a49a3ebe866318f02efc6770ba9f37c7afc7279ec4204f73b89d5eef64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063552410771461003b5780638129fc1c14610050575b600080fd5b61004e610049366004610110565b600155565b005b61004e600054610100900460ff1661006e5760005460ff1615610072565b303b155b6100d95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff161580156100fb576000805461ffff19166101011790555b801561010d576000805461ff00191690555b50565b60006020828403121561012257600080fd5b503591905056fea2646970667358221220a0985a56a49a3ebe866318f02efc6770ba9f37c7afc7279ec4204f73b89d5eef64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "setValue", "stateMutability": "nonpayable", "inputs": [{"name": "_number", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "Implementation2": {"contractName": "Implementation2", "sourceId": "mocks/RegressionImplementation.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061017f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80632096525514610046578063552410771461005b5780638129fc1c14610070575b600080fd5b60015460405190815260200160405180910390f35b61006e610069366004610130565b600155565b005b61006e600054610100900460ff1661008e5760005460ff1615610092565b303b155b6100f95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff1615801561011b576000805461ffff19166101011790555b801561012d576000805461ff00191690555b50565b60006020828403121561014257600080fd5b503591905056fea2646970667358221220a5204dd0907c370c6d9743289cf6fe80b3376372d60d8417ab096525091aa7e864736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80632096525514610046578063552410771461005b5780638129fc1c14610070575b600080fd5b60015460405190815260200160405180910390f35b61006e610069366004610130565b600155565b005b61006e600054610100900460ff1661008e5760005460ff1615610092565b303b155b6100f95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff1615801561011b576000805461ffff19166101011790555b801561012d576000805461ff00191690555b50565b60006020828403121561014257600080fd5b503591905056fea2646970667358221220a5204dd0907c370c6d9743289cf6fe80b3376372d60d8417ab096525091aa7e864736f6c634300080d0033"}, "abi": [{"type": "function", "name": "getValue", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "setValue", "stateMutability": "nonpayable", "inputs": [{"name": "_number", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "Implementation3": {"contractName": "Implementation3", "sourceId": "mocks/RegressionImplementation.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506101d0806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80630ff4c91614610046578063552410771461006b5780638129fc1c14610080575b600080fd5b61005961005436600461015b565b610088565b60405190815260200160405180910390f35b61007e61007936600461015b565b600155565b005b61007e61009e565b6000816001546100989190610174565b92915050565b600054610100900460ff166100b95760005460ff16156100bd565b303b155b6101245760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff16158015610146576000805461ffff19166101011790555b8015610158576000805461ff00191690555b50565b60006020828403121561016d57600080fd5b5035919050565b6000821982111561019557634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220defe1f85b1facd2a04229e0a78d49607e2a9ad6c611f50516db9ef14667c741f64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80630ff4c91614610046578063552410771461006b5780638129fc1c14610080575b600080fd5b61005961005436600461015b565b610088565b60405190815260200160405180910390f35b61007e61007936600461015b565b600155565b005b61007e61009e565b6000816001546100989190610174565b92915050565b600054610100900460ff166100b95760005460ff16156100bd565b303b155b6101245760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff16158015610146576000805461ffff19166101011790555b8015610158576000805461ff00191690555b50565b60006020828403121561016d57600080fd5b5035919050565b6000821982111561019557634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220defe1f85b1facd2a04229e0a78d49607e2a9ad6c611f50516db9ef14667c741f64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "getValue", "stateMutability": "view", "inputs": [{"name": "_number", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "setValue", "stateMutability": "nonpayable", "inputs": [{"name": "_number", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "Implementation4": {"contractName": "Implementation4", "sourceId": "mocks/RegressionImplementation.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610181806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80632096525514610048578063552410771461005d5780638129fc1c14610072575b6001808055005b60015460405190815260200160405180910390f35b61007061006b366004610132565b600155565b005b610070600054610100900460ff166100905760005460ff1615610094565b303b155b6100fb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff1615801561011d576000805461ffff19166101011790555b801561012f576000805461ff00191690555b50565b60006020828403121561014457600080fd5b503591905056fea26469706673582212200ea1d2e40824b38d516722179bce61036bf4ed61f4138a544d35cb6ada3969c364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80632096525514610048578063552410771461005d5780638129fc1c14610072575b6001808055005b60015460405190815260200160405180910390f35b61007061006b366004610132565b600155565b005b610070600054610100900460ff166100905760005460ff1615610094565b303b155b6100fb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff1615801561011d576000805461ffff19166101011790555b801561012f576000805461ff00191690555b50565b60006020828403121561014457600080fd5b503591905056fea26469706673582212200ea1d2e40824b38d516722179bce61036bf4ed61f4138a544d35cb6ada3969c364736f6c634300080d0033"}, "abi": [{"type": "fallback", "stateMutability": "nonpayable"}, {"type": "function", "name": "getValue", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "initialize", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "setValue", "stateMutability": "nonpayable", "inputs": [{"name": "_number", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "SafeCastMock": {"contractName": "SafeCastMock", "sourceId": "mocks/SafeCastMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506108e0806100206000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063c81932551161008c578063dd2a031611610066578063dd2a03161461028b578063dfbe873b146102b1578063f136dc02146102d2578063fdcf791b146102f857600080fd5b8063c819325514610217578063cf65b4d31461023f578063d6bd32aa1461026557600080fd5b80635bb79860116100c85780635bb7986014610175578063809fdd33146101a05780639374068f146101cb5780639c6f59be146101f157600080fd5b80630cc4681e146100ef5780631cf887fc146101195780632665fad014610149575b600080fd5b6101026100fd366004610733565b61030b565b60405160ff90911681526020015b60405180910390f35b61012c610127366004610733565b61031c565b6040516bffffffffffffffffffffffff9091168152602001610110565b61015c610157366004610733565b610327565b60405167ffffffffffffffff9091168152602001610110565b610188610183366004610733565b610332565b6040516001600160e01b039091168152602001610110565b6101b36101ae366004610733565b61033d565b6040516001600160801b039091168152602001610110565b6101de6101d9366004610733565b610348565b60405161ffff9091168152602001610110565b6102046101ff366004610733565b610353565b60405160039190910b8152602001610110565b61022a610225366004610733565b61035e565b60405163ffffffff9091168152602001610110565b61025261024d366004610733565b610369565b60405160019190910b8152602001610110565b610278610273366004610733565b610374565b60405160079190910b8152602001610110565b61029e610299366004610733565b61037f565b604051600f9190910b8152602001610110565b6102c46102bf366004610733565b61038a565b604051908152602001610110565b6102e56102e0366004610733565b610395565b60405160009190910b8152602001610110565b6102c4610306366004610733565b6103a0565b6000610316826103ab565b92915050565b6000610316826103db565b600061031682610448565b600061031682610472565b6000610316826104db565b600061031682610504565b600061031682610528565b60006103168261055f565b600061031682610585565b6000610316826105b8565b6000610316826105f7565b600061031682610646565b6000610316826106b0565b6000610316826106e1565b600060ff8211156103d75760405162461bcd60e51b81526004016103ce9061074c565b60405180910390fd5b5090565b60006bffffffffffffffffffffffff8211156103d75760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203960448201526536206269747360d01b60648201526084016103ce565b600067ffffffffffffffff8211156103d75760405162461bcd60e51b81526004016103ce90610791565b60006001600160e01b038211156103d75760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b60648201526084016103ce565b60006001600160801b038211156103d75760405162461bcd60e51b81526004016103ce906107d7565b600061ffff8211156103d75760405162461bcd60e51b81526004016103ce9061081e565b6000637fffffff1982128015906105435750637fffffff8213155b6103d75760405162461bcd60e51b81526004016103ce90610864565b600063ffffffff8211156103d75760405162461bcd60e51b81526004016103ce90610864565b6000617fff19821280159061059c5750617fff8213155b6103d75760405162461bcd60e51b81526004016103ce9061081e565b6000677fffffffffffffff1982128015906105db5750677fffffffffffffff8213155b6103d75760405162461bcd60e51b81526004016103ce90610791565b60006f7fffffffffffffffffffffffffffffff19821280159061062a57506f7fffffffffffffffffffffffffffffff8213155b6103d75760405162461bcd60e51b81526004016103ce906107d7565b60006001600160ff1b038211156103d75760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b60648201526084016103ce565b6000607f1982128015906106c55750607f8213155b6103d75760405162461bcd60e51b81526004016103ce9061074c565b6000808212156103d75760405162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f73697469766560448201526064016103ce565b60006020828403121561074557600080fd5b5035919050565b60208082526025908201527f53616665436173743a2076616c756520646f65736e27742066697420696e2038604082015264206269747360d81b606082015260800190565b60208082526026908201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660408201526534206269747360d01b606082015260800190565b60208082526027908201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316040820152663238206269747360c81b606082015260800190565b60208082526026908201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160408201526536206269747360d01b606082015260800190565b60208082526026908201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360408201526532206269747360d01b60608201526080019056fea26469706673582212209e039eac959e79e5496e1b97b97395d9766ca7eeb777da97d04f55ec7682d33364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063c81932551161008c578063dd2a031611610066578063dd2a03161461028b578063dfbe873b146102b1578063f136dc02146102d2578063fdcf791b146102f857600080fd5b8063c819325514610217578063cf65b4d31461023f578063d6bd32aa1461026557600080fd5b80635bb79860116100c85780635bb7986014610175578063809fdd33146101a05780639374068f146101cb5780639c6f59be146101f157600080fd5b80630cc4681e146100ef5780631cf887fc146101195780632665fad014610149575b600080fd5b6101026100fd366004610733565b61030b565b60405160ff90911681526020015b60405180910390f35b61012c610127366004610733565b61031c565b6040516bffffffffffffffffffffffff9091168152602001610110565b61015c610157366004610733565b610327565b60405167ffffffffffffffff9091168152602001610110565b610188610183366004610733565b610332565b6040516001600160e01b039091168152602001610110565b6101b36101ae366004610733565b61033d565b6040516001600160801b039091168152602001610110565b6101de6101d9366004610733565b610348565b60405161ffff9091168152602001610110565b6102046101ff366004610733565b610353565b60405160039190910b8152602001610110565b61022a610225366004610733565b61035e565b60405163ffffffff9091168152602001610110565b61025261024d366004610733565b610369565b60405160019190910b8152602001610110565b610278610273366004610733565b610374565b60405160079190910b8152602001610110565b61029e610299366004610733565b61037f565b604051600f9190910b8152602001610110565b6102c46102bf366004610733565b61038a565b604051908152602001610110565b6102e56102e0366004610733565b610395565b60405160009190910b8152602001610110565b6102c4610306366004610733565b6103a0565b6000610316826103ab565b92915050565b6000610316826103db565b600061031682610448565b600061031682610472565b6000610316826104db565b600061031682610504565b600061031682610528565b60006103168261055f565b600061031682610585565b6000610316826105b8565b6000610316826105f7565b600061031682610646565b6000610316826106b0565b6000610316826106e1565b600060ff8211156103d75760405162461bcd60e51b81526004016103ce9061074c565b60405180910390fd5b5090565b60006bffffffffffffffffffffffff8211156103d75760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203960448201526536206269747360d01b60648201526084016103ce565b600067ffffffffffffffff8211156103d75760405162461bcd60e51b81526004016103ce90610791565b60006001600160e01b038211156103d75760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b60648201526084016103ce565b60006001600160801b038211156103d75760405162461bcd60e51b81526004016103ce906107d7565b600061ffff8211156103d75760405162461bcd60e51b81526004016103ce9061081e565b6000637fffffff1982128015906105435750637fffffff8213155b6103d75760405162461bcd60e51b81526004016103ce90610864565b600063ffffffff8211156103d75760405162461bcd60e51b81526004016103ce90610864565b6000617fff19821280159061059c5750617fff8213155b6103d75760405162461bcd60e51b81526004016103ce9061081e565b6000677fffffffffffffff1982128015906105db5750677fffffffffffffff8213155b6103d75760405162461bcd60e51b81526004016103ce90610791565b60006f7fffffffffffffffffffffffffffffff19821280159061062a57506f7fffffffffffffffffffffffffffffff8213155b6103d75760405162461bcd60e51b81526004016103ce906107d7565b60006001600160ff1b038211156103d75760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b60648201526084016103ce565b6000607f1982128015906106c55750607f8213155b6103d75760405162461bcd60e51b81526004016103ce9061074c565b6000808212156103d75760405162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f73697469766560448201526064016103ce565b60006020828403121561074557600080fd5b5035919050565b60208082526025908201527f53616665436173743a2076616c756520646f65736e27742066697420696e2038604082015264206269747360d81b606082015260800190565b60208082526026908201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660408201526534206269747360d01b606082015260800190565b60208082526027908201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316040820152663238206269747360c81b606082015260800190565b60208082526026908201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160408201526536206269747360d01b606082015260800190565b60208082526026908201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360408201526532206269747360d01b60608201526080019056fea26469706673582212209e039eac959e79e5496e1b97b97395d9766ca7eeb777da97d04f55ec7682d33364736f6c634300080d0033"}, "abi": [{"type": "function", "name": "toInt128", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int128", "internalType": "int128"}]}, {"type": "function", "name": "toInt16", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int16", "internalType": "int16"}]}, {"type": "function", "name": "toInt256", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "int256", "internalType": "int256"}]}, {"type": "function", "name": "toInt32", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int32", "internalType": "int32"}]}, {"type": "function", "name": "toInt64", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int64", "internalType": "int64"}]}, {"type": "function", "name": "toInt8", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int8", "internalType": "int8"}]}, {"type": "function", "name": "toUint128", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint128", "internalType": "uint128"}]}, {"type": "function", "name": "toUint16", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint16", "internalType": "uint16"}]}, {"type": "function", "name": "toUint224", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint224", "internalType": "uint224"}]}, {"type": "function", "name": "toUint256", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "toUint32", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint32", "internalType": "uint32"}]}, {"type": "function", "name": "toUint64", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint64", "internalType": "uint64"}]}, {"type": "function", "name": "toUint8", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "toUint96", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint96", "internalType": "uint96"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC20NoReturnMock": {"contractName": "ERC20NoReturnMock", "sourceId": "mocks/SafeERC20Helper.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506101ed806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd146100755780633ba93f261461008d578063a9059cbb1461005c578063dd62ed3e146100ad575b600080fd5b61007361006a366004610105565b50506000600155565b005b61007361008336600461012f565b5050600060015550565b61007361009b36600461016b565b33600090815260208190526040902055565b6100d76100bb366004610184565b506001600160a01b031660009081526020819052604090205490565b60405190815260200160405180910390f35b80356001600160a01b038116811461010057600080fd5b919050565b6000806040838503121561011857600080fd5b610121836100e9565b946020939093013593505050565b60008060006060848603121561014457600080fd5b61014d846100e9565b925061015b602085016100e9565b9150604084013590509250925092565b60006020828403121561017d57600080fd5b5035919050565b6000806040838503121561019757600080fd5b6101a0836100e9565b91506101ae602084016100e9565b9050925092905056fea264697066735822122048effdd68726fe5d7b78d637a707a1a773fa17e75ac168b1b6e1f0fedc1ab83d64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd146100755780633ba93f261461008d578063a9059cbb1461005c578063dd62ed3e146100ad575b600080fd5b61007361006a366004610105565b50506000600155565b005b61007361008336600461012f565b5050600060015550565b61007361009b36600461016b565b33600090815260208190526040902055565b6100d76100bb366004610184565b506001600160a01b031660009081526020819052604090205490565b60405190815260200160405180910390f35b80356001600160a01b038116811461010057600080fd5b919050565b6000806040838503121561011857600080fd5b610121836100e9565b946020939093013593505050565b60008060006060848603121561014457600080fd5b61014d846100e9565b925061015b602085016100e9565b9150604084013590509250925092565b60006020828403121561017d57600080fd5b5035919050565b6000806040838503121561019757600080fd5b6101a0836100e9565b91506101ae602084016100e9565b9050925092905056fea264697066735822122048effdd68726fe5d7b78d637a707a1a773fa17e75ac168b1b6e1f0fedc1ab83d64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "allowance_", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC20ReturnFalseMock": {"contractName": "ERC20ReturnFalseMock", "sourceId": "mocks/SafeERC20Helper.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506101c2806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063095ea7b31461005157806323b872dd14610080578063a9059cbb14610051578063dd62ed3e1461009c575b600080fd5b61006b61005f3660046100f3565b50506000600181905590565b60405190151581526020015b60405180910390f35b61006b61008e36600461011d565b600060018190559392505050565b6100af6100aa366004610159565b6100bd565b604051908152602001610077565b60006001546000146100ce57600080fd5b50600092915050565b80356001600160a01b03811681146100ee57600080fd5b919050565b6000806040838503121561010657600080fd5b61010f836100d7565b946020939093013593505050565b60008060006060848603121561013257600080fd5b61013b846100d7565b9250610149602085016100d7565b9150604084013590509250925092565b6000806040838503121561016c57600080fd5b610175836100d7565b9150610183602084016100d7565b9050925092905056fea2646970667358221220d4fb8620fdc78c1f03e45fff6cbfc127d5623ee6f2353793dea4a285acf396cb64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063095ea7b31461005157806323b872dd14610080578063a9059cbb14610051578063dd62ed3e1461009c575b600080fd5b61006b61005f3660046100f3565b50506000600181905590565b60405190151581526020015b60405180910390f35b61006b61008e36600461011d565b600060018190559392505050565b6100af6100aa366004610159565b6100bd565b604051908152602001610077565b60006001546000146100ce57600080fd5b50600092915050565b80356001600160a01b03811681146100ee57600080fd5b919050565b6000806040838503121561010657600080fd5b61010f836100d7565b946020939093013593505050565b60008060006060848603121561013257600080fd5b61013b846100d7565b9250610149602085016100d7565b9150604084013590509250925092565b6000806040838503121561016c57600080fd5b610175836100d7565b9150610183602084016100d7565b9050925092905056fea2646970667358221220d4fb8620fdc78c1f03e45fff6cbfc127d5623ee6f2353793dea4a285acf396cb64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "ERC20ReturnTrueMock": {"contractName": "ERC20ReturnTrueMock", "sourceId": "mocks/SafeERC20Helper.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610205806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461008b5780633ba93f26146100a7578063a9059cbb1461005c578063dd62ed3e146100c9575b600080fd5b61007661006a36600461011d565b50506000600190815590565b60405190151581526020015b60405180910390f35b610076610099366004610147565b600060019081559392505050565b6100c76100b5366004610183565b33600090815260208190526040902055565b005b6100f36100d736600461019c565b506001600160a01b031660009081526020819052604090205490565b604051908152602001610082565b80356001600160a01b038116811461011857600080fd5b919050565b6000806040838503121561013057600080fd5b61013983610101565b946020939093013593505050565b60008060006060848603121561015c57600080fd5b61016584610101565b925061017360208501610101565b9150604084013590509250925092565b60006020828403121561019557600080fd5b5035919050565b600080604083850312156101af57600080fd5b6101b883610101565b91506101c660208401610101565b9050925092905056fea26469706673582212209b4d84cf706fe69831deb07eeb8e4c13045c5e49ca820e8533b5fae23cc337b964736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461008b5780633ba93f26146100a7578063a9059cbb1461005c578063dd62ed3e146100c9575b600080fd5b61007661006a36600461011d565b50506000600190815590565b60405190151581526020015b60405180910390f35b610076610099366004610147565b600060019081559392505050565b6100c76100b5366004610183565b33600090815260208190526040902055565b005b6100f36100d736600461019c565b506001600160a01b031660009081526020819052604090205490565b604051908152602001610082565b80356001600160a01b038116811461011857600080fd5b919050565b6000806040838503121561013057600080fd5b61013983610101565b946020939093013593505050565b60008060006060848603121561015c57600080fd5b61016584610101565b925061017360208501610101565b9150604084013590509250925092565b60006020828403121561019557600080fd5b5035919050565b600080604083850312156101af57600080fd5b6101b883610101565b91506101c660208401610101565b9050925092905056fea26469706673582212209b4d84cf706fe69831deb07eeb8e4c13045c5e49ca820e8533b5fae23cc337b964736f6c634300080d0033"}, "abi": [{"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "setAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "allowance_", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "SafeERC20Wrapper": {"contractName": "SafeERC20Wrapper", "sourceId": "mocks/SafeERC20Helper.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506040516109e53803806109e583398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b610952806100936000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063811c34d31161005b578063811c34d3146100bd5780638a4068dd146100c5578063b759f954146100cd578063de242ff4146100e057600080fd5b806310bad4cf1461008257806311e330b2146100975780633ba93f26146100aa575b600080fd5b610095610090366004610827565b6100fa565b005b6100956100a5366004610827565b610117565b6100956100b8366004610827565b610131565b610095610192565b6100956101af565b6100956100db366004610827565b6101c9565b6100e86101e3565b60405190815260200160405180910390f35b60008054610114916001600160a01b03909116908361025d565b50565b60008054610114916001600160a01b0390911690836103a1565b600054604051631dd49f9360e11b8152600481018390526001600160a01b0390911690633ba93f2690602401600060405180830381600087803b15801561017757600080fd5b505af115801561018b573d6000803e3d6000fd5b5050505050565b600080546101ad916001600160a01b03909116908080610459565b565b600080546101ad916001600160a01b039091169080610491565b60008054610114916001600160a01b0390911690836104c6565b60008054604051636eb1769f60e11b815260048101839052602481018390526001600160a01b039091169063dd62ed3e90604401602060405180830381865afa158015610234573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102589190610840565b905090565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa1580156102ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d19190610840565b90508181101561033a5760405162461bcd60e51b815260206004820152602960248201527f5361666545524332303a2064656372656173656420616c6c6f77616e63652062604482015268656c6f77207a65726f60b81b60648201526084015b60405180910390fd5b6040516001600160a01b0384166024820152828203604482018190529061018b90869063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526105db565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa1580156103f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104169190610840565b6104209190610859565b6040516001600160a01b03851660248201526044810182905290915061045390859063095ea7b360e01b9060640161036a565b50505050565b6040516001600160a01b03808516602483015283166044820152606481018290526104539085906323b872dd60e01b9060840161036a565b6040516001600160a01b0383166024820152604481018290526104c190849063a9059cbb60e01b9060640161036a565b505050565b8015806105405750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa15801561051a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053e9190610840565b155b6105ab5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610331565b6040516001600160a01b0383166024820152604481018290526104c190849063095ea7b360e01b9060640161036a565b6000610630826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166106ad9092919063ffffffff16565b8051909150156104c1578080602001905181019061064e919061087f565b6104c15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610331565b60606106bc84846000856106c6565b90505b9392505050565b6060824710156107275760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610331565b843b6107755760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610331565b600080866001600160a01b0316858760405161079191906108cd565b60006040518083038185875af1925050503d80600081146107ce576040519150601f19603f3d011682016040523d82523d6000602084013e6107d3565b606091505b50915091506107e38282866107ee565b979650505050505050565b606083156107fd5750816106bf565b82511561080d5782518084602001fd5b8160405162461bcd60e51b815260040161033191906108e9565b60006020828403121561083957600080fd5b5035919050565b60006020828403121561085257600080fd5b5051919050565b6000821982111561087a57634e487b7160e01b600052601160045260246000fd5b500190565b60006020828403121561089157600080fd5b815180151581146106bf57600080fd5b60005b838110156108bc5781810151838201526020016108a4565b838111156104535750506000910152565b600082516108df8184602087016108a1565b9190910192915050565b60208152600082518060208401526109088160408501602087016108a1565b601f01601f1916919091016040019291505056fea26469706673582212203060e252587e496dafab6a967218b3bfafaccc7312442194e084d0583bf9b59564736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063811c34d31161005b578063811c34d3146100bd5780638a4068dd146100c5578063b759f954146100cd578063de242ff4146100e057600080fd5b806310bad4cf1461008257806311e330b2146100975780633ba93f26146100aa575b600080fd5b610095610090366004610827565b6100fa565b005b6100956100a5366004610827565b610117565b6100956100b8366004610827565b610131565b610095610192565b6100956101af565b6100956100db366004610827565b6101c9565b6100e86101e3565b60405190815260200160405180910390f35b60008054610114916001600160a01b03909116908361025d565b50565b60008054610114916001600160a01b0390911690836103a1565b600054604051631dd49f9360e11b8152600481018390526001600160a01b0390911690633ba93f2690602401600060405180830381600087803b15801561017757600080fd5b505af115801561018b573d6000803e3d6000fd5b5050505050565b600080546101ad916001600160a01b03909116908080610459565b565b600080546101ad916001600160a01b039091169080610491565b60008054610114916001600160a01b0390911690836104c6565b60008054604051636eb1769f60e11b815260048101839052602481018390526001600160a01b039091169063dd62ed3e90604401602060405180830381865afa158015610234573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102589190610840565b905090565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa1580156102ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d19190610840565b90508181101561033a5760405162461bcd60e51b815260206004820152602960248201527f5361666545524332303a2064656372656173656420616c6c6f77616e63652062604482015268656c6f77207a65726f60b81b60648201526084015b60405180910390fd5b6040516001600160a01b0384166024820152828203604482018190529061018b90869063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526105db565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa1580156103f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104169190610840565b6104209190610859565b6040516001600160a01b03851660248201526044810182905290915061045390859063095ea7b360e01b9060640161036a565b50505050565b6040516001600160a01b03808516602483015283166044820152606481018290526104539085906323b872dd60e01b9060840161036a565b6040516001600160a01b0383166024820152604481018290526104c190849063a9059cbb60e01b9060640161036a565b505050565b8015806105405750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa15801561051a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053e9190610840565b155b6105ab5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610331565b6040516001600160a01b0383166024820152604481018290526104c190849063095ea7b360e01b9060640161036a565b6000610630826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166106ad9092919063ffffffff16565b8051909150156104c1578080602001905181019061064e919061087f565b6104c15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610331565b60606106bc84846000856106c6565b90505b9392505050565b6060824710156107275760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610331565b843b6107755760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610331565b600080866001600160a01b0316858760405161079191906108cd565b60006040518083038185875af1925050503d80600081146107ce576040519150601f19603f3d011682016040523d82523d6000602084013e6107d3565b606091505b50915091506107e38282866107ee565b979650505050505050565b606083156107fd5750816106bf565b82511561080d5782518084602001fd5b8160405162461bcd60e51b815260040161033191906108e9565b60006020828403121561083957600080fd5b5035919050565b60006020828403121561085257600080fd5b5051919050565b6000821982111561087a57634e487b7160e01b600052601160045260246000fd5b500190565b60006020828403121561089157600080fd5b815180151581146106bf57600080fd5b60005b838110156108bc5781810151838201526020016108a4565b838111156104535750506000910152565b600082516108df8184602087016108a1565b9190910192915050565b60208152600082518060208401526109088160408501602087016108a1565b601f01601f1916919091016040019291505056fea26469706673582212203060e252587e496dafab6a967218b3bfafaccc7312442194e084d0583bf9b59564736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "token", "type": "address", "internalType": "contract IERC20"}]}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "allowance_", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "SafeMathMock": {"contractName": "SafeMathMock", "sourceId": "mocks/SafeMathMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061081b806100206000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80639f5cec89116100a2578063dcc721d211610071578063dcc721d21461021b578063fb1191981461022e578063fb24c86014610241578063fb999ded14610249578063fc0ce5031461025157600080fd5b80639f5cec89146101da578063a155bd62146101ed578063a29962b114610200578063c460ae041461021357600080fd5b80636f91e802116100e95780636f91e80214610191578063736ecb18146101995780637e86d25c146101ac578063869f602f146101b4578063884557bf146101c757600080fd5b80633449b5fb1461011b57806338dc0867146101415780636281efa41461016b5780636c7ac6371461017e575b600080fd5b61012e6101293660046105ef565b610264565b6040519081526020015b60405180910390f35b61015461014f3660046106b3565b610279565b604080519215158352602083019190915201610138565b6101546101793660046106b3565b610292565b61012e61018c3660046106b3565b61029f565b61012e6102b2565b6101546101a73660046106b3565b6102e7565b61012e6102f4565b61012e6101c23660046106b3565b610320565b6101546101d53660046106b3565b61032c565b61012e6101e83660046105ef565b610339565b61012e6101fb3660046105ef565b610346565b61015461020e3660046106b3565b610353565b61012e610360565b61012e6102293660046106b3565b61038c565b61012e61023c3660046106b3565b610398565b61012e6103a4565b61012e6103d0565b61012e61025f3660046106b3565b6103fc565b6000610271848484610408565b949350505050565b600080610286848461044b565b915091505b9250929050565b600080610286848461047e565b60006102ab83836104c7565b9392505050565b604051602060005b818110156102de576102cd6001806104d3565b506102d7816106eb565b90506102ba565b50506040510390565b60008061028684846104df565b604051602060005b818110156102de5761030f600180610512565b50610319816106eb565b90506102fc565b60006102ab83836104d3565b600080610286848461051e565b6000610271848484610539565b6000610271848484610565565b600080610286848461059f565b604051602060005b818110156102de5761037b6001806105c1565b50610385816106eb565b9050610368565b60006102ab83836105cd565b60006102ab8383610512565b604051602060005b818110156102de576103bf6001806105cd565b506103c9816106eb565b90506103ac565b604051602060005b818110156102de576103eb6001806104c7565b506103f5816106eb565b90506103d8565b60006102ab83836105c1565b600081836104325760405162461bcd60e51b81526004016104299190610704565b60405180910390fd5b5082848161044257610442610759565b04949350505050565b600080826000036104615750600090508061028b565b600183858161047257610472610759565b06915091509250929050565b60008083600003610495575060019050600061028b565b838302838582816104a8576104a8610759565b04146104bb57600080925092505061028b565b60019590945092505050565b60006102ab828461076f565b60006102ab8284610786565b600080826000036104f55750600090508061028b565b600183858161050657610506610759565b04915091509250929050565b60006102ab828461079a565b600080838301848110156104bb57600080925092505061028b565b6000818484111561055d5760405162461bcd60e51b81526004016104299190610704565b505050900390565b600081836105865760405162461bcd60e51b81526004016104299190610704565b5082848161059657610596610759565b06949350505050565b600080838311156105b55750600090508061028b565b50600193919092039150565b60006102ab82846107b9565b60006102ab82846107cd565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561060457600080fd5b8335925060208401359150604084013567ffffffffffffffff8082111561062a57600080fd5b818601915086601f83011261063e57600080fd5b813581811115610650576106506105d9565b604051601f8201601f19908116603f01168101908382118183101715610678576106786105d9565b8160405282815289602084870101111561069157600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b600080604083850312156106c657600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b6000600182016106fd576106fd6106d5565b5060010190565b600060208083528351808285015260005b8181101561073157858101830151858201604001528201610715565b81811115610743576000604083870101525b50601f01601f1916929092016040019392505050565b634e487b7160e01b600052601260045260246000fd5b600082821015610781576107816106d5565b500390565b60008261079557610795610759565b500690565b60008160001904831182151516156107b4576107b46106d5565b500290565b6000826107c8576107c8610759565b500490565b600082198211156107e0576107e06106d5565b50019056fea26469706673582212205bccb7d20374a53d6141942170a538d64f1f9a187a0a7a45aa7f0eefc6316f3464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101165760003560e01c80639f5cec89116100a2578063dcc721d211610071578063dcc721d21461021b578063fb1191981461022e578063fb24c86014610241578063fb999ded14610249578063fc0ce5031461025157600080fd5b80639f5cec89146101da578063a155bd62146101ed578063a29962b114610200578063c460ae041461021357600080fd5b80636f91e802116100e95780636f91e80214610191578063736ecb18146101995780637e86d25c146101ac578063869f602f146101b4578063884557bf146101c757600080fd5b80633449b5fb1461011b57806338dc0867146101415780636281efa41461016b5780636c7ac6371461017e575b600080fd5b61012e6101293660046105ef565b610264565b6040519081526020015b60405180910390f35b61015461014f3660046106b3565b610279565b604080519215158352602083019190915201610138565b6101546101793660046106b3565b610292565b61012e61018c3660046106b3565b61029f565b61012e6102b2565b6101546101a73660046106b3565b6102e7565b61012e6102f4565b61012e6101c23660046106b3565b610320565b6101546101d53660046106b3565b61032c565b61012e6101e83660046105ef565b610339565b61012e6101fb3660046105ef565b610346565b61015461020e3660046106b3565b610353565b61012e610360565b61012e6102293660046106b3565b61038c565b61012e61023c3660046106b3565b610398565b61012e6103a4565b61012e6103d0565b61012e61025f3660046106b3565b6103fc565b6000610271848484610408565b949350505050565b600080610286848461044b565b915091505b9250929050565b600080610286848461047e565b60006102ab83836104c7565b9392505050565b604051602060005b818110156102de576102cd6001806104d3565b506102d7816106eb565b90506102ba565b50506040510390565b60008061028684846104df565b604051602060005b818110156102de5761030f600180610512565b50610319816106eb565b90506102fc565b60006102ab83836104d3565b600080610286848461051e565b6000610271848484610539565b6000610271848484610565565b600080610286848461059f565b604051602060005b818110156102de5761037b6001806105c1565b50610385816106eb565b9050610368565b60006102ab83836105cd565b60006102ab8383610512565b604051602060005b818110156102de576103bf6001806105cd565b506103c9816106eb565b90506103ac565b604051602060005b818110156102de576103eb6001806104c7565b506103f5816106eb565b90506103d8565b60006102ab83836105c1565b600081836104325760405162461bcd60e51b81526004016104299190610704565b60405180910390fd5b5082848161044257610442610759565b04949350505050565b600080826000036104615750600090508061028b565b600183858161047257610472610759565b06915091509250929050565b60008083600003610495575060019050600061028b565b838302838582816104a8576104a8610759565b04146104bb57600080925092505061028b565b60019590945092505050565b60006102ab828461076f565b60006102ab8284610786565b600080826000036104f55750600090508061028b565b600183858161050657610506610759565b04915091509250929050565b60006102ab828461079a565b600080838301848110156104bb57600080925092505061028b565b6000818484111561055d5760405162461bcd60e51b81526004016104299190610704565b505050900390565b600081836105865760405162461bcd60e51b81526004016104299190610704565b5082848161059657610596610759565b06949350505050565b600080838311156105b55750600090508061028b565b50600193919092039150565b60006102ab82846107b9565b60006102ab82846107cd565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561060457600080fd5b8335925060208401359150604084013567ffffffffffffffff8082111561062a57600080fd5b818601915086601f83011261063e57600080fd5b813581811115610650576106506105d9565b604051601f8201601f19908116603f01168101908382118183101715610678576106786105d9565b8160405282815289602084870101111561069157600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b600080604083850312156106c657600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b6000600182016106fd576106fd6106d5565b5060010190565b600060208083528351808285015260005b8181101561073157858101830151858201604001528201610715565b81811115610743576000604083870101525b50601f01601f1916929092016040019392505050565b634e487b7160e01b600052601260045260246000fd5b600082821015610781576107816106d5565b500390565b60008261079557610795610759565b500690565b60008160001904831182151516156107b4576107b46106d5565b500290565b6000826107c8576107c8610759565b500490565b600082198211156107e0576107e06106d5565b50019056fea26469706673582212205bccb7d20374a53d6141942170a538d64f1f9a187a0a7a45aa7f0eefc6316f3464736f6c634300080d0033"}, "abi": [{"type": "function", "name": "addMemoryCheck", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "mem", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "divMemoryCheck", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "mem", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "divWithMessage", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}, {"name": "errorMessage", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "doAdd", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "doDiv", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "doMod", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "doMul", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "doSub", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "modMemoryCheck", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "mem", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "modWithMessage", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}, {"name": "errorMessage", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "mulMemoryCheck", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "mem", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "subMemoryCheck", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "mem", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "subWithMessage", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}, {"name": "errorMessage", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tryAdd", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "flag", "type": "bool", "internalType": "bool"}, {"name": "value", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tryDiv", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "flag", "type": "bool", "internalType": "bool"}, {"name": "value", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tryMod", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "flag", "type": "bool", "internalType": "bool"}, {"name": "value", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tryMul", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "flag", "type": "bool", "internalType": "bool"}, {"name": "value", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "trySub", "stateMutability": "pure", "inputs": [{"name": "a", "type": "uint256", "internalType": "uint256"}, {"name": "b", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "flag", "type": "bool", "internalType": "bool"}, {"name": "value", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "SignatureCheckerMock": {"contractName": "SignatureCheckerMock", "sourceId": "mocks/SignatureCheckerMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610538806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80636ccea65214610030575b600080fd5b61004361003e366004610363565b610057565b604051901515815260200160405180910390f35b600061006d6001600160a01b0385168484610077565b90505b9392505050565b600080600061008685856101c3565b9092509050600081600481111561009f5761009f61043c565b1480156100bd5750856001600160a01b0316826001600160a01b0316145b156100cd57600192505050610070565b600080876001600160a01b0316631626ba7e60e01b88886040516024016100f5929190610482565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252905161013391906104bc565b600060405180830381855afa9150503d806000811461016e576040519150601f19603f3d011682016040523d82523d6000602084013e610173565b606091505b5091509150818015610186575080516020145b80156101b757508051630b135d3f60e11b906101ab90830160209081019084016104d8565b6001600160e01b031916145b98975050505050505050565b60008082516041036101f95760208301516040840151606085015160001a6101ed87828585610231565b9450945050505061022a565b8251604003610222576020830151604084015161021786838361031e565b93509350505061022a565b506000905060025b9250929050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156102685750600090506003610315565b8460ff16601b1415801561028057508460ff16601c14155b156102915750600090506004610315565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156102e5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661030e57600060019250925050610315565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161033f87828885610231565b935093505050935093915050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561037857600080fd5b83356001600160a01b038116811461038f57600080fd5b925060208401359150604084013567ffffffffffffffff808211156103b357600080fd5b818601915086601f8301126103c757600080fd5b8135818111156103d9576103d961034d565b604051601f8201601f19908116603f011681019083821181831017156104015761040161034d565b8160405282815289602084870101111561041a57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b634e487b7160e01b600052602160045260246000fd5b60005b8381101561046d578181015183820152602001610455565b8381111561047c576000848401525b50505050565b82815260406020820152600082518060408401526104a7816060850160208701610452565b601f01601f1916919091016060019392505050565b600082516104ce818460208701610452565b9190910192915050565b6000602082840312156104ea57600080fd5b81516001600160e01b03198116811461007057600080fdfea26469706673582212206c699aab059e3ce83fe59812a094d1cf2943e84d8da085f59c88a6bf5cc209aa64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80636ccea65214610030575b600080fd5b61004361003e366004610363565b610057565b604051901515815260200160405180910390f35b600061006d6001600160a01b0385168484610077565b90505b9392505050565b600080600061008685856101c3565b9092509050600081600481111561009f5761009f61043c565b1480156100bd5750856001600160a01b0316826001600160a01b0316145b156100cd57600192505050610070565b600080876001600160a01b0316631626ba7e60e01b88886040516024016100f5929190610482565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252905161013391906104bc565b600060405180830381855afa9150503d806000811461016e576040519150601f19603f3d011682016040523d82523d6000602084013e610173565b606091505b5091509150818015610186575080516020145b80156101b757508051630b135d3f60e11b906101ab90830160209081019084016104d8565b6001600160e01b031916145b98975050505050505050565b60008082516041036101f95760208301516040840151606085015160001a6101ed87828585610231565b9450945050505061022a565b8251604003610222576020830151604084015161021786838361031e565b93509350505061022a565b506000905060025b9250929050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156102685750600090506003610315565b8460ff16601b1415801561028057508460ff16601c14155b156102915750600090506004610315565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156102e5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661030e57600060019250925050610315565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161033f87828885610231565b935093505050935093915050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561037857600080fd5b83356001600160a01b038116811461038f57600080fd5b925060208401359150604084013567ffffffffffffffff808211156103b357600080fd5b818601915086601f8301126103c757600080fd5b8135818111156103d9576103d961034d565b604051601f8201601f19908116603f011681019083821181831017156104015761040161034d565b8160405282815289602084870101111561041a57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b634e487b7160e01b600052602160045260246000fd5b60005b8381101561046d578181015183820152602001610455565b8381111561047c576000848401525b50505050565b82815260406020820152600082518060408401526104a7816060850160208701610452565b601f01601f1916919091016060019392505050565b600082516104ce818460208701610452565b9190910192915050565b6000602082840312156104ea57600080fd5b81516001600160e01b03198116811461007057600080fdfea26469706673582212206c699aab059e3ce83fe59812a094d1cf2943e84d8da085f59c88a6bf5cc209aa64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "isValidSignatureNow", "stateMutability": "view", "inputs": [{"name": "signer", "type": "address", "internalType": "address"}, {"name": "hash", "type": "bytes32", "internalType": "bytes32"}, {"name": "signature", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "SignedSafeMathMock": {"contractName": "SignedSafeMathMock", "sourceId": "mocks/SignedSafeMathMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506102c5806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80634350913814610051578063a5f3c23b14610076578063adefc37b14610089578063bbe93d911461009c575b600080fd5b61006461005f366004610116565b6100af565b60405190815260200160405180910390f35b610064610084366004610116565b6100c2565b610064610097366004610116565b6100ce565b6100646100aa366004610116565b6100da565b60006100bb83836100e6565b9392505050565b60006100bb83836100f2565b60006100bb83836100fe565b60006100bb838361010a565b60006100bb828461014e565b60006100bb828461018a565b60006100bb82846101cb565b60006100bb828461020a565b6000806040838503121561012957600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b60008261016b57634e487b7160e01b600052601260045260246000fd5b600160ff1b82146000198414161561018557610185610138565b500590565b600080821280156001600160ff1b03849003851316156101ac576101ac610138565b600160ff1b83900384128116156101c5576101c5610138565b50500190565b60008083128015600160ff1b8501841216156101e9576101e9610138565b6001600160ff1b038401831381161561020457610204610138565b50500390565b60006001600160ff1b038184138284138082168684048611161561023057610230610138565b600160ff1b600087128281168783058912161561024f5761024f610138565b6000871292508782058712848416161561026b5761026b610138565b8785058712818416161561028157610281610138565b50505092909302939250505056fea2646970667358221220b68d9729e6bcf5eb574b777742c3cbc5f385cd4e817461bfd661f3b7a2a8526164736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80634350913814610051578063a5f3c23b14610076578063adefc37b14610089578063bbe93d911461009c575b600080fd5b61006461005f366004610116565b6100af565b60405190815260200160405180910390f35b610064610084366004610116565b6100c2565b610064610097366004610116565b6100ce565b6100646100aa366004610116565b6100da565b60006100bb83836100e6565b9392505050565b60006100bb83836100f2565b60006100bb83836100fe565b60006100bb838361010a565b60006100bb828461014e565b60006100bb828461018a565b60006100bb82846101cb565b60006100bb828461020a565b6000806040838503121561012957600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b60008261016b57634e487b7160e01b600052601260045260246000fd5b600160ff1b82146000198414161561018557610185610138565b500590565b600080821280156001600160ff1b03849003851316156101ac576101ac610138565b600160ff1b83900384128116156101c5576101c5610138565b50500190565b60008083128015600160ff1b8501841216156101e9576101e9610138565b6001600160ff1b038401831381161561020457610204610138565b50500390565b60006001600160ff1b038184138284138082168684048611161561023057610230610138565b600160ff1b600087128281168783058912161561024f5761024f610138565b6000871292508782058712848416161561026b5761026b610138565b8785058712818416161561028157610281610138565b50505092909302939250505056fea2646970667358221220b68d9729e6bcf5eb574b777742c3cbc5f385cd4e817461bfd661f3b7a2a8526164736f6c634300080d0033"}, "abi": [{"type": "function", "name": "add", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}, {"name": "b", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int256", "internalType": "int256"}]}, {"type": "function", "name": "div", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}, {"name": "b", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int256", "internalType": "int256"}]}, {"type": "function", "name": "mul", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}, {"name": "b", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int256", "internalType": "int256"}]}, {"type": "function", "name": "sub", "stateMutability": "pure", "inputs": [{"name": "a", "type": "int256", "internalType": "int256"}, {"name": "b", "type": "int256", "internalType": "int256"}], "outputs": [{"name": "", "type": "int256", "internalType": "int256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "MigratableMockV1": {"contractName": "MigratableMockV1", "sourceId": "mocks/SingleInheritanceInitializableMocks.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061017d806100206000396000f3fe6080604052600436106100295760003560e01c80630c55699c1461002e578063fe4b84df14610056575b600080fd5b34801561003a57600080fd5b5061004460015481565b60405190815260200160405180910390f35b61006961006436600461012e565b61006b565b005b600054610100900460ff166100865760005460ff161561008a565b303b155b6100f15760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff16158015610113576000805461ffff19166101011790555b6001829055801561012a576000805461ff00191690555b5050565b60006020828403121561014057600080fd5b503591905056fea2646970667358221220d687729800b44f09412c9c1bb24b64245398abc706ff7e928b109aba096cbe3364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100295760003560e01c80630c55699c1461002e578063fe4b84df14610056575b600080fd5b34801561003a57600080fd5b5061004460015481565b60405190815260200160405180910390f35b61006961006436600461012e565b61006b565b005b600054610100900460ff166100865760005460ff161561008a565b303b155b6100f15760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff16158015610113576000805461ffff19166101011790555b6001829055801561012a576000805461ff00191690555b5050565b60006020828403121561014057600080fd5b503591905056fea2646970667358221220d687729800b44f09412c9c1bb24b64245398abc706ff7e928b109aba096cbe3364736f6c634300080d0033"}, "abi": [{"type": "function", "name": "initialize", "stateMutability": "payable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "x", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This contract is a mock to test initializable functionality through migrations", "kind": "dev", "methods": {}, "title": "MigratableMockV1", "version": 1}}, "MigratableMockV2": {"contractName": "MigratableMockV2", "sourceId": "mocks/SingleInheritanceInitializableMocks.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610205806100206000396000f3fe60806040526004361061003f5760003560e01c80630c55699c146100445780633e54bacb1461006c578063a56dfe4a14610081578063fe4b84df14610097575b600080fd5b34801561005057600080fd5b5061005a60015481565b60405190815260200160405180910390f35b61007f61007a366004610194565b6100aa565b005b34801561008d57600080fd5b5061005a60035481565b61007f6100a53660046101b6565b6100d1565b60025460ff16156100ba57600080fd5b60019182556003556002805460ff19169091179055565b600054610100900460ff166100ec5760005460ff16156100f0565b303b155b6101575760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff16158015610179576000805461ffff19166101011790555b60018290558015610190576000805461ff00191690555b5050565b600080604083850312156101a757600080fd5b50508035926020909101359150565b6000602082840312156101c857600080fd5b503591905056fea2646970667358221220fe75a6a8dca4b87526ac90e9cb9f9e807ccb1e7b49abb32a3dd9ceaaded1d52f64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x60806040526004361061003f5760003560e01c80630c55699c146100445780633e54bacb1461006c578063a56dfe4a14610081578063fe4b84df14610097575b600080fd5b34801561005057600080fd5b5061005a60015481565b60405190815260200160405180910390f35b61007f61007a366004610194565b6100aa565b005b34801561008d57600080fd5b5061005a60035481565b61007f6100a53660046101b6565b6100d1565b60025460ff16156100ba57600080fd5b60019182556003556002805460ff19169091179055565b600054610100900460ff166100ec5760005460ff16156100f0565b303b155b6101575760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff16158015610179576000805461ffff19166101011790555b60018290558015610190576000805461ff00191690555b5050565b600080604083850312156101a757600080fd5b50508035926020909101359150565b6000602082840312156101c857600080fd5b503591905056fea2646970667358221220fe75a6a8dca4b87526ac90e9cb9f9e807ccb1e7b49abb32a3dd9ceaaded1d52f64736f6c634300080d0033"}, "abi": [{"type": "function", "name": "initialize", "stateMutability": "payable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "migrate", "stateMutability": "payable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "anotherValue", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "x", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "y", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This contract is a mock to test migratable functionality with params", "kind": "dev", "methods": {}, "title": "MigratableMockV2", "version": 1}}, "MigratableMockV3": {"contractName": "MigratableMockV3", "sourceId": "mocks/SingleInheritanceInitializableMocks.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610242806100206000396000f3fe60806040526004361061004a5760003560e01c80630c55699c1461004f5780633e54bacb146100775780638fd3ab801461008c578063a56dfe4a14610094578063fe4b84df146100aa575b600080fd5b34801561005b57600080fd5b5061006560015481565b60405190815260200160405180910390f35b61008a6100853660046101d1565b6100bd565b005b61008a6100e4565b3480156100a057600080fd5b5061006560035481565b61008a6100b83660046101f3565b61010e565b60025460ff16156100cd57600080fd5b60019182556003556002805460ff19169091179055565b60045460ff16156100f457600080fd5b60018054600380548355556004805460ff19169091179055565b600054610100900460ff166101295760005460ff161561012d565b303b155b6101945760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff161580156101b6576000805461ffff19166101011790555b600182905580156101cd576000805461ff00191690555b5050565b600080604083850312156101e457600080fd5b50508035926020909101359150565b60006020828403121561020557600080fd5b503591905056fea26469706673582212200a37ff6269d8f024ba472efa4ac7d7871cc74b030c65a499f511e61afd49b32564736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x60806040526004361061004a5760003560e01c80630c55699c1461004f5780633e54bacb146100775780638fd3ab801461008c578063a56dfe4a14610094578063fe4b84df146100aa575b600080fd5b34801561005b57600080fd5b5061006560015481565b60405190815260200160405180910390f35b61008a6100853660046101d1565b6100bd565b005b61008a6100e4565b3480156100a057600080fd5b5061006560035481565b61008a6100b83660046101f3565b61010e565b60025460ff16156100cd57600080fd5b60019182556003556002805460ff19169091179055565b60045460ff16156100f457600080fd5b60018054600380548355556004805460ff19169091179055565b600054610100900460ff166101295760005460ff161561012d565b303b155b6101945760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff161580156101b6576000805461ffff19166101011790555b600182905580156101cd576000805461ff00191690555b5050565b600080604083850312156101e457600080fd5b50508035926020909101359150565b60006020828403121561020557600080fd5b503591905056fea26469706673582212200a37ff6269d8f024ba472efa4ac7d7871cc74b030c65a499f511e61afd49b32564736f6c634300080d0033"}, "abi": [{"type": "function", "name": "initialize", "stateMutability": "payable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "migrate", "stateMutability": "payable", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "anotherValue", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "migrate", "stateMutability": "payable", "inputs": [], "outputs": []}, {"type": "function", "name": "x", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "y", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This contract is a mock to test migratable functionality without params", "kind": "dev", "methods": {}, "title": "MigratableMockV3", "version": 1}}, "StorageSlotMock": {"contractName": "StorageSlotMock", "sourceId": "mocks/StorageSlotMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061023c806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80634f3029c21161005b5780634f3029c21461010a578063a6ed563e146100c5578063ca446dd91461011e578063f8715b3e1461014957600080fd5b806321f8a7211461008d57806333598b00146100c55780633848207a146100e55780634e91db081461010a575b600080fd5b6100a861009b366004610165565b546001600160a01b031690565b6040516001600160a01b0390911681526020015b60405180910390f35b6100d76100d3366004610165565b5490565b6040519081526020016100bc565b6100fa6100f3366004610165565b5460ff1690565b60405190151581526020016100bc565b61011c61011836600461017e565b9055565b005b61011c61012c3660046101a0565b81546001600160a01b0319166001600160a01b0391909116179055565b61011c6101573660046101dc565b815460ff1916901515179055565b60006020828403121561017757600080fd5b5035919050565b6000806040838503121561019157600080fd5b50508035926020909101359150565b600080604083850312156101b357600080fd5b8235915060208301356001600160a01b03811681146101d157600080fd5b809150509250929050565b600080604083850312156101ef57600080fd5b82359150602083013580151581146101d157600080fdfea264697066735822122091b937c51e3b71b6f51171ece54274027b50f86b394ce0a0d06ff8dc2cf80af764736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100885760003560e01c80634f3029c21161005b5780634f3029c21461010a578063a6ed563e146100c5578063ca446dd91461011e578063f8715b3e1461014957600080fd5b806321f8a7211461008d57806333598b00146100c55780633848207a146100e55780634e91db081461010a575b600080fd5b6100a861009b366004610165565b546001600160a01b031690565b6040516001600160a01b0390911681526020015b60405180910390f35b6100d76100d3366004610165565b5490565b6040519081526020016100bc565b6100fa6100f3366004610165565b5460ff1690565b60405190151581526020016100bc565b61011c61011836600461017e565b9055565b005b61011c61012c3660046101a0565b81546001600160a01b0319166001600160a01b0391909116179055565b61011c6101573660046101dc565b815460ff1916901515179055565b60006020828403121561017757600080fd5b5035919050565b6000806040838503121561019157600080fd5b50508035926020909101359150565b600080604083850312156101b357600080fd5b8235915060208301356001600160a01b03811681146101d157600080fd5b809150509250929050565b600080604083850312156101ef57600080fd5b82359150602083013580151581146101d157600080fdfea264697066735822122091b937c51e3b71b6f51171ece54274027b50f86b394ce0a0d06ff8dc2cf80af764736f6c634300080d0033"}, "abi": [{"type": "function", "name": "getAddress", "stateMutability": "view", "inputs": [{"name": "slot", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getBoolean", "stateMutability": "view", "inputs": [{"name": "slot", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "getBytes32", "stateMutability": "view", "inputs": [{"name": "slot", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getUint256", "stateMutability": "view", "inputs": [{"name": "slot", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "setAddress", "stateMutability": "nonpayable", "inputs": [{"name": "slot", "type": "bytes32", "internalType": "bytes32"}, {"name": "value", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "setBoolean", "stateMutability": "nonpayable", "inputs": [{"name": "slot", "type": "bytes32", "internalType": "bytes32"}, {"name": "value", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "setBytes32", "stateMutability": "nonpayable", "inputs": [{"name": "slot", "type": "bytes32", "internalType": "bytes32"}, {"name": "value", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "setUint256", "stateMutability": "nonpayable", "inputs": [{"name": "slot", "type": "bytes32", "internalType": "bytes32"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "StringsMock": {"contractName": "StringsMock", "sourceId": "mocks/StringsMock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610588806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806302c5b75f1461004657806392b0ed1a1461006f578063a2bd364414610082575b600080fd5b6100596100543660046103c4565b610095565b60405161006691906103dd565b60405180910390f35b61005961007d366004610432565b6100a6565b6100596100903660046103c4565b6100b9565b60606100a0826100c4565b92915050565b60606100b28383610123565b9392505050565b60606100a0826102c3565b6060816000036100ee5750506040805180820190915260048152630307830360e41b602082015290565b8160005b811561011157806101028161046a565b915050600882901c91506100f2565b61011b8482610123565b949350505050565b60606000610132836002610483565b61013d9060026104a2565b67ffffffffffffffff811115610155576101556104ba565b6040519080825280601f01601f19166020018201604052801561017f576020820181803683370190505b509050600360fc1b8160008151811061019a5761019a6104d0565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106101c9576101c96104d0565b60200101906001600160f81b031916908160001a90535060006101ed846002610483565b6101f89060016104a2565b90505b6001811115610270576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061022c5761022c6104d0565b1a60f81b828281518110610242576102426104d0565b60200101906001600160f81b031916908160001a90535060049490941c93610269816104e6565b90506101fb565b5083156100b25760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640160405180910390fd5b6060816000036102ea5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561031457806102fe8161046a565b915061030d9050600a83610513565b91506102ee565b60008167ffffffffffffffff81111561032f5761032f6104ba565b6040519080825280601f01601f191660200182016040528015610359576020820181803683370190505b5090505b841561011b5761036e600183610527565b915061037b600a8661053e565b6103869060306104a2565b60f81b81838151811061039b5761039b6104d0565b60200101906001600160f81b031916908160001a9053506103bd600a86610513565b945061035d565b6000602082840312156103d657600080fd5b5035919050565b600060208083528351808285015260005b8181101561040a578581018301518582016040015282016103ee565b8181111561041c576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561044557600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b60006001820161047c5761047c610454565b5060010190565b600081600019048311821515161561049d5761049d610454565b500290565b600082198211156104b5576104b5610454565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816104f5576104f5610454565b506000190190565b634e487b7160e01b600052601260045260246000fd5b600082610522576105226104fd565b500490565b60008282101561053957610539610454565b500390565b60008261054d5761054d6104fd565b50069056fea2646970667358221220ae3412b609be8a271e8d8bc07d27bd1700abf49931b2518b6e665c4effde7fc664736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806302c5b75f1461004657806392b0ed1a1461006f578063a2bd364414610082575b600080fd5b6100596100543660046103c4565b610095565b60405161006691906103dd565b60405180910390f35b61005961007d366004610432565b6100a6565b6100596100903660046103c4565b6100b9565b60606100a0826100c4565b92915050565b60606100b28383610123565b9392505050565b60606100a0826102c3565b6060816000036100ee5750506040805180820190915260048152630307830360e41b602082015290565b8160005b811561011157806101028161046a565b915050600882901c91506100f2565b61011b8482610123565b949350505050565b60606000610132836002610483565b61013d9060026104a2565b67ffffffffffffffff811115610155576101556104ba565b6040519080825280601f01601f19166020018201604052801561017f576020820181803683370190505b509050600360fc1b8160008151811061019a5761019a6104d0565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106101c9576101c96104d0565b60200101906001600160f81b031916908160001a90535060006101ed846002610483565b6101f89060016104a2565b90505b6001811115610270576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061022c5761022c6104d0565b1a60f81b828281518110610242576102426104d0565b60200101906001600160f81b031916908160001a90535060049490941c93610269816104e6565b90506101fb565b5083156100b25760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640160405180910390fd5b6060816000036102ea5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561031457806102fe8161046a565b915061030d9050600a83610513565b91506102ee565b60008167ffffffffffffffff81111561032f5761032f6104ba565b6040519080825280601f01601f191660200182016040528015610359576020820181803683370190505b5090505b841561011b5761036e600183610527565b915061037b600a8661053e565b6103869060306104a2565b60f81b81838151811061039b5761039b6104d0565b60200101906001600160f81b031916908160001a9053506103bd600a86610513565b945061035d565b6000602082840312156103d657600080fd5b5035919050565b600060208083528351808285015260005b8181101561040a578581018301518582016040015282016103ee565b8181111561041c576000604083870101525b50601f01601f1916929092016040019392505050565b6000806040838503121561044557600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b60006001820161047c5761047c610454565b5060010190565b600081600019048311821515161561049d5761049d610454565b500290565b600082198211156104b5576104b5610454565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816104f5576104f5610454565b506000190190565b634e487b7160e01b600052601260045260246000fd5b600082610522576105226104fd565b500490565b60008282101561053957610539610454565b500390565b60008261054d5761054d6104fd565b50069056fea2646970667358221220ae3412b609be8a271e8d8bc07d27bd1700abf49931b2518b6e665c4effde7fc664736f6c634300080d0033"}, "abi": [{"type": "function", "name": "fromUint256", "stateMutability": "pure", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "fromUint256Hex", "stateMutability": "pure", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "fromUint256HexFixed", "stateMutability": "pure", "inputs": [{"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "length", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "TimersBlockNumberImpl": {"contractName": "TimersBlockNumberImpl", "sourceId": "mocks/TimersBlockNumberImpl.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610243806100206000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80635f8d96de1161005b5780635f8d96de146100e05780639c30ad7e14610107578063aebc04831461012a578063d826f88f1461015c57600080fd5b80632260fe3a146100825780632f13b60c146100b5578063544736e6146100bd575b600080fd5b604080516020810190915260005467ffffffffffffffff1690819052155b60405190151581526020015b60405180910390f35b6100a0610169565b604080516020810190915260005467ffffffffffffffff169081905215156100a0565b604080516020808201835260005467ffffffffffffffff16918290529151908152016100ac565b604080516020810190915260005467ffffffffffffffff169081905243106100a0565b61015a6101383660046101dc565b6000805467ffffffffffffffff831667ffffffffffffffff1990911617905550565b005b61015a61018e565b905090565b60408051602081019091526000805467ffffffffffffffff16825290610164906101a6565b6101a46000805467ffffffffffffffff19169055565b565b60006101bc825167ffffffffffffffff16151590565b80156101d6575043826000015167ffffffffffffffff1611155b92915050565b6000602082840312156101ee57600080fd5b813567ffffffffffffffff8116811461020657600080fd5b939250505056fea2646970667358221220c69f6812755dfaffcfd7a7e1398e411bfd8657e09410c09075f5d5764aaaa00864736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80635f8d96de1161005b5780635f8d96de146100e05780639c30ad7e14610107578063aebc04831461012a578063d826f88f1461015c57600080fd5b80632260fe3a146100825780632f13b60c146100b5578063544736e6146100bd575b600080fd5b604080516020810190915260005467ffffffffffffffff1690819052155b60405190151581526020015b60405180910390f35b6100a0610169565b604080516020810190915260005467ffffffffffffffff169081905215156100a0565b604080516020808201835260005467ffffffffffffffff16918290529151908152016100ac565b604080516020810190915260005467ffffffffffffffff169081905243106100a0565b61015a6101383660046101dc565b6000805467ffffffffffffffff831667ffffffffffffffff1990911617905550565b005b61015a61018e565b905090565b60408051602081019091526000805467ffffffffffffffff16825290610164906101a6565b6101a46000805467ffffffffffffffff19169055565b565b60006101bc825167ffffffffffffffff16151590565b80156101d6575043826000015167ffffffffffffffff1611155b92915050565b6000602082840312156101ee57600080fd5b813567ffffffffffffffff8116811461020657600080fd5b939250505056fea2646970667358221220c69f6812755dfaffcfd7a7e1398e411bfd8657e09410c09075f5d5764aaaa00864736f6c634300080d0033"}, "abi": [{"type": "function", "name": "getDeadline", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint64", "internalType": "uint64"}]}, {"type": "function", "name": "isExpired", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isPending", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isStarted", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isUnset", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "reset", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "setDeadline", "stateMutability": "nonpayable", "inputs": [{"name": "timestamp", "type": "uint64", "internalType": "uint64"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "TimersTimestampImpl": {"contractName": "TimersTimestampImpl", "sourceId": "mocks/TimersTimestampImpl.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610243806100206000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80635f8d96de1161005b5780635f8d96de146100e05780639c30ad7e14610107578063aebc04831461012a578063d826f88f1461015c57600080fd5b80632260fe3a146100825780632f13b60c146100b5578063544736e6146100bd575b600080fd5b604080516020810190915260005467ffffffffffffffff1690819052155b60405190151581526020015b60405180910390f35b6100a0610169565b604080516020810190915260005467ffffffffffffffff169081905215156100a0565b604080516020808201835260005467ffffffffffffffff16918290529151908152016100ac565b604080516020810190915260005467ffffffffffffffff169081905242106100a0565b61015a6101383660046101dc565b6000805467ffffffffffffffff831667ffffffffffffffff1990911617905550565b005b61015a61018e565b905090565b60408051602081019091526000805467ffffffffffffffff16825290610164906101a6565b6101a46000805467ffffffffffffffff19169055565b565b60006101bc825167ffffffffffffffff16151590565b80156101d6575042826000015167ffffffffffffffff1611155b92915050565b6000602082840312156101ee57600080fd5b813567ffffffffffffffff8116811461020657600080fd5b939250505056fea2646970667358221220d887e86429eb0d89599f9c1609f7ff3ff34e664f21884e279b3827d98745c9b064736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80635f8d96de1161005b5780635f8d96de146100e05780639c30ad7e14610107578063aebc04831461012a578063d826f88f1461015c57600080fd5b80632260fe3a146100825780632f13b60c146100b5578063544736e6146100bd575b600080fd5b604080516020810190915260005467ffffffffffffffff1690819052155b60405190151581526020015b60405180910390f35b6100a0610169565b604080516020810190915260005467ffffffffffffffff169081905215156100a0565b604080516020808201835260005467ffffffffffffffff16918290529151908152016100ac565b604080516020810190915260005467ffffffffffffffff169081905242106100a0565b61015a6101383660046101dc565b6000805467ffffffffffffffff831667ffffffffffffffff1990911617905550565b005b61015a61018e565b905090565b60408051602081019091526000805467ffffffffffffffff16825290610164906101a6565b6101a46000805467ffffffffffffffff19169055565b565b60006101bc825167ffffffffffffffff16151590565b80156101d6575042826000015167ffffffffffffffff1611155b92915050565b6000602082840312156101ee57600080fd5b813567ffffffffffffffff8116811461020657600080fd5b939250505056fea2646970667358221220d887e86429eb0d89599f9c1609f7ff3ff34e664f21884e279b3827d98745c9b064736f6c634300080d0033"}, "abi": [{"type": "function", "name": "getDeadline", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint64", "internalType": "uint64"}]}, {"type": "function", "name": "isExpired", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isPending", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isStarted", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isUnset", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "reset", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "setDeadline", "stateMutability": "nonpayable", "inputs": [{"name": "timestamp", "type": "uint64", "internalType": "uint64"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "UUPSUpgradeableBrokenMock": {"contractName": "UUPSUpgradeableBrokenMock", "sourceId": "mocks/UUPS/TestInProd.sol", "deploymentBytecode": {"bytecode": "0x60a06040523060805234801561001457600080fd5b506080516102b761002d600039600050506102b76000f3fe6080604052600436106100555760003560e01c80632baeceb71461005a5780633659cfe6146100715780634f1ef2861461008f5780639fa6a6e3146100a1578063d09de08a146100c3578063d826f88f146100d8575b600080fd5b34801561006657600080fd5b5061006f6100ed565b005b34801561007d57600080fd5b5061006f61008c366004610187565b50565b61006f61009d3660046101bf565b5050565b3480156100ad57600080fd5b5060005460405190815260200160405180910390f35b3480156100cf57600080fd5b5061006f6100f9565b3480156100e457600080fd5b5061006f610107565b6100f76000610110565b565b6100f7600080546001019055565b6100f760008055565b8054806101635760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f770000000000604482015260640160405180910390fd5b600019019055565b80356001600160a01b038116811461018257600080fd5b919050565b60006020828403121561019957600080fd5b6101a28261016b565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156101d257600080fd5b6101db8361016b565b9150602083013567ffffffffffffffff808211156101f857600080fd5b818501915085601f83011261020c57600080fd5b81358181111561021e5761021e6101a9565b604051601f8201601f19908116603f01168101908382118183101715610246576102466101a9565b8160405282815288602084870101111561025f57600080fd5b826020860160208301376000602084830101528095505050505050925092905056fea2646970667358221220a5079459a2ebbaa9a64e5d40c3aba61f8ef8118ecff9cefb39b3e93d2b76129864736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100555760003560e01c80632baeceb71461005a5780633659cfe6146100715780634f1ef2861461008f5780639fa6a6e3146100a1578063d09de08a146100c3578063d826f88f146100d8575b600080fd5b34801561006657600080fd5b5061006f6100ed565b005b34801561007d57600080fd5b5061006f61008c366004610187565b50565b61006f61009d3660046101bf565b5050565b3480156100ad57600080fd5b5060005460405190815260200160405180910390f35b3480156100cf57600080fd5b5061006f6100f9565b3480156100e457600080fd5b5061006f610107565b6100f76000610110565b565b6100f7600080546001019055565b6100f760008055565b8054806101635760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f770000000000604482015260640160405180910390fd5b600019019055565b80356001600160a01b038116811461018257600080fd5b919050565b60006020828403121561019957600080fd5b6101a28261016b565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156101d257600080fd5b6101db8361016b565b9150602083013567ffffffffffffffff808211156101f857600080fd5b818501915085601f83011261020c57600080fd5b81358181111561021e5761021e6101a9565b604051601f8201601f19908116603f01168101908382118183101715610246576102466101a9565b8160405282815288602084870101111561025f57600080fd5b826020860160208301376000602084830101528095505050505050925092905056fea2646970667358221220a5079459a2ebbaa9a64e5d40c3aba61f8ef8118ecff9cefb39b3e93d2b76129864736f6c634300080d0033"}, "abi": [{"type": "event", "name": "AdminChanged", "inputs": [{"name": "previousAdmin", "type": "address", "internalType": "address", "indexed": false}, {"name": "newAdmin", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "BeaconUpgraded", "inputs": [{"name": "beacon", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Upgraded", "inputs": [{"name": "implementation", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "current", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decrement", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "increment", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "reset", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "upgradeTo", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "upgradeToAndCall", "stateMutability": "payable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "bytes", "internalType": "bytes"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "UUPSUpgradeableMock": {"contractName": "UUPSUpgradeableMock", "sourceId": "mocks/UUPS/TestInProd.sol", "deploymentBytecode": {"bytecode": "0x60a06040523060805234801561001457600080fd5b506080516108fc610045600039600081816101060152818161014f015281816101ce015261020e01526108fc6000f3fe6080604052600436106100555760003560e01c80632baeceb71461005a5780633659cfe6146100715780634f1ef286146100915780639fa6a6e3146100a4578063d09de08a146100c6578063d826f88f146100db575b600080fd5b34801561006657600080fd5b5061006f6100f0565b005b34801561007d57600080fd5b5061006f61008c366004610695565b6100fc565b61006f61009f3660046106c6565b6101c4565b3480156100b057600080fd5b5060005460405190815260200160405180910390f35b3480156100d257600080fd5b5061006f610274565b3480156100e757600080fd5b5061006f610282565b6100fa600061028b565b565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361014d5760405162461bcd60e51b815260040161014490610788565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661017f6102e2565b6001600160a01b0316146101a55760405162461bcd60e51b8152600401610144906107d4565b604080516000808252602082019092526101c191839190610310565b50565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361020c5760405162461bcd60e51b815260040161014490610788565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661023e6102e2565b6001600160a01b0316146102645760405162461bcd60e51b8152600401610144906107d4565b61027082826001610310565b5050565b6100fa600080546001019055565b6100fa60008055565b8054806102da5760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f7700000000006044820152606401610144565b600019019055565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b600061031a6102e2565b90506103258461045b565b6000835111806103325750815b15610343576103418484610500565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff1661045457805460ff191660011781556040516001600160a01b03831660248201526103c290869060440160408051601f198184030181529190526020810180516001600160e01b0316631b2ce7f360e11b179052610500565b50805460ff191681556103d36102e2565b6001600160a01b0316826001600160a01b03161461044b5760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201526e75727468657220757067726164657360881b6064820152608401610144565b6104548561052c565b5050505050565b803b6104bf5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610144565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b606061052583836040518060600160405280602781526020016108a06027913961056c565b9392505050565b6105358161045b565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060833b6105cb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610144565b600080856001600160a01b0316856040516105e69190610850565b600060405180830381855af49150503d8060008114610621576040519150601f19603f3d011682016040523d82523d6000602084013e610626565b606091505b5091509150610636828286610640565b9695505050505050565b6060831561064f575081610525565b82511561065f5782518084602001fd5b8160405162461bcd60e51b8152600401610144919061086c565b80356001600160a01b038116811461069057600080fd5b919050565b6000602082840312156106a757600080fd5b61052582610679565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156106d957600080fd5b6106e283610679565b9150602083013567ffffffffffffffff808211156106ff57600080fd5b818501915085601f83011261071357600080fd5b813581811115610725576107256106b0565b604051601f8201601f19908116603f0116810190838211818310171561074d5761074d6106b0565b8160405282815288602084870101111561076657600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60005b8381101561083b578181015183820152602001610823565b8381111561084a576000848401525b50505050565b60008251610862818460208701610820565b9190910192915050565b602081526000825180602084015261088b816040850160208701610820565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220d94a93f0b6c22ae7ba5728f74b49bc28b15dfd15575c539f386e63f1109e087464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100555760003560e01c80632baeceb71461005a5780633659cfe6146100715780634f1ef286146100915780639fa6a6e3146100a4578063d09de08a146100c6578063d826f88f146100db575b600080fd5b34801561006657600080fd5b5061006f6100f0565b005b34801561007d57600080fd5b5061006f61008c366004610695565b6100fc565b61006f61009f3660046106c6565b6101c4565b3480156100b057600080fd5b5060005460405190815260200160405180910390f35b3480156100d257600080fd5b5061006f610274565b3480156100e757600080fd5b5061006f610282565b6100fa600061028b565b565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361014d5760405162461bcd60e51b815260040161014490610788565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661017f6102e2565b6001600160a01b0316146101a55760405162461bcd60e51b8152600401610144906107d4565b604080516000808252602082019092526101c191839190610310565b50565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361020c5760405162461bcd60e51b815260040161014490610788565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661023e6102e2565b6001600160a01b0316146102645760405162461bcd60e51b8152600401610144906107d4565b61027082826001610310565b5050565b6100fa600080546001019055565b6100fa60008055565b8054806102da5760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f7700000000006044820152606401610144565b600019019055565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b600061031a6102e2565b90506103258461045b565b6000835111806103325750815b15610343576103418484610500565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff1661045457805460ff191660011781556040516001600160a01b03831660248201526103c290869060440160408051601f198184030181529190526020810180516001600160e01b0316631b2ce7f360e11b179052610500565b50805460ff191681556103d36102e2565b6001600160a01b0316826001600160a01b03161461044b5760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201526e75727468657220757067726164657360881b6064820152608401610144565b6104548561052c565b5050505050565b803b6104bf5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610144565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b606061052583836040518060600160405280602781526020016108a06027913961056c565b9392505050565b6105358161045b565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060833b6105cb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610144565b600080856001600160a01b0316856040516105e69190610850565b600060405180830381855af49150503d8060008114610621576040519150601f19603f3d011682016040523d82523d6000602084013e610626565b606091505b5091509150610636828286610640565b9695505050505050565b6060831561064f575081610525565b82511561065f5782518084602001fd5b8160405162461bcd60e51b8152600401610144919061086c565b80356001600160a01b038116811461069057600080fd5b919050565b6000602082840312156106a757600080fd5b61052582610679565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156106d957600080fd5b6106e283610679565b9150602083013567ffffffffffffffff808211156106ff57600080fd5b818501915085601f83011261071357600080fd5b813581811115610725576107256106b0565b604051601f8201601f19908116603f0116810190838211818310171561074d5761074d6106b0565b8160405282815288602084870101111561076657600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60005b8381101561083b578181015183820152602001610823565b8381111561084a576000848401525b50505050565b60008251610862818460208701610820565b9190910192915050565b602081526000825180602084015261088b816040850160208701610820565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220d94a93f0b6c22ae7ba5728f74b49bc28b15dfd15575c539f386e63f1109e087464736f6c634300080d0033"}, "abi": [{"type": "event", "name": "AdminChanged", "inputs": [{"name": "previousAdmin", "type": "address", "internalType": "address", "indexed": false}, {"name": "newAdmin", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "BeaconUpgraded", "inputs": [{"name": "beacon", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Upgraded", "inputs": [{"name": "implementation", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "current", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decrement", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "increment", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "reset", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "upgradeTo", "stateMutability": "nonpayable", "inputs": [{"name": "newImplementation", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "upgradeToAndCall", "stateMutability": "payable", "inputs": [{"name": "newImplementation", "type": "address", "internalType": "address"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"upgradeTo(address)": {"details": "Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."}, "upgradeToAndCall(address,bytes)": {"details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."}}, "version": 1}}, "UUPSUpgradeableUnsafeMock": {"contractName": "UUPSUpgradeableUnsafeMock", "sourceId": "mocks/UUPS/TestInProd.sol", "deploymentBytecode": {"bytecode": "0x60a06040523060805234801561001457600080fd5b506080516105ce61002d600039600050506105ce6000f3fe6080604052600436106100555760003560e01c80632baeceb71461005a5780633659cfe6146100715780634f1ef286146100915780639fa6a6e3146100a4578063d09de08a146100c6578063d826f88f146100db575b600080fd5b34801561006657600080fd5b5061006f6100f0565b005b34801561007d57600080fd5b5061006f61008c366004610403565b6100fc565b61006f61009f366004610434565b61011a565b3480156100b057600080fd5b5060005460405190815260200160405180910390f35b3480156100d257600080fd5b5061006f61012a565b3480156100e757600080fd5b5061006f610138565b6100fa6000610141565b565b6101178160405180602001604052806000815250600061019d565b50565b6101268282600061019d565b5050565b6100fa600080546001019055565b6100fa60008055565b8054806101955760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f77000000000060448201526064015b60405180910390fd5b600019019055565b6101a6836101c9565b6000825111806101b35750805b156101c4576101c28383610209565b505b505050565b6101d281610235565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061022e8383604051806060016040528060278152602001610572602791396102da565b9392505050565b803b6102995760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161018c565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060833b6103395760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840161018c565b600080856001600160a01b0316856040516103549190610522565b600060405180830381855af49150503d806000811461038f576040519150601f19603f3d011682016040523d82523d6000602084013e610394565b606091505b50915091506103a48282866103ae565b9695505050505050565b606083156103bd57508161022e565b8251156103cd5782518084602001fd5b8160405162461bcd60e51b815260040161018c919061053e565b80356001600160a01b03811681146103fe57600080fd5b919050565b60006020828403121561041557600080fd5b61022e826103e7565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561044757600080fd5b610450836103e7565b9150602083013567ffffffffffffffff8082111561046d57600080fd5b818501915085601f83011261048157600080fd5b8135818111156104935761049361041e565b604051601f8201601f19908116603f011681019083821181831017156104bb576104bb61041e565b816040528281528860208487010111156104d457600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60005b838110156105115781810151838201526020016104f9565b838111156101c25750506000910152565b600082516105348184602087016104f6565b9190910192915050565b602081526000825180602084015261055d8160408501602087016104f6565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220074d696c07d671cb886d615e13151a57f0bbb5f561bebc6c054736fca34fb2c064736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100555760003560e01c80632baeceb71461005a5780633659cfe6146100715780634f1ef286146100915780639fa6a6e3146100a4578063d09de08a146100c6578063d826f88f146100db575b600080fd5b34801561006657600080fd5b5061006f6100f0565b005b34801561007d57600080fd5b5061006f61008c366004610403565b6100fc565b61006f61009f366004610434565b61011a565b3480156100b057600080fd5b5060005460405190815260200160405180910390f35b3480156100d257600080fd5b5061006f61012a565b3480156100e757600080fd5b5061006f610138565b6100fa6000610141565b565b6101178160405180602001604052806000815250600061019d565b50565b6101268282600061019d565b5050565b6100fa600080546001019055565b6100fa60008055565b8054806101955760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f77000000000060448201526064015b60405180910390fd5b600019019055565b6101a6836101c9565b6000825111806101b35750805b156101c4576101c28383610209565b505b505050565b6101d281610235565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061022e8383604051806060016040528060278152602001610572602791396102da565b9392505050565b803b6102995760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161018c565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060833b6103395760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840161018c565b600080856001600160a01b0316856040516103549190610522565b600060405180830381855af49150503d806000811461038f576040519150601f19603f3d011682016040523d82523d6000602084013e610394565b606091505b50915091506103a48282866103ae565b9695505050505050565b606083156103bd57508161022e565b8251156103cd5782518084602001fd5b8160405162461bcd60e51b815260040161018c919061053e565b80356001600160a01b03811681146103fe57600080fd5b919050565b60006020828403121561041557600080fd5b61022e826103e7565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561044757600080fd5b610450836103e7565b9150602083013567ffffffffffffffff8082111561046d57600080fd5b818501915085601f83011261048157600080fd5b8135818111156104935761049361041e565b604051601f8201601f19908116603f011681019083821181831017156104bb576104bb61041e565b816040528281528860208487010111156104d457600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60005b838110156105115781810151838201526020016104f9565b838111156101c25750506000910152565b600082516105348184602087016104f6565b9190910192915050565b602081526000825180602084015261055d8160408501602087016104f6565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220074d696c07d671cb886d615e13151a57f0bbb5f561bebc6c054736fca34fb2c064736f6c634300080d0033"}, "abi": [{"type": "event", "name": "AdminChanged", "inputs": [{"name": "previousAdmin", "type": "address", "internalType": "address", "indexed": false}, {"name": "newAdmin", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "BeaconUpgraded", "inputs": [{"name": "beacon", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Upgraded", "inputs": [{"name": "implementation", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "current", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decrement", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "increment", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "reset", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "upgradeTo", "stateMutability": "nonpayable", "inputs": [{"name": "newImplementation", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "upgradeToAndCall", "stateMutability": "payable", "inputs": [{"name": "newImplementation", "type": "address", "internalType": "address"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"upgradeTo(address)": {"details": "Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."}, "upgradeToAndCall(address,bytes)": {"details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."}}, "version": 1}}, "CompTimelock": {"contractName": "CompTimelock", "sourceId": "mocks/compound/CompTimelock.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506040516110c63803806110c683398101604081905261002f9161014f565b6202a3008110156100ad5760405162461bcd60e51b815260206004820152603760248201527f54696d656c6f636b3a3a636f6e7374727563746f723a2044656c6179206d757360448201527f7420657863656564206d696e696d756d2064656c61792e00000000000000000060648201526084015b60405180910390fd5b62278d008111156101265760405162461bcd60e51b815260206004820152603860248201527f54696d656c6f636b3a3a73657444656c61793a2044656c6179206d757374206e60448201527f6f7420657863656564206d6178696d756d2064656c61792e000000000000000060648201526084016100a4565b600080546001600160a01b0319166001600160a01b039390931692909217909155600255610189565b6000806040838503121561016257600080fd5b82516001600160a01b038116811461017957600080fd5b6020939093015192949293505050565b610f2e806101986000396000f3fe6080604052600436106100c65760003560e01c80636a42b8f81161007f578063c1a287e211610059578063c1a287e2146101fc578063e177246e14610213578063f2b0653714610233578063f851a4401461027357600080fd5b80636a42b8f8146101b85780637d645fab146101ce578063b1b43ae5146101e557600080fd5b80630825f38f146100d25780630e18b681146100fb57806326782247146101125780633a66f9011461014a5780634dd18bf514610178578063591fcdfe1461019857600080fd5b366100cd57005b600080fd5b6100e56100e0366004610c81565b610293565b6040516100f29190610d8e565b60405180910390f35b34801561010757600080fd5b50610110610605565b005b34801561011e57600080fd5b50600154610132906001600160a01b031681565b6040516001600160a01b0390911681526020016100f2565b34801561015657600080fd5b5061016a610165366004610c81565b6106ce565b6040519081526020016100f2565b34801561018457600080fd5b50610110610193366004610da8565b61087b565b3480156101a457600080fd5b506101106101b3366004610c81565b61093a565b3480156101c457600080fd5b5061016a60025481565b3480156101da57600080fd5b5061016a62278d0081565b3480156101f157600080fd5b5061016a6202a30081565b34801561020857600080fd5b5061016a6212750081565b34801561021f57600080fd5b5061011061022e366004610dc3565b610a54565b34801561023f57600080fd5b5061026361024e366004610dc3565b60036020526000908152604090205460ff1681565b60405190151581526020016100f2565b34801561027f57600080fd5b50600054610132906001600160a01b031681565b6000546060906001600160a01b0316331461031b5760405162461bcd60e51b815260206004820152603860248201527f54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a20436160448201527f6c6c206d75737420636f6d652066726f6d2061646d696e2e000000000000000060648201526084015b60405180910390fd5b60008686868686604051602001610336959493929190610ddc565b60408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff166103c15760405162461bcd60e51b815260206004820152603d6024820152600080516020610ed983398151915260448201527f616e73616374696f6e206861736e2774206265656e207175657565642e0000006064820152608401610312565b824210156104335760405162461bcd60e51b81526020600482015260456024820152600080516020610ed983398151915260448201527f616e73616374696f6e206861736e2774207375727061737365642074696d65206064820152643637b1b59760d91b608482015260a401610312565b6104406212750084610e28565b4211156104995760405162461bcd60e51b81526020600482015260336024820152600080516020610ed983398151915260448201527230b739b0b1ba34b7b71034b99039ba30b6329760691b6064820152608401610312565b6000818152600360205260408120805460ff191690558551606091036104c05750836104ec565b8580519060200120856040516020016104da929190610e4e565b60405160208183030381529060405290505b600080896001600160a01b031689846040516105089190610e7f565b60006040518083038185875af1925050503d8060008114610545576040519150601f19603f3d011682016040523d82523d6000602084013e61054a565b606091505b5091509150816105b05760405162461bcd60e51b815260206004820152603d6024820152600080516020610ed983398151915260448201527f616e73616374696f6e20657865637574696f6e2072657665727465642e0000006064820152608401610312565b896001600160a01b0316847fa560e3198060a2f10670c1ec5b403077ea6ae93ca8de1c32b451dc1a943cd6e78b8b8b8b6040516105f09493929190610e9b565b60405180910390a39998505050505050505050565b6001546001600160a01b031633146106855760405162461bcd60e51b815260206004820152603860248201527f54696d656c6f636b3a3a61636365707441646d696e3a2043616c6c206d75737460448201527f20636f6d652066726f6d2070656e64696e6741646d696e2e00000000000000006064820152608401610312565b60008054336001600160a01b0319918216811783556001805490921690915560405190917f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c91a2565b600080546001600160a01b031633146107485760405162461bcd60e51b815260206004820152603660248201527f54696d656c6f636b3a3a71756575655472616e73616374696f6e3a2043616c6c6044820152751036bab9ba1031b7b6b290333937b69030b236b4b71760511b6064820152608401610312565b6002546107559042610e28565b8210156107dc5760405162461bcd60e51b815260206004820152604960248201527f54696d656c6f636b3a3a71756575655472616e73616374696f6e3a204573746960448201527f6d6174656420657865637574696f6e20626c6f636b206d757374207361746973606482015268333c903232b630bc9760b91b608482015260a401610312565b600086868686866040516020016107f7959493929190610ddc565b60408051601f19818403018152828252805160209182012060008181526003909252919020805460ff1916600117905591506001600160a01b0388169082907f76e2796dc3a81d57b0e8504b647febcbeeb5f4af818e164f11eef8131a6a763f90610869908a908a908a908a90610e9b565b60405180910390a39695505050505050565b3330146108f05760405162461bcd60e51b815260206004820152603860248201527f54696d656c6f636b3a3a73657450656e64696e6741646d696e3a2043616c6c2060448201527f6d75737420636f6d652066726f6d2054696d656c6f636b2e00000000000000006064820152608401610312565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f69d78e38a01985fbb1462961809b4b2d65531bc93b2b94037f3334b82ca4a75690600090a250565b6000546001600160a01b031633146109ba5760405162461bcd60e51b815260206004820152603760248201527f54696d656c6f636b3a3a63616e63656c5472616e73616374696f6e3a2043616c60448201527f6c206d75737420636f6d652066726f6d2061646d696e2e0000000000000000006064820152608401610312565b600085858585856040516020016109d5959493929190610ddc565b60408051601f19818403018152828252805160209182012060008181526003909252919020805460ff1916905591506001600160a01b0387169082907f2fffc091a501fd91bfbff27141450d3acb40fb8e6d8382b243ec7a812a3aaf8790610a44908990899089908990610e9b565b60405180910390a3505050505050565b333014610abd5760405162461bcd60e51b815260206004820152603160248201527f54696d656c6f636b3a3a73657444656c61793a2043616c6c206d75737420636f60448201527036b290333937b6902a34b6b2b637b1b59760791b6064820152608401610312565b6202a300811015610b2d5760405162461bcd60e51b815260206004820152603460248201527f54696d656c6f636b3a3a73657444656c61793a2044656c6179206d75737420656044820152733c31b2b2b21036b4b734b6bab6903232b630bc9760611b6064820152608401610312565b62278d00811115610ba65760405162461bcd60e51b815260206004820152603860248201527f54696d656c6f636b3a3a73657444656c61793a2044656c6179206d757374206e60448201527f6f7420657863656564206d6178696d756d2064656c61792e00000000000000006064820152608401610312565b600281905560405181907f948b1f6a42ee138b7e34058ba85a37f716d55ff25ff05a763f15bed6a04c8d2c90600090a250565b80356001600160a01b0381168114610bf057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115610c2657610c26610bf5565b604051601f8501601f19908116603f01168101908282118183101715610c4e57610c4e610bf5565b81604052809350858152868686011115610c6757600080fd5b858560208301376000602087830101525050509392505050565b600080600080600060a08688031215610c9957600080fd5b610ca286610bd9565b945060208601359350604086013567ffffffffffffffff80821115610cc657600080fd5b818801915088601f830112610cda57600080fd5b610ce989833560208501610c0b565b94506060880135915080821115610cff57600080fd5b508601601f81018813610d1157600080fd5b610d2088823560208401610c0b565b95989497509295608001359392505050565b60005b83811015610d4d578181015183820152602001610d35565b83811115610d5c576000848401525b50505050565b60008151808452610d7a816020860160208601610d32565b601f01601f19169290920160200192915050565b602081526000610da16020830184610d62565b9392505050565b600060208284031215610dba57600080fd5b610da182610bd9565b600060208284031215610dd557600080fd5b5035919050565b60018060a01b038616815284602082015260a060408201526000610e0360a0830186610d62565b8281036060840152610e158186610d62565b9150508260808301529695505050505050565b60008219821115610e4957634e487b7160e01b600052601160045260246000fd5b500190565b6001600160e01b0319831681528151600090610e71816004850160208701610d32565b919091016004019392505050565b60008251610e91818460208701610d32565b9190910192915050565b848152608060208201526000610eb46080830186610d62565b8281036040840152610ec68186610d62565b9150508260608301529594505050505056fe54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a205472a264697066735822122091f187efa60e0f0f2edda75b786682dda88a784d11022d83134212891d1ba31c64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100c65760003560e01c80636a42b8f81161007f578063c1a287e211610059578063c1a287e2146101fc578063e177246e14610213578063f2b0653714610233578063f851a4401461027357600080fd5b80636a42b8f8146101b85780637d645fab146101ce578063b1b43ae5146101e557600080fd5b80630825f38f146100d25780630e18b681146100fb57806326782247146101125780633a66f9011461014a5780634dd18bf514610178578063591fcdfe1461019857600080fd5b366100cd57005b600080fd5b6100e56100e0366004610c81565b610293565b6040516100f29190610d8e565b60405180910390f35b34801561010757600080fd5b50610110610605565b005b34801561011e57600080fd5b50600154610132906001600160a01b031681565b6040516001600160a01b0390911681526020016100f2565b34801561015657600080fd5b5061016a610165366004610c81565b6106ce565b6040519081526020016100f2565b34801561018457600080fd5b50610110610193366004610da8565b61087b565b3480156101a457600080fd5b506101106101b3366004610c81565b61093a565b3480156101c457600080fd5b5061016a60025481565b3480156101da57600080fd5b5061016a62278d0081565b3480156101f157600080fd5b5061016a6202a30081565b34801561020857600080fd5b5061016a6212750081565b34801561021f57600080fd5b5061011061022e366004610dc3565b610a54565b34801561023f57600080fd5b5061026361024e366004610dc3565b60036020526000908152604090205460ff1681565b60405190151581526020016100f2565b34801561027f57600080fd5b50600054610132906001600160a01b031681565b6000546060906001600160a01b0316331461031b5760405162461bcd60e51b815260206004820152603860248201527f54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a20436160448201527f6c6c206d75737420636f6d652066726f6d2061646d696e2e000000000000000060648201526084015b60405180910390fd5b60008686868686604051602001610336959493929190610ddc565b60408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff166103c15760405162461bcd60e51b815260206004820152603d6024820152600080516020610ed983398151915260448201527f616e73616374696f6e206861736e2774206265656e207175657565642e0000006064820152608401610312565b824210156104335760405162461bcd60e51b81526020600482015260456024820152600080516020610ed983398151915260448201527f616e73616374696f6e206861736e2774207375727061737365642074696d65206064820152643637b1b59760d91b608482015260a401610312565b6104406212750084610e28565b4211156104995760405162461bcd60e51b81526020600482015260336024820152600080516020610ed983398151915260448201527230b739b0b1ba34b7b71034b99039ba30b6329760691b6064820152608401610312565b6000818152600360205260408120805460ff191690558551606091036104c05750836104ec565b8580519060200120856040516020016104da929190610e4e565b60405160208183030381529060405290505b600080896001600160a01b031689846040516105089190610e7f565b60006040518083038185875af1925050503d8060008114610545576040519150601f19603f3d011682016040523d82523d6000602084013e61054a565b606091505b5091509150816105b05760405162461bcd60e51b815260206004820152603d6024820152600080516020610ed983398151915260448201527f616e73616374696f6e20657865637574696f6e2072657665727465642e0000006064820152608401610312565b896001600160a01b0316847fa560e3198060a2f10670c1ec5b403077ea6ae93ca8de1c32b451dc1a943cd6e78b8b8b8b6040516105f09493929190610e9b565b60405180910390a39998505050505050505050565b6001546001600160a01b031633146106855760405162461bcd60e51b815260206004820152603860248201527f54696d656c6f636b3a3a61636365707441646d696e3a2043616c6c206d75737460448201527f20636f6d652066726f6d2070656e64696e6741646d696e2e00000000000000006064820152608401610312565b60008054336001600160a01b0319918216811783556001805490921690915560405190917f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c91a2565b600080546001600160a01b031633146107485760405162461bcd60e51b815260206004820152603660248201527f54696d656c6f636b3a3a71756575655472616e73616374696f6e3a2043616c6c6044820152751036bab9ba1031b7b6b290333937b69030b236b4b71760511b6064820152608401610312565b6002546107559042610e28565b8210156107dc5760405162461bcd60e51b815260206004820152604960248201527f54696d656c6f636b3a3a71756575655472616e73616374696f6e3a204573746960448201527f6d6174656420657865637574696f6e20626c6f636b206d757374207361746973606482015268333c903232b630bc9760b91b608482015260a401610312565b600086868686866040516020016107f7959493929190610ddc565b60408051601f19818403018152828252805160209182012060008181526003909252919020805460ff1916600117905591506001600160a01b0388169082907f76e2796dc3a81d57b0e8504b647febcbeeb5f4af818e164f11eef8131a6a763f90610869908a908a908a908a90610e9b565b60405180910390a39695505050505050565b3330146108f05760405162461bcd60e51b815260206004820152603860248201527f54696d656c6f636b3a3a73657450656e64696e6741646d696e3a2043616c6c2060448201527f6d75737420636f6d652066726f6d2054696d656c6f636b2e00000000000000006064820152608401610312565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f69d78e38a01985fbb1462961809b4b2d65531bc93b2b94037f3334b82ca4a75690600090a250565b6000546001600160a01b031633146109ba5760405162461bcd60e51b815260206004820152603760248201527f54696d656c6f636b3a3a63616e63656c5472616e73616374696f6e3a2043616c60448201527f6c206d75737420636f6d652066726f6d2061646d696e2e0000000000000000006064820152608401610312565b600085858585856040516020016109d5959493929190610ddc565b60408051601f19818403018152828252805160209182012060008181526003909252919020805460ff1916905591506001600160a01b0387169082907f2fffc091a501fd91bfbff27141450d3acb40fb8e6d8382b243ec7a812a3aaf8790610a44908990899089908990610e9b565b60405180910390a3505050505050565b333014610abd5760405162461bcd60e51b815260206004820152603160248201527f54696d656c6f636b3a3a73657444656c61793a2043616c6c206d75737420636f60448201527036b290333937b6902a34b6b2b637b1b59760791b6064820152608401610312565b6202a300811015610b2d5760405162461bcd60e51b815260206004820152603460248201527f54696d656c6f636b3a3a73657444656c61793a2044656c6179206d75737420656044820152733c31b2b2b21036b4b734b6bab6903232b630bc9760611b6064820152608401610312565b62278d00811115610ba65760405162461bcd60e51b815260206004820152603860248201527f54696d656c6f636b3a3a73657444656c61793a2044656c6179206d757374206e60448201527f6f7420657863656564206d6178696d756d2064656c61792e00000000000000006064820152608401610312565b600281905560405181907f948b1f6a42ee138b7e34058ba85a37f716d55ff25ff05a763f15bed6a04c8d2c90600090a250565b80356001600160a01b0381168114610bf057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115610c2657610c26610bf5565b604051601f8501601f19908116603f01168101908282118183101715610c4e57610c4e610bf5565b81604052809350858152868686011115610c6757600080fd5b858560208301376000602087830101525050509392505050565b600080600080600060a08688031215610c9957600080fd5b610ca286610bd9565b945060208601359350604086013567ffffffffffffffff80821115610cc657600080fd5b818801915088601f830112610cda57600080fd5b610ce989833560208501610c0b565b94506060880135915080821115610cff57600080fd5b508601601f81018813610d1157600080fd5b610d2088823560208401610c0b565b95989497509295608001359392505050565b60005b83811015610d4d578181015183820152602001610d35565b83811115610d5c576000848401525b50505050565b60008151808452610d7a816020860160208601610d32565b601f01601f19169290920160200192915050565b602081526000610da16020830184610d62565b9392505050565b600060208284031215610dba57600080fd5b610da182610bd9565b600060208284031215610dd557600080fd5b5035919050565b60018060a01b038616815284602082015260a060408201526000610e0360a0830186610d62565b8281036060840152610e158186610d62565b9150508260808301529695505050505050565b60008219821115610e4957634e487b7160e01b600052601160045260246000fd5b500190565b6001600160e01b0319831681528151600090610e71816004850160208701610d32565b919091016004019392505050565b60008251610e91818460208701610d32565b9190910192915050565b848152608060208201526000610eb46080830186610d62565b8281036040840152610ec68186610d62565b9150508260608301529594505050505056fe54696d656c6f636b3a3a657865637574655472616e73616374696f6e3a205472a264697066735822122091f187efa60e0f0f2edda75b786682dda88a784d11022d83134212891d1ba31c64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "admin_", "type": "address", "internalType": "address"}, {"name": "delay_", "type": "uint256", "internalType": "uint256"}]}, {"type": "event", "name": "CancelTransaction", "inputs": [{"name": "txHash", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "target", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "signature", "type": "string", "internalType": "string", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "eta", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ExecuteTransaction", "inputs": [{"name": "txHash", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "target", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "signature", "type": "string", "internalType": "string", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "eta", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "NewAdmin", "inputs": [{"name": "newAdmin", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "NewDelay", "inputs": [{"name": "newDelay", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "NewPendingAdmin", "inputs": [{"name": "newPendingAdmin", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "QueueTransaction", "inputs": [{"name": "txHash", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "target", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "signature", "type": "string", "internalType": "string", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "eta", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "GRACE_PERIOD", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "MAXIMUM_DELAY", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "MINIMUM_DELAY", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "acceptAdmin", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "admin", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "cancelTransaction", "stateMutability": "nonpayable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "signature", "type": "string", "internalType": "string"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "eta", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "delay", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "executeTransaction", "stateMutability": "payable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "signature", "type": "string", "internalType": "string"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "eta", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bytes", "internalType": "bytes"}]}, {"type": "function", "name": "pendingAdmin", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "queueTransaction", "stateMutability": "nonpayable", "inputs": [{"name": "target", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "signature", "type": "string", "internalType": "string"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "eta", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "queuedTransactions", "stateMutability": "view", "inputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "setDelay", "stateMutability": "nonpayable", "inputs": [{"name": "delay_", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "setPendingAdmin", "stateMutability": "nonpayable", "inputs": [{"name": "pendingAdmin_", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"kind": "dev", "methods": {}, "version": 1}}, "MyGovernor1": {"contractName": "MyGovernor1", "sourceId": "mocks/wizard/MyGovernor1.sol", "deploymentBytecode": {"bytecode": "0x6101606040523480156200001257600080fd5b5060405162002be138038062002be1833981016040819052620000359162000353565b600482826040518060400160405280600a81526020016926bca3b7bb32b93737b960b11b815250806200006d6200014360201b60201c565b815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c052610120525050825162000113925060009150602084019062000294565b50620001219050816200015e565b506001600160a01b0316610140526200013a81620001c7565b505050620003ce565b6040805180820190915260018152603160f81b602082015290565b600254604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600280546001600160a01b0319166001600160a01b0392909216919091179055565b60648111156200024f5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a40160405180910390fd5b600480549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b828054620002a29062000392565b90600052602060002090601f016020900481019282620002c6576000855562000311565b82601f10620002e157805160ff191683800117855562000311565b8280016001018555821562000311579182015b8281111562000311578251825591602001919060010190620002f4565b506200031f92915062000323565b5090565b5b808211156200031f576000815560010162000324565b6001600160a01b03811681146200035057600080fd5b50565b600080604083850312156200036757600080fd5b825162000374816200033a565b602084015190925062000387816200033a565b809150509250929050565b600181811c90821680620003a757607f821691505b602082108103620003c857634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161012051610140516127aa620004376000396000818161061c015281816113d601526114600152600061161a01526000611669015260006116440152600061159d015260006115c7015260006115f101526127aa6000f3fe6080604052600436106101c65760003560e01c80637b3c71d3116100f7578063c01f9e3711610095578063deaaa7cc11610064578063deaaa7cc14610596578063eb9019d4146105ca578063f8ce560a146105ea578063fc0c546a1461060a57600080fd5b8063c01f9e37146104de578063c59057e4146104fe578063d33219b41461051e578063dd4e2ba51461055057600080fd5b8063a7713a70116100d1578063a7713a7014610475578063a890c9101461048a578063ab58fb8e146104aa578063b58131b0146104ca57600080fd5b80637b3c71d3146104215780637d5e81e21461044157806397c3d3341461046157600080fd5b80633932abb111610164578063438596321161013e5780634385963214610338578063544ffc9c1461038257806354fd4d50146103d7578063567813881461040157600080fd5b80633932abb1146102d75780633bccf4fd146102eb5780633e4f49e61461030b57600080fd5b806306fdde03116101a057806306fdde0314610262578063160cbed7146102845780632656227d146102a45780632d63f693146102b757600080fd5b806301ffc9a7146101ee57806302a251a31461022357806306f3f9e61461024257600080fd5b366101e957306101d461063e565b6001600160a01b0316146101e757600080fd5b005b600080fd5b3480156101fa57600080fd5b5061020e610209366004611d0a565b610657565b60405190151581526020015b60405180910390f35b34801561022f57600080fd5b5061b2fa5b60405190815260200161021a565b34801561024e57600080fd5b506101e761025d366004611d34565b610668565b34801561026e57600080fd5b506102776106dc565b60405161021a9190611d9a565b34801561029057600080fd5b5061023461029f366004611fe5565b61076e565b6102346102b2366004611fe5565b61096e565b3480156102c357600080fd5b506102346102d2366004611d34565b610a41565b3480156102e357600080fd5b506001610234565b3480156102f757600080fd5b5061023461030636600461208a565b610a78565b34801561031757600080fd5b5061032b610326366004611d34565b610b0c565b60405161021a91906120ee565b34801561034457600080fd5b5061020e610353366004612116565b60008281526005602090815260408083206001600160a01b038516845260030190915290205460ff1692915050565b34801561038e57600080fd5b506103bc61039d366004611d34565b6000908152600560205260409020805460018201546002909201549092565b6040805193845260208401929092529082015260600161021a565b3480156103e357600080fd5b506040805180820190915260018152603160f81b6020820152610277565b34801561040d57600080fd5b5061023461041c366004612146565b610b17565b34801561042d57600080fd5b5061023461043c366004612172565b610b40565b34801561044d57600080fd5b5061023461045c3660046121f8565b610b92565b34801561046d57600080fd5b506064610234565b34801561048157600080fd5b50600454610234565b34801561049657600080fd5b506101e76104a53660046122b8565b610ba9565b3480156104b657600080fd5b506102346104c5366004611d34565b610c15565b3480156104d657600080fd5b506000610234565b3480156104ea57600080fd5b506102346104f9366004611d34565b610cb0565b34801561050a57600080fd5b50610234610519366004611fe5565b610cdf565b34801561052a57600080fd5b506002546001600160a01b03165b6040516001600160a01b03909116815260200161021a565b34801561055c57600080fd5b506040805180820190915260208082527f737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e90820152610277565b3480156105a257600080fd5b506102347f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b3480156105d657600080fd5b506102346105e53660046122d5565b610d19565b3480156105f657600080fd5b50610234610605366004611d34565b610d25565b34801561061657600080fd5b506105387f000000000000000000000000000000000000000000000000000000000000000081565b60006106526002546001600160a01b031690565b905090565b600061066282610d30565b92915050565b61067061063e565b6001600160a01b0316336001600160a01b0316146106d05760405162461bcd60e51b8152602060048201526018602482015277476f7665726e6f723a206f6e6c79476f7665726e616e636560401b60448201526064015b60405180910390fd5b6106d981610d55565b50565b6060600080546106eb90612301565b80601f016020809104026020016040519081016040528092919081815260200182805461071790612301565b80156107645780601f1061073957610100808354040283529160200191610764565b820191906000526020600020905b81548152906001019060200180831161074757829003601f168201915b5050505050905090565b60008061077d86868686610cdf565b9050600461078a82610b0c565b600781111561079b5761079b6120d8565b146107b85760405162461bcd60e51b81526004016106c790612335565b6002546040805163793d064960e11b815290516000926001600160a01b03169163f27a0c929160048083019260209291908290030181865afa158015610802573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108269190612376565b60025460405163b1c5f42760e01b81529192506001600160a01b03169063b1c5f42790610860908a908a908a906000908b90600401612458565b602060405180830381865afa15801561087d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a19190612376565b6000838152600360205260408082209290925560025491516308f2a0bb60e41b81526001600160a01b0390921691638f2a0bb0916108ec918b918b918b91908b9089906004016124a6565b600060405180830381600087803b15801561090657600080fd5b505af115801561091a573d6000803e3d6000fd5b505050507f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda289282824261094c9190612514565b6040805192835260208301919091520160405180910390a15095945050505050565b60008061097d86868686610cdf565b9050600061098a82610b0c565b905060048160078111156109a0576109a06120d8565b14806109bd575060058160078111156109bb576109bb6120d8565b145b6109d95760405162461bcd60e51b81526004016106c790612335565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a1610a378288888888610e1d565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff851660608201526000908190610ae490610adc9060800160405160208183030381529060405280519060200120610e31565b868686610e7f565b9050610b0187828860405180602001604052806000815250610e9d565b979650505050505050565b600061066282610fa8565b600080339050610b3884828560405180602001604052806000815250610e9d565b949350505050565b600080339050610b8886828787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610e9d92505050565b9695505050505050565b6000610ba085858585611076565b95945050505050565b610bb161063e565b6001600160a01b0316336001600160a01b031614610c0c5760405162461bcd60e51b8152602060048201526018602482015277476f7665726e6f723a206f6e6c79476f7665726e616e636560401b60448201526064016106c7565b6106d981611344565b60025460008281526003602052604080822054905163d45c443560e01b81526004810191909152909182916001600160a01b039091169063d45c443590602401602060405180830381865afa158015610c72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c969190612376565b905080600114610ca65780610ca9565b60005b9392505050565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610a69565b600084848484604051602001610cf8949392919061252c565b60408051601f19818403018152919052805160209091012095945050505050565b6000610ca983836113ad565b600061066282611443565b60006001600160e01b03198216636e665ced60e01b14806106625750610662826114e7565b6064811115610dd85760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a4016106c7565b600480549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b610e2a858585858561151c565b5050505050565b6000610662610e3e611590565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000610e90878787876116b7565b91509150610a37816117a4565b6000848152600160208190526040822090610eb787610b0c565b6007811115610ec857610ec86120d8565b14610f215760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b60648201526084016106c7565b604080516020810190915281546001600160401b031690819052600090610f49908790610d19565b9050610f578787878461195a565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda488878488604051610f969493929190612577565b60405180910390a29695505050505050565b600080610fb483611ad4565b90506004816007811115610fca57610fca6120d8565b14610fd55792915050565b60008381526003602052604090205480610ff0575092915050565b600254604051632ab0f52960e01b8152600481018390526001600160a01b0390911690632ab0f52990602401602060405180830381865afa158015611039573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105d919061259f565b1561106c575060079392505050565b5060059392505050565b600080611088336105e56001436125c1565b10156111085760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a4016106c7565b600061111d8686868680519060200120610cdf565b905084518651146111405760405162461bcd60e51b81526004016106c7906125d8565b83518651146111615760405162461bcd60e51b81526004016106c7906125d8565b60008651116111b25760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c000000000000000060448201526064016106c7565b600081815260016020908152604091829020825191820190925281546001600160401b031690819052156112325760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b60648201526084016106c7565b600061123e6001611c38565b61124743611c38565b6112519190612619565b9050600061126061b2fa611c38565b61126a9083612619565b835467ffffffffffffffff19166001600160401b038416178455905060018301805467ffffffffffffffff19166001600160401b0383161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b038111156112e2576112e2611dad565b60405190808252806020026020018201604052801561131557816020015b60608152602001906001900390816113005790505b508c88888e60405161132f99989796959493929190612644565b60405180910390a15091979650505050505050565b600254604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600280546001600160a01b0319166001600160a01b0392909216919091179055565b604051630748d63560e31b81526001600160a01b038381166004830152602482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690633a46b1a890604401602060405180830381865afa15801561141f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca99190612376565b60006064600454604051632394e7a360e21b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690638e539e8c90602401602060405180830381865afa1580156114af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d39190612376565b6114dd9190612733565b6106629190612752565b60006001600160e01b0319821663bf26d89760e01b148061066257506301ffc9a760e01b6001600160e01b0319831614610662565b60025460405163e38335e560e01b81526001600160a01b039091169063e38335e5903490611557908890889088906000908990600401612458565b6000604051808303818588803b15801561157057600080fd5b505af1158015611584573d6000803e3d6000fd5b50505050505050505050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156115e957507f000000000000000000000000000000000000000000000000000000000000000046145b1561161357507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156116ee575060009050600361179b565b8460ff16601b1415801561170657508460ff16601c14155b15611717575060009050600461179b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561176b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117945760006001925092505061179b565b9150600090505b94509492505050565b60008160048111156117b8576117b86120d8565b036117c05750565b60018160048111156117d4576117d46120d8565b036118215760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106c7565b6002816004811115611835576118356120d8565b036118825760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106c7565b6003816004811115611896576118966120d8565b036118ee5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106c7565b6004816004811115611902576119026120d8565b036106d95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016106c7565b60008481526005602090815260408083206001600160a01b0387168452600381019092529091205460ff16156119e25760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72566f74696e6753696d706c653a20766f746520616c726561604482015266191e4818d85cdd60ca1b60648201526084016106c7565b6001600160a01b03841660009081526003820160205260409020805460ff1916600117905560ff8316611a2e5781816000016000828254611a239190612514565b90915550610e2a9050565b60001960ff841601611a4e5781816001016000828254611a239190612514565b60011960ff841601611a6e5781816002016000828254611a239190612514565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b60648201526084016106c7565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff80821615801594840194909452610100909104161515606082015290611b495750600792915050565b806060015115611b5c5750600292915050565b80515143906001600160401b031610611b785750600092915050565b43611b8582602001515190565b6001600160401b031610611b9c5750600192915050565b611ba98160200151611ca4565b15611bea57611bb783611cd3565b8015611bd6575060008381526005602052604090208054600190910154115b611be1576003610ca9565b60049392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c20696400000060448201526064016106c7565b50919050565b60006001600160401b03821115611ca05760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b60648201526084016106c7565b5090565b6000611cb982516001600160401b0316151590565b801561066257505051436001600160401b03909116111590565b600081815260056020526040812060028101546001820154611cf59190612514565b611d0161060585610a41565b11159392505050565b600060208284031215611d1c57600080fd5b81356001600160e01b031981168114610ca957600080fd5b600060208284031215611d4657600080fd5b5035919050565b6000815180845260005b81811015611d7357602081850181015186830182015201611d57565b81811115611d85576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610ca96020830184611d4d565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611deb57611deb611dad565b604052919050565b60006001600160401b03821115611e0c57611e0c611dad565b5060051b60200190565b6001600160a01b03811681146106d957600080fd5b600082601f830112611e3c57600080fd5b81356020611e51611e4c83611df3565b611dc3565b82815260059290921b84018101918181019086841115611e7057600080fd5b8286015b84811015611e94578035611e8781611e16565b8352918301918301611e74565b509695505050505050565b600082601f830112611eb057600080fd5b81356020611ec0611e4c83611df3565b82815260059290921b84018101918181019086841115611edf57600080fd5b8286015b84811015611e945780358352918301918301611ee3565b60006001600160401b03831115611f1357611f13611dad565b611f26601f8401601f1916602001611dc3565b9050828152838383011115611f3a57600080fd5b828260208301376000602084830101529392505050565b600082601f830112611f6257600080fd5b81356020611f72611e4c83611df3565b82815260059290921b84018101918181019086841115611f9157600080fd5b8286015b84811015611e945780356001600160401b03811115611fb45760008081fd5b8701603f81018913611fc65760008081fd5b611fd7898683013560408401611efa565b845250918301918301611f95565b60008060008060808587031215611ffb57600080fd5b84356001600160401b038082111561201257600080fd5b61201e88838901611e2b565b9550602087013591508082111561203457600080fd5b61204088838901611e9f565b9450604087013591508082111561205657600080fd5b5061206387828801611f51565b949793965093946060013593505050565b803560ff8116811461208557600080fd5b919050565b600080600080600060a086880312156120a257600080fd5b853594506120b260208701612074565b93506120c060408701612074565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b602081016008831061211057634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561212957600080fd5b82359150602083013561213b81611e16565b809150509250929050565b6000806040838503121561215957600080fd5b8235915061216960208401612074565b90509250929050565b6000806000806060858703121561218857600080fd5b8435935061219860208601612074565b925060408501356001600160401b03808211156121b457600080fd5b818701915087601f8301126121c857600080fd5b8135818111156121d757600080fd5b8860208285010111156121e957600080fd5b95989497505060200194505050565b6000806000806080858703121561220e57600080fd5b84356001600160401b038082111561222557600080fd5b61223188838901611e2b565b9550602087013591508082111561224757600080fd5b61225388838901611e9f565b9450604087013591508082111561226957600080fd5b61227588838901611f51565b9350606087013591508082111561228b57600080fd5b508501601f8101871361229d57600080fd5b6122ac87823560208401611efa565b91505092959194509250565b6000602082840312156122ca57600080fd5b8135610ca981611e16565b600080604083850312156122e857600080fd5b82356122f381611e16565b946020939093013593505050565b600181811c9082168061231557607f821691505b602082108103611c3257634e487b7160e01b600052602260045260246000fd5b60208082526021908201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756040820152601b60fa1b606082015260800190565b60006020828403121561238857600080fd5b5051919050565b600081518084526020808501945080840160005b838110156123c85781516001600160a01b0316875295820195908201906001016123a3565b509495945050505050565b600081518084526020808501945080840160005b838110156123c8578151875295820195908201906001016123e7565b600081518084526020808501808196508360051b8101915082860160005b8581101561244b578284038952612439848351611d4d565b98850198935090840190600101612421565b5091979650505050505050565b60a08152600061246b60a083018861238f565b828103602084015261247d81886123d3565b905082810360408401526124918187612403565b60608401959095525050608001529392505050565b60c0815260006124b960c083018961238f565b82810360208401526124cb81896123d3565b905082810360408401526124df8188612403565b60608401969096525050608081019290925260a0909101529392505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612527576125276124fe565b500190565b60808152600061253f608083018761238f565b828103602084015261255181876123d3565b905082810360408401526125658186612403565b91505082606083015295945050505050565b84815260ff84166020820152826040820152608060608201526000610b886080830184611d4d565b6000602082840312156125b157600080fd5b81518015158114610ca957600080fd5b6000828210156125d3576125d36124fe565b500390565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b0380831681851680830382111561263b5761263b6124fe565b01949350505050565b60006101208b8352602060018060a01b038c168185015281604085015261266d8285018c61238f565b91508382036060850152612681828b6123d3565b915083820360808501528189518084528284019150828160051b850101838c0160005b838110156126d257601f198784030185526126c0838351611d4d565b948601949250908501906001016126a4565b505086810360a08801526126e6818c612403565b94505050505061270160c08401876001600160401b03169052565b6001600160401b03851660e08401528281036101008401526127238185611d4d565b9c9b505050505050505050505050565b600081600019048311821515161561274d5761274d6124fe565b500290565b60008261276f57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220cfcc489c806b7b93fd1dfea50b8758a607bd98347e2c24f69862b7f7bf65768e64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106101c65760003560e01c80637b3c71d3116100f7578063c01f9e3711610095578063deaaa7cc11610064578063deaaa7cc14610596578063eb9019d4146105ca578063f8ce560a146105ea578063fc0c546a1461060a57600080fd5b8063c01f9e37146104de578063c59057e4146104fe578063d33219b41461051e578063dd4e2ba51461055057600080fd5b8063a7713a70116100d1578063a7713a7014610475578063a890c9101461048a578063ab58fb8e146104aa578063b58131b0146104ca57600080fd5b80637b3c71d3146104215780637d5e81e21461044157806397c3d3341461046157600080fd5b80633932abb111610164578063438596321161013e5780634385963214610338578063544ffc9c1461038257806354fd4d50146103d7578063567813881461040157600080fd5b80633932abb1146102d75780633bccf4fd146102eb5780633e4f49e61461030b57600080fd5b806306fdde03116101a057806306fdde0314610262578063160cbed7146102845780632656227d146102a45780632d63f693146102b757600080fd5b806301ffc9a7146101ee57806302a251a31461022357806306f3f9e61461024257600080fd5b366101e957306101d461063e565b6001600160a01b0316146101e757600080fd5b005b600080fd5b3480156101fa57600080fd5b5061020e610209366004611d0a565b610657565b60405190151581526020015b60405180910390f35b34801561022f57600080fd5b5061b2fa5b60405190815260200161021a565b34801561024e57600080fd5b506101e761025d366004611d34565b610668565b34801561026e57600080fd5b506102776106dc565b60405161021a9190611d9a565b34801561029057600080fd5b5061023461029f366004611fe5565b61076e565b6102346102b2366004611fe5565b61096e565b3480156102c357600080fd5b506102346102d2366004611d34565b610a41565b3480156102e357600080fd5b506001610234565b3480156102f757600080fd5b5061023461030636600461208a565b610a78565b34801561031757600080fd5b5061032b610326366004611d34565b610b0c565b60405161021a91906120ee565b34801561034457600080fd5b5061020e610353366004612116565b60008281526005602090815260408083206001600160a01b038516845260030190915290205460ff1692915050565b34801561038e57600080fd5b506103bc61039d366004611d34565b6000908152600560205260409020805460018201546002909201549092565b6040805193845260208401929092529082015260600161021a565b3480156103e357600080fd5b506040805180820190915260018152603160f81b6020820152610277565b34801561040d57600080fd5b5061023461041c366004612146565b610b17565b34801561042d57600080fd5b5061023461043c366004612172565b610b40565b34801561044d57600080fd5b5061023461045c3660046121f8565b610b92565b34801561046d57600080fd5b506064610234565b34801561048157600080fd5b50600454610234565b34801561049657600080fd5b506101e76104a53660046122b8565b610ba9565b3480156104b657600080fd5b506102346104c5366004611d34565b610c15565b3480156104d657600080fd5b506000610234565b3480156104ea57600080fd5b506102346104f9366004611d34565b610cb0565b34801561050a57600080fd5b50610234610519366004611fe5565b610cdf565b34801561052a57600080fd5b506002546001600160a01b03165b6040516001600160a01b03909116815260200161021a565b34801561055c57600080fd5b506040805180820190915260208082527f737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e90820152610277565b3480156105a257600080fd5b506102347f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b3480156105d657600080fd5b506102346105e53660046122d5565b610d19565b3480156105f657600080fd5b50610234610605366004611d34565b610d25565b34801561061657600080fd5b506105387f000000000000000000000000000000000000000000000000000000000000000081565b60006106526002546001600160a01b031690565b905090565b600061066282610d30565b92915050565b61067061063e565b6001600160a01b0316336001600160a01b0316146106d05760405162461bcd60e51b8152602060048201526018602482015277476f7665726e6f723a206f6e6c79476f7665726e616e636560401b60448201526064015b60405180910390fd5b6106d981610d55565b50565b6060600080546106eb90612301565b80601f016020809104026020016040519081016040528092919081815260200182805461071790612301565b80156107645780601f1061073957610100808354040283529160200191610764565b820191906000526020600020905b81548152906001019060200180831161074757829003601f168201915b5050505050905090565b60008061077d86868686610cdf565b9050600461078a82610b0c565b600781111561079b5761079b6120d8565b146107b85760405162461bcd60e51b81526004016106c790612335565b6002546040805163793d064960e11b815290516000926001600160a01b03169163f27a0c929160048083019260209291908290030181865afa158015610802573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108269190612376565b60025460405163b1c5f42760e01b81529192506001600160a01b03169063b1c5f42790610860908a908a908a906000908b90600401612458565b602060405180830381865afa15801561087d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a19190612376565b6000838152600360205260408082209290925560025491516308f2a0bb60e41b81526001600160a01b0390921691638f2a0bb0916108ec918b918b918b91908b9089906004016124a6565b600060405180830381600087803b15801561090657600080fd5b505af115801561091a573d6000803e3d6000fd5b505050507f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda289282824261094c9190612514565b6040805192835260208301919091520160405180910390a15095945050505050565b60008061097d86868686610cdf565b9050600061098a82610b0c565b905060048160078111156109a0576109a06120d8565b14806109bd575060058160078111156109bb576109bb6120d8565b145b6109d95760405162461bcd60e51b81526004016106c790612335565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a1610a378288888888610e1d565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff851660608201526000908190610ae490610adc9060800160405160208183030381529060405280519060200120610e31565b868686610e7f565b9050610b0187828860405180602001604052806000815250610e9d565b979650505050505050565b600061066282610fa8565b600080339050610b3884828560405180602001604052806000815250610e9d565b949350505050565b600080339050610b8886828787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610e9d92505050565b9695505050505050565b6000610ba085858585611076565b95945050505050565b610bb161063e565b6001600160a01b0316336001600160a01b031614610c0c5760405162461bcd60e51b8152602060048201526018602482015277476f7665726e6f723a206f6e6c79476f7665726e616e636560401b60448201526064016106c7565b6106d981611344565b60025460008281526003602052604080822054905163d45c443560e01b81526004810191909152909182916001600160a01b039091169063d45c443590602401602060405180830381865afa158015610c72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c969190612376565b905080600114610ca65780610ca9565b60005b9392505050565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610a69565b600084848484604051602001610cf8949392919061252c565b60408051601f19818403018152919052805160209091012095945050505050565b6000610ca983836113ad565b600061066282611443565b60006001600160e01b03198216636e665ced60e01b14806106625750610662826114e7565b6064811115610dd85760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a4016106c7565b600480549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b610e2a858585858561151c565b5050505050565b6000610662610e3e611590565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000610e90878787876116b7565b91509150610a37816117a4565b6000848152600160208190526040822090610eb787610b0c565b6007811115610ec857610ec86120d8565b14610f215760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b60648201526084016106c7565b604080516020810190915281546001600160401b031690819052600090610f49908790610d19565b9050610f578787878461195a565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda488878488604051610f969493929190612577565b60405180910390a29695505050505050565b600080610fb483611ad4565b90506004816007811115610fca57610fca6120d8565b14610fd55792915050565b60008381526003602052604090205480610ff0575092915050565b600254604051632ab0f52960e01b8152600481018390526001600160a01b0390911690632ab0f52990602401602060405180830381865afa158015611039573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105d919061259f565b1561106c575060079392505050565b5060059392505050565b600080611088336105e56001436125c1565b10156111085760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a4016106c7565b600061111d8686868680519060200120610cdf565b905084518651146111405760405162461bcd60e51b81526004016106c7906125d8565b83518651146111615760405162461bcd60e51b81526004016106c7906125d8565b60008651116111b25760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c000000000000000060448201526064016106c7565b600081815260016020908152604091829020825191820190925281546001600160401b031690819052156112325760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b60648201526084016106c7565b600061123e6001611c38565b61124743611c38565b6112519190612619565b9050600061126061b2fa611c38565b61126a9083612619565b835467ffffffffffffffff19166001600160401b038416178455905060018301805467ffffffffffffffff19166001600160401b0383161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b038111156112e2576112e2611dad565b60405190808252806020026020018201604052801561131557816020015b60608152602001906001900390816113005790505b508c88888e60405161132f99989796959493929190612644565b60405180910390a15091979650505050505050565b600254604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600280546001600160a01b0319166001600160a01b0392909216919091179055565b604051630748d63560e31b81526001600160a01b038381166004830152602482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690633a46b1a890604401602060405180830381865afa15801561141f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca99190612376565b60006064600454604051632394e7a360e21b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690638e539e8c90602401602060405180830381865afa1580156114af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d39190612376565b6114dd9190612733565b6106629190612752565b60006001600160e01b0319821663bf26d89760e01b148061066257506301ffc9a760e01b6001600160e01b0319831614610662565b60025460405163e38335e560e01b81526001600160a01b039091169063e38335e5903490611557908890889088906000908990600401612458565b6000604051808303818588803b15801561157057600080fd5b505af1158015611584573d6000803e3d6000fd5b50505050505050505050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156115e957507f000000000000000000000000000000000000000000000000000000000000000046145b1561161357507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156116ee575060009050600361179b565b8460ff16601b1415801561170657508460ff16601c14155b15611717575060009050600461179b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561176b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117945760006001925092505061179b565b9150600090505b94509492505050565b60008160048111156117b8576117b86120d8565b036117c05750565b60018160048111156117d4576117d46120d8565b036118215760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106c7565b6002816004811115611835576118356120d8565b036118825760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106c7565b6003816004811115611896576118966120d8565b036118ee5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106c7565b6004816004811115611902576119026120d8565b036106d95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016106c7565b60008481526005602090815260408083206001600160a01b0387168452600381019092529091205460ff16156119e25760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72566f74696e6753696d706c653a20766f746520616c726561604482015266191e4818d85cdd60ca1b60648201526084016106c7565b6001600160a01b03841660009081526003820160205260409020805460ff1916600117905560ff8316611a2e5781816000016000828254611a239190612514565b90915550610e2a9050565b60001960ff841601611a4e5781816001016000828254611a239190612514565b60011960ff841601611a6e5781816002016000828254611a239190612514565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b60648201526084016106c7565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff80821615801594840194909452610100909104161515606082015290611b495750600792915050565b806060015115611b5c5750600292915050565b80515143906001600160401b031610611b785750600092915050565b43611b8582602001515190565b6001600160401b031610611b9c5750600192915050565b611ba98160200151611ca4565b15611bea57611bb783611cd3565b8015611bd6575060008381526005602052604090208054600190910154115b611be1576003610ca9565b60049392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c20696400000060448201526064016106c7565b50919050565b60006001600160401b03821115611ca05760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b60648201526084016106c7565b5090565b6000611cb982516001600160401b0316151590565b801561066257505051436001600160401b03909116111590565b600081815260056020526040812060028101546001820154611cf59190612514565b611d0161060585610a41565b11159392505050565b600060208284031215611d1c57600080fd5b81356001600160e01b031981168114610ca957600080fd5b600060208284031215611d4657600080fd5b5035919050565b6000815180845260005b81811015611d7357602081850181015186830182015201611d57565b81811115611d85576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610ca96020830184611d4d565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611deb57611deb611dad565b604052919050565b60006001600160401b03821115611e0c57611e0c611dad565b5060051b60200190565b6001600160a01b03811681146106d957600080fd5b600082601f830112611e3c57600080fd5b81356020611e51611e4c83611df3565b611dc3565b82815260059290921b84018101918181019086841115611e7057600080fd5b8286015b84811015611e94578035611e8781611e16565b8352918301918301611e74565b509695505050505050565b600082601f830112611eb057600080fd5b81356020611ec0611e4c83611df3565b82815260059290921b84018101918181019086841115611edf57600080fd5b8286015b84811015611e945780358352918301918301611ee3565b60006001600160401b03831115611f1357611f13611dad565b611f26601f8401601f1916602001611dc3565b9050828152838383011115611f3a57600080fd5b828260208301376000602084830101529392505050565b600082601f830112611f6257600080fd5b81356020611f72611e4c83611df3565b82815260059290921b84018101918181019086841115611f9157600080fd5b8286015b84811015611e945780356001600160401b03811115611fb45760008081fd5b8701603f81018913611fc65760008081fd5b611fd7898683013560408401611efa565b845250918301918301611f95565b60008060008060808587031215611ffb57600080fd5b84356001600160401b038082111561201257600080fd5b61201e88838901611e2b565b9550602087013591508082111561203457600080fd5b61204088838901611e9f565b9450604087013591508082111561205657600080fd5b5061206387828801611f51565b949793965093946060013593505050565b803560ff8116811461208557600080fd5b919050565b600080600080600060a086880312156120a257600080fd5b853594506120b260208701612074565b93506120c060408701612074565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b602081016008831061211057634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561212957600080fd5b82359150602083013561213b81611e16565b809150509250929050565b6000806040838503121561215957600080fd5b8235915061216960208401612074565b90509250929050565b6000806000806060858703121561218857600080fd5b8435935061219860208601612074565b925060408501356001600160401b03808211156121b457600080fd5b818701915087601f8301126121c857600080fd5b8135818111156121d757600080fd5b8860208285010111156121e957600080fd5b95989497505060200194505050565b6000806000806080858703121561220e57600080fd5b84356001600160401b038082111561222557600080fd5b61223188838901611e2b565b9550602087013591508082111561224757600080fd5b61225388838901611e9f565b9450604087013591508082111561226957600080fd5b61227588838901611f51565b9350606087013591508082111561228b57600080fd5b508501601f8101871361229d57600080fd5b6122ac87823560208401611efa565b91505092959194509250565b6000602082840312156122ca57600080fd5b8135610ca981611e16565b600080604083850312156122e857600080fd5b82356122f381611e16565b946020939093013593505050565b600181811c9082168061231557607f821691505b602082108103611c3257634e487b7160e01b600052602260045260246000fd5b60208082526021908201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756040820152601b60fa1b606082015260800190565b60006020828403121561238857600080fd5b5051919050565b600081518084526020808501945080840160005b838110156123c85781516001600160a01b0316875295820195908201906001016123a3565b509495945050505050565b600081518084526020808501945080840160005b838110156123c8578151875295820195908201906001016123e7565b600081518084526020808501808196508360051b8101915082860160005b8581101561244b578284038952612439848351611d4d565b98850198935090840190600101612421565b5091979650505050505050565b60a08152600061246b60a083018861238f565b828103602084015261247d81886123d3565b905082810360408401526124918187612403565b60608401959095525050608001529392505050565b60c0815260006124b960c083018961238f565b82810360208401526124cb81896123d3565b905082810360408401526124df8188612403565b60608401969096525050608081019290925260a0909101529392505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612527576125276124fe565b500190565b60808152600061253f608083018761238f565b828103602084015261255181876123d3565b905082810360408401526125658186612403565b91505082606083015295945050505050565b84815260ff84166020820152826040820152608060608201526000610b886080830184611d4d565b6000602082840312156125b157600080fd5b81518015158114610ca957600080fd5b6000828210156125d3576125d36124fe565b500390565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b0380831681851680830382111561263b5761263b6124fe565b01949350505050565b60006101208b8352602060018060a01b038c168185015281604085015261266d8285018c61238f565b91508382036060850152612681828b6123d3565b915083820360808501528189518084528284019150828160051b850101838c0160005b838110156126d257601f198784030185526126c0838351611d4d565b948601949250908501906001016126a4565b505086810360a08801526126e6818c612403565b94505050505061270160c08401876001600160401b03169052565b6001600160401b03851660e08401528281036101008401526127238185611d4d565b9c9b505050505050505050505050565b600081600019048311821515161561274d5761274d6124fe565b500290565b60008261276f57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220cfcc489c806b7b93fd1dfea50b8758a607bd98347e2c24f69862b7f7bf65768e64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "_token", "type": "address", "internalType": "contract ERC20Votes"}, {"name": "_timelock", "type": "address", "internalType": "contract TimelockController"}]}, {"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalQueued", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "eta", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "QuorumNumeratorUpdated", "inputs": [{"name": "oldQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TimelockChange", "inputs": [{"name": "oldTimelock", "type": "address", "internalType": "address", "indexed": false}, {"name": "newTimelock", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalEta", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalVotes", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "againstVotes", "type": "uint256", "internalType": "uint256"}, {"name": "forVotes", "type": "uint256", "internalType": "uint256"}, {"name": "abstainVotes", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumDenominator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumNumerator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "timelock", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract ERC20Votes"}]}, {"type": "function", "name": "updateQuorumNumerator", "stateMutability": "nonpayable", "inputs": [{"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "updateTimelock", "stateMutability": "nonpayable", "inputs": [{"name": "newTimelock", "type": "address", "internalType": "contract TimelockController"}], "outputs": []}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"COUNTING_MODE()": {"details": "See {IGovernor-COUNTING_MODE}."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "hasVoted(uint256,address)": {"details": "See {IGovernor-hasVoted}."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalEta(uint256)": {"details": "Public accessor to check the eta of a queued proposal"}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_."}, "proposalVotes(uint256)": {"details": "Accessor to the internal vote counts."}, "queue(address[],uint256[],bytes[],bytes32)": {"details": "Function to queue a proposal to the timelock."}, "timelock()": {"details": "Public accessor to check the address of the timelock"}, "updateTimelock(address)": {"details": "Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates must be proposed, scheduled and executed using the {Governor} workflow."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "MyGovernor2": {"contractName": "MyGovernor2", "sourceId": "mocks/wizard/MyGovernor2.sol", "deploymentBytecode": {"bytecode": "0x6101606040523480156200001257600080fd5b5060405162002c0038038062002c00833981016040819052620000359162000353565b600482826040518060400160405280600a81526020016926bca3b7bb32b93737b960b11b815250806200006d6200014360201b60201c565b815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c052610120525050825162000113925060009150602084019062000294565b50620001219050816200015e565b506001600160a01b0316610140526200013a81620001c7565b505050620003ce565b6040805180820190915260018152603160f81b602082015290565b600254604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600280546001600160a01b0319166001600160a01b0392909216919091179055565b60648111156200024f5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a40160405180910390fd5b600480549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b828054620002a29062000392565b90600052602060002090601f016020900481019282620002c6576000855562000311565b82601f10620002e157805160ff191683800117855562000311565b8280016001018555821562000311579182015b8281111562000311578251825591602001919060010190620002f4565b506200031f92915062000323565b5090565b5b808211156200031f576000815560010162000324565b6001600160a01b03811681146200035057600080fd5b50565b600080604083850312156200036757600080fd5b825162000374816200033a565b602084015190925062000387816200033a565b809150509250929050565b600181811c90821680620003a757607f821691505b602082108103620003c857634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161012051610140516127c962000437600039600081816106240152818161111e01526111a801526000611362015260006113b10152600061138c015260006112e50152600061130f0152600061133901526127c96000f3fe6080604052600436106101c65760003560e01c80637b3c71d3116100f7578063c01f9e3711610095578063deaaa7cc11610064578063deaaa7cc1461059e578063eb9019d4146105d2578063f8ce560a146105f2578063fc0c546a1461061257600080fd5b8063c01f9e37146104e6578063c59057e414610506578063d33219b414610526578063dd4e2ba51461055857600080fd5b8063a7713a70116100d1578063a7713a7014610475578063a890c9101461048a578063ab58fb8e146104aa578063b58131b0146104ca57600080fd5b80637b3c71d3146104215780637d5e81e21461044157806397c3d3341461046157600080fd5b80633932abb111610164578063438596321161013e5780634385963214610338578063544ffc9c1461038257806354fd4d50146103d7578063567813881461040157600080fd5b80633932abb1146102d75780633bccf4fd146102eb5780633e4f49e61461030b57600080fd5b806306fdde03116101a057806306fdde0314610262578063160cbed7146102845780632656227d146102a45780632d63f693146102b757600080fd5b806301ffc9a7146101ee57806302a251a31461022357806306f3f9e61461024257600080fd5b366101e957306101d4610646565b6001600160a01b0316146101e757600080fd5b005b600080fd5b3480156101fa57600080fd5b5061020e610209366004611d29565b61065f565b60405190151581526020015b60405180910390f35b34801561022f57600080fd5b5061b2fa5b60405190815260200161021a565b34801561024e57600080fd5b506101e761025d366004611d53565b610670565b34801561026e57600080fd5b506102776106e4565b60405161021a9190611db9565b34801561029057600080fd5b5061023461029f366004612004565b610776565b6102346102b2366004612004565b610976565b3480156102c357600080fd5b506102346102d2366004611d53565b610a49565b3480156102e357600080fd5b506001610234565b3480156102f757600080fd5b506102346103063660046120a9565b610a80565b34801561031757600080fd5b5061032b610326366004611d53565b610b14565b60405161021a919061210d565b34801561034457600080fd5b5061020e610353366004612135565b60008281526005602090815260408083206001600160a01b038516845260030190915290205460ff1692915050565b34801561038e57600080fd5b506103bc61039d366004611d53565b6000908152600560205260409020805460018201546002909201549092565b6040805193845260208401929092529082015260600161021a565b3480156103e357600080fd5b506040805180820190915260018152603160f81b6020820152610277565b34801561040d57600080fd5b5061023461041c366004612165565b610b1f565b34801561042d57600080fd5b5061023461043c366004612191565b610b48565b34801561044d57600080fd5b5061023461045c366004612217565b610b9a565b34801561046d57600080fd5b506064610234565b34801561048157600080fd5b50600454610234565b34801561049657600080fd5b506101e76104a53660046122d7565b610bb1565b3480156104b657600080fd5b506102346104c5366004611d53565b610c1d565b3480156104d657600080fd5b50683635c9adc5dea00000610234565b3480156104f257600080fd5b50610234610501366004611d53565b610cb8565b34801561051257600080fd5b50610234610521366004612004565b610ce7565b34801561053257600080fd5b506002546001600160a01b03165b6040516001600160a01b03909116815260200161021a565b34801561056457600080fd5b506040805180820190915260208082527f737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e90820152610277565b3480156105aa57600080fd5b506102347f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b3480156105de57600080fd5b506102346105ed3660046122f4565b610d21565b3480156105fe57600080fd5b5061023461060d366004611d53565b610d2d565b34801561061e57600080fd5b506105407f000000000000000000000000000000000000000000000000000000000000000081565b600061065a6002546001600160a01b031690565b905090565b600061066a82610d38565b92915050565b610678610646565b6001600160a01b0316336001600160a01b0316146106d85760405162461bcd60e51b8152602060048201526018602482015277476f7665726e6f723a206f6e6c79476f7665726e616e636560401b60448201526064015b60405180910390fd5b6106e181610d5d565b50565b6060600080546106f390612320565b80601f016020809104026020016040519081016040528092919081815260200182805461071f90612320565b801561076c5780601f106107415761010080835404028352916020019161076c565b820191906000526020600020905b81548152906001019060200180831161074f57829003601f168201915b5050505050905090565b60008061078586868686610ce7565b9050600461079282610b14565b60078111156107a3576107a36120f7565b146107c05760405162461bcd60e51b81526004016106cf90612354565b6002546040805163793d064960e11b815290516000926001600160a01b03169163f27a0c929160048083019260209291908290030181865afa15801561080a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082e9190612395565b60025460405163b1c5f42760e01b81529192506001600160a01b03169063b1c5f42790610868908a908a908a906000908b90600401612477565b602060405180830381865afa158015610885573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a99190612395565b6000838152600360205260408082209290925560025491516308f2a0bb60e41b81526001600160a01b0390921691638f2a0bb0916108f4918b918b918b91908b9089906004016124c5565b600060405180830381600087803b15801561090e57600080fd5b505af1158015610922573d6000803e3d6000fd5b505050507f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda28928282426109549190612533565b6040805192835260208301919091520160405180910390a15095945050505050565b60008061098586868686610ce7565b9050600061099282610b14565b905060048160078111156109a8576109a86120f7565b14806109c5575060058160078111156109c3576109c36120f7565b145b6109e15760405162461bcd60e51b81526004016106cf90612354565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a1610a3f8288888888610e25565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff851660608201526000908190610aec90610ae49060800160405160208183030381529060405280519060200120610e39565b868686610e87565b9050610b0987828860405180602001604052806000815250610ea5565b979650505050505050565b600061066a82610fb0565b600080339050610b4084828560405180602001604052806000815250610ea5565b949350505050565b600080339050610b9086828787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610ea592505050565b9695505050505050565b6000610ba88585858561107e565b95945050505050565b610bb9610646565b6001600160a01b0316336001600160a01b031614610c145760405162461bcd60e51b8152602060048201526018602482015277476f7665726e6f723a206f6e6c79476f7665726e616e636560401b60448201526064016106cf565b6106e18161108c565b60025460008281526003602052604080822054905163d45c443560e01b81526004810191909152909182916001600160a01b039091169063d45c443590602401602060405180830381865afa158015610c7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9e9190612395565b905080600114610cae5780610cb1565b60005b9392505050565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610a71565b600084848484604051602001610d00949392919061254b565b60408051601f19818403018152919052805160209091012095945050505050565b6000610cb183836110f5565b600061066a8261118b565b60006001600160e01b03198216636e665ced60e01b148061066a575061066a8261122f565b6064811115610de05760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a4016106cf565b600480549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b610e328585858585611264565b5050505050565b600061066a610e466112d8565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000610e98878787876113ff565b91509150610a3f816114ec565b6000848152600160208190526040822090610ebf87610b14565b6007811115610ed057610ed06120f7565b14610f295760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b60648201526084016106cf565b604080516020810190915281546001600160401b031690819052600090610f51908790610d21565b9050610f5f878787846116a2565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda488878488604051610f9e9493929190612596565b60405180910390a29695505050505050565b600080610fbc8361181c565b90506004816007811115610fd257610fd26120f7565b14610fdd5792915050565b60008381526003602052604090205480610ff8575092915050565b600254604051632ab0f52960e01b8152600481018390526001600160a01b0390911690632ab0f52990602401602060405180830381865afa158015611041573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106591906125be565b15611074575060079392505050565b5060059392505050565b6000610ba885858585611980565b600254604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600280546001600160a01b0319166001600160a01b0392909216919091179055565b604051630748d63560e31b81526001600160a01b038381166004830152602482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690633a46b1a890604401602060405180830381865afa158015611167573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb19190612395565b60006064600454604051632394e7a360e21b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690638e539e8c90602401602060405180830381865afa1580156111f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121b9190612395565b61122591906125e0565b61066a91906125ff565b60006001600160e01b0319821663bf26d89760e01b148061066a57506301ffc9a760e01b6001600160e01b031983161461066a565b60025460405163e38335e560e01b81526001600160a01b039091169063e38335e590349061129f908890889088906000908990600401612477565b6000604051808303818588803b1580156112b857600080fd5b505af11580156112cc573d6000803e3d6000fd5b50505050505050505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561133157507f000000000000000000000000000000000000000000000000000000000000000046145b1561135b57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561143657506000905060036114e3565b8460ff16601b1415801561144e57508460ff16601c14155b1561145f57506000905060046114e3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156114b3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166114dc576000600192509250506114e3565b9150600090505b94509492505050565b6000816004811115611500576115006120f7565b036115085750565b600181600481111561151c5761151c6120f7565b036115695760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106cf565b600281600481111561157d5761157d6120f7565b036115ca5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106cf565b60038160048111156115de576115de6120f7565b036116365760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106cf565b600481600481111561164a5761164a6120f7565b036106e15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016106cf565b60008481526005602090815260408083206001600160a01b0387168452600381019092529091205460ff161561172a5760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72566f74696e6753696d706c653a20766f746520616c726561604482015266191e4818d85cdd60ca1b60648201526084016106cf565b6001600160a01b03841660009081526003820160205260409020805460ff1916600117905560ff8316611776578181600001600082825461176b9190612533565b90915550610e329050565b60001960ff841601611796578181600101600082825461176b9190612533565b60011960ff8416016117b6578181600201600082825461176b9190612533565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b60648201526084016106cf565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff808216158015948401949094526101009091041615156060820152906118915750600792915050565b8060600151156118a45750600292915050565b80515143906001600160401b0316106118c05750600092915050565b436118cd82602001515190565b6001600160401b0316106118e45750600192915050565b6118f18160200151611c57565b15611932576118ff83611c86565b801561191e575060008381526005602052604090208054600190910154115b611929576003610cb1565b60049392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c20696400000060448201526064016106cf565b50919050565b6000683635c9adc5dea0000061199b336105ed600143612621565b1015611a1b5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a4016106cf565b6000611a308686868680519060200120610ce7565b90508451865114611a535760405162461bcd60e51b81526004016106cf90612638565b8351865114611a745760405162461bcd60e51b81526004016106cf90612638565b6000865111611ac55760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c000000000000000060448201526064016106cf565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215611b455760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b60648201526084016106cf565b6000611b516001611cbd565b611b5a43611cbd565b611b649190612679565b90506000611b7361b2fa611cbd565b611b7d9083612679565b835467ffffffffffffffff19166001600160401b038416178455905060018301805467ffffffffffffffff19166001600160401b0383161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b03811115611bf557611bf5611dcc565b604051908082528060200260200182016040528015611c2857816020015b6060815260200190600190039081611c135790505b508c88888e604051611c42999897969594939291906126a4565b60405180910390a15091979650505050505050565b6000611c6c82516001600160401b0316151590565b801561066a57505051436001600160401b03909116111590565b600081815260056020526040812060028101546001820154611ca89190612533565b611cb461060d85610a49565b11159392505050565b60006001600160401b03821115611d255760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b60648201526084016106cf565b5090565b600060208284031215611d3b57600080fd5b81356001600160e01b031981168114610cb157600080fd5b600060208284031215611d6557600080fd5b5035919050565b6000815180845260005b81811015611d9257602081850181015186830182015201611d76565b81811115611da4576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610cb16020830184611d6c565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611e0a57611e0a611dcc565b604052919050565b60006001600160401b03821115611e2b57611e2b611dcc565b5060051b60200190565b6001600160a01b03811681146106e157600080fd5b600082601f830112611e5b57600080fd5b81356020611e70611e6b83611e12565b611de2565b82815260059290921b84018101918181019086841115611e8f57600080fd5b8286015b84811015611eb3578035611ea681611e35565b8352918301918301611e93565b509695505050505050565b600082601f830112611ecf57600080fd5b81356020611edf611e6b83611e12565b82815260059290921b84018101918181019086841115611efe57600080fd5b8286015b84811015611eb35780358352918301918301611f02565b60006001600160401b03831115611f3257611f32611dcc565b611f45601f8401601f1916602001611de2565b9050828152838383011115611f5957600080fd5b828260208301376000602084830101529392505050565b600082601f830112611f8157600080fd5b81356020611f91611e6b83611e12565b82815260059290921b84018101918181019086841115611fb057600080fd5b8286015b84811015611eb35780356001600160401b03811115611fd35760008081fd5b8701603f81018913611fe55760008081fd5b611ff6898683013560408401611f19565b845250918301918301611fb4565b6000806000806080858703121561201a57600080fd5b84356001600160401b038082111561203157600080fd5b61203d88838901611e4a565b9550602087013591508082111561205357600080fd5b61205f88838901611ebe565b9450604087013591508082111561207557600080fd5b5061208287828801611f70565b949793965093946060013593505050565b803560ff811681146120a457600080fd5b919050565b600080600080600060a086880312156120c157600080fd5b853594506120d160208701612093565b93506120df60408701612093565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b602081016008831061212f57634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561214857600080fd5b82359150602083013561215a81611e35565b809150509250929050565b6000806040838503121561217857600080fd5b8235915061218860208401612093565b90509250929050565b600080600080606085870312156121a757600080fd5b843593506121b760208601612093565b925060408501356001600160401b03808211156121d357600080fd5b818701915087601f8301126121e757600080fd5b8135818111156121f657600080fd5b88602082850101111561220857600080fd5b95989497505060200194505050565b6000806000806080858703121561222d57600080fd5b84356001600160401b038082111561224457600080fd5b61225088838901611e4a565b9550602087013591508082111561226657600080fd5b61227288838901611ebe565b9450604087013591508082111561228857600080fd5b61229488838901611f70565b935060608701359150808211156122aa57600080fd5b508501601f810187136122bc57600080fd5b6122cb87823560208401611f19565b91505092959194509250565b6000602082840312156122e957600080fd5b8135610cb181611e35565b6000806040838503121561230757600080fd5b823561231281611e35565b946020939093013593505050565b600181811c9082168061233457607f821691505b60208210810361197a57634e487b7160e01b600052602260045260246000fd5b60208082526021908201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756040820152601b60fa1b606082015260800190565b6000602082840312156123a757600080fd5b5051919050565b600081518084526020808501945080840160005b838110156123e75781516001600160a01b0316875295820195908201906001016123c2565b509495945050505050565b600081518084526020808501945080840160005b838110156123e757815187529582019590820190600101612406565b600081518084526020808501808196508360051b8101915082860160005b8581101561246a578284038952612458848351611d6c565b98850198935090840190600101612440565b5091979650505050505050565b60a08152600061248a60a08301886123ae565b828103602084015261249c81886123f2565b905082810360408401526124b08187612422565b60608401959095525050608001529392505050565b60c0815260006124d860c08301896123ae565b82810360208401526124ea81896123f2565b905082810360408401526124fe8188612422565b60608401969096525050608081019290925260a0909101529392505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156125465761254661251d565b500190565b60808152600061255e60808301876123ae565b828103602084015261257081876123f2565b905082810360408401526125848186612422565b91505082606083015295945050505050565b84815260ff84166020820152826040820152608060608201526000610b906080830184611d6c565b6000602082840312156125d057600080fd5b81518015158114610cb157600080fd5b60008160001904831182151516156125fa576125fa61251d565b500290565b60008261261c57634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156126335761263361251d565b500390565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b0380831681851680830382111561269b5761269b61251d565b01949350505050565b60006101208b8352602060018060a01b038c16818501528160408501526126cd8285018c6123ae565b915083820360608501526126e1828b6123f2565b915083820360808501528189518084528284019150828160051b850101838c0160005b8381101561273257601f19878403018552612720838351611d6c565b94860194925090850190600101612704565b505086810360a0880152612746818c612422565b94505050505061276160c08401876001600160401b03169052565b6001600160401b03851660e08401528281036101008401526127838185611d6c565b9c9b50505050505050505050505056fea26469706673582212207c43f5bf49205d74642acc8dbd90f73be6153add180b4a2fa2ca0217f93ee91e64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106101c65760003560e01c80637b3c71d3116100f7578063c01f9e3711610095578063deaaa7cc11610064578063deaaa7cc1461059e578063eb9019d4146105d2578063f8ce560a146105f2578063fc0c546a1461061257600080fd5b8063c01f9e37146104e6578063c59057e414610506578063d33219b414610526578063dd4e2ba51461055857600080fd5b8063a7713a70116100d1578063a7713a7014610475578063a890c9101461048a578063ab58fb8e146104aa578063b58131b0146104ca57600080fd5b80637b3c71d3146104215780637d5e81e21461044157806397c3d3341461046157600080fd5b80633932abb111610164578063438596321161013e5780634385963214610338578063544ffc9c1461038257806354fd4d50146103d7578063567813881461040157600080fd5b80633932abb1146102d75780633bccf4fd146102eb5780633e4f49e61461030b57600080fd5b806306fdde03116101a057806306fdde0314610262578063160cbed7146102845780632656227d146102a45780632d63f693146102b757600080fd5b806301ffc9a7146101ee57806302a251a31461022357806306f3f9e61461024257600080fd5b366101e957306101d4610646565b6001600160a01b0316146101e757600080fd5b005b600080fd5b3480156101fa57600080fd5b5061020e610209366004611d29565b61065f565b60405190151581526020015b60405180910390f35b34801561022f57600080fd5b5061b2fa5b60405190815260200161021a565b34801561024e57600080fd5b506101e761025d366004611d53565b610670565b34801561026e57600080fd5b506102776106e4565b60405161021a9190611db9565b34801561029057600080fd5b5061023461029f366004612004565b610776565b6102346102b2366004612004565b610976565b3480156102c357600080fd5b506102346102d2366004611d53565b610a49565b3480156102e357600080fd5b506001610234565b3480156102f757600080fd5b506102346103063660046120a9565b610a80565b34801561031757600080fd5b5061032b610326366004611d53565b610b14565b60405161021a919061210d565b34801561034457600080fd5b5061020e610353366004612135565b60008281526005602090815260408083206001600160a01b038516845260030190915290205460ff1692915050565b34801561038e57600080fd5b506103bc61039d366004611d53565b6000908152600560205260409020805460018201546002909201549092565b6040805193845260208401929092529082015260600161021a565b3480156103e357600080fd5b506040805180820190915260018152603160f81b6020820152610277565b34801561040d57600080fd5b5061023461041c366004612165565b610b1f565b34801561042d57600080fd5b5061023461043c366004612191565b610b48565b34801561044d57600080fd5b5061023461045c366004612217565b610b9a565b34801561046d57600080fd5b506064610234565b34801561048157600080fd5b50600454610234565b34801561049657600080fd5b506101e76104a53660046122d7565b610bb1565b3480156104b657600080fd5b506102346104c5366004611d53565b610c1d565b3480156104d657600080fd5b50683635c9adc5dea00000610234565b3480156104f257600080fd5b50610234610501366004611d53565b610cb8565b34801561051257600080fd5b50610234610521366004612004565b610ce7565b34801561053257600080fd5b506002546001600160a01b03165b6040516001600160a01b03909116815260200161021a565b34801561056457600080fd5b506040805180820190915260208082527f737570706f72743d627261766f2671756f72756d3d666f722c6162737461696e90820152610277565b3480156105aa57600080fd5b506102347f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b3480156105de57600080fd5b506102346105ed3660046122f4565b610d21565b3480156105fe57600080fd5b5061023461060d366004611d53565b610d2d565b34801561061e57600080fd5b506105407f000000000000000000000000000000000000000000000000000000000000000081565b600061065a6002546001600160a01b031690565b905090565b600061066a82610d38565b92915050565b610678610646565b6001600160a01b0316336001600160a01b0316146106d85760405162461bcd60e51b8152602060048201526018602482015277476f7665726e6f723a206f6e6c79476f7665726e616e636560401b60448201526064015b60405180910390fd5b6106e181610d5d565b50565b6060600080546106f390612320565b80601f016020809104026020016040519081016040528092919081815260200182805461071f90612320565b801561076c5780601f106107415761010080835404028352916020019161076c565b820191906000526020600020905b81548152906001019060200180831161074f57829003601f168201915b5050505050905090565b60008061078586868686610ce7565b9050600461079282610b14565b60078111156107a3576107a36120f7565b146107c05760405162461bcd60e51b81526004016106cf90612354565b6002546040805163793d064960e11b815290516000926001600160a01b03169163f27a0c929160048083019260209291908290030181865afa15801561080a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082e9190612395565b60025460405163b1c5f42760e01b81529192506001600160a01b03169063b1c5f42790610868908a908a908a906000908b90600401612477565b602060405180830381865afa158015610885573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a99190612395565b6000838152600360205260408082209290925560025491516308f2a0bb60e41b81526001600160a01b0390921691638f2a0bb0916108f4918b918b918b91908b9089906004016124c5565b600060405180830381600087803b15801561090e57600080fd5b505af1158015610922573d6000803e3d6000fd5b505050507f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda28928282426109549190612533565b6040805192835260208301919091520160405180910390a15095945050505050565b60008061098586868686610ce7565b9050600061099282610b14565b905060048160078111156109a8576109a86120f7565b14806109c5575060058160078111156109c3576109c36120f7565b145b6109e15760405162461bcd60e51b81526004016106cf90612354565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a1610a3f8288888888610e25565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff851660608201526000908190610aec90610ae49060800160405160208183030381529060405280519060200120610e39565b868686610e87565b9050610b0987828860405180602001604052806000815250610ea5565b979650505050505050565b600061066a82610fb0565b600080339050610b4084828560405180602001604052806000815250610ea5565b949350505050565b600080339050610b9086828787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610ea592505050565b9695505050505050565b6000610ba88585858561107e565b95945050505050565b610bb9610646565b6001600160a01b0316336001600160a01b031614610c145760405162461bcd60e51b8152602060048201526018602482015277476f7665726e6f723a206f6e6c79476f7665726e616e636560401b60448201526064016106cf565b6106e18161108c565b60025460008281526003602052604080822054905163d45c443560e01b81526004810191909152909182916001600160a01b039091169063d45c443590602401602060405180830381865afa158015610c7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9e9190612395565b905080600114610cae5780610cb1565b60005b9392505050565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610a71565b600084848484604051602001610d00949392919061254b565b60408051601f19818403018152919052805160209091012095945050505050565b6000610cb183836110f5565b600061066a8261118b565b60006001600160e01b03198216636e665ced60e01b148061066a575061066a8261122f565b6064811115610de05760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a4016106cf565b600480549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b610e328585858585611264565b5050505050565b600061066a610e466112d8565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000610e98878787876113ff565b91509150610a3f816114ec565b6000848152600160208190526040822090610ebf87610b14565b6007811115610ed057610ed06120f7565b14610f295760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b60648201526084016106cf565b604080516020810190915281546001600160401b031690819052600090610f51908790610d21565b9050610f5f878787846116a2565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda488878488604051610f9e9493929190612596565b60405180910390a29695505050505050565b600080610fbc8361181c565b90506004816007811115610fd257610fd26120f7565b14610fdd5792915050565b60008381526003602052604090205480610ff8575092915050565b600254604051632ab0f52960e01b8152600481018390526001600160a01b0390911690632ab0f52990602401602060405180830381865afa158015611041573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106591906125be565b15611074575060079392505050565b5060059392505050565b6000610ba885858585611980565b600254604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600280546001600160a01b0319166001600160a01b0392909216919091179055565b604051630748d63560e31b81526001600160a01b038381166004830152602482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690633a46b1a890604401602060405180830381865afa158015611167573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb19190612395565b60006064600454604051632394e7a360e21b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690638e539e8c90602401602060405180830381865afa1580156111f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121b9190612395565b61122591906125e0565b61066a91906125ff565b60006001600160e01b0319821663bf26d89760e01b148061066a57506301ffc9a760e01b6001600160e01b031983161461066a565b60025460405163e38335e560e01b81526001600160a01b039091169063e38335e590349061129f908890889088906000908990600401612477565b6000604051808303818588803b1580156112b857600080fd5b505af11580156112cc573d6000803e3d6000fd5b50505050505050505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561133157507f000000000000000000000000000000000000000000000000000000000000000046145b1561135b57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561143657506000905060036114e3565b8460ff16601b1415801561144e57508460ff16601c14155b1561145f57506000905060046114e3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156114b3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166114dc576000600192509250506114e3565b9150600090505b94509492505050565b6000816004811115611500576115006120f7565b036115085750565b600181600481111561151c5761151c6120f7565b036115695760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106cf565b600281600481111561157d5761157d6120f7565b036115ca5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106cf565b60038160048111156115de576115de6120f7565b036116365760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106cf565b600481600481111561164a5761164a6120f7565b036106e15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016106cf565b60008481526005602090815260408083206001600160a01b0387168452600381019092529091205460ff161561172a5760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72566f74696e6753696d706c653a20766f746520616c726561604482015266191e4818d85cdd60ca1b60648201526084016106cf565b6001600160a01b03841660009081526003820160205260409020805460ff1916600117905560ff8316611776578181600001600082825461176b9190612533565b90915550610e329050565b60001960ff841601611796578181600101600082825461176b9190612533565b60011960ff8416016117b6578181600201600082825461176b9190612533565b60405162461bcd60e51b815260206004820152603560248201527f476f7665726e6f72566f74696e6753696d706c653a20696e76616c69642076616044820152746c756520666f7220656e756d20566f74655479706560581b60648201526084016106cf565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff808216158015948401949094526101009091041615156060820152906118915750600792915050565b8060600151156118a45750600292915050565b80515143906001600160401b0316106118c05750600092915050565b436118cd82602001515190565b6001600160401b0316106118e45750600192915050565b6118f18160200151611c57565b15611932576118ff83611c86565b801561191e575060008381526005602052604090208054600190910154115b611929576003610cb1565b60049392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c20696400000060448201526064016106cf565b50919050565b6000683635c9adc5dea0000061199b336105ed600143612621565b1015611a1b5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a4016106cf565b6000611a308686868680519060200120610ce7565b90508451865114611a535760405162461bcd60e51b81526004016106cf90612638565b8351865114611a745760405162461bcd60e51b81526004016106cf90612638565b6000865111611ac55760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c000000000000000060448201526064016106cf565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215611b455760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b60648201526084016106cf565b6000611b516001611cbd565b611b5a43611cbd565b611b649190612679565b90506000611b7361b2fa611cbd565b611b7d9083612679565b835467ffffffffffffffff19166001600160401b038416178455905060018301805467ffffffffffffffff19166001600160401b0383161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b03811115611bf557611bf5611dcc565b604051908082528060200260200182016040528015611c2857816020015b6060815260200190600190039081611c135790505b508c88888e604051611c42999897969594939291906126a4565b60405180910390a15091979650505050505050565b6000611c6c82516001600160401b0316151590565b801561066a57505051436001600160401b03909116111590565b600081815260056020526040812060028101546001820154611ca89190612533565b611cb461060d85610a49565b11159392505050565b60006001600160401b03821115611d255760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b60648201526084016106cf565b5090565b600060208284031215611d3b57600080fd5b81356001600160e01b031981168114610cb157600080fd5b600060208284031215611d6557600080fd5b5035919050565b6000815180845260005b81811015611d9257602081850181015186830182015201611d76565b81811115611da4576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610cb16020830184611d6c565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611e0a57611e0a611dcc565b604052919050565b60006001600160401b03821115611e2b57611e2b611dcc565b5060051b60200190565b6001600160a01b03811681146106e157600080fd5b600082601f830112611e5b57600080fd5b81356020611e70611e6b83611e12565b611de2565b82815260059290921b84018101918181019086841115611e8f57600080fd5b8286015b84811015611eb3578035611ea681611e35565b8352918301918301611e93565b509695505050505050565b600082601f830112611ecf57600080fd5b81356020611edf611e6b83611e12565b82815260059290921b84018101918181019086841115611efe57600080fd5b8286015b84811015611eb35780358352918301918301611f02565b60006001600160401b03831115611f3257611f32611dcc565b611f45601f8401601f1916602001611de2565b9050828152838383011115611f5957600080fd5b828260208301376000602084830101529392505050565b600082601f830112611f8157600080fd5b81356020611f91611e6b83611e12565b82815260059290921b84018101918181019086841115611fb057600080fd5b8286015b84811015611eb35780356001600160401b03811115611fd35760008081fd5b8701603f81018913611fe55760008081fd5b611ff6898683013560408401611f19565b845250918301918301611fb4565b6000806000806080858703121561201a57600080fd5b84356001600160401b038082111561203157600080fd5b61203d88838901611e4a565b9550602087013591508082111561205357600080fd5b61205f88838901611ebe565b9450604087013591508082111561207557600080fd5b5061208287828801611f70565b949793965093946060013593505050565b803560ff811681146120a457600080fd5b919050565b600080600080600060a086880312156120c157600080fd5b853594506120d160208701612093565b93506120df60408701612093565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b602081016008831061212f57634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561214857600080fd5b82359150602083013561215a81611e35565b809150509250929050565b6000806040838503121561217857600080fd5b8235915061218860208401612093565b90509250929050565b600080600080606085870312156121a757600080fd5b843593506121b760208601612093565b925060408501356001600160401b03808211156121d357600080fd5b818701915087601f8301126121e757600080fd5b8135818111156121f657600080fd5b88602082850101111561220857600080fd5b95989497505060200194505050565b6000806000806080858703121561222d57600080fd5b84356001600160401b038082111561224457600080fd5b61225088838901611e4a565b9550602087013591508082111561226657600080fd5b61227288838901611ebe565b9450604087013591508082111561228857600080fd5b61229488838901611f70565b935060608701359150808211156122aa57600080fd5b508501601f810187136122bc57600080fd5b6122cb87823560208401611f19565b91505092959194509250565b6000602082840312156122e957600080fd5b8135610cb181611e35565b6000806040838503121561230757600080fd5b823561231281611e35565b946020939093013593505050565b600181811c9082168061233457607f821691505b60208210810361197a57634e487b7160e01b600052602260045260246000fd5b60208082526021908201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756040820152601b60fa1b606082015260800190565b6000602082840312156123a757600080fd5b5051919050565b600081518084526020808501945080840160005b838110156123e75781516001600160a01b0316875295820195908201906001016123c2565b509495945050505050565b600081518084526020808501945080840160005b838110156123e757815187529582019590820190600101612406565b600081518084526020808501808196508360051b8101915082860160005b8581101561246a578284038952612458848351611d6c565b98850198935090840190600101612440565b5091979650505050505050565b60a08152600061248a60a08301886123ae565b828103602084015261249c81886123f2565b905082810360408401526124b08187612422565b60608401959095525050608001529392505050565b60c0815260006124d860c08301896123ae565b82810360208401526124ea81896123f2565b905082810360408401526124fe8188612422565b60608401969096525050608081019290925260a0909101529392505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156125465761254661251d565b500190565b60808152600061255e60808301876123ae565b828103602084015261257081876123f2565b905082810360408401526125848186612422565b91505082606083015295945050505050565b84815260ff84166020820152826040820152608060608201526000610b906080830184611d6c565b6000602082840312156125d057600080fd5b81518015158114610cb157600080fd5b60008160001904831182151516156125fa576125fa61251d565b500290565b60008261261c57634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156126335761263361251d565b500390565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b0380831681851680830382111561269b5761269b61251d565b01949350505050565b60006101208b8352602060018060a01b038c16818501528160408501526126cd8285018c6123ae565b915083820360608501526126e1828b6123f2565b915083820360808501528189518084528284019150828160051b850101838c0160005b8381101561273257601f19878403018552612720838351611d6c565b94860194925090850190600101612704565b505086810360a0880152612746818c612422565b94505050505061276160c08401876001600160401b03169052565b6001600160401b03851660e08401528281036101008401526127838185611d6c565b9c9b50505050505050505050505056fea26469706673582212207c43f5bf49205d74642acc8dbd90f73be6153add180b4a2fa2ca0217f93ee91e64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "_token", "type": "address", "internalType": "contract ERC20Votes"}, {"name": "_timelock", "type": "address", "internalType": "contract TimelockController"}]}, {"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalQueued", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "eta", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "QuorumNumeratorUpdated", "inputs": [{"name": "oldQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TimelockChange", "inputs": [{"name": "oldTimelock", "type": "address", "internalType": "address", "indexed": false}, {"name": "newTimelock", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalEta", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalVotes", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "againstVotes", "type": "uint256", "internalType": "uint256"}, {"name": "forVotes", "type": "uint256", "internalType": "uint256"}, {"name": "abstainVotes", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumDenominator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumNumerator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "timelock", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract ERC20Votes"}]}, {"type": "function", "name": "updateQuorumNumerator", "stateMutability": "nonpayable", "inputs": [{"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "updateTimelock", "stateMutability": "nonpayable", "inputs": [{"name": "newTimelock", "type": "address", "internalType": "contract TimelockController"}], "outputs": []}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"COUNTING_MODE()": {"details": "See {IGovernor-COUNTING_MODE}."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "hasVoted(uint256,address)": {"details": "See {IGovernor-hasVoted}."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalEta(uint256)": {"details": "Public accessor to check the eta of a queued proposal"}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_."}, "proposalVotes(uint256)": {"details": "Accessor to the internal vote counts."}, "queue(address[],uint256[],bytes[],bytes32)": {"details": "Function to queue a proposal to the timelock."}, "timelock()": {"details": "Public accessor to check the address of the timelock"}, "updateTimelock(address)": {"details": "Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates must be proposed, scheduled and executed using the {Governor} workflow."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "MyGovernor": {"contractName": "MyGovernor", "sourceId": "mocks/wizard/MyGovernor3.sol", "deploymentBytecode": {"bytecode": "0x6101606040523480156200001257600080fd5b506040516200420838038062004208833981016040819052620000359162000353565b600482826040518060400160405280600a81526020016926bca3b7bb32b93737b960b11b815250806200006d6200014360201b60201c565b815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c052610120525050825162000113925060009150602084019062000294565b50620001219050816200015e565b506001600160a01b0316610140526200013a81620001c7565b505050620003ce565b6040805180820190915260018152603160f81b602082015290565b600254604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600280546001600160a01b0319166001600160a01b0392909216919091179055565b60648111156200024f5760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a40160405180910390fd5b600580549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b828054620002a29062000392565b90600052602060002090601f016020900481019282620002c6576000855562000311565b82601f10620002e157805160ff191683800117855562000311565b8280016001018555821562000311579182015b8281111562000311578251825591602001919060010190620002f4565b506200031f92915062000323565b5090565b5b808211156200031f576000815560010162000324565b6001600160a01b03811681146200035057600080fd5b50565b600080604083850312156200036757600080fd5b825162000374816200033a565b602084015190925062000387816200033a565b809150509250929050565b600181811c90821680620003a757607f821691505b602082108103620003c857634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161014051613dd16200043760003960008181610801015281816120cb01526121550152600061230f0152600061235e0152600061233901526000612292015260006122bc015260006122e60152613dd16000f3fe6080604052600436106102135760003560e01c80637d5e81e211610118578063da95691a116100a0578063e23a9a521161006f578063e23a9a52146106e5578063eb9019d4146107af578063f8ce560a146107cf578063fc0c546a146107ef578063fe0d94c11461082357600080fd5b8063da95691a1461062b578063dd4e2ba51461064b578063ddf0b00914610691578063deaaa7cc146106b157600080fd5b8063ab58fb8e116100e7578063ab58fb8e1461057d578063b58131b01461059d578063c01f9e37146105b9578063c59057e4146105d9578063d33219b4146105f957600080fd5b80637d5e81e21461051457806397c3d33414610534578063a7713a7014610548578063a890c9101461055d57600080fd5b8063328dd9821161019b57806340e58ee51161016a57806340e58ee514610440578063438596321461046057806354fd4d50146104aa57806356781388146104d45780637b3c71d3146104f457600080fd5b8063328dd982146103af5780633932abb1146103df5780633bccf4fd146103f35780633e4f49e61461041357600080fd5b806306fdde03116101e257806306fdde0314610325578063160cbed71461034757806324bc1a64146103675780632656227d1461037c5780632d63f6931461038f57600080fd5b8063013cf08b1461023b57806301ffc9a7146102b657806302a251a3146102e657806306f3f9e61461030557600080fd5b366102365730610221610836565b6001600160a01b03161461023457600080fd5b005b600080fd5b34801561024757600080fd5b5061025b610256366004613165565b61084f565b604080519a8b526001600160a01b0390991660208b0152978901969096526060880194909452608087019290925260a086015260c085015260e084015215156101008301521515610120820152610140015b60405180910390f35b3480156102c257600080fd5b506102d66102d136600461317e565b6108f8565b60405190151581526020016102ad565b3480156102f257600080fd5b5061b2fa5b6040519081526020016102ad565b34801561031157600080fd5b50610234610320366004613165565b610909565b34801561033157600080fd5b5061033a61097d565b6040516102ad9190613204565b34801561035357600080fd5b506102f761036236600461344f565b610a0f565b34801561037357600080fd5b506102f7610c10565b6102f761038a36600461344f565b610c20565b34801561039b57600080fd5b506102f76103aa366004613165565b610cf3565b3480156103bb57600080fd5b506103cf6103ca366004613165565b610d2a565b6040516102ad94939291906135a7565b3480156103eb57600080fd5b5060016102f7565b3480156103ff57600080fd5b506102f761040e36600461360a565b610fbb565b34801561041f57600080fd5b5061043361042e366004613165565b61104f565b6040516102ad919061366e565b34801561044c57600080fd5b5061023461045b366004613165565b61105a565b34801561046c57600080fd5b506102d661047b366004613696565b60008281526004602090815260408083206001600160a01b038516845260080190915290205460ff1692915050565b3480156104b657600080fd5b506040805180820190915260018152603160f81b602082015261033a565b3480156104e057600080fd5b506102f76104ef3660046136c6565b611374565b34801561050057600080fd5b506102f761050f3660046136f2565b61139d565b34801561052057600080fd5b506102f761052f366004613798565b6113ef565b34801561054057600080fd5b5060646102f7565b34801561055457600080fd5b506005546102f7565b34801561056957600080fd5b50610234610578366004613844565b611406565b34801561058957600080fd5b506102f7610598366004613165565b611472565b3480156105a957600080fd5b50683635c9adc5dea000006102f7565b3480156105c557600080fd5b506102f76105d4366004613165565b61150d565b3480156105e557600080fd5b506102f76105f436600461344f565b61153c565b34801561060557600080fd5b506002546001600160a01b03165b6040516001600160a01b0390911681526020016102ad565b34801561063757600080fd5b506102f76106463660046138e0565b611576565b34801561065757600080fd5b5060408051808201909152601a81527f737570706f72743d627261766f2671756f72756d3d627261766f000000000000602082015261033a565b34801561069d57600080fd5b506102346106ac366004613165565b61159b565b3480156106bd57600080fd5b506102f77f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b3480156106f157600080fd5b5061077f610700366004613696565b60408051606081018252600080825260208201819052918101919091525060009182526004602090815260408084206001600160a01b0393909316845260089092018152918190208151606081018352905460ff8082161515835261010082041693820193909352620100009092046001600160601b03169082015290565b6040805182511515815260208084015160ff1690820152918101516001600160601b0316908201526060016102ad565b3480156107bb57600080fd5b506102f76107ca3660046139b1565b611809565b3480156107db57600080fd5b506102f76107ea366004613165565b611815565b3480156107fb57600080fd5b506106137f000000000000000000000000000000000000000000000000000000000000000081565b610234610831366004613165565b611820565b600061084a6002546001600160a01b031690565b905090565b80600080808080808080806108638a611472565b975061086e8b610cf3565b96506108798b61150d565b60008c815260046020526040812080546005820154600683015460078401546001600160a01b039093169e50949a5098509296509194506108b98d61104f565b905060028160078111156108cf576108cf613658565b14935060078160078111156108e6576108e6613658565b14925050509193959799509193959799565b600061090382611a8e565b92915050565b610911610836565b6001600160a01b0316336001600160a01b0316146109715760405162461bcd60e51b8152602060048201526018602482015277476f7665726e6f723a206f6e6c79476f7665726e616e636560401b60448201526064015b60405180910390fd5b61097a81611ab3565b50565b60606000805461098c906139dd565b80601f01602080910402602001604051908101604052809291908181526020018280546109b8906139dd565b8015610a055780601f106109da57610100808354040283529160200191610a05565b820191906000526020600020905b8154815290600101906020018083116109e857829003601f168201915b5050505050905090565b600080610a1e8686868661153c565b90506004610a2b8261104f565b6007811115610a3c57610a3c613658565b14610a595760405162461bcd60e51b815260040161096890613a11565b6002546040805163793d064960e11b815290516000926001600160a01b03169163f27a0c929160048083019260209291908290030181865afa158015610aa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac79190613a52565b60025460405163b1c5f42760e01b81529192506001600160a01b03169063b1c5f42790610b01908a908a908a906000908b90600401613a6b565b602060405180830381865afa158015610b1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b429190613a52565b6000838152600360205260408082209290925560025491516308f2a0bb60e41b81526001600160a01b0390921691638f2a0bb091610b8d918b918b918b91908b908990600401613ab9565b600060405180830381600087803b158015610ba757600080fd5b505af1158015610bbb573d6000803e3d6000fd5b505050507f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda2892828242610bed9190613b27565b604080519283526020830191909152015b60405180910390a15095945050505050565b600061084a6107ea600143613b3f565b600080610c2f8686868661153c565b90506000610c3c8261104f565b90506004816007811115610c5257610c52613658565b1480610c6f57506005816007811115610c6d57610c6d613658565b145b610c8b5760405162461bcd60e51b815260040161096890613a11565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a1610ce98288888888611b7b565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b60608060608060006004600087815260200190815260200160002090508060010181600201826003018360040183805480602002602001604051908101604052809291908181526020018280548015610dac57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610d8e575b5050505050935082805480602002602001604051908101604052809291908181526020018280548015610dfe57602002820191906000526020600020905b815481526020019060010190808311610dea575b5050505050925081805480602002602001604051908101604052809291908181526020016000905b82821015610ed2578382906000526020600020018054610e45906139dd565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906139dd565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081526020019060010190610e26565b50505050915080805480602002602001604051908101604052809291908181526020016000905b82821015610fa5578382906000526020600020018054610f18906139dd565b80601f0160208091040260200160405190810160405280929190818152602001828054610f44906139dd565b8015610f915780601f10610f6657610100808354040283529160200191610f91565b820191906000526020600020905b815481529060010190602001808311610f7457829003601f168201915b505050505081526020019060010190610ef9565b5050505090509450945094509450509193509193565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff8516606082015260009081906110279061101f9060800160405160208183030381529060405280519060200120611b8f565b868686611bdd565b905061104487828860405180602001604052806000815250611bfb565b979650505050505050565b600061090382611d06565b600081815260046020526040902080546001600160a01b0316336001600160a01b031614806110aa5750683635c9adc5dea0000081546110a8906001600160a01b03166107ca600143613b3f565b105b6111065760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72427261766f3a2070726f706f7365722061626f76652074686044820152661c995cda1bdb1960ca1b6064820152608401610968565b61136f8160010180548060200260200160405190810160405280929190818152602001828054801561116157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611143575b5050505050826002018054806020026020016040519081016040528092919081815260200182805480156111b457602002820191906000526020600020905b8154815260200190600101908083116111a0575b505050505061136584600301805480602002602001604051908101604052809291908181526020016000905b8282101561128c5783829060005260206000200180546111ff906139dd565b80601f016020809104026020016040519081016040528092919081815260200182805461122b906139dd565b80156112785780601f1061124d57610100808354040283529160200191611278565b820191906000526020600020905b81548152906001019060200180831161125b57829003601f168201915b5050505050815260200190600101906111e0565b50505060048701805460408051602080840282018101909252828152935060009084015b8282101561135c5783829060005260206000200180546112cf906139dd565b80601f01602080910402602001604051908101604052809291908181526020018280546112fb906139dd565b80156113485780601f1061131d57610100808354040283529160200191611348565b820191906000526020600020905b81548152906001019060200180831161132b57829003601f168201915b5050505050815260200190600101906112b0565b50505050611dd4565b8460090154611f06565b505050565b60008033905061139584828560405180602001604052806000815250611bfb565b949350505050565b6000803390506113e586828787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611bfb92505050565b9695505050505050565b60006113fd85858585611f14565b95945050505050565b61140e610836565b6001600160a01b0316336001600160a01b0316146114695760405162461bcd60e51b8152602060048201526018602482015277476f7665726e6f723a206f6e6c79476f7665726e616e636560401b6044820152606401610968565b61097a81611f7c565b60025460008281526003602052604080822054905163d45c443560e01b81526004810191909152909182916001600160a01b039091169063d45c443590602401602060405180830381865afa1580156114cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f39190613a52565b9050806001146115035780611506565b60005b9392505050565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610d1b565b6000848484846040516020016115559493929190613b56565b60408051601f19818403018152919052805160209091012095945050505050565b6000611586338787878787611fe5565b6113e586866115958787611dd4565b856113ef565b600081815260046020908152604091829020600181018054845181850281018501909552808552919361136f9390929083018282801561160457602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116115e6575b50505050508260020180548060200260200160405190810160405280929190818152602001828054801561165757602002820191906000526020600020905b815481526020019060010190808311611643575b50505050506117ff84600301805480602002602001604051908101604052809291908181526020016000905b8282101561172f5783829060005260206000200180546116a2906139dd565b80601f01602080910402602001604051908101604052809291908181526020018280546116ce906139dd565b801561171b5780601f106116f05761010080835404028352916020019161171b565b820191906000526020600020905b8154815290600101906020018083116116fe57829003601f168201915b505050505081526020019060010190611683565b50505060048701805460408051602080840282018101909252828152935060009084015b8282101561135c578382906000526020600020018054611772906139dd565b80601f016020809104026020016040519081016040528092919081815260200182805461179e906139dd565b80156117eb5780601f106117c0576101008083540402835291602001916117eb565b820191906000526020600020905b8154815290600101906020018083116117ce57829003601f168201915b505050505081526020019060010190611753565b8460090154610a0f565b600061150683836120a2565b600061090382612138565b600081815260046020908152604091829020600181018054845181850281018501909552808552919361136f9390929083018282801561188957602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161186b575b5050505050826002018054806020026020016040519081016040528092919081815260200182805480156118dc57602002820191906000526020600020905b8154815260200190600101908083116118c8575b5050505050611a8484600301805480602002602001604051908101604052809291908181526020016000905b828210156119b4578382906000526020600020018054611927906139dd565b80601f0160208091040260200160405190810160405280929190818152602001828054611953906139dd565b80156119a05780601f10611975576101008083540402835291602001916119a0565b820191906000526020600020905b81548152906001019060200180831161198357829003601f168201915b505050505081526020019060010190611908565b50505060048701805460408051602080840282018101909252828152935060009084015b8282101561135c5783829060005260206000200180546119f7906139dd565b80601f0160208091040260200160405190810160405280929190818152602001828054611a23906139dd565b8015611a705780601f10611a4557610100808354040283529160200191611a70565b820191906000526020600020905b815481529060010190602001808311611a5357829003601f168201915b5050505050815260200190600101906119d8565b8460090154610c20565b60006001600160e01b03198216636e665ced60e01b14806109035750610903826121dc565b6064811115611b365760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a401610968565b600580549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b611b888585858585612211565b5050505050565b6000610903611b9c612285565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611bee878787876123ac565b91509150610ce981612499565b6000848152600160208190526040822090611c158761104f565b6007811115611c2657611c26613658565b14611c7f5760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b6064820152608401610968565b604080516020810190915281546001600160401b031690819052600090611ca7908790611809565b9050611cb58787878461264f565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda488878488604051611cf49493929190613ba1565b60405180910390a29695505050505050565b600080611d12836127f4565b90506004816007811115611d2857611d28613658565b14611d335792915050565b60008381526003602052604090205480611d4e575092915050565b600254604051632ab0f52960e01b8152600481018390526001600160a01b0390911690632ab0f52990602401602060405180830381865afa158015611d97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dbb9190613bc9565b15611dca575060079392505050565b5060059392505050565b6060600082516001600160401b03811115611df157611df1613217565b604051908082528060200260200182016040528015611e2457816020015b6060815260200190600190039081611e0f5790505b50905060005b8451811015611efe57848181518110611e4557611e45613beb565b602002602001015151600014611eb557848181518110611e6757611e67613beb565b602002602001015180519060200120848281518110611e8857611e88613beb565b6020026020010151604051602001611ea1929190613c01565b604051602081830303815290604052611ed0565b838181518110611ec757611ec7613beb565b60200260200101515b828281518110611ee257611ee2613beb565b602002602001018190525080611ef790613c32565b9050611e2a565b509392505050565b60006113fd8585858561295b565b6000611f7033868686516001600160401b03811115611f3557611f35613217565b604051908082528060200260200182016040528015611f6857816020015b6060815260200190600190039081611f535790505b508787611fe5565b6113fd85858585612a0d565b600254604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600280546001600160a01b0319166001600160a01b0392909216919091179055565b8051602082012060006120038787611ffd8888611dd4565b8561153c565b60008181526004602052604090206009810154919250906120975780546001600160a01b0319166001600160a01b038a16178155875161204c90600183019060208b0190612f1b565b50865161206290600283019060208a0190612f7c565b5085516120789060038301906020890190612fb7565b50845161208e9060048301906020880190613010565b50600981018390555b505050505050505050565b604051630748d63560e31b81526001600160a01b038381166004830152602482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690633a46b1a890604401602060405180830381865afa158015612114573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115069190613a52565b60006064600554604051632394e7a360e21b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690638e539e8c90602401602060405180830381865afa1580156121a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121c89190613a52565b6121d29190613c4b565b6109039190613c6a565b60006001600160e01b0319821663bf26d89760e01b148061090357506301ffc9a760e01b6001600160e01b0319831614610903565b60025460405163e38335e560e01b81526001600160a01b039091169063e38335e590349061224c908890889088906000908990600401613a6b565b6000604051808303818588803b15801561226557600080fd5b505af1158015612279573d6000803e3d6000fd5b50505050505050505050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156122de57507f000000000000000000000000000000000000000000000000000000000000000046145b1561230857507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156123e35750600090506003612490565b8460ff16601b141580156123fb57508460ff16601c14155b1561240c5750600090506004612490565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612460573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661248957600060019250925050612490565b9150600090505b94509492505050565b60008160048111156124ad576124ad613658565b036124b55750565b60018160048111156124c9576124c9613658565b036125165760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610968565b600281600481111561252a5761252a613658565b036125775760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610968565b600381600481111561258b5761258b613658565b036125e35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610968565b60048160048111156125f7576125f7613658565b0361097a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610968565b60008481526004602090815260408083206001600160a01b038716845260088101909252909120805460ff16156126de5760405162461bcd60e51b815260206004820152602d60248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a20766f746560448201526c08185b1c9958591e4818d85cdd609a1b6064820152608401610968565b805460ff85166101000261ffff199091161760011781556126fe83612ce4565b81546001600160601b039190911662010000026dffffffffffffffffffffffff00001990911617815560ff841661274e57828260060160008282546127439190613b27565b909155506127ec9050565b60001960ff85160161276e57828260050160008282546127439190613b27565b60011960ff85160161278e57828260070160008282546127439190613b27565b60405162461bcd60e51b815260206004820152602d60248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a20696e766160448201526c6c696420766f7465207479706560981b6064820152608401610968565b505050505050565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff808216158015948401949094526101009091041615156060820152906128695750600792915050565b80606001511561287c5750600292915050565b80515143906001600160401b0316106128985750600092915050565b436128a582602001515190565b6001600160401b0316106128bc5750600192915050565b6128c98160200151612d50565b1561290d576128d783612d7f565b80156128f9575060008381526004602052604090206006810154600590910154115b612904576003611506565b60049392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c2069640000006044820152606401610968565b50919050565b60008061296a86868686612da7565b600081815260036020526040902054909150156113fd576002546000828152600360205260409081902054905163c4d252f560e01b81526001600160a01b039092169163c4d252f5916129c39160040190815260200190565b600060405180830381600087803b1580156129dd57600080fd5b505af11580156129f1573d6000803e3d6000fd5b5050506000828152600360205260408120555095945050505050565b6000683635c9adc5dea00000612a28336107ca600143613b3f565b1015612aa85760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a401610968565b6000612abd868686868051906020012061153c565b90508451865114612ae05760405162461bcd60e51b815260040161096890613c8c565b8351865114612b015760405162461bcd60e51b815260040161096890613c8c565b6000865111612b525760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c00000000000000006044820152606401610968565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215612bd25760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b6064820152608401610968565b6000612bde6001612eb3565b612be743612eb3565b612bf19190613ccd565b90506000612c0061b2fa612eb3565b612c0a9083613ccd565b835467ffffffffffffffff19166001600160401b038416178455905060018301805467ffffffffffffffff19166001600160401b0383161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b03811115612c8257612c82613217565b604051908082528060200260200182016040528015612cb557816020015b6060815260200190600190039081612ca05790505b508c88888e604051612ccf99989796959493929190613cf8565b60405180910390a15091979650505050505050565b60006001600160601b03821115612d4c5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203960448201526536206269747360d01b6064820152608401610968565b5090565b6000612d6582516001600160401b0316151590565b801561090357505051436001600160401b03909116111590565b60008181526004602052604081206005810154612d9e6107ea85610cf3565b11159392505050565b600080612db68686868661153c565b90506000612dc38261104f565b90506002816007811115612dd957612dd9613658565b14158015612df957506006816007811115612df657612df6613658565b14155b8015612e1757506007816007811115612e1457612e14613658565b14155b612e635760405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a2070726f706f73616c206e6f74206163746976650000006044820152606401610968565b60008281526001602052604090819020600201805461ff001916610100179055517f789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c90610bfe9084815260200190565b60006001600160401b03821115612d4c5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b6064820152608401610968565b828054828255906000526020600020908101928215612f70579160200282015b82811115612f7057825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612f3b565b50612d4c929150613069565b828054828255906000526020600020908101928215612f70579160200282015b82811115612f70578251825591602001919060010190612f9c565b828054828255906000526020600020908101928215613004579160200282015b828111156130045782518051612ff491849160209091019061307e565b5091602001919060010190612fd7565b50612d4c9291506130f1565b82805482825590600052602060002090810192821561305d579160200282015b8281111561305d578251805161304d91849160209091019061307e565b5091602001919060010190613030565b50612d4c92915061310e565b5b80821115612d4c576000815560010161306a565b82805461308a906139dd565b90600052602060002090601f0160209004810192826130ac5760008555612f70565b82601f106130c557805160ff1916838001178555612f70565b82800160010185558215612f705791820182811115612f70578251825591602001919060010190612f9c565b80821115612d4c576000613105828261312b565b506001016130f1565b80821115612d4c576000613122828261312b565b5060010161310e565b508054613137906139dd565b6000825580601f10613147575050565b601f01602090049060005260206000209081019061097a9190613069565b60006020828403121561317757600080fd5b5035919050565b60006020828403121561319057600080fd5b81356001600160e01b03198116811461150657600080fd5b60005b838110156131c35781810151838201526020016131ab565b838111156131d2576000848401525b50505050565b600081518084526131f08160208601602086016131a8565b601f01601f19169290920160200192915050565b60208152600061150660208301846131d8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561325557613255613217565b604052919050565b60006001600160401b0382111561327657613276613217565b5060051b60200190565b6001600160a01b038116811461097a57600080fd5b600082601f8301126132a657600080fd5b813560206132bb6132b68361325d565b61322d565b82815260059290921b840181019181810190868411156132da57600080fd5b8286015b848110156132fe5780356132f181613280565b83529183019183016132de565b509695505050505050565b600082601f83011261331a57600080fd5b8135602061332a6132b68361325d565b82815260059290921b8401810191818101908684111561334957600080fd5b8286015b848110156132fe578035835291830191830161334d565b60006001600160401b0383111561337d5761337d613217565b613390601f8401601f191660200161322d565b90508281528383830111156133a457600080fd5b828260208301376000602084830101529392505050565b600082601f8301126133cc57600080fd5b813560206133dc6132b68361325d565b82815260059290921b840181019181810190868411156133fb57600080fd5b8286015b848110156132fe5780356001600160401b0381111561341e5760008081fd5b8701603f810189136134305760008081fd5b613441898683013560408401613364565b8452509183019183016133ff565b6000806000806080858703121561346557600080fd5b84356001600160401b038082111561347c57600080fd5b61348888838901613295565b9550602087013591508082111561349e57600080fd5b6134aa88838901613309565b945060408701359150808211156134c057600080fd5b506134cd878288016133bb565b949793965093946060013593505050565b600081518084526020808501945080840160005b838110156135175781516001600160a01b0316875295820195908201906001016134f2565b509495945050505050565b600081518084526020808501945080840160005b8381101561351757815187529582019590820190600101613536565b600081518084526020808501808196508360051b8101915082860160005b8581101561359a5782840389526135888483516131d8565b98850198935090840190600101613570565b5091979650505050505050565b6080815260006135ba60808301876134de565b82810360208401526135cc8187613522565b905082810360408401526135e08186613552565b905082810360608401526110448185613552565b803560ff8116811461360557600080fd5b919050565b600080600080600060a0868803121561362257600080fd5b85359450613632602087016135f4565b9350613640604087016135f4565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b602081016008831061369057634e487b7160e01b600052602160045260246000fd5b91905290565b600080604083850312156136a957600080fd5b8235915060208301356136bb81613280565b809150509250929050565b600080604083850312156136d957600080fd5b823591506136e9602084016135f4565b90509250929050565b6000806000806060858703121561370857600080fd5b84359350613718602086016135f4565b925060408501356001600160401b038082111561373457600080fd5b818701915087601f83011261374857600080fd5b81358181111561375757600080fd5b88602082850101111561376957600080fd5b95989497505060200194505050565b600082601f83011261378957600080fd5b61150683833560208501613364565b600080600080608085870312156137ae57600080fd5b84356001600160401b03808211156137c557600080fd5b6137d188838901613295565b955060208701359150808211156137e757600080fd5b6137f388838901613309565b9450604087013591508082111561380957600080fd5b613815888389016133bb565b9350606087013591508082111561382b57600080fd5b5061383887828801613778565b91505092959194509250565b60006020828403121561385657600080fd5b813561150681613280565b600082601f83011261387257600080fd5b813560206138826132b68361325d565b82815260059290921b840181019181810190868411156138a157600080fd5b8286015b848110156132fe5780356001600160401b038111156138c45760008081fd5b6138d28986838b0101613778565b8452509183019183016138a5565b600080600080600060a086880312156138f857600080fd5b85356001600160401b038082111561390f57600080fd5b61391b89838a01613295565b9650602088013591508082111561393157600080fd5b61393d89838a01613309565b9550604088013591508082111561395357600080fd5b61395f89838a01613861565b9450606088013591508082111561397557600080fd5b61398189838a016133bb565b9350608088013591508082111561399757600080fd5b506139a488828901613778565b9150509295509295909350565b600080604083850312156139c457600080fd5b82356139cf81613280565b946020939093013593505050565b600181811c908216806139f157607f821691505b60208210810361295557634e487b7160e01b600052602260045260246000fd5b60208082526021908201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756040820152601b60fa1b606082015260800190565b600060208284031215613a6457600080fd5b5051919050565b60a081526000613a7e60a08301886134de565b8281036020840152613a908188613522565b90508281036040840152613aa48187613552565b60608401959095525050608001529392505050565b60c081526000613acc60c08301896134de565b8281036020840152613ade8189613522565b90508281036040840152613af28188613552565b60608401969096525050608081019290925260a0909101529392505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613b3a57613b3a613b11565b500190565b600082821015613b5157613b51613b11565b500390565b608081526000613b6960808301876134de565b8281036020840152613b7b8187613522565b90508281036040840152613b8f8186613552565b91505082606083015295945050505050565b84815260ff841660208201528260408201526080606082015260006113e560808301846131d8565b600060208284031215613bdb57600080fd5b8151801515811461150657600080fd5b634e487b7160e01b600052603260045260246000fd5b6001600160e01b0319831681528151600090613c248160048501602087016131a8565b919091016004019392505050565b600060018201613c4457613c44613b11565b5060010190565b6000816000190483118215151615613c6557613c65613b11565b500290565b600082613c8757634e487b7160e01b600052601260045260246000fd5b500490565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b03808316818516808303821115613cef57613cef613b11565b01949350505050565b8981526001600160a01b038916602082015261012060408201819052600090613d238382018b6134de565b90508281036060840152613d37818a613522565b90508281036080840152613d4b8189613552565b905082810360a0840152613d5f8188613552565b6001600160401b0387811660c0860152861660e08501528381036101008501529050613d8b81856131d8565b9c9b50505050505050505050505056fea2646970667358221220131e21debe339156562c5d472d3aec1ec5e8daa1b4b7a9d95e011becd088a97964736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106102135760003560e01c80637d5e81e211610118578063da95691a116100a0578063e23a9a521161006f578063e23a9a52146106e5578063eb9019d4146107af578063f8ce560a146107cf578063fc0c546a146107ef578063fe0d94c11461082357600080fd5b8063da95691a1461062b578063dd4e2ba51461064b578063ddf0b00914610691578063deaaa7cc146106b157600080fd5b8063ab58fb8e116100e7578063ab58fb8e1461057d578063b58131b01461059d578063c01f9e37146105b9578063c59057e4146105d9578063d33219b4146105f957600080fd5b80637d5e81e21461051457806397c3d33414610534578063a7713a7014610548578063a890c9101461055d57600080fd5b8063328dd9821161019b57806340e58ee51161016a57806340e58ee514610440578063438596321461046057806354fd4d50146104aa57806356781388146104d45780637b3c71d3146104f457600080fd5b8063328dd982146103af5780633932abb1146103df5780633bccf4fd146103f35780633e4f49e61461041357600080fd5b806306fdde03116101e257806306fdde0314610325578063160cbed71461034757806324bc1a64146103675780632656227d1461037c5780632d63f6931461038f57600080fd5b8063013cf08b1461023b57806301ffc9a7146102b657806302a251a3146102e657806306f3f9e61461030557600080fd5b366102365730610221610836565b6001600160a01b03161461023457600080fd5b005b600080fd5b34801561024757600080fd5b5061025b610256366004613165565b61084f565b604080519a8b526001600160a01b0390991660208b0152978901969096526060880194909452608087019290925260a086015260c085015260e084015215156101008301521515610120820152610140015b60405180910390f35b3480156102c257600080fd5b506102d66102d136600461317e565b6108f8565b60405190151581526020016102ad565b3480156102f257600080fd5b5061b2fa5b6040519081526020016102ad565b34801561031157600080fd5b50610234610320366004613165565b610909565b34801561033157600080fd5b5061033a61097d565b6040516102ad9190613204565b34801561035357600080fd5b506102f761036236600461344f565b610a0f565b34801561037357600080fd5b506102f7610c10565b6102f761038a36600461344f565b610c20565b34801561039b57600080fd5b506102f76103aa366004613165565b610cf3565b3480156103bb57600080fd5b506103cf6103ca366004613165565b610d2a565b6040516102ad94939291906135a7565b3480156103eb57600080fd5b5060016102f7565b3480156103ff57600080fd5b506102f761040e36600461360a565b610fbb565b34801561041f57600080fd5b5061043361042e366004613165565b61104f565b6040516102ad919061366e565b34801561044c57600080fd5b5061023461045b366004613165565b61105a565b34801561046c57600080fd5b506102d661047b366004613696565b60008281526004602090815260408083206001600160a01b038516845260080190915290205460ff1692915050565b3480156104b657600080fd5b506040805180820190915260018152603160f81b602082015261033a565b3480156104e057600080fd5b506102f76104ef3660046136c6565b611374565b34801561050057600080fd5b506102f761050f3660046136f2565b61139d565b34801561052057600080fd5b506102f761052f366004613798565b6113ef565b34801561054057600080fd5b5060646102f7565b34801561055457600080fd5b506005546102f7565b34801561056957600080fd5b50610234610578366004613844565b611406565b34801561058957600080fd5b506102f7610598366004613165565b611472565b3480156105a957600080fd5b50683635c9adc5dea000006102f7565b3480156105c557600080fd5b506102f76105d4366004613165565b61150d565b3480156105e557600080fd5b506102f76105f436600461344f565b61153c565b34801561060557600080fd5b506002546001600160a01b03165b6040516001600160a01b0390911681526020016102ad565b34801561063757600080fd5b506102f76106463660046138e0565b611576565b34801561065757600080fd5b5060408051808201909152601a81527f737570706f72743d627261766f2671756f72756d3d627261766f000000000000602082015261033a565b34801561069d57600080fd5b506102346106ac366004613165565b61159b565b3480156106bd57600080fd5b506102f77f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f81565b3480156106f157600080fd5b5061077f610700366004613696565b60408051606081018252600080825260208201819052918101919091525060009182526004602090815260408084206001600160a01b0393909316845260089092018152918190208151606081018352905460ff8082161515835261010082041693820193909352620100009092046001600160601b03169082015290565b6040805182511515815260208084015160ff1690820152918101516001600160601b0316908201526060016102ad565b3480156107bb57600080fd5b506102f76107ca3660046139b1565b611809565b3480156107db57600080fd5b506102f76107ea366004613165565b611815565b3480156107fb57600080fd5b506106137f000000000000000000000000000000000000000000000000000000000000000081565b610234610831366004613165565b611820565b600061084a6002546001600160a01b031690565b905090565b80600080808080808080806108638a611472565b975061086e8b610cf3565b96506108798b61150d565b60008c815260046020526040812080546005820154600683015460078401546001600160a01b039093169e50949a5098509296509194506108b98d61104f565b905060028160078111156108cf576108cf613658565b14935060078160078111156108e6576108e6613658565b14925050509193959799509193959799565b600061090382611a8e565b92915050565b610911610836565b6001600160a01b0316336001600160a01b0316146109715760405162461bcd60e51b8152602060048201526018602482015277476f7665726e6f723a206f6e6c79476f7665726e616e636560401b60448201526064015b60405180910390fd5b61097a81611ab3565b50565b60606000805461098c906139dd565b80601f01602080910402602001604051908101604052809291908181526020018280546109b8906139dd565b8015610a055780601f106109da57610100808354040283529160200191610a05565b820191906000526020600020905b8154815290600101906020018083116109e857829003601f168201915b5050505050905090565b600080610a1e8686868661153c565b90506004610a2b8261104f565b6007811115610a3c57610a3c613658565b14610a595760405162461bcd60e51b815260040161096890613a11565b6002546040805163793d064960e11b815290516000926001600160a01b03169163f27a0c929160048083019260209291908290030181865afa158015610aa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac79190613a52565b60025460405163b1c5f42760e01b81529192506001600160a01b03169063b1c5f42790610b01908a908a908a906000908b90600401613a6b565b602060405180830381865afa158015610b1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b429190613a52565b6000838152600360205260408082209290925560025491516308f2a0bb60e41b81526001600160a01b0390921691638f2a0bb091610b8d918b918b918b91908b908990600401613ab9565b600060405180830381600087803b158015610ba757600080fd5b505af1158015610bbb573d6000803e3d6000fd5b505050507f9a2e42fd6722813d69113e7d0079d3d940171428df7373df9c7f7617cfda2892828242610bed9190613b27565b604080519283526020830191909152015b60405180910390a15095945050505050565b600061084a6107ea600143613b3f565b600080610c2f8686868661153c565b90506000610c3c8261104f565b90506004816007811115610c5257610c52613658565b1480610c6f57506005816007811115610c6d57610c6d613658565b145b610c8b5760405162461bcd60e51b815260040161096890613a11565b600082815260016020818152604092839020600201805460ff191690921790915590518381527f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f910160405180910390a1610ce98288888888611b7b565b5095945050505050565b60008181526001602090815260408083208151928301909152546001600160401b0316908190525b6001600160401b031692915050565b60608060608060006004600087815260200190815260200160002090508060010181600201826003018360040183805480602002602001604051908101604052809291908181526020018280548015610dac57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610d8e575b5050505050935082805480602002602001604051908101604052809291908181526020018280548015610dfe57602002820191906000526020600020905b815481526020019060010190808311610dea575b5050505050925081805480602002602001604051908101604052809291908181526020016000905b82821015610ed2578382906000526020600020018054610e45906139dd565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906139dd565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081526020019060010190610e26565b50505050915080805480602002602001604051908101604052809291908181526020016000905b82821015610fa5578382906000526020600020018054610f18906139dd565b80601f0160208091040260200160405190810160405280929190818152602001828054610f44906139dd565b8015610f915780601f10610f6657610100808354040283529160200191610f91565b820191906000526020600020905b815481529060010190602001808311610f7457829003601f168201915b505050505081526020019060010190610ef9565b5050505090509450945094509450509193509193565b604080517f150214d74d59b7d1e90c73fc22ef3d991dd0a76b046543d4d80ab92d2a50328f602082015290810186905260ff8516606082015260009081906110279061101f9060800160405160208183030381529060405280519060200120611b8f565b868686611bdd565b905061104487828860405180602001604052806000815250611bfb565b979650505050505050565b600061090382611d06565b600081815260046020526040902080546001600160a01b0316336001600160a01b031614806110aa5750683635c9adc5dea0000081546110a8906001600160a01b03166107ca600143613b3f565b105b6111065760405162461bcd60e51b815260206004820152602760248201527f476f7665726e6f72427261766f3a2070726f706f7365722061626f76652074686044820152661c995cda1bdb1960ca1b6064820152608401610968565b61136f8160010180548060200260200160405190810160405280929190818152602001828054801561116157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611143575b5050505050826002018054806020026020016040519081016040528092919081815260200182805480156111b457602002820191906000526020600020905b8154815260200190600101908083116111a0575b505050505061136584600301805480602002602001604051908101604052809291908181526020016000905b8282101561128c5783829060005260206000200180546111ff906139dd565b80601f016020809104026020016040519081016040528092919081815260200182805461122b906139dd565b80156112785780601f1061124d57610100808354040283529160200191611278565b820191906000526020600020905b81548152906001019060200180831161125b57829003601f168201915b5050505050815260200190600101906111e0565b50505060048701805460408051602080840282018101909252828152935060009084015b8282101561135c5783829060005260206000200180546112cf906139dd565b80601f01602080910402602001604051908101604052809291908181526020018280546112fb906139dd565b80156113485780601f1061131d57610100808354040283529160200191611348565b820191906000526020600020905b81548152906001019060200180831161132b57829003601f168201915b5050505050815260200190600101906112b0565b50505050611dd4565b8460090154611f06565b505050565b60008033905061139584828560405180602001604052806000815250611bfb565b949350505050565b6000803390506113e586828787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611bfb92505050565b9695505050505050565b60006113fd85858585611f14565b95945050505050565b61140e610836565b6001600160a01b0316336001600160a01b0316146114695760405162461bcd60e51b8152602060048201526018602482015277476f7665726e6f723a206f6e6c79476f7665726e616e636560401b6044820152606401610968565b61097a81611f7c565b60025460008281526003602052604080822054905163d45c443560e01b81526004810191909152909182916001600160a01b039091169063d45c443590602401602060405180830381865afa1580156114cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f39190613a52565b9050806001146115035780611506565b60005b9392505050565b60008181526001602081815260408084208151928301909152909101546001600160401b031690819052610d1b565b6000848484846040516020016115559493929190613b56565b60408051601f19818403018152919052805160209091012095945050505050565b6000611586338787878787611fe5565b6113e586866115958787611dd4565b856113ef565b600081815260046020908152604091829020600181018054845181850281018501909552808552919361136f9390929083018282801561160457602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116115e6575b50505050508260020180548060200260200160405190810160405280929190818152602001828054801561165757602002820191906000526020600020905b815481526020019060010190808311611643575b50505050506117ff84600301805480602002602001604051908101604052809291908181526020016000905b8282101561172f5783829060005260206000200180546116a2906139dd565b80601f01602080910402602001604051908101604052809291908181526020018280546116ce906139dd565b801561171b5780601f106116f05761010080835404028352916020019161171b565b820191906000526020600020905b8154815290600101906020018083116116fe57829003601f168201915b505050505081526020019060010190611683565b50505060048701805460408051602080840282018101909252828152935060009084015b8282101561135c578382906000526020600020018054611772906139dd565b80601f016020809104026020016040519081016040528092919081815260200182805461179e906139dd565b80156117eb5780601f106117c0576101008083540402835291602001916117eb565b820191906000526020600020905b8154815290600101906020018083116117ce57829003601f168201915b505050505081526020019060010190611753565b8460090154610a0f565b600061150683836120a2565b600061090382612138565b600081815260046020908152604091829020600181018054845181850281018501909552808552919361136f9390929083018282801561188957602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161186b575b5050505050826002018054806020026020016040519081016040528092919081815260200182805480156118dc57602002820191906000526020600020905b8154815260200190600101908083116118c8575b5050505050611a8484600301805480602002602001604051908101604052809291908181526020016000905b828210156119b4578382906000526020600020018054611927906139dd565b80601f0160208091040260200160405190810160405280929190818152602001828054611953906139dd565b80156119a05780601f10611975576101008083540402835291602001916119a0565b820191906000526020600020905b81548152906001019060200180831161198357829003601f168201915b505050505081526020019060010190611908565b50505060048701805460408051602080840282018101909252828152935060009084015b8282101561135c5783829060005260206000200180546119f7906139dd565b80601f0160208091040260200160405190810160405280929190818152602001828054611a23906139dd565b8015611a705780601f10611a4557610100808354040283529160200191611a70565b820191906000526020600020905b815481529060010190602001808311611a5357829003601f168201915b5050505050815260200190600101906119d8565b8460090154610c20565b60006001600160e01b03198216636e665ced60e01b14806109035750610903826121dc565b6064811115611b365760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72566f74657351756f72756d4672616374696f6e3a2071756f60448201527f72756d4e756d657261746f72206f7665722071756f72756d44656e6f6d696e616064820152623a37b960e91b608482015260a401610968565b600580549082905560408051828152602081018490527f0553476bf02ef2726e8ce5ced78d63e26e602e4a2257b1f559418e24b4633997910160405180910390a15050565b611b888585858585612211565b5050505050565b6000610903611b9c612285565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611bee878787876123ac565b91509150610ce981612499565b6000848152600160208190526040822090611c158761104f565b6007811115611c2657611c26613658565b14611c7f5760405162461bcd60e51b815260206004820152602360248201527f476f7665726e6f723a20766f7465206e6f742063757272656e746c792061637460448201526269766560e81b6064820152608401610968565b604080516020810190915281546001600160401b031690819052600090611ca7908790611809565b9050611cb58787878461264f565b856001600160a01b03167fb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda488878488604051611cf49493929190613ba1565b60405180910390a29695505050505050565b600080611d12836127f4565b90506004816007811115611d2857611d28613658565b14611d335792915050565b60008381526003602052604090205480611d4e575092915050565b600254604051632ab0f52960e01b8152600481018390526001600160a01b0390911690632ab0f52990602401602060405180830381865afa158015611d97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dbb9190613bc9565b15611dca575060079392505050565b5060059392505050565b6060600082516001600160401b03811115611df157611df1613217565b604051908082528060200260200182016040528015611e2457816020015b6060815260200190600190039081611e0f5790505b50905060005b8451811015611efe57848181518110611e4557611e45613beb565b602002602001015151600014611eb557848181518110611e6757611e67613beb565b602002602001015180519060200120848281518110611e8857611e88613beb565b6020026020010151604051602001611ea1929190613c01565b604051602081830303815290604052611ed0565b838181518110611ec757611ec7613beb565b60200260200101515b828281518110611ee257611ee2613beb565b602002602001018190525080611ef790613c32565b9050611e2a565b509392505050565b60006113fd8585858561295b565b6000611f7033868686516001600160401b03811115611f3557611f35613217565b604051908082528060200260200182016040528015611f6857816020015b6060815260200190600190039081611f535790505b508787611fe5565b6113fd85858585612a0d565b600254604080516001600160a01b03928316815291831660208301527f08f74ea46ef7894f65eabfb5e6e695de773a000b47c529ab559178069b226401910160405180910390a1600280546001600160a01b0319166001600160a01b0392909216919091179055565b8051602082012060006120038787611ffd8888611dd4565b8561153c565b60008181526004602052604090206009810154919250906120975780546001600160a01b0319166001600160a01b038a16178155875161204c90600183019060208b0190612f1b565b50865161206290600283019060208a0190612f7c565b5085516120789060038301906020890190612fb7565b50845161208e9060048301906020880190613010565b50600981018390555b505050505050505050565b604051630748d63560e31b81526001600160a01b038381166004830152602482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690633a46b1a890604401602060405180830381865afa158015612114573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115069190613a52565b60006064600554604051632394e7a360e21b8152600481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690638e539e8c90602401602060405180830381865afa1580156121a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121c89190613a52565b6121d29190613c4b565b6109039190613c6a565b60006001600160e01b0319821663bf26d89760e01b148061090357506301ffc9a760e01b6001600160e01b0319831614610903565b60025460405163e38335e560e01b81526001600160a01b039091169063e38335e590349061224c908890889088906000908990600401613a6b565b6000604051808303818588803b15801561226557600080fd5b505af1158015612279573d6000803e3d6000fd5b50505050505050505050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156122de57507f000000000000000000000000000000000000000000000000000000000000000046145b1561230857507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156123e35750600090506003612490565b8460ff16601b141580156123fb57508460ff16601c14155b1561240c5750600090506004612490565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612460573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661248957600060019250925050612490565b9150600090505b94509492505050565b60008160048111156124ad576124ad613658565b036124b55750565b60018160048111156124c9576124c9613658565b036125165760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610968565b600281600481111561252a5761252a613658565b036125775760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610968565b600381600481111561258b5761258b613658565b036125e35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610968565b60048160048111156125f7576125f7613658565b0361097a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610968565b60008481526004602090815260408083206001600160a01b038716845260088101909252909120805460ff16156126de5760405162461bcd60e51b815260206004820152602d60248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a20766f746560448201526c08185b1c9958591e4818d85cdd609a1b6064820152608401610968565b805460ff85166101000261ffff199091161760011781556126fe83612ce4565b81546001600160601b039190911662010000026dffffffffffffffffffffffff00001990911617815560ff841661274e57828260060160008282546127439190613b27565b909155506127ec9050565b60001960ff85160161276e57828260050160008282546127439190613b27565b60011960ff85160161278e57828260070160008282546127439190613b27565b60405162461bcd60e51b815260206004820152602d60248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a20696e766160448201526c6c696420766f7465207479706560981b6064820152608401610968565b505050505050565b6000818152600160208181526040808420815160a08101835281546001600160401b0390811660808301908152825283518086018552958301541685529283019390935260029092015460ff808216158015948401949094526101009091041615156060820152906128695750600792915050565b80606001511561287c5750600292915050565b80515143906001600160401b0316106128985750600092915050565b436128a582602001515190565b6001600160401b0316106128bc5750600192915050565b6128c98160200151612d50565b1561290d576128d783612d7f565b80156128f9575060008381526004602052604090206006810154600590910154115b612904576003611506565b60049392505050565b60405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a20756e6b6e6f776e2070726f706f73616c2069640000006044820152606401610968565b50919050565b60008061296a86868686612da7565b600081815260036020526040902054909150156113fd576002546000828152600360205260409081902054905163c4d252f560e01b81526001600160a01b039092169163c4d252f5916129c39160040190815260200190565b600060405180830381600087803b1580156129dd57600080fd5b505af11580156129f1573d6000803e3d6000fd5b5050506000828152600360205260408120555095945050505050565b6000683635c9adc5dea00000612a28336107ca600143613b3f565b1015612aa85760405162461bcd60e51b815260206004820152604360248201527f476f7665726e6f72436f6d7061746962696c697479427261766f3a2070726f7060448201527f6f73657220766f7465732062656c6f772070726f706f73616c207468726573686064820152621bdb1960ea1b608482015260a401610968565b6000612abd868686868051906020012061153c565b90508451865114612ae05760405162461bcd60e51b815260040161096890613c8c565b8351865114612b015760405162461bcd60e51b815260040161096890613c8c565b6000865111612b525760405162461bcd60e51b815260206004820152601860248201527f476f7665726e6f723a20656d7074792070726f706f73616c00000000000000006044820152606401610968565b600081815260016020908152604091829020825191820190925281546001600160401b03169081905215612bd25760405162461bcd60e51b815260206004820152602160248201527f476f7665726e6f723a2070726f706f73616c20616c72656164792065786973746044820152607360f81b6064820152608401610968565b6000612bde6001612eb3565b612be743612eb3565b612bf19190613ccd565b90506000612c0061b2fa612eb3565b612c0a9083613ccd565b835467ffffffffffffffff19166001600160401b038416178455905060018301805467ffffffffffffffff19166001600160401b0383161790557f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e084338b8b8d516001600160401b03811115612c8257612c82613217565b604051908082528060200260200182016040528015612cb557816020015b6060815260200190600190039081612ca05790505b508c88888e604051612ccf99989796959493929190613cf8565b60405180910390a15091979650505050505050565b60006001600160601b03821115612d4c5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203960448201526536206269747360d01b6064820152608401610968565b5090565b6000612d6582516001600160401b0316151590565b801561090357505051436001600160401b03909116111590565b60008181526004602052604081206005810154612d9e6107ea85610cf3565b11159392505050565b600080612db68686868661153c565b90506000612dc38261104f565b90506002816007811115612dd957612dd9613658565b14158015612df957506006816007811115612df657612df6613658565b14155b8015612e1757506007816007811115612e1457612e14613658565b14155b612e635760405162461bcd60e51b815260206004820152601d60248201527f476f7665726e6f723a2070726f706f73616c206e6f74206163746976650000006044820152606401610968565b60008281526001602052604090819020600201805461ff001916610100179055517f789cf55be980739dad1d0699b93b58e806b51c9d96619bfa8fe0a28abaa7b30c90610bfe9084815260200190565b60006001600160401b03821115612d4c5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201526534206269747360d01b6064820152608401610968565b828054828255906000526020600020908101928215612f70579160200282015b82811115612f7057825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612f3b565b50612d4c929150613069565b828054828255906000526020600020908101928215612f70579160200282015b82811115612f70578251825591602001919060010190612f9c565b828054828255906000526020600020908101928215613004579160200282015b828111156130045782518051612ff491849160209091019061307e565b5091602001919060010190612fd7565b50612d4c9291506130f1565b82805482825590600052602060002090810192821561305d579160200282015b8281111561305d578251805161304d91849160209091019061307e565b5091602001919060010190613030565b50612d4c92915061310e565b5b80821115612d4c576000815560010161306a565b82805461308a906139dd565b90600052602060002090601f0160209004810192826130ac5760008555612f70565b82601f106130c557805160ff1916838001178555612f70565b82800160010185558215612f705791820182811115612f70578251825591602001919060010190612f9c565b80821115612d4c576000613105828261312b565b506001016130f1565b80821115612d4c576000613122828261312b565b5060010161310e565b508054613137906139dd565b6000825580601f10613147575050565b601f01602090049060005260206000209081019061097a9190613069565b60006020828403121561317757600080fd5b5035919050565b60006020828403121561319057600080fd5b81356001600160e01b03198116811461150657600080fd5b60005b838110156131c35781810151838201526020016131ab565b838111156131d2576000848401525b50505050565b600081518084526131f08160208601602086016131a8565b601f01601f19169290920160200192915050565b60208152600061150660208301846131d8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561325557613255613217565b604052919050565b60006001600160401b0382111561327657613276613217565b5060051b60200190565b6001600160a01b038116811461097a57600080fd5b600082601f8301126132a657600080fd5b813560206132bb6132b68361325d565b61322d565b82815260059290921b840181019181810190868411156132da57600080fd5b8286015b848110156132fe5780356132f181613280565b83529183019183016132de565b509695505050505050565b600082601f83011261331a57600080fd5b8135602061332a6132b68361325d565b82815260059290921b8401810191818101908684111561334957600080fd5b8286015b848110156132fe578035835291830191830161334d565b60006001600160401b0383111561337d5761337d613217565b613390601f8401601f191660200161322d565b90508281528383830111156133a457600080fd5b828260208301376000602084830101529392505050565b600082601f8301126133cc57600080fd5b813560206133dc6132b68361325d565b82815260059290921b840181019181810190868411156133fb57600080fd5b8286015b848110156132fe5780356001600160401b0381111561341e5760008081fd5b8701603f810189136134305760008081fd5b613441898683013560408401613364565b8452509183019183016133ff565b6000806000806080858703121561346557600080fd5b84356001600160401b038082111561347c57600080fd5b61348888838901613295565b9550602087013591508082111561349e57600080fd5b6134aa88838901613309565b945060408701359150808211156134c057600080fd5b506134cd878288016133bb565b949793965093946060013593505050565b600081518084526020808501945080840160005b838110156135175781516001600160a01b0316875295820195908201906001016134f2565b509495945050505050565b600081518084526020808501945080840160005b8381101561351757815187529582019590820190600101613536565b600081518084526020808501808196508360051b8101915082860160005b8581101561359a5782840389526135888483516131d8565b98850198935090840190600101613570565b5091979650505050505050565b6080815260006135ba60808301876134de565b82810360208401526135cc8187613522565b905082810360408401526135e08186613552565b905082810360608401526110448185613552565b803560ff8116811461360557600080fd5b919050565b600080600080600060a0868803121561362257600080fd5b85359450613632602087016135f4565b9350613640604087016135f4565b94979396509394606081013594506080013592915050565b634e487b7160e01b600052602160045260246000fd5b602081016008831061369057634e487b7160e01b600052602160045260246000fd5b91905290565b600080604083850312156136a957600080fd5b8235915060208301356136bb81613280565b809150509250929050565b600080604083850312156136d957600080fd5b823591506136e9602084016135f4565b90509250929050565b6000806000806060858703121561370857600080fd5b84359350613718602086016135f4565b925060408501356001600160401b038082111561373457600080fd5b818701915087601f83011261374857600080fd5b81358181111561375757600080fd5b88602082850101111561376957600080fd5b95989497505060200194505050565b600082601f83011261378957600080fd5b61150683833560208501613364565b600080600080608085870312156137ae57600080fd5b84356001600160401b03808211156137c557600080fd5b6137d188838901613295565b955060208701359150808211156137e757600080fd5b6137f388838901613309565b9450604087013591508082111561380957600080fd5b613815888389016133bb565b9350606087013591508082111561382b57600080fd5b5061383887828801613778565b91505092959194509250565b60006020828403121561385657600080fd5b813561150681613280565b600082601f83011261387257600080fd5b813560206138826132b68361325d565b82815260059290921b840181019181810190868411156138a157600080fd5b8286015b848110156132fe5780356001600160401b038111156138c45760008081fd5b6138d28986838b0101613778565b8452509183019183016138a5565b600080600080600060a086880312156138f857600080fd5b85356001600160401b038082111561390f57600080fd5b61391b89838a01613295565b9650602088013591508082111561393157600080fd5b61393d89838a01613309565b9550604088013591508082111561395357600080fd5b61395f89838a01613861565b9450606088013591508082111561397557600080fd5b61398189838a016133bb565b9350608088013591508082111561399757600080fd5b506139a488828901613778565b9150509295509295909350565b600080604083850312156139c457600080fd5b82356139cf81613280565b946020939093013593505050565b600181811c908216806139f157607f821691505b60208210810361295557634e487b7160e01b600052602260045260246000fd5b60208082526021908201527f476f7665726e6f723a2070726f706f73616c206e6f74207375636365737366756040820152601b60fa1b606082015260800190565b600060208284031215613a6457600080fd5b5051919050565b60a081526000613a7e60a08301886134de565b8281036020840152613a908188613522565b90508281036040840152613aa48187613552565b60608401959095525050608001529392505050565b60c081526000613acc60c08301896134de565b8281036020840152613ade8189613522565b90508281036040840152613af28188613552565b60608401969096525050608081019290925260a0909101529392505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613b3a57613b3a613b11565b500190565b600082821015613b5157613b51613b11565b500390565b608081526000613b6960808301876134de565b8281036020840152613b7b8187613522565b90508281036040840152613b8f8186613552565b91505082606083015295945050505050565b84815260ff841660208201528260408201526080606082015260006113e560808301846131d8565b600060208284031215613bdb57600080fd5b8151801515811461150657600080fd5b634e487b7160e01b600052603260045260246000fd5b6001600160e01b0319831681528151600090613c248160048501602087016131a8565b919091016004019392505050565b600060018201613c4457613c44613b11565b5060010190565b6000816000190483118215151615613c6557613c65613b11565b500290565b600082613c8757634e487b7160e01b600052601260045260246000fd5b500490565b60208082526021908201527f476f7665726e6f723a20696e76616c69642070726f706f73616c206c656e67746040820152600d60fb1b606082015260800190565b60006001600160401b03808316818516808303821115613cef57613cef613b11565b01949350505050565b8981526001600160a01b038916602082015261012060408201819052600090613d238382018b6134de565b90508281036060840152613d37818a613522565b90508281036080840152613d4b8189613552565b905082810360a0840152613d5f8188613552565b6001600160401b0387811660c0860152861660e08501528381036101008501529050613d8b81856131d8565b9c9b50505050505050505050505056fea2646970667358221220131e21debe339156562c5d472d3aec1ec5e8daa1b4b7a9d95e011becd088a97964736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "_token", "type": "address", "internalType": "contract ERC20Votes"}, {"name": "_timelock", "type": "address", "internalType": "contract TimelockController"}]}, {"type": "event", "name": "ProposalCanceled", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalCreated", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "proposer", "type": "address", "internalType": "address", "indexed": false}, {"name": "targets", "type": "address[]", "internalType": "address[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "signatures", "type": "string[]", "internalType": "string[]", "indexed": false}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]", "indexed": false}, {"name": "startBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "endBlock", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "description", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalExecuted", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "ProposalQueued", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "eta", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "QuorumNumeratorUpdated", "inputs": [{"name": "oldQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TimelockChange", "inputs": [{"name": "oldTimelock", "type": "address", "internalType": "address", "indexed": false}, {"name": "newTimelock", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "VoteCast", "inputs": [{"name": "voter", "type": "address", "internalType": "address", "indexed": true}, {"name": "proposalId", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "support", "type": "uint8", "internalType": "uint8", "indexed": false}, {"name": "weight", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "reason", "type": "string", "internalType": "string", "indexed": false}], "anonymous": false}, {"type": "function", "name": "BALLOT_TYPEHASH", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "COUNTING_MODE", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "cancel", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "castVote", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteBySig", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "castVoteWithReason", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "reason", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "execute", "stateMutability": "payable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "getActions", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "signatures", "type": "string[]", "internalType": "string[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}]}, {"type": "function", "name": "getReceipt", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "voter", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "tuple", "components": [{"name": "hasVoted", "type": "bool", "internalType": "bool"}, {"name": "support", "type": "uint8", "internalType": "uint8"}, {"name": "votes", "type": "uint96", "internalType": "uint96"}], "internalType": "struct IGovernorCompatibilityBravo.Receipt"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "hasVoted", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "hashProposal", "stateMutability": "pure", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "proposalDeadline", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalEta", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalSnapshot", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposalThreshold", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "proposals", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "proposer", "type": "address", "internalType": "address"}, {"name": "eta", "type": "uint256", "internalType": "uint256"}, {"name": "startBlock", "type": "uint256", "internalType": "uint256"}, {"name": "endBlock", "type": "uint256", "internalType": "uint256"}, {"name": "forVotes", "type": "uint256", "internalType": "uint256"}, {"name": "againstVotes", "type": "uint256", "internalType": "uint256"}, {"name": "abstainVotes", "type": "uint256", "internalType": "uint256"}, {"name": "canceled", "type": "bool", "internalType": "bool"}, {"name": "executed", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "propose", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "signatures", "type": "string[]", "internalType": "string[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "description", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "targets", "type": "address[]", "internalType": "address[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "calldatas", "type": "bytes[]", "internalType": "bytes[]"}, {"name": "descriptionHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "queue", "stateMutability": "nonpayable", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "quorum", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumDenominator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumNumerator", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "quorumVotes", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [{"name": "proposalId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint8", "internalType": "enum IGovernor.ProposalState"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "timelock", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract ERC20Votes"}]}, {"type": "function", "name": "updateQuorumNumerator", "stateMutability": "nonpayable", "inputs": [{"name": "newQuorumNumerator", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "updateTimelock", "stateMutability": "nonpayable", "inputs": [{"name": "newTimelock", "type": "address", "internalType": "contract TimelockController"}], "outputs": []}, {"type": "function", "name": "version", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "votingDelay", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "votingPeriod", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {"COUNTING_MODE()": {"notice": "module:voting"}, "votingDelay()": {"notice": "module:user-config"}, "votingPeriod()": {"notice": "module:user-config"}}, "version": 1}, "devdoc": {"kind": "dev", "methods": {"COUNTING_MODE()": {"details": "A description of the possible `support` values for {castVote} and the way these votes are counted, meant to be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`. There are 2 standard keys: `support` and `quorum`. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`. - `quorum=bravo` means that only For votes are counted towards quorum. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum. NOTE: The string can be decoded by the standard https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`] JavaScript class."}, "cancel(uint256)": {"details": "Cancels a proposal only if sender is the proposer, or proposer delegates dropped below proposal threshold."}, "castVote(uint256,uint8)": {"details": "See {IGovernor-castVote}."}, "castVoteBySig(uint256,uint8,uint8,bytes32,bytes32)": {"details": "See {IGovernor-castVoteBySig}."}, "castVoteWithReason(uint256,uint8,string)": {"details": "See {IGovernor-castVoteWithReason}."}, "execute(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-execute}."}, "execute(uint256)": {"details": "See {IGovernorCompatibilityBravo-execute}."}, "getActions(uint256)": {"details": "See {IGovernorCompatibilityBravo-getActions}."}, "getReceipt(uint256,address)": {"details": "See {IGovernorCompatibilityBravo-getReceipt}."}, "hasVoted(uint256,address)": {"details": "See {IGovernor-hasVoted}."}, "hashProposal(address[],uint256[],bytes[],bytes32)": {"details": "See {IGovernor-hashProposal}. The proposal id is produced by hashing the RLC encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in advance, before the proposal is submitted. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the same proposal (with same operation and same description) will have the same id if submitted on multiple governors accross multiple networks. This also means that in order to execute the same operation twice (on the same governor) the proposer will have to change the description in order to avoid proposal id conflicts."}, "name()": {"details": "See {IGovernor-name}."}, "proposalDeadline(uint256)": {"details": "See {IGovernor-proposalDeadline}."}, "proposalEta(uint256)": {"details": "Public accessor to check the eta of a queued proposal"}, "proposalSnapshot(uint256)": {"details": "See {IGovernor-proposalSnapshot}."}, "proposalThreshold()": {"details": "Part of the Governor Bravo's interface: _\"The number of votes required in order for a voter to become a proposer\"_."}, "proposals(uint256)": {"details": "See {IGovernorCompatibilityBravo-proposals}."}, "propose(address[],uint256[],string[],bytes[],string)": {"details": "See {IGovernorCompatibilityBravo-propose}."}, "queue(address[],uint256[],bytes[],bytes32)": {"details": "Function to queue a proposal to the timelock."}, "queue(uint256)": {"details": "See {IGovernorCompatibilityBravo-queue}."}, "quorumVotes()": {"details": "See {IGovernorCompatibilityBravo-quorumVotes}."}, "timelock()": {"details": "Public accessor to check the address of the timelock"}, "updateTimelock(address)": {"details": "Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates must be proposed, scheduled and executed using the {Governor} workflow."}, "version()": {"details": "See {IGovernor-version}."}, "votingDelay()": {"details": "Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts."}, "votingPeriod()": {"details": "Delay, in number of blocks, between the vote start and vote ends. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay."}}, "version": 1}}, "Clones": {"contractName": "Clones", "sourceId": "proxy/Clones.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220894dbfba6c74d17c81d73813b07b67989995d832dc6dfdb891958df4ca7efb2564736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220894dbfba6c74d17c81d73813b07b67989995d832dc6dfdb891958df4ca7efb2564736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for deploying minimal proxy contracts, also known as \"clones\". > To simply and cheaply clone contract functionality in an immutable way, this standard specifies > a minimal bytecode implementation that delegates all calls to a known, fixed address. The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the deterministic method. _Available since v3.4._", "kind": "dev", "methods": {}, "version": 1}}, "ERC1967Proxy": {"contractName": "ERC1967Proxy", "sourceId": "proxy/ERC1967/ERC1967Proxy.sol", "deploymentBytecode": {"bytecode": "0x608060405260405161078d38038061078d83398101604081905261002291610337565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd610405565b600080516020610746833981519152146100695761006961042a565b6100758282600061007c565b505061048f565b610085836100b2565b6000825111806100925750805b156100ad576100ab83836100f260201b6100291760201c565b505b505050565b6100bb8161011e565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606101178383604051806060016040528060278152602001610766602791396101de565b9392505050565b610131816102b360201b6100551760201c565b6101985760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101bd60008051602061074683398151915260001b6102b960201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060833b61023d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840161018f565b600080856001600160a01b0316856040516102589190610440565b600060405180830381855af49150503d8060008114610293576040519150601f19603f3d011682016040523d82523d6000602084013e610298565b606091505b5090925090506102a98282866102bc565b9695505050505050565b3b151590565b90565b606083156102cb575081610117565b8251156102db5782518084602001fd5b8160405162461bcd60e51b815260040161018f919061045c565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561032657818101518382015260200161030e565b838111156100ab5750506000910152565b6000806040838503121561034a57600080fd5b82516001600160a01b038116811461036157600080fd5b60208401519092506001600160401b038082111561037e57600080fd5b818501915085601f83011261039257600080fd5b8151818111156103a4576103a46102f5565b604051601f8201601f19908116603f011681019083821181831017156103cc576103cc6102f5565b816040528281528860208487010111156103e557600080fd5b6103f683602083016020880161030b565b80955050505050509250929050565b60008282101561042557634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161045281846020870161030b565b9190910192915050565b602081526000825180602084015261047b81604085016020870161030b565b601f01601f19169190910160400192915050565b6102a88061049e6000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101fc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b81526004016101159190610218565b60005b838110156101e75781810151838201526020016101cf565b838111156101f6576000848401525b50505050565b6000825161020e8184602087016101cc565b9190910192915050565b60208152600082518060208401526102378160408501602087016101cc565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220edac95849db97d08c6582ec5e0df0c5a916c2705bafc6267371247c56e61a87f64736f6c634300080d0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564"}, "runtimeBytecode": {"bytecode": "0x60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101fc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b81526004016101159190610218565b60005b838110156101e75781810151838201526020016101cf565b838111156101f6576000848401525b50505050565b6000825161020e8184602087016101cc565b9190910192915050565b60208152600082518060208401526102378160408501602087016101cc565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220edac95849db97d08c6582ec5e0df0c5a916c2705bafc6267371247c56e61a87f64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "payable", "inputs": [{"name": "_logic", "type": "address", "internalType": "address"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}]}, {"type": "event", "name": "AdminChanged", "inputs": [{"name": "previousAdmin", "type": "address", "internalType": "address", "indexed": false}, {"name": "newAdmin", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "BeaconUpgraded", "inputs": [{"name": "beacon", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Upgraded", "inputs": [{"name": "implementation", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "fallback", "stateMutability": "payable"}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an implementation address that can be changed. This address is stored in storage in the location specified by https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the implementation behind the proxy.", "kind": "dev", "methods": {"constructor": {"details": "Initializes the upgradeable proxy with an initial implementation specified by `_logic`. If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded function call, and allows initializating the storage of the proxy like a Solidity constructor."}}, "version": 1}}, "ERC1967Upgrade": {"contractName": "ERC1967Upgrade", "sourceId": "proxy/ERC1967/ERC1967Upgrade.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "AdminChanged", "inputs": [{"name": "previousAdmin", "type": "address", "internalType": "address", "indexed": false}, {"name": "newAdmin", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "BeaconUpgraded", "inputs": [{"name": "beacon", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Upgraded", "inputs": [{"name": "implementation", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"custom:oz-upgrades-unsafe-allow": "delegatecall", "details": "This abstract contract provides getters and event emitting update functions for https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. _Available since v4.1._", "events": {"AdminChanged(address,address)": {"details": "Emitted when the admin account has changed."}, "BeaconUpgraded(address)": {"details": "Emitted when the beacon is upgraded."}, "Upgraded(address)": {"details": "Emitted when the implementation is upgraded."}}, "kind": "dev", "methods": {}, "stateVariables": {"_ADMIN_SLOT": {"details": "Storage slot with the admin of the contract. This is the keccak-256 hash of \"eip1967.proxy.admin\" subtracted by 1, and is validated in the constructor."}, "_BEACON_SLOT": {"details": "The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor."}, "_IMPLEMENTATION_SLOT": {"details": "Storage slot with the address of the current implementation. This is the keccak-256 hash of \"eip1967.proxy.implementation\" subtracted by 1, and is validated in the constructor."}}, "version": 1}}, "Proxy": {"contractName": "Proxy", "sourceId": "proxy/Proxy.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "fallback", "stateMutability": "payable"}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This abstract contract provides a fallback function that delegates all calls to another contract using the EVM instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to be specified by overriding the virtual {_implementation} function. Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a different contract through the {_delegate} function. The success and return data of the delegated call will be returned back to the caller of the proxy.", "kind": "dev", "methods": {}, "version": 1}}, "BeaconProxy": {"contractName": "BeaconProxy", "sourceId": "proxy/beacon/BeaconProxy.sol", "deploymentBytecode": {"bytecode": "0x608060405260405161096638038061096683398101604081905261002291610479565b61004d60017fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d51610539565b60008051602061091f833981519152146100695761006961055e565b6100758282600061007c565b50506105de565b61008583610147565b6040516001600160a01b038416907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e90600090a26000825111806100c65750805b1561014257610140836001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561010c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101309190610574565b836102d860201b6100291760201c565b505b505050565b61015a8161030460201b6100551760201c565b6101b95760405162461bcd60e51b815260206004820152602560248201527f455243313936373a206e657720626561636f6e206973206e6f74206120636f6e6044820152641d1c9858dd60da1b60648201526084015b60405180910390fd5b61022d816001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021e9190610574565b61030460201b6100551760201c565b6102925760405162461bcd60e51b815260206004820152603060248201527f455243313936373a20626561636f6e20696d706c656d656e746174696f6e206960448201526f1cc81b9bdd08184818dbdb9d1c9858dd60821b60648201526084016101b0565b806102b760008051602061091f83398151915260001b61030a60201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b60606102fd838360405180606001604052806027815260200161093f6027913961030d565b9392505050565b3b151590565b90565b6060833b61036c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016101b0565b600080856001600160a01b031685604051610387919061058f565b600060405180830381855af49150503d80600081146103c2576040519150601f19603f3d011682016040523d82523d6000602084013e6103c7565b606091505b5090925090506103d88282866103e2565b9695505050505050565b606083156103f15750816102fd565b8251156104015782518084602001fd5b8160405162461bcd60e51b81526004016101b091906105ab565b80516001600160a01b038116811461043257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015610468578181015183820152602001610450565b838111156101405750506000910152565b6000806040838503121561048c57600080fd5b6104958361041b565b60208401519092506001600160401b03808211156104b257600080fd5b818501915085601f8301126104c657600080fd5b8151818111156104d8576104d8610437565b604051601f8201601f19908116603f0116810190838211818310171561050057610500610437565b8160405282815288602084870101111561051957600080fd5b61052a83602083016020880161044d565b80955050505050509250929050565b60008282101561055957634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b60006020828403121561058657600080fd5b6102fd8261041b565b600082516105a181846020870161044d565b9190910192915050565b60208152600082518060208401526105ca81604085016020870161044d565b601f01601f19169190910160400192915050565b610332806105ed6000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b6100f7565b565b606061004e83836040518060600160405280602781526020016102d66027913961011b565b9392505050565b3b151590565b90565b60006100917fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50546001600160a01b031690565b6001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100f2919061022d565b905090565b3660008037600080366000845af43d6000803e808015610116573d6000f35b3d6000fd5b6060833b61017f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161019a9190610286565b600060405180830381855af49150503d80600081146101d5576040519150601f19603f3d011682016040523d82523d6000602084013e6101da565b606091505b50915091506101ea8282866101f4565b9695505050505050565b6060831561020357508161004e565b8251156102135782518084602001fd5b8160405162461bcd60e51b815260040161017691906102a2565b60006020828403121561023f57600080fd5b81516001600160a01b038116811461004e57600080fd5b60005b83811015610271578181015183820152602001610259565b83811115610280576000848401525b50505050565b60008251610298818460208701610256565b9190910192915050565b60208152600082518060208401526102c1816040850160208701610256565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b01d695cd9efd45bd13326a4fcd0c277f4af11801a245bc575f932655af76a2664736f6c634300080d0033a3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564"}, "runtimeBytecode": {"bytecode": "0x60806040523661001357610011610017565b005b6100115b61002761002261005e565b6100f7565b565b606061004e83836040518060600160405280602781526020016102d66027913961011b565b9392505050565b3b151590565b90565b60006100917fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50546001600160a01b031690565b6001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100f2919061022d565b905090565b3660008037600080366000845af43d6000803e808015610116573d6000f35b3d6000fd5b6060833b61017f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161019a9190610286565b600060405180830381855af49150503d80600081146101d5576040519150601f19603f3d011682016040523d82523d6000602084013e6101da565b606091505b50915091506101ea8282866101f4565b9695505050505050565b6060831561020357508161004e565b8251156102135782518084602001fd5b8160405162461bcd60e51b815260040161017691906102a2565b60006020828403121561023f57600080fd5b81516001600160a01b038116811461004e57600080fd5b60005b83811015610271578181015183820152602001610259565b83811115610280576000848401525b50505050565b60008251610298818460208701610256565b9190910192915050565b60208152600082518060208401526102c1816040850160208701610256565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b01d695cd9efd45bd13326a4fcd0c277f4af11801a245bc575f932655af76a2664736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "payable", "inputs": [{"name": "beacon", "type": "address", "internalType": "address"}, {"name": "data", "type": "bytes", "internalType": "bytes"}]}, {"type": "event", "name": "AdminChanged", "inputs": [{"name": "previousAdmin", "type": "address", "internalType": "address", "indexed": false}, {"name": "newAdmin", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "BeaconUpgraded", "inputs": [{"name": "beacon", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Upgraded", "inputs": [{"name": "implementation", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "fallback", "stateMutability": "payable"}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This contract implements a proxy that gets the implementation address for each call from a {UpgradeableBeacon}. The beacon address is stored in storage slot `uint256(keccak256('eip1967.proxy.beacon')) - 1`, so that it doesn't conflict with the storage layout of the implementation behind the proxy. _Available since v3.4._", "kind": "dev", "methods": {"constructor": {"details": "Initializes the proxy with `beacon`. If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. This will typically be an encoded function call, and allows initializating the storage of the proxy like a Solidity constructor. Requirements: - `beacon` must be a contract with the interface {IBeacon}."}}, "version": 1}}, "IBeacon": {"contractName": "IBeacon", "sourceId": "proxy/beacon/IBeacon.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "implementation", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This is the interface that {BeaconProxy} expects of its beacon.", "kind": "dev", "methods": {"implementation()": {"details": "Must return an address that can be used as a delegate call target. {BeaconProxy} will check that this address is a contract."}}, "version": 1}}, "UpgradeableBeacon": {"contractName": "UpgradeableBeacon", "sourceId": "proxy/beacon/UpgradeableBeacon.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5060405161050e38038061050e83398101604081905261002f91610148565b61003833610047565b61004181610097565b50610178565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6100aa8161014260201b61020a1760201c565b6101205760405162461bcd60e51b815260206004820152603360248201527f5570677261646561626c65426561636f6e3a20696d706c656d656e746174696f60448201527f6e206973206e6f74206120636f6e747261637400000000000000000000000000606482015260840160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b3b151590565b60006020828403121561015a57600080fd5b81516001600160a01b038116811461017157600080fd5b9392505050565b610387806101876000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80633659cfe61461005c5780635c60da1b14610071578063715018a61461009a5780638da5cb5b146100a2578063f2fde38b146100b3575b600080fd5b61006f61006a3660046102ec565b6100c6565b005b6001546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61006f610139565b6000546001600160a01b031661007e565b61006f6100c13660046102ec565b61016f565b6000546001600160a01b031633146100f95760405162461bcd60e51b81526004016100f09061031c565b60405180910390fd5b61010281610210565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6000546001600160a01b031633146101635760405162461bcd60e51b81526004016100f09061031c565b61016d600061029c565b565b6000546001600160a01b031633146101995760405162461bcd60e51b81526004016100f09061031c565b6001600160a01b0381166101fe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016100f0565b6102078161029c565b50565b3b151590565b803b61027a5760405162461bcd60e51b815260206004820152603360248201527f5570677261646561626c65426561636f6e3a20696d706c656d656e746174696f6044820152721b881a5cc81b9bdd08184818dbdb9d1c9858dd606a1b60648201526084016100f0565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156102fe57600080fd5b81356001600160a01b038116811461031557600080fd5b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea26469706673582212203f13d3411237fb8586957532708e25c09c77e20ab456c46ec7a07dafce518db364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c80633659cfe61461005c5780635c60da1b14610071578063715018a61461009a5780638da5cb5b146100a2578063f2fde38b146100b3575b600080fd5b61006f61006a3660046102ec565b6100c6565b005b6001546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61006f610139565b6000546001600160a01b031661007e565b61006f6100c13660046102ec565b61016f565b6000546001600160a01b031633146100f95760405162461bcd60e51b81526004016100f09061031c565b60405180910390fd5b61010281610210565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6000546001600160a01b031633146101635760405162461bcd60e51b81526004016100f09061031c565b61016d600061029c565b565b6000546001600160a01b031633146101995760405162461bcd60e51b81526004016100f09061031c565b6001600160a01b0381166101fe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016100f0565b6102078161029c565b50565b3b151590565b803b61027a5760405162461bcd60e51b815260206004820152603360248201527f5570677261646561626c65426561636f6e3a20696d706c656d656e746174696f6044820152721b881a5cc81b9bdd08184818dbdb9d1c9858dd606a1b60648201526084016100f0565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156102fe57600080fd5b81356001600160a01b038116811461031557600080fd5b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea26469706673582212203f13d3411237fb8586957532708e25c09c77e20ab456c46ec7a07dafce518db364736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "implementation_", "type": "address", "internalType": "address"}]}, {"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Upgraded", "inputs": [{"name": "implementation", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "implementation", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "upgradeTo", "stateMutability": "nonpayable", "inputs": [{"name": "newImplementation", "type": "address", "internalType": "address"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their implementation contract, which is where they will delegate all function calls. An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon.", "events": {"Upgraded(address)": {"details": "Emitted when the implementation returned by the beacon is changed."}}, "kind": "dev", "methods": {"constructor": {"details": "Sets the address of the initial implementation, and the deployer account as the owner who can upgrade the beacon."}, "implementation()": {"details": "Returns the current implementation address."}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}, "upgradeTo(address)": {"details": "Upgrades the beacon to a new implementation. Emits an {Upgraded} event. Requirements: - msg.sender must be the owner of the contract. - `newImplementation` must be a contract."}}, "version": 1}}, "ProxyAdmin": {"contractName": "ProxyAdmin", "sourceId": "proxy/transparent/ProxyAdmin.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6107238061007e6000396000f3fe60806040526004361061007b5760003560e01c80639623609d1161004e5780639623609d1461011157806399a88ec414610124578063f2fde38b14610144578063f3b7dead1461016457600080fd5b8063204e1c7a14610080578063715018a6146100bc5780637eff275e146100d35780638da5cb5b146100f3575b600080fd5b34801561008c57600080fd5b506100a061009b3660046104ed565b610184565b6040516001600160a01b03909116815260200160405180910390f35b3480156100c857600080fd5b506100d1610215565b005b3480156100df57600080fd5b506100d16100ee366004610511565b610254565b3480156100ff57600080fd5b506000546001600160a01b03166100a0565b6100d161011f366004610560565b6102de565b34801561013057600080fd5b506100d161013f366004610511565b61036f565b34801561015057600080fd5b506100d161015f3660046104ed565b6103c7565b34801561017057600080fd5b506100a061017f3660046104ed565b610462565b6000806000836001600160a01b03166040516101aa90635c60da1b60e01b815260040190565b600060405180830381855afa9150503d80600081146101e5576040519150601f19603f3d011682016040523d82523d6000602084013e6101ea565b606091505b5091509150816101f957600080fd5b8080602001905181019061020d9190610636565b949350505050565b6000546001600160a01b031633146102485760405162461bcd60e51b815260040161023f90610653565b60405180910390fd5b6102526000610488565b565b6000546001600160a01b0316331461027e5760405162461bcd60e51b815260040161023f90610653565b6040516308f2839760e41b81526001600160a01b038281166004830152831690638f283970906024015b600060405180830381600087803b1580156102c257600080fd5b505af11580156102d6573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146103085760405162461bcd60e51b815260040161023f90610653565b60405163278f794360e11b81526001600160a01b03841690634f1ef2869034906103389086908690600401610688565b6000604051808303818588803b15801561035157600080fd5b505af1158015610365573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031633146103995760405162461bcd60e51b815260040161023f90610653565b604051631b2ce7f360e11b81526001600160a01b038281166004830152831690633659cfe6906024016102a8565b6000546001600160a01b031633146103f15760405162461bcd60e51b815260040161023f90610653565b6001600160a01b0381166104565760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161023f565b61045f81610488565b50565b6000806000836001600160a01b03166040516101aa906303e1469160e61b815260040190565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461045f57600080fd5b6000602082840312156104ff57600080fd5b813561050a816104d8565b9392505050565b6000806040838503121561052457600080fd5b823561052f816104d8565b9150602083013561053f816104d8565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561057557600080fd5b8335610580816104d8565b92506020840135610590816104d8565b9150604084013567ffffffffffffffff808211156105ad57600080fd5b818601915086601f8301126105c157600080fd5b8135818111156105d3576105d361054a565b604051601f8201601f19908116603f011681019083821181831017156105fb576105fb61054a565b8160405282815289602084870101111561061457600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60006020828403121561064857600080fd5b815161050a816104d8565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60018060a01b038316815260006020604081840152835180604085015260005b818110156106c4578581018301518582016060015282016106a8565b818111156106d6576000606083870101525b50601f01601f19169290920160600194935050505056fea264697066735822122070e8d616be4282778ca2c0e34b4b138d8678bdf413e3f91739ee895f2698ad5c64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x60806040526004361061007b5760003560e01c80639623609d1161004e5780639623609d1461011157806399a88ec414610124578063f2fde38b14610144578063f3b7dead1461016457600080fd5b8063204e1c7a14610080578063715018a6146100bc5780637eff275e146100d35780638da5cb5b146100f3575b600080fd5b34801561008c57600080fd5b506100a061009b3660046104ed565b610184565b6040516001600160a01b03909116815260200160405180910390f35b3480156100c857600080fd5b506100d1610215565b005b3480156100df57600080fd5b506100d16100ee366004610511565b610254565b3480156100ff57600080fd5b506000546001600160a01b03166100a0565b6100d161011f366004610560565b6102de565b34801561013057600080fd5b506100d161013f366004610511565b61036f565b34801561015057600080fd5b506100d161015f3660046104ed565b6103c7565b34801561017057600080fd5b506100a061017f3660046104ed565b610462565b6000806000836001600160a01b03166040516101aa90635c60da1b60e01b815260040190565b600060405180830381855afa9150503d80600081146101e5576040519150601f19603f3d011682016040523d82523d6000602084013e6101ea565b606091505b5091509150816101f957600080fd5b8080602001905181019061020d9190610636565b949350505050565b6000546001600160a01b031633146102485760405162461bcd60e51b815260040161023f90610653565b60405180910390fd5b6102526000610488565b565b6000546001600160a01b0316331461027e5760405162461bcd60e51b815260040161023f90610653565b6040516308f2839760e41b81526001600160a01b038281166004830152831690638f283970906024015b600060405180830381600087803b1580156102c257600080fd5b505af11580156102d6573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146103085760405162461bcd60e51b815260040161023f90610653565b60405163278f794360e11b81526001600160a01b03841690634f1ef2869034906103389086908690600401610688565b6000604051808303818588803b15801561035157600080fd5b505af1158015610365573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031633146103995760405162461bcd60e51b815260040161023f90610653565b604051631b2ce7f360e11b81526001600160a01b038281166004830152831690633659cfe6906024016102a8565b6000546001600160a01b031633146103f15760405162461bcd60e51b815260040161023f90610653565b6001600160a01b0381166104565760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161023f565b61045f81610488565b50565b6000806000836001600160a01b03166040516101aa906303e1469160e61b815260040190565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461045f57600080fd5b6000602082840312156104ff57600080fd5b813561050a816104d8565b9392505050565b6000806040838503121561052457600080fd5b823561052f816104d8565b9150602083013561053f816104d8565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561057557600080fd5b8335610580816104d8565b92506020840135610590816104d8565b9150604084013567ffffffffffffffff808211156105ad57600080fd5b818601915086601f8301126105c157600080fd5b8135818111156105d3576105d361054a565b604051601f8201601f19908116603f011681019083821181831017156105fb576105fb61054a565b8160405282815289602084870101111561061457600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60006020828403121561064857600080fd5b815161050a816104d8565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60018060a01b038316815260006020604081840152835180604085015260005b818110156106c4578581018301518582016060015282016106a8565b818111156106d6576000606083870101525b50601f01601f19169290920160600194935050505056fea264697066735822122070e8d616be4282778ca2c0e34b4b138d8678bdf413e3f91739ee895f2698ad5c64736f6c634300080d0033"}, "abi": [{"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "changeProxyAdmin", "stateMutability": "nonpayable", "inputs": [{"name": "proxy", "type": "address", "internalType": "contract TransparentUpgradeableProxy"}, {"name": "newAdmin", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "getProxyAdmin", "stateMutability": "view", "inputs": [{"name": "proxy", "type": "address", "internalType": "contract TransparentUpgradeableProxy"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getProxyImplementation", "stateMutability": "view", "inputs": [{"name": "proxy", "type": "address", "internalType": "contract TransparentUpgradeableProxy"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "upgrade", "stateMutability": "nonpayable", "inputs": [{"name": "proxy", "type": "address", "internalType": "contract TransparentUpgradeableProxy"}, {"name": "implementation", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "upgradeAndCall", "stateMutability": "payable", "inputs": [{"name": "proxy", "type": "address", "internalType": "contract TransparentUpgradeableProxy"}, {"name": "implementation", "type": "address", "internalType": "address"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}.", "kind": "dev", "methods": {"changeProxyAdmin(address,address)": {"details": "Changes the admin of `proxy` to `newAdmin`. Requirements: - This contract must be the current admin of `proxy`."}, "getProxyAdmin(address)": {"details": "Returns the current admin of `proxy`. Requirements: - This contract must be the admin of `proxy`."}, "getProxyImplementation(address)": {"details": "Returns the current implementation of `proxy`. Requirements: - This contract must be the admin of `proxy`."}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}, "upgrade(address,address)": {"details": "Upgrades `proxy` to `implementation`. See {TransparentUpgradeableProxy-upgradeTo}. Requirements: - This contract must be the admin of `proxy`."}, "upgradeAndCall(address,address,bytes)": {"details": "Upgrades `proxy` to `implementation` and calls a function on the new implementation. See {TransparentUpgradeableProxy-upgradeToAndCall}. Requirements: - This contract must be the admin of `proxy`."}}, "version": 1}}, "TransparentUpgradeableProxy": {"contractName": "TransparentUpgradeableProxy", "sourceId": "proxy/transparent/TransparentUpgradeableProxy.sol", "deploymentBytecode": {"bytecode": "0x608060405260405162000efd38038062000efd833981016040819052620000269162000507565b82816200005560017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd620005e7565b60008051602062000eb6833981519152146200007557620000756200060d565b6200008382826000620000e7565b50620000b3905060017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6104620005e7565b60008051602062000e9683398151915214620000d357620000d36200060d565b620000de8262000124565b50505062000676565b620000f2836200017f565b600082511180620001005750805b156200011f576200011d8383620001c160201b6200022e1760201c565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6200014f620001f0565b604080516001600160a01b03928316815291841660208301520160405180910390a16200017c8162000229565b50565b6200018a81620002de565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001e9838360405180606001604052806027815260200162000ed66027913962000381565b9392505050565b60006200021a60008051602062000e9683398151915260001b6200045e60201b620001ea1760201c565b546001600160a01b0316919050565b6001600160a01b038116620002945760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b80620002bd60008051602062000e9683398151915260001b6200045e60201b620001ea1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b620002f4816200046160201b6200025a1760201c565b620003585760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200028b565b80620002bd60008051602062000eb683398151915260001b6200045e60201b620001ea1760201c565b6060833b620003e25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200028b565b600080856001600160a01b031685604051620003ff919062000623565b600060405180830381855af49150503d80600081146200043c576040519150601f19603f3d011682016040523d82523d6000602084013e62000441565b606091505b5090925090506200045482828662000467565b9695505050505050565b90565b3b151590565b6060831562000478575081620001e9565b825115620004895782518084602001fd5b8160405162461bcd60e51b81526004016200028b919062000641565b80516001600160a01b0381168114620004bd57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004f5578181015183820152602001620004db565b838111156200011d5750506000910152565b6000806000606084860312156200051d57600080fd5b6200052884620004a5565b92506200053860208501620004a5565b60408501519092506001600160401b03808211156200055657600080fd5b818601915086601f8301126200056b57600080fd5b815181811115620005805762000580620004c2565b604051601f8201601f19908116603f01168101908382118183101715620005ab57620005ab620004c2565b81604052828152896020848701011115620005c557600080fd5b620005d8836020830160208801620004d8565b80955050505050509250925092565b6000828210156200060857634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825162000637818460208701620004d8565b9190910192915050565b602081526000825180602084015262000662816040850160208701620004d8565b601f01601f19169190910160400192915050565b61081080620006866000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100855780635c60da1b146100985780638f283970146100c9578063f851a440146100e95761005d565b3661005d5761005b6100fe565b005b61005b6100fe565b34801561007157600080fd5b5061005b61008036600461069a565b610118565b61005b6100933660046106b5565b610155565b3480156100a457600080fd5b506100ad6101bc565b6040516001600160a01b03909116815260200160405180910390f35b3480156100d557600080fd5b5061005b6100e436600461069a565b6101ed565b3480156100f557600080fd5b506100ad61020d565b610106610260565b6101166101116102f5565b6102ff565b565b610120610323565b6001600160a01b0316330361014d5761014a81604051806020016040528060008152506000610356565b50565b61014a6100fe565b61015d610323565b6001600160a01b031633036101b4576101af8383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250610356915050565b505050565b6101af6100fe565b60006101c6610323565b6001600160a01b031633036101e2576101dd6102f5565b905090565b6101ea6100fe565b90565b6101f5610323565b6001600160a01b0316330361014d5761014a81610381565b6000610217610323565b6001600160a01b031633036101e2576101dd610323565b606061025383836040518060600160405280602781526020016107b4602791396103d5565b9392505050565b3b151590565b610268610323565b6001600160a01b031633036101165760405162461bcd60e51b815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267606482015261195d60f21b608482015260a4015b60405180910390fd5b60006101dd6104a9565b3660008037600080366000845af43d6000803e80801561031e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b546001600160a01b0316919050565b61035f836104d1565b60008251118061036c5750805b156101af5761037b838361022e565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103aa610323565b604080516001600160a01b03928316815291841660208301520160405180910390a161014a81610511565b6060833b6104345760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016102ec565b600080856001600160a01b03168560405161044f9190610764565b600060405180830381855af49150503d806000811461048a576040519150601f19603f3d011682016040523d82523d6000602084013e61048f565b606091505b509150915061049f8282866105ba565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610347565b6104da816105f3565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6001600160a01b0381166105765760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084016102ec565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80546001600160a01b0319166001600160a01b039290921691909117905550565b606083156105c9575081610253565b8251156105d95782518084602001fd5b8160405162461bcd60e51b81526004016102ec9190610780565b803b6106575760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016102ec565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610599565b80356001600160a01b038116811461069557600080fd5b919050565b6000602082840312156106ac57600080fd5b6102538261067e565b6000806000604084860312156106ca57600080fd5b6106d38461067e565b9250602084013567ffffffffffffffff808211156106f057600080fd5b818601915086601f83011261070457600080fd5b81358181111561071357600080fd5b87602082850101111561072557600080fd5b6020830194508093505050509250925092565b60005b8381101561075357818101518382015260200161073b565b8381111561037b5750506000910152565b60008251610776818460208701610738565b9190910192915050565b602081526000825180602084015261079f816040850160208701610738565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220d139530637f07659312f580e7f105841d994a19b5514f9b5ab47158d194eeafd64736f6c634300080d0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564"}, "runtimeBytecode": {"bytecode": "0x60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100855780635c60da1b146100985780638f283970146100c9578063f851a440146100e95761005d565b3661005d5761005b6100fe565b005b61005b6100fe565b34801561007157600080fd5b5061005b61008036600461069a565b610118565b61005b6100933660046106b5565b610155565b3480156100a457600080fd5b506100ad6101bc565b6040516001600160a01b03909116815260200160405180910390f35b3480156100d557600080fd5b5061005b6100e436600461069a565b6101ed565b3480156100f557600080fd5b506100ad61020d565b610106610260565b6101166101116102f5565b6102ff565b565b610120610323565b6001600160a01b0316330361014d5761014a81604051806020016040528060008152506000610356565b50565b61014a6100fe565b61015d610323565b6001600160a01b031633036101b4576101af8383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250610356915050565b505050565b6101af6100fe565b60006101c6610323565b6001600160a01b031633036101e2576101dd6102f5565b905090565b6101ea6100fe565b90565b6101f5610323565b6001600160a01b0316330361014d5761014a81610381565b6000610217610323565b6001600160a01b031633036101e2576101dd610323565b606061025383836040518060600160405280602781526020016107b4602791396103d5565b9392505050565b3b151590565b610268610323565b6001600160a01b031633036101165760405162461bcd60e51b815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267606482015261195d60f21b608482015260a4015b60405180910390fd5b60006101dd6104a9565b3660008037600080366000845af43d6000803e80801561031e573d6000f35b3d6000fd5b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b546001600160a01b0316919050565b61035f836104d1565b60008251118061036c5750805b156101af5761037b838361022e565b50505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103aa610323565b604080516001600160a01b03928316815291841660208301520160405180910390a161014a81610511565b6060833b6104345760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016102ec565b600080856001600160a01b03168560405161044f9190610764565b600060405180830381855af49150503d806000811461048a576040519150601f19603f3d011682016040523d82523d6000602084013e61048f565b606091505b509150915061049f8282866105ba565b9695505050505050565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610347565b6104da816105f3565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6001600160a01b0381166105765760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b60648201526084016102ec565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80546001600160a01b0319166001600160a01b039290921691909117905550565b606083156105c9575081610253565b8251156105d95782518084602001fd5b8160405162461bcd60e51b81526004016102ec9190610780565b803b6106575760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016102ec565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610599565b80356001600160a01b038116811461069557600080fd5b919050565b6000602082840312156106ac57600080fd5b6102538261067e565b6000806000604084860312156106ca57600080fd5b6106d38461067e565b9250602084013567ffffffffffffffff808211156106f057600080fd5b818601915086601f83011261070457600080fd5b81358181111561071357600080fd5b87602082850101111561072557600080fd5b6020830194508093505050509250925092565b60005b8381101561075357818101518382015260200161073b565b8381111561037b5750506000910152565b60008251610776818460208701610738565b9190910192915050565b602081526000825180602084015261079f816040850160208701610738565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220d139530637f07659312f580e7f105841d994a19b5514f9b5ab47158d194eeafd64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "payable", "inputs": [{"name": "_logic", "type": "address", "internalType": "address"}, {"name": "admin_", "type": "address", "internalType": "address"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}]}, {"type": "event", "name": "AdminChanged", "inputs": [{"name": "previousAdmin", "type": "address", "internalType": "address", "indexed": false}, {"name": "newAdmin", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "BeaconUpgraded", "inputs": [{"name": "beacon", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Upgraded", "inputs": [{"name": "implementation", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "fallback", "stateMutability": "payable"}, {"type": "function", "name": "admin", "stateMutability": "nonpayable", "inputs": [], "outputs": [{"name": "admin_", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "changeAdmin", "stateMutability": "nonpayable", "inputs": [{"name": "newAdmin", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "implementation", "stateMutability": "nonpayable", "inputs": [], "outputs": [{"name": "implementation_", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "upgradeTo", "stateMutability": "nonpayable", "inputs": [{"name": "newImplementation", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "upgradeToAndCall", "stateMutability": "payable", "inputs": [{"name": "newImplementation", "type": "address", "internalType": "address"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "receive", "stateMutability": "payable"}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.", "kind": "dev", "methods": {"admin()": {"details": "Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`"}, "changeAdmin(address)": {"details": "Changes the admin of the proxy. Emits an {AdminChanged} event. NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}."}, "constructor": {"details": "Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}."}, "implementation()": {"details": "Returns the current implementation. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`"}, "upgradeTo(address)": {"details": "Upgrade the implementation of the proxy. NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}."}, "upgradeToAndCall(address,bytes)": {"details": "Upgrade the implementation of the proxy, and then call a function from the new implementation as specified by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the proxied contract. NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}."}}, "version": 1}}, "Initializable": {"contractName": "Initializable", "sourceId": "proxy/utils/Initializable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"custom:oz-upgrades-unsafe-allow": "constructor constructor() initializer {} ``` ====", "details": "This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. [CAUTION] ==== Avoid leaving a contract uninitialized. An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: [.hljs-theme-light.nopadding] ```", "kind": "dev", "methods": {}, "stateVariables": {"_initialized": {"details": "Indicates that the contract has been initialized."}, "_initializing": {"details": "Indicates that the contract is in the process of being initialized."}}, "version": 1}}, "UUPSUpgradeable": {"contractName": "UUPSUpgradeable", "sourceId": "proxy/utils/UUPSUpgradeable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "AdminChanged", "inputs": [{"name": "previousAdmin", "type": "address", "internalType": "address", "indexed": false}, {"name": "newAdmin", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "BeaconUpgraded", "inputs": [{"name": "beacon", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Upgraded", "inputs": [{"name": "implementation", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "upgradeTo", "stateMutability": "nonpayable", "inputs": [{"name": "newImplementation", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "upgradeToAndCall", "stateMutability": "payable", "inputs": [{"name": "newImplementation", "type": "address", "internalType": "address"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing `UUPSUpgradeable` with a custom implementation of upgrades. The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. _Available since v4.1._", "kind": "dev", "methods": {"upgradeTo(address)": {"details": "Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."}, "upgradeToAndCall(address,bytes)": {"details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."}}, "stateVariables": {"__self": {"custom:oz-upgrades-unsafe-allow": "state-variable-immutable state-variable-assignment"}}, "version": 1}}, "Pausable": {"contractName": "Pausable", "sourceId": "security/Pausable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Contract module which allows children to implement an emergency stop mechanism that can be triggered by an authorized account. This module is used through inheritance. It will make available the modifiers `whenNotPaused` and `whenPaused`, which can be applied to the functions of your contract. Note that they will not be pausable by simply including this module, only once the modifiers are put in place.", "events": {"Paused(address)": {"details": "Emitted when the pause is triggered by `account`."}, "Unpaused(address)": {"details": "Emitted when the pause is lifted by `account`."}}, "kind": "dev", "methods": {"constructor": {"details": "Initializes the contract in unpaused state."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}}, "version": 1}}, "PullPayment": {"contractName": "PullPayment", "sourceId": "security/PullPayment.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "payments", "stateMutability": "view", "inputs": [{"name": "dest", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "withdrawPayments", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address payable"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Simple implementation of a https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment] strategy, where the paying contract doesn't interact directly with the receiver account, which must withdraw its payments itself. Pull-payments are often considered the best practice when it comes to sending Ether, security-wise. It prevents recipients from blocking execution, and eliminates reentrancy concerns. TIP: If you would like to learn more about reentrancy and alternative ways to protect against it, check out our blog post https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. To use, derive from the `PullPayment` contract, and use {_asyncTransfer} instead of Solidity's `transfer` function. Payees can query their due payments with {payments}, and retrieve them with {withdrawPayments}.", "kind": "dev", "methods": {"payments(address)": {"details": "Returns the payments owed to an address.", "params": {"dest": "The creditor's address."}}, "withdrawPayments(address)": {"details": "Withdraw accumulated payments, forwarding all gas to the recipient. Note that _any_ account can call this function, not just the `payee`. This means that contracts unaware of the `PullPayment` protocol can still receive funds this way, by having a separate account call {withdrawPayments}. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.", "params": {"payee": "Whose payments will be withdrawn."}}}, "version": 1}}, "ReentrancyGuard": {"contractName": "ReentrancyGuard", "sourceId": "security/ReentrancyGuard.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Contract module that helps prevent reentrant calls to a function. Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier available, which can be applied to functions to make sure there are no nested (reentrant) calls to them. Note that because there is a single `nonReentrant` guard, functions marked as `nonReentrant` may not call one another. This can be worked around by making those functions `private`, and then adding `external` `nonReentrant` entry points to them. TIP: If you would like to learn more about reentrancy and alternative ways to protect against it, check out our blog post https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].", "kind": "dev", "methods": {}, "version": 1}}, "ERC1155": {"contractName": "ERC1155", "sourceId": "token/ERC1155/ERC1155.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b50604051620015fe380380620015fe83398101604081905262000034916200011b565b6200003f8162000046565b5062000233565b80516200005b9060029060208401906200005f565b5050565b8280546200006d90620001f7565b90600052602060002090601f016020900481019282620000915760008555620000dc565b82601f10620000ac57805160ff1916838001178555620000dc565b82800160010185558215620000dc579182015b82811115620000dc578251825591602001919060010190620000bf565b50620000ea929150620000ee565b5090565b5b80821115620000ea5760008155600101620000ef565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200012f57600080fd5b82516001600160401b03808211156200014757600080fd5b818501915085601f8301126200015c57600080fd5b81518181111562000171576200017162000105565b604051601f8201601f19908116603f011681019083821181831017156200019c576200019c62000105565b816040528281528886848701011115620001b557600080fd5b600093505b82841015620001d95784840186015181850187015292850192620001ba565b82841115620001eb5760008684830101525b98975050505050505050565b600181811c908216806200020c57607f821691505b6020821081036200022d57634e487b7160e01b600052602260045260246000fd5b50919050565b6113bb80620002436000396000f3fe608060405234801561001057600080fd5b50600436106100875760003560e01c80634e1273f41161005b5780634e1273f41461010a578063a22cb4651461012a578063e985e9c51461013d578063f242432a1461017957600080fd5b8062fdd58e1461008c57806301ffc9a7146100b25780630e89341c146100d55780632eb2c2d6146100f5575b600080fd5b61009f61009a366004610bc0565b61018c565b6040519081526020015b60405180910390f35b6100c56100c0366004610c03565b610223565b60405190151581526020016100a9565b6100e86100e3366004610c27565b610275565b6040516100a99190610c8d565b610108610103366004610dec565b610309565b005b61011d610118366004610e96565b6103a0565b6040516100a99190610f9c565b610108610138366004610faf565b6104ca565b6100c561014b366004610feb565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61010861018736600461101e565b6104d9565b60006001600160a01b0383166101fd5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061025457506001600160e01b031982166303a24d0760e21b145b8061026f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461028490611083565b80601f01602080910402602001604051908101604052809291908181526020018280546102b090611083565b80156102fd5780601f106102d2576101008083540402835291602001916102fd565b820191906000526020600020905b8154815290600101906020018083116102e057829003601f168201915b50505050509050919050565b6001600160a01b0385163314806103255750610325853361014b565b61038c5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016101f4565b6103998585858585610560565b5050505050565b606081518351146104055760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016101f4565b6000835167ffffffffffffffff81111561042157610421610ca0565b60405190808252806020026020018201604052801561044a578160200160208202803683370190505b50905060005b84518110156104c25761049585828151811061046e5761046e6110bd565b6020026020010151858381518110610488576104886110bd565b602002602001015161018c565b8282815181106104a7576104a76110bd565b60209081029190910101526104bb816110e9565b9050610450565b509392505050565b6104d533838361073d565b5050565b6001600160a01b0385163314806104f557506104f5853361014b565b6105535760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016101f4565b610399858585858561081d565b81518351146105c25760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016101f4565b6001600160a01b0384166105e85760405162461bcd60e51b81526004016101f490611102565b3360005b84518110156106cf576000858281518110610609576106096110bd565b602002602001015190506000858381518110610627576106276110bd565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156106775760405162461bcd60e51b81526004016101f490611147565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906106b4908490611191565b92505081905550505050806106c8906110e9565b90506105ec565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161071f9291906111a9565b60405180910390a4610735818787878787610943565b505050505050565b816001600160a01b0316836001600160a01b0316036107b05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016101f4565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166108435760405162461bcd60e51b81526004016101f490611102565b3361085c81878761085388610a9e565b61039988610a9e565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561089d5760405162461bcd60e51b81526004016101f490611147565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906108da908490611191565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461093a828888888888610ae9565b50505050505050565b6001600160a01b0384163b156107355760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061098790899089908890889088906004016111d7565b6020604051808303816000875af19250505080156109c2575060408051601f3d908101601f191682019092526109bf91810190611235565b60015b610a6e576109ce611252565b806308c379a003610a0757506109e261126e565b806109ed5750610a09565b8060405162461bcd60e51b81526004016101f49190610c8d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016101f4565b6001600160e01b0319811663bc197c8160e01b1461093a5760405162461bcd60e51b81526004016101f4906112f8565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110610ad857610ad86110bd565b602090810291909101015292915050565b6001600160a01b0384163b156107355760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190610b2d9089908990889088908890600401611340565b6020604051808303816000875af1925050508015610b68575060408051601f3d908101601f19168201909252610b6591810190611235565b60015b610b74576109ce611252565b6001600160e01b0319811663f23a6e6160e01b1461093a5760405162461bcd60e51b81526004016101f4906112f8565b80356001600160a01b0381168114610bbb57600080fd5b919050565b60008060408385031215610bd357600080fd5b610bdc83610ba4565b946020939093013593505050565b6001600160e01b031981168114610c0057600080fd5b50565b600060208284031215610c1557600080fd5b8135610c2081610bea565b9392505050565b600060208284031215610c3957600080fd5b5035919050565b6000815180845260005b81811015610c6657602081850181015186830182015201610c4a565b81811115610c78576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610c206020830184610c40565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715610cdc57610cdc610ca0565b6040525050565b600067ffffffffffffffff821115610cfd57610cfd610ca0565b5060051b60200190565b600082601f830112610d1857600080fd5b81356020610d2582610ce3565b604051610d328282610cb6565b83815260059390931b8501820192828101915086841115610d5257600080fd5b8286015b84811015610d6d5780358352918301918301610d56565b509695505050505050565b600082601f830112610d8957600080fd5b813567ffffffffffffffff811115610da357610da3610ca0565b604051610dba601f8301601f191660200182610cb6565b818152846020838601011115610dcf57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215610e0457600080fd5b610e0d86610ba4565b9450610e1b60208701610ba4565b9350604086013567ffffffffffffffff80821115610e3857600080fd5b610e4489838a01610d07565b94506060880135915080821115610e5a57600080fd5b610e6689838a01610d07565b93506080880135915080821115610e7c57600080fd5b50610e8988828901610d78565b9150509295509295909350565b60008060408385031215610ea957600080fd5b823567ffffffffffffffff80821115610ec157600080fd5b818501915085601f830112610ed557600080fd5b81356020610ee282610ce3565b604051610eef8282610cb6565b83815260059390931b8501820192828101915089841115610f0f57600080fd5b948201945b83861015610f3457610f2586610ba4565b82529482019490820190610f14565b96505086013592505080821115610f4a57600080fd5b50610f5785828601610d07565b9150509250929050565b600081518084526020808501945080840160005b83811015610f9157815187529582019590820190600101610f75565b509495945050505050565b602081526000610c206020830184610f61565b60008060408385031215610fc257600080fd5b610fcb83610ba4565b915060208301358015158114610fe057600080fd5b809150509250929050565b60008060408385031215610ffe57600080fd5b61100783610ba4565b915061101560208401610ba4565b90509250929050565b600080600080600060a0868803121561103657600080fd5b61103f86610ba4565b945061104d60208701610ba4565b93506040860135925060608601359150608086013567ffffffffffffffff81111561107757600080fd5b610e8988828901610d78565b600181811c9082168061109757607f821691505b6020821081036110b757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016110fb576110fb6110d3565b5060010190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b600082198211156111a4576111a46110d3565b500190565b6040815260006111bc6040830185610f61565b82810360208401526111ce8185610f61565b95945050505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061120390830186610f61565b82810360608401526112158186610f61565b905082810360808401526112298185610c40565b98975050505050505050565b60006020828403121561124757600080fd5b8151610c2081610bea565b600060033d111561126b5760046000803e5060005160e01c5b90565b600060443d101561127c5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156112ac57505050505090565b82850191508151818111156112c45750505050505090565b843d87010160208285010111156112de5750505050505090565b6112ed60208286010187610cb6565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061137a90830184610c40565b97965050505050505056fea264697066735822122058e9ff8bbf78b128ac11f710e4a18e8b8edfee4aa220a547431234cb5569599764736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100875760003560e01c80634e1273f41161005b5780634e1273f41461010a578063a22cb4651461012a578063e985e9c51461013d578063f242432a1461017957600080fd5b8062fdd58e1461008c57806301ffc9a7146100b25780630e89341c146100d55780632eb2c2d6146100f5575b600080fd5b61009f61009a366004610bc0565b61018c565b6040519081526020015b60405180910390f35b6100c56100c0366004610c03565b610223565b60405190151581526020016100a9565b6100e86100e3366004610c27565b610275565b6040516100a99190610c8d565b610108610103366004610dec565b610309565b005b61011d610118366004610e96565b6103a0565b6040516100a99190610f9c565b610108610138366004610faf565b6104ca565b6100c561014b366004610feb565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61010861018736600461101e565b6104d9565b60006001600160a01b0383166101fd5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061025457506001600160e01b031982166303a24d0760e21b145b8061026f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461028490611083565b80601f01602080910402602001604051908101604052809291908181526020018280546102b090611083565b80156102fd5780601f106102d2576101008083540402835291602001916102fd565b820191906000526020600020905b8154815290600101906020018083116102e057829003601f168201915b50505050509050919050565b6001600160a01b0385163314806103255750610325853361014b565b61038c5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016101f4565b6103998585858585610560565b5050505050565b606081518351146104055760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016101f4565b6000835167ffffffffffffffff81111561042157610421610ca0565b60405190808252806020026020018201604052801561044a578160200160208202803683370190505b50905060005b84518110156104c25761049585828151811061046e5761046e6110bd565b6020026020010151858381518110610488576104886110bd565b602002602001015161018c565b8282815181106104a7576104a76110bd565b60209081029190910101526104bb816110e9565b9050610450565b509392505050565b6104d533838361073d565b5050565b6001600160a01b0385163314806104f557506104f5853361014b565b6105535760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016101f4565b610399858585858561081d565b81518351146105c25760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016101f4565b6001600160a01b0384166105e85760405162461bcd60e51b81526004016101f490611102565b3360005b84518110156106cf576000858281518110610609576106096110bd565b602002602001015190506000858381518110610627576106276110bd565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156106775760405162461bcd60e51b81526004016101f490611147565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906106b4908490611191565b92505081905550505050806106c8906110e9565b90506105ec565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161071f9291906111a9565b60405180910390a4610735818787878787610943565b505050505050565b816001600160a01b0316836001600160a01b0316036107b05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016101f4565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166108435760405162461bcd60e51b81526004016101f490611102565b3361085c81878761085388610a9e565b61039988610a9e565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561089d5760405162461bcd60e51b81526004016101f490611147565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906108da908490611191565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461093a828888888888610ae9565b50505050505050565b6001600160a01b0384163b156107355760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061098790899089908890889088906004016111d7565b6020604051808303816000875af19250505080156109c2575060408051601f3d908101601f191682019092526109bf91810190611235565b60015b610a6e576109ce611252565b806308c379a003610a0757506109e261126e565b806109ed5750610a09565b8060405162461bcd60e51b81526004016101f49190610c8d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016101f4565b6001600160e01b0319811663bc197c8160e01b1461093a5760405162461bcd60e51b81526004016101f4906112f8565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110610ad857610ad86110bd565b602090810291909101015292915050565b6001600160a01b0384163b156107355760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190610b2d9089908990889088908890600401611340565b6020604051808303816000875af1925050508015610b68575060408051601f3d908101601f19168201909252610b6591810190611235565b60015b610b74576109ce611252565b6001600160e01b0319811663f23a6e6160e01b1461093a5760405162461bcd60e51b81526004016101f4906112f8565b80356001600160a01b0381168114610bbb57600080fd5b919050565b60008060408385031215610bd357600080fd5b610bdc83610ba4565b946020939093013593505050565b6001600160e01b031981168114610c0057600080fd5b50565b600060208284031215610c1557600080fd5b8135610c2081610bea565b9392505050565b600060208284031215610c3957600080fd5b5035919050565b6000815180845260005b81811015610c6657602081850181015186830182015201610c4a565b81811115610c78576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610c206020830184610c40565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715610cdc57610cdc610ca0565b6040525050565b600067ffffffffffffffff821115610cfd57610cfd610ca0565b5060051b60200190565b600082601f830112610d1857600080fd5b81356020610d2582610ce3565b604051610d328282610cb6565b83815260059390931b8501820192828101915086841115610d5257600080fd5b8286015b84811015610d6d5780358352918301918301610d56565b509695505050505050565b600082601f830112610d8957600080fd5b813567ffffffffffffffff811115610da357610da3610ca0565b604051610dba601f8301601f191660200182610cb6565b818152846020838601011115610dcf57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215610e0457600080fd5b610e0d86610ba4565b9450610e1b60208701610ba4565b9350604086013567ffffffffffffffff80821115610e3857600080fd5b610e4489838a01610d07565b94506060880135915080821115610e5a57600080fd5b610e6689838a01610d07565b93506080880135915080821115610e7c57600080fd5b50610e8988828901610d78565b9150509295509295909350565b60008060408385031215610ea957600080fd5b823567ffffffffffffffff80821115610ec157600080fd5b818501915085601f830112610ed557600080fd5b81356020610ee282610ce3565b604051610eef8282610cb6565b83815260059390931b8501820192828101915089841115610f0f57600080fd5b948201945b83861015610f3457610f2586610ba4565b82529482019490820190610f14565b96505086013592505080821115610f4a57600080fd5b50610f5785828601610d07565b9150509250929050565b600081518084526020808501945080840160005b83811015610f9157815187529582019590820190600101610f75565b509495945050505050565b602081526000610c206020830184610f61565b60008060408385031215610fc257600080fd5b610fcb83610ba4565b915060208301358015158114610fe057600080fd5b809150509250929050565b60008060408385031215610ffe57600080fd5b61100783610ba4565b915061101560208401610ba4565b90509250929050565b600080600080600060a0868803121561103657600080fd5b61103f86610ba4565b945061104d60208701610ba4565b93506040860135925060608601359150608086013567ffffffffffffffff81111561107757600080fd5b610e8988828901610d78565b600181811c9082168061109757607f821691505b6020821081036110b757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016110fb576110fb6110d3565b5060010190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b600082198211156111a4576111a46110d3565b500190565b6040815260006111bc6040830185610f61565b82810360208401526111ce8185610f61565b95945050505050565b6001600160a01b0386811682528516602082015260a06040820181905260009061120390830186610f61565b82810360608401526112158186610f61565b905082810360808401526112298185610c40565b98975050505050505050565b60006020828403121561124757600080fd5b8151610c2081610bea565b600060033d111561126b5760046000803e5060005160e01c5b90565b600060443d101561127c5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156112ac57505050505090565b82850191508151818111156112c45750505050505090565b843d87010160208285010111156112de5750505050505090565b6112ed60208286010187610cb6565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061137a90830184610c40565b97965050505050505056fea264697066735822122058e9ff8bbf78b128ac11f710e4a18e8b8edfee4aa220a547431234cb5569599764736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "uri_", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of the basic standard multi-token. See https://eips.ethereum.org/EIPS/eip-1155 Originally based on code by Enjin: https://github.com/enjin/erc-1155 _Available since v3.1._", "kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "constructor": {"details": "See {_setURI}."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "IERC1155": {"contractName": "IERC1155", "sourceId": "token/ERC1155/IERC1155.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Required interface of an ERC1155 compliant contract, as defined in the https://eips.ethereum.org/EIPS/eip-1155[EIP]. _Available since v3.1._", "events": {"ApprovalForAll(address,address,bool)": {"details": "Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to `approved`."}, "TransferBatch(address,address,address,uint256[],uint256[])": {"details": "Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all transfers."}, "TransferSingle(address,address,address,uint256,uint256)": {"details": "Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`."}, "URI(string,uint256)": {"details": "Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. If an {URI} event was emitted for `id`, the standard https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value returned by {IERC1155MetadataURI-uri}."}}, "kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. Emits a {TransferBatch} event. Requirements: - `ids` and `amounts` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "Transfers `amount` tokens of token type `id` from `from` to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `amount`. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value."}, "setApprovalForAll(address,bool)": {"details": "Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller."}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}}, "version": 1}}, "IERC1155Receiver": {"contractName": "IERC1155Receiver", "sourceId": "token/ERC1155/IERC1155Receiver.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "onERC1155BatchReceived", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "onERC1155Received", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "_Available since v3.1._", "kind": "dev", "methods": {"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": {"details": "Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` (i.e. 0xbc197c81, or its own function selector).", "params": {"data": "Additional data with no specified format", "from": "The address which previously owned the token", "ids": "An array containing ids of each token being transferred (order and length must match values array)", "operator": "The address which initiated the batch transfer (i.e. msg.sender)", "values": "An array containing amounts of each token being transferred (order and length must match ids array)"}, "returns": {"_0": "`bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed"}}, "onERC1155Received(address,address,uint256,uint256,bytes)": {"details": "Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` (i.e. 0xf23a6e61, or its own function selector).", "params": {"data": "Additional data with no specified format", "from": "The address which previously owned the token", "id": "The ID of the token being transferred", "operator": "The address which initiated the transfer (i.e. msg.sender)", "value": "The amount of tokens being transferred"}, "returns": {"_0": "`bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed"}}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}}, "version": 1}}, "ERC1155Burnable": {"contractName": "ERC1155Burnable", "sourceId": "token/ERC1155/extensions/ERC1155Burnable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnBatch", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Extension of {ERC1155} that allows token holders to destroy both their own tokens and those that they have been approved to use. _Available since v3.1._", "kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "ERC1155Pausable": {"contractName": "ERC1155Pausable", "sourceId": "token/ERC1155/extensions/ERC1155Pausable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "ERC1155 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug. _Available since v3.1._", "kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "ERC1155Supply": {"contractName": "ERC1155Supply", "sourceId": "token/ERC1155/extensions/ERC1155Supply.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "exists", "stateMutability": "view", "inputs": [{"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [{"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Extension of ERC1155 that adds tracking of total supply per id. Useful for scenarios where Fungible and Non-fungible tokens have to be clearly identified. Note: While a totalSupply of 1 might mean the corresponding is an NFT, there is no guarantees that no other token with the same id are not going to be minted.", "kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "exists(uint256)": {"details": "Indicates whether any token exist with a given id, or not."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "totalSupply(uint256)": {"details": "Total amount of tokens in with a given id."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "IERC1155MetadataURI": {"contractName": "IERC1155MetadataURI", "sourceId": "token/ERC1155/extensions/IERC1155MetadataURI.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the optional ERC1155MetadataExtension interface, as defined in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. _Available since v3.1._", "kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length."}, "isApprovedForAll(address,address)": {"details": "Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. Emits a {TransferBatch} event. Requirements: - `ids` and `amounts` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "Transfers `amount` tokens of token type `id` from `from` to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `amount`. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value."}, "setApprovalForAll(address,bool)": {"details": "Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller."}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}, "uri(uint256)": {"details": "Returns the URI for token type `id`. If the `\\{id\\}` substring is present in the URI, it must be replaced by clients with the actual token type ID."}}, "version": 1}}, "ERC1155PresetMinterPauser": {"contractName": "ERC1155PresetMinterPauser", "sourceId": "token/ERC1155/presets/ERC1155PresetMinterPauser.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162002d3638038062002d368339810160408190526200003491620002e7565b806200004081620000b7565b506005805460ff1916905562000058600033620000d0565b620000847f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620000d0565b620000b07f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620000d0565b50620003ff565b8051620000cc9060049060208401906200022b565b5050565b620000cc8282620000ed82826200011960201b62000ad51760201c565b60008281526001602090815260409091206200011491839062000b59620001b9821b17901c565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000cc576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001753390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620001d0836001600160a01b038416620001d9565b90505b92915050565b60008181526001830160205260408120546200022257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620001d3565b506000620001d3565b8280546200023990620003c3565b90600052602060002090601f0160209004810192826200025d5760008555620002a8565b82601f106200027857805160ff1916838001178555620002a8565b82800160010185558215620002a8579182015b82811115620002a85782518255916020019190600101906200028b565b50620002b6929150620002ba565b5090565b5b80821115620002b65760008155600101620002bb565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620002fb57600080fd5b82516001600160401b03808211156200031357600080fd5b818501915085601f8301126200032857600080fd5b8151818111156200033d576200033d620002d1565b604051601f8201601f19908116603f01168101908382118183101715620003685762000368620002d1565b8160405282815288868487010111156200038157600080fd5b600093505b82841015620003a5578484018601518185018701529285019262000386565b82841115620003b75760008684830101525b98975050505050505050565b600181811c90821680620003d857607f821691505b602082108103620003f957634e487b7160e01b600052602260045260246000fd5b50919050565b612927806200040f6000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c8063731133e9116100de578063ca15c87311610097578063e63ab1e911610071578063e63ab1e914610358578063e985e9c51461037f578063f242432a146103bb578063f5298aca146103ce57600080fd5b8063ca15c8731461030b578063d53913931461031e578063d547741f1461034557600080fd5b8063731133e9146102975780638456cb59146102aa5780639010d07c146102b257806391d14854146102dd578063a217fddf146102f0578063a22cb465146102f857600080fd5b80632f2ff15d116101305780632f2ff15d1461022b57806336568abe1461023e5780633f4ba83a146102515780634e1273f4146102595780635c975abb146102795780636b20c4541461028457600080fd5b8062fdd58e1461017757806301ffc9a71461019d5780630e89341c146101c05780631f7fdffa146101e0578063248a9ca3146101f55780632eb2c2d614610218575b600080fd5b61018a610185366004611cc0565b6103e1565b6040519081526020015b60405180910390f35b6101b06101ab366004611d03565b61047d565b6040519015158152602001610194565b6101d36101ce366004611d20565b610488565b6040516101949190611d91565b6101f36101ee366004611ef0565b61051c565b005b61018a610203366004611d20565b60009081526020819052604090206001015490565b6101f3610226366004611f89565b610574565b6101f3610239366004612033565b61060b565b6101f361024c366004612033565b610636565b6101f36106b4565b61026c61026736600461205f565b61075a565b6040516101949190612165565b60055460ff166101b0565b6101f3610292366004612178565b610884565b6101f36102a53660046121ec565b6108c7565b6101f3610919565b6102c56102c0366004612241565b6109bd565b6040516001600160a01b039091168152602001610194565b6101b06102eb366004612033565b6109dc565b61018a600081565b6101f3610306366004612263565b610a05565b61018a610319366004611d20565b610a10565b61018a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6101f3610353366004612033565b610a27565b61018a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6101b061038d36600461229f565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6101f36103c93660046122c9565b610a4d565b6101f36103dc36600461232e565b610a92565b60006001600160a01b0383166104525760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b600061047782610b6e565b60606004805461049790612361565b80601f01602080910402602001604051908101604052809291908181526020018280546104c390612361565b80156105105780601f106104e557610100808354040283529160200191610510565b820191906000526020600020905b8154815290600101906020018083116104f357829003601f168201915b50505050509050919050565b6105467f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336109dc565b6105625760405162461bcd60e51b81526004016104499061239b565b61056e84848484610bae565b50505050565b6001600160a01b0385163314806105905750610590853361038d565b6105f75760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610449565b6106048585858585610d09565b5050505050565b6000828152602081905260409020600101546106278133610eb6565b6106318383610f1a565b505050565b6001600160a01b03811633146106a65760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610449565b6106b08282610f3c565b5050565b6106de7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336109dc565b6107505760405162461bcd60e51b815260206004820152603b60248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f686176652070617573657220726f6c6520746f20756e706175736500000000006064820152608401610449565b610758610f5e565b565b606081518351146107bf5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610449565b6000835167ffffffffffffffff8111156107db576107db611da4565b604051908082528060200260200182016040528015610804578160200160208202803683370190505b50905060005b845181101561087c5761084f858281518110610828576108286123f8565b6020026020010151858381518110610842576108426123f8565b60200260200101516103e1565b828281518110610861576108616123f8565b602090810291909101015261087581612424565b905061080a565b509392505050565b6001600160a01b0383163314806108a057506108a0833361038d565b6108bc5760405162461bcd60e51b81526004016104499061243d565b610631838383610ff1565b6108f17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336109dc565b61090d5760405162461bcd60e51b81526004016104499061239b565b61056e84848484611182565b6109437f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336109dc565b6109b55760405162461bcd60e51b815260206004820152603960248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f686176652070617573657220726f6c6520746f207061757365000000000000006064820152608401610449565b61075861125a565b60008281526001602052604081206109d590836112d5565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6106b03383836112e1565b6000818152600160205260408120610477906113c1565b600082815260208190526040902060010154610a438133610eb6565b6106318383610f3c565b6001600160a01b038516331480610a695750610a69853361038d565b610a855760405162461bcd60e51b81526004016104499061243d565b61060485858585856113cb565b6001600160a01b038316331480610aae5750610aae833361038d565b610aca5760405162461bcd60e51b81526004016104499061243d565b6106318383836114ec565b610adf82826109dc565b6106b0576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610b153390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006109d5836001600160a01b0384166115f1565b60006001600160e01b03198216636cdb3d1360e11b1480610b9f57506001600160e01b031982166303a24d0760e21b145b80610477575061047782611640565b6001600160a01b038416610bd45760405162461bcd60e51b815260040161044990612486565b8151835114610bf55760405162461bcd60e51b8152600401610449906124c7565b33610c0581600087878787611665565b60005b8451811015610ca157838181518110610c2357610c236123f8565b602002602001015160026000878481518110610c4157610c416123f8565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254610c89919061250f565b90915550819050610c9981612424565b915050610c08565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610cf2929190612527565b60405180910390a461060481600087878787611673565b8151835114610d2a5760405162461bcd60e51b8152600401610449906124c7565b6001600160a01b038416610d505760405162461bcd60e51b815260040161044990612555565b33610d5f818787878787611665565b60005b8451811015610e48576000858281518110610d7f57610d7f6123f8565b602002602001015190506000858381518110610d9d57610d9d6123f8565b60209081029190910181015160008481526002835260408082206001600160a01b038e168352909352919091205490915081811015610dee5760405162461bcd60e51b81526004016104499061259a565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610e2d90849061250f565b9250508190555050505080610e4190612424565b9050610d62565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610e98929190612527565b60405180910390a4610eae818787878787611673565b505050505050565b610ec082826109dc565b6106b057610ed8816001600160a01b031660146117ce565b610ee38360206117ce565b604051602001610ef49291906125e4565b60408051601f198184030181529082905262461bcd60e51b825261044991600401611d91565b610f248282610ad5565b60008281526001602052604090206106319082610b59565b610f46828261196a565b600082815260016020526040902061063190826119cf565b60055460ff16610fa75760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610449565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0383166110175760405162461bcd60e51b815260040161044990612659565b80518251146110385760405162461bcd60e51b8152600401610449906124c7565b600033905061105b81856000868660405180602001604052806000815250611665565b60005b835181101561112357600084828151811061107b5761107b6123f8565b602002602001015190506000848381518110611099576110996123f8565b60209081029190910181015160008481526002835260408082206001600160a01b038c1683529093529190912054909150818110156110ea5760405162461bcd60e51b81526004016104499061269c565b60009283526002602090815260408085206001600160a01b038b168652909152909220910390558061111b81612424565b91505061105e565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611174929190612527565b60405180910390a450505050565b6001600160a01b0384166111a85760405162461bcd60e51b815260040161044990612486565b336111c8816000876111b9886119e4565b6111c2886119e4565b87611665565b60008481526002602090815260408083206001600160a01b0389168452909152812080548592906111fa90849061250f565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461060481600087878787611a2f565b60055460ff16156112a05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610449565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610fd43390565b60006109d58383611aea565b816001600160a01b0316836001600160a01b0316036113545760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610449565b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000610477825490565b6001600160a01b0384166113f15760405162461bcd60e51b815260040161044990612555565b336114018187876111b9886119e4565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156114445760405162461bcd60e51b81526004016104499061259a565b60008581526002602090815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061148390849061250f565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46114e3828888888888611a2f565b50505050505050565b6001600160a01b0383166115125760405162461bcd60e51b815260040161044990612659565b3361154181856000611523876119e4565b61152c876119e4565b60405180602001604052806000815250611665565b60008381526002602090815260408083206001600160a01b0388168452909152902054828110156115845760405162461bcd60e51b81526004016104499061269c565b60008481526002602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b600081815260018301602052604081205461163857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610477565b506000610477565b60006001600160e01b03198216635a05180f60e01b1480610477575061047782611b14565b610eae868686868686611b49565b6001600160a01b0384163b15610eae5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906116b790899089908890889088906004016126e0565b6020604051808303816000875af19250505080156116f2575060408051601f3d908101601f191682019092526116ef9181019061273e565b60015b61179e576116fe61275b565b806308c379a0036117375750611712612777565b8061171d5750611739565b8060405162461bcd60e51b81526004016104499190611d91565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610449565b6001600160e01b0319811663bc197c8160e01b146114e35760405162461bcd60e51b815260040161044990612801565b606060006117dd836002612849565b6117e890600261250f565b67ffffffffffffffff81111561180057611800611da4565b6040519080825280601f01601f19166020018201604052801561182a576020820181803683370190505b509050600360fc1b81600081518110611845576118456123f8565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611874576118746123f8565b60200101906001600160f81b031916908160001a9053506000611898846002612849565b6118a390600161250f565b90505b600181111561191b576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106118d7576118d76123f8565b1a60f81b8282815181106118ed576118ed6123f8565b60200101906001600160f81b031916908160001a90535060049490941c9361191481612868565b90506118a6565b5083156109d55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610449565b61197482826109dc565b156106b0576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006109d5836001600160a01b038416611bb1565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611a1e57611a1e6123f8565b602090810291909101015292915050565b6001600160a01b0384163b15610eae5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611a73908990899088908890889060040161287f565b6020604051808303816000875af1925050508015611aae575060408051601f3d908101601f19168201909252611aab9181019061273e565b60015b611aba576116fe61275b565b6001600160e01b0319811663f23a6e6160e01b146114e35760405162461bcd60e51b815260040161044990612801565b6000826000018281548110611b0157611b016123f8565b9060005260206000200154905092915050565b60006001600160e01b03198216637965db0b60e01b148061047757506301ffc9a760e01b6001600160e01b0319831614610477565b60055460ff1615610eae5760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610449565b60008181526001830160205260408120548015611c9a576000611bd56001836128c4565b8554909150600090611be9906001906128c4565b9050818114611c4e576000866000018281548110611c0957611c096123f8565b9060005260206000200154905080876000018481548110611c2c57611c2c6123f8565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611c5f57611c5f6128db565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610477565b6000915050610477565b80356001600160a01b0381168114611cbb57600080fd5b919050565b60008060408385031215611cd357600080fd5b611cdc83611ca4565b946020939093013593505050565b6001600160e01b031981168114611d0057600080fd5b50565b600060208284031215611d1557600080fd5b81356109d581611cea565b600060208284031215611d3257600080fd5b5035919050565b60005b83811015611d54578181015183820152602001611d3c565b8381111561056e5750506000910152565b60008151808452611d7d816020860160208601611d39565b601f01601f19169290920160200192915050565b6020815260006109d56020830184611d65565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611de057611de0611da4565b6040525050565b600067ffffffffffffffff821115611e0157611e01611da4565b5060051b60200190565b600082601f830112611e1c57600080fd5b81356020611e2982611de7565b604051611e368282611dba565b83815260059390931b8501820192828101915086841115611e5657600080fd5b8286015b84811015611e715780358352918301918301611e5a565b509695505050505050565b600082601f830112611e8d57600080fd5b813567ffffffffffffffff811115611ea757611ea7611da4565b604051611ebe601f8301601f191660200182611dba565b818152846020838601011115611ed357600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060808587031215611f0657600080fd5b611f0f85611ca4565b9350602085013567ffffffffffffffff80821115611f2c57600080fd5b611f3888838901611e0b565b94506040870135915080821115611f4e57600080fd5b611f5a88838901611e0b565b93506060870135915080821115611f7057600080fd5b50611f7d87828801611e7c565b91505092959194509250565b600080600080600060a08688031215611fa157600080fd5b611faa86611ca4565b9450611fb860208701611ca4565b9350604086013567ffffffffffffffff80821115611fd557600080fd5b611fe189838a01611e0b565b94506060880135915080821115611ff757600080fd5b61200389838a01611e0b565b9350608088013591508082111561201957600080fd5b5061202688828901611e7c565b9150509295509295909350565b6000806040838503121561204657600080fd5b8235915061205660208401611ca4565b90509250929050565b6000806040838503121561207257600080fd5b823567ffffffffffffffff8082111561208a57600080fd5b818501915085601f83011261209e57600080fd5b813560206120ab82611de7565b6040516120b88282611dba565b83815260059390931b85018201928281019150898411156120d857600080fd5b948201945b838610156120fd576120ee86611ca4565b825294820194908201906120dd565b9650508601359250508082111561211357600080fd5b5061212085828601611e0b565b9150509250929050565b600081518084526020808501945080840160005b8381101561215a5781518752958201959082019060010161213e565b509495945050505050565b6020815260006109d5602083018461212a565b60008060006060848603121561218d57600080fd5b61219684611ca4565b9250602084013567ffffffffffffffff808211156121b357600080fd5b6121bf87838801611e0b565b935060408601359150808211156121d557600080fd5b506121e286828701611e0b565b9150509250925092565b6000806000806080858703121561220257600080fd5b61220b85611ca4565b93506020850135925060408501359150606085013567ffffffffffffffff81111561223557600080fd5b611f7d87828801611e7c565b6000806040838503121561225457600080fd5b50508035926020909101359150565b6000806040838503121561227657600080fd5b61227f83611ca4565b91506020830135801515811461229457600080fd5b809150509250929050565b600080604083850312156122b257600080fd5b6122bb83611ca4565b915061205660208401611ca4565b600080600080600060a086880312156122e157600080fd5b6122ea86611ca4565b94506122f860208701611ca4565b93506040860135925060608601359150608086013567ffffffffffffffff81111561232257600080fd5b61202688828901611e7c565b60008060006060848603121561234357600080fd5b61234c84611ca4565b95602085013595506040909401359392505050565b600181811c9082168061237557607f821691505b60208210810361239557634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526038908201527f455243313135355072657365744d696e7465725061757365723a206d7573742060408201527f68617665206d696e74657220726f6c6520746f206d696e740000000000000000606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016124365761243661240e565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b600082198211156125225761252261240e565b500190565b60408152600061253a604083018561212a565b828103602084015261254c818561212a565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161261c816017850160208801611d39565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161264d816028840160208801611d39565b01602801949350505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061270c9083018661212a565b828103606084015261271e818661212a565b905082810360808401526127328185611d65565b98975050505050505050565b60006020828403121561275057600080fd5b81516109d581611cea565b600060033d11156127745760046000803e5060005160e01c5b90565b600060443d10156127855790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156127b557505050505090565b82850191508151818111156127cd5750505050505090565b843d87010160208285010111156127e75750505050505090565b6127f660208286010187611dba565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60008160001904831182151516156128635761286361240e565b500290565b6000816128775761287761240e565b506000190190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906128b990830184611d65565b979650505050505050565b6000828210156128d6576128d661240e565b500390565b634e487b7160e01b600052603160045260246000fdfea26469706673582212203696b0c24bb99173bbafbd9c1bfe0c8132b72eb4adada644d88c48597ebf12a464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101725760003560e01c8063731133e9116100de578063ca15c87311610097578063e63ab1e911610071578063e63ab1e914610358578063e985e9c51461037f578063f242432a146103bb578063f5298aca146103ce57600080fd5b8063ca15c8731461030b578063d53913931461031e578063d547741f1461034557600080fd5b8063731133e9146102975780638456cb59146102aa5780639010d07c146102b257806391d14854146102dd578063a217fddf146102f0578063a22cb465146102f857600080fd5b80632f2ff15d116101305780632f2ff15d1461022b57806336568abe1461023e5780633f4ba83a146102515780634e1273f4146102595780635c975abb146102795780636b20c4541461028457600080fd5b8062fdd58e1461017757806301ffc9a71461019d5780630e89341c146101c05780631f7fdffa146101e0578063248a9ca3146101f55780632eb2c2d614610218575b600080fd5b61018a610185366004611cc0565b6103e1565b6040519081526020015b60405180910390f35b6101b06101ab366004611d03565b61047d565b6040519015158152602001610194565b6101d36101ce366004611d20565b610488565b6040516101949190611d91565b6101f36101ee366004611ef0565b61051c565b005b61018a610203366004611d20565b60009081526020819052604090206001015490565b6101f3610226366004611f89565b610574565b6101f3610239366004612033565b61060b565b6101f361024c366004612033565b610636565b6101f36106b4565b61026c61026736600461205f565b61075a565b6040516101949190612165565b60055460ff166101b0565b6101f3610292366004612178565b610884565b6101f36102a53660046121ec565b6108c7565b6101f3610919565b6102c56102c0366004612241565b6109bd565b6040516001600160a01b039091168152602001610194565b6101b06102eb366004612033565b6109dc565b61018a600081565b6101f3610306366004612263565b610a05565b61018a610319366004611d20565b610a10565b61018a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6101f3610353366004612033565b610a27565b61018a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6101b061038d36600461229f565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6101f36103c93660046122c9565b610a4d565b6101f36103dc36600461232e565b610a92565b60006001600160a01b0383166104525760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b600061047782610b6e565b60606004805461049790612361565b80601f01602080910402602001604051908101604052809291908181526020018280546104c390612361565b80156105105780601f106104e557610100808354040283529160200191610510565b820191906000526020600020905b8154815290600101906020018083116104f357829003601f168201915b50505050509050919050565b6105467f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336109dc565b6105625760405162461bcd60e51b81526004016104499061239b565b61056e84848484610bae565b50505050565b6001600160a01b0385163314806105905750610590853361038d565b6105f75760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610449565b6106048585858585610d09565b5050505050565b6000828152602081905260409020600101546106278133610eb6565b6106318383610f1a565b505050565b6001600160a01b03811633146106a65760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610449565b6106b08282610f3c565b5050565b6106de7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336109dc565b6107505760405162461bcd60e51b815260206004820152603b60248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f686176652070617573657220726f6c6520746f20756e706175736500000000006064820152608401610449565b610758610f5e565b565b606081518351146107bf5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610449565b6000835167ffffffffffffffff8111156107db576107db611da4565b604051908082528060200260200182016040528015610804578160200160208202803683370190505b50905060005b845181101561087c5761084f858281518110610828576108286123f8565b6020026020010151858381518110610842576108426123f8565b60200260200101516103e1565b828281518110610861576108616123f8565b602090810291909101015261087581612424565b905061080a565b509392505050565b6001600160a01b0383163314806108a057506108a0833361038d565b6108bc5760405162461bcd60e51b81526004016104499061243d565b610631838383610ff1565b6108f17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336109dc565b61090d5760405162461bcd60e51b81526004016104499061239b565b61056e84848484611182565b6109437f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336109dc565b6109b55760405162461bcd60e51b815260206004820152603960248201527f455243313135355072657365744d696e7465725061757365723a206d7573742060448201527f686176652070617573657220726f6c6520746f207061757365000000000000006064820152608401610449565b61075861125a565b60008281526001602052604081206109d590836112d5565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6106b03383836112e1565b6000818152600160205260408120610477906113c1565b600082815260208190526040902060010154610a438133610eb6565b6106318383610f3c565b6001600160a01b038516331480610a695750610a69853361038d565b610a855760405162461bcd60e51b81526004016104499061243d565b61060485858585856113cb565b6001600160a01b038316331480610aae5750610aae833361038d565b610aca5760405162461bcd60e51b81526004016104499061243d565b6106318383836114ec565b610adf82826109dc565b6106b0576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610b153390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006109d5836001600160a01b0384166115f1565b60006001600160e01b03198216636cdb3d1360e11b1480610b9f57506001600160e01b031982166303a24d0760e21b145b80610477575061047782611640565b6001600160a01b038416610bd45760405162461bcd60e51b815260040161044990612486565b8151835114610bf55760405162461bcd60e51b8152600401610449906124c7565b33610c0581600087878787611665565b60005b8451811015610ca157838181518110610c2357610c236123f8565b602002602001015160026000878481518110610c4157610c416123f8565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254610c89919061250f565b90915550819050610c9981612424565b915050610c08565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610cf2929190612527565b60405180910390a461060481600087878787611673565b8151835114610d2a5760405162461bcd60e51b8152600401610449906124c7565b6001600160a01b038416610d505760405162461bcd60e51b815260040161044990612555565b33610d5f818787878787611665565b60005b8451811015610e48576000858281518110610d7f57610d7f6123f8565b602002602001015190506000858381518110610d9d57610d9d6123f8565b60209081029190910181015160008481526002835260408082206001600160a01b038e168352909352919091205490915081811015610dee5760405162461bcd60e51b81526004016104499061259a565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610e2d90849061250f565b9250508190555050505080610e4190612424565b9050610d62565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610e98929190612527565b60405180910390a4610eae818787878787611673565b505050505050565b610ec082826109dc565b6106b057610ed8816001600160a01b031660146117ce565b610ee38360206117ce565b604051602001610ef49291906125e4565b60408051601f198184030181529082905262461bcd60e51b825261044991600401611d91565b610f248282610ad5565b60008281526001602052604090206106319082610b59565b610f46828261196a565b600082815260016020526040902061063190826119cf565b60055460ff16610fa75760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610449565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0383166110175760405162461bcd60e51b815260040161044990612659565b80518251146110385760405162461bcd60e51b8152600401610449906124c7565b600033905061105b81856000868660405180602001604052806000815250611665565b60005b835181101561112357600084828151811061107b5761107b6123f8565b602002602001015190506000848381518110611099576110996123f8565b60209081029190910181015160008481526002835260408082206001600160a01b038c1683529093529190912054909150818110156110ea5760405162461bcd60e51b81526004016104499061269c565b60009283526002602090815260408085206001600160a01b038b168652909152909220910390558061111b81612424565b91505061105e565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611174929190612527565b60405180910390a450505050565b6001600160a01b0384166111a85760405162461bcd60e51b815260040161044990612486565b336111c8816000876111b9886119e4565b6111c2886119e4565b87611665565b60008481526002602090815260408083206001600160a01b0389168452909152812080548592906111fa90849061250f565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461060481600087878787611a2f565b60055460ff16156112a05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610449565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610fd43390565b60006109d58383611aea565b816001600160a01b0316836001600160a01b0316036113545760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610449565b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000610477825490565b6001600160a01b0384166113f15760405162461bcd60e51b815260040161044990612555565b336114018187876111b9886119e4565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156114445760405162461bcd60e51b81526004016104499061259a565b60008581526002602090815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061148390849061250f565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46114e3828888888888611a2f565b50505050505050565b6001600160a01b0383166115125760405162461bcd60e51b815260040161044990612659565b3361154181856000611523876119e4565b61152c876119e4565b60405180602001604052806000815250611665565b60008381526002602090815260408083206001600160a01b0388168452909152902054828110156115845760405162461bcd60e51b81526004016104499061269c565b60008481526002602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b600081815260018301602052604081205461163857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610477565b506000610477565b60006001600160e01b03198216635a05180f60e01b1480610477575061047782611b14565b610eae868686868686611b49565b6001600160a01b0384163b15610eae5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906116b790899089908890889088906004016126e0565b6020604051808303816000875af19250505080156116f2575060408051601f3d908101601f191682019092526116ef9181019061273e565b60015b61179e576116fe61275b565b806308c379a0036117375750611712612777565b8061171d5750611739565b8060405162461bcd60e51b81526004016104499190611d91565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610449565b6001600160e01b0319811663bc197c8160e01b146114e35760405162461bcd60e51b815260040161044990612801565b606060006117dd836002612849565b6117e890600261250f565b67ffffffffffffffff81111561180057611800611da4565b6040519080825280601f01601f19166020018201604052801561182a576020820181803683370190505b509050600360fc1b81600081518110611845576118456123f8565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611874576118746123f8565b60200101906001600160f81b031916908160001a9053506000611898846002612849565b6118a390600161250f565b90505b600181111561191b576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106118d7576118d76123f8565b1a60f81b8282815181106118ed576118ed6123f8565b60200101906001600160f81b031916908160001a90535060049490941c9361191481612868565b90506118a6565b5083156109d55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610449565b61197482826109dc565b156106b0576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006109d5836001600160a01b038416611bb1565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110611a1e57611a1e6123f8565b602090810291909101015292915050565b6001600160a01b0384163b15610eae5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611a73908990899088908890889060040161287f565b6020604051808303816000875af1925050508015611aae575060408051601f3d908101601f19168201909252611aab9181019061273e565b60015b611aba576116fe61275b565b6001600160e01b0319811663f23a6e6160e01b146114e35760405162461bcd60e51b815260040161044990612801565b6000826000018281548110611b0157611b016123f8565b9060005260206000200154905092915050565b60006001600160e01b03198216637965db0b60e01b148061047757506301ffc9a760e01b6001600160e01b0319831614610477565b60055460ff1615610eae5760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b6064820152608401610449565b60008181526001830160205260408120548015611c9a576000611bd56001836128c4565b8554909150600090611be9906001906128c4565b9050818114611c4e576000866000018281548110611c0957611c096123f8565b9060005260206000200154905080876000018481548110611c2c57611c2c6123f8565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611c5f57611c5f6128db565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610477565b6000915050610477565b80356001600160a01b0381168114611cbb57600080fd5b919050565b60008060408385031215611cd357600080fd5b611cdc83611ca4565b946020939093013593505050565b6001600160e01b031981168114611d0057600080fd5b50565b600060208284031215611d1557600080fd5b81356109d581611cea565b600060208284031215611d3257600080fd5b5035919050565b60005b83811015611d54578181015183820152602001611d3c565b8381111561056e5750506000910152565b60008151808452611d7d816020860160208601611d39565b601f01601f19169290920160200192915050565b6020815260006109d56020830184611d65565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715611de057611de0611da4565b6040525050565b600067ffffffffffffffff821115611e0157611e01611da4565b5060051b60200190565b600082601f830112611e1c57600080fd5b81356020611e2982611de7565b604051611e368282611dba565b83815260059390931b8501820192828101915086841115611e5657600080fd5b8286015b84811015611e715780358352918301918301611e5a565b509695505050505050565b600082601f830112611e8d57600080fd5b813567ffffffffffffffff811115611ea757611ea7611da4565b604051611ebe601f8301601f191660200182611dba565b818152846020838601011115611ed357600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060808587031215611f0657600080fd5b611f0f85611ca4565b9350602085013567ffffffffffffffff80821115611f2c57600080fd5b611f3888838901611e0b565b94506040870135915080821115611f4e57600080fd5b611f5a88838901611e0b565b93506060870135915080821115611f7057600080fd5b50611f7d87828801611e7c565b91505092959194509250565b600080600080600060a08688031215611fa157600080fd5b611faa86611ca4565b9450611fb860208701611ca4565b9350604086013567ffffffffffffffff80821115611fd557600080fd5b611fe189838a01611e0b565b94506060880135915080821115611ff757600080fd5b61200389838a01611e0b565b9350608088013591508082111561201957600080fd5b5061202688828901611e7c565b9150509295509295909350565b6000806040838503121561204657600080fd5b8235915061205660208401611ca4565b90509250929050565b6000806040838503121561207257600080fd5b823567ffffffffffffffff8082111561208a57600080fd5b818501915085601f83011261209e57600080fd5b813560206120ab82611de7565b6040516120b88282611dba565b83815260059390931b85018201928281019150898411156120d857600080fd5b948201945b838610156120fd576120ee86611ca4565b825294820194908201906120dd565b9650508601359250508082111561211357600080fd5b5061212085828601611e0b565b9150509250929050565b600081518084526020808501945080840160005b8381101561215a5781518752958201959082019060010161213e565b509495945050505050565b6020815260006109d5602083018461212a565b60008060006060848603121561218d57600080fd5b61219684611ca4565b9250602084013567ffffffffffffffff808211156121b357600080fd5b6121bf87838801611e0b565b935060408601359150808211156121d557600080fd5b506121e286828701611e0b565b9150509250925092565b6000806000806080858703121561220257600080fd5b61220b85611ca4565b93506020850135925060408501359150606085013567ffffffffffffffff81111561223557600080fd5b611f7d87828801611e7c565b6000806040838503121561225457600080fd5b50508035926020909101359150565b6000806040838503121561227657600080fd5b61227f83611ca4565b91506020830135801515811461229457600080fd5b809150509250929050565b600080604083850312156122b257600080fd5b6122bb83611ca4565b915061205660208401611ca4565b600080600080600060a086880312156122e157600080fd5b6122ea86611ca4565b94506122f860208701611ca4565b93506040860135925060608601359150608086013567ffffffffffffffff81111561232257600080fd5b61202688828901611e7c565b60008060006060848603121561234357600080fd5b61234c84611ca4565b95602085013595506040909401359392505050565b600181811c9082168061237557607f821691505b60208210810361239557634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526038908201527f455243313135355072657365744d696e7465725061757365723a206d7573742060408201527f68617665206d696e74657220726f6c6520746f206d696e740000000000000000606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016124365761243661240e565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b600082198211156125225761252261240e565b500190565b60408152600061253a604083018561212a565b828103602084015261254c818561212a565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161261c816017850160208801611d39565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161264d816028840160208801611d39565b01602801949350505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061270c9083018661212a565b828103606084015261271e818661212a565b905082810360808401526127328185611d65565b98975050505050505050565b60006020828403121561275057600080fd5b81516109d581611cea565b600060033d11156127745760046000803e5060005160e01c5b90565b600060443d10156127855790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156127b557505050505090565b82850191508151818111156127cd5750505050505090565b843d87010160208285010111156127e75750505050505090565b6127f660208286010187611dba565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60008160001904831182151516156128635761286361240e565b500290565b6000816128775761287761240e565b506000190190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906128b990830184611d65565b979650505050505050565b6000828210156128d6576128d661240e565b500390565b634e487b7160e01b600052603160045260246000fdfea26469706673582212203696b0c24bb99173bbafbd9c1bfe0c8132b72eb4adada644d88c48597ebf12a464736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "uri", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "TransferBatch", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]", "indexed": false}], "anonymous": false}, {"type": "event", "name": "TransferSingle", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "URI", "inputs": [{"name": "value", "type": "string", "internalType": "string", "indexed": false}, {"name": "id", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "MINTER_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "PAUSER_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfBatch", "stateMutability": "view", "inputs": [{"name": "accounts", "type": "address[]", "internalType": "address[]"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": [{"name": "", "type": "uint256[]", "internalType": "uint256[]"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnBatch", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}], "outputs": []}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleMember", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getRoleMemberCount", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "mintBatch", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "safeBatchTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "amounts", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "uri", "stateMutability": "view", "inputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "{ERC1155} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers This contract uses {AccessControl} to lock permissioned functions using the different roles - head to its documentation for details. The account that deploys the contract will be granted the minter and pauser roles, as well as the default admin role, which will let it grant both minter and pauser roles to other accounts.", "kind": "dev", "methods": {"balanceOf(address,uint256)": {"details": "See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."}, "balanceOfBatch(address[],uint256[])": {"details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."}, "constructor": {"details": "Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, and `PAUSER_ROLE` to the account that deploys the contract."}, "getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."}, "getRoleMember(bytes32,uint256)": {"details": "Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."}, "getRoleMemberCount(bytes32)": {"details": "Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "isApprovedForAll(address,address)": {"details": "See {IERC1155-isApprovedForAll}."}, "mint(address,uint256,uint256,bytes)": {"details": "Creates `amount` new tokens for `to`, of token type `id`. See {ERC1155-_mint}. Requirements: - the caller must have the `MINTER_ROLE`."}, "mintBatch(address,uint256[],uint256[],bytes)": {"details": "xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}."}, "pause()": {"details": "Pauses all token transfers. See {ERC1155Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}, "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {"details": "See {IERC1155-safeBatchTransferFrom}."}, "safeTransferFrom(address,address,uint256,uint256,bytes)": {"details": "See {IERC1155-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC1155-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "unpause()": {"details": "Unpauses all token transfers. See {ERC1155Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`."}, "uri(uint256)": {"details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}}, "version": 1}}, "ERC1155Holder": {"contractName": "ERC1155Holder", "sourceId": "token/ERC1155/utils/ERC1155Holder.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506103c5806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063bc197c811461006e578063f23a6e61146100a6575b600080fd5b6100596100543660046100fc565b6100c5565b60405190151581526020015b60405180910390f35b61008d61007c366004610280565b63bc197c8160e01b95945050505050565b6040516001600160e01b03199091168152602001610065565b61008d6100b436600461032a565b63f23a6e6160e01b95945050505050565b60006001600160e01b03198216630271189760e51b14806100f657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006020828403121561010e57600080fd5b81356001600160e01b03198116811461012657600080fd5b9392505050565b80356001600160a01b038116811461014457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561018857610188610149565b604052919050565b600082601f8301126101a157600080fd5b8135602067ffffffffffffffff8211156101bd576101bd610149565b8160051b6101cc82820161015f565b92835284810182019282810190878511156101e657600080fd5b83870192505b84831015610205578235825291830191908301906101ec565b979650505050505050565b600082601f83011261022157600080fd5b813567ffffffffffffffff81111561023b5761023b610149565b61024e601f8201601f191660200161015f565b81815284602083860101111561026357600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561029857600080fd5b6102a18661012d565b94506102af6020870161012d565b9350604086013567ffffffffffffffff808211156102cc57600080fd5b6102d889838a01610190565b945060608801359150808211156102ee57600080fd5b6102fa89838a01610190565b9350608088013591508082111561031057600080fd5b5061031d88828901610210565b9150509295509295909350565b600080600080600060a0868803121561034257600080fd5b61034b8661012d565b94506103596020870161012d565b93506040860135925060608601359150608086013567ffffffffffffffff81111561038357600080fd5b61031d8882890161021056fea26469706673582212207e2cdd35afe8ebcaad345b42ee9e78453af03663a6fd37a63d1cf736189ef00964736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063bc197c811461006e578063f23a6e61146100a6575b600080fd5b6100596100543660046100fc565b6100c5565b60405190151581526020015b60405180910390f35b61008d61007c366004610280565b63bc197c8160e01b95945050505050565b6040516001600160e01b03199091168152602001610065565b61008d6100b436600461032a565b63f23a6e6160e01b95945050505050565b60006001600160e01b03198216630271189760e51b14806100f657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006020828403121561010e57600080fd5b81356001600160e01b03198116811461012657600080fd5b9392505050565b80356001600160a01b038116811461014457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561018857610188610149565b604052919050565b600082601f8301126101a157600080fd5b8135602067ffffffffffffffff8211156101bd576101bd610149565b8160051b6101cc82820161015f565b92835284810182019282810190878511156101e657600080fd5b83870192505b84831015610205578235825291830191908301906101ec565b979650505050505050565b600082601f83011261022157600080fd5b813567ffffffffffffffff81111561023b5761023b610149565b61024e601f8201601f191660200161015f565b81815284602083860101111561026357600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561029857600080fd5b6102a18661012d565b94506102af6020870161012d565b9350604086013567ffffffffffffffff808211156102cc57600080fd5b6102d889838a01610190565b945060608801359150808211156102ee57600080fd5b6102fa89838a01610190565b9350608088013591508082111561031057600080fd5b5061031d88828901610210565b9150509295509295909350565b600080600080600060a0868803121561034257600080fd5b61034b8661012d565b94506103596020870161012d565b93506040860135925060608601359150608086013567ffffffffffffffff81111561038357600080fd5b61031d8882890161021056fea26469706673582212207e2cdd35afe8ebcaad345b42ee9e78453af03663a6fd37a63d1cf736189ef00964736f6c634300080d0033"}, "abi": [{"type": "function", "name": "onERC1155BatchReceived", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "onERC1155Received", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "_Available since v3.1._", "kind": "dev", "methods": {"supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}}, "version": 1}}, "ERC1155Receiver": {"contractName": "ERC1155Receiver", "sourceId": "token/ERC1155/utils/ERC1155Receiver.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "onERC1155BatchReceived", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "ids", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "values", "type": "uint256[]", "internalType": "uint256[]"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "onERC1155Received", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "id", "type": "uint256", "internalType": "uint256"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "_Available since v3.1._", "kind": "dev", "methods": {"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": {"details": "Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` (i.e. 0xbc197c81, or its own function selector).", "params": {"data": "Additional data with no specified format", "from": "The address which previously owned the token", "ids": "An array containing ids of each token being transferred (order and length must match values array)", "operator": "The address which initiated the batch transfer (i.e. msg.sender)", "values": "An array containing amounts of each token being transferred (order and length must match ids array)"}, "returns": {"_0": "`bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed"}}, "onERC1155Received(address,address,uint256,uint256,bytes)": {"details": "Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` (i.e. 0xf23a6e61, or its own function selector).", "params": {"data": "Additional data with no specified format", "from": "The address which previously owned the token", "id": "The ID of the token being transferred", "operator": "The address which initiated the transfer (i.e. msg.sender)", "value": "The amount of tokens being transferred"}, "returns": {"_0": "`bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed"}}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}}, "version": 1}}, "ERC20": {"contractName": "ERC20", "sourceId": "token/ERC20/ERC20.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162000b5438038062000b548339810160408190526200003491620001db565b81516200004990600390602085019062000068565b5080516200005f90600490602084019062000068565b50505062000281565b828054620000769062000245565b90600052602060002090601f0160209004810192826200009a5760008555620000e5565b82601f10620000b557805160ff1916838001178555620000e5565b82800160010185558215620000e5579182015b82811115620000e5578251825591602001919060010190620000c8565b50620000f3929150620000f7565b5090565b5b80821115620000f35760008155600101620000f8565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013657600080fd5b81516001600160401b03808211156200015357620001536200010e565b604051601f8301601f19908116603f011681019082821181831017156200017e576200017e6200010e565b816040528381526020925086838588010111156200019b57600080fd5b600091505b83821015620001bf5785820183015181830184015290820190620001a0565b83821115620001d15760008385830101525b9695505050505050565b60008060408385031215620001ef57600080fd5b82516001600160401b03808211156200020757600080fd5b620002158683870162000124565b935060208501519150808211156200022c57600080fd5b506200023b8582860162000124565b9150509250929050565b600181811c908216806200025a57607f821691505b6020821081036200027b57634e487b7160e01b600052602260045260246000fd5b50919050565b6108c380620002916000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461012357806370a082311461013657806395d89b411461015f578063a457c2d714610167578063a9059cbb1461017a578063dd62ed3e1461018d57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101c6565b6040516100c39190610701565b60405180910390f35b6100df6100da366004610772565b610258565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f36600461079c565b61026e565b604051601281526020016100c3565b6100df610131366004610772565b61031d565b6100f36101443660046107d8565b6001600160a01b031660009081526020819052604090205490565b6100b6610359565b6100df610175366004610772565b610368565b6100df610188366004610772565b610401565b6100f361019b3660046107fa565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6060600380546101d59061082d565b80601f01602080910402602001604051908101604052809291908181526020018280546102019061082d565b801561024e5780601f106102235761010080835404028352916020019161024e565b820191906000526020600020905b81548152906001019060200180831161023157829003601f168201915b5050505050905090565b600061026533848461040e565b50600192915050565b600061027b848484610532565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103055760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610312853385840361040e565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610265918590610354908690610867565b61040e565b6060600480546101d59061082d565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156103ea5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016102fc565b6103f7338585840361040e565b5060019392505050565b6000610265338484610532565b6001600160a01b0383166104705760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016102fc565b6001600160a01b0382166104d15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016102fc565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166105965760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016102fc565b6001600160a01b0382166105f85760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016102fc565b6001600160a01b038316600090815260208190526040902054818110156106705760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016102fc565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906106a7908490610867565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516106f391815260200190565b60405180910390a350505050565b600060208083528351808285015260005b8181101561072e57858101830151858201604001528201610712565b81811115610740576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461076d57600080fd5b919050565b6000806040838503121561078557600080fd5b61078e83610756565b946020939093013593505050565b6000806000606084860312156107b157600080fd5b6107ba84610756565b92506107c860208501610756565b9150604084013590509250925092565b6000602082840312156107ea57600080fd5b6107f382610756565b9392505050565b6000806040838503121561080d57600080fd5b61081683610756565b915061082460208401610756565b90509250929050565b600181811c9082168061084157607f821691505b60208210810361086157634e487b7160e01b600052602260045260246000fd5b50919050565b6000821982111561088857634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212209a9a301a380cdfb0390e49d7fd06c43a95227c8481cc05fc801e8e2a813b6fef64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461012357806370a082311461013657806395d89b411461015f578063a457c2d714610167578063a9059cbb1461017a578063dd62ed3e1461018d57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101c6565b6040516100c39190610701565b60405180910390f35b6100df6100da366004610772565b610258565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f36600461079c565b61026e565b604051601281526020016100c3565b6100df610131366004610772565b61031d565b6100f36101443660046107d8565b6001600160a01b031660009081526020819052604090205490565b6100b6610359565b6100df610175366004610772565b610368565b6100df610188366004610772565b610401565b6100f361019b3660046107fa565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6060600380546101d59061082d565b80601f01602080910402602001604051908101604052809291908181526020018280546102019061082d565b801561024e5780601f106102235761010080835404028352916020019161024e565b820191906000526020600020905b81548152906001019060200180831161023157829003601f168201915b5050505050905090565b600061026533848461040e565b50600192915050565b600061027b848484610532565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103055760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610312853385840361040e565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610265918590610354908690610867565b61040e565b6060600480546101d59061082d565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156103ea5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016102fc565b6103f7338585840361040e565b5060019392505050565b6000610265338484610532565b6001600160a01b0383166104705760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016102fc565b6001600160a01b0382166104d15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016102fc565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166105965760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016102fc565b6001600160a01b0382166105f85760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016102fc565b6001600160a01b038316600090815260208190526040902054818110156106705760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016102fc565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906106a7908490610867565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516106f391815260200190565b60405180910390a350505050565b600060208083528351808285015260005b8181101561072e57858101830151858201604001528201610712565b81811115610740576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461076d57600080fd5b919050565b6000806040838503121561078557600080fd5b61078e83610756565b946020939093013593505050565b6000806000606084860312156107b157600080fd5b6107ba84610756565b92506107c860208501610756565b9150604084013590509250925092565b6000602082840312156107ea57600080fd5b6107f382610756565b9392505050565b6000806040838503121561080d57600080fd5b61081683610756565b915061082460208401610756565b90509250929050565b600181811c9082168061084157607f821691505b60208210810361086157634e487b7160e01b600052602260045260246000fd5b50919050565b6000821982111561088857634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212209a9a301a380cdfb0390e49d7fd06c43a95227c8481cc05fc801e8e2a813b6fef64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name_", "type": "string", "internalType": "string"}, {"name": "symbol_", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How to implement supply mechanisms]. We have followed general OpenZeppelin Contracts guidelines: functions revert instead returning `false` on failure. This behavior is nonetheless conventional and does not conflict with the expectations of ERC20 applications. Additionally, an {Approval} event is emitted on calls to {transferFrom}. This allows applications to reconstruct the allowance for all accounts just by listening to said events. Other implementations of the EIP may not emit these events, as it isn't required by the specification. Finally, the non-standard {decreaseAllowance} and {increaseAllowance} functions have been added to mitigate the well-known issues around setting allowances. See {IERC20-approve}.", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "constructor": {"details": "Sets the values for {name} and {symbol}. The default value of {decimals} is 18. To select a different value for {decimals} you should overload it. All two of these values are immutable: they can only be set once during construction."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "IERC20": {"contractName": "IERC20", "sourceId": "token/ERC20/IERC20.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC20 standard as defined in the EIP.", "events": {"Approval(address,address,uint256)": {"details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."}, "Transfer(address,address,uint256)": {"details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."}}, "kind": "dev", "methods": {"allowance(address,address)": {"details": "Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called."}, "approve(address,uint256)": {"details": "Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event."}, "balanceOf(address)": {"details": "Returns the amount of tokens owned by `account`."}, "totalSupply()": {"details": "Returns the amount of tokens in existence."}, "transfer(address,uint256)": {"details": "Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."}, "transferFrom(address,address,uint256)": {"details": "Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."}}, "version": 1}}, "ERC20Burnable": {"contractName": "ERC20Burnable", "sourceId": "token/ERC20/extensions/ERC20Burnable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnFrom", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Extension of {ERC20} that allows token holders to destroy both their own tokens and those that they have an allowance for, in a way that can be recognized off-chain (via event analysis).", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "burn(uint256)": {"details": "Destroys `amount` tokens from the caller. See {ERC20-_burn}."}, "burnFrom(address,uint256)": {"details": "Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20Capped": {"contractName": "ERC20Capped", "sourceId": "token/ERC20/extensions/ERC20Capped.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "cap", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Extension of {ERC20} that adds a cap to the supply of tokens.", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "cap()": {"details": "Returns the cap on the token's total supply."}, "constructor": {"details": "Sets the value of the `cap`. This value is immutable, it can only be set once during construction."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20FlashMint": {"contractName": "ERC20FlashMint", "sourceId": "token/ERC20/extensions/ERC20FlashMint.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "flashFee", "stateMutability": "view", "inputs": [{"name": "token", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "flashLoan", "stateMutability": "nonpayable", "inputs": [{"name": "receiver", "type": "address", "internalType": "contract IERC3156FlashBorrower"}, {"name": "token", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "maxFlashLoan", "stateMutability": "view", "inputs": [{"name": "token", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of the ERC3156 Flash loans extension, as defined in https://eips.ethereum.org/EIPS/eip-3156[ERC-3156]. Adds the {flashLoan} method, which provides flash loan support at the token level. By default there is no fee, but this can be changed by overriding {flashFee}. _Available since v4.1._", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "flashFee(address,uint256)": {"details": "Returns the fee applied when doing flash loans. By default this implementation has 0 fees. This function can be overloaded to make the flash loan mechanism deflationary.", "params": {"amount": "The amount of tokens to be loaned.", "token": "The token to be flash loaned."}, "returns": {"_0": "The fees applied to the corresponding flash loan."}}, "flashLoan(address,address,uint256,bytes)": {"details": "Performs a flash loan. New tokens are minted and sent to the `receiver`, who is required to implement the {IERC3156FlashBorrower} interface. By the end of the flash loan, the receiver is expected to own amount + fee tokens and have them approved back to the token contract itself so they can be burned.", "params": {"amount": "The amount of tokens to be loaned.", "data": "An arbitrary datafield that is passed to the receiver.", "receiver": "The receiver of the flash loan. Should implement the {IERC3156FlashBorrower.onFlashLoan} interface.", "token": "The token to be flash loaned. Only `address(this)` is supported."}, "returns": {"_0": "`true` is the flash loan was successful."}}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "maxFlashLoan(address)": {"details": "Returns the maximum amount of tokens available for loan.", "params": {"token": "The address of the token that is requested."}, "returns": {"_0": "The amont of token that can be loaned."}}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20Pausable": {"contractName": "ERC20Pausable", "sourceId": "token/ERC20/extensions/ERC20Pausable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "ERC20 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug.", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20Snapshot": {"contractName": "ERC20Snapshot", "sourceId": "token/ERC20/extensions/ERC20Snapshot.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Snapshot", "inputs": [{"name": "id", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "balanceOfAt", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "snapshotId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "totalSupplyAt", "stateMutability": "view", "inputs": [{"name": "snapshotId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and total supply at the time are recorded for later access. This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting. In naive implementations it's possible to perform a \"double spend\" attack by reusing the same balance from different accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be used to create an efficient ERC20 forking mechanism. Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id and the account address. NOTE: Snapshot policy can be customized by overriding the {_getCurrentSnapshotId} method. For example, having it return `block.number` will trigger the creation of snapshot at the begining of each new block. When overridding this function, be careful about the monotonicity of its result. Non-monotonic snapshot ids will break the contract. Implementing snapshots for every block using this method will incur significant gas costs. For a gas-efficient alternative consider {ERC20Votes}. ==== Gas Costs Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much smaller since identical balances in subsequent snapshots are stored as a single entry. There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent transfers will have normal cost until the next snapshot, and so on.", "events": {"Snapshot(uint256)": {"details": "Emitted by {_snapshot} when a snapshot identified by `id` is created."}}, "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "balanceOfAt(address,uint256)": {"details": "Retrieves the balance of `account` at the time `snapshotId` was created."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "totalSupplyAt(uint256)": {"details": "Retrieves the total supply at the time `snapshotId` was created."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20Votes": {"contractName": "ERC20Votes", "sourceId": "token/ERC20/extensions/ERC20Votes.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "DelegateChanged", "inputs": [{"name": "delegator", "type": "address", "internalType": "address", "indexed": true}, {"name": "fromDelegate", "type": "address", "internalType": "address", "indexed": true}, {"name": "toDelegate", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "DelegateVotesChanged", "inputs": [{"name": "delegate", "type": "address", "internalType": "address", "indexed": true}, {"name": "previousBalance", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newBalance", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "DOMAIN_SEPARATOR", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "checkpoints", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "pos", "type": "uint32", "internalType": "uint32"}], "outputs": [{"name": "", "type": "tuple", "components": [{"name": "fromBlock", "type": "uint32", "internalType": "uint32"}, {"name": "votes", "type": "uint224", "internalType": "uint224"}], "internalType": "struct ERC20Votes.Checkpoint"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "delegate", "stateMutability": "nonpayable", "inputs": [{"name": "delegatee", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "delegateBySig", "stateMutability": "nonpayable", "inputs": [{"name": "delegatee", "type": "address", "internalType": "address"}, {"name": "nonce", "type": "uint256", "internalType": "uint256"}, {"name": "expiry", "type": "uint256", "internalType": "uint256"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "delegates", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getPastTotalSupply", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getPastVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "nonces", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "numCheckpoints", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint32", "internalType": "uint32"}]}, {"type": "function", "name": "permit", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "deadline", "type": "uint256", "internalType": "uint256"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Extension of ERC20 to support Compound-like voting and delegation. This version is more generic than Compound's, and supports token supply up to 2^224^ - 1, while COMP is limited to 2^96^ - 1. NOTE: If exact COMP compatibility is required, use the {ERC20VotesComp} variant of this module. This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting power can be queried through the public accessors {getVotes} and {getPastVotes}. By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked. Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this will significantly increase the base gas cost of transfers. _Available since v4.2._", "events": {"DelegateChanged(address,address,address)": {"details": "Emitted when an account changes their delegate."}, "DelegateVotesChanged(address,uint256,uint256)": {"details": "Emitted when a token transfer or delegate change results in changes to an account's voting power."}}, "kind": "dev", "methods": {"DOMAIN_SEPARATOR()": {"details": "See {IERC20Permit-DOMAIN_SEPARATOR}."}, "allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "checkpoints(address,uint32)": {"details": "Get the `pos`-th checkpoint for `account`."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "delegate(address)": {"details": "Delegate votes from the sender to `delegatee`."}, "delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32)": {"details": "Delegates votes from signer to `delegatee`"}, "delegates(address)": {"details": "Get the address `account` is currently delegating to."}, "getPastTotalSupply(uint256)": {"details": "Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances. It is but NOT the sum of all the delegated votes! Requirements: - `blockNumber` must have been already mined"}, "getPastVotes(address,uint256)": {"details": "Retrieve the number of votes for `account` at the end of `blockNumber`. Requirements: - `blockNumber` must have been already mined"}, "getVotes(address)": {"details": "Gets the current votes balance for `account`"}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "nonces(address)": {"details": "See {IERC20Permit-nonces}."}, "numCheckpoints(address)": {"details": "Get number of checkpoints for `account`."}, "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {"details": "See {IERC20Permit-permit}."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20VotesComp": {"contractName": "ERC20VotesComp", "sourceId": "token/ERC20/extensions/ERC20VotesComp.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "DelegateChanged", "inputs": [{"name": "delegator", "type": "address", "internalType": "address", "indexed": true}, {"name": "fromDelegate", "type": "address", "internalType": "address", "indexed": true}, {"name": "toDelegate", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "DelegateVotesChanged", "inputs": [{"name": "delegate", "type": "address", "internalType": "address", "indexed": true}, {"name": "previousBalance", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "newBalance", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "DOMAIN_SEPARATOR", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "checkpoints", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "pos", "type": "uint32", "internalType": "uint32"}], "outputs": [{"name": "", "type": "tuple", "components": [{"name": "fromBlock", "type": "uint32", "internalType": "uint32"}, {"name": "votes", "type": "uint224", "internalType": "uint224"}], "internalType": "struct ERC20Votes.Checkpoint"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "delegate", "stateMutability": "nonpayable", "inputs": [{"name": "delegatee", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "delegateBySig", "stateMutability": "nonpayable", "inputs": [{"name": "delegatee", "type": "address", "internalType": "address"}, {"name": "nonce", "type": "uint256", "internalType": "uint256"}, {"name": "expiry", "type": "uint256", "internalType": "uint256"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "delegates", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getCurrentVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint96", "internalType": "uint96"}]}, {"type": "function", "name": "getPastTotalSupply", "stateMutability": "view", "inputs": [{"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getPastVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getPriorVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "blockNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint96", "internalType": "uint96"}]}, {"type": "function", "name": "getVotes", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "nonces", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "numCheckpoints", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint32", "internalType": "uint32"}]}, {"type": "function", "name": "permit", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "deadline", "type": "uint256", "internalType": "uint256"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Extension of ERC20 to support Compound's voting and delegation. This version exactly matches Compound's interface, with the drawback of only supporting supply up to (2^96^ - 1). NOTE: You should use this contract if you need exact compatibility with COMP (for example in order to use your token with Governor Alpha or Bravo) and if you are sure the supply cap of 2^96^ is enough for you. Otherwise, use the {ERC20Votes} variant of this module. This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting power can be queried through the public accessors {getCurrentVotes} and {getPriorVotes}. By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked. Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this will significantly increase the base gas cost of transfers. _Available since v4.2._", "kind": "dev", "methods": {"DOMAIN_SEPARATOR()": {"details": "See {IERC20Permit-DOMAIN_SEPARATOR}."}, "allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "checkpoints(address,uint32)": {"details": "Get the `pos`-th checkpoint for `account`."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "delegate(address)": {"details": "Delegate votes from the sender to `delegatee`."}, "delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32)": {"details": "Delegates votes from signer to `delegatee`"}, "delegates(address)": {"details": "Get the address `account` is currently delegating to."}, "getCurrentVotes(address)": {"details": "Comp version of the {getVotes} accessor, with `uint96` return type."}, "getPastTotalSupply(uint256)": {"details": "Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances. It is but NOT the sum of all the delegated votes! Requirements: - `blockNumber` must have been already mined"}, "getPastVotes(address,uint256)": {"details": "Retrieve the number of votes for `account` at the end of `blockNumber`. Requirements: - `blockNumber` must have been already mined"}, "getPriorVotes(address,uint256)": {"details": "Comp version of the {getPastVotes} accessor, with `uint96` return type."}, "getVotes(address)": {"details": "Gets the current votes balance for `account`"}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "nonces(address)": {"details": "See {IERC20Permit-nonces}."}, "numCheckpoints(address)": {"details": "Get number of checkpoints for `account`."}, "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {"details": "See {IERC20Permit-permit}."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20Wrapper": {"contractName": "ERC20Wrapper", "sourceId": "token/ERC20/extensions/ERC20Wrapper.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "depositFor", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "underlying", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract IERC20"}]}, {"type": "function", "name": "withdrawTo", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Extension of the ERC20 token contract to support token wrapping. Users can deposit and withdraw \"underlying tokens\" and receive a matching number of \"wrapped tokens\". This is useful in conjunction with other modules. For example, combining this wrapping mechanism with {ERC20Votes} will allow the wrapping of an existing \"basic\" ERC20 into a governance token. _Available since v4.2._", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "depositFor(address,uint256)": {"details": "Allow a user to deposit underlying tokens and mint the corresponding number of wrapped tokens."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}, "withdrawTo(address,uint256)": {"details": "Allow a user to burn a number of wrapped tokens and withdraw the corresponding number of underlying tokens."}}, "version": 1}}, "IERC20Metadata": {"contractName": "IERC20Metadata", "sourceId": "token/ERC20/extensions/IERC20Metadata.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface for the optional metadata functions from the ERC20 standard. _Available since v4.1._", "kind": "dev", "methods": {"allowance(address,address)": {"details": "Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called."}, "approve(address,uint256)": {"details": "Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event."}, "balanceOf(address)": {"details": "Returns the amount of tokens owned by `account`."}, "decimals()": {"details": "Returns the decimals places of the token."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token."}, "totalSupply()": {"details": "Returns the amount of tokens in existence."}, "transfer(address,uint256)": {"details": "Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."}, "transferFrom(address,address,uint256)": {"details": "Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."}}, "version": 1}}, "ERC20Permit": {"contractName": "ERC20Permit", "sourceId": "token/ERC20/extensions/draft-ERC20Permit.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "DOMAIN_SEPARATOR", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "nonces", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "permit", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "deadline", "type": "uint256", "internalType": "uint256"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't need to send a transaction, and thus is not required to hold Ether at all. _Available since v3.4._", "kind": "dev", "methods": {"DOMAIN_SEPARATOR()": {"details": "See {IERC20Permit-DOMAIN_SEPARATOR}."}, "allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "constructor": {"details": "Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `\"1\"`. It's a good idea to use the same `name` that is defined as the ERC20 token name."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "nonces(address)": {"details": "See {IERC20Permit-nonces}."}, "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {"details": "See {IERC20Permit-permit}."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "IERC20Permit": {"contractName": "IERC20Permit", "sourceId": "token/ERC20/extensions/draft-IERC20Permit.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "DOMAIN_SEPARATOR", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "nonces", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "permit", "stateMutability": "nonpayable", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}, {"name": "deadline", "type": "uint256", "internalType": "uint256"}, {"name": "v", "type": "uint8", "internalType": "uint8"}, {"name": "r", "type": "bytes32", "internalType": "bytes32"}, {"name": "s", "type": "bytes32", "internalType": "bytes32"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't need to send a transaction, and thus is not required to hold Ether at all.", "kind": "dev", "methods": {"DOMAIN_SEPARATOR()": {"details": "Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}."}, "nonces(address)": {"details": "Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times."}, "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {"details": "Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section]."}}, "version": 1}}, "ERC20PresetFixedSupply": {"contractName": "ERC20PresetFixedSupply", "sourceId": "token/ERC20/presets/ERC20PresetFixedSupply.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162000f0f38038062000f0f8339810160408190526200003491620002dd565b8351849084906200004d9060039060208501906200016a565b508051620000639060049060208401906200016a565b5050506200007881836200008260201b60201c565b50505050620003d5565b6001600160a01b038216620000dd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620000f1919062000372565b90915550506001600160a01b038216600090815260208190526040812080548392906200012090849062000372565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001789062000399565b90600052602060002090601f0160209004810192826200019c5760008555620001e7565b82601f10620001b757805160ff1916838001178555620001e7565b82800160010185558215620001e7579182015b82811115620001e7578251825591602001919060010190620001ca565b50620001f5929150620001f9565b5090565b5b80821115620001f55760008155600101620001fa565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200023857600080fd5b81516001600160401b038082111562000255576200025562000210565b604051601f8301601f19908116603f0116810190828211818310171562000280576200028062000210565b816040528381526020925086838588010111156200029d57600080fd5b600091505b83821015620002c15785820183015181830184015290820190620002a2565b83821115620002d35760008385830101525b9695505050505050565b60008060008060808587031215620002f457600080fd5b84516001600160401b03808211156200030c57600080fd5b6200031a8883890162000226565b955060208701519150808211156200033157600080fd5b50620003408782880162000226565b60408701516060880151919550935090506001600160a01b03811681146200036757600080fd5b939692955090935050565b600082198211156200039457634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620003ae57607f821691505b602082108103620003cf57634e487b7160e01b600052602260045260246000fd5b50919050565b610b2a80620003e56000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b41146101ad578063a457c2d7146101b5578063a9059cbb146101c8578063dd62ed3e146101db57600080fd5b806342966c681461015c57806370a082311461017157806379cc67901461019a57600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a5780633950935114610149575b600080fd5b6100dc610214565b6040516100e99190610930565b60405180910390f35b6101056101003660046109a1565b6102a6565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b6101056101353660046109cb565b6102bc565b604051601281526020016100e9565b6101056101573660046109a1565b61036b565b61016f61016a366004610a07565b6103a7565b005b61011961017f366004610a20565b6001600160a01b031660009081526020819052604090205490565b61016f6101a83660046109a1565b6103b4565b6100dc61043a565b6101056101c33660046109a1565b610449565b6101056101d63660046109a1565b6104e2565b6101196101e9366004610a42565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461022390610a75565b80601f016020809104026020016040519081016040528092919081815260200182805461024f90610a75565b801561029c5780601f106102715761010080835404028352916020019161029c565b820191906000526020600020905b81548152906001019060200180831161027f57829003601f168201915b5050505050905090565b60006102b33384846104ef565b50600192915050565b60006102c9848484610613565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103535760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61036085338584036104ef565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102b39185906103a2908690610ac5565b6104ef565b6103b133826107e2565b50565b60006103c083336101e9565b90508181101561041e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b606482015260840161034a565b61042b83338484036104ef565b61043583836107e2565b505050565b60606004805461022390610a75565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104cb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161034a565b6104d833858584036104ef565b5060019392505050565b60006102b3338484610613565b6001600160a01b0383166105515760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161034a565b6001600160a01b0382166105b25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161034a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166106775760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161034a565b6001600160a01b0382166106d95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161034a565b6001600160a01b038316600090815260208190526040902054818110156107515760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161034a565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610788908490610ac5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516107d491815260200190565b60405180910390a350505050565b6001600160a01b0382166108425760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161034a565b6001600160a01b038216600090815260208190526040902054818110156108b65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161034a565b6001600160a01b03831660009081526020819052604081208383039055600280548492906108e5908490610add565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600060208083528351808285015260005b8181101561095d57858101830151858201604001528201610941565b8181111561096f576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461099c57600080fd5b919050565b600080604083850312156109b457600080fd5b6109bd83610985565b946020939093013593505050565b6000806000606084860312156109e057600080fd5b6109e984610985565b92506109f760208501610985565b9150604084013590509250925092565b600060208284031215610a1957600080fd5b5035919050565b600060208284031215610a3257600080fd5b610a3b82610985565b9392505050565b60008060408385031215610a5557600080fd5b610a5e83610985565b9150610a6c60208401610985565b90509250929050565b600181811c90821680610a8957607f821691505b602082108103610aa957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610ad857610ad8610aaf565b500190565b600082821015610aef57610aef610aaf565b50039056fea26469706673582212206b3c5445abf19842ca8d5aac3c7ade122a2e05d010bcc530a24f8378d5dd845d64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b41146101ad578063a457c2d7146101b5578063a9059cbb146101c8578063dd62ed3e146101db57600080fd5b806342966c681461015c57806370a082311461017157806379cc67901461019a57600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a5780633950935114610149575b600080fd5b6100dc610214565b6040516100e99190610930565b60405180910390f35b6101056101003660046109a1565b6102a6565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b6101056101353660046109cb565b6102bc565b604051601281526020016100e9565b6101056101573660046109a1565b61036b565b61016f61016a366004610a07565b6103a7565b005b61011961017f366004610a20565b6001600160a01b031660009081526020819052604090205490565b61016f6101a83660046109a1565b6103b4565b6100dc61043a565b6101056101c33660046109a1565b610449565b6101056101d63660046109a1565b6104e2565b6101196101e9366004610a42565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461022390610a75565b80601f016020809104026020016040519081016040528092919081815260200182805461024f90610a75565b801561029c5780601f106102715761010080835404028352916020019161029c565b820191906000526020600020905b81548152906001019060200180831161027f57829003601f168201915b5050505050905090565b60006102b33384846104ef565b50600192915050565b60006102c9848484610613565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103535760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61036085338584036104ef565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102b39185906103a2908690610ac5565b6104ef565b6103b133826107e2565b50565b60006103c083336101e9565b90508181101561041e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b606482015260840161034a565b61042b83338484036104ef565b61043583836107e2565b505050565b60606004805461022390610a75565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104cb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161034a565b6104d833858584036104ef565b5060019392505050565b60006102b3338484610613565b6001600160a01b0383166105515760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161034a565b6001600160a01b0382166105b25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161034a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166106775760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161034a565b6001600160a01b0382166106d95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161034a565b6001600160a01b038316600090815260208190526040902054818110156107515760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161034a565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610788908490610ac5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516107d491815260200190565b60405180910390a350505050565b6001600160a01b0382166108425760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161034a565b6001600160a01b038216600090815260208190526040902054818110156108b65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161034a565b6001600160a01b03831660009081526020819052604081208383039055600280548492906108e5908490610add565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600060208083528351808285015260005b8181101561095d57858101830151858201604001528201610941565b8181111561096f576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461099c57600080fd5b919050565b600080604083850312156109b457600080fd5b6109bd83610985565b946020939093013593505050565b6000806000606084860312156109e057600080fd5b6109e984610985565b92506109f760208501610985565b9150604084013590509250925092565b600060208284031215610a1957600080fd5b5035919050565b600060208284031215610a3257600080fd5b610a3b82610985565b9392505050565b60008060408385031215610a5557600080fd5b610a5e83610985565b9150610a6c60208401610985565b90509250929050565b600181811c90821680610a8957607f821691505b602082108103610aa957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610ad857610ad8610aaf565b500190565b600082821015610aef57610aef610aaf565b50039056fea26469706673582212206b3c5445abf19842ca8d5aac3c7ade122a2e05d010bcc530a24f8378d5dd845d64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "initialSupply", "type": "uint256", "internalType": "uint256"}, {"name": "owner", "type": "address", "internalType": "address"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnFrom", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "{ERC20} token, including: - Preminted initial supply - Ability for holders to burn (destroy) their tokens - No access control mechanism (for minting/pausing) and hence no governance This contract uses {ERC20Burnable} to include burn capabilities - head to its documentation for details. _Available since v3.4._", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "burn(uint256)": {"details": "Destroys `amount` tokens from the caller. See {ERC20-_burn}."}, "burnFrom(address,uint256)": {"details": "Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`."}, "constructor": {"details": "Mints `initialSupply` amount of token and transfers them to `owner`. See {ERC20-constructor}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "name()": {"details": "Returns the name of the token."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}}, "version": 1}}, "ERC20PresetMinterPauser": {"contractName": "ERC20PresetMinterPauser", "sourceId": "token/ERC20/presets/ERC20PresetMinterPauser.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162001df638038062001df68339810160408190526200003491620003b5565b8151829082906200004d90600590602085019062000242565b5080516200006390600690602084019062000242565b50506007805460ff19169055506200007d600033620000dd565b620000a97f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620000dd565b620000d57f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620000dd565b50506200045b565b620000e98282620000ed565b5050565b6200010482826200013060201b62000a611760201c565b60008281526001602090815260409091206200012b91839062000ae5620001d0821b17901c565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000e9576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200018c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620001e7836001600160a01b038416620001f0565b90505b92915050565b60008181526001830160205260408120546200023957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620001ea565b506000620001ea565b82805462000250906200041f565b90600052602060002090601f016020900481019282620002745760008555620002bf565b82601f106200028f57805160ff1916838001178555620002bf565b82800160010185558215620002bf579182015b82811115620002bf578251825591602001919060010190620002a2565b50620002cd929150620002d1565b5090565b5b80821115620002cd5760008155600101620002d2565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200031057600080fd5b81516001600160401b03808211156200032d576200032d620002e8565b604051601f8301601f19908116603f01168101908282118183101715620003585762000358620002e8565b816040528381526020925086838588010111156200037557600080fd5b600091505b838210156200039957858201830151818301840152908201906200037a565b83821115620003ab5760008385830101525b9695505050505050565b60008060408385031215620003c957600080fd5b82516001600160401b0380821115620003e157600080fd5b620003ef86838701620002fe565b935060208501519150808211156200040657600080fd5b506200041585828601620002fe565b9150509250929050565b600181811c908216806200043457607f821691505b6020821081036200045557634e487b7160e01b600052602260045260246000fd5b50919050565b61198b806200046b6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f9578063a457c2d711610097578063d539139311610071578063d5391393146103af578063d547741f146103d6578063dd62ed3e146103e9578063e63ab1e91461042257600080fd5b8063a457c2d714610376578063a9059cbb14610389578063ca15c8731461039c57600080fd5b80639010d07c116100d35780639010d07c1461032857806391d148541461035357806395d89b4114610366578063a217fddf1461036e57600080fd5b806370a08231146102e457806379cc67901461030d5780638456cb591461032057600080fd5b8063313ce567116101665780633f4ba83a116101405780633f4ba83a146102ab57806340c10f19146102b357806342966c68146102c65780635c975abb146102d957600080fd5b8063313ce5671461027657806336568abe14610285578063395093511461029857600080fd5b806318160ddd116101a257806318160ddd1461021957806323b872dd1461022b578063248a9ca31461023e5780632f2ff15d1461026157600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063095ea7b314610206575b600080fd5b6101dc6101d7366004611632565b610449565b60405190151581526020015b60405180910390f35b6101f9610474565b6040516101e89190611688565b6101dc6102143660046116d7565b610506565b6004545b6040519081526020016101e8565b6101dc610239366004611701565b61051c565b61021d61024c36600461173d565b60009081526020819052604090206001015490565b61027461026f366004611756565b6105cb565b005b604051601281526020016101e8565b610274610293366004611756565b6105f6565b6101dc6102a63660046116d7565b610674565b6102746106b0565b6102746102c13660046116d7565b610756565b6102746102d436600461173d565b6107f5565b60075460ff166101dc565b61021d6102f2366004611782565b6001600160a01b031660009081526002602052604090205490565b61027461031b3660046116d7565b610802565b610274610883565b61033b61033636600461179d565b610927565b6040516001600160a01b0390911681526020016101e8565b6101dc610361366004611756565b610946565b6101f961096f565b61021d600081565b6101dc6103843660046116d7565b61097e565b6101dc6103973660046116d7565b610a17565b61021d6103aa36600461173d565b610a24565b61021d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102746103e4366004611756565b610a3b565b61021d6103f73660046117bf565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b61021d7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60006001600160e01b03198216635a05180f60e01b148061046e575061046e82610afa565b92915050565b606060058054610483906117e9565b80601f01602080910402602001604051908101604052809291908181526020018280546104af906117e9565b80156104fc5780601f106104d1576101008083540402835291602001916104fc565b820191906000526020600020905b8154815290600101906020018083116104df57829003601f168201915b5050505050905090565b6000610513338484610b2f565b50600192915050565b6000610529848484610c53565b6001600160a01b0384166000908152600360209081526040808320338452909152902054828110156105b35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105c08533858403610b2f565b506001949350505050565b6000828152602081905260409020600101546105e78133610e2e565b6105f18383610e92565b505050565b6001600160a01b03811633146106665760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105aa565b6106708282610eb4565b5050565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916105139185906106ab908690611839565b610b2f565b6106da7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610946565b61074c5760405162461bcd60e51b815260206004820152603960248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20756e70617573650000000000000060648201526084016105aa565b610754610ed6565b565b6107807f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610946565b6107eb5760405162461bcd60e51b815260206004820152603660248201527f45524332305072657365744d696e7465725061757365723a206d7573742068616044820152751d99481b5a5b9d195c881c9bdb19481d1bc81b5a5b9d60521b60648201526084016105aa565b6106708282610f69565b6107ff3382611054565b50565b600061080e83336103f7565b90508181101561086c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b60648201526084016105aa565b6108798333848403610b2f565b6105f18383611054565b6108ad7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610946565b61091f5760405162461bcd60e51b815260206004820152603760248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20706175736500000000000000000060648201526084016105aa565b6107546111ae565b600082815260016020526040812061093f9083611229565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b606060068054610483906117e9565b3360009081526003602090815260408083206001600160a01b038616845290915281205482811015610a005760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105aa565b610a0d3385858403610b2f565b5060019392505050565b6000610513338484610c53565b600081815260016020526040812061046e90611235565b600082815260208190526040902060010154610a578133610e2e565b6105f18383610eb4565b610a6b8282610946565b610670576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610aa13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600061093f836001600160a01b03841661123f565b60006001600160e01b03198216637965db0b60e01b148061046e57506301ffc9a760e01b6001600160e01b031983161461046e565b6001600160a01b038316610b915760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105aa565b6001600160a01b038216610bf25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105aa565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610cb75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105aa565b6001600160a01b038216610d195760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105aa565b610d2483838361128e565b6001600160a01b03831660009081526002602052604090205481811015610d9c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105aa565b6001600160a01b03808516600090815260026020526040808220858503905591851681529081208054849290610dd3908490611839565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610e1f91815260200190565b60405180910390a35b50505050565b610e388282610946565b61067057610e50816001600160a01b03166014611299565b610e5b836020611299565b604051602001610e6c929190611851565b60408051601f198184030181529082905262461bcd60e51b82526105aa91600401611688565b610e9c8282610a61565b60008281526001602052604090206105f19082610ae5565b610ebe8282611435565b60008281526001602052604090206105f1908261149a565b60075460ff16610f1f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105aa565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038216610fbf5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105aa565b610fcb6000838361128e565b8060046000828254610fdd9190611839565b90915550506001600160a01b0382166000908152600260205260408120805483929061100a908490611839565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166110b45760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105aa565b6110c08260008361128e565b6001600160a01b038216600090815260026020526040902054818110156111345760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105aa565b6001600160a01b03831660009081526002602052604081208383039055600480548492906111639084906118c6565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60075460ff16156111f45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105aa565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610f4c3390565b600061093f83836114af565b600061046e825490565b60008181526001830160205260408120546112865750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561046e565b50600061046e565b6105f18383836114d9565b606060006112a88360026118dd565b6112b3906002611839565b67ffffffffffffffff8111156112cb576112cb6118fc565b6040519080825280601f01601f1916602001820160405280156112f5576020820181803683370190505b509050600360fc1b8160008151811061131057611310611912565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061133f5761133f611912565b60200101906001600160f81b031916908160001a90535060006113638460026118dd565b61136e906001611839565b90505b60018111156113e6576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106113a2576113a2611912565b1a60f81b8282815181106113b8576113b8611912565b60200101906001600160f81b031916908160001a90535060049490941c936113df81611928565b9050611371565b50831561093f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105aa565b61143f8282610946565b15610670576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061093f836001600160a01b03841661153f565b60008260000182815481106114c6576114c6611912565b9060005260206000200154905092915050565b60075460ff16156105f15760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b60648201526084016105aa565b600081815260018301602052604081205480156116285760006115636001836118c6565b8554909150600090611577906001906118c6565b90508181146115dc57600086600001828154811061159757611597611912565b90600052602060002001549050808760000184815481106115ba576115ba611912565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806115ed576115ed61193f565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061046e565b600091505061046e565b60006020828403121561164457600080fd5b81356001600160e01b03198116811461093f57600080fd5b60005b8381101561167757818101518382015260200161165f565b83811115610e285750506000910152565b60208152600082518060208401526116a781604085016020870161165c565b601f01601f19169190910160400192915050565b80356001600160a01b03811681146116d257600080fd5b919050565b600080604083850312156116ea57600080fd5b6116f3836116bb565b946020939093013593505050565b60008060006060848603121561171657600080fd5b61171f846116bb565b925061172d602085016116bb565b9150604084013590509250925092565b60006020828403121561174f57600080fd5b5035919050565b6000806040838503121561176957600080fd5b82359150611779602084016116bb565b90509250929050565b60006020828403121561179457600080fd5b61093f826116bb565b600080604083850312156117b057600080fd5b50508035926020909101359150565b600080604083850312156117d257600080fd5b6117db836116bb565b9150611779602084016116bb565b600181811c908216806117fd57607f821691505b60208210810361181d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561184c5761184c611823565b500190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161188981601785016020880161165c565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516118ba81602884016020880161165c565b01602801949350505050565b6000828210156118d8576118d8611823565b500390565b60008160001904831182151516156118f7576118f7611823565b500290565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008161193757611937611823565b506000190190565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220d66b65a46bd6ab820c2d7764cc8a0a2a185db4be0516e306bd4af6c03a72ee8764736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f9578063a457c2d711610097578063d539139311610071578063d5391393146103af578063d547741f146103d6578063dd62ed3e146103e9578063e63ab1e91461042257600080fd5b8063a457c2d714610376578063a9059cbb14610389578063ca15c8731461039c57600080fd5b80639010d07c116100d35780639010d07c1461032857806391d148541461035357806395d89b4114610366578063a217fddf1461036e57600080fd5b806370a08231146102e457806379cc67901461030d5780638456cb591461032057600080fd5b8063313ce567116101665780633f4ba83a116101405780633f4ba83a146102ab57806340c10f19146102b357806342966c68146102c65780635c975abb146102d957600080fd5b8063313ce5671461027657806336568abe14610285578063395093511461029857600080fd5b806318160ddd116101a257806318160ddd1461021957806323b872dd1461022b578063248a9ca31461023e5780632f2ff15d1461026157600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063095ea7b314610206575b600080fd5b6101dc6101d7366004611632565b610449565b60405190151581526020015b60405180910390f35b6101f9610474565b6040516101e89190611688565b6101dc6102143660046116d7565b610506565b6004545b6040519081526020016101e8565b6101dc610239366004611701565b61051c565b61021d61024c36600461173d565b60009081526020819052604090206001015490565b61027461026f366004611756565b6105cb565b005b604051601281526020016101e8565b610274610293366004611756565b6105f6565b6101dc6102a63660046116d7565b610674565b6102746106b0565b6102746102c13660046116d7565b610756565b6102746102d436600461173d565b6107f5565b60075460ff166101dc565b61021d6102f2366004611782565b6001600160a01b031660009081526002602052604090205490565b61027461031b3660046116d7565b610802565b610274610883565b61033b61033636600461179d565b610927565b6040516001600160a01b0390911681526020016101e8565b6101dc610361366004611756565b610946565b6101f961096f565b61021d600081565b6101dc6103843660046116d7565b61097e565b6101dc6103973660046116d7565b610a17565b61021d6103aa36600461173d565b610a24565b61021d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102746103e4366004611756565b610a3b565b61021d6103f73660046117bf565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b61021d7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60006001600160e01b03198216635a05180f60e01b148061046e575061046e82610afa565b92915050565b606060058054610483906117e9565b80601f01602080910402602001604051908101604052809291908181526020018280546104af906117e9565b80156104fc5780601f106104d1576101008083540402835291602001916104fc565b820191906000526020600020905b8154815290600101906020018083116104df57829003601f168201915b5050505050905090565b6000610513338484610b2f565b50600192915050565b6000610529848484610c53565b6001600160a01b0384166000908152600360209081526040808320338452909152902054828110156105b35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105c08533858403610b2f565b506001949350505050565b6000828152602081905260409020600101546105e78133610e2e565b6105f18383610e92565b505050565b6001600160a01b03811633146106665760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105aa565b6106708282610eb4565b5050565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916105139185906106ab908690611839565b610b2f565b6106da7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610946565b61074c5760405162461bcd60e51b815260206004820152603960248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20756e70617573650000000000000060648201526084016105aa565b610754610ed6565b565b6107807f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610946565b6107eb5760405162461bcd60e51b815260206004820152603660248201527f45524332305072657365744d696e7465725061757365723a206d7573742068616044820152751d99481b5a5b9d195c881c9bdb19481d1bc81b5a5b9d60521b60648201526084016105aa565b6106708282610f69565b6107ff3382611054565b50565b600061080e83336103f7565b90508181101561086c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b60648201526084016105aa565b6108798333848403610b2f565b6105f18383611054565b6108ad7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610946565b61091f5760405162461bcd60e51b815260206004820152603760248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20706175736500000000000000000060648201526084016105aa565b6107546111ae565b600082815260016020526040812061093f9083611229565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b606060068054610483906117e9565b3360009081526003602090815260408083206001600160a01b038616845290915281205482811015610a005760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105aa565b610a0d3385858403610b2f565b5060019392505050565b6000610513338484610c53565b600081815260016020526040812061046e90611235565b600082815260208190526040902060010154610a578133610e2e565b6105f18383610eb4565b610a6b8282610946565b610670576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610aa13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600061093f836001600160a01b03841661123f565b60006001600160e01b03198216637965db0b60e01b148061046e57506301ffc9a760e01b6001600160e01b031983161461046e565b6001600160a01b038316610b915760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105aa565b6001600160a01b038216610bf25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105aa565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610cb75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105aa565b6001600160a01b038216610d195760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105aa565b610d2483838361128e565b6001600160a01b03831660009081526002602052604090205481811015610d9c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105aa565b6001600160a01b03808516600090815260026020526040808220858503905591851681529081208054849290610dd3908490611839565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610e1f91815260200190565b60405180910390a35b50505050565b610e388282610946565b61067057610e50816001600160a01b03166014611299565b610e5b836020611299565b604051602001610e6c929190611851565b60408051601f198184030181529082905262461bcd60e51b82526105aa91600401611688565b610e9c8282610a61565b60008281526001602052604090206105f19082610ae5565b610ebe8282611435565b60008281526001602052604090206105f1908261149a565b60075460ff16610f1f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105aa565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038216610fbf5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105aa565b610fcb6000838361128e565b8060046000828254610fdd9190611839565b90915550506001600160a01b0382166000908152600260205260408120805483929061100a908490611839565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166110b45760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105aa565b6110c08260008361128e565b6001600160a01b038216600090815260026020526040902054818110156111345760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105aa565b6001600160a01b03831660009081526002602052604081208383039055600480548492906111639084906118c6565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60075460ff16156111f45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105aa565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610f4c3390565b600061093f83836114af565b600061046e825490565b60008181526001830160205260408120546112865750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561046e565b50600061046e565b6105f18383836114d9565b606060006112a88360026118dd565b6112b3906002611839565b67ffffffffffffffff8111156112cb576112cb6118fc565b6040519080825280601f01601f1916602001820160405280156112f5576020820181803683370190505b509050600360fc1b8160008151811061131057611310611912565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061133f5761133f611912565b60200101906001600160f81b031916908160001a90535060006113638460026118dd565b61136e906001611839565b90505b60018111156113e6576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106113a2576113a2611912565b1a60f81b8282815181106113b8576113b8611912565b60200101906001600160f81b031916908160001a90535060049490941c936113df81611928565b9050611371565b50831561093f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105aa565b61143f8282610946565b15610670576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061093f836001600160a01b03841661153f565b60008260000182815481106114c6576114c6611912565b9060005260206000200154905092915050565b60075460ff16156105f15760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b60648201526084016105aa565b600081815260018301602052604081205480156116285760006115636001836118c6565b8554909150600090611577906001906118c6565b90508181146115dc57600086600001828154811061159757611597611912565b90600052602060002001549050808760000184815481106115ba576115ba611912565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806115ed576115ed61193f565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061046e565b600091505061046e565b60006020828403121561164457600080fd5b81356001600160e01b03198116811461093f57600080fd5b60005b8381101561167757818101518382015260200161165f565b83811115610e285750506000910152565b60208152600082518060208401526116a781604085016020870161165c565b601f01601f19169190910160400192915050565b80356001600160a01b03811681146116d257600080fd5b919050565b600080604083850312156116ea57600080fd5b6116f3836116bb565b946020939093013593505050565b60008060006060848603121561171657600080fd5b61171f846116bb565b925061172d602085016116bb565b9150604084013590509250925092565b60006020828403121561174f57600080fd5b5035919050565b6000806040838503121561176957600080fd5b82359150611779602084016116bb565b90509250929050565b60006020828403121561179457600080fd5b61093f826116bb565b600080604083850312156117b057600080fd5b50508035926020909101359150565b600080604083850312156117d257600080fd5b6117db836116bb565b9150611779602084016116bb565b600181811c908216806117fd57607f821691505b60208210810361181d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561184c5761184c611823565b500190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161188981601785016020880161165c565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516118ba81602884016020880161165c565b01602801949350505050565b6000828210156118d8576118d8611823565b500390565b60008160001904831182151516156118f7576118f7611823565b500290565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008161193757611937611823565b506000190190565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220d66b65a46bd6ab820c2d7764cc8a0a2a185db4be0516e306bd4af6c03a72ee8764736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "MINTER_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "PAUSER_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "burnFrom", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "subtractedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleMember", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getRoleMemberCount", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "addedValue", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "{ERC20} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers This contract uses {AccessControl} to lock permissioned functions using the different roles - head to its documentation for details. The account that deploys the contract will be granted the minter and pauser roles, as well as the default admin role, which will let it grant both minter and pauser roles to other accounts.", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."}, "balanceOf(address)": {"details": "See {IERC20-balanceOf}."}, "burn(uint256)": {"details": "Destroys `amount` tokens from the caller. See {ERC20-_burn}."}, "burnFrom(address,uint256)": {"details": "Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`."}, "constructor": {"details": "Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the account that deploys the contract. See {ERC20-constructor}."}, "decimals()": {"details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."}, "decreaseAllowance(address,uint256)": {"details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."}, "getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."}, "getRoleMember(bytes32,uint256)": {"details": "Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."}, "getRoleMemberCount(bytes32)": {"details": "Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "increaseAllowance(address,uint256)": {"details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."}, "mint(address,uint256)": {"details": "Creates `amount` new tokens for `to`. See {ERC20-_mint}. Requirements: - the caller must have the `MINTER_ROLE`."}, "name()": {"details": "Returns the name of the token."}, "pause()": {"details": "Pauses all token transfers. See {ERC20Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "See {IERC20-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}, "unpause()": {"details": "Unpauses all token transfers. See {ERC20Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`."}}, "version": 1}}, "SafeERC20": {"contractName": "SafeERC20", "sourceId": "token/ERC20/utils/SafeERC20.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122002e1f24589b80e491b90e4d9f6ce918a38891e6e7882999620d80c8ca9aade0964736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122002e1f24589b80e491b90e4d9f6ce918a38891e6e7882999620d80c8ca9aade0964736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, which allows you to call the safe operations as `token.safeTransfer(...)`, etc.", "kind": "dev", "methods": {}, "title": "SafeERC20", "version": 1}}, "TokenTimelock": {"contractName": "TokenTimelock", "sourceId": "token/ERC20/utils/TokenTimelock.sol", "deploymentBytecode": {"bytecode": "0x60e060405234801561001057600080fd5b506040516107ad3803806107ad83398101604081905261002f916100d0565b42811161009d5760405162461bcd60e51b815260206004820152603260248201527f546f6b656e54696d656c6f636b3a2072656c656173652074696d65206973206260448201527165666f72652063757272656e742074696d6560701b606482015260840160405180910390fd5b6001600160a01b03928316608052911660a05260c052610113565b6001600160a01b03811681146100cd57600080fd5b50565b6000806000606084860312156100e557600080fd5b83516100f0816100b8565b6020850151909350610101816100b8565b80925050604084015190509250925092565b60805160a05160c05161065361015a60003960008181609f015260f00152600081816053015261029801526000818160ca01528181610182015261027601526106536000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806338af3eed1461005157806386d1a69f14610090578063b91d40011461009a578063fc0c546a146100c8575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b0390911681526020015b60405180910390f35b6100986100ee565b005b6040517f00000000000000000000000000000000000000000000000000000000000000008152602001610087565b7f0000000000000000000000000000000000000000000000000000000000000000610073565b7f000000000000000000000000000000000000000000000000000000000000000042101561017e5760405162461bcd60e51b815260206004820152603260248201527f546f6b656e54696d656c6f636b3a2063757272656e742074696d65206973206260448201527165666f72652072656c656173652074696d6560701b60648201526084015b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156101e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061020b9190610563565b9050600081116102695760405162461bcd60e51b815260206004820152602360248201527f546f6b656e54696d656c6f636b3a206e6f20746f6b656e7320746f2072656c6560448201526261736560e81b6064820152608401610175565b6102bd6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000836102c0565b50565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610312908490610317565b505050565b600061036c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166103e99092919063ffffffff16565b805190915015610312578080602001905181019061038a919061057c565b6103125760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610175565b60606103f88484600085610402565b90505b9392505050565b6060824710156104635760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610175565b843b6104b15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610175565b600080866001600160a01b031685876040516104cd91906105ce565b60006040518083038185875af1925050503d806000811461050a576040519150601f19603f3d011682016040523d82523d6000602084013e61050f565b606091505b509150915061051f82828661052a565b979650505050505050565b606083156105395750816103fb565b8251156105495782518084602001fd5b8160405162461bcd60e51b815260040161017591906105ea565b60006020828403121561057557600080fd5b5051919050565b60006020828403121561058e57600080fd5b815180151581146103fb57600080fd5b60005b838110156105b95781810151838201526020016105a1565b838111156105c8576000848401525b50505050565b600082516105e081846020870161059e565b9190910192915050565b602081526000825180602084015261060981604085016020870161059e565b601f01601f1916919091016040019291505056fea2646970667358221220cee27fe152d3ef7359d379d59a9c9fad60d770a92bffbea6a00c7f4f86bebbf764736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806338af3eed1461005157806386d1a69f14610090578063b91d40011461009a578063fc0c546a146100c8575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b0390911681526020015b60405180910390f35b6100986100ee565b005b6040517f00000000000000000000000000000000000000000000000000000000000000008152602001610087565b7f0000000000000000000000000000000000000000000000000000000000000000610073565b7f000000000000000000000000000000000000000000000000000000000000000042101561017e5760405162461bcd60e51b815260206004820152603260248201527f546f6b656e54696d656c6f636b3a2063757272656e742074696d65206973206260448201527165666f72652072656c656173652074696d6560701b60648201526084015b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156101e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061020b9190610563565b9050600081116102695760405162461bcd60e51b815260206004820152602360248201527f546f6b656e54696d656c6f636b3a206e6f20746f6b656e7320746f2072656c6560448201526261736560e81b6064820152608401610175565b6102bd6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000836102c0565b50565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610312908490610317565b505050565b600061036c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166103e99092919063ffffffff16565b805190915015610312578080602001905181019061038a919061057c565b6103125760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610175565b60606103f88484600085610402565b90505b9392505050565b6060824710156104635760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610175565b843b6104b15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610175565b600080866001600160a01b031685876040516104cd91906105ce565b60006040518083038185875af1925050503d806000811461050a576040519150601f19603f3d011682016040523d82523d6000602084013e61050f565b606091505b509150915061051f82828661052a565b979650505050505050565b606083156105395750816103fb565b8251156105495782518084602001fd5b8160405162461bcd60e51b815260040161017591906105ea565b60006020828403121561057557600080fd5b5051919050565b60006020828403121561058e57600080fd5b815180151581146103fb57600080fd5b60005b838110156105b95781810151838201526020016105a1565b838111156105c8576000848401525b50505050565b600082516105e081846020870161059e565b9190910192915050565b602081526000825180602084015261060981604085016020870161059e565b601f01601f1916919091016040019291505056fea2646970667358221220cee27fe152d3ef7359d379d59a9c9fad60d770a92bffbea6a00c7f4f86bebbf764736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "token_", "type": "address", "internalType": "contract IERC20"}, {"name": "beneficiary_", "type": "address", "internalType": "address"}, {"name": "releaseTime_", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "beneficiary", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "release", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "releaseTime", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "token", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "contract IERC20"}]}], "userdoc": {"kind": "user", "methods": {"release()": {"notice": "Transfers tokens held by timelock to beneficiary."}}, "version": 1}, "devdoc": {"details": "A token holder contract that will allow a beneficiary to extract the tokens after a given release time. Useful for simple vesting schedules like \"advisors get all of their tokens after 1 year\".", "kind": "dev", "methods": {"beneficiary()": {"returns": {"_0": "the beneficiary of the tokens."}}, "releaseTime()": {"returns": {"_0": "the time when the tokens are released."}}, "token()": {"returns": {"_0": "the token being held."}}}, "version": 1}}, "ERC721": {"contractName": "ERC721", "sourceId": "token/ERC721/ERC721.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b50604051620014e2380380620014e28339810160408190526200003491620001db565b81516200004990600090602085019062000068565b5080516200005f90600190602084019062000068565b50505062000281565b828054620000769062000245565b90600052602060002090601f0160209004810192826200009a5760008555620000e5565b82601f10620000b557805160ff1916838001178555620000e5565b82800160010185558215620000e5579182015b82811115620000e5578251825591602001919060010190620000c8565b50620000f3929150620000f7565b5090565b5b80821115620000f35760008155600101620000f8565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013657600080fd5b81516001600160401b03808211156200015357620001536200010e565b604051601f8301601f19908116603f011681019082821181831017156200017e576200017e6200010e565b816040528381526020925086838588010111156200019b57600080fd5b600091505b83821015620001bf5785820183015181830184015290820190620001a0565b83821115620001d15760008385830101525b9695505050505050565b60008060408385031215620001ef57600080fd5b82516001600160401b03808211156200020757600080fd5b620002158683870162000124565b935060208501519150808211156200022c57600080fd5b506200023b8582860162000124565b9150509250929050565b600181811c908216806200025a57607f821691505b6020821081036200027b57634e487b7160e01b600052602260045260246000fd5b50919050565b61125180620002916000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80636352211e1161008c578063a22cb46511610066578063a22cb465146101b3578063b88d4fde146101c6578063c87b56dd146101d9578063e985e9c5146101ec57600080fd5b80636352211e1461017757806370a082311461018a57806395d89b41146101ab57600080fd5b806301ffc9a7146100d457806306fdde03146100fc578063081812fc14610111578063095ea7b31461013c57806323b872dd1461015157806342842e0e14610164575b600080fd5b6100e76100e2366004610d64565b610228565b60405190151581526020015b60405180910390f35b61010461027a565b6040516100f39190610dd9565b61012461011f366004610dec565b61030c565b6040516001600160a01b0390911681526020016100f3565b61014f61014a366004610e21565b6103a6565b005b61014f61015f366004610e4b565b6104bb565b61014f610172366004610e4b565b6104ec565b610124610185366004610dec565b610507565b61019d610198366004610e87565b61057e565b6040519081526020016100f3565b610104610605565b61014f6101c1366004610ea2565b610614565b61014f6101d4366004610ef4565b610623565b6101046101e7366004610dec565b61065b565b6100e76101fa366004610fd0565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061025957506001600160e01b03198216635b5e139f60e01b145b8061027457506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461028990611003565b80601f01602080910402602001604051908101604052809291908181526020018280546102b590611003565b80156103025780601f106102d757610100808354040283529160200191610302565b820191906000526020600020905b8154815290600101906020018083116102e557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661038a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006103b182610507565b9050806001600160a01b0316836001600160a01b03160361041e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610381565b336001600160a01b038216148061043a575061043a81336101fa565b6104ac5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610381565b6104b68383610743565b505050565b6104c533826107b1565b6104e15760405162461bcd60e51b81526004016103819061103d565b6104b68383836108a8565b6104b683838360405180602001604052806000815250610623565b6000818152600260205260408120546001600160a01b0316806102745760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610381565b60006001600160a01b0382166105e95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610381565b506001600160a01b031660009081526003602052604090205490565b60606001805461028990611003565b61061f338383610a48565b5050565b61062d33836107b1565b6106495760405162461bcd60e51b81526004016103819061103d565b61065584848484610b16565b50505050565b6000818152600260205260409020546060906001600160a01b03166106da5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610381565b60006106f160408051602081019091526000815290565b90506000815111610711576040518060200160405280600081525061073c565b8061071b84610b49565b60405160200161072c92919061108e565b6040516020818303038152906040525b9392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061077882610507565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661082a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610381565b600061083583610507565b9050806001600160a01b0316846001600160a01b031614806108705750836001600160a01b03166108658461030c565b6001600160a01b0316145b806108a057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166108bb82610507565b6001600160a01b0316146109235760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610381565b6001600160a01b0382166109855760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610381565b610990600082610743565b6001600160a01b03831660009081526003602052604081208054600192906109b99084906110d3565b90915550506001600160a01b03821660009081526003602052604081208054600192906109e79084906110ea565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031603610aa95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610381565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610b218484846108a8565b610b2d84848484610c4a565b6106555760405162461bcd60e51b815260040161038190611102565b606081600003610b705750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610b9a5780610b8481611154565b9150610b939050600a83611183565b9150610b74565b60008167ffffffffffffffff811115610bb557610bb5610ede565b6040519080825280601f01601f191660200182016040528015610bdf576020820181803683370190505b5090505b84156108a057610bf46001836110d3565b9150610c01600a86611197565b610c0c9060306110ea565b60f81b818381518110610c2157610c216111ab565b60200101906001600160f81b031916908160001a905350610c43600a86611183565b9450610be3565b60006001600160a01b0384163b15610d4057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610c8e9033908990889088906004016111c1565b6020604051808303816000875af1925050508015610cc9575060408051601f3d908101601f19168201909252610cc6918101906111fe565b60015b610d26573d808015610cf7576040519150601f19603f3d011682016040523d82523d6000602084013e610cfc565b606091505b508051600003610d1e5760405162461bcd60e51b815260040161038190611102565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506108a0565b506001949350505050565b6001600160e01b031981168114610d6157600080fd5b50565b600060208284031215610d7657600080fd5b813561073c81610d4b565b60005b83811015610d9c578181015183820152602001610d84565b838111156106555750506000910152565b60008151808452610dc5816020860160208601610d81565b601f01601f19169290920160200192915050565b60208152600061073c6020830184610dad565b600060208284031215610dfe57600080fd5b5035919050565b80356001600160a01b0381168114610e1c57600080fd5b919050565b60008060408385031215610e3457600080fd5b610e3d83610e05565b946020939093013593505050565b600080600060608486031215610e6057600080fd5b610e6984610e05565b9250610e7760208501610e05565b9150604084013590509250925092565b600060208284031215610e9957600080fd5b61073c82610e05565b60008060408385031215610eb557600080fd5b610ebe83610e05565b915060208301358015158114610ed357600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215610f0a57600080fd5b610f1385610e05565b9350610f2160208601610e05565b925060408501359150606085013567ffffffffffffffff80821115610f4557600080fd5b818701915087601f830112610f5957600080fd5b813581811115610f6b57610f6b610ede565b604051601f8201601f19908116603f01168101908382118183101715610f9357610f93610ede565b816040528281528a6020848701011115610fac57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215610fe357600080fd5b610fec83610e05565b9150610ffa60208401610e05565b90509250929050565b600181811c9082168061101757607f821691505b60208210810361103757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600083516110a0818460208801610d81565b8351908301906110b4818360208801610d81565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156110e5576110e56110bd565b500390565b600082198211156110fd576110fd6110bd565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060018201611166576111666110bd565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826111925761119261116d565b500490565b6000826111a6576111a661116d565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906111f490830184610dad565b9695505050505050565b60006020828403121561121057600080fd5b815161073c81610d4b56fea26469706673582212205a7990f6e21ce04126d88014343237026163eb550d89924fe4ea287983fe846264736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80636352211e1161008c578063a22cb46511610066578063a22cb465146101b3578063b88d4fde146101c6578063c87b56dd146101d9578063e985e9c5146101ec57600080fd5b80636352211e1461017757806370a082311461018a57806395d89b41146101ab57600080fd5b806301ffc9a7146100d457806306fdde03146100fc578063081812fc14610111578063095ea7b31461013c57806323b872dd1461015157806342842e0e14610164575b600080fd5b6100e76100e2366004610d64565b610228565b60405190151581526020015b60405180910390f35b61010461027a565b6040516100f39190610dd9565b61012461011f366004610dec565b61030c565b6040516001600160a01b0390911681526020016100f3565b61014f61014a366004610e21565b6103a6565b005b61014f61015f366004610e4b565b6104bb565b61014f610172366004610e4b565b6104ec565b610124610185366004610dec565b610507565b61019d610198366004610e87565b61057e565b6040519081526020016100f3565b610104610605565b61014f6101c1366004610ea2565b610614565b61014f6101d4366004610ef4565b610623565b6101046101e7366004610dec565b61065b565b6100e76101fa366004610fd0565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061025957506001600160e01b03198216635b5e139f60e01b145b8061027457506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461028990611003565b80601f01602080910402602001604051908101604052809291908181526020018280546102b590611003565b80156103025780601f106102d757610100808354040283529160200191610302565b820191906000526020600020905b8154815290600101906020018083116102e557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661038a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006103b182610507565b9050806001600160a01b0316836001600160a01b03160361041e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610381565b336001600160a01b038216148061043a575061043a81336101fa565b6104ac5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610381565b6104b68383610743565b505050565b6104c533826107b1565b6104e15760405162461bcd60e51b81526004016103819061103d565b6104b68383836108a8565b6104b683838360405180602001604052806000815250610623565b6000818152600260205260408120546001600160a01b0316806102745760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610381565b60006001600160a01b0382166105e95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610381565b506001600160a01b031660009081526003602052604090205490565b60606001805461028990611003565b61061f338383610a48565b5050565b61062d33836107b1565b6106495760405162461bcd60e51b81526004016103819061103d565b61065584848484610b16565b50505050565b6000818152600260205260409020546060906001600160a01b03166106da5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610381565b60006106f160408051602081019091526000815290565b90506000815111610711576040518060200160405280600081525061073c565b8061071b84610b49565b60405160200161072c92919061108e565b6040516020818303038152906040525b9392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061077882610507565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661082a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610381565b600061083583610507565b9050806001600160a01b0316846001600160a01b031614806108705750836001600160a01b03166108658461030c565b6001600160a01b0316145b806108a057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166108bb82610507565b6001600160a01b0316146109235760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610381565b6001600160a01b0382166109855760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610381565b610990600082610743565b6001600160a01b03831660009081526003602052604081208054600192906109b99084906110d3565b90915550506001600160a01b03821660009081526003602052604081208054600192906109e79084906110ea565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031603610aa95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610381565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610b218484846108a8565b610b2d84848484610c4a565b6106555760405162461bcd60e51b815260040161038190611102565b606081600003610b705750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610b9a5780610b8481611154565b9150610b939050600a83611183565b9150610b74565b60008167ffffffffffffffff811115610bb557610bb5610ede565b6040519080825280601f01601f191660200182016040528015610bdf576020820181803683370190505b5090505b84156108a057610bf46001836110d3565b9150610c01600a86611197565b610c0c9060306110ea565b60f81b818381518110610c2157610c216111ab565b60200101906001600160f81b031916908160001a905350610c43600a86611183565b9450610be3565b60006001600160a01b0384163b15610d4057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610c8e9033908990889088906004016111c1565b6020604051808303816000875af1925050508015610cc9575060408051601f3d908101601f19168201909252610cc6918101906111fe565b60015b610d26573d808015610cf7576040519150601f19603f3d011682016040523d82523d6000602084013e610cfc565b606091505b508051600003610d1e5760405162461bcd60e51b815260040161038190611102565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506108a0565b506001949350505050565b6001600160e01b031981168114610d6157600080fd5b50565b600060208284031215610d7657600080fd5b813561073c81610d4b565b60005b83811015610d9c578181015183820152602001610d84565b838111156106555750506000910152565b60008151808452610dc5816020860160208601610d81565b601f01601f19169290920160200192915050565b60208152600061073c6020830184610dad565b600060208284031215610dfe57600080fd5b5035919050565b80356001600160a01b0381168114610e1c57600080fd5b919050565b60008060408385031215610e3457600080fd5b610e3d83610e05565b946020939093013593505050565b600080600060608486031215610e6057600080fd5b610e6984610e05565b9250610e7760208501610e05565b9150604084013590509250925092565b600060208284031215610e9957600080fd5b61073c82610e05565b60008060408385031215610eb557600080fd5b610ebe83610e05565b915060208301358015158114610ed357600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215610f0a57600080fd5b610f1385610e05565b9350610f2160208601610e05565b925060408501359150606085013567ffffffffffffffff80821115610f4557600080fd5b818701915087601f830112610f5957600080fd5b813581811115610f6b57610f6b610ede565b604051601f8201601f19908116603f01168101908382118183101715610f9357610f93610ede565b816040528281528a6020848701011115610fac57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215610fe357600080fd5b610fec83610e05565b9150610ffa60208401610e05565b90509250929050565b600181811c9082168061101757607f821691505b60208210810361103757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600083516110a0818460208801610d81565b8351908301906110b4818360208801610d81565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156110e5576110e56110bd565b500390565b600082198211156110fd576110fd6110bd565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060018201611166576111666110bd565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826111925761119261116d565b500490565b6000826111a6576111a661116d565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906111f490830184610dad565b9695505050505050565b60006020828403121561121057600080fd5b815161073c81610d4b56fea26469706673582212205a7990f6e21ce04126d88014343237026163eb550d89924fe4ea287983fe846264736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name_", "type": "string", "internalType": "string"}, {"name": "symbol_", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including the Metadata extension, but not including the Enumerable extension, which is available separately as {ERC721Enumerable}.", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "constructor": {"details": "Initializes the contract by setting a `name` and a `symbol` to the token collection."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "version": 1}}, "IERC721": {"contractName": "IERC721", "sourceId": "token/ERC721/IERC721.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "operator", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "owner", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "_approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Required interface of an ERC721 compliant contract.", "events": {"Approval(address,address,uint256)": {"details": "Emitted when `owner` enables `approved` to manage the `tokenId` token."}, "ApprovalForAll(address,address,bool)": {"details": "Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets."}, "Transfer(address,address,uint256)": {"details": "Emitted when `tokenId` token is transferred from `from` to `to`."}}, "kind": "dev", "methods": {"approve(address,uint256)": {"details": "Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."}, "balanceOf(address)": {"details": "Returns the number of tokens in ``owner``'s account."}, "getApproved(uint256)": {"details": "Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."}, "isApprovedForAll(address,address)": {"details": "Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"}, "ownerOf(uint256)": {"details": "Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."}, "safeTransferFrom(address,address,uint256)": {"details": "Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."}, "setApprovalForAll(address,bool)": {"details": "Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event."}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}, "transferFrom(address,address,uint256)": {"details": "Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."}}, "version": 1}}, "IERC721Receiver": {"contractName": "IERC721Receiver", "sourceId": "token/ERC721/IERC721Receiver.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "onERC721Received", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface for any contract that wants to support safeTransfers from ERC721 asset contracts.", "kind": "dev", "methods": {"onERC721Received(address,address,uint256,bytes)": {"details": "Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} by `operator` from `from`, this function is called. It must return its Solidity selector to confirm the token transfer. If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`."}}, "title": "ERC721 token receiver interface", "version": 1}}, "ERC721Burnable": {"contractName": "ERC721Burnable", "sourceId": "token/ERC721/extensions/ERC721Burnable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "ERC721 Token that can be irreversibly burned (destroyed).", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "burn(uint256)": {"details": "Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "title": "ERC721 Burnable Token", "version": 1}}, "ERC721Enumerable": {"contractName": "ERC721Enumerable", "sourceId": "token/ERC721/extensions/ERC721Enumerable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenByIndex", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenOfOwnerByIndex", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "This implements an optional extension of {ERC721} defined in the EIP that adds enumerability of all the token ids in the contract as well as all token ids owned by each account.", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenByIndex(uint256)": {"details": "See {IERC721Enumerable-tokenByIndex}."}, "tokenOfOwnerByIndex(address,uint256)": {"details": "See {IERC721Enumerable-tokenOfOwnerByIndex}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "totalSupply()": {"details": "See {IERC721Enumerable-totalSupply}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "version": 1}}, "ERC721Pausable": {"contractName": "ERC721Pausable", "sourceId": "token/ERC721/extensions/ERC721Pausable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "ERC721 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug.", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "version": 1}}, "ERC721URIStorage": {"contractName": "ERC721URIStorage", "sourceId": "token/ERC721/extensions/ERC721URIStorage.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "ERC721 token with storage based token URI management.", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}}, "version": 1}}, "IERC721Enumerable": {"contractName": "IERC721Enumerable", "sourceId": "token/ERC721/extensions/IERC721Enumerable.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "operator", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "owner", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "_approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "tokenByIndex", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenOfOwnerByIndex", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "See https://eips.ethereum.org/EIPS/eip-721", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."}, "balanceOf(address)": {"details": "Returns the number of tokens in ``owner``'s account."}, "getApproved(uint256)": {"details": "Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."}, "isApprovedForAll(address,address)": {"details": "Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"}, "ownerOf(uint256)": {"details": "Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."}, "safeTransferFrom(address,address,uint256)": {"details": "Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."}, "setApprovalForAll(address,bool)": {"details": "Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event."}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}, "tokenByIndex(uint256)": {"details": "Returns a token ID at a given `index` of all the tokens stored by the contract. Use along with {totalSupply} to enumerate all tokens."}, "tokenOfOwnerByIndex(address,uint256)": {"details": "Returns a token ID owned by `owner` at a given `index` of its token list. Use along with {balanceOf} to enumerate all of ``owner``'s tokens."}, "totalSupply()": {"details": "Returns the total amount of tokens stored by the contract."}, "transferFrom(address,address,uint256)": {"details": "Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."}}, "title": "ERC-721 Non-Fungible Token Standard, optional enumeration extension", "version": 1}}, "IERC721Metadata": {"contractName": "IERC721Metadata", "sourceId": "token/ERC721/extensions/IERC721Metadata.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "balance", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "operator", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "owner", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "_approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "See https://eips.ethereum.org/EIPS/eip-721", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."}, "balanceOf(address)": {"details": "Returns the number of tokens in ``owner``'s account."}, "getApproved(uint256)": {"details": "Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."}, "isApprovedForAll(address,address)": {"details": "Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"}, "name()": {"details": "Returns the token collection name."}, "ownerOf(uint256)": {"details": "Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."}, "safeTransferFrom(address,address,uint256)": {"details": "Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."}, "setApprovalForAll(address,bool)": {"details": "Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event."}, "supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}, "symbol()": {"details": "Returns the token collection symbol."}, "tokenURI(uint256)": {"details": "Returns the Uniform Resource Identifier (URI) for `tokenId` token."}, "transferFrom(address,address,uint256)": {"details": "Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."}}, "title": "ERC-721 Non-Fungible Token Standard, optional metadata extension", "version": 1}}, "ERC721PresetMinterPauserAutoId": {"contractName": "ERC721PresetMinterPauserAutoId", "sourceId": "token/ERC721/presets/ERC721PresetMinterPauserAutoId.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162002a6538038062002a658339810160408190526200003491620003cc565b8251839083906200004d90600290602085019062000259565b5080516200006390600390602084019062000259565b5050600c805460ff191690555080516200008590600e90602084019062000259565b5062000093600033620000f4565b620000bf7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620000f4565b620000eb7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620000f4565b50505062000499565b62000100828262000104565b5050565b6200011b82826200014760201b62000e311760201c565b60008281526001602090815260409091206200014291839062000eb5620001e7821b17901c565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000100576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001a33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620001fe836001600160a01b03841662000207565b90505b92915050565b6000818152600183016020526040812054620002505750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000201565b50600062000201565b82805462000267906200045d565b90600052602060002090601f0160209004810192826200028b5760008555620002d6565b82601f10620002a657805160ff1916838001178555620002d6565b82800160010185558215620002d6579182015b82811115620002d6578251825591602001919060010190620002b9565b50620002e4929150620002e8565b5090565b5b80821115620002e45760008155600101620002e9565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200032757600080fd5b81516001600160401b0380821115620003445762000344620002ff565b604051601f8301601f19908116603f011681019082821181831017156200036f576200036f620002ff565b816040528381526020925086838588010111156200038c57600080fd5b600091505b83821015620003b0578582018301518183018401529082019062000391565b83821115620003c25760008385830101525b9695505050505050565b600080600060608486031215620003e257600080fd5b83516001600160401b0380821115620003fa57600080fd5b620004088783880162000315565b945060208601519150808211156200041f57600080fd5b6200042d8783880162000315565b935060408601519150808211156200044457600080fd5b50620004538682870162000315565b9150509250925092565b600181811c908216806200047257607f821691505b6020821081036200049357634e487b7160e01b600052602260045260246000fd5b50919050565b6125bc80620004a96000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c80636352211e1161010f578063a22cb465116100a2578063d539139311610071578063d5391393146103f7578063d547741f1461041e578063e63ab1e914610431578063e985e9c51461045857600080fd5b8063a22cb465146103ab578063b88d4fde146103be578063c87b56dd146103d1578063ca15c873146103e457600080fd5b80639010d07c116100de5780639010d07c1461037557806391d148541461038857806395d89b411461039b578063a217fddf146103a357600080fd5b80636352211e146103345780636a6278421461034757806370a082311461035a5780638456cb591461036d57600080fd5b80632f2ff15d1161018757806342842e0e1161015657806342842e0e146102f057806342966c68146103035780634f6ccce7146103165780635c975abb1461032957600080fd5b80632f2ff15d146102af5780632f745c59146102c257806336568abe146102d55780633f4ba83a146102e857600080fd5b8063095ea7b3116101c3578063095ea7b31461025257806318160ddd1461026757806323b872dd14610279578063248a9ca31461028c57600080fd5b806301ffc9a7146101ea57806306fdde0314610212578063081812fc14610227575b600080fd5b6101fd6101f8366004611fc9565b610494565b60405190151581526020015b60405180910390f35b61021a6104a5565b604051610209919061203e565b61023a610235366004612051565b610537565b6040516001600160a01b039091168152602001610209565b610265610260366004612086565b6105d1565b005b600a545b604051908152602001610209565b6102656102873660046120b0565b6106e6565b61026b61029a366004612051565b60009081526020819052604090206001015490565b6102656102bd3660046120ec565b610718565b61026b6102d0366004612086565b61073e565b6102656102e33660046120ec565b6107d4565b610265610852565b6102656102fe3660046120b0565b6108fa565b610265610311366004612051565b610915565b61026b610324366004612051565b61098f565b600c5460ff166101fd565b61023a610342366004612051565b610a22565b610265610355366004612118565b610a99565b61026b610368366004612118565b610b55565b610265610bdc565b61023a610383366004612133565b610c80565b6101fd6103963660046120ec565b610c9f565b61021a610cc8565b61026b600081565b6102656103b9366004612155565b610cd7565b6102656103cc3660046121a7565b610ce2565b61021a6103df366004612051565b610d1a565b61026b6103f2366004612051565b610df4565b61026b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61026561042c3660046120ec565b610e0b565b61026b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6101fd610466366004612283565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b600061049f82610eca565b92915050565b6060600280546104b4906122ad565b80601f01602080910402602001604051908101604052809291908181526020018280546104e0906122ad565b801561052d5780601f106105025761010080835404028352916020019161052d565b820191906000526020600020905b81548152906001019060200180831161051057829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166105b55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006105dc82610a22565b9050806001600160a01b0316836001600160a01b0316036106495760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105ac565b336001600160a01b038216148061066557506106658133610466565b6106d75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105ac565b6106e18383610eef565b505050565b6106f1335b82610f5d565b61070d5760405162461bcd60e51b81526004016105ac906122e7565b6106e1838383611054565b60008281526020819052604090206001015461073481336111ff565b6106e18383611263565b600061074983610b55565b82106107ab5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105ac565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6001600160a01b03811633146108445760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105ac565b61084e8282611285565b5050565b61087c7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610c9f565b6108f0576040805162461bcd60e51b81526020600482015260248101919091527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d75737420686176652070617573657220726f6c6520746f20756e706175736560648201526084016105ac565b6108f86112a7565b565b6106e183838360405180602001604052806000815250610ce2565b61091e336106eb565b6109835760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016105ac565b61098c8161133a565b50565b600061099a600a5490565b82106109fd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105ac565b600a8281548110610a1057610a10612338565b90600052602060002001549050919050565b6000818152600460205260408120546001600160a01b03168061049f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105ac565b610ac37f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610c9f565b610b355760405162461bcd60e51b815260206004820152603d60248201527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d7573742068617665206d696e74657220726f6c6520746f206d696e7400000060648201526084016105ac565b610b4781610b42600d5490565b6113e1565b61098c600d80546001019055565b60006001600160a01b038216610bc05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105ac565b506001600160a01b031660009081526005602052604090205490565b610c067f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610c9f565b610c785760405162461bcd60e51b815260206004820152603e60248201527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d75737420686176652070617573657220726f6c6520746f207061757365000060648201526084016105ac565b6108f861152f565b6000828152600160205260408120610c9890836115aa565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600380546104b4906122ad565b61084e3383836115b6565b610cec3383610f5d565b610d085760405162461bcd60e51b81526004016105ac906122e7565b610d1484848484611684565b50505050565b6000818152600460205260409020546060906001600160a01b0316610d995760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105ac565b6000610da36116b7565b90506000815111610dc35760405180602001604052806000815250610c98565b80610dcd846116c6565b604051602001610dde92919061234e565b6040516020818303038152906040529392505050565b600081815260016020526040812061049f906117c7565b600082815260208190526040902060010154610e2781336111ff565b6106e18383611285565b610e3b8282610c9f565b61084e576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610e713390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610c98836001600160a01b0384166117d1565b60006001600160e01b0319821663780e9d6360e01b148061049f575061049f82611820565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610f2482610a22565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b0316610fd65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105ac565b6000610fe183610a22565b9050806001600160a01b0316846001600160a01b0316148061101c5750836001600160a01b031661101184610537565b6001600160a01b0316145b8061104c57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661106782610a22565b6001600160a01b0316146110cf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105ac565b6001600160a01b0382166111315760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105ac565b61113c838383611860565b611147600082610eef565b6001600160a01b0383166000908152600560205260408120805460019290611170908490612393565b90915550506001600160a01b038216600090815260056020526040812080546001929061119e9084906123aa565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6112098282610c9f565b61084e57611221816001600160a01b0316601461186b565b61122c83602061186b565b60405160200161123d9291906123c2565b60408051601f198184030181529082905262461bcd60e51b82526105ac9160040161203e565b61126d8282610e31565b60008281526001602052604090206106e19082610eb5565b61128f8282611a07565b60008281526001602052604090206106e19082611a6c565b600c5460ff166112f05760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105ac565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061134582610a22565b905061135381600084611860565b61135e600083610eef565b6001600160a01b0381166000908152600560205260408120805460019290611387908490612393565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166114375760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105ac565b6000818152600460205260409020546001600160a01b03161561149c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105ac565b6114a860008383611860565b6001600160a01b03821660009081526005602052604081208054600192906114d19084906123aa565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600c5460ff16156115755760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105ac565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861131d3390565b6000610c988383611a81565b816001600160a01b0316836001600160a01b0316036116175760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105ac565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61168f848484611054565b61169b84848484611aab565b610d145760405162461bcd60e51b81526004016105ac90612437565b6060600e80546104b4906122ad565b6060816000036116ed5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611717578061170181612489565b91506117109050600a836124b8565b91506116f1565b60008167ffffffffffffffff81111561173257611732612191565b6040519080825280601f01601f19166020018201604052801561175c576020820181803683370190505b5090505b841561104c57611771600183612393565b915061177e600a866124cc565b6117899060306123aa565b60f81b81838151811061179e5761179e612338565b60200101906001600160f81b031916908160001a9053506117c0600a866124b8565b9450611760565b600061049f825490565b60008181526001830160205260408120546118185750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561049f565b50600061049f565b60006001600160e01b031982166380ac58cd60e01b148061185157506001600160e01b03198216635b5e139f60e01b145b8061049f575061049f82611bac565b6106e1838383611bd1565b6060600061187a8360026124e0565b6118859060026123aa565b67ffffffffffffffff81111561189d5761189d612191565b6040519080825280601f01601f1916602001820160405280156118c7576020820181803683370190505b509050600360fc1b816000815181106118e2576118e2612338565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061191157611911612338565b60200101906001600160f81b031916908160001a90535060006119358460026124e0565b6119409060016123aa565b90505b60018111156119b8576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061197457611974612338565b1a60f81b82828151811061198a5761198a612338565b60200101906001600160f81b031916908160001a90535060049490941c936119b1816124ff565b9050611943565b508315610c985760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105ac565b611a118282610c9f565b1561084e576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610c98836001600160a01b038416611c43565b6000826000018281548110611a9857611a98612338565b9060005260206000200154905092915050565b60006001600160a01b0384163b15611ba157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611aef903390899088908890600401612516565b6020604051808303816000875af1925050508015611b2a575060408051601f3d908101601f19168201909252611b2791810190612553565b60015b611b87573d808015611b58576040519150601f19603f3d011682016040523d82523d6000602084013e611b5d565b606091505b508051600003611b7f5760405162461bcd60e51b81526004016105ac90612437565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061104c565b506001949350505050565b60006001600160e01b03198216635a05180f60e01b148061049f575061049f82611d36565b611bdc838383611d6b565b600c5460ff16156106e15760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b60648201526084016105ac565b60008181526001830160205260408120548015611d2c576000611c67600183612393565b8554909150600090611c7b90600190612393565b9050818114611ce0576000866000018281548110611c9b57611c9b612338565b9060005260206000200154905080876000018481548110611cbe57611cbe612338565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611cf157611cf1612570565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061049f565b600091505061049f565b60006001600160e01b03198216637965db0b60e01b148061049f57506301ffc9a760e01b6001600160e01b031983161461049f565b6001600160a01b038316611dc657611dc181600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b611de9565b816001600160a01b0316836001600160a01b031614611de957611de98382611e23565b6001600160a01b038216611e00576106e181611ec0565b826001600160a01b0316826001600160a01b0316146106e1576106e18282611f6f565b60006001611e3084610b55565b611e3a9190612393565b600083815260096020526040902054909150808214611e8d576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090611ed290600190612393565b6000838152600b6020526040812054600a8054939450909284908110611efa57611efa612338565b9060005260206000200154905080600a8381548110611f1b57611f1b612338565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480611f5357611f53612570565b6001900381819060005260206000200160009055905550505050565b6000611f7a83610b55565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b6001600160e01b03198116811461098c57600080fd5b600060208284031215611fdb57600080fd5b8135610c9881611fb3565b60005b83811015612001578181015183820152602001611fe9565b83811115610d145750506000910152565b6000815180845261202a816020860160208601611fe6565b601f01601f19169290920160200192915050565b602081526000610c986020830184612012565b60006020828403121561206357600080fd5b5035919050565b80356001600160a01b038116811461208157600080fd5b919050565b6000806040838503121561209957600080fd5b6120a28361206a565b946020939093013593505050565b6000806000606084860312156120c557600080fd5b6120ce8461206a565b92506120dc6020850161206a565b9150604084013590509250925092565b600080604083850312156120ff57600080fd5b8235915061210f6020840161206a565b90509250929050565b60006020828403121561212a57600080fd5b610c988261206a565b6000806040838503121561214657600080fd5b50508035926020909101359150565b6000806040838503121561216857600080fd5b6121718361206a565b91506020830135801515811461218657600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156121bd57600080fd5b6121c68561206a565b93506121d46020860161206a565b925060408501359150606085013567ffffffffffffffff808211156121f857600080fd5b818701915087601f83011261220c57600080fd5b81358181111561221e5761221e612191565b604051601f8201601f19908116603f0116810190838211818310171561224657612246612191565b816040528281528a602084870101111561225f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561229657600080fd5b61229f8361206a565b915061210f6020840161206a565b600181811c908216806122c157607f821691505b6020821081036122e157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60008351612360818460208801611fe6565b835190830190612374818360208801611fe6565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156123a5576123a561237d565b500390565b600082198211156123bd576123bd61237d565b500190565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516123fa816017850160208801611fe6565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161242b816028840160208801611fe6565b01602801949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006001820161249b5761249b61237d565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826124c7576124c76124a2565b500490565b6000826124db576124db6124a2565b500690565b60008160001904831182151516156124fa576124fa61237d565b500290565b60008161250e5761250e61237d565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061254990830184612012565b9695505050505050565b60006020828403121561256557600080fd5b8151610c9881611fb3565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220b12b77e82152249055f69fb146a3c4fa5268f3a36c95ea212d2a19671da144f164736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101e55760003560e01c80636352211e1161010f578063a22cb465116100a2578063d539139311610071578063d5391393146103f7578063d547741f1461041e578063e63ab1e914610431578063e985e9c51461045857600080fd5b8063a22cb465146103ab578063b88d4fde146103be578063c87b56dd146103d1578063ca15c873146103e457600080fd5b80639010d07c116100de5780639010d07c1461037557806391d148541461038857806395d89b411461039b578063a217fddf146103a357600080fd5b80636352211e146103345780636a6278421461034757806370a082311461035a5780638456cb591461036d57600080fd5b80632f2ff15d1161018757806342842e0e1161015657806342842e0e146102f057806342966c68146103035780634f6ccce7146103165780635c975abb1461032957600080fd5b80632f2ff15d146102af5780632f745c59146102c257806336568abe146102d55780633f4ba83a146102e857600080fd5b8063095ea7b3116101c3578063095ea7b31461025257806318160ddd1461026757806323b872dd14610279578063248a9ca31461028c57600080fd5b806301ffc9a7146101ea57806306fdde0314610212578063081812fc14610227575b600080fd5b6101fd6101f8366004611fc9565b610494565b60405190151581526020015b60405180910390f35b61021a6104a5565b604051610209919061203e565b61023a610235366004612051565b610537565b6040516001600160a01b039091168152602001610209565b610265610260366004612086565b6105d1565b005b600a545b604051908152602001610209565b6102656102873660046120b0565b6106e6565b61026b61029a366004612051565b60009081526020819052604090206001015490565b6102656102bd3660046120ec565b610718565b61026b6102d0366004612086565b61073e565b6102656102e33660046120ec565b6107d4565b610265610852565b6102656102fe3660046120b0565b6108fa565b610265610311366004612051565b610915565b61026b610324366004612051565b61098f565b600c5460ff166101fd565b61023a610342366004612051565b610a22565b610265610355366004612118565b610a99565b61026b610368366004612118565b610b55565b610265610bdc565b61023a610383366004612133565b610c80565b6101fd6103963660046120ec565b610c9f565b61021a610cc8565b61026b600081565b6102656103b9366004612155565b610cd7565b6102656103cc3660046121a7565b610ce2565b61021a6103df366004612051565b610d1a565b61026b6103f2366004612051565b610df4565b61026b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61026561042c3660046120ec565b610e0b565b61026b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6101fd610466366004612283565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b600061049f82610eca565b92915050565b6060600280546104b4906122ad565b80601f01602080910402602001604051908101604052809291908181526020018280546104e0906122ad565b801561052d5780601f106105025761010080835404028352916020019161052d565b820191906000526020600020905b81548152906001019060200180831161051057829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166105b55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006105dc82610a22565b9050806001600160a01b0316836001600160a01b0316036106495760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105ac565b336001600160a01b038216148061066557506106658133610466565b6106d75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105ac565b6106e18383610eef565b505050565b6106f1335b82610f5d565b61070d5760405162461bcd60e51b81526004016105ac906122e7565b6106e1838383611054565b60008281526020819052604090206001015461073481336111ff565b6106e18383611263565b600061074983610b55565b82106107ab5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105ac565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6001600160a01b03811633146108445760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105ac565b61084e8282611285565b5050565b61087c7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610c9f565b6108f0576040805162461bcd60e51b81526020600482015260248101919091527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d75737420686176652070617573657220726f6c6520746f20756e706175736560648201526084016105ac565b6108f86112a7565b565b6106e183838360405180602001604052806000815250610ce2565b61091e336106eb565b6109835760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016105ac565b61098c8161133a565b50565b600061099a600a5490565b82106109fd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105ac565b600a8281548110610a1057610a10612338565b90600052602060002001549050919050565b6000818152600460205260408120546001600160a01b03168061049f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105ac565b610ac37f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610c9f565b610b355760405162461bcd60e51b815260206004820152603d60248201527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d7573742068617665206d696e74657220726f6c6520746f206d696e7400000060648201526084016105ac565b610b4781610b42600d5490565b6113e1565b61098c600d80546001019055565b60006001600160a01b038216610bc05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105ac565b506001600160a01b031660009081526005602052604090205490565b610c067f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610c9f565b610c785760405162461bcd60e51b815260206004820152603e60248201527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d75737420686176652070617573657220726f6c6520746f207061757365000060648201526084016105ac565b6108f861152f565b6000828152600160205260408120610c9890836115aa565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600380546104b4906122ad565b61084e3383836115b6565b610cec3383610f5d565b610d085760405162461bcd60e51b81526004016105ac906122e7565b610d1484848484611684565b50505050565b6000818152600460205260409020546060906001600160a01b0316610d995760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105ac565b6000610da36116b7565b90506000815111610dc35760405180602001604052806000815250610c98565b80610dcd846116c6565b604051602001610dde92919061234e565b6040516020818303038152906040529392505050565b600081815260016020526040812061049f906117c7565b600082815260208190526040902060010154610e2781336111ff565b6106e18383611285565b610e3b8282610c9f565b61084e576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610e713390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610c98836001600160a01b0384166117d1565b60006001600160e01b0319821663780e9d6360e01b148061049f575061049f82611820565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610f2482610a22565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b0316610fd65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105ac565b6000610fe183610a22565b9050806001600160a01b0316846001600160a01b0316148061101c5750836001600160a01b031661101184610537565b6001600160a01b0316145b8061104c57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661106782610a22565b6001600160a01b0316146110cf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105ac565b6001600160a01b0382166111315760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105ac565b61113c838383611860565b611147600082610eef565b6001600160a01b0383166000908152600560205260408120805460019290611170908490612393565b90915550506001600160a01b038216600090815260056020526040812080546001929061119e9084906123aa565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6112098282610c9f565b61084e57611221816001600160a01b0316601461186b565b61122c83602061186b565b60405160200161123d9291906123c2565b60408051601f198184030181529082905262461bcd60e51b82526105ac9160040161203e565b61126d8282610e31565b60008281526001602052604090206106e19082610eb5565b61128f8282611a07565b60008281526001602052604090206106e19082611a6c565b600c5460ff166112f05760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105ac565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061134582610a22565b905061135381600084611860565b61135e600083610eef565b6001600160a01b0381166000908152600560205260408120805460019290611387908490612393565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166114375760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105ac565b6000818152600460205260409020546001600160a01b03161561149c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105ac565b6114a860008383611860565b6001600160a01b03821660009081526005602052604081208054600192906114d19084906123aa565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600c5460ff16156115755760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105ac565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861131d3390565b6000610c988383611a81565b816001600160a01b0316836001600160a01b0316036116175760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105ac565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61168f848484611054565b61169b84848484611aab565b610d145760405162461bcd60e51b81526004016105ac90612437565b6060600e80546104b4906122ad565b6060816000036116ed5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611717578061170181612489565b91506117109050600a836124b8565b91506116f1565b60008167ffffffffffffffff81111561173257611732612191565b6040519080825280601f01601f19166020018201604052801561175c576020820181803683370190505b5090505b841561104c57611771600183612393565b915061177e600a866124cc565b6117899060306123aa565b60f81b81838151811061179e5761179e612338565b60200101906001600160f81b031916908160001a9053506117c0600a866124b8565b9450611760565b600061049f825490565b60008181526001830160205260408120546118185750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561049f565b50600061049f565b60006001600160e01b031982166380ac58cd60e01b148061185157506001600160e01b03198216635b5e139f60e01b145b8061049f575061049f82611bac565b6106e1838383611bd1565b6060600061187a8360026124e0565b6118859060026123aa565b67ffffffffffffffff81111561189d5761189d612191565b6040519080825280601f01601f1916602001820160405280156118c7576020820181803683370190505b509050600360fc1b816000815181106118e2576118e2612338565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061191157611911612338565b60200101906001600160f81b031916908160001a90535060006119358460026124e0565b6119409060016123aa565b90505b60018111156119b8576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061197457611974612338565b1a60f81b82828151811061198a5761198a612338565b60200101906001600160f81b031916908160001a90535060049490941c936119b1816124ff565b9050611943565b508315610c985760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105ac565b611a118282610c9f565b1561084e576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610c98836001600160a01b038416611c43565b6000826000018281548110611a9857611a98612338565b9060005260206000200154905092915050565b60006001600160a01b0384163b15611ba157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611aef903390899088908890600401612516565b6020604051808303816000875af1925050508015611b2a575060408051601f3d908101601f19168201909252611b2791810190612553565b60015b611b87573d808015611b58576040519150601f19603f3d011682016040523d82523d6000602084013e611b5d565b606091505b508051600003611b7f5760405162461bcd60e51b81526004016105ac90612437565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061104c565b506001949350505050565b60006001600160e01b03198216635a05180f60e01b148061049f575061049f82611d36565b611bdc838383611d6b565b600c5460ff16156106e15760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b60648201526084016105ac565b60008181526001830160205260408120548015611d2c576000611c67600183612393565b8554909150600090611c7b90600190612393565b9050818114611ce0576000866000018281548110611c9b57611c9b612338565b9060005260206000200154905080876000018481548110611cbe57611cbe612338565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611cf157611cf1612570565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061049f565b600091505061049f565b60006001600160e01b03198216637965db0b60e01b148061049f57506301ffc9a760e01b6001600160e01b031983161461049f565b6001600160a01b038316611dc657611dc181600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b611de9565b816001600160a01b0316836001600160a01b031614611de957611de98382611e23565b6001600160a01b038216611e00576106e181611ec0565b826001600160a01b0316826001600160a01b0316146106e1576106e18282611f6f565b60006001611e3084610b55565b611e3a9190612393565b600083815260096020526040902054909150808214611e8d576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090611ed290600190612393565b6000838152600b6020526040812054600a8054939450909284908110611efa57611efa612338565b9060005260206000200154905080600a8381548110611f1b57611f1b612338565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480611f5357611f53612570565b6001900381819060005260206000200160009055905550505050565b6000611f7a83610b55565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b6001600160e01b03198116811461098c57600080fd5b600060208284031215611fdb57600080fd5b8135610c9881611fb3565b60005b83811015612001578181015183820152602001611fe9565b83811115610d145750506000910152565b6000815180845261202a816020860160208601611fe6565b601f01601f19169290920160200192915050565b602081526000610c986020830184612012565b60006020828403121561206357600080fd5b5035919050565b80356001600160a01b038116811461208157600080fd5b919050565b6000806040838503121561209957600080fd5b6120a28361206a565b946020939093013593505050565b6000806000606084860312156120c557600080fd5b6120ce8461206a565b92506120dc6020850161206a565b9150604084013590509250925092565b600080604083850312156120ff57600080fd5b8235915061210f6020840161206a565b90509250929050565b60006020828403121561212a57600080fd5b610c988261206a565b6000806040838503121561214657600080fd5b50508035926020909101359150565b6000806040838503121561216857600080fd5b6121718361206a565b91506020830135801515811461218657600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156121bd57600080fd5b6121c68561206a565b93506121d46020860161206a565b925060408501359150606085013567ffffffffffffffff808211156121f857600080fd5b818701915087601f83011261220c57600080fd5b81358181111561221e5761221e612191565b604051601f8201601f19908116603f0116810190838211818310171561224657612246612191565b816040528281528a602084870101111561225f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561229657600080fd5b61229f8361206a565b915061210f6020840161206a565b600181811c908216806122c157607f821691505b6020821081036122e157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60008351612360818460208801611fe6565b835190830190612374818360208801611fe6565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156123a5576123a561237d565b500390565b600082198211156123bd576123bd61237d565b500190565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516123fa816017850160208801611fe6565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161242b816028840160208801611fe6565b01602801949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006001820161249b5761249b61237d565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826124c7576124c76124a2565b500490565b6000826124db576124db6124a2565b500690565b60008160001904831182151516156124fa576124fa61237d565b500290565b60008161250e5761250e61237d565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061254990830184612012565b9695505050505050565b60006020828403121561256557600080fd5b8151610c9881611fb3565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220b12b77e82152249055f69fb146a3c4fa5268f3a36c95ea212d2a19671da144f164736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "baseTokenURI", "type": "string", "internalType": "string"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ApprovalForAll", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "approved", "type": "bool", "internalType": "bool", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Paused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RoleAdminChanged", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "previousAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "newAdminRole", "type": "bytes32", "internalType": "bytes32", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleGranted", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RoleRevoked", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "sender", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenId", "type": "uint256", "internalType": "uint256", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Unpaused", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": false}], "anonymous": false}, {"type": "function", "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "MINTER_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "PAUSER_ROLE", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "getApproved", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getRoleAdmin", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "getRoleMember", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getRoleMemberCount", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "grantRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "hasRole", "stateMutability": "view", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "isApprovedForAll", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "operator", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "mint", "stateMutability": "nonpayable", "inputs": [{"name": "to", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "ownerOf", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "pause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "paused", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "renounceRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [{"name": "role", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "safeTransferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}, {"name": "_data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "setApprovalForAll", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "approved", "type": "bool", "internalType": "bool"}], "outputs": []}, {"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "tokenByIndex", "stateMutability": "view", "inputs": [{"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenOfOwnerByIndex", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}, {"name": "index", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "tokenURI", "stateMutability": "view", "inputs": [{"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "tokenId", "type": "uint256", "internalType": "uint256"}], "outputs": []}, {"type": "function", "name": "unpause", "stateMutability": "nonpayable", "inputs": [], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "{ERC721} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers - token ID and URI autogeneration This contract uses {AccessControl} to lock permissioned functions using the different roles - head to its documentation for details. The account that deploys the contract will be granted the minter and pauser roles, as well as the default admin role, which will let it grant both minter and pauser roles to other accounts.", "kind": "dev", "methods": {"approve(address,uint256)": {"details": "See {IERC721-approve}."}, "balanceOf(address)": {"details": "See {IERC721-balanceOf}."}, "burn(uint256)": {"details": "Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator."}, "constructor": {"details": "Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the account that deploys the contract. Token URIs will be autogenerated based on `baseURI` and their token IDs. See {ERC721-tokenURI}."}, "getApproved(uint256)": {"details": "See {IERC721-getApproved}."}, "getRoleAdmin(bytes32)": {"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."}, "getRoleMember(bytes32,uint256)": {"details": "Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."}, "getRoleMemberCount(bytes32)": {"details": "Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."}, "grantRole(bytes32,address)": {"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."}, "hasRole(bytes32,address)": {"details": "Returns `true` if `account` has been granted `role`."}, "isApprovedForAll(address,address)": {"details": "See {IERC721-isApprovedForAll}."}, "mint(address)": {"details": "Creates a new token for `to`. Its token ID will be automatically assigned (and available on the emitted {IERC721-Transfer} event), and the token URI autogenerated based on the base URI passed at construction. See {ERC721-_mint}. Requirements: - the caller must have the `MINTER_ROLE`."}, "name()": {"details": "See {IERC721Metadata-name}."}, "ownerOf(uint256)": {"details": "See {IERC721-ownerOf}."}, "pause()": {"details": "Pauses all token transfers. See {ERC721Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`."}, "paused()": {"details": "Returns true if the contract is paused, and false otherwise."}, "renounceRole(bytes32,address)": {"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."}, "revokeRole(bytes32,address)": {"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}, "safeTransferFrom(address,address,uint256)": {"details": "See {IERC721-safeTransferFrom}."}, "safeTransferFrom(address,address,uint256,bytes)": {"details": "See {IERC721-safeTransferFrom}."}, "setApprovalForAll(address,bool)": {"details": "See {IERC721-setApprovalForAll}."}, "supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}, "symbol()": {"details": "See {IERC721Metadata-symbol}."}, "tokenByIndex(uint256)": {"details": "See {IERC721Enumerable-tokenByIndex}."}, "tokenOfOwnerByIndex(address,uint256)": {"details": "See {IERC721Enumerable-tokenOfOwnerByIndex}."}, "tokenURI(uint256)": {"details": "See {IERC721Metadata-tokenURI}."}, "totalSupply()": {"details": "See {IERC721Enumerable-totalSupply}."}, "transferFrom(address,address,uint256)": {"details": "See {IERC721-transferFrom}."}, "unpause()": {"details": "Unpauses all token transfers. See {ERC721Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`."}}, "version": 1}}, "ERC721Holder": {"contractName": "ERC721Holder", "sourceId": "token/ERC721/utils/ERC721Holder.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506101af806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b61004e61003e36600461009d565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200160405180910390f35b80356001600160a01b038116811461008257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156100b357600080fd5b6100bc8561006b565b93506100ca6020860161006b565b925060408501359150606085013567ffffffffffffffff808211156100ee57600080fd5b818701915087601f83011261010257600080fd5b81358181111561011457610114610087565b604051601f8201601f19908116603f0116810190838211818310171561013c5761013c610087565b816040528281528a602084870101111561015557600080fd5b8260208601602083013760006020848301015280955050505050509295919450925056fea2646970667358221220c9bd9f8fba7ae2c97a52452ffca6f07f70251d77acd5605003a63a1917ca8bd964736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b61004e61003e36600461009d565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200160405180910390f35b80356001600160a01b038116811461008257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156100b357600080fd5b6100bc8561006b565b93506100ca6020860161006b565b925060408501359150606085013567ffffffffffffffff808211156100ee57600080fd5b818701915087601f83011261010257600080fd5b81358181111561011457610114610087565b604051601f8201601f19908116603f0116810190838211818310171561013c5761013c610087565b816040528281528a602084870101111561015557600080fd5b8260208601602083013760006020848301015280955050505050509295919450925056fea2646970667358221220c9bd9f8fba7ae2c97a52452ffca6f07f70251d77acd5605003a63a1917ca8bd964736f6c634300080d0033"}, "abi": [{"type": "function", "name": "onERC721Received", "stateMutability": "nonpayable", "inputs": [{"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "address", "internalType": "address"}, {"name": "", "type": "uint256", "internalType": "uint256"}, {"name": "", "type": "bytes", "internalType": "bytes"}], "outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of the {IERC721Receiver} interface. Accepts all token transfers. Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.", "kind": "dev", "methods": {"onERC721Received(address,address,uint256,bytes)": {"details": "See {IERC721Receiver-onERC721Received}. Always returns `IERC721Receiver.onERC721Received.selector`."}}, "version": 1}}, "ERC777": {"contractName": "ERC777", "sourceId": "token/ERC777/ERC777.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162001d4038038062001d408339810160408190526200003491620003f1565b82516200004990600290602086019062000215565b5081516200005f90600390602085019062000215565b50805162000075906004906020840190620002a4565b5060005b8151811015620000e5576001600560008484815181106200009e576200009e62000508565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580620000dc816200051e565b91505062000079565b506040516329965a1d60e01b815230600482018190527fac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce217705460248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad24906329965a1d90606401600060405180830381600087803b1580156200016057600080fd5b505af115801562000175573d6000803e3d6000fd5b50506040516329965a1d60e01b815230600482018190527faea199e31a596269b42cdafd93407f14436db6e4cad65417994c2eb37381e05a60248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad2492506329965a1d9150606401600060405180830381600087803b158015620001f357600080fd5b505af115801562000208573d6000803e3d6000fd5b5050505050505062000582565b828054620002239062000546565b90600052602060002090601f01602090048101928262000247576000855562000292565b82601f106200026257805160ff191683800117855562000292565b8280016001018555821562000292579182015b828111156200029257825182559160200191906001019062000275565b50620002a0929150620002fc565b5090565b82805482825590600052602060002090810192821562000292579160200282015b828111156200029257825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620002c5565b5b80821115620002a05760008155600101620002fd565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562000354576200035462000313565b604052919050565b600082601f8301126200036e57600080fd5b81516001600160401b038111156200038a576200038a62000313565b6020620003a0601f8301601f1916820162000329565b8281528582848701011115620003b557600080fd5b60005b83811015620003d5578581018301518282018401528201620003b8565b83811115620003e75760008385840101525b5095945050505050565b6000806000606084860312156200040757600080fd5b83516001600160401b03808211156200041f57600080fd5b6200042d878388016200035c565b94506020915081860151818111156200044557600080fd5b62000453888289016200035c565b9450506040860151818111156200046957600080fd5b8601601f810188136200047b57600080fd5b80518281111562000490576200049062000313565b8060051b9250620004a384840162000329565b818152928201840192848101908a851115620004be57600080fd5b928501925b84841015620004f857835192506001600160a01b0383168314620004e75760008081fd5b8282529285019290850190620004c3565b8096505050505050509250925092565b634e487b7160e01b600052603260045260246000fd5b6000600182016200053f57634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c908216806200055b57607f821691505b6020821081036200057c57634e487b7160e01b600052602260045260246000fd5b50919050565b6117ae80620005926000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063959b8c3f116100a2578063d95b637111610071578063d95b63711461022b578063dd62ed3e1461023e578063fad8b32a14610277578063fc673c4f1461028a578063fe9d93031461029d57600080fd5b8063959b8c3f146101ea57806395d89b41146101fd5780639bd9bbc614610205578063a9059cbb1461021857600080fd5b806323b872dd116100e957806323b872dd14610183578063313ce56714610196578063556f0dc7146101a557806362ad1b83146101ac57806370a08231146101c157600080fd5b806306e485381461011b57806306fdde0314610139578063095ea7b31461014e57806318160ddd14610171575b600080fd5b6101236102b0565b60405161013091906111df565b60405180910390f35b610141610312565b6040516101309190611279565b61016161015c3660046112a4565b61039b565b6040519015158152602001610130565b6001545b604051908152602001610130565b6101616101913660046112d0565b6103b3565b60405160128152602001610130565b6001610175565b6101bf6101ba3660046113b4565b61057c565b005b6101756101cf366004611447565b6001600160a01b031660009081526020819052604090205490565b6101bf6101f8366004611447565b6105b8565b6101416106d5565b6101bf610213366004611464565b6106e4565b6101616102263660046112a4565b610707565b6101616102393660046114bd565b6107ba565b61017561024c3660046114bd565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b6101bf610285366004611447565b61085c565b6101bf6102983660046114f6565b610977565b6101bf6102ab366004611576565b6109af565b6060600480548060200260200160405190810160405280929190818152602001828054801561030857602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116102ea575b5050505050905090565b606060028054610321906115bd565b80601f016020809104026020016040519081016040528092919081815260200182805461034d906115bd565b80156103085780601f1061036f57610100808354040283529160200191610308565b820191906000526020600020905b81548152906001019060200180831161037d57509395945050505050565b6000336103a98185856109ce565b5060019392505050565b60006001600160a01b0383166103e45760405162461bcd60e51b81526004016103db906115f7565b60405180910390fd5b6001600160a01b0384166104495760405162461bcd60e51b815260206004820152602660248201527f4552433737373a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b60648201526084016103db565b600033905061047a818686866040518060200160405280600081525060405180602001604052806000815250610af5565b6104a6818686866040518060200160405280600081525060405180602001604052806000815250610c1d565b6001600160a01b038086166000908152600860209081526040808320938516835292905220548381101561052e5760405162461bcd60e51b815260206004820152602960248201527f4552433737373a207472616e7366657220616d6f756e74206578636565647320604482015268616c6c6f77616e636560b81b60648201526084016103db565b610542868361053d8785611651565b6109ce565b6105708287878760405180602001604052806000815250604051806020016040528060008152506000610d83565b50600195945050505050565b61058633866107ba565b6105a25760405162461bcd60e51b81526004016103db90611668565b6105b185858585856001610f48565b5050505050565b6001600160a01b038116330361061c5760405162461bcd60e51b8152602060048201526024808201527f4552433737373a20617574686f72697a696e672073656c66206173206f70657260448201526330ba37b960e11b60648201526084016103db565b6001600160a01b03811660009081526005602052604090205460ff161561066d573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff1916905561069c565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790555b60405133906001600160a01b038316907ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f990600090a350565b606060038054610321906115bd565b61070233848484604051806020016040528060008152506001610f48565b505050565b60006001600160a01b03831661072f5760405162461bcd60e51b81526004016103db906115f7565b6000339050610760818286866040518060200160405280600081525060405180602001604052806000815250610af5565b61078c818286866040518060200160405280600081525060405180602001604052806000815250610c1d565b6103a98182868660405180602001604052806000815250604051806020016040528060008152506000610d83565b6000816001600160a01b0316836001600160a01b0316148061082557506001600160a01b03831660009081526005602052604090205460ff16801561082557506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b8061085557506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b336001600160a01b038216036108be5760405162461bcd60e51b815260206004820152602160248201527f4552433737373a207265766f6b696e672073656c66206173206f70657261746f6044820152603960f91b60648201526084016103db565b6001600160a01b03811660009081526005602052604090205460ff1615610912573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561093e565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191690555b60405133906001600160a01b038316907f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa190600090a350565b61098133856107ba565b61099d5760405162461bcd60e51b81526004016103db90611668565b6109a98484848461102b565b50505050565b6109ca3383836040518060200160405280600081525061102b565b5050565b6001600160a01b038316610a325760405162461bcd60e51b815260206004820152602560248201527f4552433737373a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103db565b6001600160a01b038216610a945760405162461bcd60e51b815260206004820152602360248201527f4552433737373a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103db565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe8956024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa158015610b76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9a91906116b4565b90506001600160a01b03811615610c1457604051633ad5cbc160e11b81526001600160a01b038216906375ab978290610be1908a908a908a908a908a908a906004016116d1565b600060405180830381600087803b158015610bfb57600080fd5b505af1158015610c0f573d6000803e3d6000fd5b505050505b50505050505050565b6001600160a01b03851660009081526020819052604090205483811015610c965760405162461bcd60e51b815260206004820152602760248201527f4552433737373a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b60648201526084016103db565b6001600160a01b03808716600090815260208190526040808220878503905591871681529081208054869290610ccd90849061172b565b92505081905550846001600160a01b0316866001600160a01b0316886001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987878787604051610d2593929190611743565b60405180910390a4846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef86604051610d7291815260200190565b60405180910390a350505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa158015610e04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2891906116b4565b90506001600160a01b03811615610ea4576040516223de2960e01b81526001600160a01b038216906223de2990610e6d908b908b908b908b908b908b906004016116d1565b600060405180830381600087803b158015610e8757600080fd5b505af1158015610e9b573d6000803e3d6000fd5b50505050610f3e565b8115610f3e576001600160a01b0386163b15610f3e5760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a4016103db565b5050505050505050565b6001600160a01b038616610fa95760405162461bcd60e51b815260206004820152602260248201527f4552433737373a2073656e642066726f6d20746865207a65726f206164647265604482015261737360f01b60648201526084016103db565b6001600160a01b038516610fff5760405162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f206164647265737360448201526064016103db565b3361100e818888888888610af5565b61101c818888888888610c1d565b610c1481888888888888610d83565b6001600160a01b03841661108c5760405162461bcd60e51b815260206004820152602260248201527f4552433737373a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b60648201526084016103db565b3361109c81866000878787610af5565b6001600160a01b038516600090815260208190526040902054848110156111115760405162461bcd60e51b815260206004820152602360248201527f4552433737373a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b60648201526084016103db565b6001600160a01b0386166000908152602081905260408120868303905560018054879290611140908490611651565b92505081905550856001600160a01b0316826001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a409887878760405161118e93929190611743565b60405180910390a36040518581526000906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050505050565b6020808252825182820181905260009190848201906040850190845b818110156112205783516001600160a01b0316835292840192918401916001016111fb565b50909695505050505050565b6000815180845260005b8181101561125257602081850181015186830182015201611236565b81811115611264576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610855602083018461122c565b6001600160a01b03811681146112a157600080fd5b50565b600080604083850312156112b757600080fd5b82356112c28161128c565b946020939093013593505050565b6000806000606084860312156112e557600080fd5b83356112f08161128c565b925060208401356113008161128c565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261133857600080fd5b813567ffffffffffffffff8082111561135357611353611311565b604051601f8301601f19908116603f0116810190828211818310171561137b5761137b611311565b8160405283815286602085880101111561139457600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a086880312156113cc57600080fd5b85356113d78161128c565b945060208601356113e78161128c565b935060408601359250606086013567ffffffffffffffff8082111561140b57600080fd5b61141789838a01611327565b9350608088013591508082111561142d57600080fd5b5061143a88828901611327565b9150509295509295909350565b60006020828403121561145957600080fd5b81356108558161128c565b60008060006060848603121561147957600080fd5b83356114848161128c565b925060208401359150604084013567ffffffffffffffff8111156114a757600080fd5b6114b386828701611327565b9150509250925092565b600080604083850312156114d057600080fd5b82356114db8161128c565b915060208301356114eb8161128c565b809150509250929050565b6000806000806080858703121561150c57600080fd5b84356115178161128c565b935060208501359250604085013567ffffffffffffffff8082111561153b57600080fd5b61154788838901611327565b9350606087013591508082111561155d57600080fd5b5061156a87828801611327565b91505092959194509250565b6000806040838503121561158957600080fd5b82359150602083013567ffffffffffffffff8111156115a757600080fd5b6115b385828601611327565b9150509250929050565b600181811c908216806115d157607f821691505b6020821081036115f157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526024908201527f4552433737373a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000828210156116635761166361163b565b500390565b6020808252602c908201527f4552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f60408201526b39103337b9103437b63232b960a11b606082015260800190565b6000602082840312156116c657600080fd5b81516108558161128c565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c06080820181905260009061170c9083018561122c565b82810360a084015261171e818561122c565b9998505050505050505050565b6000821982111561173e5761173e61163b565b500190565b83815260606020820152600061175c606083018561122c565b828103604084015261176e818561122c565b969550505050505056fea26469706673582212201869327f143ce28bc605d0d86cf4362d1aedb903bd3b360fbb83d834a999122364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063959b8c3f116100a2578063d95b637111610071578063d95b63711461022b578063dd62ed3e1461023e578063fad8b32a14610277578063fc673c4f1461028a578063fe9d93031461029d57600080fd5b8063959b8c3f146101ea57806395d89b41146101fd5780639bd9bbc614610205578063a9059cbb1461021857600080fd5b806323b872dd116100e957806323b872dd14610183578063313ce56714610196578063556f0dc7146101a557806362ad1b83146101ac57806370a08231146101c157600080fd5b806306e485381461011b57806306fdde0314610139578063095ea7b31461014e57806318160ddd14610171575b600080fd5b6101236102b0565b60405161013091906111df565b60405180910390f35b610141610312565b6040516101309190611279565b61016161015c3660046112a4565b61039b565b6040519015158152602001610130565b6001545b604051908152602001610130565b6101616101913660046112d0565b6103b3565b60405160128152602001610130565b6001610175565b6101bf6101ba3660046113b4565b61057c565b005b6101756101cf366004611447565b6001600160a01b031660009081526020819052604090205490565b6101bf6101f8366004611447565b6105b8565b6101416106d5565b6101bf610213366004611464565b6106e4565b6101616102263660046112a4565b610707565b6101616102393660046114bd565b6107ba565b61017561024c3660046114bd565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b6101bf610285366004611447565b61085c565b6101bf6102983660046114f6565b610977565b6101bf6102ab366004611576565b6109af565b6060600480548060200260200160405190810160405280929190818152602001828054801561030857602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116102ea575b5050505050905090565b606060028054610321906115bd565b80601f016020809104026020016040519081016040528092919081815260200182805461034d906115bd565b80156103085780601f1061036f57610100808354040283529160200191610308565b820191906000526020600020905b81548152906001019060200180831161037d57509395945050505050565b6000336103a98185856109ce565b5060019392505050565b60006001600160a01b0383166103e45760405162461bcd60e51b81526004016103db906115f7565b60405180910390fd5b6001600160a01b0384166104495760405162461bcd60e51b815260206004820152602660248201527f4552433737373a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b60648201526084016103db565b600033905061047a818686866040518060200160405280600081525060405180602001604052806000815250610af5565b6104a6818686866040518060200160405280600081525060405180602001604052806000815250610c1d565b6001600160a01b038086166000908152600860209081526040808320938516835292905220548381101561052e5760405162461bcd60e51b815260206004820152602960248201527f4552433737373a207472616e7366657220616d6f756e74206578636565647320604482015268616c6c6f77616e636560b81b60648201526084016103db565b610542868361053d8785611651565b6109ce565b6105708287878760405180602001604052806000815250604051806020016040528060008152506000610d83565b50600195945050505050565b61058633866107ba565b6105a25760405162461bcd60e51b81526004016103db90611668565b6105b185858585856001610f48565b5050505050565b6001600160a01b038116330361061c5760405162461bcd60e51b8152602060048201526024808201527f4552433737373a20617574686f72697a696e672073656c66206173206f70657260448201526330ba37b960e11b60648201526084016103db565b6001600160a01b03811660009081526005602052604090205460ff161561066d573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff1916905561069c565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790555b60405133906001600160a01b038316907ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f990600090a350565b606060038054610321906115bd565b61070233848484604051806020016040528060008152506001610f48565b505050565b60006001600160a01b03831661072f5760405162461bcd60e51b81526004016103db906115f7565b6000339050610760818286866040518060200160405280600081525060405180602001604052806000815250610af5565b61078c818286866040518060200160405280600081525060405180602001604052806000815250610c1d565b6103a98182868660405180602001604052806000815250604051806020016040528060008152506000610d83565b6000816001600160a01b0316836001600160a01b0316148061082557506001600160a01b03831660009081526005602052604090205460ff16801561082557506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b8061085557506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b336001600160a01b038216036108be5760405162461bcd60e51b815260206004820152602160248201527f4552433737373a207265766f6b696e672073656c66206173206f70657261746f6044820152603960f91b60648201526084016103db565b6001600160a01b03811660009081526005602052604090205460ff1615610912573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561093e565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191690555b60405133906001600160a01b038316907f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa190600090a350565b61098133856107ba565b61099d5760405162461bcd60e51b81526004016103db90611668565b6109a98484848461102b565b50505050565b6109ca3383836040518060200160405280600081525061102b565b5050565b6001600160a01b038316610a325760405162461bcd60e51b815260206004820152602560248201527f4552433737373a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103db565b6001600160a01b038216610a945760405162461bcd60e51b815260206004820152602360248201527f4552433737373a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103db565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe8956024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa158015610b76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9a91906116b4565b90506001600160a01b03811615610c1457604051633ad5cbc160e11b81526001600160a01b038216906375ab978290610be1908a908a908a908a908a908a906004016116d1565b600060405180830381600087803b158015610bfb57600080fd5b505af1158015610c0f573d6000803e3d6000fd5b505050505b50505050505050565b6001600160a01b03851660009081526020819052604090205483811015610c965760405162461bcd60e51b815260206004820152602760248201527f4552433737373a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b60648201526084016103db565b6001600160a01b03808716600090815260208190526040808220878503905591871681529081208054869290610ccd90849061172b565b92505081905550846001600160a01b0316866001600160a01b0316886001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987878787604051610d2593929190611743565b60405180910390a4846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef86604051610d7291815260200190565b60405180910390a350505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa158015610e04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2891906116b4565b90506001600160a01b03811615610ea4576040516223de2960e01b81526001600160a01b038216906223de2990610e6d908b908b908b908b908b908b906004016116d1565b600060405180830381600087803b158015610e8757600080fd5b505af1158015610e9b573d6000803e3d6000fd5b50505050610f3e565b8115610f3e576001600160a01b0386163b15610f3e5760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a4016103db565b5050505050505050565b6001600160a01b038616610fa95760405162461bcd60e51b815260206004820152602260248201527f4552433737373a2073656e642066726f6d20746865207a65726f206164647265604482015261737360f01b60648201526084016103db565b6001600160a01b038516610fff5760405162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f206164647265737360448201526064016103db565b3361100e818888888888610af5565b61101c818888888888610c1d565b610c1481888888888888610d83565b6001600160a01b03841661108c5760405162461bcd60e51b815260206004820152602260248201527f4552433737373a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b60648201526084016103db565b3361109c81866000878787610af5565b6001600160a01b038516600090815260208190526040902054848110156111115760405162461bcd60e51b815260206004820152602360248201527f4552433737373a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b60648201526084016103db565b6001600160a01b0386166000908152602081905260408120868303905560018054879290611140908490611651565b92505081905550856001600160a01b0316826001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a409887878760405161118e93929190611743565b60405180910390a36040518581526000906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050505050565b6020808252825182820181905260009190848201906040850190845b818110156112205783516001600160a01b0316835292840192918401916001016111fb565b50909695505050505050565b6000815180845260005b8181101561125257602081850181015186830182015201611236565b81811115611264576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610855602083018461122c565b6001600160a01b03811681146112a157600080fd5b50565b600080604083850312156112b757600080fd5b82356112c28161128c565b946020939093013593505050565b6000806000606084860312156112e557600080fd5b83356112f08161128c565b925060208401356113008161128c565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261133857600080fd5b813567ffffffffffffffff8082111561135357611353611311565b604051601f8301601f19908116603f0116810190828211818310171561137b5761137b611311565b8160405283815286602085880101111561139457600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a086880312156113cc57600080fd5b85356113d78161128c565b945060208601356113e78161128c565b935060408601359250606086013567ffffffffffffffff8082111561140b57600080fd5b61141789838a01611327565b9350608088013591508082111561142d57600080fd5b5061143a88828901611327565b9150509295509295909350565b60006020828403121561145957600080fd5b81356108558161128c565b60008060006060848603121561147957600080fd5b83356114848161128c565b925060208401359150604084013567ffffffffffffffff8111156114a757600080fd5b6114b386828701611327565b9150509250925092565b600080604083850312156114d057600080fd5b82356114db8161128c565b915060208301356114eb8161128c565b809150509250929050565b6000806000806080858703121561150c57600080fd5b84356115178161128c565b935060208501359250604085013567ffffffffffffffff8082111561153b57600080fd5b61154788838901611327565b9350606087013591508082111561155d57600080fd5b5061156a87828801611327565b91505092959194509250565b6000806040838503121561158957600080fd5b82359150602083013567ffffffffffffffff8111156115a757600080fd5b6115b385828601611327565b9150509250929050565b600181811c908216806115d157607f821691505b6020821081036115f157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526024908201527f4552433737373a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000828210156116635761166361163b565b500390565b6020808252602c908201527f4552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f60408201526b39103337b9103437b63232b960a11b606082015260800190565b6000602082840312156116c657600080fd5b81516108558161128c565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c06080820181905260009061170c9083018561122c565b82810360a084015261171e818561122c565b9998505050505050505050565b6000821982111561173e5761173e61163b565b500190565b83815260606020820152600061175c606083018561122c565b828103604084015261176e818561122c565b969550505050505056fea26469706673582212201869327f143ce28bc605d0d86cf4362d1aedb903bd3b360fbb83d834a999122364736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name_", "type": "string", "internalType": "string"}, {"name": "symbol_", "type": "string", "internalType": "string"}, {"name": "defaultOperators_", "type": "address[]", "internalType": "address[]"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "AuthorizedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Burned", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Minted", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RevokedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Sent", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "holder", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "authorizeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "tokenHolder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "defaultOperators", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address[]", "internalType": "address[]"}]}, {"type": "function", "name": "granularity", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "isOperatorFor", "stateMutability": "view", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "tokenHolder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "operatorBurn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "operatorSend", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "revokeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "send", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "holder", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of the {IERC777} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. Support for ERC20 is included in this contract, as specified by the EIP: both the ERC777 and ERC20 interfaces can be safely used when interacting with it. Both {IERC777-Sent} and {IERC20-Transfer} events are emitted on token movements. Additionally, the {IERC777-granularity} value is hard-coded to `1`, meaning that there are no special restrictions in the amount of tokens that created, moved, or destroyed. This makes integration with ERC20 applications seamless.", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}. Note that operator and allowance concepts are orthogonal: operators may not have allowance, and accounts with allowance may not be operators themselves."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Note that accounts cannot have allowance issued by their operators."}, "authorizeOperator(address)": {"details": "See {IERC777-authorizeOperator}."}, "balanceOf(address)": {"details": "Returns the amount of tokens owned by an account (`tokenHolder`)."}, "burn(uint256,bytes)": {"details": "See {IERC777-burn}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."}, "constructor": {"details": "`defaultOperators` may be an empty array."}, "decimals()": {"details": "See {ERC20-decimals}. Always returns 18, as per the [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility)."}, "defaultOperators()": {"details": "See {IERC777-defaultOperators}."}, "granularity()": {"details": "See {IERC777-granularity}. This implementation always returns `1`."}, "isOperatorFor(address,address)": {"details": "See {IERC777-isOperatorFor}."}, "name()": {"details": "See {IERC777-name}."}, "operatorBurn(address,uint256,bytes,bytes)": {"details": "See {IERC777-operatorBurn}. Emits {Burned} and {IERC20-Transfer} events."}, "operatorSend(address,address,uint256,bytes,bytes)": {"details": "See {IERC777-operatorSend}. Emits {Sent} and {IERC20-Transfer} events."}, "revokeOperator(address)": {"details": "See {IERC777-revokeOperator}."}, "send(address,uint256,bytes)": {"details": "See {IERC777-send}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."}, "symbol()": {"details": "See {IERC777-symbol}."}, "totalSupply()": {"details": "See {IERC777-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient} interface if it is a contract. Also emits a {Sent} event."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Note that operator and allowance concepts are orthogonal: operators cannot call `transferFrom` (unless they have allowance), and accounts with allowance cannot call `operatorSend` (unless they are operators). Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events."}}, "version": 1}}, "IERC777": {"contractName": "IERC777", "sourceId": "token/ERC777/IERC777.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "AuthorizedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Burned", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Minted", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RevokedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Sent", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "function", "name": "authorizeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "owner", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "defaultOperators", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address[]", "internalType": "address[]"}]}, {"type": "function", "name": "granularity", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "isOperatorFor", "stateMutability": "view", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "tokenHolder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "operatorBurn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "operatorSend", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "revokeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "send", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC777Token standard as defined in the EIP. This contract uses the https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let token holders and recipients react to token movements by using setting implementers for the associated interfaces in said registry. See {IERC1820Registry} and {ERC1820Implementer}.", "kind": "dev", "methods": {"authorizeOperator(address)": {"details": "Make an account an operator of the caller. See {isOperatorFor}. Emits an {AuthorizedOperator} event. Requirements - `operator` cannot be calling address."}, "balanceOf(address)": {"details": "Returns the amount of tokens owned by an account (`owner`)."}, "burn(uint256,bytes)": {"details": "Destroys `amount` tokens from the caller's account, reducing the total supply. If a send hook is registered for the caller, the corresponding function will be called with `data` and empty `operatorData`. See {IERC777Sender}. Emits a {Burned} event. Requirements - the caller must have at least `amount` tokens."}, "defaultOperators()": {"details": "Returns the list of default operators. These accounts are operators for all token holders, even if {authorizeOperator} was never called on them. This list is immutable, but individual holders may revoke these via {revokeOperator}, in which case {isOperatorFor} will return false."}, "granularity()": {"details": "Returns the smallest part of the token that is not divisible. This means all token operations (creation, movement and destruction) must have amounts that are a multiple of this number. For most token contracts, this value will equal 1."}, "isOperatorFor(address,address)": {"details": "Returns true if an account is an operator of `tokenHolder`. Operators can send and burn tokens on behalf of their owners. All accounts are their own operator. See {operatorSend} and {operatorBurn}."}, "name()": {"details": "Returns the name of the token."}, "operatorBurn(address,uint256,bytes,bytes)": {"details": "Destroys `amount` tokens from `account`, reducing the total supply. The caller must be an operator of `account`. If a send hook is registered for `account`, the corresponding function will be called with `data` and `operatorData`. See {IERC777Sender}. Emits a {Burned} event. Requirements - `account` cannot be the zero address. - `account` must have at least `amount` tokens. - the caller must be an operator for `account`."}, "operatorSend(address,address,uint256,bytes,bytes)": {"details": "Moves `amount` tokens from `sender` to `recipient`. The caller must be an operator of `sender`. If send or receive hooks are registered for `sender` and `recipient`, the corresponding functions will be called with `data` and `operatorData`. See {IERC777Sender} and {IERC777Recipient}. Emits a {Sent} event. Requirements - `sender` cannot be the zero address. - `sender` must have at least `amount` tokens. - the caller must be an operator for `sender`. - `recipient` cannot be the zero address. - if `recipient` is a contract, it must implement the {IERC777Recipient} interface."}, "revokeOperator(address)": {"details": "Revoke an account's operator status for the caller. See {isOperatorFor} and {defaultOperators}. Emits a {RevokedOperator} event. Requirements - `operator` cannot be calling address."}, "send(address,uint256,bytes)": {"details": "Moves `amount` tokens from the caller's account to `recipient`. If send or receive hooks are registered for the caller and `recipient`, the corresponding functions will be called with `data` and empty `operatorData`. See {IERC777Sender} and {IERC777Recipient}. Emits a {Sent} event. Requirements - the caller must have at least `amount` tokens. - `recipient` cannot be the zero address. - if `recipient` is a contract, it must implement the {IERC777Recipient} interface."}, "symbol()": {"details": "Returns the symbol of the token, usually a shorter version of the name."}, "totalSupply()": {"details": "Returns the amount of tokens in existence."}}, "version": 1}}, "IERC777Recipient": {"contractName": "IERC777Recipient", "sourceId": "token/ERC777/IERC777Recipient.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "tokensReceived", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "userData", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC777TokensRecipient standard as defined in the EIP. Accounts can be notified of {IERC777} tokens being sent to them by having a contract implement this interface (contract holders can be their own implementer) and registering it on the https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry]. See {IERC1820Registry} and {ERC1820Implementer}.", "kind": "dev", "methods": {"tokensReceived(address,address,address,uint256,bytes,bytes)": {"details": "Called by an {IERC777} token contract whenever tokens are being moved or created into a registered account (`to`). The type of operation is conveyed by `from` being the zero address or not. This call occurs _after_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the post-operation state. This function may revert to prevent the operation from being executed."}}, "version": 1}}, "IERC777Sender": {"contractName": "IERC777Sender", "sourceId": "token/ERC777/IERC777Sender.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "tokensToSend", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "from", "type": "address", "internalType": "address"}, {"name": "to", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "userData", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC777TokensSender standard as defined in the EIP. {IERC777} Token holders can be notified of operations performed on their tokens by having a contract implement this interface (contract holders can be their own implementer) and registering it on the https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry]. See {IERC1820Registry} and {ERC1820Implementer}.", "kind": "dev", "methods": {"tokensToSend(address,address,address,uint256,bytes,bytes)": {"details": "Called by an {IERC777} token contract whenever a registered holder's (`from`) tokens are about to be moved or destroyed. The type of operation is conveyed by `to` being the zero address or not. This call occurs _before_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the pre-operation state. This function may revert to prevent the operation from being executed."}}, "version": 1}}, "ERC777PresetFixedSupply": {"contractName": "ERC777PresetFixedSupply", "sourceId": "token/ERC777/presets/ERC777PresetFixedSupply.sol", "deploymentBytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162002220380380620022208339810160408190526200003491620007b0565b84848482600290805190602001906200004f929190620005a9565b50815162000065906003906020850190620005a9565b5080516200007b90600490602084019062000638565b5060005b8151811015620000eb57600160056000848481518110620000a457620000a4620008d3565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580620000e281620008ff565b9150506200007f565b506040516329965a1d60e01b815230600482018190527fac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce217705460248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad24906329965a1d90606401600060405180830381600087803b1580156200016657600080fd5b505af11580156200017b573d6000803e3d6000fd5b50506040516329965a1d60e01b815230600482018190527faea199e31a596269b42cdafd93407f14436db6e4cad65417994c2eb37381e05a60248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad2492506329965a1d9150606401600060405180830381600087803b158015620001f957600080fd5b505af11580156200020e573d6000803e3d6000fd5b5050505050505062000247818360405180602001604052806000815250604051806020016040528060008152506200025260201b60201c565b505050505062000a5c565b6200026284848484600162000268565b50505050565b6001600160a01b038516620002c45760405162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f206164647265737360448201526064015b60405180910390fd5b60003390508460016000828254620002dd91906200091b565b90915550506001600160a01b038616600090815260208190526040812080548792906200030c9084906200091b565b909155506200032490508160008888888888620003be565b856001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d8787876040516200036d9392919062000964565b60405180910390a36040518581526001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa15801562000440573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200046691906200099d565b90506001600160a01b03811615620004e8576040516223de2960e01b81526001600160a01b038216906223de2990620004ae908b908b908b908b908b908b90600401620009c2565b600060405180830381600087803b158015620004c957600080fd5b505af1158015620004de573d6000803e3d6000fd5b5050505062000599565b811562000599576200050e866001600160a01b0316620005a360201b620009ce1760201c565b15620005995760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a401620002bb565b5050505050505050565b3b151590565b828054620005b79062000a20565b90600052602060002090601f016020900481019282620005db576000855562000626565b82601f10620005f657805160ff191683800117855562000626565b8280016001018555821562000626579182015b828111156200062657825182559160200191906001019062000609565b506200063492915062000690565b5090565b82805482825590600052602060002090810192821562000626579160200282015b828111156200062657825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000659565b5b8082111562000634576000815560010162000691565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620006e857620006e8620006a7565b604052919050565b60005b838110156200070d578181015183820152602001620006f3565b83811115620002625750506000910152565b600082601f8301126200073157600080fd5b81516001600160401b038111156200074d576200074d620006a7565b62000762601f8201601f1916602001620006bd565b8181528460208386010111156200077857600080fd5b6200078b826020830160208701620006f0565b949350505050565b80516001600160a01b0381168114620007ab57600080fd5b919050565b600080600080600060a08688031215620007c957600080fd5b85516001600160401b0380821115620007e157600080fd5b620007ef89838a016200071f565b96506020915081880151818111156200080757600080fd5b620008158a828b016200071f565b9650506040880151818111156200082b57600080fd5b8801601f81018a136200083d57600080fd5b805182811115620008525762000852620006a7565b8060051b925062000865848401620006bd565b818152928201840192848101908c8511156200088057600080fd5b928501925b84841015620008a957620008998462000793565b8252928501929085019062000885565b80985050505050505060608601519150620008c76080870162000793565b90509295509295909350565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201620009145762000914620008e9565b5060010190565b60008219821115620009315762000931620008e9565b500190565b6000815180845262000950816020860160208601620006f0565b601f01601f19169290920160200192915050565b8381526060602082015260006200097f606083018562000936565b828103604084015262000993818562000936565b9695505050505050565b600060208284031215620009b057600080fd5b620009bb8262000793565b9392505050565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c060808201819052600090620009ff9083018562000936565b82810360a084015262000a13818562000936565b9998505050505050505050565b600181811c9082168062000a3557607f821691505b60208210810362000a5657634e487b7160e01b600052602260045260246000fd5b50919050565b6117b48062000a6c6000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063959b8c3f116100a2578063d95b637111610071578063d95b63711461022b578063dd62ed3e1461023e578063fad8b32a14610277578063fc673c4f1461028a578063fe9d93031461029d57600080fd5b8063959b8c3f146101ea57806395d89b41146101fd5780639bd9bbc614610205578063a9059cbb1461021857600080fd5b806323b872dd116100e957806323b872dd14610183578063313ce56714610196578063556f0dc7146101a557806362ad1b83146101ac57806370a08231146101c157600080fd5b806306e485381461011b57806306fdde0314610139578063095ea7b31461014e57806318160ddd14610171575b600080fd5b6101236102b0565b60405161013091906111e5565b60405180910390f35b610141610312565b604051610130919061127f565b61016161015c3660046112aa565b61039b565b6040519015158152602001610130565b6001545b604051908152602001610130565b6101616101913660046112d6565b6103b3565b60405160128152602001610130565b6001610175565b6101bf6101ba3660046113ba565b61057c565b005b6101756101cf36600461144d565b6001600160a01b031660009081526020819052604090205490565b6101bf6101f836600461144d565b6105b8565b6101416106d5565b6101bf61021336600461146a565b6106e4565b6101616102263660046112aa565b610707565b6101616102393660046114c3565b6107ba565b61017561024c3660046114c3565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b6101bf61028536600461144d565b61085c565b6101bf6102983660046114fc565b610977565b6101bf6102ab36600461157c565b6109af565b6060600480548060200260200160405190810160405280929190818152602001828054801561030857602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116102ea575b5050505050905090565b606060028054610321906115c3565b80601f016020809104026020016040519081016040528092919081815260200182805461034d906115c3565b80156103085780601f1061036f57610100808354040283529160200191610308565b820191906000526020600020905b81548152906001019060200180831161037d57509395945050505050565b6000336103a98185856109d4565b5060019392505050565b60006001600160a01b0383166103e45760405162461bcd60e51b81526004016103db906115fd565b60405180910390fd5b6001600160a01b0384166104495760405162461bcd60e51b815260206004820152602660248201527f4552433737373a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b60648201526084016103db565b600033905061047a818686866040518060200160405280600081525060405180602001604052806000815250610afb565b6104a6818686866040518060200160405280600081525060405180602001604052806000815250610c23565b6001600160a01b038086166000908152600860209081526040808320938516835292905220548381101561052e5760405162461bcd60e51b815260206004820152602960248201527f4552433737373a207472616e7366657220616d6f756e74206578636565647320604482015268616c6c6f77616e636560b81b60648201526084016103db565b610542868361053d8785611657565b6109d4565b6105708287878760405180602001604052806000815250604051806020016040528060008152506000610d89565b50600195945050505050565b61058633866107ba565b6105a25760405162461bcd60e51b81526004016103db9061166e565b6105b185858585856001610f4e565b5050505050565b6001600160a01b038116330361061c5760405162461bcd60e51b8152602060048201526024808201527f4552433737373a20617574686f72697a696e672073656c66206173206f70657260448201526330ba37b960e11b60648201526084016103db565b6001600160a01b03811660009081526005602052604090205460ff161561066d573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff1916905561069c565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790555b60405133906001600160a01b038316907ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f990600090a350565b606060038054610321906115c3565b61070233848484604051806020016040528060008152506001610f4e565b505050565b60006001600160a01b03831661072f5760405162461bcd60e51b81526004016103db906115fd565b6000339050610760818286866040518060200160405280600081525060405180602001604052806000815250610afb565b61078c818286866040518060200160405280600081525060405180602001604052806000815250610c23565b6103a98182868660405180602001604052806000815250604051806020016040528060008152506000610d89565b6000816001600160a01b0316836001600160a01b0316148061082557506001600160a01b03831660009081526005602052604090205460ff16801561082557506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b8061085557506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b336001600160a01b038216036108be5760405162461bcd60e51b815260206004820152602160248201527f4552433737373a207265766f6b696e672073656c66206173206f70657261746f6044820152603960f91b60648201526084016103db565b6001600160a01b03811660009081526005602052604090205460ff1615610912573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561093e565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191690555b60405133906001600160a01b038316907f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa190600090a350565b61098133856107ba565b61099d5760405162461bcd60e51b81526004016103db9061166e565b6109a984848484611031565b50505050565b6109ca33838360405180602001604052806000815250611031565b5050565b3b151590565b6001600160a01b038316610a385760405162461bcd60e51b815260206004820152602560248201527f4552433737373a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103db565b6001600160a01b038216610a9a5760405162461bcd60e51b815260206004820152602360248201527f4552433737373a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103db565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe8956024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa158015610b7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba091906116ba565b90506001600160a01b03811615610c1a57604051633ad5cbc160e11b81526001600160a01b038216906375ab978290610be7908a908a908a908a908a908a906004016116d7565b600060405180830381600087803b158015610c0157600080fd5b505af1158015610c15573d6000803e3d6000fd5b505050505b50505050505050565b6001600160a01b03851660009081526020819052604090205483811015610c9c5760405162461bcd60e51b815260206004820152602760248201527f4552433737373a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b60648201526084016103db565b6001600160a01b03808716600090815260208190526040808220878503905591871681529081208054869290610cd3908490611731565b92505081905550846001600160a01b0316866001600160a01b0316886001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987878787604051610d2b93929190611749565b60405180910390a4846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef86604051610d7891815260200190565b60405180910390a350505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa158015610e0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2e91906116ba565b90506001600160a01b03811615610eaa576040516223de2960e01b81526001600160a01b038216906223de2990610e73908b908b908b908b908b908b906004016116d7565b600060405180830381600087803b158015610e8d57600080fd5b505af1158015610ea1573d6000803e3d6000fd5b50505050610f44565b8115610f44576001600160a01b0386163b15610f445760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a4016103db565b5050505050505050565b6001600160a01b038616610faf5760405162461bcd60e51b815260206004820152602260248201527f4552433737373a2073656e642066726f6d20746865207a65726f206164647265604482015261737360f01b60648201526084016103db565b6001600160a01b0385166110055760405162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f206164647265737360448201526064016103db565b33611014818888888888610afb565b611022818888888888610c23565b610c1a81888888888888610d89565b6001600160a01b0384166110925760405162461bcd60e51b815260206004820152602260248201527f4552433737373a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b60648201526084016103db565b336110a281866000878787610afb565b6001600160a01b038516600090815260208190526040902054848110156111175760405162461bcd60e51b815260206004820152602360248201527f4552433737373a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b60648201526084016103db565b6001600160a01b0386166000908152602081905260408120868303905560018054879290611146908490611657565b92505081905550856001600160a01b0316826001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a409887878760405161119493929190611749565b60405180910390a36040518581526000906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050505050565b6020808252825182820181905260009190848201906040850190845b818110156112265783516001600160a01b031683529284019291840191600101611201565b50909695505050505050565b6000815180845260005b818110156112585760208185018101518683018201520161123c565b8181111561126a576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006108556020830184611232565b6001600160a01b03811681146112a757600080fd5b50565b600080604083850312156112bd57600080fd5b82356112c881611292565b946020939093013593505050565b6000806000606084860312156112eb57600080fd5b83356112f681611292565b9250602084013561130681611292565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261133e57600080fd5b813567ffffffffffffffff8082111561135957611359611317565b604051601f8301601f19908116603f0116810190828211818310171561138157611381611317565b8160405283815286602085880101111561139a57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a086880312156113d257600080fd5b85356113dd81611292565b945060208601356113ed81611292565b935060408601359250606086013567ffffffffffffffff8082111561141157600080fd5b61141d89838a0161132d565b9350608088013591508082111561143357600080fd5b506114408882890161132d565b9150509295509295909350565b60006020828403121561145f57600080fd5b813561085581611292565b60008060006060848603121561147f57600080fd5b833561148a81611292565b925060208401359150604084013567ffffffffffffffff8111156114ad57600080fd5b6114b98682870161132d565b9150509250925092565b600080604083850312156114d657600080fd5b82356114e181611292565b915060208301356114f181611292565b809150509250929050565b6000806000806080858703121561151257600080fd5b843561151d81611292565b935060208501359250604085013567ffffffffffffffff8082111561154157600080fd5b61154d8883890161132d565b9350606087013591508082111561156357600080fd5b506115708782880161132d565b91505092959194509250565b6000806040838503121561158f57600080fd5b82359150602083013567ffffffffffffffff8111156115ad57600080fd5b6115b98582860161132d565b9150509250929050565b600181811c908216806115d757607f821691505b6020821081036115f757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526024908201527f4552433737373a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008282101561166957611669611641565b500390565b6020808252602c908201527f4552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f60408201526b39103337b9103437b63232b960a11b606082015260800190565b6000602082840312156116cc57600080fd5b815161085581611292565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c06080820181905260009061171290830185611232565b82810360a08401526117248185611232565b9998505050505050505050565b6000821982111561174457611744611641565b500190565b8381526060602082015260006117626060830185611232565b82810360408401526117748185611232565b969550505050505056fea26469706673582212209a608268f444da0b2d5471570a10c5a7f615b3cf7db80ce322d517d7ae40928e64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063959b8c3f116100a2578063d95b637111610071578063d95b63711461022b578063dd62ed3e1461023e578063fad8b32a14610277578063fc673c4f1461028a578063fe9d93031461029d57600080fd5b8063959b8c3f146101ea57806395d89b41146101fd5780639bd9bbc614610205578063a9059cbb1461021857600080fd5b806323b872dd116100e957806323b872dd14610183578063313ce56714610196578063556f0dc7146101a557806362ad1b83146101ac57806370a08231146101c157600080fd5b806306e485381461011b57806306fdde0314610139578063095ea7b31461014e57806318160ddd14610171575b600080fd5b6101236102b0565b60405161013091906111e5565b60405180910390f35b610141610312565b604051610130919061127f565b61016161015c3660046112aa565b61039b565b6040519015158152602001610130565b6001545b604051908152602001610130565b6101616101913660046112d6565b6103b3565b60405160128152602001610130565b6001610175565b6101bf6101ba3660046113ba565b61057c565b005b6101756101cf36600461144d565b6001600160a01b031660009081526020819052604090205490565b6101bf6101f836600461144d565b6105b8565b6101416106d5565b6101bf61021336600461146a565b6106e4565b6101616102263660046112aa565b610707565b6101616102393660046114c3565b6107ba565b61017561024c3660046114c3565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b6101bf61028536600461144d565b61085c565b6101bf6102983660046114fc565b610977565b6101bf6102ab36600461157c565b6109af565b6060600480548060200260200160405190810160405280929190818152602001828054801561030857602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116102ea575b5050505050905090565b606060028054610321906115c3565b80601f016020809104026020016040519081016040528092919081815260200182805461034d906115c3565b80156103085780601f1061036f57610100808354040283529160200191610308565b820191906000526020600020905b81548152906001019060200180831161037d57509395945050505050565b6000336103a98185856109d4565b5060019392505050565b60006001600160a01b0383166103e45760405162461bcd60e51b81526004016103db906115fd565b60405180910390fd5b6001600160a01b0384166104495760405162461bcd60e51b815260206004820152602660248201527f4552433737373a207472616e736665722066726f6d20746865207a65726f206160448201526564647265737360d01b60648201526084016103db565b600033905061047a818686866040518060200160405280600081525060405180602001604052806000815250610afb565b6104a6818686866040518060200160405280600081525060405180602001604052806000815250610c23565b6001600160a01b038086166000908152600860209081526040808320938516835292905220548381101561052e5760405162461bcd60e51b815260206004820152602960248201527f4552433737373a207472616e7366657220616d6f756e74206578636565647320604482015268616c6c6f77616e636560b81b60648201526084016103db565b610542868361053d8785611657565b6109d4565b6105708287878760405180602001604052806000815250604051806020016040528060008152506000610d89565b50600195945050505050565b61058633866107ba565b6105a25760405162461bcd60e51b81526004016103db9061166e565b6105b185858585856001610f4e565b5050505050565b6001600160a01b038116330361061c5760405162461bcd60e51b8152602060048201526024808201527f4552433737373a20617574686f72697a696e672073656c66206173206f70657260448201526330ba37b960e11b60648201526084016103db565b6001600160a01b03811660009081526005602052604090205460ff161561066d573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff1916905561069c565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790555b60405133906001600160a01b038316907ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f990600090a350565b606060038054610321906115c3565b61070233848484604051806020016040528060008152506001610f4e565b505050565b60006001600160a01b03831661072f5760405162461bcd60e51b81526004016103db906115fd565b6000339050610760818286866040518060200160405280600081525060405180602001604052806000815250610afb565b61078c818286866040518060200160405280600081525060405180602001604052806000815250610c23565b6103a98182868660405180602001604052806000815250604051806020016040528060008152506000610d89565b6000816001600160a01b0316836001600160a01b0316148061082557506001600160a01b03831660009081526005602052604090205460ff16801561082557506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b8061085557506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b336001600160a01b038216036108be5760405162461bcd60e51b815260206004820152602160248201527f4552433737373a207265766f6b696e672073656c66206173206f70657261746f6044820152603960f91b60648201526084016103db565b6001600160a01b03811660009081526005602052604090205460ff1615610912573360009081526007602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561093e565b3360009081526006602090815260408083206001600160a01b03851684529091529020805460ff191690555b60405133906001600160a01b038316907f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa190600090a350565b61098133856107ba565b61099d5760405162461bcd60e51b81526004016103db9061166e565b6109a984848484611031565b50505050565b6109ca33838360405180602001604052806000815250611031565b5050565b3b151590565b6001600160a01b038316610a385760405162461bcd60e51b815260206004820152602560248201527f4552433737373a20617070726f76652066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103db565b6001600160a01b038216610a9a5760405162461bcd60e51b815260206004820152602360248201527f4552433737373a20617070726f766520746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103db565b6001600160a01b0383811660008181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe8956024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa158015610b7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba091906116ba565b90506001600160a01b03811615610c1a57604051633ad5cbc160e11b81526001600160a01b038216906375ab978290610be7908a908a908a908a908a908a906004016116d7565b600060405180830381600087803b158015610c0157600080fd5b505af1158015610c15573d6000803e3d6000fd5b505050505b50505050505050565b6001600160a01b03851660009081526020819052604090205483811015610c9c5760405162461bcd60e51b815260206004820152602760248201527f4552433737373a207472616e7366657220616d6f756e7420657863656564732060448201526662616c616e636560c81b60648201526084016103db565b6001600160a01b03808716600090815260208190526040808220878503905591871681529081208054869290610cd3908490611731565b92505081905550846001600160a01b0316866001600160a01b0316886001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987878787604051610d2b93929190611749565b60405180910390a4846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef86604051610d7891815260200190565b60405180910390a350505050505050565b60405163555ddc6560e11b81526001600160a01b03861660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b6024820152600090731820a4b7618bde71dce8cdc73aab6c95905fad249063aabbb8ca90604401602060405180830381865afa158015610e0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2e91906116ba565b90506001600160a01b03811615610eaa576040516223de2960e01b81526001600160a01b038216906223de2990610e73908b908b908b908b908b908b906004016116d7565b600060405180830381600087803b158015610e8d57600080fd5b505af1158015610ea1573d6000803e3d6000fd5b50505050610f44565b8115610f44576001600160a01b0386163b15610f445760405162461bcd60e51b815260206004820152604d60248201527f4552433737373a20746f6b656e20726563697069656e7420636f6e747261637460448201527f20686173206e6f20696d706c656d656e74657220666f7220455243373737546f60648201526c1ad95b9cd49958da5c1a595b9d609a1b608482015260a4016103db565b5050505050505050565b6001600160a01b038616610faf5760405162461bcd60e51b815260206004820152602260248201527f4552433737373a2073656e642066726f6d20746865207a65726f206164647265604482015261737360f01b60648201526084016103db565b6001600160a01b0385166110055760405162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f206164647265737360448201526064016103db565b33611014818888888888610afb565b611022818888888888610c23565b610c1a81888888888888610d89565b6001600160a01b0384166110925760405162461bcd60e51b815260206004820152602260248201527f4552433737373a206275726e2066726f6d20746865207a65726f206164647265604482015261737360f01b60648201526084016103db565b336110a281866000878787610afb565b6001600160a01b038516600090815260208190526040902054848110156111175760405162461bcd60e51b815260206004820152602360248201527f4552433737373a206275726e20616d6f756e7420657863656564732062616c616044820152626e636560e81b60648201526084016103db565b6001600160a01b0386166000908152602081905260408120868303905560018054879290611146908490611657565b92505081905550856001600160a01b0316826001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a409887878760405161119493929190611749565b60405180910390a36040518581526000906001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050505050565b6020808252825182820181905260009190848201906040850190845b818110156112265783516001600160a01b031683529284019291840191600101611201565b50909695505050505050565b6000815180845260005b818110156112585760208185018101518683018201520161123c565b8181111561126a576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006108556020830184611232565b6001600160a01b03811681146112a757600080fd5b50565b600080604083850312156112bd57600080fd5b82356112c881611292565b946020939093013593505050565b6000806000606084860312156112eb57600080fd5b83356112f681611292565b9250602084013561130681611292565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261133e57600080fd5b813567ffffffffffffffff8082111561135957611359611317565b604051601f8301601f19908116603f0116810190828211818310171561138157611381611317565b8160405283815286602085880101111561139a57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a086880312156113d257600080fd5b85356113dd81611292565b945060208601356113ed81611292565b935060408601359250606086013567ffffffffffffffff8082111561141157600080fd5b61141d89838a0161132d565b9350608088013591508082111561143357600080fd5b506114408882890161132d565b9150509295509295909350565b60006020828403121561145f57600080fd5b813561085581611292565b60008060006060848603121561147f57600080fd5b833561148a81611292565b925060208401359150604084013567ffffffffffffffff8111156114ad57600080fd5b6114b98682870161132d565b9150509250925092565b600080604083850312156114d657600080fd5b82356114e181611292565b915060208301356114f181611292565b809150509250929050565b6000806000806080858703121561151257600080fd5b843561151d81611292565b935060208501359250604085013567ffffffffffffffff8082111561154157600080fd5b61154d8883890161132d565b9350606087013591508082111561156357600080fd5b506115708782880161132d565b91505092959194509250565b6000806040838503121561158f57600080fd5b82359150602083013567ffffffffffffffff8111156115ad57600080fd5b6115b98582860161132d565b9150509250929050565b600181811c908216806115d757607f821691505b6020821081036115f757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526024908201527f4552433737373a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008282101561166957611669611641565b500390565b6020808252602c908201527f4552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f60408201526b39103337b9103437b63232b960a11b606082015260800190565b6000602082840312156116cc57600080fd5b815161085581611292565b6001600160a01b0387811682528681166020830152851660408201526060810184905260c06080820181905260009061171290830185611232565b82810360a08401526117248185611232565b9998505050505050505050565b6000821982111561174457611744611641565b500190565b8381526060602082015260006117626060830185611232565b82810360408401526117748185611232565b969550505050505056fea26469706673582212209a608268f444da0b2d5471570a10c5a7f615b3cf7db80ce322d517d7ae40928e64736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "name", "type": "string", "internalType": "string"}, {"name": "symbol", "type": "string", "internalType": "string"}, {"name": "defaultOperators", "type": "address[]", "internalType": "address[]"}, {"name": "initialSupply", "type": "uint256", "internalType": "uint256"}, {"name": "owner", "type": "address", "internalType": "address"}]}, {"type": "event", "name": "Approval", "inputs": [{"name": "owner", "type": "address", "internalType": "address", "indexed": true}, {"name": "spender", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "AuthorizedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Burned", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Minted", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "RevokedOperator", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "tokenHolder", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Sent", "inputs": [{"name": "operator", "type": "address", "internalType": "address", "indexed": true}, {"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "amount", "type": "uint256", "internalType": "uint256", "indexed": false}, {"name": "data", "type": "bytes", "internalType": "bytes", "indexed": false}, {"name": "operatorData", "type": "bytes", "internalType": "bytes", "indexed": false}], "anonymous": false}, {"type": "event", "name": "Transfer", "inputs": [{"name": "from", "type": "address", "internalType": "address", "indexed": true}, {"name": "to", "type": "address", "internalType": "address", "indexed": true}, {"name": "value", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "allowance", "stateMutability": "view", "inputs": [{"name": "holder", "type": "address", "internalType": "address"}, {"name": "spender", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "approve", "stateMutability": "nonpayable", "inputs": [{"name": "spender", "type": "address", "internalType": "address"}, {"name": "value", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "authorizeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "balanceOf", "stateMutability": "view", "inputs": [{"name": "tokenHolder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "burn", "stateMutability": "nonpayable", "inputs": [{"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "decimals", "stateMutability": "pure", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}]}, {"type": "function", "name": "defaultOperators", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address[]", "internalType": "address[]"}]}, {"type": "function", "name": "granularity", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "isOperatorFor", "stateMutability": "view", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}, {"name": "tokenHolder", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "name", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "operatorBurn", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "operatorSend", "stateMutability": "nonpayable", "inputs": [{"name": "sender", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}, {"name": "operatorData", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "revokeOperator", "stateMutability": "nonpayable", "inputs": [{"name": "operator", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "send", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}, {"name": "data", "type": "bytes", "internalType": "bytes"}], "outputs": []}, {"type": "function", "name": "symbol", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "string", "internalType": "string"}]}, {"type": "function", "name": "totalSupply", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "transfer", "stateMutability": "nonpayable", "inputs": [{"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "transferFrom", "stateMutability": "nonpayable", "inputs": [{"name": "holder", "type": "address", "internalType": "address"}, {"name": "recipient", "type": "address", "internalType": "address"}, {"name": "amount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "{ERC777} token, including: - Preminted initial supply - No access control mechanism (for minting/pausing) and hence no governance _Available since v3.4._", "kind": "dev", "methods": {"allowance(address,address)": {"details": "See {IERC20-allowance}. Note that operator and allowance concepts are orthogonal: operators may not have allowance, and accounts with allowance may not be operators themselves."}, "approve(address,uint256)": {"details": "See {IERC20-approve}. Note that accounts cannot have allowance issued by their operators."}, "authorizeOperator(address)": {"details": "See {IERC777-authorizeOperator}."}, "balanceOf(address)": {"details": "Returns the amount of tokens owned by an account (`tokenHolder`)."}, "burn(uint256,bytes)": {"details": "See {IERC777-burn}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."}, "constructor": {"details": "Mints `initialSupply` amount of token and transfers them to `owner`. See {ERC777-constructor}."}, "decimals()": {"details": "See {ERC20-decimals}. Always returns 18, as per the [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility)."}, "defaultOperators()": {"details": "See {IERC777-defaultOperators}."}, "granularity()": {"details": "See {IERC777-granularity}. This implementation always returns `1`."}, "isOperatorFor(address,address)": {"details": "See {IERC777-isOperatorFor}."}, "name()": {"details": "See {IERC777-name}."}, "operatorBurn(address,uint256,bytes,bytes)": {"details": "See {IERC777-operatorBurn}. Emits {Burned} and {IERC20-Transfer} events."}, "operatorSend(address,address,uint256,bytes,bytes)": {"details": "See {IERC777-operatorSend}. Emits {Sent} and {IERC20-Transfer} events."}, "revokeOperator(address)": {"details": "See {IERC777-revokeOperator}."}, "send(address,uint256,bytes)": {"details": "See {IERC777-send}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."}, "symbol()": {"details": "See {IERC777-symbol}."}, "totalSupply()": {"details": "See {IERC777-totalSupply}."}, "transfer(address,uint256)": {"details": "See {IERC20-transfer}. Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient} interface if it is a contract. Also emits a {Sent} event."}, "transferFrom(address,address,uint256)": {"details": "See {IERC20-transferFrom}. Note that operator and allowance concepts are orthogonal: operators cannot call `transferFrom` (unless they have allowance), and accounts with allowance cannot call `operatorSend` (unless they are operators). Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events."}}, "version": 1}}, "Address": {"contractName": "Address", "sourceId": "utils/Address.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220f067b81e7fd0deec35e662cbe4568a561d1b48ecf2307403894b486bb830261464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220f067b81e7fd0deec35e662cbe4568a561d1b48ecf2307403894b486bb830261464736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Collection of functions related to the address type", "kind": "dev", "methods": {}, "version": 1}}, "Arrays": {"contractName": "Arrays", "sourceId": "utils/Arrays.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203149b2e270087c03520c6f947ffeab989aec1c065b5bc97a0177e55f824c9ddb64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203149b2e270087c03520c6f947ffeab989aec1c065b5bc97a0177e55f824c9ddb64736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Collection of functions related to array types.", "kind": "dev", "methods": {}, "version": 1}}, "Context": {"contractName": "Context", "sourceId": "utils/Context.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execution may not be the actual sender (as far as an application is concerned). This contract is only required for intermediate, library-like contracts.", "kind": "dev", "methods": {}, "version": 1}}, "Counters": {"contractName": "Counters", "sourceId": "utils/Counters.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220901e6e549d2957ca4cb80621be4788579540eddf3f97ea499b720dc379fdacfb64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220901e6e549d2957ca4cb80621be4788579540eddf3f97ea499b720dc379fdacfb64736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"author": "Matt Condon (@shrugs)", "details": "Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number of elements in a mapping, issuing ERC721 ids, or counting request ids. Include with `using Counters for Counters.Counter;`", "kind": "dev", "methods": {}, "title": "Counters", "version": 1}}, "Create2": {"contractName": "Create2", "sourceId": "utils/Create2.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220fa441cc579c75094706f665fa99c8edd6fa9d62e939227b37a8409c1bf4bcd2264736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220fa441cc579c75094706f665fa99c8edd6fa9d62e939227b37a8409c1bf4bcd2264736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Helper to make usage of the `CREATE2` EVM opcode easier and safer. `CREATE2` can be used to compute in advance the address where a smart contract will be deployed, which allows for interesting new mechanisms known as 'counterfactual interactions'. See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more information.", "kind": "dev", "methods": {}, "version": 1}}, "Multicall": {"contractName": "Multicall", "sourceId": "utils/Multicall.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "multicall", "stateMutability": "nonpayable", "inputs": [{"name": "data", "type": "bytes[]", "internalType": "bytes[]"}], "outputs": [{"name": "results", "type": "bytes[]", "internalType": "bytes[]"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Provides a function to batch together multiple calls in a single external call. _Available since v4.1._", "kind": "dev", "methods": {"multicall(bytes[])": {"details": "Receives and executes a batch of function calls on this contract."}}, "version": 1}}, "StorageSlot": {"contractName": "StorageSlot", "sourceId": "utils/StorageSlot.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207f83b388b71c4a564a629fec647c16cda6198dbd01c8741f59b88c0cfcbf428364736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207f83b388b71c4a564a629fec647c16cda6198dbd01c8741f59b88c0cfcbf428364736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Library for reading and writing primitive types to specific storage slots. Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. This library helps with reading and writing to such slots without the need for inline assembly. The functions in this library return Slot structs that contain a `value` member that can be used to read or write. Example usage to set ERC1967 implementation slot: ``` contract ERC1967 { bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; function _getImplementation() internal view returns (address) { return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; } function _setImplementation(address newImplementation) internal { require(Address.isContract(newImplementation), \"ERC1967: new implementation is not a contract\"); StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } } ``` _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._", "kind": "dev", "methods": {}, "version": 1}}, "Strings": {"contractName": "Strings", "sourceId": "utils/Strings.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a8c9305407947088eecb5a7d91fc8d5e9d043d6ef300fa801cc3b739cfc8752464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a8c9305407947088eecb5a7d91fc8d5e9d043d6ef300fa801cc3b739cfc8752464736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "String operations.", "kind": "dev", "methods": {}, "version": 1}}, "Timers": {"contractName": "Timers", "sourceId": "utils/Timers.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122005554132ec1541a8d9b41af39e07907894a0141f5d9a333431f5d69f8e99d3eb64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122005554132ec1541a8d9b41af39e07907894a0141f5d9a333431f5d69f8e99d3eb64736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Tooling for timepoints, timers and delays", "kind": "dev", "methods": {}, "version": 1}}, "ECDSA": {"contractName": "ECDSA", "sourceId": "utils/cryptography/ECDSA.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202e38bdef70d9e006e79c3925b284c8495aa87679bcfbb6bf14b798c32e51c4e064736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202e38bdef70d9e006e79c3925b284c8495aa87679bcfbb6bf14b798c32e51c4e064736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Elliptic Curve Digital Signature Algorithm (ECDSA) operations. These functions can be used to verify that a message was signed by the holder of the private keys of a given address.", "kind": "dev", "methods": {}, "version": 1}}, "MerkleProof": {"contractName": "MerkleProof", "sourceId": "utils/cryptography/MerkleProof.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204215a1310c6cc1fb6080d0a2038e679da4535e98675305d26803cb4a1ae06bf764736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204215a1310c6cc1fb6080d0a2038e679da4535e98675305d26803cb4a1ae06bf764736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "These functions deal with verification of Merkle Trees proofs. The proofs can be generated using the JavaScript library https://github.com/miguelmota/merkletreejs[merkletreejs]. Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. See `test/utils/cryptography/MerkleProof.test.js` for some examples.", "kind": "dev", "methods": {}, "version": 1}}, "SignatureChecker": {"contractName": "SignatureChecker", "sourceId": "utils/cryptography/SignatureChecker.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220aae8859e796fea2421f245436180d3c8b060fdff84644e764eb4376ec77410ee64736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220aae8859e796fea2421f245436180d3c8b060fdff84644e764eb4376ec77410ee64736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Signature verification helper: Provide a single mechanism to verify both private-key (EOA) ECDSA signature and ERC1271 contract signatures. Using this instead of ECDSA.recover in your contract will make them compatible with smart contract wallets such as Argent and Gnosis. Note: unlike ECDSA signatures, contract signature's are revocable, and the outcome of this function can thus change through time. It could return true at block N and false at block N+1 (or the opposite). _Available since v4.1._", "kind": "dev", "methods": {}, "version": 1}}, "EIP712": {"contractName": "EIP712", "sourceId": "utils/cryptography/draft-EIP712.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in their contracts using a combination of `abi.encode` and `keccak256`. This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA ({_hashTypedDataV4}). The implementation of the domain separator was designed to be as efficient as possible while still properly updating the chain id to protect against replay attacks on an eventual fork of the chain. NOTE: This contract implements the version of the encoding known as \"v4\", as implemented by the JSON RPC method https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. _Available since v3.4._", "kind": "dev", "methods": {"constructor": {"details": "Initializes the domain separator and parameter caches. The meaning of `name` and `version` is specified in https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. - `version`: the current major version of the signing domain. NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart contract upgrade]."}}, "version": 1}}, "ConditionalEscrow": {"contractName": "ConditionalEscrow", "sourceId": "utils/escrow/ConditionalEscrow.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "Deposited", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Withdrawn", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "deposit", "stateMutability": "payable", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "depositsOf", "stateMutability": "view", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "withdraw", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address payable"}], "outputs": []}, {"type": "function", "name": "withdrawalAllowed", "stateMutability": "view", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Base abstract escrow to only allow withdrawal if a condition is met.Intended usage: See {Escrow}. Same usage guidelines apply here.", "kind": "dev", "methods": {"deposit(address)": {"details": "Stores the sent amount as credit to be withdrawn.", "params": {"payee": "The destination address of the funds."}}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}, "withdraw(address)": {"details": "Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.", "params": {"payee": "The address whose funds will be withdrawn and transferred to."}}, "withdrawalAllowed(address)": {"details": "Returns whether an address is allowed to withdraw their funds. To be implemented by derived contracts.", "params": {"payee": "The destination address of the funds."}}}, "title": "ConditionalEscrow", "version": 1}}, "Escrow": {"contractName": "Escrow", "sourceId": "utils/escrow/Escrow.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6105748061007e6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461007c5780638da5cb5b14610091578063e3a9db1a146100be578063f2fde38b14610102578063f340fa0114610122575b600080fd5b34801561006657600080fd5b5061007a6100753660046104bf565b610135565b005b34801561008857600080fd5b5061007a6101d7565b34801561009d57600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b3480156100ca57600080fd5b506100f46100d93660046104bf565b6001600160a01b031660009081526001602052604090205490565b6040519081526020016100b5565b34801561010e57600080fd5b5061007a61011d3660046104bf565b61020d565b61007a6101303660046104bf565b6102a8565b6000546001600160a01b031633146101685760405162461bcd60e51b815260040161015f906104e3565b60405180910390fd5b6001600160a01b0381166000818152600160205260408120805491905590610190908261033c565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516101cb91815260200190565b60405180910390a25050565b6000546001600160a01b031633146102015760405162461bcd60e51b815260040161015f906104e3565b61020b600061045a565b565b6000546001600160a01b031633146102375760405162461bcd60e51b815260040161015f906104e3565b6001600160a01b03811661029c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161015f565b6102a58161045a565b50565b6000546001600160a01b031633146102d25760405162461bcd60e51b815260040161015f906104e3565b6001600160a01b0381166000908152600160205260408120805434928392916102fc908490610518565b90915550506040518181526001600160a01b038316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020016101cb565b8047101561038c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161015f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146103d9576040519150601f19603f3d011682016040523d82523d6000602084013e6103de565b606091505b50509050806104555760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161015f565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146102a557600080fd5b6000602082840312156104d157600080fd5b81356104dc816104aa565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561053957634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212206cc97246e6fbc2b4eac8231f2c0a9d93b40fba36a34b504db86a101136dc96f164736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461007c5780638da5cb5b14610091578063e3a9db1a146100be578063f2fde38b14610102578063f340fa0114610122575b600080fd5b34801561006657600080fd5b5061007a6100753660046104bf565b610135565b005b34801561008857600080fd5b5061007a6101d7565b34801561009d57600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b3480156100ca57600080fd5b506100f46100d93660046104bf565b6001600160a01b031660009081526001602052604090205490565b6040519081526020016100b5565b34801561010e57600080fd5b5061007a61011d3660046104bf565b61020d565b61007a6101303660046104bf565b6102a8565b6000546001600160a01b031633146101685760405162461bcd60e51b815260040161015f906104e3565b60405180910390fd5b6001600160a01b0381166000818152600160205260408120805491905590610190908261033c565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516101cb91815260200190565b60405180910390a25050565b6000546001600160a01b031633146102015760405162461bcd60e51b815260040161015f906104e3565b61020b600061045a565b565b6000546001600160a01b031633146102375760405162461bcd60e51b815260040161015f906104e3565b6001600160a01b03811661029c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161015f565b6102a58161045a565b50565b6000546001600160a01b031633146102d25760405162461bcd60e51b815260040161015f906104e3565b6001600160a01b0381166000908152600160205260408120805434928392916102fc908490610518565b90915550506040518181526001600160a01b038316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020016101cb565b8047101561038c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161015f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146103d9576040519150601f19603f3d011682016040523d82523d6000602084013e6103de565b606091505b50509050806104555760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161015f565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146102a557600080fd5b6000602082840312156104d157600080fd5b81356104dc816104aa565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561053957634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212206cc97246e6fbc2b4eac8231f2c0a9d93b40fba36a34b504db86a101136dc96f164736f6c634300080d0033"}, "abi": [{"type": "event", "name": "Deposited", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "Withdrawn", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "deposit", "stateMutability": "payable", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "depositsOf", "stateMutability": "view", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "withdraw", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address payable"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Base escrow contract, holds funds designated for a payee until they withdraw them. Intended usage: This contract (and derived escrow contracts) should be a standalone contract, that only interacts with the contract that instantiated it. That way, it is guaranteed that all Ether will be handled according to the `Escrow` rules, and there is no need to check for payable functions or transfers in the inheritance tree. The contract that uses the escrow as its payment method should be its owner, and provide public methods redirecting to the escrow's deposit and withdraw.", "kind": "dev", "methods": {"deposit(address)": {"details": "Stores the sent amount as credit to be withdrawn.", "params": {"payee": "The destination address of the funds."}}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}, "withdraw(address)": {"details": "Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.", "params": {"payee": "The address whose funds will be withdrawn and transferred to."}}}, "title": "Escrow", "version": 1}}, "RefundEscrow": {"contractName": "RefundEscrow", "sourceId": "utils/escrow/RefundEscrow.sol", "deploymentBytecode": {"bytecode": "0x60a060405234801561001057600080fd5b50604051610bcd380380610bcd83398101604081905261002f91610113565b610038336100c3565b6001600160a01b0381166100a85760405162461bcd60e51b815260206004820152602d60248201527f526566756e64457363726f773a2062656e65666963696172792069732074686560448201526c207a65726f206164647265737360981b606482015260840160405180910390fd5b6001600160a01b03166080526002805460ff19169055610143565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561012557600080fd5b81516001600160a01b038116811461013c57600080fd5b9392505050565b608051610a696101646000396000818160bb01526105850152610a696000f3fe6080604052600436106100a75760003560e01c80638da5cb5b116100645780638da5cb5b146101895780639af6549a146101a7578063c19d93fb146101bc578063e3a9db1a146101dc578063f2fde38b14610220578063f340fa011461024057600080fd5b806338af3eed146100ac57806343d726d6146100f857806351cff8d91461010f578063685ca1941461012f578063715018a61461015f5780638c52dc4114610174575b600080fd5b3480156100b857600080fd5b507f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b0390911681526020015b60405180910390f35b34801561010457600080fd5b5061010d610253565b005b34801561011b57600080fd5b5061010d61012a366004610976565b610335565b34801561013b57600080fd5b5061014f61014a366004610976565b6103b2565b60405190151581526020016100ef565b34801561016b57600080fd5b5061010d6103d4565b34801561018057600080fd5b5061010d61040a565b34801561019557600080fd5b506000546001600160a01b03166100db565b3480156101b357600080fd5b5061010d6104ed565b3480156101c857600080fd5b5060025460ff166040516100ef91906109b0565b3480156101e857600080fd5b506102126101f7366004610976565b6001600160a01b031660009081526001602052604090205490565b6040519081526020016100ef565b34801561022c57600080fd5b5061010d61023b366004610976565b6105ab565b61010d61024e366004610976565b610643565b6000546001600160a01b031633146102865760405162461bcd60e51b815260040161027d906109d8565b60405180910390fd5b600060025460ff16600281111561029f5761029f61099a565b146102fe5760405162461bcd60e51b815260206004820152602960248201527f526566756e64457363726f773a2063616e206f6e6c7920636c6f7365207768696044820152686c652061637469766560b81b606482015260840161027d565b6002805460ff1916811790556040517f088672c3a6e342f7cd94a65ba63b79df24a8973927b4d05d803c44bbf787d12f90600090a1565b61033e816103b2565b6103a65760405162461bcd60e51b815260206004820152603360248201527f436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420604482015272616c6c6f77656420746f20776974686472617760681b606482015260840161027d565b6103af816106c6565b50565b6000600160025460ff1660028111156103cd576103cd61099a565b1492915050565b6000546001600160a01b031633146103fe5760405162461bcd60e51b815260040161027d906109d8565b610408600061075f565b565b6000546001600160a01b031633146104345760405162461bcd60e51b815260040161027d906109d8565b600060025460ff16600281111561044d5761044d61099a565b146104b55760405162461bcd60e51b815260206004820152603260248201527f526566756e64457363726f773a2063616e206f6e6c7920656e61626c6520726560448201527166756e6473207768696c652061637469766560701b606482015260840161027d565b6002805460ff191660011790556040517f599d8e5a83cffb867d051598c4d70e805d59802d8081c1c7d6dffc5b6aca2b8990600090a1565b6002805460ff1660028111156105055761050561099a565b146105785760405162461bcd60e51b815260206004820152603860248201527f526566756e64457363726f773a2062656e65666963696172792063616e206f6e60448201527f6c79207769746864726177207768696c6520636c6f7365640000000000000000606482015260840161027d565b6104086001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016476107af565b6000546001600160a01b031633146105d55760405162461bcd60e51b815260040161027d906109d8565b6001600160a01b03811661063a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161027d565b6103af8161075f565b600060025460ff16600281111561065c5761065c61099a565b146106bd5760405162461bcd60e51b815260206004820152602b60248201527f526566756e64457363726f773a2063616e206f6e6c79206465706f736974207760448201526a68696c652061637469766560a81b606482015260840161027d565b6103af816108cd565b6000546001600160a01b031633146106f05760405162461bcd60e51b815260040161027d906109d8565b6001600160a01b038116600081815260016020526040812080549190559061071890826107af565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d58260405161075391815260200190565b60405180910390a25050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b804710156107ff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161027d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461084c576040519150601f19603f3d011682016040523d82523d6000602084013e610851565b606091505b50509050806108c85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161027d565b505050565b6000546001600160a01b031633146108f75760405162461bcd60e51b815260040161027d906109d8565b6001600160a01b038116600090815260016020526040812080543492839291610921908490610a0d565b90915550506040518181526001600160a01b038316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c490602001610753565b6001600160a01b03811681146103af57600080fd5b60006020828403121561098857600080fd5b813561099381610961565b9392505050565b634e487b7160e01b600052602160045260246000fd5b60208101600383106109d257634e487b7160e01b600052602160045260246000fd5b91905290565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610a2e57634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212207b39938cbe824b26e34c2c131303ea13e2c2fce6018512ecf422c27da0cbf95264736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052600436106100a75760003560e01c80638da5cb5b116100645780638da5cb5b146101895780639af6549a146101a7578063c19d93fb146101bc578063e3a9db1a146101dc578063f2fde38b14610220578063f340fa011461024057600080fd5b806338af3eed146100ac57806343d726d6146100f857806351cff8d91461010f578063685ca1941461012f578063715018a61461015f5780638c52dc4114610174575b600080fd5b3480156100b857600080fd5b507f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b0390911681526020015b60405180910390f35b34801561010457600080fd5b5061010d610253565b005b34801561011b57600080fd5b5061010d61012a366004610976565b610335565b34801561013b57600080fd5b5061014f61014a366004610976565b6103b2565b60405190151581526020016100ef565b34801561016b57600080fd5b5061010d6103d4565b34801561018057600080fd5b5061010d61040a565b34801561019557600080fd5b506000546001600160a01b03166100db565b3480156101b357600080fd5b5061010d6104ed565b3480156101c857600080fd5b5060025460ff166040516100ef91906109b0565b3480156101e857600080fd5b506102126101f7366004610976565b6001600160a01b031660009081526001602052604090205490565b6040519081526020016100ef565b34801561022c57600080fd5b5061010d61023b366004610976565b6105ab565b61010d61024e366004610976565b610643565b6000546001600160a01b031633146102865760405162461bcd60e51b815260040161027d906109d8565b60405180910390fd5b600060025460ff16600281111561029f5761029f61099a565b146102fe5760405162461bcd60e51b815260206004820152602960248201527f526566756e64457363726f773a2063616e206f6e6c7920636c6f7365207768696044820152686c652061637469766560b81b606482015260840161027d565b6002805460ff1916811790556040517f088672c3a6e342f7cd94a65ba63b79df24a8973927b4d05d803c44bbf787d12f90600090a1565b61033e816103b2565b6103a65760405162461bcd60e51b815260206004820152603360248201527f436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420604482015272616c6c6f77656420746f20776974686472617760681b606482015260840161027d565b6103af816106c6565b50565b6000600160025460ff1660028111156103cd576103cd61099a565b1492915050565b6000546001600160a01b031633146103fe5760405162461bcd60e51b815260040161027d906109d8565b610408600061075f565b565b6000546001600160a01b031633146104345760405162461bcd60e51b815260040161027d906109d8565b600060025460ff16600281111561044d5761044d61099a565b146104b55760405162461bcd60e51b815260206004820152603260248201527f526566756e64457363726f773a2063616e206f6e6c7920656e61626c6520726560448201527166756e6473207768696c652061637469766560701b606482015260840161027d565b6002805460ff191660011790556040517f599d8e5a83cffb867d051598c4d70e805d59802d8081c1c7d6dffc5b6aca2b8990600090a1565b6002805460ff1660028111156105055761050561099a565b146105785760405162461bcd60e51b815260206004820152603860248201527f526566756e64457363726f773a2062656e65666963696172792063616e206f6e60448201527f6c79207769746864726177207768696c6520636c6f7365640000000000000000606482015260840161027d565b6104086001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016476107af565b6000546001600160a01b031633146105d55760405162461bcd60e51b815260040161027d906109d8565b6001600160a01b03811661063a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161027d565b6103af8161075f565b600060025460ff16600281111561065c5761065c61099a565b146106bd5760405162461bcd60e51b815260206004820152602b60248201527f526566756e64457363726f773a2063616e206f6e6c79206465706f736974207760448201526a68696c652061637469766560a81b606482015260840161027d565b6103af816108cd565b6000546001600160a01b031633146106f05760405162461bcd60e51b815260040161027d906109d8565b6001600160a01b038116600081815260016020526040812080549190559061071890826107af565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d58260405161075391815260200190565b60405180910390a25050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b804710156107ff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161027d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461084c576040519150601f19603f3d011682016040523d82523d6000602084013e610851565b606091505b50509050806108c85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161027d565b505050565b6000546001600160a01b031633146108f75760405162461bcd60e51b815260040161027d906109d8565b6001600160a01b038116600090815260016020526040812080543492839291610921908490610a0d565b90915550506040518181526001600160a01b038316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c490602001610753565b6001600160a01b03811681146103af57600080fd5b60006020828403121561098857600080fd5b813561099381610961565b9392505050565b634e487b7160e01b600052602160045260246000fd5b60208101600383106109d257634e487b7160e01b600052602160045260246000fd5b91905290565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610a2e57634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212207b39938cbe824b26e34c2c131303ea13e2c2fce6018512ecf422c27da0cbf95264736f6c634300080d0033"}, "abi": [{"type": "constructor", "stateMutability": "nonpayable", "inputs": [{"name": "beneficiary_", "type": "address", "internalType": "address payable"}]}, {"type": "event", "name": "Deposited", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "event", "name": "OwnershipTransferred", "inputs": [{"name": "previousOwner", "type": "address", "internalType": "address", "indexed": true}, {"name": "newOwner", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "RefundsClosed", "inputs": [], "anonymous": false}, {"type": "event", "name": "RefundsEnabled", "inputs": [], "anonymous": false}, {"type": "event", "name": "Withdrawn", "inputs": [{"name": "payee", "type": "address", "internalType": "address", "indexed": true}, {"name": "weiAmount", "type": "uint256", "internalType": "uint256", "indexed": false}], "anonymous": false}, {"type": "function", "name": "beneficiary", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address payable"}]}, {"type": "function", "name": "beneficiaryWithdraw", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "close", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "deposit", "stateMutability": "payable", "inputs": [{"name": "refundee", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "depositsOf", "stateMutability": "view", "inputs": [{"name": "payee", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}]}, {"type": "function", "name": "enableRefunds", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": []}, {"type": "function", "name": "state", "stateMutability": "view", "inputs": [], "outputs": [{"name": "", "type": "uint8", "internalType": "enum RefundEscrow.State"}]}, {"type": "function", "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [{"name": "newOwner", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "withdraw", "stateMutability": "nonpayable", "inputs": [{"name": "payee", "type": "address", "internalType": "address payable"}], "outputs": []}, {"type": "function", "name": "withdrawalAllowed", "stateMutability": "view", "inputs": [{"name": "", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Escrow that holds funds for a beneficiary, deposited from multiple parties.Intended usage: See {Escrow}. Same usage guidelines apply here.The owner account (that is, the contract that instantiates this contract) may deposit, close the deposit period, and allow for either withdrawal by the beneficiary, or refunds to the depositors. All interactions with `RefundEscrow` will be made through the owner contract.", "kind": "dev", "methods": {"beneficiary()": {"returns": {"_0": "The beneficiary of the escrow."}}, "beneficiaryWithdraw()": {"details": "Withdraws the beneficiary's funds."}, "close()": {"details": "Allows for the beneficiary to withdraw their funds, rejecting further deposits."}, "constructor": {"details": "Constructor.", "params": {"beneficiary_": "The beneficiary of the deposits."}}, "deposit(address)": {"details": "Stores funds that may later be refunded.", "params": {"refundee": "The address funds will be sent to if a refund occurs."}}, "enableRefunds()": {"details": "Allows for refunds to take place, rejecting further deposits."}, "owner()": {"details": "Returns the address of the current owner."}, "renounceOwnership()": {"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."}, "state()": {"returns": {"_0": "The current state of the escrow."}}, "transferOwnership(address)": {"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}, "withdraw(address)": {"details": "Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.", "params": {"payee": "The address whose funds will be withdrawn and transferred to."}}, "withdrawalAllowed(address)": {"details": "Returns whether refundees can withdraw their deposits (be refunded). The overridden function receives a 'payee' argument, but we ignore it here since the condition is global, not per-payee."}}, "title": "RefundEscrow", "version": 1}}, "ERC165": {"contractName": "ERC165", "sourceId": "utils/introspection/ERC165.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of the {IERC165} interface. Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check for the additional interface id that will be supported. For example: ```solidity function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); } ``` Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.", "kind": "dev", "methods": {"supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}}, "version": 1}}, "ERC165Checker": {"contractName": "ERC165Checker", "sourceId": "utils/introspection/ERC165Checker.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220364ecd5895198a06e6aa30eae3781d291f01a8dcdea05c9e33f2b906dddc669664736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220364ecd5895198a06e6aa30eae3781d291f01a8dcdea05c9e33f2b906dddc669664736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Library used to query support of an interface declared via {IERC165}. Note that these functions return the actual result of the query: they do not `revert` if an interface is not supported. It is up to the caller to decide what to do in these cases.", "kind": "dev", "methods": {}, "version": 1}}, "ERC165Storage": {"contractName": "ERC165Storage", "sourceId": "utils/introspection/ERC165Storage.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Storage based implementation of the {IERC165} interface. Contracts may inherit from this and call {_registerInterface} to declare their support of an interface.", "kind": "dev", "methods": {"supportsInterface(bytes4)": {"details": "See {IERC165-supportsInterface}."}}, "stateVariables": {"_supportedInterfaces": {"details": "Mapping of interface ids to whether or not it's supported."}}, "version": 1}}, "ERC1820Implementer": {"contractName": "ERC1820Implementer", "sourceId": "utils/introspection/ERC1820Implementer.sol", "deploymentBytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610114806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b603c603836600460a4565b604e565b60405190815260200160405180910390f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16607b576000609d565b7fa2ef4600d742022d532d4747cb3547474667d6f13804902513b2ec01c848f4b45b9392505050565b6000806040838503121560b657600080fd5b8235915060208301356001600160a01b038116811460d357600080fd5b80915050925092905056fea2646970667358221220640cc461f323b6dd9a283fba2a01542533a6eba087367e4b74b31b2b9d6322a064736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b603c603836600460a4565b604e565b60405190815260200160405180910390f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16607b576000609d565b7fa2ef4600d742022d532d4747cb3547474667d6f13804902513b2ec01c848f4b45b9392505050565b6000806040838503121560b657600080fd5b8235915060208301356001600160a01b038116811460d357600080fd5b80915050925092905056fea2646970667358221220640cc461f323b6dd9a283fba2a01542533a6eba087367e4b74b31b2b9d6322a064736f6c634300080d0033"}, "abi": [{"type": "function", "name": "canImplementInterfaceForAddress", "stateMutability": "view", "inputs": [{"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Implementation of the {IERC1820Implementer} interface. Contracts may inherit from this and call {_registerInterfaceForAddress} to declare their willingness to be implementers. {IERC1820Registry-setInterfaceImplementer} should then be called for the registration to be complete.", "kind": "dev", "methods": {"canImplementInterfaceForAddress(bytes32,address)": {"details": "See {IERC1820Implementer-canImplementInterfaceForAddress}."}}, "version": 1}}, "IERC165": {"contractName": "IERC165", "sourceId": "utils/introspection/IERC165.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "supportsInterface", "stateMutability": "view", "inputs": [{"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface of the ERC165 standard, as defined in the https://eips.ethereum.org/EIPS/eip-165[EIP]. Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}.", "kind": "dev", "methods": {"supportsInterface(bytes4)": {"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}}, "version": 1}}, "IERC1820Implementer": {"contractName": "IERC1820Implementer", "sourceId": "utils/introspection/IERC1820Implementer.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "function", "name": "canImplementInterfaceForAddress", "stateMutability": "view", "inputs": [{"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Interface for an ERC1820 implementer, as defined in the https://eips.ethereum.org/EIPS/eip-1820#interface-implementation-erc1820implementerinterface[EIP]. Used by contracts that will be registered as implementers in the {IERC1820Registry}.", "kind": "dev", "methods": {"canImplementInterfaceForAddress(bytes32,address)": {"details": "Returns a special value (`ERC1820_ACCEPT_MAGIC`) if this contract implements `interfaceHash` for `account`. See {IERC1820Registry-setInterfaceImplementer}."}}, "version": 1}}, "IERC1820Registry": {"contractName": "IERC1820Registry", "sourceId": "utils/introspection/IERC1820Registry.sol", "deploymentBytecode": {}, "runtimeBytecode": {}, "abi": [{"type": "event", "name": "InterfaceImplementerSet", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "interfaceHash", "type": "bytes32", "internalType": "bytes32", "indexed": true}, {"name": "implementer", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "event", "name": "ManagerChanged", "inputs": [{"name": "account", "type": "address", "internalType": "address", "indexed": true}, {"name": "newManager", "type": "address", "internalType": "address", "indexed": true}], "anonymous": false}, {"type": "function", "name": "getInterfaceImplementer", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "_interfaceHash", "type": "bytes32", "internalType": "bytes32"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "getManager", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}], "outputs": [{"name": "", "type": "address", "internalType": "address"}]}, {"type": "function", "name": "implementsERC165Interface", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "implementsERC165InterfaceNoCache", "stateMutability": "view", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": [{"name": "", "type": "bool", "internalType": "bool"}]}, {"type": "function", "name": "interfaceHash", "stateMutability": "pure", "inputs": [{"name": "interfaceName", "type": "string", "internalType": "string"}], "outputs": [{"name": "", "type": "bytes32", "internalType": "bytes32"}]}, {"type": "function", "name": "setInterfaceImplementer", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "_interfaceHash", "type": "bytes32", "internalType": "bytes32"}, {"name": "implementer", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "setManager", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "newManager", "type": "address", "internalType": "address"}], "outputs": []}, {"type": "function", "name": "updateERC165Cache", "stateMutability": "nonpayable", "inputs": [{"name": "account", "type": "address", "internalType": "address"}, {"name": "interfaceId", "type": "bytes4", "internalType": "bytes4"}], "outputs": []}], "userdoc": {"kind": "user", "methods": {"implementsERC165Interface(address,bytes4)": {"notice": "Checks whether a contract implements an ERC165 interface or not. If the result is not cached a direct lookup on the contract address is performed. If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling {updateERC165Cache} with the contract address."}, "implementsERC165InterfaceNoCache(address,bytes4)": {"notice": "Checks whether a contract implements an ERC165 interface or not without using nor updating the cache."}, "updateERC165Cache(address,bytes4)": {"notice": "Updates the cache with whether the contract implements an ERC165 interface or not."}}, "version": 1}, "devdoc": {"details": "Interface of the global ERC1820 Registry, as defined in the https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register implementers for interfaces in this registry, as well as query support. Implementers may be shared by multiple accounts, and can also implement more than a single interface for each account. Contracts can implement interfaces for themselves, but externally-owned accounts (EOA) must delegate this to a contract. {IERC165} interfaces can also be queried via the registry. For an in-depth explanation and source code analysis, see the EIP text.", "kind": "dev", "methods": {"getInterfaceImplementer(address,bytes32)": {"details": "Returns the implementer of `interfaceHash` for `account`. If no such implementer is registered, returns the zero address. If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28 zeroes), `account` will be queried for support of it. `account` being the zero address is an alias for the caller's address."}, "getManager(address)": {"details": "Returns the manager for `account`. See {setManager}."}, "implementsERC165Interface(address,bytes4)": {"params": {"account": "Address of the contract to check.", "interfaceId": "ERC165 interface to check."}, "returns": {"_0": "True if `account` implements `interfaceId`, false otherwise."}}, "implementsERC165InterfaceNoCache(address,bytes4)": {"params": {"account": "Address of the contract to check.", "interfaceId": "ERC165 interface to check."}, "returns": {"_0": "True if `account` implements `interfaceId`, false otherwise."}}, "interfaceHash(string)": {"details": "Returns the interface hash for an `interfaceName`, as defined in the corresponding https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP]."}, "setInterfaceImplementer(address,bytes32,address)": {"details": "Sets the `implementer` contract as ``account``'s implementer for `interfaceHash`. `account` being the zero address is an alias for the caller's address. The zero address can also be used in `implementer` to remove an old one. See {interfaceHash} to learn how these are created. Emits an {InterfaceImplementerSet} event. Requirements: - the caller must be the current manager for `account`. - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not end in 28 zeroes). - `implementer` must implement {IERC1820Implementer} and return true when queried for support, unless `implementer` is the caller. See {IERC1820Implementer-canImplementInterfaceForAddress}."}, "setManager(address,address)": {"details": "Sets `newManager` as the manager for `account`. A manager of an account is able to set interface implementers for it. By default, each account is its own manager. Passing a value of `0x0` in `newManager` will reset the manager to this initial state. Emits a {ManagerChanged} event. Requirements: - the caller must be the current manager for `account`."}, "updateERC165Cache(address,bytes4)": {"params": {"account": "Address of the contract for which to update the cache.", "interfaceId": "ERC165 interface for which to update the cache."}}}, "version": 1}}, "Math": {"contractName": "Math", "sourceId": "utils/math/Math.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122073f8ff23793139dcc9e369afe55c3707292e66e15385147cf120cbb5ff00243164736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122073f8ff23793139dcc9e369afe55c3707292e66e15385147cf120cbb5ff00243164736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Standard math utilities missing in the Solidity language.", "kind": "dev", "methods": {}, "version": 1}}, "SafeCast": {"contractName": "SafeCast", "sourceId": "utils/math/SafeCast.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a55003de683a7a6c4f6301f9e7bb827d167a9fe6279cd7bed6aa8bb2f252ecd464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a55003de683a7a6c4f6301f9e7bb827d167a9fe6279cd7bed6aa8bb2f252ecd464736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Wrappers over Solidity's uintXX/intXX casting operators with added overflow checks. Downcasting from uint256/int256 in Solidity does not revert on overflow. This can easily result in undesired exploitation or bugs, since developers usually assume that overflows raise errors. `SafeCast` restores this intuition by reverting the transaction when such an operation overflows. Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always. Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing all math on `uint256` and `int256` and then downcasting.", "kind": "dev", "methods": {}, "version": 1}}, "SafeMath": {"contractName": "SafeMath", "sourceId": "utils/math/SafeMath.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122043fd03f2516614dacafc6619106c979c072f4a43a91591cb66de8800bc18713464736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122043fd03f2516614dacafc6619106c979c072f4a43a91591cb66de8800bc18713464736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Wrappers over Solidity's arithmetic operations. NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler now has built in overflow checking.", "kind": "dev", "methods": {}, "version": 1}}, "SignedSafeMath": {"contractName": "SignedSafeMath", "sourceId": "utils/math/SignedSafeMath.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b7bf89d44b1db8e6c61bbf0e7f36a60893d875d87183d08de141f0cbaea774e964736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b7bf89d44b1db8e6c61bbf0e7f36a60893d875d87183d08de141f0cbaea774e964736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Wrappers over Solidity's arithmetic operations. NOTE: `SignedSafeMath` is no longer needed starting with Solidity 0.8. The compiler now has built in overflow checking.", "kind": "dev", "methods": {}, "version": 1}}, "BitMaps": {"contractName": "BitMaps", "sourceId": "utils/structs/BitMaps.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202e29cd17bbc551d999b8f5c42667b5a21dc655fd179d75cb7061024d6300453564736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202e29cd17bbc551d999b8f5c42667b5a21dc655fd179d75cb7061024d6300453564736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential. Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].", "kind": "dev", "methods": {}, "version": 1}}, "EnumerableMap": {"contractName": "EnumerableMap", "sourceId": "utils/structs/EnumerableMap.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220e6982f7a9e641e3dc9544e051a14a27385257d7912785d4b9d97a8f0213c7f1064736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220e6982f7a9e641e3dc9544e051a14a27385257d7912785d4b9d97a8f0213c7f1064736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Library for managing an enumerable variant of Solidity's https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] type. Maps have the following properties: - Entries are added, removed, and checked for existence in constant time (O(1)). - Entries are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { // Add the library methods using EnumerableMap for EnumerableMap.UintToAddressMap; // Declare a set state variable EnumerableMap.UintToAddressMap private myMap; } ``` As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are supported.", "kind": "dev", "methods": {}, "version": 1}}, "EnumerableSet": {"contractName": "EnumerableSet", "sourceId": "utils/structs/EnumerableSet.sol", "deploymentBytecode": {"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220c71cf6bdb92d9837ae62fee6396f6707abc0d5c5ef30993a6f954ca45828394264736f6c634300080d0033"}, "runtimeBytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220c71cf6bdb92d9837ae62fee6396f6707abc0d5c5ef30993a6f954ca45828394264736f6c634300080d0033"}, "abi": [], "userdoc": {"kind": "user", "methods": {}, "version": 1}, "devdoc": {"details": "Library for managing https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive types. Sets have the following properties: - Elements are added, removed, and checked for existence in constant time (O(1)). - Elements are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { // Add the library methods using EnumerableSet for EnumerableSet.AddressSet; // Declare a set state variable EnumerableSet.AddressSet private mySet; } ``` As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) and `uint256` (`UintSet`) are supported.", "kind": "dev", "methods": {}, "version": 1}}}} \ No newline at end of file diff --git a/tests/functional/data/manifests/openzeppelin/3.1.0/openzeppelin.json b/tests/functional/data/manifests/openzeppelin/3.1.0/openzeppelin.json new file mode 100644 index 0000000000..d7f889113a --- /dev/null +++ b/tests/functional/data/manifests/openzeppelin/3.1.0/openzeppelin.json @@ -0,0 +1 @@ +{"contractTypes":{"AccessControl":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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"}],"contractName":"AccessControl","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Contract module that allows children to implement role-based access control mechanisms. Roles are referred to by their `bytes32` identifier. These should be exposed in the external API and be unique. The best way to achieve this is by using `public constant` hash digests: ``` bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\"); ``` Roles can be used to represent a set of permissions. To restrict access to a function call, use {hasRole}: ``` function foo() public { require(hasRole(MY_ROLE, msg.sender)); ... } ``` Roles can be granted and revoked dynamically via the {grantRole} and {revokeRole} functions. Each role has an associated admin role, and only accounts that have a role's admin role can call {grantRole} and {revokeRole}. By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means that only accounts with this role will be able to grant or revoke other roles. More complex role relationships can be created by using {_setRoleAdmin}. WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to grant and revoke this role. Extra precautions should be taken to secure accounts that have been granted it.","events":{"RoleAdminChanged(bytes32,bytes32,bytes32)":{"details":"Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._"},"RoleGranted(bytes32,address,address)":{"details":"Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {_setupRole}."},"RoleRevoked(bytes32,address,address)":{"details":"Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call: - if using `revokeRole`, it is the admin role bearer - if using `renounceRole`, it is the role bearer (i.e. `account`)"}},"kind":"dev","methods":{"getRoleAdmin(bytes32)":{"details":"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."},"getRoleMember(bytes32,uint256)":{"details":"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."},"getRoleMemberCount(bytes32)":{"details":"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."},"grantRole(bytes32,address)":{"details":"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."},"hasRole(bytes32,address)":{"details":"Returns `true` if `account` has been granted `role`."},"renounceRole(bytes32,address)":{"details":"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."},"revokeRole(bytes32,address)":{"details":"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}},"version":1},"methodIdentifiers":{"DEFAULT_ADMIN_ROLE()":"0xa217fddf","getRoleAdmin(bytes32)":"0x248a9ca3","getRoleMember(bytes32,uint256)":"0x9010d07c","getRoleMemberCount(bytes32)":"0xca15c873","grantRole(bytes32,address)":"0x2f2ff15d","hasRole(bytes32,address)":"0x91d14854","renounceRole(bytes32,address)":"0x36568abe","revokeRole(bytes32,address)":"0xd547741f"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/access/AccessControl.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"AccessControlMock":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"roleId","type":"bytes32"},{"internalType":"bytes32","name":"adminRoleId","type":"bytes32"}],"name":"setRoleAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"AccessControlMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610023600061001e610028565b61002c565b61012d565b3390565b610036828261003a565b5050565b60008281526020818152604090912061005c9183906103ae6100ad821b17901c565b1561003657610069610028565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006100c2836001600160a01b0384166100cb565b90505b92915050565b60006100d78383610115565b61010d575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556100c5565b5060006100c5565b60009081526001919091016020526040902054151590565b6107a28061013c6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80639010d07c116100665780639010d07c1461014457806391d1485414610183578063a217fddf146101c3578063ca15c873146101cb578063d547741f146101e857610093565b80631e4e009114610098578063248a9ca3146100bd5780632f2ff15d146100ec57806336568abe14610118575b600080fd5b6100bb600480360360408110156100ae57600080fd5b5080359060200135610214565b005b6100da600480360360208110156100d357600080fd5b5035610222565b60408051918252519081900360200190f35b6100bb6004803603604081101561010257600080fd5b50803590602001356001600160a01b0316610237565b6100bb6004803603604081101561012e57600080fd5b50803590602001356001600160a01b031661029f565b6101676004803603604081101561015a57600080fd5b5080359060200135610300565b604080516001600160a01b039092168252519081900360200190f35b6101af6004803603604081101561019957600080fd5b50803590602001356001600160a01b0316610321565b604080519115158252519081900360200190f35b6100da610339565b6100da600480360360208110156101e157600080fd5b503561033e565b6100bb600480360360408110156101fe57600080fd5b50803590602001356001600160a01b0316610355565b61021e82826103c3565b5050565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461025a90610255610415565b610321565b6102955760405162461bcd60e51b815260040180806020018281038252602f8152602001806106df602f913960400191505060405180910390fd5b61021e8282610419565b6102a7610415565b6001600160a01b0316816001600160a01b0316146102f65760405162461bcd60e51b815260040180806020018281038252602f81526020018061073e602f913960400191505060405180910390fd5b61021e8282610482565b600082815260208190526040812061031890836104eb565b90505b92915050565b600082815260208190526040812061031890836104f7565b600081565b600081815260208190526040812061031b9061050c565b60008281526020819052604090206002015461037390610255610415565b6102f65760405162461bcd60e51b815260040180806020018281038252603081526020018061070e6030913960400191505060405180910390fd5b6000610318836001600160a01b038416610517565b600082815260208190526040808220600201549051839285917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a460009182526020829052604090912060020155565b3390565b600082815260208190526040902061043190826103ae565b1561021e5761043e610415565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260208190526040902061049a9082610561565b1561021e576104a7610415565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006103188383610576565b6000610318836001600160a01b0384166105da565b600061031b826105f2565b600061052383836105da565b6105595750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561031b565b50600061031b565b6000610318836001600160a01b0384166105f6565b815460009082106105b85760405162461bcd60e51b81526004018080602001828103825260228152602001806106bd6022913960400191505060405180910390fd5b8260000182815481106105c757fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156106b2578354600019808301919081019060009087908390811061062957fe5b906000526020600020015490508087600001848154811061064657fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061067657fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061031b565b600091505061031b56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122070bddcb7ebea0d9d0a410693317f3307f7a357311e88666c23c191d9a931676264736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"getRoleAdmin(bytes32)":{"details":"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."},"getRoleMember(bytes32,uint256)":{"details":"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."},"getRoleMemberCount(bytes32)":{"details":"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."},"grantRole(bytes32,address)":{"details":"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."},"hasRole(bytes32,address)":{"details":"Returns `true` if `account` has been granted `role`."},"renounceRole(bytes32,address)":{"details":"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."},"revokeRole(bytes32,address)":{"details":"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}},"version":1},"methodIdentifiers":{"DEFAULT_ADMIN_ROLE()":"0xa217fddf","getRoleAdmin(bytes32)":"0x248a9ca3","getRoleMember(bytes32,uint256)":"0x9010d07c","getRoleMemberCount(bytes32)":"0xca15c873","grantRole(bytes32,address)":"0x2f2ff15d","hasRole(bytes32,address)":"0x91d14854","renounceRole(bytes32,address)":"0x36568abe","revokeRole(bytes32,address)":"0xd547741f","setRoleAdmin(bytes32,bytes32)":"0x1e4e0091"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100935760003560e01c80639010d07c116100665780639010d07c1461014457806391d1485414610183578063a217fddf146101c3578063ca15c873146101cb578063d547741f146101e857610093565b80631e4e009114610098578063248a9ca3146100bd5780632f2ff15d146100ec57806336568abe14610118575b600080fd5b6100bb600480360360408110156100ae57600080fd5b5080359060200135610214565b005b6100da600480360360208110156100d357600080fd5b5035610222565b60408051918252519081900360200190f35b6100bb6004803603604081101561010257600080fd5b50803590602001356001600160a01b0316610237565b6100bb6004803603604081101561012e57600080fd5b50803590602001356001600160a01b031661029f565b6101676004803603604081101561015a57600080fd5b5080359060200135610300565b604080516001600160a01b039092168252519081900360200190f35b6101af6004803603604081101561019957600080fd5b50803590602001356001600160a01b0316610321565b604080519115158252519081900360200190f35b6100da610339565b6100da600480360360208110156101e157600080fd5b503561033e565b6100bb600480360360408110156101fe57600080fd5b50803590602001356001600160a01b0316610355565b61021e82826103c3565b5050565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461025a90610255610415565b610321565b6102955760405162461bcd60e51b815260040180806020018281038252602f8152602001806106df602f913960400191505060405180910390fd5b61021e8282610419565b6102a7610415565b6001600160a01b0316816001600160a01b0316146102f65760405162461bcd60e51b815260040180806020018281038252602f81526020018061073e602f913960400191505060405180910390fd5b61021e8282610482565b600082815260208190526040812061031890836104eb565b90505b92915050565b600082815260208190526040812061031890836104f7565b600081565b600081815260208190526040812061031b9061050c565b60008281526020819052604090206002015461037390610255610415565b6102f65760405162461bcd60e51b815260040180806020018281038252603081526020018061070e6030913960400191505060405180910390fd5b6000610318836001600160a01b038416610517565b600082815260208190526040808220600201549051839285917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a460009182526020829052604090912060020155565b3390565b600082815260208190526040902061043190826103ae565b1561021e5761043e610415565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260208190526040902061049a9082610561565b1561021e576104a7610415565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006103188383610576565b6000610318836001600160a01b0384166105da565b600061031b826105f2565b600061052383836105da565b6105595750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561031b565b50600061031b565b6000610318836001600160a01b0384166105f6565b815460009082106105b85760405162461bcd60e51b81526004018080602001828103825260228152602001806106bd6022913960400191505060405180910390fd5b8260000182815481106105c757fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156106b2578354600019808301919081019060009087908390811061062957fe5b906000526020600020015490508087600001848154811061064657fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061067657fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061031b565b600091505061031b56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122070bddcb7ebea0d9d0a410693317f3307f7a357311e88666c23c191d9a931676264736f6c634300060c0033"},"sourceId":"contracts/mocks/AccessControlMock.sol","sourcemap":"97:257:19:-:0;;;147:82;;;;;;;;;-1:-1:-1;178:44:19;1762:4:6;209:12:19;:10;:12::i;:::-;178:10;:44::i;:::-;97:257;;590:104:0;677:10;590:104;:::o;6578:110:6:-;6656:25;6667:4;6673:7;6656:10;:25::i;:::-;6578:110;;:::o;7015:184::-;7088:6;:12;;;;;;;;;;;:33;;7113:7;;7088:24;;;;;:33;;:::i;:::-;7084:109;;;7169:12;:10;:12::i;:::-;-1:-1:-1;;;;;7142:40:6;7160:7;-1:-1:-1;;;;;7142:40:6;7154:4;7142:40;;;;;;;;;;7015:184;;:::o;4864:141:109:-;4934:4;4957:41;4962:3;-1:-1:-1;;;;;4982:14:109;;4957:4;:41::i;:::-;4950:48;;4864:141;;;;;:::o;1611:404::-;1674:4;1695:21;1705:3;1710:5;1695:9;:21::i;:::-;1690:319;;-1:-1:-1;1732:23:109;;;;;;;;:11;:23;;;;;;;;;;;;;1912:18;;1890:19;;;:12;;;:19;;;;;;:40;;;;1944:11;;1690:319;-1:-1:-1;1993:5:109;1986:12;;3776:127;3849:4;3872:19;;;:12;;;;;:19;;;;;;:24;;;3776:127::o;97:257:19:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Address":{"abi":[],"contractName":"Address","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200fad9cea9a041e032f5bf35bdb41ac60ba6056b605642ec35ead1b665db3eddd64736f6c634300060c0033"},"devdoc":{"details":"Collection of functions related to the address type","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200fad9cea9a041e032f5bf35bdb41ac60ba6056b605642ec35ead1b665db3eddd64736f6c634300060c0033"},"sourceId":"contracts/utils/Address.sol","sourcemap":"126:5951:104:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"AddressImpl":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"data","type":"string"}],"name":"CallReturnValue","type":"event"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"functionCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"functionCallWithValue","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sendValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}],"contractName":"AddressImpl","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5061099c806100206000396000f3fe6080604052600436106100435760003560e01c8063162790551461004f57806324a084df146100965780632a011594146100d1578063a0b5ffb01461014f5761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b506100826004803603602081101561007257600080fd5b50356001600160a01b03166101da565b604080519115158252519081900360200190f35b3480156100a257600080fd5b506100cf600480360360408110156100b957600080fd5b506001600160a01b0381351690602001356101eb565b005b6100cf600480360360608110156100e757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561011157600080fd5b82018360208201111561012357600080fd5b803590602001918460018302840111600160201b8311171561014457600080fd5b9193509150356101f9565b34801561015b57600080fd5b506100cf6004803603604081101561017257600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561019c57600080fd5b8201836020820111156101ae57600080fd5b803590602001918460018302840111600160201b831117156101cf57600080fd5b50909250905061039c565b60006101e58261053c565b92915050565b6101f58282610578565b5050565b606061023d8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250610662915050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c81806020019051602081101561027557600080fd5b8101908080516040519392919084600160201b82111561029457600080fd5b9083019060208201858111156102a957600080fd5b8251600160201b8111828201881017156102c257600080fd5b82525081516020918201929091019080838360005b838110156102ef5781810151838201526020016102d7565b50505050905090810190601f16801561031c5780820380516001836020036101000a031916815260200191505b50604081815260208083528651818401528651929550859450908401925085019080838360005b8381101561035b578181015183820152602001610343565b50505050905090810190601f1680156103885780820380516001836020036101000a031916815260200191505b509250505060405180910390a15050505050565b60606103de8484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061068892505050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c81806020019051602081101561041657600080fd5b8101908080516040519392919084600160201b82111561043557600080fd5b90830190602082018581111561044a57600080fd5b8251600160201b81118282018810171561046357600080fd5b82525081516020918201929091019080838360005b83811015610490578181015183820152602001610478565b50505050905090810190601f1680156104bd5780820380516001836020036101000a031916815260200191505b50604081815260208083528651818401528651929550859450908401925085019080838360005b838110156104fc5781810151838201526020016104e4565b50505050905090810190601f1680156105295780820380516001836020036101000a031916815260200191505b509250505060405180910390a150505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061057057508115155b949350505050565b804710156105cd576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610618576040519150601f19603f3d011682016040523d82523d6000602084013e61061d565b606091505b505090508061065d5760405162461bcd60e51b815260040180806020018281038252603a8152602001806108de603a913960400191505060405180910390fd5b505050565b606061057084848460405180606001604052806029815260200161093e602991396106d1565b60606106ca83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610727565b9392505050565b6060824710156107125760405162461bcd60e51b81526004018080602001828103825260268152602001806109186026913960400191505060405180910390fd5b61071e85858585610732565b95945050505050565b606061057084846000855b606061073d8561053c565b61078e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106107cd5780518252601f1990920191602091820191016107ae565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461082f576040519150601f19603f3d011682016040523d82523d6000602084013e610834565b606091505b509150915081156108485791506105709050565b8051156108585780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108a257818101518382015260200161088a565b50505050905090810190601f1680156108cf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a2646970667358221220134e667fd70954d715df90c23c236801690dd89ffb1aaa882d9b2214600d61c764736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"functionCall(address,bytes)":"0xa0b5ffb0","functionCallWithValue(address,bytes,uint256)":"0x2a011594","isContract(address)":"0x16279055","sendValue(address,uint256)":"0x24a084df"},"runtimeBytecode":{"bytecode":"0x6080604052600436106100435760003560e01c8063162790551461004f57806324a084df146100965780632a011594146100d1578063a0b5ffb01461014f5761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b506100826004803603602081101561007257600080fd5b50356001600160a01b03166101da565b604080519115158252519081900360200190f35b3480156100a257600080fd5b506100cf600480360360408110156100b957600080fd5b506001600160a01b0381351690602001356101eb565b005b6100cf600480360360608110156100e757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561011157600080fd5b82018360208201111561012357600080fd5b803590602001918460018302840111600160201b8311171561014457600080fd5b9193509150356101f9565b34801561015b57600080fd5b506100cf6004803603604081101561017257600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561019c57600080fd5b8201836020820111156101ae57600080fd5b803590602001918460018302840111600160201b831117156101cf57600080fd5b50909250905061039c565b60006101e58261053c565b92915050565b6101f58282610578565b5050565b606061023d8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250610662915050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c81806020019051602081101561027557600080fd5b8101908080516040519392919084600160201b82111561029457600080fd5b9083019060208201858111156102a957600080fd5b8251600160201b8111828201881017156102c257600080fd5b82525081516020918201929091019080838360005b838110156102ef5781810151838201526020016102d7565b50505050905090810190601f16801561031c5780820380516001836020036101000a031916815260200191505b50604081815260208083528651818401528651929550859450908401925085019080838360005b8381101561035b578181015183820152602001610343565b50505050905090810190601f1680156103885780820380516001836020036101000a031916815260200191505b509250505060405180910390a15050505050565b60606103de8484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061068892505050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c81806020019051602081101561041657600080fd5b8101908080516040519392919084600160201b82111561043557600080fd5b90830190602082018581111561044a57600080fd5b8251600160201b81118282018810171561046357600080fd5b82525081516020918201929091019080838360005b83811015610490578181015183820152602001610478565b50505050905090810190601f1680156104bd5780820380516001836020036101000a031916815260200191505b50604081815260208083528651818401528651929550859450908401925085019080838360005b838110156104fc5781810151838201526020016104e4565b50505050905090810190601f1680156105295780820380516001836020036101000a031916815260200191505b509250505060405180910390a150505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061057057508115155b949350505050565b804710156105cd576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610618576040519150601f19603f3d011682016040523d82523d6000602084013e61061d565b606091505b505090508061065d5760405162461bcd60e51b815260040180806020018281038252603a8152602001806108de603a913960400191505060405180910390fd5b505050565b606061057084848460405180606001604052806029815260200161093e602991396106d1565b60606106ca83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610727565b9392505050565b6060824710156107125760405162461bcd60e51b81526004018080602001828103825260268152602001806109186026913960400191505060405180910390fd5b61071e85858585610732565b95945050505050565b606061057084846000855b606061073d8561053c565b61078e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106107cd5780518252601f1990920191602091820191016107ae565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461082f576040519150601f19603f3d011682016040523d82523d6000602084013e610834565b606091505b509150915081156108485791506105709050565b8051156108585780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108a257818101518382015260200161088a565b50505050905090810190601f1680156108cf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a2646970667358221220134e667fd70954d715df90c23c236801690dd89ffb1aaa882d9b2214600d61c764736f6c634300060c0033"},"sourceId":"contracts/mocks/AddressImpl.sol","sourcemap":"90:892:20:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Arrays":{"abi":[],"contractName":"Arrays","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200ccfc2c15577d4eb59eda77a0d71de8efbf9f34ee2fc32be6298a15fe3b1864264736f6c634300060c0033"},"devdoc":{"details":"Collection of functions related to array types.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200ccfc2c15577d4eb59eda77a0d71de8efbf9f34ee2fc32be6298a15fe3b1864264736f6c634300060c0033"},"sourceId":"contracts/utils/Arrays.sol","sourcemap":"150:1326:105:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ArraysImpl":{"abi":[{"inputs":[{"internalType":"uint256[]","name":"array","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"element","type":"uint256"}],"name":"findUpperBound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"contractName":"ArraysImpl","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506040516102b73803806102b78339818101604052602081101561003357600080fd5b810190808051604051939291908464010000000082111561005357600080fd5b90830190602082018581111561006857600080fd5b825186602082028301116401000000008211171561008557600080fd5b82525081516020918201928201910280838360005b838110156100b257818101518382015260200161009a565b5050505091909101604052505082516100d492506000915060208401906100db565b505061013b565b828054828255906000526020600020908101928215610116579160200282015b828111156101165782518255916020019190600101906100fb565b50610122929150610126565b5090565b5b808211156101225760008155600101610127565b61016d8061014a6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806333e3a58a14610030575b600080fd5b61004d6004803603602081101561004657600080fd5b503561005f565b60408051918252519081900360200190f35b600061006b8183610071565b92915050565b81546000906100825750600061006b565b82546000905b808210156100d157600061009c8383610112565b9050848682815481106100ab57fe5b906000526020600020015411156100c4578091506100cb565b8060010192505b50610088565b6000821180156100f95750838560018403815481106100ec57fe5b9060005260206000200154145b1561010a575060001901905061006b565b509392505050565b6000600280830660028506018161012557fe5b0460028304600285040101939250505056fea2646970667358221220deb9c1cbe5bfbc1caa8bfa72e13dbcdcb706c759bd6cae03bb9c0a0873c6dcc864736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"findUpperBound(uint256)":"0x33e3a58a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806333e3a58a14610030575b600080fd5b61004d6004803603602081101561004657600080fd5b503561005f565b60408051918252519081900360200190f35b600061006b8183610071565b92915050565b81546000906100825750600061006b565b82546000905b808210156100d157600061009c8383610112565b9050848682815481106100ab57fe5b906000526020600020015411156100c4578091506100cb565b8060010192505b50610088565b6000821180156100f95750838560018403815481106100ec57fe5b9060005260206000200154145b1561010a575060001901905061006b565b509392505050565b6000600280830660028506018161012557fe5b0460028304600285040101939250505056fea2646970667358221220deb9c1cbe5bfbc1caa8bfa72e13dbcdcb706c759bd6cae03bb9c0a0873c6dcc864736f6c634300060c0033"},"sourceId":"contracts/mocks/ArraysImpl.sol","sourcemap":"89:300:21:-:0;;;179:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;179:75:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;179:75:21;;;;;;-1:-1:-1;;233:14:21;;;;-1:-1:-1;233:6:21;;-1:-1:-1;233:14:21;;;;;:::i;:::-;;179:75;89:300;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;89:300:21;;;-1:-1:-1;89:300:21;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"CallReceiverMock":{"abi":[{"anonymous":false,"inputs":[],"name":"MockFunctionCalled","type":"event"},{"inputs":[],"name":"mockFunction","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mockFunctionNonPayable","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mockFunctionOutOfGas","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mockFunctionRevertsNoReason","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mockFunctionRevertsReason","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mockFunctionThrows","outputs":[],"stateMutability":"payable","type":"function"}],"contractName":"CallReceiverMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5061021c806100206000396000f3fe6080604052600436106100555760003560e01c80630c0349681461005a5780630f63e42c146100645780632c81d638146100ee5780633bcfaa14146100f65780633e6fec04146100fe578063a793ab4714610106575b600080fd5b61006261010e565b005b34801561007057600080fd5b5061007961015b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100b357818101518382015260200161009b565b50505050905090810190601f1680156100e05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610062610055565b6100626101a8565b61007961015b565b6100626101aa565b6040805162461bcd60e51b815260206004820152601b60248201527f43616c6c52656365697665724d6f636b3a20726576657274696e670000000000604482015290519081900360640190fd5b6040516060907f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1506040805180820190915260068152650c1e0c4c8ccd60d21b602082015290565bfe5b60005b60008054600181810183559180527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56301829055016101ad56fea26469706673582212206f27c57db78ca736a1f9cb72a607c6092a1bb6e99c67a519dfe0fc2ed6bf25a464736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"mockFunction()":"0x3e6fec04","mockFunctionNonPayable()":"0x0f63e42c","mockFunctionOutOfGas()":"0xa793ab47","mockFunctionRevertsNoReason()":"0x2c81d638","mockFunctionRevertsReason()":"0x0c034968","mockFunctionThrows()":"0x3bcfaa14"},"runtimeBytecode":{"bytecode":"0x6080604052600436106100555760003560e01c80630c0349681461005a5780630f63e42c146100645780632c81d638146100ee5780633bcfaa14146100f65780633e6fec04146100fe578063a793ab4714610106575b600080fd5b61006261010e565b005b34801561007057600080fd5b5061007961015b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100b357818101518382015260200161009b565b50505050905090810190601f1680156100e05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610062610055565b6100626101a8565b61007961015b565b6100626101aa565b6040805162461bcd60e51b815260206004820152601b60248201527f43616c6c52656365697665724d6f636b3a20726576657274696e670000000000604482015290519081900360640190fd5b6040516060907f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1506040805180820190915260068152650c1e0c4c8ccd60d21b602082015290565bfe5b60005b60008054600181810183559180527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56301829055016101ad56fea26469706673582212206f27c57db78ca736a1f9cb72a607c6092a1bb6e99c67a519dfe0fc2ed6bf25a464736f6c634300060c0033"},"sourceId":"contracts/mocks/CallReceiverMock.sol","sourcemap":"58:782:22:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ConditionalEscrow":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"withdrawalAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ConditionalEscrow","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Base abstract escrow to only allow withdrawal if a condition is met.Intended usage: See {Escrow}. Same usage guidelines apply here.","kind":"dev","methods":{"deposit(address)":{"details":"Stores the sent amount as credit to be withdrawn.","params":{"payee":"The destination address of the funds."}},"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."},"withdraw(address)":{"details":"Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.","params":{"payee":"The address whose funds will be withdrawn and transferred to."}},"withdrawalAllowed(address)":{"details":"Returns whether an address is allowed to withdraw their funds. To be implemented by derived contracts.","params":{"payee":"The destination address of the funds."}}},"title":"ConditionalEscrow","version":1},"methodIdentifiers":{"deposit(address)":"0xf340fa01","depositsOf(address)":"0xe3a9db1a","owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","transferOwnership(address)":"0xf2fde38b","withdraw(address)":"0x51cff8d9","withdrawalAllowed(address)":"0x685ca194"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/payment/escrow/ConditionalEscrow.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ConditionalEscrowMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"withdrawalAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ConditionalEscrowMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6108468061007d6000396000f3fe60806040526004361061007b5760003560e01c80638da5cb5b1161004e5780638da5cb5b1461014c578063e3a9db1a1461017d578063f2fde38b146101c2578063f340fa01146101f55761007b565b80634697f05d1461008057806351cff8d9146100bd578063685ca194146100f0578063715018a614610137575b600080fd5b34801561008c57600080fd5b506100bb600480360360408110156100a357600080fd5b506001600160a01b038135169060200135151561021b565b005b3480156100c957600080fd5b506100bb600480360360208110156100e057600080fd5b50356001600160a01b0316610246565b3480156100fc57600080fd5b506101236004803603602081101561011357600080fd5b50356001600160a01b0316610296565b604080519115158252519081900360200190f35b34801561014357600080fd5b506100bb6102b4565b34801561015857600080fd5b50610161610356565b604080516001600160a01b039092168252519081900360200190f35b34801561018957600080fd5b506101b0600480360360208110156101a057600080fd5b50356001600160a01b0316610365565b60408051918252519081900360200190f35b3480156101ce57600080fd5b506100bb600480360360208110156101e557600080fd5b50356001600160a01b0316610380565b6100bb6004803603602081101561020b57600080fd5b50356001600160a01b0316610478565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b61024f81610296565b61028a5760405162461bcd60e51b81526004018080602001828103825260338152602001806107be6033913960400191505060405180910390fd5b6102938161054b565b50565b6001600160a01b031660009081526002602052604090205460ff1690565b6102bc61060e565b6000546001600160a01b0390811691161461030c576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61038861060e565b6000546001600160a01b039081169116146103d8576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811661041d5760405162461bcd60e51b815260040180806020018281038252602681526020018061075e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61048061060e565b6000546001600160a01b039081169116146104d0576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205434906104f59082610612565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b61055361060e565b6000546001600160a01b039081169116146105a3576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906105cb9082610673565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b3390565b60008282018381101561066c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b804710156106c8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610713576040519150601f19603f3d011682016040523d82523d6000602084013e610718565b606091505b50509050806107585760405162461bcd60e51b815260040180806020018281038252603a815260200180610784603a913960400191505060405180910390fd5b50505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420616c6c6f77656420746f2077697468647261774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220452f50e9a3b4ac7fbcf5deb2a441a5efa0cd3ccd4bac6c919c7101f51b8e5a5264736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"deposit(address)":{"details":"Stores the sent amount as credit to be withdrawn.","params":{"payee":"The destination address of the funds."}},"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."},"withdraw(address)":{"details":"Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.","params":{"payee":"The address whose funds will be withdrawn and transferred to."}},"withdrawalAllowed(address)":{"details":"Returns whether an address is allowed to withdraw their funds. To be implemented by derived contracts.","params":{"payee":"The destination address of the funds."}}},"version":1},"methodIdentifiers":{"deposit(address)":"0xf340fa01","depositsOf(address)":"0xe3a9db1a","owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","setAllowed(address,bool)":"0x4697f05d","transferOwnership(address)":"0xf2fde38b","withdraw(address)":"0x51cff8d9","withdrawalAllowed(address)":"0x685ca194"},"runtimeBytecode":{"bytecode":"0x60806040526004361061007b5760003560e01c80638da5cb5b1161004e5780638da5cb5b1461014c578063e3a9db1a1461017d578063f2fde38b146101c2578063f340fa01146101f55761007b565b80634697f05d1461008057806351cff8d9146100bd578063685ca194146100f0578063715018a614610137575b600080fd5b34801561008c57600080fd5b506100bb600480360360408110156100a357600080fd5b506001600160a01b038135169060200135151561021b565b005b3480156100c957600080fd5b506100bb600480360360208110156100e057600080fd5b50356001600160a01b0316610246565b3480156100fc57600080fd5b506101236004803603602081101561011357600080fd5b50356001600160a01b0316610296565b604080519115158252519081900360200190f35b34801561014357600080fd5b506100bb6102b4565b34801561015857600080fd5b50610161610356565b604080516001600160a01b039092168252519081900360200190f35b34801561018957600080fd5b506101b0600480360360208110156101a057600080fd5b50356001600160a01b0316610365565b60408051918252519081900360200190f35b3480156101ce57600080fd5b506100bb600480360360208110156101e557600080fd5b50356001600160a01b0316610380565b6100bb6004803603602081101561020b57600080fd5b50356001600160a01b0316610478565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b61024f81610296565b61028a5760405162461bcd60e51b81526004018080602001828103825260338152602001806107be6033913960400191505060405180910390fd5b6102938161054b565b50565b6001600160a01b031660009081526002602052604090205460ff1690565b6102bc61060e565b6000546001600160a01b0390811691161461030c576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61038861060e565b6000546001600160a01b039081169116146103d8576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811661041d5760405162461bcd60e51b815260040180806020018281038252602681526020018061075e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61048061060e565b6000546001600160a01b039081169116146104d0576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205434906104f59082610612565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b61055361060e565b6000546001600160a01b039081169116146105a3576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906105cb9082610673565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b3390565b60008282018381101561066c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b804710156106c8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610713576040519150601f19603f3d011682016040523d82523d6000602084013e610718565b606091505b50509050806107585760405162461bcd60e51b815260040180806020018281038252603a815260200180610784603a913960400191505060405180910390fd5b50505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420616c6c6f77656420746f2077697468647261774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220452f50e9a3b4ac7fbcf5deb2a441a5efa0cd3ccd4bac6c919c7101f51b8e5a5264736f6c634300060c0033"},"sourceId":"contracts/mocks/ConditionalEscrowMock.sol","sourcemap":"147:329:23:-:0;;;;;;;;;;;;-1:-1:-1;865:17:7;885:12;:10;:12::i;:::-;907:6;:18;;-1:-1:-1;;;;;;907:18:7;-1:-1:-1;;;;;907:18:7;;;;;;;940:43;;907:18;;-1:-1:-1;907:18:7;940:43;;907:6;;940:43;831:159;147:329:23;;590:104:0;677:10;590:104;:::o;147:329:23:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Context":{"abi":[],"contractName":"Context","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/GSN/Context.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ContextMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"integerValue","type":"uint256"},{"indexed":false,"internalType":"string","name":"stringValue","type":"string"}],"name":"Data","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"Sender","type":"event"},{"inputs":[{"internalType":"uint256","name":"integerValue","type":"uint256"},{"internalType":"string","name":"stringValue","type":"string"}],"name":"msgData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"msgSender","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ContextMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506102c4806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063376bf2621461003b578063d737d0c7146100ea575b600080fd5b6100e86004803603604081101561005157600080fd5b8135919081019060408101602082013564010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506100f2945050505050565b005b6100e8610205565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea061011b61024b565b8383604051808060200184815260200180602001838103835286818151815260200191508051906020019080838360005b8381101561016457818101518382015260200161014c565b50505050905090810190601f1680156101915780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156101c45781810151838201526020016101ac565b50505050905090810190601f1680156101f15780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc61022e61028a565b604080516001600160a01b039092168252519081900360200190a1565b60606000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935050505090565b339056fea2646970667358221220b9bfd7a409f9d246c5f26369db7f8684746a4950634ebb12695113139d82d68064736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"msgData(uint256,string)":"0x376bf262","msgSender()":"0xd737d0c7"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063376bf2621461003b578063d737d0c7146100ea575b600080fd5b6100e86004803603604081101561005157600080fd5b8135919081019060408101602082013564010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506100f2945050505050565b005b6100e8610205565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea061011b61024b565b8383604051808060200184815260200180602001838103835286818151815260200191508051906020019080838360005b8381101561016457818101518382015260200161014c565b50505050905090810190601f1680156101915780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156101c45781810151838201526020016101ac565b50505050905090810190601f1680156101f15780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc61022e61028a565b604080516001600160a01b039092168252519081900360200190a1565b60606000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935050505090565b339056fea2646970667358221220b9bfd7a409f9d246c5f26369db7f8684746a4950634ebb12695113139d82d68064736f6c634300060c0033"},"sourceId":"contracts/mocks/ContextMock.sol","sourcemap":"88:360:24:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ContextMockCaller":{"abi":[{"inputs":[{"internalType":"contract ContextMock","name":"context","type":"address"},{"internalType":"uint256","name":"integerValue","type":"uint256"},{"internalType":"string","name":"stringValue","type":"string"}],"name":"callData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ContextMock","name":"context","type":"address"}],"name":"callSender","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ContextMockCaller","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610277806100206000396000f3fe608060405234801561001057600080fd5b50600436106100355760003560e01c80628604591461003a5780633207ad96146100f7575b600080fd5b6100f56004803603606081101561005057600080fd5b6001600160a01b038235169160208101359181019060608101604082013564010000000081111561008057600080fd5b82018360208201111561009257600080fd5b803590602001918460018302840111640100000000831117156100b457600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061011d945050505050565b005b6100f56004803603602081101561010d57600080fd5b50356001600160a01b03166101eb565b60408051631bb5f93160e11b815260048101848152602482019283528351604483015283516001600160a01b0387169363376bf262938793879390929160640190602085019080838360005b83811015610181578181015183820152602001610169565b50505050905090810190601f1680156101ae5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b1580156101ce57600080fd5b505af11580156101e2573d6000803e3d6000fd5b50505050505050565b806001600160a01b031663d737d0c76040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022657600080fd5b505af115801561023a573d6000803e3d6000fd5b505050505056fea26469706673582212202b477c11f48c4017db34692f2ff41e8f0b98ce740371090fd56901789521ac6a64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"callData(address,uint256,string)":"0x00860459","callSender(address)":"0x3207ad96"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100355760003560e01c80628604591461003a5780633207ad96146100f7575b600080fd5b6100f56004803603606081101561005057600080fd5b6001600160a01b038235169160208101359181019060608101604082013564010000000081111561008057600080fd5b82018360208201111561009257600080fd5b803590602001918460018302840111640100000000831117156100b457600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061011d945050505050565b005b6100f56004803603602081101561010d57600080fd5b50356001600160a01b03166101eb565b60408051631bb5f93160e11b815260048101848152602482019283528351604483015283516001600160a01b0387169363376bf262938793879390929160640190602085019080838360005b83811015610181578181015183820152602001610169565b50505050905090810190601f1680156101ae5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b1580156101ce57600080fd5b505af11580156101e2573d6000803e3d6000fd5b50505050505050565b806001600160a01b031663d737d0c76040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022657600080fd5b505af115801561023a573d6000803e3d6000fd5b505050505056fea26469706673582212202b477c11f48c4017db34692f2ff41e8f0b98ce740371090fd56901789521ac6a64736f6c634300060c0033"},"sourceId":"contracts/mocks/ContextMock.sol","sourcemap":"450:279:24:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Counters":{"abi":[],"contractName":"Counters","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220df2a04527afd2f681d2076b0cfa29c9d6ffe35186e2a9359964cb213c027614764736f6c634300060c0033"},"devdoc":{"author":"Matt Condon (@shrugs)","details":"Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number of elements in a mapping, issuing ERC721 ids, or counting request ids. Include with `using Counters for Counters.Counter;` Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath} overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never directly accessed.","kind":"dev","methods":{},"title":"Counters","version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220df2a04527afd2f681d2076b0cfa29c9d6ffe35186e2a9359964cb213c027614764736f6c634300060c0033"},"sourceId":"contracts/utils/Counters.sol","sourcemap":"662:848:106:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"CountersImpl":{"abi":[{"inputs":[],"name":"current","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decrement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"increment","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"CountersImpl","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506101cd806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80632baeceb7146100465780639fa6a6e314610050578063d09de08a1461006a575b600080fd5b61004e610072565b005b61005861007e565b60408051918252519081900360200190f35b61004e61008f565b61007c6000610099565b565b600061008a60006100aa565b905090565b61007c60006100ae565b80546100a69060016100b7565b9055565b5490565b80546001019055565b60006100f983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610100565b9392505050565b6000818484111561018f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561015457818101518382015260200161013c565b50505050905090810190601f1680156101815780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fea2646970667358221220b590b5b8335d7e112db69e037a46b8e1e8cd5b15f90ef6b00f5ce74a3ea720ee64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"current()":"0x9fa6a6e3","decrement()":"0x2baeceb7","increment()":"0xd09de08a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100415760003560e01c80632baeceb7146100465780639fa6a6e314610050578063d09de08a1461006a575b600080fd5b61004e610072565b005b61005861007e565b60408051918252519081900360200190f35b61004e61008f565b61007c6000610099565b565b600061008a60006100aa565b905090565b61007c60006100ae565b80546100a69060016100b7565b9055565b5490565b80546001019055565b60006100f983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610100565b9392505050565b6000818484111561018f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561015457818101518382015260200161013c565b50505050905090810190601f1680156101815780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fea2646970667358221220b590b5b8335d7e112db69e037a46b8e1e8cd5b15f90ef6b00f5ce74a3ea720ee64736f6c634300060c0033"},"sourceId":"contracts/mocks/CountersImpl.sol","sourcemap":"91:345:25:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Create2":{"abi":[],"contractName":"Create2","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212201dd115240f77ca99faaf15bc24fa7d2009a3c52e49099ee4ac1312602d0b79bc64736f6c634300060c0033"},"devdoc":{"details":"Helper to make usage of the `CREATE2` EVM opcode easier and safer. `CREATE2` can be used to compute in advance the address where a smart contract will be deployed, which allows for interesting new mechanisms known as 'counterfactual interactions'. See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more information.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212201dd115240f77ca99faaf15bc24fa7d2009a3c52e49099ee4ac1312602d0b79bc64736f6c634300060c0033"},"sourceId":"contracts/utils/Create2.sol","sourcemap":"426:2012:107:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Create2Impl":{"abi":[{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"bytes32","name":"codeHash","type":"bytes32"}],"name":"computeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"bytes32","name":"codeHash","type":"bytes32"},{"internalType":"address","name":"deployer","type":"address"}],"name":"computeAddressWithDeployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"bytes","name":"code","type":"bytes"}],"name":"deploy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"deployERC1820Implementer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}],"contractName":"Create2Impl","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5061051f806100206000396000f3fe6080604052600436106100435760003560e01c8063076c37b21461004f578063481286e61461008157806356299481146100cd57806366cfa0571461010c5761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b5061007f6004803603604081101561007257600080fd5b50803590602001356101cb565b005b34801561008d57600080fd5b506100b1600480360360408110156100a457600080fd5b50803590602001356101fd565b604080516001600160a01b039092168252519081900360200190f35b3480156100d957600080fd5b506100b1600480360360608110156100f057600080fd5b50803590602081013590604001356001600160a01b0316610210565b34801561011857600080fd5b5061007f6004803603606081101561012f57600080fd5b81359160208101359181019060608101604082013564010000000081111561015657600080fd5b82018360208201111561016857600080fd5b8035906020019184600183028401116401000000008311171561018a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610225945050505050565b6101f88282604051806020016101e0906103ab565b601f1982820381018352601f90910116604052610236565b505050565b60006102098383610347565b9392505050565b600061021d848484610350565b949350505050565b610230838383610236565b50505050565b6000808447101561028e576040805162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b82516102e1576040805162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015290519081900360640190fd5b8383516020850187f590506001600160a01b03811661021d576040805162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015290519081900360640190fd5b60006102098383305b604080516001600160f81b031960208083019190915260609390931b6bffffffffffffffffffffffff191660218201526035810194909452605580850193909352805180850390930183526075909301909252805191012090565b610131806103b98339019056fe608060405234801561001057600080fd5b50610111806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b605660048036036040811015604157600080fd5b50803590602001356001600160a01b03166068565b60408051918252519081900360200190f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16609557600060d4565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b939250505056fea264697066735822122015fe6f9037ca52b8c1bc2ce5ae62724367ce1540374713e4face6cb839fe448e64736f6c634300060c0033a26469706673582212209f0d3ad8582398283c1c8960451e24f26eadf4da348faf9c9b4afbb891d5d5ef64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"computeAddress(bytes32,bytes32)":"0x481286e6","computeAddressWithDeployer(bytes32,bytes32,address)":"0x56299481","deploy(uint256,bytes32,bytes)":"0x66cfa057","deployERC1820Implementer(uint256,bytes32)":"0x076c37b2"},"runtimeBytecode":{"bytecode":"0x6080604052600436106100435760003560e01c8063076c37b21461004f578063481286e61461008157806356299481146100cd57806366cfa0571461010c5761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b5061007f6004803603604081101561007257600080fd5b50803590602001356101cb565b005b34801561008d57600080fd5b506100b1600480360360408110156100a457600080fd5b50803590602001356101fd565b604080516001600160a01b039092168252519081900360200190f35b3480156100d957600080fd5b506100b1600480360360608110156100f057600080fd5b50803590602081013590604001356001600160a01b0316610210565b34801561011857600080fd5b5061007f6004803603606081101561012f57600080fd5b81359160208101359181019060608101604082013564010000000081111561015657600080fd5b82018360208201111561016857600080fd5b8035906020019184600183028401116401000000008311171561018a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610225945050505050565b6101f88282604051806020016101e0906103ab565b601f1982820381018352601f90910116604052610236565b505050565b60006102098383610347565b9392505050565b600061021d848484610350565b949350505050565b610230838383610236565b50505050565b6000808447101561028e576040805162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b82516102e1576040805162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015290519081900360640190fd5b8383516020850187f590506001600160a01b03811661021d576040805162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015290519081900360640190fd5b60006102098383305b604080516001600160f81b031960208083019190915260609390931b6bffffffffffffffffffffffff191660218201526035810194909452605580850193909352805180850390930183526075909301909252805191012090565b610131806103b98339019056fe608060405234801561001057600080fd5b50610111806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b605660048036036040811015604157600080fd5b50803590602001356001600160a01b03166068565b60408051918252519081900360200190f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16609557600060d4565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b939250505056fea264697066735822122015fe6f9037ca52b8c1bc2ce5ae62724367ce1540374713e4face6cb839fe448e64736f6c634300060c0033a26469706673582212209f0d3ad8582398283c1c8960451e24f26eadf4da348faf9c9b4afbb891d5d5ef64736f6c634300060c0033"},"sourceId":"contracts/mocks/Create2Impl.sol","sourcemap":"140:736:26:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ECDSA":{"abi":[],"contractName":"ECDSA","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122078a4c5a4b6271d2ddd7806f82cb005f2b9f1e769fd21bb3f1a350c1f97db25e364736f6c634300060c0033"},"devdoc":{"details":"Elliptic Curve Digital Signature Algorithm (ECDSA) operations. These functions can be used to verify that a message was signed by the holder of the private keys of a given address.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122078a4c5a4b6271d2ddd7806f82cb005f2b9f1e769fd21bb3f1a350c1f97db25e364736f6c634300060c0033"},"sourceId":"contracts/cryptography/ECDSA.sol","sourcemap":"264:3399:8:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ECDSAMock":{"abi":[{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recover","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"}],"name":"toEthSignedMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"}],"contractName":"ECDSAMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5061040d806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806319045a251461003b578063918a15cf14610104575b600080fd5b6100e86004803603604081101561005157600080fd5b8135919081019060408101602082013564010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610133945050505050565b604080516001600160a01b039092168252519081900360200190f35b6101216004803603602081101561011a57600080fd5b5035610146565b60408051918252519081900360200190f35b600061013f8383610157565b9392505050565b600061015182610342565b92915050565b600081516041146101af576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156102205760405162461bcd60e51b81526004018080602001828103825260228152602001806103946022913960400191505060405180910390fd5b8060ff16601b1415801561023857508060ff16601c14155b156102745760405162461bcd60e51b81526004018080602001828103825260228152602001806103b66022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156102d0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610338576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c90910190915281519101209056fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c7565a264697066735822122079cf4dff41b76c7416683a75115ff150eab43ee80467c8c503b1b54d53f72e8d64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"recover(bytes32,bytes)":"0x19045a25","toEthSignedMessageHash(bytes32)":"0x918a15cf"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100365760003560e01c806319045a251461003b578063918a15cf14610104575b600080fd5b6100e86004803603604081101561005157600080fd5b8135919081019060408101602082013564010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610133945050505050565b604080516001600160a01b039092168252519081900360200190f35b6101216004803603602081101561011a57600080fd5b5035610146565b60408051918252519081900360200190f35b600061013f8383610157565b9392505050565b600061015182610342565b92915050565b600081516041146101af576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156102205760405162461bcd60e51b81526004018080602001828103825260228152602001806103946022913960400191505060405180910390fd5b8060ff16601b1415801561023857508060ff16601c14155b156102745760405162461bcd60e51b81526004018080602001828103825260228152602001806103b66022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156102d0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610338576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c90910190915281519101209056fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c7565a264697066735822122079cf4dff41b76c7416683a75115ff150eab43ee80467c8c503b1b54d53f72e8d64736f6c634300060c0033"},"sourceId":"contracts/mocks/ECDSAMock.sol","sourcemap":"95:324:27:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155":{"abi":[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200192738038062001927833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052506200010191506301ffc9a760e01b905062000137565b6200010c81620001bc565b6200011e636cdb3d1360e11b62000137565b620001306303a24d0760e21b62000137565b5062000271565b6001600160e01b0319808216141562000197576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001d1906003906020840190620001d5565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200021857805160ff191683800117855562000248565b8280016001018555821562000248579182015b82811115620002485782518255916020019190600101906200022b565b50620002569291506200025a565b5090565b5b808211156200025657600081556001016200025b565b6116a680620002816000396000f3fe608060405234801561001057600080fd5b50600436106100875760003560e01c80634e1273f41161005b5780634e1273f41461035a578063a22cb465146104cd578063e985e9c5146104fb578063f242432a1461052957610087565b8062fdd58e1461008c57806301ffc9a7146100ca5780630e89341c146101055780632eb2c2d614610197575b600080fd5b6100b8600480360360408110156100a257600080fd5b506001600160a01b0381351690602001356105f2565b60408051918252519081900360200190f35b6100f1600480360360208110156100e057600080fd5b50356001600160e01b031916610661565b604080519115158252519081900360200190f35b6101226004803603602081101561011b57600080fd5b5035610680565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015c578181015183820152602001610144565b50505050905090810190601f1680156101895780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610358600480360360a08110156101ad57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156101e057600080fd5b8201836020820111156101f257600080fd5b803590602001918460208302840111600160201b8311171561021357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561026257600080fd5b82018360208201111561027457600080fd5b803590602001918460208302840111600160201b8311171561029557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156102e457600080fd5b8201836020820111156102f657600080fd5b803590602001918460018302840111600160201b8311171561031757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610718945050505050565b005b61047d6004803603604081101561037057600080fd5b810190602081018135600160201b81111561038a57600080fd5b82018360208201111561039c57600080fd5b803590602001918460208302840111600160201b831117156103bd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561040c57600080fd5b82018360208201111561041e57600080fd5b803590602001918460208302840111600160201b8311171561043f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a16945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104b95781810151838201526020016104a1565b505050509050019250505060405180910390f35b610358600480360360408110156104e357600080fd5b506001600160a01b0381351690602001351515610b94565b6100f16004803603604081101561051157600080fd5b506001600160a01b0381358116916020013516610c83565b610358600480360360a081101561053f57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561057e57600080fd5b82018360208201111561059057600080fd5b803590602001918460018302840111600160201b831117156105b157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610cb1945050505050565b60006001600160a01b0383166106395760405162461bcd60e51b815260040180806020018281038252602b8152602001806114f1602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561070c5780601f106106e15761010080835404028352916020019161070c565b820191906000526020600020905b8154815290600101906020018083116106ef57829003601f168201915b50505050509050919050565b81518351146107585760405162461bcd60e51b81526004018080602001828103825260288152602001806116496028913960400191505060405180910390fd5b6001600160a01b03841661079d5760405162461bcd60e51b81526004018080602001828103825260258152602001806115766025913960400191505060405180910390fd5b6107a5610e7c565b6001600160a01b0316856001600160a01b031614806107d057506107d0856107cb610e7c565b610c83565b61080b5760405162461bcd60e51b815260040180806020018281038252603281526020018061159b6032913960400191505060405180910390fd5b6000610815610e7c565b9050610825818787878787610a0e565b60005b845181101561092657600085828151811061083f57fe5b60200260200101519050600085838151811061085757fe5b602002602001015190506108c4816040518060600160405280602a81526020016115cd602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054610e819092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a16815220546108fb9082610f18565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610828565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156109ac578181015183820152602001610994565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156109eb5781810151838201526020016109d3565b5050505090500194505050505060405180910390a4610a0e818787878787610f79565b505050505050565b60608151835114610a585760405162461bcd60e51b81526004018080602001828103825260298152602001806116206029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610a7257600080fd5b50604051908082528060200260200182016040528015610a9c578160200160208202803683370190505b50905060005b8451811015610b8c5760006001600160a01b0316858281518110610ac257fe5b60200260200101516001600160a01b03161415610b105760405162461bcd60e51b815260040180806020018281038252603181526020018061151c6031913960400191505060405180910390fd5b60016000858381518110610b2057fe5b602002602001015181526020019081526020016000206000868381518110610b4457fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054828281518110610b7957fe5b6020908102919091010152600101610aa2565b509392505050565b816001600160a01b0316610ba6610e7c565b6001600160a01b03161415610bec5760405162461bcd60e51b81526004018080602001828103825260298152602001806115f76029913960400191505060405180910390fd5b8060026000610bf9610e7c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c3d610e7c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610cf65760405162461bcd60e51b81526004018080602001828103825260258152602001806115766025913960400191505060405180910390fd5b610cfe610e7c565b6001600160a01b0316856001600160a01b03161480610d245750610d24856107cb610e7c565b610d5f5760405162461bcd60e51b815260040180806020018281038252602981526020018061154d6029913960400191505060405180910390fd5b6000610d69610e7c565b9050610d89818787610d7a886111f8565b610d83886111f8565b87610a0e565b610dd0836040518060600160405280602a81526020016115cd602a913960008781526001602090815260408083206001600160a01b038d1684529091529020549190610e81565b60008581526001602090815260408083206001600160a01b038b81168552925280832093909355871681522054610e079084610f18565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610a0e81878787878761123c565b335b90565b60008184841115610f105760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ed5578181015183820152602001610ebd565b50505050905090810190601f168015610f025780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610f72576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b610f8b846001600160a01b03166113ad565b15610a0e57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611019578181015183820152602001611001565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611058578181015183820152602001611040565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561109457818101518382015260200161107c565b50505050905090810190601f1680156110c15780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156110e657600080fd5b505af192505050801561110b57506040513d602081101561110657600080fd5b505160015b6111a0576111176113ef565b806111225750611169565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315610ed5578181015183820152602001610ebd565b60405162461bcd60e51b81526004018080602001828103825260348152602001806114956034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146111ef5760405162461bcd60e51b81526004018080602001828103825260288152602001806114c96028913960400191505060405180910390fd5b50505050505050565b60408051600180825281830190925260609182919060208083019080368337019050509050828160008151811061122b57fe5b602090810291909101015292915050565b61124e846001600160a01b03166113ad565b15610a0e57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156112dd5781810151838201526020016112c5565b50505050905090810190601f16801561130a5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561132d57600080fd5b505af192505050801561135257506040513d602081101561134d57600080fd5b505160015b61135e576111176113ef565b6001600160e01b0319811663f23a6e6160e01b146111ef5760405162461bcd60e51b81526004018080602001828103825260288152602001806114c96028913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906113e157508115155b949350505050565b60e01c90565b600060443d10156113ff57610e7e565b600481823e6308c379a061141382516113e9565b1461141d57610e7e565b6040513d600319016004823e80513d67ffffffffffffffff816024840111818411171561144d5750505050610e7e565b828401925082519150808211156114675750505050610e7e565b503d8301602082840101111561147f57505050610e7e565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368a2646970667358221220c091c4a0c037014ace3f38ef3d6814f9f79c2b6f1555f46d519ef0400568570964736f6c634300060c0033"},"devdoc":{"details":"Implementation of the basic standard multi-token. See https://eips.ethereum.org/EIPS/eip-1155 Originally based on code by Enjin: https://github.com/enjin/erc-1155 _Available since v3.1._","kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"constructor":{"details":"See {_setURI}."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","isApprovedForAll(address,address)":"0xe985e9c5","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100875760003560e01c80634e1273f41161005b5780634e1273f41461035a578063a22cb465146104cd578063e985e9c5146104fb578063f242432a1461052957610087565b8062fdd58e1461008c57806301ffc9a7146100ca5780630e89341c146101055780632eb2c2d614610197575b600080fd5b6100b8600480360360408110156100a257600080fd5b506001600160a01b0381351690602001356105f2565b60408051918252519081900360200190f35b6100f1600480360360208110156100e057600080fd5b50356001600160e01b031916610661565b604080519115158252519081900360200190f35b6101226004803603602081101561011b57600080fd5b5035610680565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015c578181015183820152602001610144565b50505050905090810190601f1680156101895780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610358600480360360a08110156101ad57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156101e057600080fd5b8201836020820111156101f257600080fd5b803590602001918460208302840111600160201b8311171561021357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561026257600080fd5b82018360208201111561027457600080fd5b803590602001918460208302840111600160201b8311171561029557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156102e457600080fd5b8201836020820111156102f657600080fd5b803590602001918460018302840111600160201b8311171561031757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610718945050505050565b005b61047d6004803603604081101561037057600080fd5b810190602081018135600160201b81111561038a57600080fd5b82018360208201111561039c57600080fd5b803590602001918460208302840111600160201b831117156103bd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561040c57600080fd5b82018360208201111561041e57600080fd5b803590602001918460208302840111600160201b8311171561043f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a16945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104b95781810151838201526020016104a1565b505050509050019250505060405180910390f35b610358600480360360408110156104e357600080fd5b506001600160a01b0381351690602001351515610b94565b6100f16004803603604081101561051157600080fd5b506001600160a01b0381358116916020013516610c83565b610358600480360360a081101561053f57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561057e57600080fd5b82018360208201111561059057600080fd5b803590602001918460018302840111600160201b831117156105b157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610cb1945050505050565b60006001600160a01b0383166106395760405162461bcd60e51b815260040180806020018281038252602b8152602001806114f1602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561070c5780601f106106e15761010080835404028352916020019161070c565b820191906000526020600020905b8154815290600101906020018083116106ef57829003601f168201915b50505050509050919050565b81518351146107585760405162461bcd60e51b81526004018080602001828103825260288152602001806116496028913960400191505060405180910390fd5b6001600160a01b03841661079d5760405162461bcd60e51b81526004018080602001828103825260258152602001806115766025913960400191505060405180910390fd5b6107a5610e7c565b6001600160a01b0316856001600160a01b031614806107d057506107d0856107cb610e7c565b610c83565b61080b5760405162461bcd60e51b815260040180806020018281038252603281526020018061159b6032913960400191505060405180910390fd5b6000610815610e7c565b9050610825818787878787610a0e565b60005b845181101561092657600085828151811061083f57fe5b60200260200101519050600085838151811061085757fe5b602002602001015190506108c4816040518060600160405280602a81526020016115cd602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054610e819092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a16815220546108fb9082610f18565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610828565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156109ac578181015183820152602001610994565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156109eb5781810151838201526020016109d3565b5050505090500194505050505060405180910390a4610a0e818787878787610f79565b505050505050565b60608151835114610a585760405162461bcd60e51b81526004018080602001828103825260298152602001806116206029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610a7257600080fd5b50604051908082528060200260200182016040528015610a9c578160200160208202803683370190505b50905060005b8451811015610b8c5760006001600160a01b0316858281518110610ac257fe5b60200260200101516001600160a01b03161415610b105760405162461bcd60e51b815260040180806020018281038252603181526020018061151c6031913960400191505060405180910390fd5b60016000858381518110610b2057fe5b602002602001015181526020019081526020016000206000868381518110610b4457fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054828281518110610b7957fe5b6020908102919091010152600101610aa2565b509392505050565b816001600160a01b0316610ba6610e7c565b6001600160a01b03161415610bec5760405162461bcd60e51b81526004018080602001828103825260298152602001806115f76029913960400191505060405180910390fd5b8060026000610bf9610e7c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c3d610e7c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610cf65760405162461bcd60e51b81526004018080602001828103825260258152602001806115766025913960400191505060405180910390fd5b610cfe610e7c565b6001600160a01b0316856001600160a01b03161480610d245750610d24856107cb610e7c565b610d5f5760405162461bcd60e51b815260040180806020018281038252602981526020018061154d6029913960400191505060405180910390fd5b6000610d69610e7c565b9050610d89818787610d7a886111f8565b610d83886111f8565b87610a0e565b610dd0836040518060600160405280602a81526020016115cd602a913960008781526001602090815260408083206001600160a01b038d1684529091529020549190610e81565b60008581526001602090815260408083206001600160a01b038b81168552925280832093909355871681522054610e079084610f18565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610a0e81878787878761123c565b335b90565b60008184841115610f105760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ed5578181015183820152602001610ebd565b50505050905090810190601f168015610f025780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610f72576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b610f8b846001600160a01b03166113ad565b15610a0e57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611019578181015183820152602001611001565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611058578181015183820152602001611040565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561109457818101518382015260200161107c565b50505050905090810190601f1680156110c15780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156110e657600080fd5b505af192505050801561110b57506040513d602081101561110657600080fd5b505160015b6111a0576111176113ef565b806111225750611169565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315610ed5578181015183820152602001610ebd565b60405162461bcd60e51b81526004018080602001828103825260348152602001806114956034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146111ef5760405162461bcd60e51b81526004018080602001828103825260288152602001806114c96028913960400191505060405180910390fd5b50505050505050565b60408051600180825281830190925260609182919060208083019080368337019050509050828160008151811061122b57fe5b602090810291909101015292915050565b61124e846001600160a01b03166113ad565b15610a0e57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156112dd5781810151838201526020016112c5565b50505050905090810190601f16801561130a5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561132d57600080fd5b505af192505050801561135257506040513d602081101561134d57600080fd5b505160015b61135e576111176113ef565b6001600160e01b0319811663f23a6e6160e01b146111ef5760405162461bcd60e51b81526004018080602001828103825260288152602001806114c96028913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906113e157508115155b949350505050565b60e01c90565b600060443d10156113ff57610e7e565b600481823e6308c379a061141382516113e9565b1461141d57610e7e565b6040513d600319016004823e80513d67ffffffffffffffff816024840111818411171561144d5750505050610e7e565b828401925082519150808211156114675750505050610e7e565b503d8301602082840101111561147f57505050610e7e565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368a2646970667358221220c091c4a0c037014ace3f38ef3d6814f9f79c2b6f1555f46d519ef0400568570964736f6c634300060c0033"},"sourceId":"contracts/token/ERC1155/ERC1155.sol","sourcemap":"512:13738:76:-:0;;;1964:352;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1964:352:76;;;;;;;;;;-1:-1:-1;1964:352:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1964:352:76;;-1:-1:-1;751:40:10;;-1:-1:-1;;;;770:20:10;-1:-1:-1;751:18:10;:40::i;:::-;2013:12:76;2021:3;2013:7;:12::i;:::-;2114:41;-1:-1:-1;;;2114:18:76;:41::i;:::-;2255:54;-1:-1:-1;;;2255:18:76;:54::i;:::-;1964:352;512:13738;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;7585:86:76:-;7651:13;;;;:4;;:13;;;;;:::i;:::-;;7585:86;:::o;512:13738::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;512:13738:76;;;-1:-1:-1;512:13738:76;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155Burnable":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155Burnable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Extension of {ERC1155} that allows token holders to destroy both their own tokens and those that they have been approved to use. _Available since v3.1._","kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","burn(address,uint256,uint256)":"0xf5298aca","burnBatch(address,uint256[],uint256[])":"0x6b20c454","isApprovedForAll(address,address)":"0xe985e9c5","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC1155/ERC1155Burnable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155BurnableMock":{"abi":[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155BurnableMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200217f3803806200217f833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052508291506200010290506301ffc9a760e01b62000139565b6200010d81620001be565b6200011f636cdb3d1360e11b62000139565b620001316303a24d0760e21b62000139565b505062000273565b6001600160e01b0319808216141562000199576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001d3906003906020840190620001d7565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200021a57805160ff19168380011785556200024a565b828001600101855582156200024a579182015b828111156200024a5782518255916020019190600101906200022d565b50620002589291506200025c565b5090565b5b808211156200025857600081556001016200025d565b611efc80620002836000396000f3fe608060405234801561001057600080fd5b50600436106100a85760003560e01c80636b20c454116100715780636b20c454146104ee578063731133e914610621578063a22cb465146106e1578063e985e9c51461070f578063f242432a1461073d578063f5298aca14610806576100a8565b8062fdd58e146100ad57806301ffc9a7146100eb5780630e89341c146101265780632eb2c2d6146101b85780634e1273f41461037b575b600080fd5b6100d9600480360360408110156100c357600080fd5b506001600160a01b038135169060200135610838565b60408051918252519081900360200190f35b6101126004803603602081101561010157600080fd5b50356001600160e01b0319166108a7565b604080519115158252519081900360200190f35b6101436004803603602081101561013c57600080fd5b50356108c6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017d578181015183820152602001610165565b50505050905090810190601f1680156101aa5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610379600480360360a08110156101ce57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561020157600080fd5b82018360208201111561021357600080fd5b803590602001918460208302840111600160201b8311171561023457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561028357600080fd5b82018360208201111561029557600080fd5b803590602001918460208302840111600160201b831117156102b657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561030557600080fd5b82018360208201111561031757600080fd5b803590602001918460018302840111600160201b8311171561033857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061095e945050505050565b005b61049e6004803603604081101561039157600080fd5b810190602081018135600160201b8111156103ab57600080fd5b8201836020820111156103bd57600080fd5b803590602001918460208302840111600160201b831117156103de57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561042d57600080fd5b82018360208201111561043f57600080fd5b803590602001918460208302840111600160201b8311171561046057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c5c945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104da5781810151838201526020016104c2565b505050509050019250505060405180910390f35b6103796004803603606081101561050457600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561052e57600080fd5b82018360208201111561054057600080fd5b803590602001918460208302840111600160201b8311171561056157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105b057600080fd5b8201836020820111156105c257600080fd5b803590602001918460208302840111600160201b831117156105e357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610dda945050505050565b6103796004803603608081101561063757600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561066d57600080fd5b82018360208201111561067f57600080fd5b803590602001918460018302840111600160201b831117156106a057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610e53945050505050565b610379600480360360408110156106f757600080fd5b506001600160a01b0381351690602001351515610e65565b6101126004803603604081101561072557600080fd5b506001600160a01b0381358116916020013516610f54565b610379600480360360a081101561075357600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561079257600080fd5b8201836020820111156107a457600080fd5b803590602001918460018302840111600160201b831117156107c557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f82945050505050565b6103796004803603606081101561081c57600080fd5b506001600160a01b03813516906020810135906040013561114d565b60006001600160a01b03831661087f5760405162461bcd60e51b815260040180806020018281038252602b815260200180611cdf602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109525780601f1061092757610100808354040283529160200191610952565b820191906000526020600020905b81548152906001019060200180831161093557829003601f168201915b50505050509050919050565b815183511461099e5760405162461bcd60e51b8152600401808060200182810382526028815260200180611e7e6028913960400191505060405180910390fd5b6001600160a01b0384166109e35760405162461bcd60e51b8152600401808060200182810382526025815260200180611d886025913960400191505060405180910390fd5b6109eb6111c1565b6001600160a01b0316856001600160a01b03161480610a165750610a1685610a116111c1565b610f54565b610a515760405162461bcd60e51b8152600401808060200182810382526032815260200180611dad6032913960400191505060405180910390fd5b6000610a5b6111c1565b9050610a6b818787878787610c54565b60005b8451811015610b6c576000858281518110610a8557fe5b602002602001015190506000858381518110610a9d57fe5b60200260200101519050610b0a816040518060600160405280602a8152602001611e02602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546111c69092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610b41908261125d565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610a6e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610bf2578181015183820152602001610bda565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610c31578181015183820152602001610c19565b5050505090500194505050505060405180910390a4610c548187878787876112be565b505050505050565b60608151835114610c9e5760405162461bcd60e51b8152600401808060200182810382526029815260200180611e556029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610cb857600080fd5b50604051908082528060200260200182016040528015610ce2578160200160208202803683370190505b50905060005b8451811015610dd25760006001600160a01b0316858281518110610d0857fe5b60200260200101516001600160a01b03161415610d565760405162461bcd60e51b8152600401808060200182810382526031815260200180611d0a6031913960400191505060405180910390fd5b60016000858381518110610d6657fe5b602002602001015181526020019081526020016000206000868381518110610d8a57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054828281518110610dbf57fe5b6020908102919091010152600101610ce8565b509392505050565b610de26111c1565b6001600160a01b0316836001600160a01b03161480610e085750610e0883610a116111c1565b610e435760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b610e4e83838361153d565b505050565b610e5f848484846117ab565b50505050565b816001600160a01b0316610e776111c1565b6001600160a01b03161415610ebd5760405162461bcd60e51b8152600401808060200182810382526029815260200180611e2c6029913960400191505060405180910390fd5b8060026000610eca6111c1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f0e6111c1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610fc75760405162461bcd60e51b8152600401808060200182810382526025815260200180611d886025913960400191505060405180910390fd5b610fcf6111c1565b6001600160a01b0316856001600160a01b03161480610ff55750610ff585610a116111c1565b6110305760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b600061103a6111c1565b905061105a81878761104b886118b3565b611054886118b3565b87610c54565b6110a1836040518060600160405280602a8152602001611e02602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906111c6565b60008581526001602090815260408083206001600160a01b038b811685529252808320939093558716815220546110d8908461125d565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610c548187878787876118f7565b6111556111c1565b6001600160a01b0316836001600160a01b0316148061117b575061117b83610a116111c1565b6111b65760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b610e4e838383611a68565b335b90565b600081848411156112555760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561121a578181015183820152602001611202565b50505050905090810190601f1680156112475780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156112b7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6112d0846001600160a01b0316611b9b565b15610c5457836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561135e578181015183820152602001611346565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561139d578181015183820152602001611385565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156113d95781810151838201526020016113c1565b50505050905090810190601f1680156114065780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561142b57600080fd5b505af192505050801561145057506040513d602081101561144b57600080fd5b505160015b6114e55761145c611bdd565b8061146757506114ae565b60405162461bcd60e51b815260206004820181815283516024840152835184939192839260440191908501908083836000831561121a578181015183820152602001611202565b60405162461bcd60e51b8152600401808060200182810382526034815260200180611c836034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146115345760405162461bcd60e51b8152600401808060200182810382526028815260200180611cb76028913960400191505060405180910390fd5b50505050505050565b6001600160a01b0383166115825760405162461bcd60e51b8152600401808060200182810382526023815260200180611ddf6023913960400191505060405180910390fd5b80518251146115c25760405162461bcd60e51b8152600401808060200182810382526028815260200180611e7e6028913960400191505060405180910390fd5b60006115cc6111c1565b90506115ec81856000868660405180602001604052806000815250610c54565b60005b83518110156116ca5761168183828151811061160757fe5b6020026020010151604051806060016040528060248152602001611d3b602491396001600088868151811061163857fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546111c69092919063ffffffff16565b6001600086848151811061169157fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a1682529092529020556001016115ef565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611751578181015183820152602001611739565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611790578181015183820152602001611778565b5050505090500194505050505060405180910390a450505050565b6001600160a01b0384166117f05760405162461bcd60e51b8152600401808060200182810382526021815260200180611ea66021913960400191505060405180910390fd5b60006117fa6111c1565b905061180c8160008761104b886118b3565b60008481526001602090815260408083206001600160a01b0389168452909152902054611839908461125d565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46118ac816000878787876118f7565b5050505050565b6040805160018082528183019092526060918291906020808301908036833701905050905082816000815181106118e657fe5b602090810291909101015292915050565b611909846001600160a01b0316611b9b565b15610c5457836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611998578181015183820152602001611980565b50505050905090810190601f1680156119c55780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156119e857600080fd5b505af1925050508015611a0d57506040513d6020811015611a0857600080fd5b505160015b611a195761145c611bdd565b6001600160e01b0319811663f23a6e6160e01b146115345760405162461bcd60e51b8152600401808060200182810382526028815260200180611cb76028913960400191505060405180910390fd5b6001600160a01b038316611aad5760405162461bcd60e51b8152600401808060200182810382526023815260200180611ddf6023913960400191505060405180910390fd5b6000611ab76111c1565b9050611ae781856000611ac9876118b3565b611ad2876118b3565b60405180602001604052806000815250610c54565b611b2e82604051806060016040528060248152602001611d3b6024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906111c6565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611bcf57508115155b949350505050565b60e01c90565b600060443d1015611bed576111c3565b600481823e6308c379a0611c018251611bd7565b14611c0b576111c3565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715611c3b57505050506111c3565b82840192508251915080821115611c5557505050506111c3565b503d83016020828401011115611c6d575050506111c3565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a26469706673582212200d8ad60eaba554878afc88fbfe9304c7b1dbd5529c6e69be8ef1901c1ba489d164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","burn(address,uint256,uint256)":"0xf5298aca","burnBatch(address,uint256[],uint256[])":"0x6b20c454","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256,uint256,bytes)":"0x731133e9","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100a85760003560e01c80636b20c454116100715780636b20c454146104ee578063731133e914610621578063a22cb465146106e1578063e985e9c51461070f578063f242432a1461073d578063f5298aca14610806576100a8565b8062fdd58e146100ad57806301ffc9a7146100eb5780630e89341c146101265780632eb2c2d6146101b85780634e1273f41461037b575b600080fd5b6100d9600480360360408110156100c357600080fd5b506001600160a01b038135169060200135610838565b60408051918252519081900360200190f35b6101126004803603602081101561010157600080fd5b50356001600160e01b0319166108a7565b604080519115158252519081900360200190f35b6101436004803603602081101561013c57600080fd5b50356108c6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017d578181015183820152602001610165565b50505050905090810190601f1680156101aa5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610379600480360360a08110156101ce57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561020157600080fd5b82018360208201111561021357600080fd5b803590602001918460208302840111600160201b8311171561023457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561028357600080fd5b82018360208201111561029557600080fd5b803590602001918460208302840111600160201b831117156102b657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561030557600080fd5b82018360208201111561031757600080fd5b803590602001918460018302840111600160201b8311171561033857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061095e945050505050565b005b61049e6004803603604081101561039157600080fd5b810190602081018135600160201b8111156103ab57600080fd5b8201836020820111156103bd57600080fd5b803590602001918460208302840111600160201b831117156103de57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561042d57600080fd5b82018360208201111561043f57600080fd5b803590602001918460208302840111600160201b8311171561046057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c5c945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104da5781810151838201526020016104c2565b505050509050019250505060405180910390f35b6103796004803603606081101561050457600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561052e57600080fd5b82018360208201111561054057600080fd5b803590602001918460208302840111600160201b8311171561056157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105b057600080fd5b8201836020820111156105c257600080fd5b803590602001918460208302840111600160201b831117156105e357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610dda945050505050565b6103796004803603608081101561063757600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561066d57600080fd5b82018360208201111561067f57600080fd5b803590602001918460018302840111600160201b831117156106a057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610e53945050505050565b610379600480360360408110156106f757600080fd5b506001600160a01b0381351690602001351515610e65565b6101126004803603604081101561072557600080fd5b506001600160a01b0381358116916020013516610f54565b610379600480360360a081101561075357600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561079257600080fd5b8201836020820111156107a457600080fd5b803590602001918460018302840111600160201b831117156107c557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f82945050505050565b6103796004803603606081101561081c57600080fd5b506001600160a01b03813516906020810135906040013561114d565b60006001600160a01b03831661087f5760405162461bcd60e51b815260040180806020018281038252602b815260200180611cdf602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109525780601f1061092757610100808354040283529160200191610952565b820191906000526020600020905b81548152906001019060200180831161093557829003601f168201915b50505050509050919050565b815183511461099e5760405162461bcd60e51b8152600401808060200182810382526028815260200180611e7e6028913960400191505060405180910390fd5b6001600160a01b0384166109e35760405162461bcd60e51b8152600401808060200182810382526025815260200180611d886025913960400191505060405180910390fd5b6109eb6111c1565b6001600160a01b0316856001600160a01b03161480610a165750610a1685610a116111c1565b610f54565b610a515760405162461bcd60e51b8152600401808060200182810382526032815260200180611dad6032913960400191505060405180910390fd5b6000610a5b6111c1565b9050610a6b818787878787610c54565b60005b8451811015610b6c576000858281518110610a8557fe5b602002602001015190506000858381518110610a9d57fe5b60200260200101519050610b0a816040518060600160405280602a8152602001611e02602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546111c69092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610b41908261125d565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610a6e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610bf2578181015183820152602001610bda565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610c31578181015183820152602001610c19565b5050505090500194505050505060405180910390a4610c548187878787876112be565b505050505050565b60608151835114610c9e5760405162461bcd60e51b8152600401808060200182810382526029815260200180611e556029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610cb857600080fd5b50604051908082528060200260200182016040528015610ce2578160200160208202803683370190505b50905060005b8451811015610dd25760006001600160a01b0316858281518110610d0857fe5b60200260200101516001600160a01b03161415610d565760405162461bcd60e51b8152600401808060200182810382526031815260200180611d0a6031913960400191505060405180910390fd5b60016000858381518110610d6657fe5b602002602001015181526020019081526020016000206000868381518110610d8a57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054828281518110610dbf57fe5b6020908102919091010152600101610ce8565b509392505050565b610de26111c1565b6001600160a01b0316836001600160a01b03161480610e085750610e0883610a116111c1565b610e435760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b610e4e83838361153d565b505050565b610e5f848484846117ab565b50505050565b816001600160a01b0316610e776111c1565b6001600160a01b03161415610ebd5760405162461bcd60e51b8152600401808060200182810382526029815260200180611e2c6029913960400191505060405180910390fd5b8060026000610eca6111c1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f0e6111c1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610fc75760405162461bcd60e51b8152600401808060200182810382526025815260200180611d886025913960400191505060405180910390fd5b610fcf6111c1565b6001600160a01b0316856001600160a01b03161480610ff55750610ff585610a116111c1565b6110305760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b600061103a6111c1565b905061105a81878761104b886118b3565b611054886118b3565b87610c54565b6110a1836040518060600160405280602a8152602001611e02602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906111c6565b60008581526001602090815260408083206001600160a01b038b811685529252808320939093558716815220546110d8908461125d565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610c548187878787876118f7565b6111556111c1565b6001600160a01b0316836001600160a01b0316148061117b575061117b83610a116111c1565b6111b65760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b610e4e838383611a68565b335b90565b600081848411156112555760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561121a578181015183820152602001611202565b50505050905090810190601f1680156112475780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156112b7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6112d0846001600160a01b0316611b9b565b15610c5457836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561135e578181015183820152602001611346565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561139d578181015183820152602001611385565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156113d95781810151838201526020016113c1565b50505050905090810190601f1680156114065780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561142b57600080fd5b505af192505050801561145057506040513d602081101561144b57600080fd5b505160015b6114e55761145c611bdd565b8061146757506114ae565b60405162461bcd60e51b815260206004820181815283516024840152835184939192839260440191908501908083836000831561121a578181015183820152602001611202565b60405162461bcd60e51b8152600401808060200182810382526034815260200180611c836034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146115345760405162461bcd60e51b8152600401808060200182810382526028815260200180611cb76028913960400191505060405180910390fd5b50505050505050565b6001600160a01b0383166115825760405162461bcd60e51b8152600401808060200182810382526023815260200180611ddf6023913960400191505060405180910390fd5b80518251146115c25760405162461bcd60e51b8152600401808060200182810382526028815260200180611e7e6028913960400191505060405180910390fd5b60006115cc6111c1565b90506115ec81856000868660405180602001604052806000815250610c54565b60005b83518110156116ca5761168183828151811061160757fe5b6020026020010151604051806060016040528060248152602001611d3b602491396001600088868151811061163857fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546111c69092919063ffffffff16565b6001600086848151811061169157fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a1682529092529020556001016115ef565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611751578181015183820152602001611739565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611790578181015183820152602001611778565b5050505090500194505050505060405180910390a450505050565b6001600160a01b0384166117f05760405162461bcd60e51b8152600401808060200182810382526021815260200180611ea66021913960400191505060405180910390fd5b60006117fa6111c1565b905061180c8160008761104b886118b3565b60008481526001602090815260408083206001600160a01b0389168452909152902054611839908461125d565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46118ac816000878787876118f7565b5050505050565b6040805160018082528183019092526060918291906020808301908036833701905050905082816000815181106118e657fe5b602090810291909101015292915050565b611909846001600160a01b0316611b9b565b15610c5457836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611998578181015183820152602001611980565b50505050905090810190601f1680156119c55780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156119e857600080fd5b505af1925050508015611a0d57506040513d6020811015611a0857600080fd5b505160015b611a195761145c611bdd565b6001600160e01b0319811663f23a6e6160e01b146115345760405162461bcd60e51b8152600401808060200182810382526028815260200180611cb76028913960400191505060405180910390fd5b6001600160a01b038316611aad5760405162461bcd60e51b8152600401808060200182810382526023815260200180611ddf6023913960400191505060405180910390fd5b6000611ab76111c1565b9050611ae781856000611ac9876118b3565b611ad2876118b3565b60405180602001604052806000815250610c54565b611b2e82604051806060016040528060248152602001611d3b6024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906111c6565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611bcf57508115155b949350505050565b60e01c90565b600060443d1015611bed576111c3565b600481823e6308c379a0611c018251611bd7565b14611c0b576111c3565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715611c3b57505050506111c3565b82840192508251915080821115611c5557505050506111c3565b503d83016020828401011115611c6d575050506111c3565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a26469706673582212200d8ad60eaba554878afc88fbfe9304c7b1dbd5529c6e69be8ef1901c1ba489d164736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC1155BurnableMock.sol","sourcemap":"106:238:28:-:0;;;160:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;160:54:28;;;;;;;;;;-1:-1:-1;160:54:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;160:54:28;;-1:-1:-1;206:3:28;;-1:-1:-1;751:40:10;;-1:-1:-1;;;;751:18:10;:40::i;:::-;2013:12:76;2021:3;2013:7;:12::i;:::-;2114:41;-1:-1:-1;;;2114:18:76;:41::i;:::-;2255:54;-1:-1:-1;;;2255:18:76;:54::i;:::-;1964:352;160:54:28;106:238;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;7585:86:76:-;7651:13;;;;:4;;:13;;;;;:::i;:::-;;7585:86;:::o;106:238:28:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;106:238:28;;;-1:-1:-1;106:238:28;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155Holder":{"abi":[{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155Holder","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506100216301ffc9a760e01b610036565b610031630271189760e51b610036565b6100ba565b6001600160e01b03198082161415610095576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b61039f806100c96000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063bc197c8114610081578063f23a6e611461025f575b600080fd5b61006d6004803603602081101561005c57600080fd5b50356001600160e01b031916610328565b604080519115158252519081900360200190f35b610242600480360360a081101561009757600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156100ca57600080fd5b8201836020820111156100dc57600080fd5b803590602001918460208302840111600160201b831117156100fd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561014c57600080fd5b82018360208201111561015e57600080fd5b803590602001918460208302840111600160201b8311171561017f57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156101ce57600080fd5b8201836020820111156101e057600080fd5b803590602001918460018302840111600160201b8311171561020157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610347945050505050565b604080516001600160e01b03199092168252519081900360200190f35b610242600480360360a081101561027557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b8111156102b457600080fd5b8201836020820111156102c657600080fd5b803590602001918460018302840111600160201b831117156102e757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610358945050505050565b6001600160e01b03191660009081526020819052604090205460ff1690565b63bc197c8160e01b95945050505050565b63f23a6e6160e01b9594505050505056fea26469706673582212201ed765e6a1deab3d2a7c3c57cee7fdbc8e479b86324fdfaa42bdc57ab3ec163d64736f6c634300060c0033"},"devdoc":{"details":"_Available since v3.1._","kind":"dev","methods":{"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":"0xbc197c81","onERC1155Received(address,address,uint256,uint256,bytes)":"0xf23a6e61","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063bc197c8114610081578063f23a6e611461025f575b600080fd5b61006d6004803603602081101561005c57600080fd5b50356001600160e01b031916610328565b604080519115158252519081900360200190f35b610242600480360360a081101561009757600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156100ca57600080fd5b8201836020820111156100dc57600080fd5b803590602001918460208302840111600160201b831117156100fd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561014c57600080fd5b82018360208201111561015e57600080fd5b803590602001918460208302840111600160201b8311171561017f57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156101ce57600080fd5b8201836020820111156101e057600080fd5b803590602001918460018302840111600160201b8311171561020157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610347945050505050565b604080516001600160e01b03199092168252519081900360200190f35b610242600480360360a081101561027557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b8111156102b457600080fd5b8201836020820111156102c657600080fd5b803590602001918460018302840111600160201b831117156102e757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610358945050505050565b6001600160e01b03191660009081526020819052604090205460ff1690565b63bc197c8160e01b95945050505050565b63f23a6e6160e01b9594505050505056fea26469706673582212201ed765e6a1deab3d2a7c3c57cee7fdbc8e479b86324fdfaa42bdc57ab3ec163d64736f6c634300060c0033"},"sourceId":"contracts/token/ERC1155/ERC1155Holder.sol","sourcemap":"131:430:78:-:0;;;;;;;;;;;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;272:152:80;-1:-1:-1;;;272:18:80;:152::i;:::-;131:430:78;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;131:430:78:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155Mock":{"abi":[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155Mock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200263f3803806200263f833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052508291506200010290506301ffc9a760e01b62000139565b6200010d81620001be565b6200011f636cdb3d1360e11b62000139565b620001316303a24d0760e21b62000139565b505062000273565b6001600160e01b0319808216141562000199576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001d3906003906020840190620001d7565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200021a57805160ff19168380011785556200024a565b828001600101855582156200024a579182015b828111156200024a5782518255916020019190600101906200022d565b50620002589291506200025c565b5090565b5b808211156200025857600081556001016200025d565b6123bc80620002836000396000f3fe608060405234801561001057600080fd5b50600436106100ce5760003560e01c80634e1273f41161008c578063a22cb46511610066578063a22cb46514610963578063e985e9c514610991578063f242432a146109bf578063f5298aca14610a88576100ce565b80634e1273f4146105fd5780636b20c45414610770578063731133e9146108a3576100ce565b8062fdd58e146100d357806301ffc9a71461011157806302fe53051461014c5780630e89341c146101f25780631f7fdffa146102845780632eb2c2d61461043c575b600080fd5b6100ff600480360360408110156100e957600080fd5b506001600160a01b038135169060200135610aba565b60408051918252519081900360200190f35b6101386004803603602081101561012757600080fd5b50356001600160e01b031916610b29565b604080519115158252519081900360200190f35b6101f06004803603602081101561016257600080fd5b810190602081018135600160201b81111561017c57600080fd5b82018360208201111561018e57600080fd5b803590602001918460018302840111600160201b831117156101af57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b48945050505050565b005b61020f6004803603602081101561020857600080fd5b5035610b54565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610249578181015183820152602001610231565b50505050905090810190601f1680156102765780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101f06004803603608081101561029a57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102c457600080fd5b8201836020820111156102d657600080fd5b803590602001918460208302840111600160201b831117156102f757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561034657600080fd5b82018360208201111561035857600080fd5b803590602001918460208302840111600160201b8311171561037957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103c857600080fd5b8201836020820111156103da57600080fd5b803590602001918460018302840111600160201b831117156103fb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bec945050505050565b6101f0600480360360a081101561045257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561048557600080fd5b82018360208201111561049757600080fd5b803590602001918460208302840111600160201b831117156104b857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561050757600080fd5b82018360208201111561051957600080fd5b803590602001918460208302840111600160201b8311171561053a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561058957600080fd5b82018360208201111561059b57600080fd5b803590602001918460018302840111600160201b831117156105bc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bfe945050505050565b6107206004803603604081101561061357600080fd5b810190602081018135600160201b81111561062d57600080fd5b82018360208201111561063f57600080fd5b803590602001918460208302840111600160201b8311171561066057600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106af57600080fd5b8201836020820111156106c157600080fd5b803590602001918460208302840111600160201b831117156106e257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610efc945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561075c578181015183820152602001610744565b505050509050019250505060405180910390f35b6101f06004803603606081101561078657600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156107b057600080fd5b8201836020820111156107c257600080fd5b803590602001918460208302840111600160201b831117156107e357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561083257600080fd5b82018360208201111561084457600080fd5b803590602001918460208302840111600160201b8311171561086557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061107a945050505050565b6101f0600480360360808110156108b957600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b8111156108ef57600080fd5b82018360208201111561090157600080fd5b803590602001918460018302840111600160201b8311171561092257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061108a945050505050565b6101f06004803603604081101561097957600080fd5b506001600160a01b0381351690602001351515611096565b610138600480360360408110156109a757600080fd5b506001600160a01b0381358116916020013516611185565b6101f0600480360360a08110156109d557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a1457600080fd5b820183602082011115610a2657600080fd5b803590602001918460018302840111600160201b83111715610a4757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506111b3945050505050565b6101f060048036036060811015610a9e57600080fd5b506001600160a01b03813516906020810135906040013561137e565b60006001600160a01b038316610b015760405162461bcd60e51b815260040180806020018281038252602b81526020018061219f602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b610b5181611389565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610be05780601f10610bb557610100808354040283529160200191610be0565b820191906000526020600020905b815481529060010190602001808311610bc357829003601f168201915b50505050509050919050565b610bf8848484846113a0565b50505050565b8151835114610c3e5760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b6001600160a01b038416610c835760405162461bcd60e51b81526004018080602001828103825260258152602001806122486025913960400191505060405180910390fd5b610c8b6115f5565b6001600160a01b0316856001600160a01b03161480610cb65750610cb685610cb16115f5565b611185565b610cf15760405162461bcd60e51b815260040180806020018281038252603281526020018061226d6032913960400191505060405180910390fd5b6000610cfb6115f5565b9050610d0b818787878787610ef4565b60005b8451811015610e0c576000858281518110610d2557fe5b602002602001015190506000858381518110610d3d57fe5b60200260200101519050610daa816040518060600160405280602a81526020016122c2602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546115fa9092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610de19082611691565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610d0e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610e92578181015183820152602001610e7a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610ed1578181015183820152602001610eb9565b5050505090500194505050505060405180910390a4610ef48187878787876116f2565b505050505050565b60608151835114610f3e5760405162461bcd60e51b81526004018080602001828103825260298152602001806123156029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610f5857600080fd5b50604051908082528060200260200182016040528015610f82578160200160208202803683370190505b50905060005b84518110156110725760006001600160a01b0316858281518110610fa857fe5b60200260200101516001600160a01b03161415610ff65760405162461bcd60e51b81526004018080602001828103825260318152602001806121ca6031913960400191505060405180910390fd5b6001600085838151811061100657fe5b60200260200101518152602001908152602001600020600086838151811061102a57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061105f57fe5b6020908102919091010152600101610f88565b509392505050565b611085838383611971565b505050565b610bf884848484611bdf565b816001600160a01b03166110a86115f5565b6001600160a01b031614156110ee5760405162461bcd60e51b81526004018080602001828103825260298152602001806122ec6029913960400191505060405180910390fd5b80600260006110fb6115f5565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561113f6115f5565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166111f85760405162461bcd60e51b81526004018080602001828103825260258152602001806122486025913960400191505060405180910390fd5b6112006115f5565b6001600160a01b0316856001600160a01b03161480611226575061122685610cb16115f5565b6112615760405162461bcd60e51b815260040180806020018281038252602981526020018061221f6029913960400191505060405180910390fd5b600061126b6115f5565b905061128b81878761127c88611ce0565b61128588611ce0565b87610ef4565b6112d2836040518060600160405280602a81526020016122c2602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906115fa565b60008581526001602090815260408083206001600160a01b038b811685529252808320939093558716815220546113099084611691565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610ef4818787878787611d24565b611085838383611e95565b805161139c906003906020840190612004565b5050565b6001600160a01b0384166113e55760405162461bcd60e51b81526004018080602001828103825260218152602001806123666021913960400191505060405180910390fd5b81518351146114255760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b600061142f6115f5565b905061144081600087878787610ef4565b60005b8451811015611504576114bb6001600087848151811061145f57fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020548583815181106114a557fe5b602002602001015161169190919063ffffffff16565b600160008784815181106114cb57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b168252909252902055600101611443565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561158b578181015183820152602001611573565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156115ca5781810151838201526020016115b2565b5050505090500194505050505060405180910390a46115ee816000878787876116f2565b5050505050565b335b90565b600081848411156116895760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561164e578181015183820152602001611636565b50505050905090810190601f16801561167b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156116eb576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611704846001600160a01b0316611fc8565b15610ef457836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561179257818101518382015260200161177a565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156117d15781810151838201526020016117b9565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561180d5781810151838201526020016117f5565b50505050905090810190601f16801561183a5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561185f57600080fd5b505af192505050801561188457506040513d602081101561187f57600080fd5b505160015b6119195761189061209d565b8061189b57506118e2565b60405162461bcd60e51b815260206004820181815283516024840152835184939192839260440191908501908083836000831561164e578181015183820152602001611636565b60405162461bcd60e51b81526004018080602001828103825260348152602001806121436034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146119685760405162461bcd60e51b81526004018080602001828103825260288152602001806121776028913960400191505060405180910390fd5b50505050505050565b6001600160a01b0383166119b65760405162461bcd60e51b815260040180806020018281038252602381526020018061229f6023913960400191505060405180910390fd5b80518251146119f65760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b6000611a006115f5565b9050611a2081856000868660405180602001604052806000815250610ef4565b60005b8351811015611afe57611ab5838281518110611a3b57fe5b60200260200101516040518060600160405280602481526020016121fb6024913960016000888681518110611a6c57fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546115fa9092919063ffffffff16565b60016000868481518110611ac557fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a168252909252902055600101611a23565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611b85578181015183820152602001611b6d565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611bc4578181015183820152602001611bac565b5050505090500194505050505060405180910390a450505050565b6001600160a01b038416611c245760405162461bcd60e51b81526004018080602001828103825260218152602001806123666021913960400191505060405180910390fd5b6000611c2e6115f5565b9050611c408160008761127c88611ce0565b60008481526001602090815260408083206001600160a01b0389168452909152902054611c6d9084611691565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46115ee81600087878787611d24565b604080516001808252818301909252606091829190602080830190803683370190505090508281600081518110611d1357fe5b602090810291909101015292915050565b611d36846001600160a01b0316611fc8565b15610ef457836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611dc5578181015183820152602001611dad565b50505050905090810190601f168015611df25780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015611e1557600080fd5b505af1925050508015611e3a57506040513d6020811015611e3557600080fd5b505160015b611e465761189061209d565b6001600160e01b0319811663f23a6e6160e01b146119685760405162461bcd60e51b81526004018080602001828103825260288152602001806121776028913960400191505060405180910390fd5b6001600160a01b038316611eda5760405162461bcd60e51b815260040180806020018281038252602381526020018061229f6023913960400191505060405180910390fd5b6000611ee46115f5565b9050611f1481856000611ef687611ce0565b611eff87611ce0565b60405180602001604052806000815250610ef4565b611f5b826040518060600160405280602481526020016121fb6024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906115fa565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611ffc57508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061204557805160ff1916838001178555612072565b82800160010185558215612072579182015b82811115612072578251825591602001919060010190612057565b5061207e929150612082565b5090565b5b8082111561207e5760008155600101612083565b60e01c90565b600060443d10156120ad576115f7565b600481823e6308c379a06120c18251612097565b146120cb576115f7565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156120fb57505050506115f7565b8284019250825191508082111561211557505050506115f7565b503d8301602082840101111561212d575050506115f7565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a2646970667358221220e40435beb9e8504d4b2b9f94ed177f51b51a17402769749ca776021f018119f764736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"title":"ERC1155Mock This mock just publicizes internal functions for testing purposes","version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","burn(address,uint256,uint256)":"0xf5298aca","burnBatch(address,uint256[],uint256[])":"0x6b20c454","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256,uint256,bytes)":"0x731133e9","mintBatch(address,uint256[],uint256[],bytes)":"0x1f7fdffa","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","setURI(string)":"0x02fe5305","supportsInterface(bytes4)":"0x01ffc9a7","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100ce5760003560e01c80634e1273f41161008c578063a22cb46511610066578063a22cb46514610963578063e985e9c514610991578063f242432a146109bf578063f5298aca14610a88576100ce565b80634e1273f4146105fd5780636b20c45414610770578063731133e9146108a3576100ce565b8062fdd58e146100d357806301ffc9a71461011157806302fe53051461014c5780630e89341c146101f25780631f7fdffa146102845780632eb2c2d61461043c575b600080fd5b6100ff600480360360408110156100e957600080fd5b506001600160a01b038135169060200135610aba565b60408051918252519081900360200190f35b6101386004803603602081101561012757600080fd5b50356001600160e01b031916610b29565b604080519115158252519081900360200190f35b6101f06004803603602081101561016257600080fd5b810190602081018135600160201b81111561017c57600080fd5b82018360208201111561018e57600080fd5b803590602001918460018302840111600160201b831117156101af57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b48945050505050565b005b61020f6004803603602081101561020857600080fd5b5035610b54565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610249578181015183820152602001610231565b50505050905090810190601f1680156102765780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101f06004803603608081101561029a57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102c457600080fd5b8201836020820111156102d657600080fd5b803590602001918460208302840111600160201b831117156102f757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561034657600080fd5b82018360208201111561035857600080fd5b803590602001918460208302840111600160201b8311171561037957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103c857600080fd5b8201836020820111156103da57600080fd5b803590602001918460018302840111600160201b831117156103fb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bec945050505050565b6101f0600480360360a081101561045257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561048557600080fd5b82018360208201111561049757600080fd5b803590602001918460208302840111600160201b831117156104b857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561050757600080fd5b82018360208201111561051957600080fd5b803590602001918460208302840111600160201b8311171561053a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561058957600080fd5b82018360208201111561059b57600080fd5b803590602001918460018302840111600160201b831117156105bc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bfe945050505050565b6107206004803603604081101561061357600080fd5b810190602081018135600160201b81111561062d57600080fd5b82018360208201111561063f57600080fd5b803590602001918460208302840111600160201b8311171561066057600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106af57600080fd5b8201836020820111156106c157600080fd5b803590602001918460208302840111600160201b831117156106e257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610efc945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561075c578181015183820152602001610744565b505050509050019250505060405180910390f35b6101f06004803603606081101561078657600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156107b057600080fd5b8201836020820111156107c257600080fd5b803590602001918460208302840111600160201b831117156107e357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561083257600080fd5b82018360208201111561084457600080fd5b803590602001918460208302840111600160201b8311171561086557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061107a945050505050565b6101f0600480360360808110156108b957600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b8111156108ef57600080fd5b82018360208201111561090157600080fd5b803590602001918460018302840111600160201b8311171561092257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061108a945050505050565b6101f06004803603604081101561097957600080fd5b506001600160a01b0381351690602001351515611096565b610138600480360360408110156109a757600080fd5b506001600160a01b0381358116916020013516611185565b6101f0600480360360a08110156109d557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a1457600080fd5b820183602082011115610a2657600080fd5b803590602001918460018302840111600160201b83111715610a4757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506111b3945050505050565b6101f060048036036060811015610a9e57600080fd5b506001600160a01b03813516906020810135906040013561137e565b60006001600160a01b038316610b015760405162461bcd60e51b815260040180806020018281038252602b81526020018061219f602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b610b5181611389565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610be05780601f10610bb557610100808354040283529160200191610be0565b820191906000526020600020905b815481529060010190602001808311610bc357829003601f168201915b50505050509050919050565b610bf8848484846113a0565b50505050565b8151835114610c3e5760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b6001600160a01b038416610c835760405162461bcd60e51b81526004018080602001828103825260258152602001806122486025913960400191505060405180910390fd5b610c8b6115f5565b6001600160a01b0316856001600160a01b03161480610cb65750610cb685610cb16115f5565b611185565b610cf15760405162461bcd60e51b815260040180806020018281038252603281526020018061226d6032913960400191505060405180910390fd5b6000610cfb6115f5565b9050610d0b818787878787610ef4565b60005b8451811015610e0c576000858281518110610d2557fe5b602002602001015190506000858381518110610d3d57fe5b60200260200101519050610daa816040518060600160405280602a81526020016122c2602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546115fa9092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610de19082611691565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610d0e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610e92578181015183820152602001610e7a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610ed1578181015183820152602001610eb9565b5050505090500194505050505060405180910390a4610ef48187878787876116f2565b505050505050565b60608151835114610f3e5760405162461bcd60e51b81526004018080602001828103825260298152602001806123156029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610f5857600080fd5b50604051908082528060200260200182016040528015610f82578160200160208202803683370190505b50905060005b84518110156110725760006001600160a01b0316858281518110610fa857fe5b60200260200101516001600160a01b03161415610ff65760405162461bcd60e51b81526004018080602001828103825260318152602001806121ca6031913960400191505060405180910390fd5b6001600085838151811061100657fe5b60200260200101518152602001908152602001600020600086838151811061102a57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061105f57fe5b6020908102919091010152600101610f88565b509392505050565b611085838383611971565b505050565b610bf884848484611bdf565b816001600160a01b03166110a86115f5565b6001600160a01b031614156110ee5760405162461bcd60e51b81526004018080602001828103825260298152602001806122ec6029913960400191505060405180910390fd5b80600260006110fb6115f5565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561113f6115f5565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166111f85760405162461bcd60e51b81526004018080602001828103825260258152602001806122486025913960400191505060405180910390fd5b6112006115f5565b6001600160a01b0316856001600160a01b03161480611226575061122685610cb16115f5565b6112615760405162461bcd60e51b815260040180806020018281038252602981526020018061221f6029913960400191505060405180910390fd5b600061126b6115f5565b905061128b81878761127c88611ce0565b61128588611ce0565b87610ef4565b6112d2836040518060600160405280602a81526020016122c2602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906115fa565b60008581526001602090815260408083206001600160a01b038b811685529252808320939093558716815220546113099084611691565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610ef4818787878787611d24565b611085838383611e95565b805161139c906003906020840190612004565b5050565b6001600160a01b0384166113e55760405162461bcd60e51b81526004018080602001828103825260218152602001806123666021913960400191505060405180910390fd5b81518351146114255760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b600061142f6115f5565b905061144081600087878787610ef4565b60005b8451811015611504576114bb6001600087848151811061145f57fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020548583815181106114a557fe5b602002602001015161169190919063ffffffff16565b600160008784815181106114cb57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b168252909252902055600101611443565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561158b578181015183820152602001611573565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156115ca5781810151838201526020016115b2565b5050505090500194505050505060405180910390a46115ee816000878787876116f2565b5050505050565b335b90565b600081848411156116895760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561164e578181015183820152602001611636565b50505050905090810190601f16801561167b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156116eb576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611704846001600160a01b0316611fc8565b15610ef457836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561179257818101518382015260200161177a565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156117d15781810151838201526020016117b9565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561180d5781810151838201526020016117f5565b50505050905090810190601f16801561183a5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561185f57600080fd5b505af192505050801561188457506040513d602081101561187f57600080fd5b505160015b6119195761189061209d565b8061189b57506118e2565b60405162461bcd60e51b815260206004820181815283516024840152835184939192839260440191908501908083836000831561164e578181015183820152602001611636565b60405162461bcd60e51b81526004018080602001828103825260348152602001806121436034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146119685760405162461bcd60e51b81526004018080602001828103825260288152602001806121776028913960400191505060405180910390fd5b50505050505050565b6001600160a01b0383166119b65760405162461bcd60e51b815260040180806020018281038252602381526020018061229f6023913960400191505060405180910390fd5b80518251146119f65760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b6000611a006115f5565b9050611a2081856000868660405180602001604052806000815250610ef4565b60005b8351811015611afe57611ab5838281518110611a3b57fe5b60200260200101516040518060600160405280602481526020016121fb6024913960016000888681518110611a6c57fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546115fa9092919063ffffffff16565b60016000868481518110611ac557fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a168252909252902055600101611a23565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611b85578181015183820152602001611b6d565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611bc4578181015183820152602001611bac565b5050505090500194505050505060405180910390a450505050565b6001600160a01b038416611c245760405162461bcd60e51b81526004018080602001828103825260218152602001806123666021913960400191505060405180910390fd5b6000611c2e6115f5565b9050611c408160008761127c88611ce0565b60008481526001602090815260408083206001600160a01b0389168452909152902054611c6d9084611691565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46115ee81600087878787611d24565b604080516001808252818301909252606091829190602080830190803683370190505090508281600081518110611d1357fe5b602090810291909101015292915050565b611d36846001600160a01b0316611fc8565b15610ef457836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611dc5578181015183820152602001611dad565b50505050905090810190601f168015611df25780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015611e1557600080fd5b505af1925050508015611e3a57506040513d6020811015611e3557600080fd5b505160015b611e465761189061209d565b6001600160e01b0319811663f23a6e6160e01b146119685760405162461bcd60e51b81526004018080602001828103825260288152602001806121776028913960400191505060405180910390fd5b6001600160a01b038316611eda5760405162461bcd60e51b815260040180806020018281038252602381526020018061229f6023913960400191505060405180910390fd5b6000611ee46115f5565b9050611f1481856000611ef687611ce0565b611eff87611ce0565b60405180602001604052806000815250610ef4565b611f5b826040518060600160405280602481526020016121fb6024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906115fa565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611ffc57508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061204557805160ff1916838001178555612072565b82800160010185558215612072579182015b82811115612072578251825591602001919060010190612057565b5061207e929150612082565b5090565b5b8082111561207e5760008155600101612083565b60e01c90565b600060443d10156120ad576115f7565b600481823e6308c379a06120c18251612097565b146120cb576115f7565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156120fb57505050506115f7565b8284019250825191508082111561211557505050506115f7565b503d8301602082840101111561212d575050506115f7565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a2646970667358221220e40435beb9e8504d4b2b9f94ed177f51b51a17402769749ca776021f018119f764736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC1155Mock.sol","sourcemap":"197:777:29:-:0;;;235:116;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;235:116:29;;;;;;;;;;-1:-1:-1;235:116:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;235:116:29;;-1:-1:-1;282:3:29;;-1:-1:-1;751:40:10;;-1:-1:-1;;;;751:18:10;:40::i;:::-;2013:12:76;2021:3;2013:7;:12::i;:::-;2114:41;-1:-1:-1;;;2114:18:76;:41::i;:::-;2255:54;-1:-1:-1;;;2255:18:76;:54::i;:::-;1964:352;235:116:29;197:777;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;7585:86:76:-;7651:13;;;;:4;;:13;;;;;:::i;:::-;;7585:86;:::o;197:777:29:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;197:777:29;;;-1:-1:-1;197:777:29;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155Pausable":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155Pausable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"ERC1155 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug. _Available since v3.1._","kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","isApprovedForAll(address,address)":"0xe985e9c5","paused()":"0x5c975abb","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC1155/ERC1155Pausable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155PausableMock":{"abi":[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155PausableMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200285a3803806200285a833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b5060405250829150819050620001036301ffc9a760e01b62000145565b6200010e81620001ca565b62000120636cdb3d1360e11b62000145565b620001326303a24d0760e21b62000145565b50506004805460ff19169055506200027f565b6001600160e01b03198082161415620001a5576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001df906003906020840190620001e3565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200022657805160ff191683800117855562000256565b8280016001018555821562000256579182015b828111156200025657825182559160200191906001019062000239565b506200026492915062000268565b5090565b5b8082111562000264576000815560010162000269565b6125cb806200028f6000396000f3fe608060405234801561001057600080fd5b50600436106100ff5760003560e01c80635c975abb11610097578063a22cb46511610066578063a22cb465146109ac578063e985e9c5146109da578063f242432a14610a08578063f5298aca14610ad1576100ff565b80635c975abb146107a95780636b20c454146107b1578063731133e9146108e45780638456cb59146109a4576100ff565b80631f7fdffa116100d35780631f7fdffa146102b55780632eb2c2d61461046d5780633f4ba83a1461062e5780634e1273f414610636576100ff565b8062fdd58e1461010457806301ffc9a71461014257806302fe53051461017d5780630e89341c14610223575b600080fd5b6101306004803603604081101561011a57600080fd5b506001600160a01b038135169060200135610b03565b60408051918252519081900360200190f35b6101696004803603602081101561015857600080fd5b50356001600160e01b031916610b72565b604080519115158252519081900360200190f35b6102216004803603602081101561019357600080fd5b810190602081018135600160201b8111156101ad57600080fd5b8201836020820111156101bf57600080fd5b803590602001918460018302840111600160201b831117156101e057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b91945050505050565b005b6102406004803603602081101561023957600080fd5b5035610b9d565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027a578181015183820152602001610262565b50505050905090810190601f1680156102a75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610221600480360360808110156102cb57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102f557600080fd5b82018360208201111561030757600080fd5b803590602001918460208302840111600160201b8311171561032857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561037757600080fd5b82018360208201111561038957600080fd5b803590602001918460208302840111600160201b831117156103aa57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103f957600080fd5b82018360208201111561040b57600080fd5b803590602001918460018302840111600160201b8311171561042c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c35945050505050565b610221600480360360a081101561048357600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104b657600080fd5b8201836020820111156104c857600080fd5b803590602001918460208302840111600160201b831117156104e957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561053857600080fd5b82018360208201111561054a57600080fd5b803590602001918460208302840111600160201b8311171561056b57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105ba57600080fd5b8201836020820111156105cc57600080fd5b803590602001918460018302840111600160201b831117156105ed57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c47945050505050565b610221610f45565b6107596004803603604081101561064c57600080fd5b810190602081018135600160201b81111561066657600080fd5b82018360208201111561067857600080fd5b803590602001918460208302840111600160201b8311171561069957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106e857600080fd5b8201836020820111156106fa57600080fd5b803590602001918460208302840111600160201b8311171561071b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610f4f945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561079557818101518382015260200161077d565b505050509050019250505060405180910390f35b6101696110cd565b610221600480360360608110156107c757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156107f157600080fd5b82018360208201111561080357600080fd5b803590602001918460208302840111600160201b8311171561082457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561087357600080fd5b82018360208201111561088557600080fd5b803590602001918460208302840111600160201b831117156108a657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506110d7945050505050565b610221600480360360808110156108fa57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561093057600080fd5b82018360208201111561094257600080fd5b803590602001918460018302840111600160201b8311171561096357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506110e7945050505050565b6102216110f3565b610221600480360360408110156109c257600080fd5b506001600160a01b03813516906020013515156110fb565b610169600480360360408110156109f057600080fd5b506001600160a01b03813581169160200135166111ea565b610221600480360360a0811015610a1e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a5d57600080fd5b820183602082011115610a6f57600080fd5b803590602001918460018302840111600160201b83111715610a9057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611218945050505050565b61022160048036036060811015610ae757600080fd5b506001600160a01b0381351690602081013590604001356113e3565b60006001600160a01b038316610b4a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612382602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b610b9a816113ee565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c295780601f10610bfe57610100808354040283529160200191610c29565b820191906000526020600020905b815481529060010190602001808311610c0c57829003601f168201915b50505050509050919050565b610c4184848484611405565b50505050565b8151835114610c875760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b6001600160a01b038416610ccc5760405162461bcd60e51b81526004018080602001828103825260258152602001806124576025913960400191505060405180910390fd5b610cd461165a565b6001600160a01b0316856001600160a01b03161480610cff5750610cff85610cfa61165a565b6111ea565b610d3a5760405162461bcd60e51b815260040180806020018281038252603281526020018061247c6032913960400191505060405180910390fd5b6000610d4461165a565b9050610d5481878787878761165e565b60005b8451811015610e55576000858281518110610d6e57fe5b602002602001015190506000858381518110610d8657fe5b60200260200101519050610df3816040518060600160405280602a81526020016124d1602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000205461166c9092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610e2a9082611703565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610d57565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610edb578181015183820152602001610ec3565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610f1a578181015183820152602001610f02565b5050505090500194505050505060405180910390a4610f3d818787878787611764565b505050505050565b610f4d6119e3565b565b60608151835114610f915760405162461bcd60e51b81526004018080602001828103825260298152602001806125246029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610fab57600080fd5b50604051908082528060200260200182016040528015610fd5578160200160208202803683370190505b50905060005b84518110156110c55760006001600160a01b0316858281518110610ffb57fe5b60200260200101516001600160a01b031614156110495760405162461bcd60e51b81526004018080602001828103825260318152602001806123ad6031913960400191505060405180910390fd5b6001600085838151811061105957fe5b60200260200101518152602001908152602001600020600086838151811061107d57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106110b257fe5b6020908102919091010152600101610fdb565b509392505050565b60045460ff165b90565b6110e2838383611a81565b505050565b610c4184848484611cef565b610f4d611df0565b816001600160a01b031661110d61165a565b6001600160a01b031614156111535760405162461bcd60e51b81526004018080602001828103825260298152602001806124fb6029913960400191505060405180910390fd5b806002600061116061165a565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556111a461165a565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b03841661125d5760405162461bcd60e51b81526004018080602001828103825260258152602001806124576025913960400191505060405180910390fd5b61126561165a565b6001600160a01b0316856001600160a01b0316148061128b575061128b85610cfa61165a565b6112c65760405162461bcd60e51b815260040180806020018281038252602981526020018061242e6029913960400191505060405180910390fd5b60006112d061165a565b90506112f08187876112e188611e71565b6112ea88611e71565b8761165e565b611337836040518060600160405280602a81526020016124d1602a913960008781526001602090815260408083206001600160a01b038d168452909152902054919061166c565b60008581526001602090815260408083206001600160a01b038b8116855292528083209390935587168152205461136e9084611703565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610f3d818787878787611eb5565b6110e2838383612026565b80516114019060039060208401906121e7565b5050565b6001600160a01b03841661144a5760405162461bcd60e51b81526004018080602001828103825260218152602001806125756021913960400191505060405180910390fd5b815183511461148a5760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b600061149461165a565b90506114a58160008787878761165e565b60005b845181101561156957611520600160008784815181106114c457fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205485838151811061150a57fe5b602002602001015161170390919063ffffffff16565b6001600087848151811061153057fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b1682529092529020556001016114a8565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156115f05781810151838201526020016115d8565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561162f578181015183820152602001611617565b5050505090500194505050505060405180910390a461165381600087878787611764565b5050505050565b3390565b610f3d868686868686612159565b600081848411156116fb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116c05781810151838201526020016116a8565b50505050905090810190601f1680156116ed5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561175d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611776846001600160a01b03166121ab565b15610f3d57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156118045781810151838201526020016117ec565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561184357818101518382015260200161182b565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561187f578181015183820152602001611867565b50505050905090810190601f1680156118ac5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156118d157600080fd5b505af19250505080156118f657506040513d60208110156118f157600080fd5b505160015b61198b57611902612280565b8061190d5750611954565b60405162461bcd60e51b81526020600482018181528351602484015283518493919283926044019190850190808383600083156116c05781810151838201526020016116a8565b60405162461bcd60e51b81526004018080602001828103825260348152602001806123266034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146119da5760405162461bcd60e51b815260040180806020018281038252602881526020018061235a6028913960400191505060405180910390fd5b50505050505050565b60045460ff16611a31576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611a6461165a565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038316611ac65760405162461bcd60e51b81526004018080602001828103825260238152602001806124ae6023913960400191505060405180910390fd5b8051825114611b065760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b6000611b1061165a565b9050611b308185600086866040518060200160405280600081525061165e565b60005b8351811015611c0e57611bc5838281518110611b4b57fe5b60200260200101516040518060600160405280602481526020016123de6024913960016000888681518110611b7c57fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b031681526020019081526020016000205461166c9092919063ffffffff16565b60016000868481518110611bd557fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a168252909252902055600101611b33565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611c95578181015183820152602001611c7d565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611cd4578181015183820152602001611cbc565b5050505090500194505050505060405180910390a450505050565b6001600160a01b038416611d345760405162461bcd60e51b81526004018080602001828103825260218152602001806125756021913960400191505060405180910390fd5b6000611d3e61165a565b9050611d50816000876112e188611e71565b60008481526001602090815260408083206001600160a01b0389168452909152902054611d7d9084611703565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a461165381600087878787611eb5565b60045460ff1615611e3b576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a6461165a565b604080516001808252818301909252606091829190602080830190803683370190505090508281600081518110611ea457fe5b602090810291909101015292915050565b611ec7846001600160a01b03166121ab565b15610f3d57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611f56578181015183820152602001611f3e565b50505050905090810190601f168015611f835780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015611fa657600080fd5b505af1925050508015611fcb57506040513d6020811015611fc657600080fd5b505160015b611fd757611902612280565b6001600160e01b0319811663f23a6e6160e01b146119da5760405162461bcd60e51b815260040180806020018281038252602881526020018061235a6028913960400191505060405180910390fd5b6001600160a01b03831661206b5760405162461bcd60e51b81526004018080602001828103825260238152602001806124ae6023913960400191505060405180910390fd5b600061207561165a565b90506120a58185600061208787611e71565b61209087611e71565b6040518060200160405280600081525061165e565b6120ec826040518060600160405280602481526020016123de6024913960008681526001602090815260408083206001600160a01b038b168452909152902054919061166c565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b612167868686868686610f3d565b61216f6110cd565b15610f3d5760405162461bcd60e51b815260040180806020018281038252602c815260200180612402602c913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906121df57508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061222857805160ff1916838001178555612255565b82800160010185558215612255579182015b8281111561225557825182559160200191906001019061223a565b50612261929150612265565b5090565b5b808211156122615760008155600101612266565b60e01c90565b600060443d1015612290576110d4565b600481823e6308c379a06122a4825161227a565b146122ae576110d4565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156122de57505050506110d4565b828401925082519150808211156122f857505050506110d4565b503d83016020828401011115612310575050506110d4565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a2646970667358221220228ebe9a4f00db0abfb11859189c46710465b51614712765fbd1f9376134ae7664736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","burn(address,uint256,uint256)":"0xf5298aca","burnBatch(address,uint256[],uint256[])":"0x6b20c454","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256,uint256,bytes)":"0x731133e9","mintBatch(address,uint256[],uint256[],bytes)":"0x1f7fdffa","pause()":"0x8456cb59","paused()":"0x5c975abb","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","setURI(string)":"0x02fe5305","supportsInterface(bytes4)":"0x01ffc9a7","unpause()":"0x3f4ba83a","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100ff5760003560e01c80635c975abb11610097578063a22cb46511610066578063a22cb465146109ac578063e985e9c5146109da578063f242432a14610a08578063f5298aca14610ad1576100ff565b80635c975abb146107a95780636b20c454146107b1578063731133e9146108e45780638456cb59146109a4576100ff565b80631f7fdffa116100d35780631f7fdffa146102b55780632eb2c2d61461046d5780633f4ba83a1461062e5780634e1273f414610636576100ff565b8062fdd58e1461010457806301ffc9a71461014257806302fe53051461017d5780630e89341c14610223575b600080fd5b6101306004803603604081101561011a57600080fd5b506001600160a01b038135169060200135610b03565b60408051918252519081900360200190f35b6101696004803603602081101561015857600080fd5b50356001600160e01b031916610b72565b604080519115158252519081900360200190f35b6102216004803603602081101561019357600080fd5b810190602081018135600160201b8111156101ad57600080fd5b8201836020820111156101bf57600080fd5b803590602001918460018302840111600160201b831117156101e057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b91945050505050565b005b6102406004803603602081101561023957600080fd5b5035610b9d565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027a578181015183820152602001610262565b50505050905090810190601f1680156102a75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610221600480360360808110156102cb57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102f557600080fd5b82018360208201111561030757600080fd5b803590602001918460208302840111600160201b8311171561032857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561037757600080fd5b82018360208201111561038957600080fd5b803590602001918460208302840111600160201b831117156103aa57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103f957600080fd5b82018360208201111561040b57600080fd5b803590602001918460018302840111600160201b8311171561042c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c35945050505050565b610221600480360360a081101561048357600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104b657600080fd5b8201836020820111156104c857600080fd5b803590602001918460208302840111600160201b831117156104e957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561053857600080fd5b82018360208201111561054a57600080fd5b803590602001918460208302840111600160201b8311171561056b57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105ba57600080fd5b8201836020820111156105cc57600080fd5b803590602001918460018302840111600160201b831117156105ed57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c47945050505050565b610221610f45565b6107596004803603604081101561064c57600080fd5b810190602081018135600160201b81111561066657600080fd5b82018360208201111561067857600080fd5b803590602001918460208302840111600160201b8311171561069957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106e857600080fd5b8201836020820111156106fa57600080fd5b803590602001918460208302840111600160201b8311171561071b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610f4f945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561079557818101518382015260200161077d565b505050509050019250505060405180910390f35b6101696110cd565b610221600480360360608110156107c757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156107f157600080fd5b82018360208201111561080357600080fd5b803590602001918460208302840111600160201b8311171561082457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561087357600080fd5b82018360208201111561088557600080fd5b803590602001918460208302840111600160201b831117156108a657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506110d7945050505050565b610221600480360360808110156108fa57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561093057600080fd5b82018360208201111561094257600080fd5b803590602001918460018302840111600160201b8311171561096357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506110e7945050505050565b6102216110f3565b610221600480360360408110156109c257600080fd5b506001600160a01b03813516906020013515156110fb565b610169600480360360408110156109f057600080fd5b506001600160a01b03813581169160200135166111ea565b610221600480360360a0811015610a1e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a5d57600080fd5b820183602082011115610a6f57600080fd5b803590602001918460018302840111600160201b83111715610a9057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611218945050505050565b61022160048036036060811015610ae757600080fd5b506001600160a01b0381351690602081013590604001356113e3565b60006001600160a01b038316610b4a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612382602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b610b9a816113ee565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c295780601f10610bfe57610100808354040283529160200191610c29565b820191906000526020600020905b815481529060010190602001808311610c0c57829003601f168201915b50505050509050919050565b610c4184848484611405565b50505050565b8151835114610c875760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b6001600160a01b038416610ccc5760405162461bcd60e51b81526004018080602001828103825260258152602001806124576025913960400191505060405180910390fd5b610cd461165a565b6001600160a01b0316856001600160a01b03161480610cff5750610cff85610cfa61165a565b6111ea565b610d3a5760405162461bcd60e51b815260040180806020018281038252603281526020018061247c6032913960400191505060405180910390fd5b6000610d4461165a565b9050610d5481878787878761165e565b60005b8451811015610e55576000858281518110610d6e57fe5b602002602001015190506000858381518110610d8657fe5b60200260200101519050610df3816040518060600160405280602a81526020016124d1602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000205461166c9092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610e2a9082611703565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610d57565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610edb578181015183820152602001610ec3565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610f1a578181015183820152602001610f02565b5050505090500194505050505060405180910390a4610f3d818787878787611764565b505050505050565b610f4d6119e3565b565b60608151835114610f915760405162461bcd60e51b81526004018080602001828103825260298152602001806125246029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610fab57600080fd5b50604051908082528060200260200182016040528015610fd5578160200160208202803683370190505b50905060005b84518110156110c55760006001600160a01b0316858281518110610ffb57fe5b60200260200101516001600160a01b031614156110495760405162461bcd60e51b81526004018080602001828103825260318152602001806123ad6031913960400191505060405180910390fd5b6001600085838151811061105957fe5b60200260200101518152602001908152602001600020600086838151811061107d57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106110b257fe5b6020908102919091010152600101610fdb565b509392505050565b60045460ff165b90565b6110e2838383611a81565b505050565b610c4184848484611cef565b610f4d611df0565b816001600160a01b031661110d61165a565b6001600160a01b031614156111535760405162461bcd60e51b81526004018080602001828103825260298152602001806124fb6029913960400191505060405180910390fd5b806002600061116061165a565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556111a461165a565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b03841661125d5760405162461bcd60e51b81526004018080602001828103825260258152602001806124576025913960400191505060405180910390fd5b61126561165a565b6001600160a01b0316856001600160a01b0316148061128b575061128b85610cfa61165a565b6112c65760405162461bcd60e51b815260040180806020018281038252602981526020018061242e6029913960400191505060405180910390fd5b60006112d061165a565b90506112f08187876112e188611e71565b6112ea88611e71565b8761165e565b611337836040518060600160405280602a81526020016124d1602a913960008781526001602090815260408083206001600160a01b038d168452909152902054919061166c565b60008581526001602090815260408083206001600160a01b038b8116855292528083209390935587168152205461136e9084611703565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610f3d818787878787611eb5565b6110e2838383612026565b80516114019060039060208401906121e7565b5050565b6001600160a01b03841661144a5760405162461bcd60e51b81526004018080602001828103825260218152602001806125756021913960400191505060405180910390fd5b815183511461148a5760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b600061149461165a565b90506114a58160008787878761165e565b60005b845181101561156957611520600160008784815181106114c457fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205485838151811061150a57fe5b602002602001015161170390919063ffffffff16565b6001600087848151811061153057fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b1682529092529020556001016114a8565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156115f05781810151838201526020016115d8565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561162f578181015183820152602001611617565b5050505090500194505050505060405180910390a461165381600087878787611764565b5050505050565b3390565b610f3d868686868686612159565b600081848411156116fb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116c05781810151838201526020016116a8565b50505050905090810190601f1680156116ed5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561175d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611776846001600160a01b03166121ab565b15610f3d57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156118045781810151838201526020016117ec565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561184357818101518382015260200161182b565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561187f578181015183820152602001611867565b50505050905090810190601f1680156118ac5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156118d157600080fd5b505af19250505080156118f657506040513d60208110156118f157600080fd5b505160015b61198b57611902612280565b8061190d5750611954565b60405162461bcd60e51b81526020600482018181528351602484015283518493919283926044019190850190808383600083156116c05781810151838201526020016116a8565b60405162461bcd60e51b81526004018080602001828103825260348152602001806123266034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146119da5760405162461bcd60e51b815260040180806020018281038252602881526020018061235a6028913960400191505060405180910390fd5b50505050505050565b60045460ff16611a31576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611a6461165a565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038316611ac65760405162461bcd60e51b81526004018080602001828103825260238152602001806124ae6023913960400191505060405180910390fd5b8051825114611b065760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b6000611b1061165a565b9050611b308185600086866040518060200160405280600081525061165e565b60005b8351811015611c0e57611bc5838281518110611b4b57fe5b60200260200101516040518060600160405280602481526020016123de6024913960016000888681518110611b7c57fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b031681526020019081526020016000205461166c9092919063ffffffff16565b60016000868481518110611bd557fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a168252909252902055600101611b33565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611c95578181015183820152602001611c7d565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611cd4578181015183820152602001611cbc565b5050505090500194505050505060405180910390a450505050565b6001600160a01b038416611d345760405162461bcd60e51b81526004018080602001828103825260218152602001806125756021913960400191505060405180910390fd5b6000611d3e61165a565b9050611d50816000876112e188611e71565b60008481526001602090815260408083206001600160a01b0389168452909152902054611d7d9084611703565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a461165381600087878787611eb5565b60045460ff1615611e3b576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a6461165a565b604080516001808252818301909252606091829190602080830190803683370190505090508281600081518110611ea457fe5b602090810291909101015292915050565b611ec7846001600160a01b03166121ab565b15610f3d57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611f56578181015183820152602001611f3e565b50505050905090810190601f168015611f835780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015611fa657600080fd5b505af1925050508015611fcb57506040513d6020811015611fc657600080fd5b505160015b611fd757611902612280565b6001600160e01b0319811663f23a6e6160e01b146119da5760405162461bcd60e51b815260040180806020018281038252602881526020018061235a6028913960400191505060405180910390fd5b6001600160a01b03831661206b5760405162461bcd60e51b81526004018080602001828103825260238152602001806124ae6023913960400191505060405180910390fd5b600061207561165a565b90506120a58185600061208787611e71565b61209087611e71565b6040518060200160405280600081525061165e565b6120ec826040518060600160405280602481526020016123de6024913960008681526001602090815260408083206001600160a01b038b168452909152902054919061166c565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b612167868686868686610f3d565b61216f6110cd565b15610f3d5760405162461bcd60e51b815260040180806020018281038252602c815260200180612402602c913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906121df57508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061222857805160ff1916838001178555612255565b82800160010185558215612255579182015b8281111561225557825182559160200191906001019061223a565b50612261929150612265565b5090565b5b808211156122615760008155600101612266565b60e01c90565b600060443d1015612290576110d4565b600481823e6308c379a06122a4825161227a565b146122ae576110d4565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156122de57505050506110d4565b828401925082519150808211156122f857505050506110d4565b503d83016020828401011115612310575050506110d4565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a2646970667358221220228ebe9a4f00db0abfb11859189c46710465b51614712765fbd1f9376134ae7664736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC1155PausableMock.sol","sourcemap":"134:593:30:-:0;;;201:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;201:58:30;;;;;;;;;;-1:-1:-1;201:58:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;201:58:30;;-1:-1:-1;251:3:30;;-1:-1:-1;251:3:30;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;2013:12:76;2021:3;2013:7;:12::i;:::-;2114:41;-1:-1:-1;;;2114:18:76;:41::i;:::-;2255:54;-1:-1:-1;;;2255:18:76;:54::i;:::-;-1:-1:-1;;923:7:110;:15;;-1:-1:-1;;923:15:110;;;-1:-1:-1;134:593:30;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;7585:86:76:-;7651:13;;;;:4;;:13;;;;;:::i;:::-;;7585:86;:::o;134:593:30:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;134:593:30;;;-1:-1:-1;134:593:30;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155PresetMinterPauser":{"abi":[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","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":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_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":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155PresetMinterPauser","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200328c3803806200328c833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052508291506200010290506301ffc9a760e01b620001b7565b6200010d816200023f565b6200011f636cdb3d1360e11b620001b7565b620001316303a24d0760e21b620001b7565b506005805460ff191690556200015260006200014c62000258565b6200025c565b620001817f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66200014c62000258565b620001b07f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6200014c62000258565b50620003fe565b6001600160e01b0319808216141562000217576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b80516200025490600490602084019062000362565b5050565b3390565b620002548282600082815260208181526040909120620002879183906200193e620002db821b17901c565b1562000254576200029762000258565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620002f2836001600160a01b038416620002fb565b90505b92915050565b60006200030983836200034a565b6200034157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620002f5565b506000620002f5565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003a557805160ff1916838001178555620003d5565b82800160010185558215620003d5579182015b82811115620003d5578251825591602001919060010190620003b8565b50620003e3929150620003e7565b5090565b5b80821115620003e35760008155600101620003e8565b612e7e806200040e6000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c8063731133e9116100de578063ca15c87311610097578063e63ab1e911610071578063e63ab1e914610ae2578063e985e9c514610aea578063f242432a14610b18578063f5298aca14610be157610172565b8063ca15c87314610a91578063d539139314610aae578063d547741f14610ab657610172565b8063731133e9146109285780638456cb59146109e85780639010d07c146109f057806391d1485414610a2f578063a217fddf14610a5b578063a22cb46514610a6357610172565b80632f2ff15d116101305780632f2ff15d1461061a57806336568abe146106465780633f4ba83a146106725780634e1273f41461067a5780635c975abb146107ed5780636b20c454146107f557610172565b8062fdd58e1461017757806301ffc9a7146101b55780630e89341c146101f05780631f7fdffa14610282578063248a9ca31461043c5780632eb2c2d614610459575b600080fd5b6101a36004803603604081101561018d57600080fd5b506001600160a01b038135169060200135610c13565b60408051918252519081900360200190f35b6101dc600480360360208110156101cb57600080fd5b50356001600160e01b031916610c85565b604080519115158252519081900360200190f35b61020d6004803603602081101561020657600080fd5b5035610ca4565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561024757818101518382015260200161022f565b50505050905090810190601f1680156102745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61043a6004803603608081101561029857600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102c257600080fd5b8201836020820111156102d457600080fd5b803590602001918460208302840111600160201b831117156102f557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460208302840111600160201b8311171561037757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103c657600080fd5b8201836020820111156103d857600080fd5b803590602001918460018302840111600160201b831117156103f957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d3c945050505050565b005b6101a36004803603602081101561045257600080fd5b5035610dba565b61043a600480360360a081101561046f57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104a257600080fd5b8201836020820111156104b457600080fd5b803590602001918460208302840111600160201b831117156104d557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561052457600080fd5b82018360208201111561053657600080fd5b803590602001918460208302840111600160201b8311171561055757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105a657600080fd5b8201836020820111156105b857600080fd5b803590602001918460018302840111600160201b831117156105d957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610dcf945050505050565b61043a6004803603604081101561063057600080fd5b50803590602001356001600160a01b03166110d2565b61043a6004803603604081101561065c57600080fd5b50803590602001356001600160a01b0316611139565b61043a61119a565b61079d6004803603604081101561069057600080fd5b810190602081018135600160201b8111156106aa57600080fd5b8201836020820111156106bc57600080fd5b803590602001918460208302840111600160201b831117156106dd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561072c57600080fd5b82018360208201111561073e57600080fd5b803590602001918460208302840111600160201b8311171561075f57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061120b945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156107d95781810151838201526020016107c1565b505050509050019250505060405180910390f35b6101dc611389565b61043a6004803603606081101561080b57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561083557600080fd5b82018360208201111561084757600080fd5b803590602001918460208302840111600160201b8311171561086857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156108b757600080fd5b8201836020820111156108c957600080fd5b803590602001918460208302840111600160201b831117156108ea57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611393945050505050565b61043a6004803603608081101561093e57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561097457600080fd5b82018360208201111561098657600080fd5b803590602001918460018302840111600160201b831117156109a757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061140c945050505050565b61043a61147f565b610a1360048036036040811015610a0657600080fd5b50803590602001356114ee565b604080516001600160a01b039092168252519081900360200190f35b6101dc60048036036040811015610a4557600080fd5b50803590602001356001600160a01b031661150d565b6101a3611525565b61043a60048036036040811015610a7957600080fd5b506001600160a01b038135169060200135151561152a565b6101a360048036036020811015610aa757600080fd5b5035611619565b6101a3611630565b61043a60048036036040811015610acc57600080fd5b50803590602001356001600160a01b0316611654565b6101a36116ad565b6101dc60048036036040811015610b0057600080fd5b506001600160a01b03813581169160200135166116d1565b61043a600480360360a0811015610b2e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610b6d57600080fd5b820183602082011115610b7f57600080fd5b803590602001918460018302840111600160201b83111715610ba057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506116ff945050505050565b61043a60048036036060811015610bf757600080fd5b506001600160a01b0381351690602081013590604001356118ca565b60006001600160a01b038316610c5a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612b2a602b913960400191505060405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b6001600160e01b03191660009081526001602052604090205460ff1690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d305780601f10610d0557610100808354040283529160200191610d30565b820191906000526020600020905b815481529060010190602001808311610d1357829003601f168201915b50505050509050919050565b610d6d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d68611953565b61150d565b610da85760405162461bcd60e51b8152600401808060200182810382526038815260200180612ca96038913960400191505060405180910390fd5b610db484848484611957565b50505050565b60009081526020819052604090206002015490565b8151835114610e0f5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b6001600160a01b038416610e545760405162461bcd60e51b8152600401808060200182810382526025815260200180612c2f6025913960400191505060405180910390fd5b610e5c611953565b6001600160a01b0316856001600160a01b03161480610e875750610e8785610e82611953565b6116d1565b610ec25760405162461bcd60e51b8152600401808060200182810382526032815260200180612c546032913960400191505060405180910390fd5b6000610ecc611953565b9050610edc818787878787611bac565b60005b8451811015610fe2576000858281518110610ef657fe5b602002602001015190506000858381518110610f0e57fe5b60200260200101519050610f7b816040518060600160405280602a8152602001612ce1602a91396002600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611bba9092919063ffffffff16565b60008381526002602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610fb29082611c51565b60009283526002602090815260408085206001600160a01b038c1686529091529092209190915550600101610edf565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611068578181015183820152602001611050565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156110a757818101518382015260200161108f565b5050505090500194505050505060405180910390a46110ca818787878787611cab565b505050505050565b6000828152602081905260409020600201546110f090610d68611953565b61112b5760405162461bcd60e51b815260040180806020018281038252602f815260200180612afb602f913960400191505060405180910390fd5b6111358282611f2a565b5050565b611141611953565b6001600160a01b0316816001600160a01b0316146111905760405162461bcd60e51b815260040180806020018281038252602f815260200180612e1a602f913960400191505060405180910390fd5b6111358282611f93565b6111c67f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d68611953565b6112015760405162461bcd60e51b815260040180806020018281038252603b815260200180612d0b603b913960400191505060405180910390fd5b611209611ffc565b565b6060815183511461124d5760405162461bcd60e51b8152600401808060200182810382526029815260200180612da86029913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561126757600080fd5b50604051908082528060200260200182016040528015611291578160200160208202803683370190505b50905060005b84518110156113815760006001600160a01b03168582815181106112b757fe5b60200260200101516001600160a01b031614156113055760405162461bcd60e51b8152600401808060200182810382526031815260200180612b556031913960400191505060405180910390fd5b6002600085838151811061131557fe5b60200260200101518152602001908152602001600020600086838151811061133957fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061136e57fe5b6020908102919091010152600101611297565b509392505050565b60055460ff165b90565b61139b611953565b6001600160a01b0316836001600160a01b031614806113c157506113c183610e82611953565b6113fc5760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b61140783838361209a565b505050565b6114387f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d68611953565b6114735760405162461bcd60e51b8152600401808060200182810382526038815260200180612ca96038913960400191505060405180910390fd5b610db484848484612308565b6114ab7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d68611953565b6114e65760405162461bcd60e51b8152600401808060200182810382526039815260200180612d466039913960400191505060405180910390fd5b611209612409565b6000828152602081905260408120611506908361248a565b9392505050565b60008281526020819052604081206115069083612496565b600081565b816001600160a01b031661153c611953565b6001600160a01b031614156115825760405162461bcd60e51b8152600401808060200182810382526029815260200180612d7f6029913960400191505060405180910390fd5b806003600061158f611953565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556115d3611953565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6000818152602081905260408120610c7f906124ab565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461167290610d68611953565b6111905760405162461bcd60e51b8152600401808060200182810382526030815260200180612bff6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166117445760405162461bcd60e51b8152600401808060200182810382526025815260200180612c2f6025913960400191505060405180910390fd5b61174c611953565b6001600160a01b0316856001600160a01b03161480611772575061177285610e82611953565b6117ad5760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b60006117b7611953565b90506117d78187876117c8886124b6565b6117d1886124b6565b87611bac565b61181e836040518060600160405280602a8152602001612ce1602a913960008781526002602090815260408083206001600160a01b038d1684529091529020549190611bba565b60008581526002602090815260408083206001600160a01b038b811685529252808320939093558716815220546118559084611c51565b60008581526002602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46110ca8187878787876124fa565b6118d2611953565b6001600160a01b0316836001600160a01b031614806118f857506118f883610e82611953565b6119335760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b61140783838361266b565b6000611506836001600160a01b03841661279e565b3390565b6001600160a01b03841661199c5760405162461bcd60e51b8152600401808060200182810382526021815260200180612df96021913960400191505060405180910390fd5b81518351146119dc5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b60006119e6611953565b90506119f781600087878787611bac565b60005b8451811015611abb57611a7260026000878481518110611a1657fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002054858381518110611a5c57fe5b6020026020010151611c5190919063ffffffff16565b60026000878481518110611a8257fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b1682529092529020556001016119fa565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611b42578181015183820152602001611b2a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611b81578181015183820152602001611b69565b5050505090500194505050505060405180910390a4611ba581600087878787611cab565b5050505050565b6110ca8686868686866127e8565b60008184841115611c495760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c0e578181015183820152602001611bf6565b50505050905090810190601f168015611c3b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611506576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b611cbd846001600160a01b031661283a565b156110ca57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611d4b578181015183820152602001611d33565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611d8a578181015183820152602001611d72565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015611dc6578181015183820152602001611dae565b50505050905090810190601f168015611df35780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015611e1857600080fd5b505af1925050508015611e3d57506040513d6020811015611e3857600080fd5b505160015b611ed257611e496129d7565b80611e545750611e9b565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315611c0e578181015183820152602001611bf6565b60405162461bcd60e51b8152600401808060200182810382526034815260200180612a7d6034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b14611f215760405162461bcd60e51b8152600401808060200182810382526028815260200180612ad36028913960400191505060405180910390fd5b50505050505050565b6000828152602081905260409020611f42908261193e565b1561113557611f4f611953565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611fab9082612876565b1561113557611fb8611953565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60055460ff1661204a576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61207d611953565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b0383166120df5760405162461bcd60e51b8152600401808060200182810382526023815260200180612c866023913960400191505060405180910390fd5b805182511461211f5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b6000612129611953565b905061214981856000868660405180602001604052806000815250611bac565b60005b8351811015612227576121de83828151811061216457fe5b6020026020010151604051806060016040528060248152602001612b86602491396002600088868151811061219557fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002054611bba9092919063ffffffff16565b600260008684815181106121ee57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a16825290925290205560010161214c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156122ae578181015183820152602001612296565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156122ed5781810151838201526020016122d5565b5050505090500194505050505060405180910390a450505050565b6001600160a01b03841661234d5760405162461bcd60e51b8152600401808060200182810382526021815260200180612df96021913960400191505060405180910390fd5b6000612357611953565b9050612369816000876117c8886124b6565b60008481526002602090815260408083206001600160a01b03891684529091529020546123969084611c51565b60008581526002602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4611ba5816000878787876124fa565b60055460ff1615612454576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861207d611953565b6000611506838361288b565b6000611506836001600160a01b0384166128ef565b6000610c7f82612907565b6040805160018082528183019092526060918291906020808301908036833701905050905082816000815181106124e957fe5b602090810291909101015292915050565b61250c846001600160a01b031661283a565b156110ca57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561259b578181015183820152602001612583565b50505050905090810190601f1680156125c85780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156125eb57600080fd5b505af192505050801561261057506040513d602081101561260b57600080fd5b505160015b61261c57611e496129d7565b6001600160e01b0319811663f23a6e6160e01b14611f215760405162461bcd60e51b8152600401808060200182810382526028815260200180612ad36028913960400191505060405180910390fd5b6001600160a01b0383166126b05760405162461bcd60e51b8152600401808060200182810382526023815260200180612c866023913960400191505060405180910390fd5b60006126ba611953565b90506126ea818560006126cc876124b6565b6126d5876124b6565b60405180602001604052806000815250611bac565b61273182604051806060016040528060248152602001612b866024913960008681526002602090815260408083206001600160a01b038b1684529091529020549190611bba565b60008481526002602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b60006127aa83836128ef565b6127e057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c7f565b506000610c7f565b6127f68686868686866110ca565b6127fe611389565b156110ca5760405162461bcd60e51b815260040180806020018281038252602c815260200180612baa602c913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061286e57508115155b949350505050565b6000611506836001600160a01b03841661290b565b815460009082106128cd5760405162461bcd60e51b8152600401808060200182810382526022815260200180612ab16022913960400191505060405180910390fd5b8260000182815481106128dc57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156129c7578354600019808301919081019060009087908390811061293e57fe5b906000526020600020015490508087600001848154811061295b57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061298b57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610c7f565b6000915050610c7f565b60e01c90565b600060443d10156129e757611390565b600481823e6308c379a06129fb82516129d1565b14612a0557611390565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715612a355750505050611390565b82840192508251915080821115612a4f5750505050611390565b503d83016020828401011115612a6757505050611390565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135355072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e74455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e7061757365455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f207061757365455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212208344e6b26fea227a61547ae485b735d31dad4e57c5b3d14cc319bf7c0b2cb2d364736f6c634300060c0033"},"devdoc":{"details":"{ERC1155} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers This contract uses {AccessControl} to lock permissioned functions using the different roles - head to its documentation for details. The account that deploys the contract will be granted the minter and pauser roles, as well as the default admin role, which will let it grant both minter and pauser roles to other accounts.","kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"constructor":{"details":"Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, and `PAUSER_ROLE` to the account that deploys the contract."},"getRoleAdmin(bytes32)":{"details":"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."},"getRoleMember(bytes32,uint256)":{"details":"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."},"getRoleMemberCount(bytes32)":{"details":"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."},"grantRole(bytes32,address)":{"details":"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."},"hasRole(bytes32,address)":{"details":"Returns `true` if `account` has been granted `role`."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"mint(address,uint256,uint256,bytes)":{"details":"Creates `amount` new tokens for `to`, of token type `id`. See {ERC1155-_mint}. Requirements: - the caller must have the `MINTER_ROLE`."},"mintBatch(address,uint256[],uint256[],bytes)":{"details":"xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}."},"pause()":{"details":"Pauses all token transfers. See {ERC1155Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"renounceRole(bytes32,address)":{"details":"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."},"revokeRole(bytes32,address)":{"details":"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"unpause()":{"details":"Unpauses all token transfers. See {ERC1155Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"version":1},"methodIdentifiers":{"DEFAULT_ADMIN_ROLE()":"0xa217fddf","MINTER_ROLE()":"0xd5391393","PAUSER_ROLE()":"0xe63ab1e9","balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","burn(address,uint256,uint256)":"0xf5298aca","burnBatch(address,uint256[],uint256[])":"0x6b20c454","getRoleAdmin(bytes32)":"0x248a9ca3","getRoleMember(bytes32,uint256)":"0x9010d07c","getRoleMemberCount(bytes32)":"0xca15c873","grantRole(bytes32,address)":"0x2f2ff15d","hasRole(bytes32,address)":"0x91d14854","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256,uint256,bytes)":"0x731133e9","mintBatch(address,uint256[],uint256[],bytes)":"0x1f7fdffa","pause()":"0x8456cb59","paused()":"0x5c975abb","renounceRole(bytes32,address)":"0x36568abe","revokeRole(bytes32,address)":"0xd547741f","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","unpause()":"0x3f4ba83a","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101725760003560e01c8063731133e9116100de578063ca15c87311610097578063e63ab1e911610071578063e63ab1e914610ae2578063e985e9c514610aea578063f242432a14610b18578063f5298aca14610be157610172565b8063ca15c87314610a91578063d539139314610aae578063d547741f14610ab657610172565b8063731133e9146109285780638456cb59146109e85780639010d07c146109f057806391d1485414610a2f578063a217fddf14610a5b578063a22cb46514610a6357610172565b80632f2ff15d116101305780632f2ff15d1461061a57806336568abe146106465780633f4ba83a146106725780634e1273f41461067a5780635c975abb146107ed5780636b20c454146107f557610172565b8062fdd58e1461017757806301ffc9a7146101b55780630e89341c146101f05780631f7fdffa14610282578063248a9ca31461043c5780632eb2c2d614610459575b600080fd5b6101a36004803603604081101561018d57600080fd5b506001600160a01b038135169060200135610c13565b60408051918252519081900360200190f35b6101dc600480360360208110156101cb57600080fd5b50356001600160e01b031916610c85565b604080519115158252519081900360200190f35b61020d6004803603602081101561020657600080fd5b5035610ca4565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561024757818101518382015260200161022f565b50505050905090810190601f1680156102745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61043a6004803603608081101561029857600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102c257600080fd5b8201836020820111156102d457600080fd5b803590602001918460208302840111600160201b831117156102f557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460208302840111600160201b8311171561037757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103c657600080fd5b8201836020820111156103d857600080fd5b803590602001918460018302840111600160201b831117156103f957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d3c945050505050565b005b6101a36004803603602081101561045257600080fd5b5035610dba565b61043a600480360360a081101561046f57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104a257600080fd5b8201836020820111156104b457600080fd5b803590602001918460208302840111600160201b831117156104d557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561052457600080fd5b82018360208201111561053657600080fd5b803590602001918460208302840111600160201b8311171561055757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105a657600080fd5b8201836020820111156105b857600080fd5b803590602001918460018302840111600160201b831117156105d957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610dcf945050505050565b61043a6004803603604081101561063057600080fd5b50803590602001356001600160a01b03166110d2565b61043a6004803603604081101561065c57600080fd5b50803590602001356001600160a01b0316611139565b61043a61119a565b61079d6004803603604081101561069057600080fd5b810190602081018135600160201b8111156106aa57600080fd5b8201836020820111156106bc57600080fd5b803590602001918460208302840111600160201b831117156106dd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561072c57600080fd5b82018360208201111561073e57600080fd5b803590602001918460208302840111600160201b8311171561075f57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061120b945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156107d95781810151838201526020016107c1565b505050509050019250505060405180910390f35b6101dc611389565b61043a6004803603606081101561080b57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561083557600080fd5b82018360208201111561084757600080fd5b803590602001918460208302840111600160201b8311171561086857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156108b757600080fd5b8201836020820111156108c957600080fd5b803590602001918460208302840111600160201b831117156108ea57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611393945050505050565b61043a6004803603608081101561093e57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561097457600080fd5b82018360208201111561098657600080fd5b803590602001918460018302840111600160201b831117156109a757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061140c945050505050565b61043a61147f565b610a1360048036036040811015610a0657600080fd5b50803590602001356114ee565b604080516001600160a01b039092168252519081900360200190f35b6101dc60048036036040811015610a4557600080fd5b50803590602001356001600160a01b031661150d565b6101a3611525565b61043a60048036036040811015610a7957600080fd5b506001600160a01b038135169060200135151561152a565b6101a360048036036020811015610aa757600080fd5b5035611619565b6101a3611630565b61043a60048036036040811015610acc57600080fd5b50803590602001356001600160a01b0316611654565b6101a36116ad565b6101dc60048036036040811015610b0057600080fd5b506001600160a01b03813581169160200135166116d1565b61043a600480360360a0811015610b2e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610b6d57600080fd5b820183602082011115610b7f57600080fd5b803590602001918460018302840111600160201b83111715610ba057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506116ff945050505050565b61043a60048036036060811015610bf757600080fd5b506001600160a01b0381351690602081013590604001356118ca565b60006001600160a01b038316610c5a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612b2a602b913960400191505060405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b6001600160e01b03191660009081526001602052604090205460ff1690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d305780601f10610d0557610100808354040283529160200191610d30565b820191906000526020600020905b815481529060010190602001808311610d1357829003601f168201915b50505050509050919050565b610d6d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d68611953565b61150d565b610da85760405162461bcd60e51b8152600401808060200182810382526038815260200180612ca96038913960400191505060405180910390fd5b610db484848484611957565b50505050565b60009081526020819052604090206002015490565b8151835114610e0f5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b6001600160a01b038416610e545760405162461bcd60e51b8152600401808060200182810382526025815260200180612c2f6025913960400191505060405180910390fd5b610e5c611953565b6001600160a01b0316856001600160a01b03161480610e875750610e8785610e82611953565b6116d1565b610ec25760405162461bcd60e51b8152600401808060200182810382526032815260200180612c546032913960400191505060405180910390fd5b6000610ecc611953565b9050610edc818787878787611bac565b60005b8451811015610fe2576000858281518110610ef657fe5b602002602001015190506000858381518110610f0e57fe5b60200260200101519050610f7b816040518060600160405280602a8152602001612ce1602a91396002600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611bba9092919063ffffffff16565b60008381526002602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610fb29082611c51565b60009283526002602090815260408085206001600160a01b038c1686529091529092209190915550600101610edf565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611068578181015183820152602001611050565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156110a757818101518382015260200161108f565b5050505090500194505050505060405180910390a46110ca818787878787611cab565b505050505050565b6000828152602081905260409020600201546110f090610d68611953565b61112b5760405162461bcd60e51b815260040180806020018281038252602f815260200180612afb602f913960400191505060405180910390fd5b6111358282611f2a565b5050565b611141611953565b6001600160a01b0316816001600160a01b0316146111905760405162461bcd60e51b815260040180806020018281038252602f815260200180612e1a602f913960400191505060405180910390fd5b6111358282611f93565b6111c67f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d68611953565b6112015760405162461bcd60e51b815260040180806020018281038252603b815260200180612d0b603b913960400191505060405180910390fd5b611209611ffc565b565b6060815183511461124d5760405162461bcd60e51b8152600401808060200182810382526029815260200180612da86029913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561126757600080fd5b50604051908082528060200260200182016040528015611291578160200160208202803683370190505b50905060005b84518110156113815760006001600160a01b03168582815181106112b757fe5b60200260200101516001600160a01b031614156113055760405162461bcd60e51b8152600401808060200182810382526031815260200180612b556031913960400191505060405180910390fd5b6002600085838151811061131557fe5b60200260200101518152602001908152602001600020600086838151811061133957fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061136e57fe5b6020908102919091010152600101611297565b509392505050565b60055460ff165b90565b61139b611953565b6001600160a01b0316836001600160a01b031614806113c157506113c183610e82611953565b6113fc5760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b61140783838361209a565b505050565b6114387f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d68611953565b6114735760405162461bcd60e51b8152600401808060200182810382526038815260200180612ca96038913960400191505060405180910390fd5b610db484848484612308565b6114ab7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d68611953565b6114e65760405162461bcd60e51b8152600401808060200182810382526039815260200180612d466039913960400191505060405180910390fd5b611209612409565b6000828152602081905260408120611506908361248a565b9392505050565b60008281526020819052604081206115069083612496565b600081565b816001600160a01b031661153c611953565b6001600160a01b031614156115825760405162461bcd60e51b8152600401808060200182810382526029815260200180612d7f6029913960400191505060405180910390fd5b806003600061158f611953565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556115d3611953565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6000818152602081905260408120610c7f906124ab565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461167290610d68611953565b6111905760405162461bcd60e51b8152600401808060200182810382526030815260200180612bff6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166117445760405162461bcd60e51b8152600401808060200182810382526025815260200180612c2f6025913960400191505060405180910390fd5b61174c611953565b6001600160a01b0316856001600160a01b03161480611772575061177285610e82611953565b6117ad5760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b60006117b7611953565b90506117d78187876117c8886124b6565b6117d1886124b6565b87611bac565b61181e836040518060600160405280602a8152602001612ce1602a913960008781526002602090815260408083206001600160a01b038d1684529091529020549190611bba565b60008581526002602090815260408083206001600160a01b038b811685529252808320939093558716815220546118559084611c51565b60008581526002602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46110ca8187878787876124fa565b6118d2611953565b6001600160a01b0316836001600160a01b031614806118f857506118f883610e82611953565b6119335760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b61140783838361266b565b6000611506836001600160a01b03841661279e565b3390565b6001600160a01b03841661199c5760405162461bcd60e51b8152600401808060200182810382526021815260200180612df96021913960400191505060405180910390fd5b81518351146119dc5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b60006119e6611953565b90506119f781600087878787611bac565b60005b8451811015611abb57611a7260026000878481518110611a1657fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002054858381518110611a5c57fe5b6020026020010151611c5190919063ffffffff16565b60026000878481518110611a8257fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b1682529092529020556001016119fa565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611b42578181015183820152602001611b2a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611b81578181015183820152602001611b69565b5050505090500194505050505060405180910390a4611ba581600087878787611cab565b5050505050565b6110ca8686868686866127e8565b60008184841115611c495760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c0e578181015183820152602001611bf6565b50505050905090810190601f168015611c3b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611506576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b611cbd846001600160a01b031661283a565b156110ca57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611d4b578181015183820152602001611d33565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611d8a578181015183820152602001611d72565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015611dc6578181015183820152602001611dae565b50505050905090810190601f168015611df35780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015611e1857600080fd5b505af1925050508015611e3d57506040513d6020811015611e3857600080fd5b505160015b611ed257611e496129d7565b80611e545750611e9b565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315611c0e578181015183820152602001611bf6565b60405162461bcd60e51b8152600401808060200182810382526034815260200180612a7d6034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b14611f215760405162461bcd60e51b8152600401808060200182810382526028815260200180612ad36028913960400191505060405180910390fd5b50505050505050565b6000828152602081905260409020611f42908261193e565b1561113557611f4f611953565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611fab9082612876565b1561113557611fb8611953565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60055460ff1661204a576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61207d611953565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b0383166120df5760405162461bcd60e51b8152600401808060200182810382526023815260200180612c866023913960400191505060405180910390fd5b805182511461211f5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b6000612129611953565b905061214981856000868660405180602001604052806000815250611bac565b60005b8351811015612227576121de83828151811061216457fe5b6020026020010151604051806060016040528060248152602001612b86602491396002600088868151811061219557fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002054611bba9092919063ffffffff16565b600260008684815181106121ee57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a16825290925290205560010161214c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156122ae578181015183820152602001612296565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156122ed5781810151838201526020016122d5565b5050505090500194505050505060405180910390a450505050565b6001600160a01b03841661234d5760405162461bcd60e51b8152600401808060200182810382526021815260200180612df96021913960400191505060405180910390fd5b6000612357611953565b9050612369816000876117c8886124b6565b60008481526002602090815260408083206001600160a01b03891684529091529020546123969084611c51565b60008581526002602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4611ba5816000878787876124fa565b60055460ff1615612454576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861207d611953565b6000611506838361288b565b6000611506836001600160a01b0384166128ef565b6000610c7f82612907565b6040805160018082528183019092526060918291906020808301908036833701905050905082816000815181106124e957fe5b602090810291909101015292915050565b61250c846001600160a01b031661283a565b156110ca57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561259b578181015183820152602001612583565b50505050905090810190601f1680156125c85780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156125eb57600080fd5b505af192505050801561261057506040513d602081101561260b57600080fd5b505160015b61261c57611e496129d7565b6001600160e01b0319811663f23a6e6160e01b14611f215760405162461bcd60e51b8152600401808060200182810382526028815260200180612ad36028913960400191505060405180910390fd5b6001600160a01b0383166126b05760405162461bcd60e51b8152600401808060200182810382526023815260200180612c866023913960400191505060405180910390fd5b60006126ba611953565b90506126ea818560006126cc876124b6565b6126d5876124b6565b60405180602001604052806000815250611bac565b61273182604051806060016040528060248152602001612b866024913960008681526002602090815260408083206001600160a01b038b1684529091529020549190611bba565b60008481526002602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b60006127aa83836128ef565b6127e057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c7f565b506000610c7f565b6127f68686868686866110ca565b6127fe611389565b156110ca5760405162461bcd60e51b815260040180806020018281038252602c815260200180612baa602c913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061286e57508115155b949350505050565b6000611506836001600160a01b03841661290b565b815460009082106128cd5760405162461bcd60e51b8152600401808060200182810382526022815260200180612ab16022913960400191505060405180910390fd5b8260000182815481106128dc57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156129c7578354600019808301919081019060009087908390811061293e57fe5b906000526020600020015490508087600001848154811061295b57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061298b57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610c7f565b6000915050610c7f565b60e01c90565b600060443d10156129e757611390565b600481823e6308c379a06129fb82516129d1565b14612a0557611390565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715612a355750505050611390565b82840192508251915080821115612a4f5750505050611390565b503d83016020828401011115612a6757505050611390565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135355072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e74455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e7061757365455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f207061757365455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212208344e6b26fea227a61547ae485b735d31dad4e57c5b3d14cc319bf7c0b2cb2d364736f6c634300060c0033"},"sourceId":"contracts/presets/ERC1155PresetMinterPauser.sol","sourcemap":"828:2533:73:-:0;;;1205:207;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1205:207:73;;;;;;;;;;-1:-1:-1;1205:207:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1205:207:73;;-1:-1:-1;1251:3:73;;-1:-1:-1;751:40:10;;-1:-1:-1;;;;751:18:10;:40::i;:::-;2013:12:76;2021:3;2013:7;:12::i;:::-;2114:41;-1:-1:-1;;;2114:18:76;:41::i;:::-;2255:54;-1:-1:-1;;;2255:18:76;:54::i;:::-;-1:-1:-1;923:7:110;:15;;-1:-1:-1;;923:15:110;;;1266:44:73::1;933:5:110::0;1297:12:73::1;:10;:12::i;:::-;1266:10;:44::i;:::-;1321:37;967:24;1345:12;:10;:12::i;1321:37::-;1368;1035:24;1392:12;:10;:12::i;1368:37::-;1205:207:::0;828:2533;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;;;;;1669:4;1633:33;;;;;;;;:40;;-1:-1:-1;;1633:40:10;;;;;;1482:198::o;7585:86:76:-;7651:13;;;;:4;;:13;;;;;:::i;:::-;;7585:86;:::o;590:104:0:-;677:10;590:104;:::o;6578:110:6:-;6656:25;6667:4;6673:7;7088:6;:12;;;;;;;;;;;:33;;7113:7;;7088:24;;;;;:33;;:::i;:::-;7084:109;;;7169:12;:10;:12::i;:::-;-1:-1:-1;;;;;7142:40:6;7160:7;-1:-1:-1;;;;;7142:40:6;7154:4;7142:40;;;;;;;;;;7015:184;;:::o;4864:141:109:-;4934:4;4957:41;4962:3;-1:-1:-1;;;;;4982:14:109;;4957:4;:41::i;:::-;4950:48;;4864:141;;;;;:::o;1611:404::-;1674:4;1695:21;1705:3;1710:5;1695:9;:21::i;:::-;1690:319;;-1:-1:-1;1732:23:109;;;;;;;;:11;:23;;;;;;;;;;;;;1912:18;;1890:19;;;:12;;;:19;;;;;;:40;;;;1944:11;;1690:319;-1:-1:-1;1993:5:109;1986:12;;3776:127;3849:4;3872:19;;;:12;;;;;:19;;;;;;:24;;;3776:127::o;828:2533:73:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;828:2533:73;;;-1:-1:-1;828:2533:73;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155Receiver":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155Receiver","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"_Available since v3.1._","kind":"dev","methods":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":{"details":"Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` (i.e. 0xbc197c81, or its own function selector).","params":{"data":"Additional data with no specified format","from":"The address which previously owned the token","ids":"An array containing ids of each token being transferred (order and length must match values array)","operator":"The address which initiated the batch transfer (i.e. msg.sender)","values":"An array containing amounts of each token being transferred (order and length must match ids array)"},"returns":{"_0":"`bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed"}},"onERC1155Received(address,address,uint256,uint256,bytes)":{"details":"Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` (i.e. 0xf23a6e61, or its own function selector).","params":{"data":"Additional data with no specified format","from":"The address which previously owned the token","id":"The ID of the token being transferred","operator":"The address which initiated the transfer (i.e. msg.sender)","value":"The amount of tokens being transferred"},"returns":{"_0":"`bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed"}},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":"0xbc197c81","onERC1155Received(address,address,uint256,uint256,bytes)":"0xf23a6e61","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC1155/ERC1155Receiver.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155ReceiverMock":{"abi":[{"inputs":[{"internalType":"bytes4","name":"recRetval","type":"bytes4"},{"internalType":"bool","name":"recReverts","type":"bool"},{"internalType":"bytes4","name":"batRetval","type":"bytes4"},{"internalType":"bool","name":"batReverts","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"gas","type":"uint256"}],"name":"BatchReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"gas","type":"uint256"}],"name":"Received","type":"event"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"registerInterface","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155ReceiverMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5060405161076e38038061076e8339818101604052608081101561003357600080fd5b508051602082015160408301516060909301519192909161005a6301ffc9a760e01b6100c4565b6001805463ffffffff191660e095861c1760ff60201b1916640100000000941515949094029390931763ffffffff60281b1916650100000000009290941c919091029290921760ff60481b1916690100000000000000000092151592909202919091179055610148565b6001600160e01b03198082161415610123576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610617806101576000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806301ffc9a714610051578063214cdb801461008c578063bc197c81146100b5578063f23a6e61146101f9575b600080fd5b6100786004803603602081101561006757600080fd5b50356001600160e01b03191661028c565b604080519115158252519081900360200190f35b6100b3600480360360208110156100a257600080fd5b50356001600160e01b0319166102ab565b005b6101dc600480360360a08110156100cb57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156100fe57600080fd5b82018360208201111561011057600080fd5b803590602001918460208302840111600160201b8311171561013157600080fd5b919390929091602081019035600160201b81111561014e57600080fd5b82018360208201111561016057600080fd5b803590602001918460208302840111600160201b8311171561018157600080fd5b919390929091602081019035600160201b81111561019e57600080fd5b8201836020820111156101b057600080fd5b803590602001918460018302840111600160201b831117156101d157600080fd5b5090925090506102b7565b604080516001600160e01b03199092168252519081900360200190f35b6101dc600480360360a081101561020f57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561024e57600080fd5b82018360208201111561026057600080fd5b803590602001918460018302840111600160201b8311171561028157600080fd5b50909250905061040e565b6001600160e01b03191660009081526020819052604090205460ff1690565b6102b481610505565b50565b6001546000906901000000000000000000900460ff16156103095760405162461bcd60e51b815260040180806020018281038252602f8152602001806105b3602f913960400191505060405180910390fd5b7f0bcad9224ba33b574e9c85298de2f44b4c80015a21aa5df474896444909863d889898989898989895a604051808a6001600160a01b03168152602001896001600160a01b0316815260200180602001806020018060200185815260200184810384528b8b82818152602001925060200280828437600083820152601f01601f19169091018581038452898152602090810191508a908a0280828437600083820152601f01601f191690910185810383528781526020019050878780828437600083820152604051601f909101601f19169092018290039e50909c50505050505050505050505050a15060015465010000000000900460e01b98975050505050505050565b600154600090600160201b900460ff161561045a5760405162461bcd60e51b815260040180806020018281038252602981526020018061058a6029913960400191505060405180910390fd5b7f20dfa9f79060c8c4d7fe892c97c71bcf6e3b63d1dcf66fea7aefc0211628cf298787878787875a60405180886001600160a01b03168152602001876001600160a01b03168152602001868152602001858152602001806020018381526020018281038252858582818152602001925080828437600083820152604051601f909101601f19169092018290039a509098505050505050505050a15060015460e01b9695505050505050565b6001600160e01b03198082161415610564576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff1916600117905556fe4552433131353552656365697665724d6f636b3a20726576657274696e67206f6e20726563656976654552433131353552656365697665724d6f636b3a20726576657274696e67206f6e2062617463682072656365697665a264697066735822122078f6f17fb3d2f14a65863547621a0ce793e6f029ac8f3f54b6bdf071728c93e164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":{"details":"Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` (i.e. 0xbc197c81, or its own function selector).","params":{"data":"Additional data with no specified format","from":"The address which previously owned the token","ids":"An array containing ids of each token being transferred (order and length must match values array)","operator":"The address which initiated the batch transfer (i.e. msg.sender)","values":"An array containing amounts of each token being transferred (order and length must match ids array)"},"returns":{"_0":"`bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed"}},"onERC1155Received(address,address,uint256,uint256,bytes)":{"details":"Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` (i.e. 0xf23a6e61, or its own function selector).","params":{"data":"Additional data with no specified format","from":"The address which previously owned the token","id":"The ID of the token being transferred","operator":"The address which initiated the transfer (i.e. msg.sender)","value":"The amount of tokens being transferred"},"returns":{"_0":"`bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed"}},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":"0xbc197c81","onERC1155Received(address,address,uint256,uint256,bytes)":"0xf23a6e61","registerInterface(bytes4)":"0x214cdb80","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806301ffc9a714610051578063214cdb801461008c578063bc197c81146100b5578063f23a6e61146101f9575b600080fd5b6100786004803603602081101561006757600080fd5b50356001600160e01b03191661028c565b604080519115158252519081900360200190f35b6100b3600480360360208110156100a257600080fd5b50356001600160e01b0319166102ab565b005b6101dc600480360360a08110156100cb57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156100fe57600080fd5b82018360208201111561011057600080fd5b803590602001918460208302840111600160201b8311171561013157600080fd5b919390929091602081019035600160201b81111561014e57600080fd5b82018360208201111561016057600080fd5b803590602001918460208302840111600160201b8311171561018157600080fd5b919390929091602081019035600160201b81111561019e57600080fd5b8201836020820111156101b057600080fd5b803590602001918460018302840111600160201b831117156101d157600080fd5b5090925090506102b7565b604080516001600160e01b03199092168252519081900360200190f35b6101dc600480360360a081101561020f57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561024e57600080fd5b82018360208201111561026057600080fd5b803590602001918460018302840111600160201b8311171561028157600080fd5b50909250905061040e565b6001600160e01b03191660009081526020819052604090205460ff1690565b6102b481610505565b50565b6001546000906901000000000000000000900460ff16156103095760405162461bcd60e51b815260040180806020018281038252602f8152602001806105b3602f913960400191505060405180910390fd5b7f0bcad9224ba33b574e9c85298de2f44b4c80015a21aa5df474896444909863d889898989898989895a604051808a6001600160a01b03168152602001896001600160a01b0316815260200180602001806020018060200185815260200184810384528b8b82818152602001925060200280828437600083820152601f01601f19169091018581038452898152602090810191508a908a0280828437600083820152601f01601f191690910185810383528781526020019050878780828437600083820152604051601f909101601f19169092018290039e50909c50505050505050505050505050a15060015465010000000000900460e01b98975050505050505050565b600154600090600160201b900460ff161561045a5760405162461bcd60e51b815260040180806020018281038252602981526020018061058a6029913960400191505060405180910390fd5b7f20dfa9f79060c8c4d7fe892c97c71bcf6e3b63d1dcf66fea7aefc0211628cf298787878787875a60405180886001600160a01b03168152602001876001600160a01b03168152602001868152602001858152602001806020018381526020018281038252858582818152602001925080828437600083820152604051601f909101601f19169092018290039a509098505050505050505050a15060015460e01b9695505050505050565b6001600160e01b03198082161415610564576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff1916600117905556fe4552433131353552656365697665724d6f636b3a20726576657274696e67206f6e20726563656976654552433131353552656365697665724d6f636b3a20726576657274696e67206f6e2062617463682072656365697665a264697066735822122078f6f17fb3d2f14a65863547621a0ce793e6f029ac8f3f54b6bdf071728c93e164736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC1155ReceiverMock.sol","sourcemap":"134:1529:31:-:0;;;544:279;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;544:279:31;;;;;;;;;;;;;;;;;;;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;694:10:31;:22;;-1:-1:-1;;694:22:31;;;;;;-1:-1:-1;;;;726:24:31;;;;;;;;;;;;;-1:-1:-1;;;;760:22:31;;;;;;;;;;;;;;-1:-1:-1;;;;792:24:31;;;;;;;;;;;;;;;134:1529;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;134:1529:31:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC165":{"abi":[{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC165","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Implementation of the {IERC165} interface. Contracts may inherit from this and call {_registerInterface} to declare their support of an interface.","kind":"dev","methods":{"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}},"stateVariables":{"_supportedInterfaces":{"details":"Mapping of interface ids to whether or not it's supported."}},"version":1},"methodIdentifiers":{"supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/introspection/ERC165.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC165Checker":{"abi":[],"contractName":"ERC165Checker","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b183306ce0802e1555165f8e90038f93b66b6383c6b4925d983b5e98dd2c403f64736f6c634300060c0033"},"devdoc":{"details":"Library used to query support of an interface declared via {IERC165}. Note that these functions return the actual result of the query: they do not `revert` if an interface is not supported. It is up to the caller to decide what to do in these cases.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b183306ce0802e1555165f8e90038f93b66b6383c6b4925d983b5e98dd2c403f64736f6c634300060c0033"},"sourceId":"contracts/introspection/ERC165Checker.sol","sourcemap":"336:4192:11:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC165CheckerMock":{"abi":[{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes4[]","name":"interfaceIds","type":"bytes4[]"}],"name":"supportsAllInterfaces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"supportsERC165","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC165CheckerMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506103eb806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634b9dd90414610046578063c398a9251461010d578063d905700714610133575b600080fd5b6100f96004803603604081101561005c57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561008757600080fd5b82018360208201111561009957600080fd5b803590602001918460208302840111640100000000831117156100bb57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610169945050505050565b604080519115158252519081900360200190f35b6100f96004803603602081101561012357600080fd5b50356001600160a01b0316610187565b6100f96004803603604081101561014957600080fd5b5080356001600160a01b031690602001356001600160e01b03191661019b565b600061017e6001600160a01b038416836101b0565b90505b92915050565b6000610181826001600160a01b0316610210565b600061017e6001600160a01b03841683610243565b60006101bb83610210565b6101c757506000610181565b60005b8251811015610206576101f0848483815181106101e357fe5b602002602001015161025b565b6101fe576000915050610181565b6001016101ca565b5060019392505050565b6000610223826301ffc9a760e01b61025b565b8015610181575061023c826001600160e01b031961025b565b1592915050565b600061024e83610210565b801561017e575061017e83835b600080600061026a8585610281565b915091508180156102785750805b95945050505050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166301ffc9a760e01b1781529151815160009384939284926060926001600160a01b038a169261753092879282918083835b602083106103095780518252601f1990920191602091820191016102ea565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303818686fa925050503d806000811461036a576040519150601f19603f3d011682016040523d82523d6000602084013e61036f565b606091505b509150915060208151101561038d57600080945094505050506103ae565b818180602001905160208110156103a357600080fd5b505190955093505050505b925092905056fea2646970667358221220791baa16d8358b0ac6c7261efb396bd49cabf74de769a5c8ff8c08f22c9b0f4164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"supportsAllInterfaces(address,bytes4[])":"0x4b9dd904","supportsERC165(address)":"0xc398a925","supportsInterface(address,bytes4)":"0xd9057007"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634b9dd90414610046578063c398a9251461010d578063d905700714610133575b600080fd5b6100f96004803603604081101561005c57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561008757600080fd5b82018360208201111561009957600080fd5b803590602001918460208302840111640100000000831117156100bb57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610169945050505050565b604080519115158252519081900360200190f35b6100f96004803603602081101561012357600080fd5b50356001600160a01b0316610187565b6100f96004803603604081101561014957600080fd5b5080356001600160a01b031690602001356001600160e01b03191661019b565b600061017e6001600160a01b038416836101b0565b90505b92915050565b6000610181826001600160a01b0316610210565b600061017e6001600160a01b03841683610243565b60006101bb83610210565b6101c757506000610181565b60005b8251811015610206576101f0848483815181106101e357fe5b602002602001015161025b565b6101fe576000915050610181565b6001016101ca565b5060019392505050565b6000610223826301ffc9a760e01b61025b565b8015610181575061023c826001600160e01b031961025b565b1592915050565b600061024e83610210565b801561017e575061017e83835b600080600061026a8585610281565b915091508180156102785750805b95945050505050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166301ffc9a760e01b1781529151815160009384939284926060926001600160a01b038a169261753092879282918083835b602083106103095780518252601f1990920191602091820191016102ea565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303818686fa925050503d806000811461036a576040519150601f19603f3d011682016040523d82523d6000602084013e61036f565b606091505b509150915060208151101561038d57600080945094505050506103ae565b818180602001905160208110156103a357600080fd5b505190955093505050505b925092905056fea2646970667358221220791baa16d8358b0ac6c7261efb396bd49cabf74de769a5c8ff8c08f22c9b0f4164736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC165CheckerMock.sol","sourcemap":"104:526:34:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC165InterfacesSupported":{"abi":[{"inputs":[{"internalType":"bytes4[]","name":"interfaceIds","type":"bytes4[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"INTERFACE_ID_ERC165","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC165InterfacesSupported","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506040516102af3803806102af8339818101604052602081101561003357600080fd5b810190808051604051939291908464010000000082111561005357600080fd5b90830190602082018581111561006857600080fd5b825186602082028301116401000000008211171561008557600080fd5b82525081516020918201928201910280838360005b838110156100b257818101518382015260200161009a565b505050509050016040525050506100d56301ffc9a760e01b61011260201b60201c565b60005b815181101561010b576101038282815181106100f057fe5b602002602001015161011260201b60201c565b6001016100d8565b5050610180565b6001600160e01b0319808216141561015b5760405162461bcd60e51b815260040180806020018281038252602f815260200180610280602f913960400191505060405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b60f28061018e6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c14606f575b600080fd5b605b60048036036020811015604b57600080fd5b50356001600160e01b0319166092565b604080519115158252519081900360200190f35b607560b1565b604080516001600160e01b03199092168252519081900360200190f35b6001600160e01b03191660009081526020819052604090205460ff1690565b6301ffc9a760e01b8156fea26469706673582212205b0212c041577e38b114c28bc9b1cf98a5fc05699c310da8125b2141d520935d64736f6c634300060c0033455243313635496e7465726661636573537570706f727465643a20696e76616c696420696e74657266616365206964"},"devdoc":{"kind":"dev","methods":{"supportsInterface(bytes4)":{"details":"Implement supportsInterface(bytes4) using a lookup table."}},"version":1},"methodIdentifiers":{"INTERFACE_ID_ERC165()":"0x34d7006c","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c14606f575b600080fd5b605b60048036036020811015604b57600080fd5b50356001600160e01b0319166092565b604080519115158252519081900360200190f35b607560b1565b604080516001600160e01b03199092168252519081900360200190f35b6001600160e01b03191660009081526020819052604090205460ff1690565b6301ffc9a760e01b8156fea26469706673582212205b0212c041577e38b114c28bc9b1cf98a5fc05699c310da8125b2141d520935d64736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC165/ERC165InterfacesSupported.sol","sourcemap":"1693:254:32:-:0;;;1769:176;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1769:176:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1123:39;815:10;1142:19;;1123:18;;;:39;;:::i;:::-;1834:9;1829:110;1853:12;:19;1849:1;:23;1829:110;;;1893:35;1912:12;1925:1;1912:15;;;;;;;;;;;;;;1893:18;;;:35;;:::i;:::-;1874:3;;1829:110;;;;1769:176;1693:254;;1480:209;-1:-1:-1;;;;;;1555:25:32;;;;;1547:85;;;;-1:-1:-1;;;1547:85:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1642:33:32;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1642:40:32;1678:4;1642:40;;;1480:209::o;1693:254::-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC165Mock":{"abi":[{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"registerInterface","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC165Mock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506100216301ffc9a760e01b610026565b6100aa565b6001600160e01b03198082161415610085576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610184806100b96000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806301ffc9a71461003b578063214cdb8014610076575b600080fd5b6100626004803603602081101561005157600080fd5b50356001600160e01b03191661009f565b604080519115158252519081900360200190f35b61009d6004803603602081101561008c57600080fd5b50356001600160e01b0319166100be565b005b6001600160e01b03191660009081526020819052604090205460ff1690565b6100c7816100ca565b50565b6001600160e01b03198082161415610129576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff1916600117905556fea2646970667358221220b4ce134c994c223600829a467f1328003020aabb3785fe072d91691000bcee7964736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"registerInterface(bytes4)":"0x214cdb80","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100365760003560e01c806301ffc9a71461003b578063214cdb8014610076575b600080fd5b6100626004803603602081101561005157600080fd5b50356001600160e01b03191661009f565b604080519115158252519081900360200190f35b61009d6004803603602081101561008c57600080fd5b50356001600160e01b0319166100be565b005b6001600160e01b03191660009081526020819052604090205460ff1690565b6100c7816100ca565b50565b6001600160e01b03198082161415610129576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff1916600117905556fea2646970667358221220b4ce134c994c223600829a467f1328003020aabb3785fe072d91691000bcee7964736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC165Mock.sol","sourcemap":"97:140:35:-:0;;;;;;;;;;;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;97:140:35;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;97:140:35:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC165NotSupported":{"abi":[],"contractName":"ERC165NotSupported","deploymentBytecode":{"bytecode":"0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea264697066735822122052721c9cc0b4003fd69cff8bcb94d7851091a497e7e5a756fc4637430458028764736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x6080604052600080fdfea264697066735822122052721c9cc0b4003fd69cff8bcb94d7851091a497e7e5a756fc4637430458028764736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC165/ERC165NotSupported.sol","sourcemap":"58:31:33:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1820Implementer":{"abi":[{"inputs":[{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"canImplementInterfaceForAddress","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1820Implementer","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610111806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b605660048036036040811015604157600080fd5b50803590602001356001600160a01b03166068565b60408051918252519081900360200190f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16609557600060d4565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b939250505056fea264697066735822122015fe6f9037ca52b8c1bc2ce5ae62724367ce1540374713e4face6cb839fe448e64736f6c634300060c0033"},"devdoc":{"details":"Implementation of the {IERC1820Implementer} interface. Contracts may inherit from this and call {_registerInterfaceForAddress} to declare their willingness to be implementers. {IERC1820Registry-setInterfaceImplementer} should then be called for the registration to be complete.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{"canImplementInterfaceForAddress(bytes32,address)":"0x249cb3fa"},"runtimeBytecode":{"bytecode":"0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b605660048036036040811015604157600080fd5b50803590602001356001600160a01b03166068565b60408051918252519081900360200190f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16609557600060d4565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b939250505056fea264697066735822122015fe6f9037ca52b8c1bc2ce5ae62724367ce1540374713e4face6cb839fe448e64736f6c634300060c0033"},"sourceId":"contracts/introspection/ERC1820Implementer.sol","sourcemap":"404:954:12:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{"canImplementInterfaceForAddress(bytes32,address)":{"notice":"See {IERC1820Implementer-canImplementInterfaceForAddress}."}},"version":1}},"ERC1820ImplementerMock":{"abi":[{"inputs":[{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"canImplementInterfaceForAddress","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"registerInterfaceForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC1820ImplementerMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5061018e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063249cb3fa1461003b5780635536e45d14610079575b600080fd5b6100676004803603604081101561005157600080fd5b50803590602001356001600160a01b03166100a7565b60408051918252519081900360200190f35b6100a56004803603604081101561008f57600080fd5b50803590602001356001600160a01b031661011c565b005b6000828152602081815260408083206001600160a01b038516845290915281205460ff166100d6576000610115565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b9392505050565b610126828261012a565b5050565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff1916600117905556fea2646970667358221220136ed4cef848dbd1603f584a69cafbefb0c7a473892a4960cfd0bbc5eec2b13c64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"canImplementInterfaceForAddress(bytes32,address)":"0x249cb3fa","registerInterfaceForAddress(bytes32,address)":"0x5536e45d"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063249cb3fa1461003b5780635536e45d14610079575b600080fd5b6100676004803603604081101561005157600080fd5b50803590602001356001600160a01b03166100a7565b60408051918252519081900360200190f35b6100a56004803603604081101561008f57600080fd5b50803590602001356001600160a01b031661011c565b005b6000828152602081815260408083206001600160a01b038516845290915281205460ff166100d6576000610115565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b9392505050565b610126828261012a565b5050565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff1916600117905556fea2646970667358221220136ed4cef848dbd1603f584a69cafbefb0c7a473892a4960cfd0bbc5eec2b13c64736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC1820ImplementerMock.sol","sourcemap":"109:215:36:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{"canImplementInterfaceForAddress(bytes32,address)":{"notice":"See {IERC1820Implementer-canImplementInterfaceForAddress}."}},"version":1}},"ERC20":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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"}],"contractName":"ERC20","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5060405162000c6238038062000c628339818101604052604081101561003557600080fd5b810190808051604051939291908464010000000082111561005557600080fd5b90830190602082018581111561006a57600080fd5b825164010000000081118282018810171561008457600080fd5b82525081516020918201929091019080838360005b838110156100b1578181015183820152602001610099565b50505050905090810190601f1680156100de5780820380516001836020036101000a031916815260200191505b506040526020018051604051939291908464010000000082111561010157600080fd5b90830190602082018581111561011657600080fd5b825164010000000081118282018810171561013057600080fd5b82525081516020918201929091019080838360005b8381101561015d578181015183820152602001610145565b50505050905090810190601f16801561018a5780820380516001836020036101000a031916815260200191505b50604052505082516101a4915060039060208501906101cd565b5080516101b89060049060208401906101cd565b50506005805460ff1916601217905550610260565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061020e57805160ff191683800117855561023b565b8280016001018555821561023b579182015b8281111561023b578251825591602001919060010190610220565b5061024792915061024b565b5090565b5b80821115610247576000815560010161024c565b6109f280620002706000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610573565b8484610577565b50600192915050565b60025490565b600061037f848484610663565b6103ef8461038b610573565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c9610573565b6001600160a01b0316815260208101919091526040016000205491906107be565b610577565b5060019392505050565b60055460ff1690565b600061036361040f610573565b846103ea8560016000610420610573565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610855565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d9610573565b846103ea856040518060600160405280602581526020016109986025913960016000610503610573565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906107be565b6000610363610541610573565b8484610663565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105bc5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106015760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106a85760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b0382166106ed5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6106f88383836108b6565b61073581604051806060016040528060268152602001610901602691396001600160a01b03861660009081526020819052604090205491906107be565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107649082610855565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561084d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108af576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ac724e2051d163ad8f1167bfe4e104a20db7ea8ec6a50ca266536f15613da74164736f6c634300060c0033"},"devdoc":{"details":"Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How to implement supply mechanisms]. We have followed general OpenZeppelin guidelines: functions revert instead of returning `false` on failure. This behavior is nonetheless conventional and does not conflict with the expectations of ERC20 applications. Additionally, an {Approval} event is emitted on calls to {transferFrom}. This allows applications to reconstruct the allowance for all accounts just by listening to said events. Other implementations of the EIP may not emit these events, as it isn't required by the specification. Finally, the non-standard {decreaseAllowance} and {increaseAllowance} functions have been added to mitigate the well-known issues around setting allowances. See {IERC20-approve}.","kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"constructor":{"details":"Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610573565b8484610577565b50600192915050565b60025490565b600061037f848484610663565b6103ef8461038b610573565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c9610573565b6001600160a01b0316815260208101919091526040016000205491906107be565b610577565b5060019392505050565b60055460ff1690565b600061036361040f610573565b846103ea8560016000610420610573565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610855565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d9610573565b846103ea856040518060600160405280602581526020016109986025913960016000610503610573565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906107be565b6000610363610541610573565b8484610663565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105bc5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106015760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106a85760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b0382166106ed5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6106f88383836108b6565b61073581604051806060016040528060268152602001610901602691396001600160a01b03861660009081526020819052604090205491906107be565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107649082610855565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561084d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108af576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ac724e2051d163ad8f1167bfe4e104a20db7ea8ec6a50ca266536f15613da74164736f6c634300060c0033"},"sourceId":"contracts/token/ERC20/ERC20.sol","sourcemap":"1345:9446:84:-:0;;;2013:141;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2013:141:84;;;;;;;;;;-1:-1:-1;2013:141:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2013:141:84;;;;;;;;;;-1:-1:-1;2013:141:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2013:141:84;;-1:-1:-1;;2085:12:84;;;;-1:-1:-1;2085:5:84;;:12;;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;1345:9446:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1345:9446:84;;;-1:-1:-1;1345:9446:84;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20Burnable":{"abi":[{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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"}],"contractName":"ERC20Burnable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Extension of {ERC20} that allows token holders to destroy both their own tokens and those that they have an allowance for, in a way that can be recognized off-chain (via event analysis).","kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"burn(uint256)":{"details":"Destroys `amount` tokens from the caller. See {ERC20-_burn}."},"burnFrom(address,uint256)":{"details":"Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","burn(uint256)":"0x42966c68","burnFrom(address,uint256)":"0x79cc6790","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC20/ERC20Burnable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20BurnableMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"initialAccount","type":"address"},{"internalType":"uint256","name":"initialBalance","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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"}],"contractName":"ERC20BurnableMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200109438038062001094833981810160405260808110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604090815260208281015192909101518651929450925085918591620001c59160039185019062000377565b508051620001db90600490602084019062000377565b50506005805460ff1916601217905550620001f7828262000201565b5050505062000413565b6001600160a01b0382166200025d576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6200026b6000838362000310565b62000287816002546200031560201b620006521790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620002ba9183906200065262000315821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b60008282018381101562000370576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003ba57805160ff1916838001178555620003ea565b82800160010185558215620003ea579182015b82811115620003ea578251825591602001919060010190620003cd565b50620003f8929150620003fc565b5090565b5b80821115620003f85760008155600101620003fd565b610c7180620004236000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b411461029c578063a457c2d7146102a4578063a9059cbb146102d0578063dd62ed3e146102fc576100cf565b806342966c681461022b57806370a082311461024a57806379cc679014610270576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e157806339509351146101ff575b600080fd5b6100dc61032a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103c0565b604080519115158252519081900360200190f35b6101996103dd565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103e3565b6101e961046a565b6040805160ff9092168252519081900360200190f35b61017d6004803603604081101561021557600080fd5b506001600160a01b038135169060200135610473565b6102486004803603602081101561024157600080fd5b50356104c1565b005b6101996004803603602081101561026057600080fd5b50356001600160a01b03166104d5565b6102486004803603604081101561028657600080fd5b506001600160a01b0381351690602001356104f0565b6100dc61054a565b61017d600480360360408110156102ba57600080fd5b506001600160a01b0381351690602001356105ab565b61017d600480360360408110156102e657600080fd5b506001600160a01b038135169060200135610613565b6101996004803603604081101561031257600080fd5b506001600160a01b0381358116916020013516610627565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b65780601f1061038b576101008083540402835291602001916103b6565b820191906000526020600020905b81548152906001019060200180831161039957829003601f168201915b5050505050905090565b60006103d46103cd6106b3565b84846106b7565b50600192915050565b60025490565b60006103f08484846107a3565b610460846103fc6106b3565b61045b85604051806060016040528060288152602001610b61602891396001600160a01b038a1660009081526001602052604081209061043a6106b3565b6001600160a01b0316815260208101919091526040016000205491906108fe565b6106b7565b5060019392505050565b60055460ff1690565b60006103d46104806106b3565b8461045b85600160006104916106b3565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610652565b6104d26104cc6106b3565b82610995565b50565b6001600160a01b031660009081526020819052604090205490565b600061052782604051806060016040528060248152602001610b89602491396105208661051b6106b3565b610627565b91906108fe565b905061053b836105356106b3565b836106b7565b6105458383610995565b505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b65780601f1061038b576101008083540402835291602001916103b6565b60006103d46105b86106b3565b8461045b85604051806060016040528060258152602001610c1760259139600160006105e26106b3565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906108fe565b60006103d46106206106b3565b84846107a3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156106ac576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166106fc5760405162461bcd60e51b8152600401808060200182810382526024815260200180610bf36024913960400191505060405180910390fd5b6001600160a01b0382166107415760405162461bcd60e51b8152600401808060200182810382526022815260200180610b196022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107e85760405162461bcd60e51b8152600401808060200182810382526025815260200180610bce6025913960400191505060405180910390fd5b6001600160a01b03821661082d5760405162461bcd60e51b8152600401808060200182810382526023815260200180610ad46023913960400191505060405180910390fd5b610838838383610545565b61087581604051806060016040528060268152602001610b3b602691396001600160a01b03861660009081526020819052604090205491906108fe565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108a49082610652565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561098d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561095257818101518382015260200161093a565b50505050905090810190601f16801561097f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166109da5760405162461bcd60e51b8152600401808060200182810382526021815260200180610bad6021913960400191505060405180910390fd5b6109e682600083610545565b610a2381604051806060016040528060228152602001610af7602291396001600160a01b03851660009081526020819052604090205491906108fe565b6001600160a01b038316600090815260208190526040902055600254610a499082610a91565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60006106ac83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108fe56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122045b37c8e0a29a8736fa80a71bcdc0128701a4a9673236a7c5b1cea5d905df3b264736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"burn(uint256)":{"details":"Destroys `amount` tokens from the caller. See {ERC20-_burn}."},"burnFrom(address,uint256)":{"details":"Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","burn(uint256)":"0x42966c68","burnFrom(address,uint256)":"0x79cc6790","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b411461029c578063a457c2d7146102a4578063a9059cbb146102d0578063dd62ed3e146102fc576100cf565b806342966c681461022b57806370a082311461024a57806379cc679014610270576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e157806339509351146101ff575b600080fd5b6100dc61032a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103c0565b604080519115158252519081900360200190f35b6101996103dd565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103e3565b6101e961046a565b6040805160ff9092168252519081900360200190f35b61017d6004803603604081101561021557600080fd5b506001600160a01b038135169060200135610473565b6102486004803603602081101561024157600080fd5b50356104c1565b005b6101996004803603602081101561026057600080fd5b50356001600160a01b03166104d5565b6102486004803603604081101561028657600080fd5b506001600160a01b0381351690602001356104f0565b6100dc61054a565b61017d600480360360408110156102ba57600080fd5b506001600160a01b0381351690602001356105ab565b61017d600480360360408110156102e657600080fd5b506001600160a01b038135169060200135610613565b6101996004803603604081101561031257600080fd5b506001600160a01b0381358116916020013516610627565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b65780601f1061038b576101008083540402835291602001916103b6565b820191906000526020600020905b81548152906001019060200180831161039957829003601f168201915b5050505050905090565b60006103d46103cd6106b3565b84846106b7565b50600192915050565b60025490565b60006103f08484846107a3565b610460846103fc6106b3565b61045b85604051806060016040528060288152602001610b61602891396001600160a01b038a1660009081526001602052604081209061043a6106b3565b6001600160a01b0316815260208101919091526040016000205491906108fe565b6106b7565b5060019392505050565b60055460ff1690565b60006103d46104806106b3565b8461045b85600160006104916106b3565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610652565b6104d26104cc6106b3565b82610995565b50565b6001600160a01b031660009081526020819052604090205490565b600061052782604051806060016040528060248152602001610b89602491396105208661051b6106b3565b610627565b91906108fe565b905061053b836105356106b3565b836106b7565b6105458383610995565b505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b65780601f1061038b576101008083540402835291602001916103b6565b60006103d46105b86106b3565b8461045b85604051806060016040528060258152602001610c1760259139600160006105e26106b3565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906108fe565b60006103d46106206106b3565b84846107a3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156106ac576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166106fc5760405162461bcd60e51b8152600401808060200182810382526024815260200180610bf36024913960400191505060405180910390fd5b6001600160a01b0382166107415760405162461bcd60e51b8152600401808060200182810382526022815260200180610b196022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107e85760405162461bcd60e51b8152600401808060200182810382526025815260200180610bce6025913960400191505060405180910390fd5b6001600160a01b03821661082d5760405162461bcd60e51b8152600401808060200182810382526023815260200180610ad46023913960400191505060405180910390fd5b610838838383610545565b61087581604051806060016040528060268152602001610b3b602691396001600160a01b03861660009081526020819052604090205491906108fe565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108a49082610652565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561098d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561095257818101518382015260200161093a565b50505050905090810190601f16801561097f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166109da5760405162461bcd60e51b8152600401808060200182810382526021815260200180610bad6021913960400191505060405180910390fd5b6109e682600083610545565b610a2381604051806060016040528060228152602001610af7602291396001600160a01b03851660009081526020819052604090205491906108fe565b6001600160a01b038316600090815260208190526040902055600254610a499082610a91565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60006106ac83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108fe56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122045b37c8e0a29a8736fa80a71bcdc0128701a4a9673236a7c5b1cea5d905df3b264736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC20BurnableMock.sol","sourcemap":"102:274:37:-:0;;;152:222;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;152:222:37;;;;;;;;;;-1:-1:-1;152:222:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;152:222:37;;;;;;;;;;-1:-1:-1;152:222:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;152:222:37;;;;;;;;;;;;;;2085:12:84;;152:222:37;;-1:-1:-1;152:222:37;-1:-1:-1;306:4:37;;312:6;;2085:12:84;;:5;;:12;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;330:37:37::1;336:14:::0;352;330:5:::1;:37::i;:::-;152:222:::0;;;;102:274;;7835:370:84;-1:-1:-1;;;;;7918:21:84;;7910:65;;;;;-1:-1:-1;;;7910:65:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;7986:49;8015:1;8019:7;8028:6;7986:20;:49::i;:::-;8061:24;8078:6;8061:12;;:16;;;;;;:24;;;;:::i;:::-;8046:12;:39;-1:-1:-1;;;;;8116:18:84;;:9;:18;;;;;;;;;;;;:30;;8139:6;;8116:22;;;;;:30;;:::i;:::-;-1:-1:-1;;;;;8095:18:84;;:9;:18;;;;;;;;;;;:51;;;;8161:37;;;;;;;8095:18;;:9;;8161:37;;;;;;;;;;7835:370;;:::o;10697:92::-;;;;:::o;874:176:17:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:17:o;102:274:37:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;102:274:37;;;-1:-1:-1;102:274:37;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20Capped":{"abi":[{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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"}],"contractName":"ERC20Capped","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Extension of {ERC20} that adds a cap to the supply of tokens.","kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"cap()":{"details":"Returns the cap on the token's total supply."},"constructor":{"details":"Sets the value of the `cap`. This value is immutable, it can only be set once during construction."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","cap()":"0x355274ea","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC20/ERC20Capped.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20CappedMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"cap","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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"}],"contractName":"ERC20CappedMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b5060405162000ec538038062000ec5833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052602090810151855190935083925085918591620001c0916003919085019062000246565b508051620001d690600490602084019062000246565b50506005805460ff19166012179055508062000239576040805162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a2063617020697320300000000000000000000000604482015290519081900360640190fd5b60065550620002e2915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028957805160ff1916838001178555620002b9565b82800160010185558215620002b9579182015b82811115620002b95782518255916020019190600101906200029c565b50620002c7929150620002cb565b5090565b5b80821115620002c75760008155600101620002cc565b610bd380620002f26000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063395093511161008c57806395d89b411161006657806395d89b4114610287578063a457c2d71461028f578063a9059cbb146102bb578063dd62ed3e146102e7576100cf565b8063395093511461020757806340c10f191461023357806370a0823114610261576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e1578063355274ea146101ff575b600080fd5b6100dc610315565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103ab565b604080519115158252519081900360200190f35b6101996103c8565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103ce565b6101e9610455565b6040805160ff9092168252519081900360200190f35b61019961045e565b61017d6004803603604081101561021d57600080fd5b506001600160a01b038135169060200135610464565b61025f6004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104b2565b005b6101996004803603602081101561027757600080fd5b50356001600160a01b03166104c0565b6100dc6104db565b61017d600480360360408110156102a557600080fd5b506001600160a01b03813516906020013561053c565b61017d600480360360408110156102d157600080fd5b506001600160a01b0381351690602001356105a4565b610199600480360360408110156102fd57600080fd5b506001600160a01b03813581169160200135166105b8565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a15780601f10610376576101008083540402835291602001916103a1565b820191906000526020600020905b81548152906001019060200180831161038457829003601f168201915b5050505050905090565b60006103bf6103b86105e3565b84846105e7565b50600192915050565b60025490565b60006103db8484846106d3565b61044b846103e76105e3565b61044685604051806060016040528060288152602001610b08602891396001600160a01b038a166000908152600160205260408120906104256105e3565b6001600160a01b03168152602081019190915260400160002054919061082e565b6105e7565b5060019392505050565b60055460ff1690565b60065490565b60006103bf6104716105e3565b8461044685600160006104826105e3565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906108c5565b6104bc8282610926565b5050565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a15780601f10610376576101008083540402835291602001916103a1565b60006103bf6105496105e3565b8461044685604051806060016040528060258152602001610b7960259139600160006105736105e3565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061082e565b60006103bf6105b16105e3565b84846106d3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661062c5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b556024913960400191505060405180910390fd5b6001600160a01b0382166106715760405162461bcd60e51b8152600401808060200182810382526022815260200180610ac06022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107185760405162461bcd60e51b8152600401808060200182810382526025815260200180610b306025913960400191505060405180910390fd5b6001600160a01b03821661075d5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a9d6023913960400191505060405180910390fd5b610768838383610a16565b6107a581604051806060016040528060268152602001610ae2602691396001600160a01b038616600090815260208190526040902054919061082e565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107d490826108c5565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108bd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561088257818101518382015260200161086a565b50505050905090810190601f1680156108af5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561091f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610981576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61098d60008383610a16565b60025461099a90826108c5565b6002556001600160a01b0382166000908152602081905260409020546109c090826108c5565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b610a21838383610a97565b6001600160a01b038316610a9757600654610a4482610a3e6103c8565b906108c5565b1115610a97576040805162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015290519081900360640190fd5b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207fa0dadf1f9ff37ff1c0aa3094369e7bfa0265b5df4ed3f75b5cbbc553e0e0a564736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"cap()":{"details":"Returns the cap on the token's total supply."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","cap()":"0x355274ea","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063395093511161008c57806395d89b411161006657806395d89b4114610287578063a457c2d71461028f578063a9059cbb146102bb578063dd62ed3e146102e7576100cf565b8063395093511461020757806340c10f191461023357806370a0823114610261576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e1578063355274ea146101ff575b600080fd5b6100dc610315565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103ab565b604080519115158252519081900360200190f35b6101996103c8565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103ce565b6101e9610455565b6040805160ff9092168252519081900360200190f35b61019961045e565b61017d6004803603604081101561021d57600080fd5b506001600160a01b038135169060200135610464565b61025f6004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104b2565b005b6101996004803603602081101561027757600080fd5b50356001600160a01b03166104c0565b6100dc6104db565b61017d600480360360408110156102a557600080fd5b506001600160a01b03813516906020013561053c565b61017d600480360360408110156102d157600080fd5b506001600160a01b0381351690602001356105a4565b610199600480360360408110156102fd57600080fd5b506001600160a01b03813581169160200135166105b8565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a15780601f10610376576101008083540402835291602001916103a1565b820191906000526020600020905b81548152906001019060200180831161038457829003601f168201915b5050505050905090565b60006103bf6103b86105e3565b84846105e7565b50600192915050565b60025490565b60006103db8484846106d3565b61044b846103e76105e3565b61044685604051806060016040528060288152602001610b08602891396001600160a01b038a166000908152600160205260408120906104256105e3565b6001600160a01b03168152602081019190915260400160002054919061082e565b6105e7565b5060019392505050565b60055460ff1690565b60065490565b60006103bf6104716105e3565b8461044685600160006104826105e3565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906108c5565b6104bc8282610926565b5050565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a15780601f10610376576101008083540402835291602001916103a1565b60006103bf6105496105e3565b8461044685604051806060016040528060258152602001610b7960259139600160006105736105e3565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061082e565b60006103bf6105b16105e3565b84846106d3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661062c5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b556024913960400191505060405180910390fd5b6001600160a01b0382166106715760405162461bcd60e51b8152600401808060200182810382526022815260200180610ac06022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107185760405162461bcd60e51b8152600401808060200182810382526025815260200180610b306025913960400191505060405180910390fd5b6001600160a01b03821661075d5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a9d6023913960400191505060405180910390fd5b610768838383610a16565b6107a581604051806060016040528060268152602001610ae2602691396001600160a01b038616600090815260208190526040902054919061082e565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107d490826108c5565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108bd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561088257818101518382015260200161086a565b50505050905090810190601f1680156108af5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561091f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610981576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61098d60008383610a16565b60025461099a90826108c5565b6002556001600160a01b0382166000908152602081905260409020546109c090826108c5565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b610a21838383610a97565b6001600160a01b038316610a9757600654610a4482610a3e6103c8565b906108c5565b1115610a97576040805162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015290519081900360640190fd5b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207fa0dadf1f9ff37ff1c0aa3094369e7bfa0265b5df4ed3f75b5cbbc553e0e0a564736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC20CappedMock.sol","sourcemap":"100:266:38:-:0;;;146:127;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;146:127:38;;;;;;;;;;-1:-1:-1;146:127:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;146:127:38;;;;;;;;;;-1:-1:-1;146:127:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;146:127:38;;;;;;;2085:12:84;;146:127:38;;-1:-1:-1;146:127:38;;-1:-1:-1;235:4:38;;241:6;;2085:12:84;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;416:7:86;408:41;;;;;-1:-1:-1;;;408:41:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;459:4;:10;-1:-1:-1;100:266:38;;-1:-1:-1;;100:266:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;100:266:38;;;-1:-1:-1;100:266:38;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20DecimalsMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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"}],"contractName":"ERC20DecimalsMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b5060405162000cab38038062000cab833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260209081015185519093508592508491620001bd916003918501906200020d565b508051620001d39060049060208401906200020d565b50506005805460ff1916601217905550620001ee81620001f7565b505050620002a9565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200025057805160ff191683800117855562000280565b8280016001018555821562000280579182015b828111156200028057825182559160200191906001019062000263565b506200028e92915062000292565b5090565b5b808211156200028e576000815560010162000293565b6109f280620002b96000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610573565b8484610577565b50600192915050565b60025490565b600061037f848484610663565b6103ef8461038b610573565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c9610573565b6001600160a01b0316815260208101919091526040016000205491906107be565b610577565b5060019392505050565b60055460ff1690565b600061036361040f610573565b846103ea8560016000610420610573565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610855565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d9610573565b846103ea856040518060600160405280602581526020016109986025913960016000610503610573565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906107be565b6000610363610541610573565b8484610663565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105bc5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106015760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106a85760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b0382166106ed5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6106f88383836108b6565b61073581604051806060016040528060268152602001610901602691396001600160a01b03861660009081526020819052604090205491906107be565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107649082610855565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561084d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108af576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122049782dcadd57c6101c7f8186997708b31a8ef6666fc67196022f17859da33eb164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610573565b8484610577565b50600192915050565b60025490565b600061037f848484610663565b6103ef8461038b610573565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c9610573565b6001600160a01b0316815260208101919091526040016000205491906107be565b610577565b5060019392505050565b60055460ff1690565b600061036361040f610573565b846103ea8560016000610420610573565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610855565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d9610573565b846103ea856040518060600160405280602581526020016109986025913960016000610503610573565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906107be565b6000610363610541610573565b8484610663565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105bc5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106015760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106a85760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b0382166106ed5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6106f88383836108b6565b61073581604051806060016040528060268152602001610901602691396001600160a01b03861660009081526020819052604090205491906107be565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107649082610855565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561084d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108af576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122049782dcadd57c6101c7f8186997708b31a8ef6666fc67196022f17859da33eb164736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC20DecimalsMock.sol","sourcemap":"94:183:39:-:0;;;136:139;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;136:139:39;;;;;;;;;;-1:-1:-1;136:139:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;136:139:39;;;;;;;;;;-1:-1:-1;136:139:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;136:139:39;;;;;;;2085:12:84;;136:139:39;;-1:-1:-1;220:4:39;;-1:-1:-1;226:6:39;;2085:12:84;;:5;;:12;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;244:24:39::1;259:8:::0;244:14:::1;:24::i;:::-;136:139:::0;;;94:183;;10022:88:84;10082:9;:21;;-1:-1:-1;;10082:21:84;;;;;;;;;;;;10022:88::o;94:183:39:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;94:183:39;;;-1:-1:-1;94:183:39;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20Mock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"initialAccount","type":"address"},{"internalType":"uint256","name":"initialBalance","type":"uint256"}],"stateMutability":"payable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approveInternal","outputs":[],"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"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferInternal","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC20Mock","deploymentBytecode":{"bytecode":"0x6080604052604051620011b8380380620011b8833981810160405260808110156200002957600080fd5b81019080805160405193929190846401000000008211156200004a57600080fd5b9083019060208201858111156200006057600080fd5b82516401000000008111828201881017156200007b57600080fd5b82525081516020918201929091019080838360005b83811015620000aa57818101518382015260200162000090565b50505050905090810190601f168015620000d85780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620000fc57600080fd5b9083019060208201858111156200011257600080fd5b82516401000000008111828201881017156200012d57600080fd5b82525081516020918201929091019080838360005b838110156200015c57818101518382015260200162000142565b50505050905090810190601f1680156200018a5780820380516001836020036101000a031916815260200191505b50604090815260208281015192909101518651929450925085918591620001b79160039185019062000369565b508051620001cd90600490602084019062000369565b50506005805460ff1916601217905550620001e98282620001f3565b5050505062000405565b6001600160a01b0382166200024f576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6200025d6000838362000302565b62000279816002546200030760201b620006b81790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620002ac918390620006b862000307821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b60008282018381101562000362576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003ac57805160ff1916838001178555620003dc565b82800160010185558215620003dc579182015b82811115620003dc578251825591602001919060010190620003bf565b50620003ea929150620003ee565b5090565b5b80821115620003ea5760008155600101620003ef565b610da380620004156000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806340c10f19116100975780639dc29fac116100665780639dc29fac14610319578063a457c2d714610345578063a9059cbb14610371578063dd62ed3e1461039d576100f5565b806340c10f191461028957806356189cb4146102b557806370a08231146102eb57806395d89b4114610311576100f5565b8063222f5be0116100d3578063222f5be0146101d157806323b872dd14610209578063313ce5671461023f578063395093511461025d576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b6101026103cb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b038135169060200135610461565b604080519115158252519081900360200190f35b6101bf61047e565b60408051918252519081900360200190f35b610207600480360360608110156101e757600080fd5b506001600160a01b03813581169160208101359091169060400135610484565b005b6101a36004803603606081101561021f57600080fd5b506001600160a01b03813581169160208101359091169060400135610494565b61024761051b565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561027357600080fd5b506001600160a01b038135169060200135610524565b6102076004803603604081101561029f57600080fd5b506001600160a01b038135169060200135610572565b610207600480360360608110156102cb57600080fd5b506001600160a01b03813581169160208101359091169060400135610580565b6101bf6004803603602081101561030157600080fd5b50356001600160a01b031661058b565b6101026105a6565b6102076004803603604081101561032f57600080fd5b506001600160a01b038135169060200135610607565b6101a36004803603604081101561035b57600080fd5b506001600160a01b038135169060200135610611565b6101a36004803603604081101561038757600080fd5b506001600160a01b038135169060200135610679565b6101bf600480360360408110156103b357600080fd5b506001600160a01b038135811691602001351661068d565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104575780601f1061042c57610100808354040283529160200191610457565b820191906000526020600020905b81548152906001019060200180831161043a57829003601f168201915b5050505050905090565b600061047561046e610719565b848461071d565b50600192915050565b60025490565b61048f838383610809565b505050565b60006104a1848484610809565b610511846104ad610719565b61050c85604051806060016040528060288152602001610cb7602891396001600160a01b038a166000908152600160205260408120906104eb610719565b6001600160a01b031681526020810191909152604001600020549190610964565b61071d565b5060019392505050565b60055460ff1690565b6000610475610531610719565b8461050c8560016000610542610719565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906106b8565b61057c82826109fb565b5050565b61048f83838361071d565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104575780601f1061042c57610100808354040283529160200191610457565b61057c8282610aeb565b600061047561061e610719565b8461050c85604051806060016040528060258152602001610d496025913960016000610648610719565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610964565b6000610475610686610719565b8484610809565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600082820183811015610712576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166107625760405162461bcd60e51b8152600401808060200182810382526024815260200180610d256024913960400191505060405180910390fd5b6001600160a01b0382166107a75760405162461bcd60e51b8152600401808060200182810382526022815260200180610c6f6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661084e5760405162461bcd60e51b8152600401808060200182810382526025815260200180610d006025913960400191505060405180910390fd5b6001600160a01b0382166108935760405162461bcd60e51b8152600401808060200182810382526023815260200180610c2a6023913960400191505060405180910390fd5b61089e83838361048f565b6108db81604051806060016040528060268152602001610c91602691396001600160a01b0386166000908152602081905260409020549190610964565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461090a90826106b8565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109f35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109b85781810151838201526020016109a0565b50505050905090810190601f1680156109e55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610a56576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610a626000838361048f565b600254610a6f90826106b8565b6002556001600160a01b038216600090815260208190526040902054610a9590826106b8565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610b305760405162461bcd60e51b8152600401808060200182810382526021815260200180610cdf6021913960400191505060405180910390fd5b610b3c8260008361048f565b610b7981604051806060016040528060228152602001610c4d602291396001600160a01b0385166000908152602081905260409020549190610964565b6001600160a01b038316600090815260208190526040902055600254610b9f9082610be7565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061071283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061096456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220018f0e222a7ad2a0803af35a085d24af2e45a25df53c09a51bdd7a0ff5f9e63364736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","approveInternal(address,address,uint256)":"0x56189cb4","balanceOf(address)":"0x70a08231","burn(address,uint256)":"0x9dc29fac","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd","transferInternal(address,address,uint256)":"0x222f5be0"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806340c10f19116100975780639dc29fac116100665780639dc29fac14610319578063a457c2d714610345578063a9059cbb14610371578063dd62ed3e1461039d576100f5565b806340c10f191461028957806356189cb4146102b557806370a08231146102eb57806395d89b4114610311576100f5565b8063222f5be0116100d3578063222f5be0146101d157806323b872dd14610209578063313ce5671461023f578063395093511461025d576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b6101026103cb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b038135169060200135610461565b604080519115158252519081900360200190f35b6101bf61047e565b60408051918252519081900360200190f35b610207600480360360608110156101e757600080fd5b506001600160a01b03813581169160208101359091169060400135610484565b005b6101a36004803603606081101561021f57600080fd5b506001600160a01b03813581169160208101359091169060400135610494565b61024761051b565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561027357600080fd5b506001600160a01b038135169060200135610524565b6102076004803603604081101561029f57600080fd5b506001600160a01b038135169060200135610572565b610207600480360360608110156102cb57600080fd5b506001600160a01b03813581169160208101359091169060400135610580565b6101bf6004803603602081101561030157600080fd5b50356001600160a01b031661058b565b6101026105a6565b6102076004803603604081101561032f57600080fd5b506001600160a01b038135169060200135610607565b6101a36004803603604081101561035b57600080fd5b506001600160a01b038135169060200135610611565b6101a36004803603604081101561038757600080fd5b506001600160a01b038135169060200135610679565b6101bf600480360360408110156103b357600080fd5b506001600160a01b038135811691602001351661068d565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104575780601f1061042c57610100808354040283529160200191610457565b820191906000526020600020905b81548152906001019060200180831161043a57829003601f168201915b5050505050905090565b600061047561046e610719565b848461071d565b50600192915050565b60025490565b61048f838383610809565b505050565b60006104a1848484610809565b610511846104ad610719565b61050c85604051806060016040528060288152602001610cb7602891396001600160a01b038a166000908152600160205260408120906104eb610719565b6001600160a01b031681526020810191909152604001600020549190610964565b61071d565b5060019392505050565b60055460ff1690565b6000610475610531610719565b8461050c8560016000610542610719565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906106b8565b61057c82826109fb565b5050565b61048f83838361071d565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104575780601f1061042c57610100808354040283529160200191610457565b61057c8282610aeb565b600061047561061e610719565b8461050c85604051806060016040528060258152602001610d496025913960016000610648610719565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610964565b6000610475610686610719565b8484610809565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600082820183811015610712576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166107625760405162461bcd60e51b8152600401808060200182810382526024815260200180610d256024913960400191505060405180910390fd5b6001600160a01b0382166107a75760405162461bcd60e51b8152600401808060200182810382526022815260200180610c6f6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661084e5760405162461bcd60e51b8152600401808060200182810382526025815260200180610d006025913960400191505060405180910390fd5b6001600160a01b0382166108935760405162461bcd60e51b8152600401808060200182810382526023815260200180610c2a6023913960400191505060405180910390fd5b61089e83838361048f565b6108db81604051806060016040528060268152602001610c91602691396001600160a01b0386166000908152602081905260409020549190610964565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461090a90826106b8565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109f35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109b85781810151838201526020016109a0565b50505050905090810190601f1680156109e55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610a56576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610a626000838361048f565b600254610a6f90826106b8565b6002556001600160a01b038216600090815260208190526040902054610a9590826106b8565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610b305760405162461bcd60e51b8152600401808060200182810382526021815260200180610cdf6021913960400191505060405180910390fd5b610b3c8260008361048f565b610b7981604051806060016040528060228152602001610c4d602291396001600160a01b0385166000908152602081905260409020549190610964565b6001600160a01b038316600090815260208190526040902055600254610b9f9082610be7565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061071283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061096456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220018f0e222a7ad2a0803af35a085d24af2e45a25df53c09a51bdd7a0ff5f9e63364736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC20Mock.sol","sourcemap":"120:720:40:-:0;;;154:230;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;154:230:40;;;;;;;;;;-1:-1:-1;154:230:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;154:230:40;;;;;;;;;;-1:-1:-1;154:230:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;154:230:40;;;;;;;;;;;;;;2085:12:84;;154:230:40;;-1:-1:-1;154:230:40;-1:-1:-1;316:4:40;;322:6;;2085:12:84;;:5;;:12;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;340:37:40::1;346:14:::0;362;340:5:::1;:37::i;:::-;154:230:::0;;;;120:720;;7835:370:84;-1:-1:-1;;;;;7918:21:84;;7910:65;;;;;-1:-1:-1;;;7910:65:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;7986:49;8015:1;8019:7;8028:6;7986:20;:49::i;:::-;8061:24;8078:6;8061:12;;:16;;;;;;:24;;;;:::i;:::-;8046:12;:39;-1:-1:-1;;;;;8116:18:84;;:9;:18;;;;;;;;;;;;:30;;8139:6;;8116:22;;;;;:30;;:::i;:::-;-1:-1:-1;;;;;8095:18:84;;:9;:18;;;;;;;;;;;:51;;;;8161:37;;;;;;;8095:18;;:9;;8161:37;;;;;;;;;;7835:370;;:::o;10697:92::-;;;;:::o;874:176:17:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:17:o;120:720:40:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;120:720:40;;;-1:-1:-1;120:720:40;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20NoReturnMock":{"abi":[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"allowance_","type":"uint256"}],"name":"setAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC20NoReturnMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506101af806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461008a5780633ba93f26146100c0578063a9059cbb1461005c578063dd62ed3e146100dd575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b03813516906020013561011d565b005b610088600480360360608110156100a057600080fd5b506001600160a01b03813581169160208101359091169060400135610126565b610088600480360360208110156100d657600080fd5b5035610130565b61010b600480360360408110156100f357600080fd5b506001600160a01b0381358116916020013516610159565b60408051918252519081900360200190f35b50506000600155565b5050600060015550565b8060008061013c610175565b6001600160a01b0316815260208101919091526040016000205550565b506001600160a01b031660009081526020819052604090205490565b339056fea2646970667358221220b8786d5382ea48c20834c697db1c476e88aea8e6f88940f00e953ed7d3f752a964736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","setAllowance(uint256)":"0x3ba93f26","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461008a5780633ba93f26146100c0578063a9059cbb1461005c578063dd62ed3e146100dd575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b03813516906020013561011d565b005b610088600480360360608110156100a057600080fd5b506001600160a01b03813581169160208101359091169060400135610126565b610088600480360360208110156100d657600080fd5b5035610130565b61010b600480360360408110156100f357600080fd5b506001600160a01b0381358116916020013516610159565b60408051918252519081900360200190f35b50506000600155565b5050600060015550565b8060008061013c610175565b6001600160a01b0316815260208101919091526040016000205550565b506001600160a01b031660009081526020819052604090205490565b339056fea2646970667358221220b8786d5382ea48c20834c697db1c476e88aea8e6f88940f00e953ed7d3f752a964736f6c634300060c0033"},"sourceId":"contracts/mocks/SafeERC20Helper.sol","sourcemap":"1846:757:64:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20Pausable":{"abi":[{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","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"}],"contractName":"ERC20Pausable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"ERC20 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug.","kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","paused()":"0x5c975abb","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC20/ERC20Pausable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20PausableMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"initialAccount","type":"address"},{"internalType":"uint256","name":"initialBalance","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","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":"symbol","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":"recipient","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC20PausableMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b50604051620013cb380380620013cb833981810160405260808110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604090815260208281015192909101518651929450925085918591620001c591600391850190620003ec565b508051620001db906004906020840190620003ec565b50506005805461ff001960ff1990911660121716905550620001fe828262000208565b5050505062000488565b6001600160a01b03821662000264576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620002726000838362000317565b6200028e816002546200037c60201b620006741790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620002c1918390620006746200037c821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6200032f8383836200037760201b620006d51760201c565b62000339620003de565b15620003775760405162461bcd60e51b815260040180806020018281038252602a815260200180620013a1602a913960400191505060405180910390fd5b505050565b600082820183811015620003d7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600554610100900460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200042f57805160ff19168380011785556200045f565b828001600101855582156200045f579182015b828111156200045f57825182559160200191906001019062000442565b506200046d92915062000471565b5090565b5b808211156200046d576000815560010162000472565b610f0980620004986000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80635c975abb116100975780639dc29fac116100665780639dc29fac146102d0578063a457c2d7146102fc578063a9059cbb14610328578063dd62ed3e1461035457610100565b80635c975abb1461029257806370a082311461029a5780638456cb59146102c057806395d89b41146102c857610100565b8063313ce567116100d3578063313ce5671461021257806339509351146102305780633f4ba83a1461025c57806340c10f191461026657610100565b806306fdde0314610105578063095ea7b31461018257806318160ddd146101c257806323b872dd146101dc575b600080fd5b61010d610382565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610418565b604080519115158252519081900360200190f35b6101ca610435565b60408051918252519081900360200190f35b6101ae600480360360608110156101f257600080fd5b506001600160a01b0381358116916020810135909116906040013561043b565b61021a6104c2565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024657600080fd5b506001600160a01b0381351690602001356104cb565b610264610519565b005b6102646004803603604081101561027c57600080fd5b506001600160a01b038135169060200135610523565b6101ae610531565b6101ca600480360360208110156102b057600080fd5b50356001600160a01b031661053f565b61026461055a565b61010d610562565b610264600480360360408110156102e657600080fd5b506001600160a01b0381351690602001356105c3565b6101ae6004803603604081101561031257600080fd5b506001600160a01b0381351690602001356105cd565b6101ae6004803603604081101561033e57600080fd5b506001600160a01b038135169060200135610635565b6101ca6004803603604081101561036a57600080fd5b506001600160a01b0381358116916020013516610649565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561040e5780601f106103e35761010080835404028352916020019161040e565b820191906000526020600020905b8154815290600101906020018083116103f157829003601f168201915b5050505050905090565b600061042c6104256106da565b84846106de565b50600192915050565b60025490565b60006104488484846107ca565b6104b8846104546106da565b6104b385604051806060016040528060288152602001610df3602891396001600160a01b038a166000908152600160205260408120906104926106da565b6001600160a01b031681526020810191909152604001600020549190610925565b6106de565b5060019392505050565b60055460ff1690565b600061042c6104d86106da565b846104b385600160006104e96106da565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610674565b6105216109bc565b565b61052d8282610a60565b5050565b600554610100900460ff1690565b6001600160a01b031660009081526020819052604090205490565b610521610b50565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561040e5780601f106103e35761010080835404028352916020019161040e565b61052d8282610bd8565b600061042c6105da6106da565b846104b385604051806060016040528060258152602001610e8560259139600160006106046106da565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610925565b600061042c6106426106da565b84846107ca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156106ce576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b505050565b3390565b6001600160a01b0383166107235760405162461bcd60e51b8152600401808060200182810382526024815260200180610e616024913960400191505060405180910390fd5b6001600160a01b0382166107685760405162461bcd60e51b8152600401808060200182810382526022815260200180610dab6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661080f5760405162461bcd60e51b8152600401808060200182810382526025815260200180610e3c6025913960400191505060405180910390fd5b6001600160a01b0382166108545760405162461bcd60e51b8152600401808060200182810382526023815260200180610d666023913960400191505060405180910390fd5b61085f838383610cd4565b61089c81604051806060016040528060268152602001610dcd602691396001600160a01b0386166000908152602081905260409020549190610925565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108cb9082610674565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109b45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610979578181015183820152602001610961565b50505050905090810190601f1680156109a65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600554610100900460ff16610a0f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6005805461ff00191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a436106da565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216610abb576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610ac760008383610cd4565b600254610ad49082610674565b6002556001600160a01b038216600090815260208190526040902054610afa9082610674565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600554610100900460ff1615610ba0576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6005805461ff0019166101001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610a436106da565b6001600160a01b038216610c1d5760405162461bcd60e51b8152600401808060200182810382526021815260200180610e1b6021913960400191505060405180910390fd5b610c2982600083610cd4565b610c6681604051806060016040528060228152602001610d89602291396001600160a01b0385166000908152602081905260409020549190610925565b6001600160a01b038316600090815260208190526040902055600254610c8c9082610d23565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b610cdf8383836106d5565b610ce7610531565b156106d55760405162461bcd60e51b815260040180806020018281038252602a815260200180610eaa602a913960400191505060405180910390fd5b60006106ce83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061092556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f45524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564a2646970667358221220addf479ace69620eca8f8a59c71a91863a3109a6db1c8b547dbfc36bd721051864736f6c634300060c003345524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","burn(address,uint256)":"0x9dc29fac","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","pause()":"0x8456cb59","paused()":"0x5c975abb","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd","unpause()":"0x3f4ba83a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101005760003560e01c80635c975abb116100975780639dc29fac116100665780639dc29fac146102d0578063a457c2d7146102fc578063a9059cbb14610328578063dd62ed3e1461035457610100565b80635c975abb1461029257806370a082311461029a5780638456cb59146102c057806395d89b41146102c857610100565b8063313ce567116100d3578063313ce5671461021257806339509351146102305780633f4ba83a1461025c57806340c10f191461026657610100565b806306fdde0314610105578063095ea7b31461018257806318160ddd146101c257806323b872dd146101dc575b600080fd5b61010d610382565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610418565b604080519115158252519081900360200190f35b6101ca610435565b60408051918252519081900360200190f35b6101ae600480360360608110156101f257600080fd5b506001600160a01b0381358116916020810135909116906040013561043b565b61021a6104c2565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024657600080fd5b506001600160a01b0381351690602001356104cb565b610264610519565b005b6102646004803603604081101561027c57600080fd5b506001600160a01b038135169060200135610523565b6101ae610531565b6101ca600480360360208110156102b057600080fd5b50356001600160a01b031661053f565b61026461055a565b61010d610562565b610264600480360360408110156102e657600080fd5b506001600160a01b0381351690602001356105c3565b6101ae6004803603604081101561031257600080fd5b506001600160a01b0381351690602001356105cd565b6101ae6004803603604081101561033e57600080fd5b506001600160a01b038135169060200135610635565b6101ca6004803603604081101561036a57600080fd5b506001600160a01b0381358116916020013516610649565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561040e5780601f106103e35761010080835404028352916020019161040e565b820191906000526020600020905b8154815290600101906020018083116103f157829003601f168201915b5050505050905090565b600061042c6104256106da565b84846106de565b50600192915050565b60025490565b60006104488484846107ca565b6104b8846104546106da565b6104b385604051806060016040528060288152602001610df3602891396001600160a01b038a166000908152600160205260408120906104926106da565b6001600160a01b031681526020810191909152604001600020549190610925565b6106de565b5060019392505050565b60055460ff1690565b600061042c6104d86106da565b846104b385600160006104e96106da565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610674565b6105216109bc565b565b61052d8282610a60565b5050565b600554610100900460ff1690565b6001600160a01b031660009081526020819052604090205490565b610521610b50565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561040e5780601f106103e35761010080835404028352916020019161040e565b61052d8282610bd8565b600061042c6105da6106da565b846104b385604051806060016040528060258152602001610e8560259139600160006106046106da565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610925565b600061042c6106426106da565b84846107ca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156106ce576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b505050565b3390565b6001600160a01b0383166107235760405162461bcd60e51b8152600401808060200182810382526024815260200180610e616024913960400191505060405180910390fd5b6001600160a01b0382166107685760405162461bcd60e51b8152600401808060200182810382526022815260200180610dab6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661080f5760405162461bcd60e51b8152600401808060200182810382526025815260200180610e3c6025913960400191505060405180910390fd5b6001600160a01b0382166108545760405162461bcd60e51b8152600401808060200182810382526023815260200180610d666023913960400191505060405180910390fd5b61085f838383610cd4565b61089c81604051806060016040528060268152602001610dcd602691396001600160a01b0386166000908152602081905260409020549190610925565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108cb9082610674565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109b45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610979578181015183820152602001610961565b50505050905090810190601f1680156109a65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600554610100900460ff16610a0f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6005805461ff00191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a436106da565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216610abb576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610ac760008383610cd4565b600254610ad49082610674565b6002556001600160a01b038216600090815260208190526040902054610afa9082610674565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600554610100900460ff1615610ba0576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6005805461ff0019166101001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610a436106da565b6001600160a01b038216610c1d5760405162461bcd60e51b8152600401808060200182810382526021815260200180610e1b6021913960400191505060405180910390fd5b610c2982600083610cd4565b610c6681604051806060016040528060228152602001610d89602291396001600160a01b0385166000908152602081905260409020549190610925565b6001600160a01b038316600090815260208190526040902055600254610c8c9082610d23565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b610cdf8383836106d5565b610ce7610531565b156106d55760405162461bcd60e51b815260040180806020018281038252602a815260200180610eaa602a913960400191505060405180910390fd5b60006106ce83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061092556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f45524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564a2646970667358221220addf479ace69620eca8f8a59c71a91863a3109a6db1c8b547dbfc36bd721051864736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC20PausableMock.sol","sourcemap":"136:574:41:-:0;;;186:222;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;186:222:41;;;;;;;;;;-1:-1:-1;186:222:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;186:222:41;;;;;;;;;;-1:-1:-1;186:222:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;186:222:41;;;;;;;;;;;;;;2085:12:84;;186:222:41;;-1:-1:-1;186:222:41;-1:-1:-1;340:4:41;;346:6;;2085:12:84;;:5;;:12;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;;;2133:14:84;;;2145:2;2133:14;923:15:110;;;-1:-1:-1;364:37:41::1;370:14:::0;386;364:5:::1;:37::i;:::-;186:222:::0;;;;136:574;;7835:370:84;-1:-1:-1;;;;;7918:21:84;;7910:65;;;;;-1:-1:-1;;;7910:65:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;7986:49;8015:1;8019:7;8028:6;7986:20;:49::i;:::-;8061:24;8078:6;8061:12;;:16;;;;;;:24;;;;:::i;:::-;8046:12;:39;-1:-1:-1;;;;;8116:18:84;;:9;:18;;;;;;;;;;;;:30;;8139:6;;8116:22;;;;;:30;;:::i;:::-;-1:-1:-1;;;;;8095:18:84;;:9;:18;;;;;;;;;;;:51;;;;8161:37;;;;;;;8095:18;;:9;;8161:37;;;;;;;;;;7835:370;;:::o;582:234:87:-;690:44;717:4;723:2;727:6;690:26;;;;;:44;;:::i;:::-;754:8;:6;:8::i;:::-;753:9;745:64;;;;-1:-1:-1;;;745:64:87;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;582:234;;;:::o;874:176:17:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:17:o;1040:76:110:-;1102:7;;;;;;;;1040:76::o;136:574:41:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;136:574:41;;;-1:-1:-1;136:574:41;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20PresetMinterPauser":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":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":"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_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":"PAUSER_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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","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":"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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","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":[{"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":"symbol","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":"recipient","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC20PresetMinterPauser","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b5060405162001cd238038062001cd2833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001b890600490602085019062000375565b508051620001ce90600590602084019062000375565b50506006805461ff001960ff1990911660121716905550620001fb6000620001f562000261565b62000265565b6200022a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6620001f562000261565b620002597f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a620001f562000261565b505062000411565b3390565b62000271828262000275565b5050565b6000828152602081815260409091206200029a91839062000be7620002ee821b17901c565b156200027157620002aa62000261565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000305836001600160a01b0384166200030e565b90505b92915050565b60006200031c83836200035d565b620003545750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000308565b50600062000308565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003b857805160ff1916838001178555620003e8565b82800160010185558215620003e8579182015b82811115620003e8578251825591602001919060010190620003cb565b50620003f6929150620003fa565b5090565b5b80821115620003f65760008155600101620003fb565b6118b180620004216000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063a457c2d711610097578063d539139311610071578063d53913931461051f578063d547741f14610527578063dd62ed3e14610553578063e63ab1e914610581576101a9565b8063a457c2d7146104aa578063a9059cbb146104d6578063ca15c87314610502576101a9565b80639010d07c116100d35780639010d07c1461042f57806391d148541461046e57806395d89b411461049a578063a217fddf146104a2576101a9565b806370a08231146103d557806379cc6790146103fb5780638456cb5914610427576101a9565b8063313ce567116101665780633f4ba83a116101405780633f4ba83a1461037c57806340c10f191461038457806342966c68146103b05780635c975abb146103cd576101a9565b8063313ce5671461030657806336568abe146103245780633950935114610350576101a9565b806306fdde03146101ae578063095ea7b31461022b57806318160ddd1461026b57806323b872dd14610285578063248a9ca3146102bb5780632f2ff15d146102d8575b600080fd5b6101b6610589565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f05781810151838201526020016101d8565b50505050905090810190601f16801561021d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102576004803603604081101561024157600080fd5b506001600160a01b03813516906020013561061f565b604080519115158252519081900360200190f35b61027361063d565b60408051918252519081900360200190f35b6102576004803603606081101561029b57600080fd5b506001600160a01b03813581169160208101359091169060400135610643565b610273600480360360208110156102d157600080fd5b50356106ca565b610304600480360360408110156102ee57600080fd5b50803590602001356001600160a01b03166106df565b005b61030e61074b565b6040805160ff9092168252519081900360200190f35b6103046004803603604081101561033a57600080fd5b50803590602001356001600160a01b0316610754565b6102576004803603604081101561036657600080fd5b506001600160a01b0381351690602001356107b5565b610304610803565b6103046004803603604081101561039a57600080fd5b506001600160a01b038135169060200135610874565b610304600480360360208110156103c657600080fd5b50356108e5565b6102576108f9565b610273600480360360208110156103eb57600080fd5b50356001600160a01b0316610907565b6103046004803603604081101561041157600080fd5b506001600160a01b038135169060200135610922565b61030461097c565b6104526004803603604081101561044557600080fd5b50803590602001356109eb565b604080516001600160a01b039092168252519081900360200190f35b6102576004803603604081101561048457600080fd5b50803590602001356001600160a01b0316610a0a565b6101b6610a22565b610273610a83565b610257600480360360408110156104c057600080fd5b506001600160a01b038135169060200135610a88565b610257600480360360408110156104ec57600080fd5b506001600160a01b038135169060200135610af0565b6102736004803603602081101561051857600080fd5b5035610b04565b610273610b1b565b6103046004803603604081101561053d57600080fd5b50803590602001356001600160a01b0316610b3f565b6102736004803603604081101561056957600080fd5b506001600160a01b0381358116916020013516610b98565b610273610bc3565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106155780601f106105ea57610100808354040283529160200191610615565b820191906000526020600020905b8154815290600101906020018083116105f857829003601f168201915b5050505050905090565b600061063361062c610bfc565b8484610c00565b5060015b92915050565b60035490565b6000610650848484610cec565b6106c08461065c610bfc565b6106bb856040518060600160405280602881526020016116db602891396001600160a01b038a1660009081526002602052604081209061069a610bfc565b6001600160a01b031681526020810191909152604001600020549190610e49565b610c00565b5060019392505050565b60009081526020819052604090206002015490565b600082815260208190526040902060020154610702906106fd610bfc565b610a0a565b61073d5760405162461bcd60e51b815260040180806020018281038252602f8152602001806115d9602f913960400191505060405180910390fd5b6107478282610ee0565b5050565b60065460ff1690565b61075c610bfc565b6001600160a01b0316816001600160a01b0316146107ab5760405162461bcd60e51b815260040180806020018281038252602f815260200180611823602f913960400191505060405180910390fd5b6107478282610f49565b60006106336107c2610bfc565b846106bb85600260006107d3610bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610fb2565b61082f7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106fd610bfc565b61086a5760405162461bcd60e51b815260040180806020018281038252603981526020018061162a6039913960400191505060405180910390fd5b61087261100c565b565b6108a07f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66106fd610bfc565b6108db5760405162461bcd60e51b81526004018080602001828103825260368152602001806117036036913960400191505060405180910390fd5b61074782826110b0565b6108f66108f0610bfc565b826111a2565b50565b600654610100900460ff1690565b6001600160a01b031660009081526001602052604090205490565b600061095982604051806060016040528060248152602001611739602491396109528661094d610bfc565b610b98565b9190610e49565b905061096d83610967610bfc565b83610c00565b61097783836111a2565b505050565b6109a87f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106fd610bfc565b6109e35760405162461bcd60e51b81526004018080602001828103825260378152602001806117c76037913960400191505060405180910390fd5b61087261129e565b6000828152602081905260408120610a039083611326565b9392505050565b6000828152602081905260408120610a039083611332565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106155780601f106105ea57610100808354040283529160200191610615565b600081565b6000610633610a95610bfc565b846106bb856040518060600160405280602581526020016117fe6025913960026000610abf610bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610e49565b6000610633610afd610bfc565b8484610cec565b600081815260208190526040812061063790611347565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600082815260208190526040902060020154610b5d906106fd610bfc565b6107ab5760405162461bcd60e51b81526004018080602001828103825260308152602001806116ab6030913960400191505060405180910390fd5b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000610a03836001600160a01b038416611352565b3390565b6001600160a01b038316610c455760405162461bcd60e51b81526004018080602001828103825260248152602001806117a36024913960400191505060405180910390fd5b6001600160a01b038216610c8a5760405162461bcd60e51b81526004018080602001828103825260228152602001806116636022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610d315760405162461bcd60e51b815260040180806020018281038252602581526020018061177e6025913960400191505060405180910390fd5b6001600160a01b038216610d765760405162461bcd60e51b81526004018080602001828103825260238152602001806115b66023913960400191505060405180910390fd5b610d8183838361139c565b610dbe81604051806060016040528060268152602001611685602691396001600160a01b0386166000908152600160205260409020549190610e49565b6001600160a01b038085166000908152600160205260408082209390935590841681522054610ded9082610fb2565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610ed85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e9d578181015183820152602001610e85565b50505050905090810190601f168015610eca5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828152602081905260409020610ef89082610be7565b1561074757610f05610bfc565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020610f6190826113a7565b1561074757610f6e610bfc565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600082820183811015610a03576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600654610100900460ff1661105f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6006805461ff00191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611093610bfc565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b03821661110b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6111176000838361139c565b6003546111249082610fb2565b6003556001600160a01b03821660009081526001602052604090205461114a9082610fb2565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166111e75760405162461bcd60e51b815260040180806020018281038252602181526020018061175d6021913960400191505060405180910390fd5b6111f38260008361139c565b61123081604051806060016040528060228152602001611608602291396001600160a01b0385166000908152600160205260409020549190610e49565b6001600160a01b03831660009081526001602052604090205560035461125690826113bc565b6003556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600654610100900460ff16156112ee576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6006805461ff0019166101001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611093610bfc565b6000610a0383836113fe565b6000610a03836001600160a01b038416611462565b60006106378261147a565b600061135e8383611462565b61139457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610637565b506000610637565b61097783838361147e565b6000610a03836001600160a01b0384166114cd565b6000610a0383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e49565b815460009082106114405760405162461bcd60e51b81526004018080602001828103825260228152602001806115946022913960400191505060405180910390fd5b82600001828154811061144f57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b611489838383610977565b6114916108f9565b156109775760405162461bcd60e51b815260040180806020018281038252602a815260200180611852602a913960400191505060405180910390fd5b60008181526001830160205260408120548015611589578354600019808301919081019060009087908390811061150057fe5b906000526020600020015490508087600001848154811061151d57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061154d57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610637565b600091505061063756fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332305072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e706175736545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332305072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e7445524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332305072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20706175736545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c6645524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564a26469706673582212200a7a3cb1441f55aac9862da57b80657ed79302c590ad2df05ce9ce6b6b563ba464736f6c634300060c0033"},"devdoc":{"details":"{ERC20} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers This contract uses {AccessControl} to lock permissioned functions using the different roles - head to its documentation for details. The account that deploys the contract will be granted the minter and pauser roles, as well as the default admin role, which will let it grant both minter and pauser roles to other accounts.","kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"burn(uint256)":{"details":"Destroys `amount` tokens from the caller. See {ERC20-_burn}."},"burnFrom(address,uint256)":{"details":"Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`."},"constructor":{"details":"Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the account that deploys the contract. See {ERC20-constructor}."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"getRoleAdmin(bytes32)":{"details":"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."},"getRoleMember(bytes32,uint256)":{"details":"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."},"getRoleMemberCount(bytes32)":{"details":"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."},"grantRole(bytes32,address)":{"details":"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."},"hasRole(bytes32,address)":{"details":"Returns `true` if `account` has been granted `role`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"mint(address,uint256)":{"details":"Creates `amount` new tokens for `to`. See {ERC20-_mint}. Requirements: - the caller must have the `MINTER_ROLE`."},"name()":{"details":"Returns the name of the token."},"pause()":{"details":"Pauses all token transfers. See {ERC20Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"renounceRole(bytes32,address)":{"details":"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."},"revokeRole(bytes32,address)":{"details":"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."},"unpause()":{"details":"Unpauses all token transfers. See {ERC20Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`."}},"version":1},"methodIdentifiers":{"DEFAULT_ADMIN_ROLE()":"0xa217fddf","MINTER_ROLE()":"0xd5391393","PAUSER_ROLE()":"0xe63ab1e9","allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","burn(uint256)":"0x42966c68","burnFrom(address,uint256)":"0x79cc6790","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","getRoleAdmin(bytes32)":"0x248a9ca3","getRoleMember(bytes32,uint256)":"0x9010d07c","getRoleMemberCount(bytes32)":"0xca15c873","grantRole(bytes32,address)":"0x2f2ff15d","hasRole(bytes32,address)":"0x91d14854","increaseAllowance(address,uint256)":"0x39509351","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","pause()":"0x8456cb59","paused()":"0x5c975abb","renounceRole(bytes32,address)":"0x36568abe","revokeRole(bytes32,address)":"0xd547741f","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd","unpause()":"0x3f4ba83a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063a457c2d711610097578063d539139311610071578063d53913931461051f578063d547741f14610527578063dd62ed3e14610553578063e63ab1e914610581576101a9565b8063a457c2d7146104aa578063a9059cbb146104d6578063ca15c87314610502576101a9565b80639010d07c116100d35780639010d07c1461042f57806391d148541461046e57806395d89b411461049a578063a217fddf146104a2576101a9565b806370a08231146103d557806379cc6790146103fb5780638456cb5914610427576101a9565b8063313ce567116101665780633f4ba83a116101405780633f4ba83a1461037c57806340c10f191461038457806342966c68146103b05780635c975abb146103cd576101a9565b8063313ce5671461030657806336568abe146103245780633950935114610350576101a9565b806306fdde03146101ae578063095ea7b31461022b57806318160ddd1461026b57806323b872dd14610285578063248a9ca3146102bb5780632f2ff15d146102d8575b600080fd5b6101b6610589565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f05781810151838201526020016101d8565b50505050905090810190601f16801561021d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102576004803603604081101561024157600080fd5b506001600160a01b03813516906020013561061f565b604080519115158252519081900360200190f35b61027361063d565b60408051918252519081900360200190f35b6102576004803603606081101561029b57600080fd5b506001600160a01b03813581169160208101359091169060400135610643565b610273600480360360208110156102d157600080fd5b50356106ca565b610304600480360360408110156102ee57600080fd5b50803590602001356001600160a01b03166106df565b005b61030e61074b565b6040805160ff9092168252519081900360200190f35b6103046004803603604081101561033a57600080fd5b50803590602001356001600160a01b0316610754565b6102576004803603604081101561036657600080fd5b506001600160a01b0381351690602001356107b5565b610304610803565b6103046004803603604081101561039a57600080fd5b506001600160a01b038135169060200135610874565b610304600480360360208110156103c657600080fd5b50356108e5565b6102576108f9565b610273600480360360208110156103eb57600080fd5b50356001600160a01b0316610907565b6103046004803603604081101561041157600080fd5b506001600160a01b038135169060200135610922565b61030461097c565b6104526004803603604081101561044557600080fd5b50803590602001356109eb565b604080516001600160a01b039092168252519081900360200190f35b6102576004803603604081101561048457600080fd5b50803590602001356001600160a01b0316610a0a565b6101b6610a22565b610273610a83565b610257600480360360408110156104c057600080fd5b506001600160a01b038135169060200135610a88565b610257600480360360408110156104ec57600080fd5b506001600160a01b038135169060200135610af0565b6102736004803603602081101561051857600080fd5b5035610b04565b610273610b1b565b6103046004803603604081101561053d57600080fd5b50803590602001356001600160a01b0316610b3f565b6102736004803603604081101561056957600080fd5b506001600160a01b0381358116916020013516610b98565b610273610bc3565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106155780601f106105ea57610100808354040283529160200191610615565b820191906000526020600020905b8154815290600101906020018083116105f857829003601f168201915b5050505050905090565b600061063361062c610bfc565b8484610c00565b5060015b92915050565b60035490565b6000610650848484610cec565b6106c08461065c610bfc565b6106bb856040518060600160405280602881526020016116db602891396001600160a01b038a1660009081526002602052604081209061069a610bfc565b6001600160a01b031681526020810191909152604001600020549190610e49565b610c00565b5060019392505050565b60009081526020819052604090206002015490565b600082815260208190526040902060020154610702906106fd610bfc565b610a0a565b61073d5760405162461bcd60e51b815260040180806020018281038252602f8152602001806115d9602f913960400191505060405180910390fd5b6107478282610ee0565b5050565b60065460ff1690565b61075c610bfc565b6001600160a01b0316816001600160a01b0316146107ab5760405162461bcd60e51b815260040180806020018281038252602f815260200180611823602f913960400191505060405180910390fd5b6107478282610f49565b60006106336107c2610bfc565b846106bb85600260006107d3610bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610fb2565b61082f7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106fd610bfc565b61086a5760405162461bcd60e51b815260040180806020018281038252603981526020018061162a6039913960400191505060405180910390fd5b61087261100c565b565b6108a07f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66106fd610bfc565b6108db5760405162461bcd60e51b81526004018080602001828103825260368152602001806117036036913960400191505060405180910390fd5b61074782826110b0565b6108f66108f0610bfc565b826111a2565b50565b600654610100900460ff1690565b6001600160a01b031660009081526001602052604090205490565b600061095982604051806060016040528060248152602001611739602491396109528661094d610bfc565b610b98565b9190610e49565b905061096d83610967610bfc565b83610c00565b61097783836111a2565b505050565b6109a87f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106fd610bfc565b6109e35760405162461bcd60e51b81526004018080602001828103825260378152602001806117c76037913960400191505060405180910390fd5b61087261129e565b6000828152602081905260408120610a039083611326565b9392505050565b6000828152602081905260408120610a039083611332565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106155780601f106105ea57610100808354040283529160200191610615565b600081565b6000610633610a95610bfc565b846106bb856040518060600160405280602581526020016117fe6025913960026000610abf610bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610e49565b6000610633610afd610bfc565b8484610cec565b600081815260208190526040812061063790611347565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600082815260208190526040902060020154610b5d906106fd610bfc565b6107ab5760405162461bcd60e51b81526004018080602001828103825260308152602001806116ab6030913960400191505060405180910390fd5b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000610a03836001600160a01b038416611352565b3390565b6001600160a01b038316610c455760405162461bcd60e51b81526004018080602001828103825260248152602001806117a36024913960400191505060405180910390fd5b6001600160a01b038216610c8a5760405162461bcd60e51b81526004018080602001828103825260228152602001806116636022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610d315760405162461bcd60e51b815260040180806020018281038252602581526020018061177e6025913960400191505060405180910390fd5b6001600160a01b038216610d765760405162461bcd60e51b81526004018080602001828103825260238152602001806115b66023913960400191505060405180910390fd5b610d8183838361139c565b610dbe81604051806060016040528060268152602001611685602691396001600160a01b0386166000908152600160205260409020549190610e49565b6001600160a01b038085166000908152600160205260408082209390935590841681522054610ded9082610fb2565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610ed85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e9d578181015183820152602001610e85565b50505050905090810190601f168015610eca5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828152602081905260409020610ef89082610be7565b1561074757610f05610bfc565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020610f6190826113a7565b1561074757610f6e610bfc565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600082820183811015610a03576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600654610100900460ff1661105f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6006805461ff00191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611093610bfc565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b03821661110b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6111176000838361139c565b6003546111249082610fb2565b6003556001600160a01b03821660009081526001602052604090205461114a9082610fb2565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166111e75760405162461bcd60e51b815260040180806020018281038252602181526020018061175d6021913960400191505060405180910390fd5b6111f38260008361139c565b61123081604051806060016040528060228152602001611608602291396001600160a01b0385166000908152600160205260409020549190610e49565b6001600160a01b03831660009081526001602052604090205560035461125690826113bc565b6003556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600654610100900460ff16156112ee576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6006805461ff0019166101001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611093610bfc565b6000610a0383836113fe565b6000610a03836001600160a01b038416611462565b60006106378261147a565b600061135e8383611462565b61139457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610637565b506000610637565b61097783838361147e565b6000610a03836001600160a01b0384166114cd565b6000610a0383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e49565b815460009082106114405760405162461bcd60e51b81526004018080602001828103825260228152602001806115946022913960400191505060405180910390fd5b82600001828154811061144f57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b611489838383610977565b6114916108f9565b156109775760405162461bcd60e51b815260040180806020018281038252602a815260200180611852602a913960400191505060405180910390fd5b60008181526001830160205260408120548015611589578354600019808301919081019060009087908390811061150057fe5b906000526020600020015490508087600001848154811061151d57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061154d57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610637565b600091505061063756fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332305072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e706175736545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332305072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e7445524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332305072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20706175736545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c6645524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564a26469706673582212200a7a3cb1441f55aac9862da57b80657ed79302c590ad2df05ce9ce6b6b563ba464736f6c634300060c0033"},"sourceId":"contracts/presets/ERC20PresetMinterPauser.sol","sourcemap":"814:1980:74:-:0;;;1223:237;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1223:237:74;;;;;;;;;;-1:-1:-1;1223:237:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1223:237:74;;;;;;;;;;-1:-1:-1;1223:237:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1223:237:74;;-1:-1:-1;;2085:12:84;;1290:4:74;;-1:-1:-1;1296:6:74;;2085:12:84;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;;;2133:14:84;;;2145:2;2133:14;923:15:110;;;-1:-1:-1;1314:44:74::1;2133:9:84::0;1345:12:74::1;:10;:12::i;:::-;1314:10;:44::i;:::-;1369:37;947:24;1393:12;:10;:12::i;1369:37::-;1416;1015:24;1440:12;:10;:12::i;1416:37::-;1223:237:::0;;814:1980;;590:104:0;677:10;590:104;:::o;6578:110:6:-;6656:25;6667:4;6673:7;6656:10;:25::i;:::-;6578:110;;:::o;7015:184::-;7088:6;:12;;;;;;;;;;;:33;;7113:7;;7088:24;;;;;:33;;:::i;:::-;7084:109;;;7169:12;:10;:12::i;:::-;-1:-1:-1;;;;;7142:40:6;7160:7;-1:-1:-1;;;;;7142:40:6;7154:4;7142:40;;;;;;;;;;7015:184;;:::o;4864:141:109:-;4934:4;4957:41;4962:3;-1:-1:-1;;;;;4982:14:109;;4957:4;:41::i;:::-;4950:48;;4864:141;;;;;:::o;1611:404::-;1674:4;1695:21;1705:3;1710:5;1695:9;:21::i;:::-;1690:319;;-1:-1:-1;1732:23:109;;;;;;;;:11;:23;;;;;;;;;;;;;1912:18;;1890:19;;;:12;;;:19;;;;;;:40;;;;1944:11;;1690:319;-1:-1:-1;1993:5:109;1986:12;;3776:127;3849:4;3872:19;;;:12;;;;;:19;;;;;;:24;;;3776:127::o;814:1980:74:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;814:1980:74;;;-1:-1:-1;814:1980:74;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20ReturnFalseMock":{"abi":[{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC20ReturnFalseMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610171806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063095ea7b31461005157806323b872dd14610091578063a9059cbb14610051578063dd62ed3e146100c7575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b038135169060200135610107565b604080519115158252519081900360200190f35b61007d600480360360608110156100a757600080fd5b506001600160a01b03813581169160208101359091169060400135610113565b6100f5600480360360408110156100dd57600080fd5b506001600160a01b0381358116916020013516610121565b60408051918252519081900360200190f35b50506000600181905590565b600060018190559392505050565b600060015460001461013257600080fd5b5060009291505056fea26469706673582212201a125d07a99d98c1c6805dcec80d255eb61802ae9679de2d1df2af9bda35b42f64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063095ea7b31461005157806323b872dd14610091578063a9059cbb14610051578063dd62ed3e146100c7575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b038135169060200135610107565b604080519115158252519081900360200190f35b61007d600480360360608110156100a757600080fd5b506001600160a01b03813581169160208101359091169060400135610113565b6100f5600480360360408110156100dd57600080fd5b506001600160a01b0381358116916020013516610121565b60408051918252519081900360200190f35b50506000600181905590565b600060018190559392505050565b600060015460001461013257600080fd5b5060009291505056fea26469706673582212201a125d07a99d98c1c6805dcec80d255eb61802ae9679de2d1df2af9bda35b42f64736f6c634300060c0033"},"sourceId":"contracts/mocks/SafeERC20Helper.sol","sourcemap":"163:812:64:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20ReturnTrueMock":{"abi":[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"allowance_","type":"uint256"}],"name":"setAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC20ReturnTrueMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506101ca806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461009c5780633ba93f26146100d2578063a9059cbb1461005c578063dd62ed3e146100f1575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b038135169060200135610131565b604080519115158252519081900360200190f35b610088600480360360608110156100b257600080fd5b506001600160a01b0381358116916020810135909116906040013561013d565b6100ef600480360360208110156100e857600080fd5b503561014b565b005b61011f6004803603604081101561010757600080fd5b506001600160a01b0381358116916020013516610174565b60408051918252519081900360200190f35b50506000600190815590565b600060019081559392505050565b80600080610157610190565b6001600160a01b0316815260208101919091526040016000205550565b506001600160a01b031660009081526020819052604090205490565b339056fea26469706673582212202a6f0a245a1b438227e189e2291c8fda698c8671d9902452cbcfe34d9c51ebb964736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","setAllowance(uint256)":"0x3ba93f26","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461009c5780633ba93f26146100d2578063a9059cbb1461005c578063dd62ed3e146100f1575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b038135169060200135610131565b604080519115158252519081900360200190f35b610088600480360360608110156100b257600080fd5b506001600160a01b0381358116916020810135909116906040013561013d565b6100ef600480360360208110156100e857600080fd5b503561014b565b005b61011f6004803603604081101561010757600080fd5b506001600160a01b0381358116916020013516610174565b60408051918252519081900360200190f35b50506000600190815590565b600060019081559392505050565b80600080610157610190565b6001600160a01b0316815260208101919091526040016000205550565b506001600160a01b031660009081526020819052604090205490565b339056fea26469706673582212202a6f0a245a1b438227e189e2291c8fda698c8671d9902452cbcfe34d9c51ebb964736f6c634300060c0033"},"sourceId":"contracts/mocks/SafeERC20Helper.sol","sourcemap":"977:867:64:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20Snapshot":{"abi":[{"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":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","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"},{"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":"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":"snapshotId","type":"uint256"}],"name":"balanceOfAt","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","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"}],"contractName":"ERC20Snapshot","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and total supply at the time are recorded for later access. This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting. In naive implementations it's possible to perform a \"double spend\" attack by reusing the same balance from different accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be used to create an efficient ERC20 forking mechanism. Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id and the account address. ==== Gas Costs Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much smaller since identical balances in subsequent snapshots are stored as a single entry. There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent transfers will have normal cost until the next snapshot, and so on.","events":{"Snapshot(uint256)":{"details":"Emitted by {_snapshot} when a snapshot identified by `id` is created."}},"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"balanceOfAt(address,uint256)":{"details":"Retrieves the balance of `account` at the time `snapshotId` was created."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"totalSupplyAt(uint256)":{"details":"Retrieves the total supply at the time `snapshotId` was created."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","balanceOfAt(address,uint256)":"0x4ee2cd7e","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","totalSupplyAt(uint256)":"0x981b24d0","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC20/ERC20Snapshot.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20SnapshotMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"initialAccount","type":"address"},{"internalType":"uint256","name":"initialBalance","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","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"},{"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":"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":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"snapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","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":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","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"}],"contractName":"ERC20SnapshotMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200168b3803806200168b833981810160405260808110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604090815260208281015192909101518651929450925085918591620001c591600391850190620004a8565b508051620001db906004906020840190620004a8565b50506005805460ff1916601217905550620001f7828262000201565b5050505062000544565b6200020c8262000231565b6200021662000262565b6200022d82826200027460201b620007161760201c565b5050565b6001600160a01b03811660009081526006602052604090206200025f90620002598362000383565b620003a2565b50565b6200027260076200025962000403565b565b6001600160a01b038216620002d0576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620002de60008383620003fe565b620002fa816002546200040960201b620008061790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200032d9183906200080662000409821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0381166000908152602081905260409020545b919050565b6000620003bb60096200046b60201b620008671760201c565b905080620003c9846200046f565b1015620003fe578254600181810185556000858152602080822090930184905581860180549283018155815291909120018290555b505050565b60025490565b60008282018381101562000464576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b5490565b805460009062000482575060006200039d565b8154829060001981019081106200049557fe5b906000526020600020015490506200039d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004eb57805160ff19168380011785556200051b565b828001600101855582156200051b579182015b828111156200051b578251825591602001919060010190620004fe565b50620005299291506200052d565b5090565b5b808211156200052957600081556001016200052e565b61113780620005546000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806370a08231116100975780639dc29fac116100665780639dc29fac14610309578063a457c2d714610335578063a9059cbb14610361578063dd62ed3e1461038d57610100565b806370a08231146102b657806395d89b41146102dc5780639711715a146102e4578063981b24d0146102ec57610100565b8063313ce567116100d3578063313ce56714610212578063395093511461023057806340c10f191461025c5780634ee2cd7e1461028a57610100565b806306fdde0314610105578063095ea7b31461018257806318160ddd146101c257806323b872dd146101dc575b600080fd5b61010d6103bb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610451565b604080519115158252519081900360200190f35b6101ca61046f565b60408051918252519081900360200190f35b6101ae600480360360608110156101f257600080fd5b506001600160a01b03813581169160208101359091169060400135610475565b61021a6104fc565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024657600080fd5b506001600160a01b038135169060200135610505565b6102886004803603604081101561027257600080fd5b506001600160a01b038135169060200135610553565b005b6101ca600480360360408110156102a057600080fd5b506001600160a01b038135169060200135610561565b6101ca600480360360208110156102cc57600080fd5b50356001600160a01b03166105aa565b61010d6105c9565b61028861062a565b6101ca6004803603602081101561030257600080fd5b5035610635565b6102886004803603604081101561031f57600080fd5b506001600160a01b038135169060200135610665565b6101ae6004803603604081101561034b57600080fd5b506001600160a01b03813516906020013561066f565b6101ae6004803603604081101561037757600080fd5b506001600160a01b0381351690602001356106d7565b6101ca600480360360408110156103a357600080fd5b506001600160a01b03813581169160200135166106eb565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104475780601f1061041c57610100808354040283529160200191610447565b820191906000526020600020905b81548152906001019060200180831161042a57829003601f168201915b5050505050905090565b600061046561045e61086b565b848461086f565b5060015b92915050565b60025490565b600061048284848461095b565b6104f28461048e61086b565b6104ed8560405180606001604052806028815260200161104b602891396001600160a01b038a166000908152600160205260408120906104cc61086b565b6001600160a01b03168152602081019190915260400160002054919061097d565b61086f565b5060019392505050565b60055460ff1690565b600061046561051261086b565b846104ed856001600061052361086b565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610806565b61055d8282610a14565b5050565b6001600160a01b038216600090815260066020526040812081908190610588908590610a2f565b915091508161059f5761059a856105aa565b6105a1565b805b95945050505050565b6001600160a01b0381166000908152602081905260409020545b919050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104475780601f1061041c57610100808354040283529160200191610447565b610632610b2c565b50565b6000806000610645846007610a2f565b915091508161065b5761065661046f565b61065d565b805b949350505050565b61055d8282610b80565b600061046561067c61086b565b846104ed856040518060600160405280602581526020016110dd60259139600160006106a661086b565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061097d565b60006104656106e461086b565b848461095b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038216610771576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61077d60008383610978565b60025461078a9082610806565b6002556001600160a01b0382166000908152602081905260409020546107b09082610806565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082820183811015610860576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b5490565b3390565b6001600160a01b0383166108b45760405162461bcd60e51b81526004018080602001828103825260248152602001806110b96024913960400191505060405180910390fd5b6001600160a01b0382166108f95760405162461bcd60e51b81526004018080602001828103825260228152602001806110036022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b61096483610b9b565b61096d82610b9b565b610978838383610bc5565b505050565b60008184841115610a0c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109d15781810151838201526020016109b9565b50505050905090810190601f1680156109fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b610a1d82610b9b565b610a25610d20565b61055d8282610716565b60008060008411610a80576040805162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b604482015290519081900360640190fd5b610a8a6009610867565b841115610ade576040805162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e74206964000000604482015290519081900360640190fd5b6000610aea8486610d2f565b8454909150811415610b03576000809250925050610b25565b6001846001018281548110610b1457fe5b906000526020600020015492509250505b9250929050565b6000610b386009610dd0565b6000610b446009610867565b6040805182815290519192507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67919081900360200190a1905090565b610b8982610b9b565b610b91610d20565b61055d8282610dd9565b6001600160a01b038116600090815260066020526040902061063290610bc0836105aa565b610ed5565b6001600160a01b038316610c0a5760405162461bcd60e51b81526004018080602001828103825260258152602001806110946025913960400191505060405180910390fd5b6001600160a01b038216610c4f5760405162461bcd60e51b8152600401808060200182810382526023815260200180610fbe6023913960400191505060405180910390fd5b610c5a838383610978565b610c9781604051806060016040528060268152602001611025602691396001600160a01b038616600090815260208190526040902054919061097d565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610cc69082610806565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b610d2d6007610bc061046f565b565b8154600090610d4057506000610469565b82546000905b80821015610d8f576000610d5a8383610f21565b905084868281548110610d6957fe5b90600052602060002001541115610d8257809150610d89565b8060010192505b50610d46565b600082118015610db7575083856001840381548110610daa57fe5b9060005260206000200154145b15610dc85750600019019050610469565b509050610469565b80546001019055565b6001600160a01b038216610e1e5760405162461bcd60e51b81526004018080602001828103825260218152602001806110736021913960400191505060405180910390fd5b610e2a82600083610978565b610e6781604051806060016040528060228152602001610fe1602291396001600160a01b038516600090815260208190526040902054919061097d565b6001600160a01b038316600090815260208190526040902055600254610e8d9082610f46565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000610ee16009610867565b905080610eed84610f88565b1015610978578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b60006002808306600285060181610f3457fe5b04600283046002850401019392505050565b600061086083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061097d565b8054600090610f99575060006105c4565b815482906000198101908110610fab57fe5b906000526020600020015490506105c456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220cb0bb080c4602f63740b94ba195debbaba1475fe7a0f7344de1c0ee088876a3164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"balanceOfAt(address,uint256)":{"details":"Retrieves the balance of `account` at the time `snapshotId` was created."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"totalSupplyAt(uint256)":{"details":"Retrieves the total supply at the time `snapshotId` was created."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","balanceOfAt(address,uint256)":"0x4ee2cd7e","burn(address,uint256)":"0x9dc29fac","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","snapshot()":"0x9711715a","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","totalSupplyAt(uint256)":"0x981b24d0","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101005760003560e01c806370a08231116100975780639dc29fac116100665780639dc29fac14610309578063a457c2d714610335578063a9059cbb14610361578063dd62ed3e1461038d57610100565b806370a08231146102b657806395d89b41146102dc5780639711715a146102e4578063981b24d0146102ec57610100565b8063313ce567116100d3578063313ce56714610212578063395093511461023057806340c10f191461025c5780634ee2cd7e1461028a57610100565b806306fdde0314610105578063095ea7b31461018257806318160ddd146101c257806323b872dd146101dc575b600080fd5b61010d6103bb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610451565b604080519115158252519081900360200190f35b6101ca61046f565b60408051918252519081900360200190f35b6101ae600480360360608110156101f257600080fd5b506001600160a01b03813581169160208101359091169060400135610475565b61021a6104fc565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024657600080fd5b506001600160a01b038135169060200135610505565b6102886004803603604081101561027257600080fd5b506001600160a01b038135169060200135610553565b005b6101ca600480360360408110156102a057600080fd5b506001600160a01b038135169060200135610561565b6101ca600480360360208110156102cc57600080fd5b50356001600160a01b03166105aa565b61010d6105c9565b61028861062a565b6101ca6004803603602081101561030257600080fd5b5035610635565b6102886004803603604081101561031f57600080fd5b506001600160a01b038135169060200135610665565b6101ae6004803603604081101561034b57600080fd5b506001600160a01b03813516906020013561066f565b6101ae6004803603604081101561037757600080fd5b506001600160a01b0381351690602001356106d7565b6101ca600480360360408110156103a357600080fd5b506001600160a01b03813581169160200135166106eb565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104475780601f1061041c57610100808354040283529160200191610447565b820191906000526020600020905b81548152906001019060200180831161042a57829003601f168201915b5050505050905090565b600061046561045e61086b565b848461086f565b5060015b92915050565b60025490565b600061048284848461095b565b6104f28461048e61086b565b6104ed8560405180606001604052806028815260200161104b602891396001600160a01b038a166000908152600160205260408120906104cc61086b565b6001600160a01b03168152602081019190915260400160002054919061097d565b61086f565b5060019392505050565b60055460ff1690565b600061046561051261086b565b846104ed856001600061052361086b565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610806565b61055d8282610a14565b5050565b6001600160a01b038216600090815260066020526040812081908190610588908590610a2f565b915091508161059f5761059a856105aa565b6105a1565b805b95945050505050565b6001600160a01b0381166000908152602081905260409020545b919050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104475780601f1061041c57610100808354040283529160200191610447565b610632610b2c565b50565b6000806000610645846007610a2f565b915091508161065b5761065661046f565b61065d565b805b949350505050565b61055d8282610b80565b600061046561067c61086b565b846104ed856040518060600160405280602581526020016110dd60259139600160006106a661086b565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061097d565b60006104656106e461086b565b848461095b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038216610771576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61077d60008383610978565b60025461078a9082610806565b6002556001600160a01b0382166000908152602081905260409020546107b09082610806565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082820183811015610860576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b5490565b3390565b6001600160a01b0383166108b45760405162461bcd60e51b81526004018080602001828103825260248152602001806110b96024913960400191505060405180910390fd5b6001600160a01b0382166108f95760405162461bcd60e51b81526004018080602001828103825260228152602001806110036022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b61096483610b9b565b61096d82610b9b565b610978838383610bc5565b505050565b60008184841115610a0c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109d15781810151838201526020016109b9565b50505050905090810190601f1680156109fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b610a1d82610b9b565b610a25610d20565b61055d8282610716565b60008060008411610a80576040805162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b604482015290519081900360640190fd5b610a8a6009610867565b841115610ade576040805162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e74206964000000604482015290519081900360640190fd5b6000610aea8486610d2f565b8454909150811415610b03576000809250925050610b25565b6001846001018281548110610b1457fe5b906000526020600020015492509250505b9250929050565b6000610b386009610dd0565b6000610b446009610867565b6040805182815290519192507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67919081900360200190a1905090565b610b8982610b9b565b610b91610d20565b61055d8282610dd9565b6001600160a01b038116600090815260066020526040902061063290610bc0836105aa565b610ed5565b6001600160a01b038316610c0a5760405162461bcd60e51b81526004018080602001828103825260258152602001806110946025913960400191505060405180910390fd5b6001600160a01b038216610c4f5760405162461bcd60e51b8152600401808060200182810382526023815260200180610fbe6023913960400191505060405180910390fd5b610c5a838383610978565b610c9781604051806060016040528060268152602001611025602691396001600160a01b038616600090815260208190526040902054919061097d565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610cc69082610806565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b610d2d6007610bc061046f565b565b8154600090610d4057506000610469565b82546000905b80821015610d8f576000610d5a8383610f21565b905084868281548110610d6957fe5b90600052602060002001541115610d8257809150610d89565b8060010192505b50610d46565b600082118015610db7575083856001840381548110610daa57fe5b9060005260206000200154145b15610dc85750600019019050610469565b509050610469565b80546001019055565b6001600160a01b038216610e1e5760405162461bcd60e51b81526004018080602001828103825260218152602001806110736021913960400191505060405180910390fd5b610e2a82600083610978565b610e6781604051806060016040528060228152602001610fe1602291396001600160a01b038516600090815260208190526040902054919061097d565b6001600160a01b038316600090815260208190526040902055600254610e8d9082610f46565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000610ee16009610867565b905080610eed84610f88565b1015610978578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b60006002808306600285060181610f3457fe5b04600283046002850401019392505050565b600061086083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061097d565b8054600090610f99575060006105c4565b815482906000198101908110610fab57fe5b906000526020600020015490506105c456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220cb0bb080c4602f63740b94ba195debbaba1475fe7a0f7344de1c0ee088876a3164736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC20SnapshotMock.sol","sourcemap":"103:532:42:-:0;;;153:221;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;153:221:42;;;;;;;;;;-1:-1:-1;153:221:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;153:221:42;;;;;;;;;;-1:-1:-1;153:221:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;153:221:42;;;;;;;;;;;;;;2085:12:84;;153:221:42;;-1:-1:-1;153:221:42;-1:-1:-1;306:4:42;;312:6;;2085:12:84;;:5;;:12;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;330:37:42::1;336:14:::0;352;330:5:::1;:37::i;:::-;153:221:::0;;;;103:532;;5370:197:88;5453:31;5476:7;5453:22;:31::i;:::-;5494:28;:26;:28::i;:::-;5533:27;5545:7;5554:5;5533:11;;;;;:27;;:::i;:::-;5370:197;;:::o;7446:144::-;-1:-1:-1;;;;;7529:33:88;;;;;;:24;:33;;;;;7513:70;;7564:18;7554:7;7564:9;:18::i;:::-;7513:15;:70::i;:::-;7446:144;:::o;7596:116::-;7652:53;7668:21;7691:13;:11;:13::i;7652:53::-;7596:116::o;7835:370:84:-;-1:-1:-1;;;;;7918:21:84;;7910:65;;;;;-1:-1:-1;;;7910:65:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;7986:49;8015:1;8019:7;8028:6;7986:20;:49::i;:::-;8061:24;8078:6;8061:12;;:16;;;;;;:24;;;;:::i;:::-;8046:12;:39;-1:-1:-1;;;;;8116:18:84;;:9;:18;;;;;;;;;;;;:30;;8139:6;;8116:22;;;;;:30;;:::i;:::-;-1:-1:-1;;;;;8095:18:84;;:9;:18;;;;;;;;;;;:51;;;;8161:37;;;;;;;8095:18;;:9;;8161:37;;;;;;;;;;7835:370;;:::o;3418:117::-;-1:-1:-1;;;;;3510:18:84;;3484:7;3510:18;;;;;;;;;;;3418:117;;;;:::o;7718:309:88:-;7812:17;7832:28;:18;:26;;;;;:28;;:::i;:::-;7812:48;-1:-1:-1;7812:48:88;7874:30;7890:9;7874:15;:30::i;:::-;:42;7870:151;;;7932:29;;;;;;;;:13;:29;;;;;;;;;;;;;7975:16;;;:35;;;;;;;;;;;;;;;;;7870:151;7718:309;;;:::o;3262:98:84:-;3341:12;;3262:98;:::o;874:176:17:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:17:o;1098:112:106:-;1189:14;;1098:112::o;8033:206:88:-;8126:10;;8103:7;;8122:111;;-1:-1:-1;8164:1:88;8157:8;;8122:111;8207:10;;8203:3;;-1:-1:-1;;8207:14:88;;;8203:19;;;;;;;;;;;;;;8196:26;;;;103:532:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;103:532:42;;;-1:-1:-1;103:532:42;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b5060405162001d2338038062001d23833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250620001b391506301ffc9a760e01b90506200021d565b8151620001c8906006906020850190620002a2565b508051620001de906007906020840190620002a2565b50620001f16380ac58cd60e01b6200021d565b62000203635b5e139f60e01b6200021d565b6200021563780e9d6360e01b6200021d565b50506200033e565b6001600160e01b031980821614156200027d576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002e557805160ff191683800117855562000315565b8280016001018555821562000315579182015b8281111562000315578251825591602001919060010190620002f8565b506200032392915062000327565b5090565b5b8082111562000323576000815560010162000328565b6119d5806200034e6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80634f6ccce7116100a257806395d89b411161007157806395d89b4114610349578063a22cb46514610351578063b88d4fde1461037f578063c87b56dd14610445578063e985e9c5146104625761010b565b80634f6ccce7146102e15780636352211e146102fe5780636c0360eb1461031b57806370a08231146103235761010b565b806318160ddd116100de57806318160ddd1461022f57806323b872dd146102495780632f745c591461027f57806342842e0e146102ab5761010b565b806301ffc9a71461011057806306fdde031461014b578063081812fc146101c8578063095ea7b314610201575b600080fd5b6101376004803603602081101561012657600080fd5b50356001600160e01b031916610490565b604080519115158252519081900360200190f35b6101536104b3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561018d578181015183820152602001610175565b50505050905090810190601f1680156101ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101e5600480360360208110156101de57600080fd5b5035610549565b604080516001600160a01b039092168252519081900360200190f35b61022d6004803603604081101561021757600080fd5b506001600160a01b0381351690602001356105ab565b005b610237610686565b60408051918252519081900360200190f35b61022d6004803603606081101561025f57600080fd5b506001600160a01b03813581169160208101359091169060400135610697565b6102376004803603604081101561029557600080fd5b506001600160a01b0381351690602001356106ee565b61022d600480360360608110156102c157600080fd5b506001600160a01b03813581169160208101359091169060400135610719565b610237600480360360208110156102f757600080fd5b5035610734565b6101e56004803603602081101561031457600080fd5b503561074a565b610153610772565b6102376004803603602081101561033957600080fd5b50356001600160a01b03166107d3565b61015361083b565b61022d6004803603604081101561036757600080fd5b506001600160a01b038135169060200135151561089c565b61022d6004803603608081101561039557600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156103d057600080fd5b8201836020820111156103e257600080fd5b8035906020019184600183028401116401000000008311171561040457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506109a1945050505050565b6101536004803603602081101561045b57600080fd5b50356109ff565b6101376004803603604081101561047857600080fd5b506001600160a01b0381358116916020013516610ca6565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b820191906000526020600020905b81548152906001019060200180831161052257829003601f168201915b5050505050905090565b600061055482610cd4565b61058f5760405162461bcd60e51b815260040180806020018281038252602c8152602001806118ca602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105b68261074a565b9050806001600160a01b0316836001600160a01b031614156106095760405162461bcd60e51b815260040180806020018281038252602181526020018061194e6021913960400191505060405180910390fd5b806001600160a01b031661061b610ce1565b6001600160a01b0316148061063c575061063c81610637610ce1565b610ca6565b6106775760405162461bcd60e51b815260040180806020018281038252603881526020018061181d6038913960400191505060405180910390fd5b6106818383610ce5565b505050565b60006106926002610d53565b905090565b6106a86106a2610ce1565b82610d5e565b6106e35760405162461bcd60e51b815260040180806020018281038252603181526020018061196f6031913960400191505060405180910390fd5b610681838383610e02565b6001600160a01b03821660009081526001602052604081206107109083610f4e565b90505b92915050565b610681838383604051806020016040528060008152506109a1565b600080610742600284610f5a565b509392505050565b60006107138260405180606001604052806029815260200161187f6029913960029190610f76565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b60006001600160a01b03821661081a5760405162461bcd60e51b815260040180806020018281038252602a815260200180611855602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061071390610d53565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b6108a4610ce1565b6001600160a01b0316826001600160a01b0316141561090a576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610917610ce1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561095b610ce1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6109b26109ac610ce1565b83610d5e565b6109ed5760405162461bcd60e51b815260040180806020018281038252603181526020018061196f6031913960400191505060405180910390fd5b6109f984848484610f8d565b50505050565b6060610a0a82610cd4565b610a455760405162461bcd60e51b815260040180806020018281038252602f81526020018061191f602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610ada5780601f10610aaf57610100808354040283529160200191610ada565b820191906000526020600020905b815481529060010190602001808311610abd57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610b035790506104ae565b805115610bd4576009816040516020018083805460018160011615610100020316600290048015610b6b5780601f10610b49576101008083540402835291820191610b6b565b820191906000526020600020905b815481529060010190602001808311610b57575b5050825160208401908083835b60208310610b975780518252601f199092019160209182019101610b78565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150506104ae565b6009610bdf84610fdf565b6040516020018083805460018160011615610100020316600290048015610c3d5780601f10610c1b576101008083540402835291820191610c3d565b820191906000526020600020905b815481529060010190602001808311610c29575b5050825160208401908083835b60208310610c695780518252601f199092019160209182019101610c4a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006107136002836110ba565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d1a8261074a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610713826110c6565b6000610d6982610cd4565b610da45760405162461bcd60e51b815260040180806020018281038252602c8152602001806117f1602c913960400191505060405180910390fd5b6000610daf8361074a565b9050806001600160a01b0316846001600160a01b03161480610dea5750836001600160a01b0316610ddf84610549565b6001600160a01b0316145b80610dfa5750610dfa8185610ca6565b949350505050565b826001600160a01b0316610e158261074a565b6001600160a01b031614610e5a5760405162461bcd60e51b81526004018080602001828103825260298152602001806118f66029913960400191505060405180910390fd5b6001600160a01b038216610e9f5760405162461bcd60e51b81526004018080602001828103825260248152602001806117cd6024913960400191505060405180910390fd5b610eaa838383610681565b610eb5600082610ce5565b6001600160a01b0383166000908152600160205260409020610ed790826110ca565b506001600160a01b0382166000908152600160205260409020610efa90826110d6565b50610f07600282846110e2565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061071083836110f8565b6000808080610f69868661115c565b9097909650945050505050565b6000610f838484846111d7565b90505b9392505050565b610f98848484610e02565b610fa4848484846112a1565b6109f95760405162461bcd60e51b815260040180806020018281038252603281526020018061179b6032913960400191505060405180910390fd5b60608161100457506040805180820190915260018152600360fc1b60208201526104ae565b8160005b811561101c57600101600a82049150611008565b60608167ffffffffffffffff8111801561103557600080fd5b506040519080825280601f01601f191660200182016040528015611060576020820181803683370190505b50859350905060001982015b83156110b157600a840660300160f81b8282806001900393508151811061108f57fe5b60200101906001600160f81b031916908160001a905350600a8404935061106c565b50949350505050565b60006107108383611409565b5490565b60006107108383611421565b600061071083836114e7565b6000610f8384846001600160a01b038516611531565b8154600090821061113a5760405162461bcd60e51b81526004018080602001828103825260228152602001806117796022913960400191505060405180910390fd5b82600001828154811061114957fe5b9060005260206000200154905092915050565b8154600090819083106111a05760405162461bcd60e51b81526004018080602001828103825260228152602001806118a86022913960400191505060405180910390fd5b60008460000184815481106111b157fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816112725760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561123757818101518382015260200161121f565b50505050905090810190601f1680156112645780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061128557fe5b9060005260206000209060020201600101549150509392505050565b60006112b5846001600160a01b03166115c8565b6112c157506001610dfa565b60606113cf630a85bd0160e11b6112d6610ce1565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561133d578181015183820152602001611325565b50505050905090810190601f16801561136a5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505060405180606001604052806032815260200161179b603291396001600160a01b0388169190611601565b905060008180602001905160208110156113e857600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156114dd578354600019808301919081019060009087908390811061145457fe5b906000526020600020015490508087600001848154811061147157fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806114a157fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610713565b6000915050610713565b60006114f38383611409565b61152957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610713565b506000610713565b600082815260018401602052604081205480611596575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610f86565b828560000160018303815481106115a957fe5b9060005260206000209060020201600101819055506000915050610f86565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610dfa575050151592915050565b6060610f8384846000856060611616856115c8565b611667576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116a65780518252601f199092019160209182019101611687565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611708576040519150601f19603f3d011682016040523d82523d6000602084013e61170d565b606091505b50915091508115611721579150610dfa9050565b8051156117315780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561123757818101518382015260200161121f56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220b50a40d058929859f7695cf9daec980d18852deb8e4f7729b58639d085fc937364736f6c634300060c0033"},"devdoc":{"details":"see https://eips.ethereum.org/EIPS/eip-721","kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"constructor":{"details":"Initializes the contract by setting a `name` and a `symbol` to the token collection."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"title":"ERC721 Non-Fungible Token Standard basic implementation","version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80634f6ccce7116100a257806395d89b411161007157806395d89b4114610349578063a22cb46514610351578063b88d4fde1461037f578063c87b56dd14610445578063e985e9c5146104625761010b565b80634f6ccce7146102e15780636352211e146102fe5780636c0360eb1461031b57806370a08231146103235761010b565b806318160ddd116100de57806318160ddd1461022f57806323b872dd146102495780632f745c591461027f57806342842e0e146102ab5761010b565b806301ffc9a71461011057806306fdde031461014b578063081812fc146101c8578063095ea7b314610201575b600080fd5b6101376004803603602081101561012657600080fd5b50356001600160e01b031916610490565b604080519115158252519081900360200190f35b6101536104b3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561018d578181015183820152602001610175565b50505050905090810190601f1680156101ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101e5600480360360208110156101de57600080fd5b5035610549565b604080516001600160a01b039092168252519081900360200190f35b61022d6004803603604081101561021757600080fd5b506001600160a01b0381351690602001356105ab565b005b610237610686565b60408051918252519081900360200190f35b61022d6004803603606081101561025f57600080fd5b506001600160a01b03813581169160208101359091169060400135610697565b6102376004803603604081101561029557600080fd5b506001600160a01b0381351690602001356106ee565b61022d600480360360608110156102c157600080fd5b506001600160a01b03813581169160208101359091169060400135610719565b610237600480360360208110156102f757600080fd5b5035610734565b6101e56004803603602081101561031457600080fd5b503561074a565b610153610772565b6102376004803603602081101561033957600080fd5b50356001600160a01b03166107d3565b61015361083b565b61022d6004803603604081101561036757600080fd5b506001600160a01b038135169060200135151561089c565b61022d6004803603608081101561039557600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156103d057600080fd5b8201836020820111156103e257600080fd5b8035906020019184600183028401116401000000008311171561040457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506109a1945050505050565b6101536004803603602081101561045b57600080fd5b50356109ff565b6101376004803603604081101561047857600080fd5b506001600160a01b0381358116916020013516610ca6565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b820191906000526020600020905b81548152906001019060200180831161052257829003601f168201915b5050505050905090565b600061055482610cd4565b61058f5760405162461bcd60e51b815260040180806020018281038252602c8152602001806118ca602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105b68261074a565b9050806001600160a01b0316836001600160a01b031614156106095760405162461bcd60e51b815260040180806020018281038252602181526020018061194e6021913960400191505060405180910390fd5b806001600160a01b031661061b610ce1565b6001600160a01b0316148061063c575061063c81610637610ce1565b610ca6565b6106775760405162461bcd60e51b815260040180806020018281038252603881526020018061181d6038913960400191505060405180910390fd5b6106818383610ce5565b505050565b60006106926002610d53565b905090565b6106a86106a2610ce1565b82610d5e565b6106e35760405162461bcd60e51b815260040180806020018281038252603181526020018061196f6031913960400191505060405180910390fd5b610681838383610e02565b6001600160a01b03821660009081526001602052604081206107109083610f4e565b90505b92915050565b610681838383604051806020016040528060008152506109a1565b600080610742600284610f5a565b509392505050565b60006107138260405180606001604052806029815260200161187f6029913960029190610f76565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b60006001600160a01b03821661081a5760405162461bcd60e51b815260040180806020018281038252602a815260200180611855602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061071390610d53565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b6108a4610ce1565b6001600160a01b0316826001600160a01b0316141561090a576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610917610ce1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561095b610ce1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6109b26109ac610ce1565b83610d5e565b6109ed5760405162461bcd60e51b815260040180806020018281038252603181526020018061196f6031913960400191505060405180910390fd5b6109f984848484610f8d565b50505050565b6060610a0a82610cd4565b610a455760405162461bcd60e51b815260040180806020018281038252602f81526020018061191f602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610ada5780601f10610aaf57610100808354040283529160200191610ada565b820191906000526020600020905b815481529060010190602001808311610abd57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610b035790506104ae565b805115610bd4576009816040516020018083805460018160011615610100020316600290048015610b6b5780601f10610b49576101008083540402835291820191610b6b565b820191906000526020600020905b815481529060010190602001808311610b57575b5050825160208401908083835b60208310610b975780518252601f199092019160209182019101610b78565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150506104ae565b6009610bdf84610fdf565b6040516020018083805460018160011615610100020316600290048015610c3d5780601f10610c1b576101008083540402835291820191610c3d565b820191906000526020600020905b815481529060010190602001808311610c29575b5050825160208401908083835b60208310610c695780518252601f199092019160209182019101610c4a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006107136002836110ba565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d1a8261074a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610713826110c6565b6000610d6982610cd4565b610da45760405162461bcd60e51b815260040180806020018281038252602c8152602001806117f1602c913960400191505060405180910390fd5b6000610daf8361074a565b9050806001600160a01b0316846001600160a01b03161480610dea5750836001600160a01b0316610ddf84610549565b6001600160a01b0316145b80610dfa5750610dfa8185610ca6565b949350505050565b826001600160a01b0316610e158261074a565b6001600160a01b031614610e5a5760405162461bcd60e51b81526004018080602001828103825260298152602001806118f66029913960400191505060405180910390fd5b6001600160a01b038216610e9f5760405162461bcd60e51b81526004018080602001828103825260248152602001806117cd6024913960400191505060405180910390fd5b610eaa838383610681565b610eb5600082610ce5565b6001600160a01b0383166000908152600160205260409020610ed790826110ca565b506001600160a01b0382166000908152600160205260409020610efa90826110d6565b50610f07600282846110e2565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061071083836110f8565b6000808080610f69868661115c565b9097909650945050505050565b6000610f838484846111d7565b90505b9392505050565b610f98848484610e02565b610fa4848484846112a1565b6109f95760405162461bcd60e51b815260040180806020018281038252603281526020018061179b6032913960400191505060405180910390fd5b60608161100457506040805180820190915260018152600360fc1b60208201526104ae565b8160005b811561101c57600101600a82049150611008565b60608167ffffffffffffffff8111801561103557600080fd5b506040519080825280601f01601f191660200182016040528015611060576020820181803683370190505b50859350905060001982015b83156110b157600a840660300160f81b8282806001900393508151811061108f57fe5b60200101906001600160f81b031916908160001a905350600a8404935061106c565b50949350505050565b60006107108383611409565b5490565b60006107108383611421565b600061071083836114e7565b6000610f8384846001600160a01b038516611531565b8154600090821061113a5760405162461bcd60e51b81526004018080602001828103825260228152602001806117796022913960400191505060405180910390fd5b82600001828154811061114957fe5b9060005260206000200154905092915050565b8154600090819083106111a05760405162461bcd60e51b81526004018080602001828103825260228152602001806118a86022913960400191505060405180910390fd5b60008460000184815481106111b157fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816112725760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561123757818101518382015260200161121f565b50505050905090810190601f1680156112645780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061128557fe5b9060005260206000209060020201600101549150509392505050565b60006112b5846001600160a01b03166115c8565b6112c157506001610dfa565b60606113cf630a85bd0160e11b6112d6610ce1565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561133d578181015183820152602001611325565b50505050905090810190601f16801561136a5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505060405180606001604052806032815260200161179b603291396001600160a01b0388169190611601565b905060008180602001905160208110156113e857600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156114dd578354600019808301919081019060009087908390811061145457fe5b906000526020600020015490508087600001848154811061147157fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806114a157fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610713565b6000915050610713565b60006114f38383611409565b61152957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610713565b506000610713565b600082815260018401602052604081205480611596575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610f86565b828560000160018303815481106115a957fe5b9060005260206000209060020201600101819055506000915050610f86565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610dfa575050151592915050565b6060610f8384846000856060611616856115c8565b611667576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116a65780518252601f199092019160209182019101611687565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611708576040519150601f19603f3d011682016040523d82523d6000602084013e61170d565b606091505b50915091508115611721579150610dfa9050565b8051156117315780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561123757818101518382015260200161121f56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220b50a40d058929859f7695cf9daec980d18852deb8e4f7729b58639d085fc937364736f6c634300060c0033"},"sourceId":"contracts/token/ERC721/ERC721.sol","sourcemap":"561:16178:92:-:0;;;3565:365;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3565:365:92;;;;;;;;;;-1:-1:-1;3565:365:92;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3565:365:92;;;;;;;;;;-1:-1:-1;3565:365:92;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3565:365:92;;-1:-1:-1;751:40:10;;-1:-1:-1;;;;770:20:10;-1:-1:-1;751:18:10;:40::i;:::-;3637:12:92;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;3659:16:92;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;3763:40:92;-1:-1:-1;;;3763:18:92;:40::i;:::-;3813:49;-1:-1:-1;;;3813:18:92;:49::i;:::-;3872:51;-1:-1:-1;;;3872:18:92;:51::i;:::-;3565:365;;561:16178;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;561:16178:92:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;561:16178:92;;;-1:-1:-1;561:16178:92;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721Burnable":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721Burnable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"ERC721 Token that can be irreversibly burned (destroyed).","kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"burn(uint256)":{"details":"Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"title":"ERC721 Burnable Token","version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","burn(uint256)":"0x42966c68","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC721/ERC721Burnable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721BurnableMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721BurnableMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200214938038062002149833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250839150829050620001b56301ffc9a760e01b62000221565b8151620001ca906006906020850190620002a6565b508051620001e0906007906020840190620002a6565b50620001f36380ac58cd60e01b62000221565b62000205635b5e139f60e01b62000221565b6200021763780e9d6360e01b62000221565b5050505062000342565b6001600160e01b0319808216141562000281576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002e957805160ff191683800117855562000319565b8280016001018555821562000319579182015b8281111562000319578251825591602001919060010190620002fc565b50620003279291506200032b565b5090565b5b808211156200032757600081556001016200032c565b611df780620003526000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806342966c68116100ad57806395d89b411161007157806395d89b41146103a8578063a22cb465146103b0578063b88d4fde146103de578063c87b56dd146104a4578063e985e9c5146104c157610121565b806342966c68146103235780634f6ccce7146103405780636352211e1461035d5780636c0360eb1461037a57806370a082311461038257610121565b806318160ddd116100f457806318160ddd1461024557806323b872dd1461025f5780632f745c591461029557806340c10f19146102c157806342842e0e146102ed57610121565b806301ffc9a71461012657806306fdde0314610161578063081812fc146101de578063095ea7b314610217575b600080fd5b61014d6004803603602081101561013c57600080fd5b50356001600160e01b0319166104ef565b604080519115158252519081900360200190f35b610169610512565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a357818101518382015260200161018b565b50505050905090810190601f1680156101d05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101fb600480360360208110156101f457600080fd5b50356105a8565b604080516001600160a01b039092168252519081900360200190f35b6102436004803603604081101561022d57600080fd5b506001600160a01b03813516906020013561060a565b005b61024d6106e5565b60408051918252519081900360200190f35b6102436004803603606081101561027557600080fd5b506001600160a01b038135811691602081013590911690604001356106f6565b61024d600480360360408110156102ab57600080fd5b506001600160a01b03813516906020013561074d565b610243600480360360408110156102d757600080fd5b506001600160a01b038135169060200135610778565b6102436004803603606081101561030357600080fd5b506001600160a01b03813581169160208101359091169060400135610786565b6102436004803603602081101561033957600080fd5b50356107a1565b61024d6004803603602081101561035657600080fd5b50356107f3565b6101fb6004803603602081101561037357600080fd5b5035610809565b610169610831565b61024d6004803603602081101561039857600080fd5b50356001600160a01b0316610892565b6101696108fa565b610243600480360360408110156103c657600080fd5b506001600160a01b038135169060200135151561095b565b610243600480360360808110156103f457600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561042f57600080fd5b82018360208201111561044157600080fd5b8035906020019184600183028401116401000000008311171561046357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a60945050505050565b610169600480360360208110156104ba57600080fd5b5035610abe565b61014d600480360360408110156104d757600080fd5b506001600160a01b0381358116916020013516610d65565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b820191906000526020600020905b81548152906001019060200180831161058157829003601f168201915b5050505050905090565b60006105b382610d93565b6105ee5760405162461bcd60e51b815260040180806020018281038252602c815260200180611cbc602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061061582610809565b9050806001600160a01b0316836001600160a01b031614156106685760405162461bcd60e51b8152600401808060200182810382526021815260200180611d406021913960400191505060405180910390fd5b806001600160a01b031661067a610da0565b6001600160a01b0316148061069b575061069b81610696610da0565b610d65565b6106d65760405162461bcd60e51b8152600401808060200182810382526038815260200180611c0f6038913960400191505060405180910390fd5b6106e08383610da4565b505050565b60006106f16002610e12565b905090565b610707610701610da0565b82610e1d565b6107425760405162461bcd60e51b8152600401808060200182810382526031815260200180611d616031913960400191505060405180910390fd5b6106e0838383610ec1565b6001600160a01b038216600090815260016020526040812061076f908361100d565b90505b92915050565b6107828282611019565b5050565b6106e083838360405180602001604052806000815250610a60565b6107ac610701610da0565b6107e75760405162461bcd60e51b8152600401808060200182810382526030815260200180611d926030913960400191505060405180910390fd5b6107f081611147565b50565b600080610801600284611214565b509392505050565b600061077282604051806060016040528060298152602001611c716029913960029190611230565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b60006001600160a01b0382166108d95760405162461bcd60e51b815260040180806020018281038252602a815260200180611c47602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061077290610e12565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b610963610da0565b6001600160a01b0316826001600160a01b031614156109c9576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b80600560006109d6610da0565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a1a610da0565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610a71610a6b610da0565b83610e1d565b610aac5760405162461bcd60e51b8152600401808060200182810382526031815260200180611d616031913960400191505060405180910390fd5b610ab884848484611247565b50505050565b6060610ac982610d93565b610b045760405162461bcd60e51b815260040180806020018281038252602f815260200180611d11602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610b995780601f10610b6e57610100808354040283529160200191610b99565b820191906000526020600020905b815481529060010190602001808311610b7c57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610bc257905061050d565b805115610c93576009816040516020018083805460018160011615610100020316600290048015610c2a5780601f10610c08576101008083540402835291820191610c2a565b820191906000526020600020905b815481529060010190602001808311610c16575b5050825160208401908083835b60208310610c565780518252601f199092019160209182019101610c37565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061050d565b6009610c9e84611299565b6040516020018083805460018160011615610100020316600290048015610cfc5780601f10610cda576101008083540402835291820191610cfc565b820191906000526020600020905b815481529060010190602001808311610ce8575b5050825160208401908083835b60208310610d285780518252601f199092019160209182019101610d09565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610772600283611374565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610dd982610809565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061077282611380565b6000610e2882610d93565b610e635760405162461bcd60e51b815260040180806020018281038252602c815260200180611be3602c913960400191505060405180910390fd5b6000610e6e83610809565b9050806001600160a01b0316846001600160a01b03161480610ea95750836001600160a01b0316610e9e846105a8565b6001600160a01b0316145b80610eb95750610eb98185610d65565b949350505050565b826001600160a01b0316610ed482610809565b6001600160a01b031614610f195760405162461bcd60e51b8152600401808060200182810382526029815260200180611ce86029913960400191505060405180910390fd5b6001600160a01b038216610f5e5760405162461bcd60e51b8152600401808060200182810382526024815260200180611bbf6024913960400191505060405180910390fd5b610f698383836106e0565b610f74600082610da4565b6001600160a01b0383166000908152600160205260409020610f969082611384565b506001600160a01b0382166000908152600160205260409020610fb99082611390565b50610fc66002828461139c565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061076f83836113b2565b6001600160a01b038216611074576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61107d81610d93565b156110cf576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6110db600083836106e0565b6001600160a01b03821660009081526001602052604090206110fd9082611390565b5061110a6002828461139c565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061115282610809565b9050611160816000846106e0565b61116b600083610da4565b60008281526008602052604090205460026000196101006001841615020190911604156111a95760008281526008602052604081206111a991611b12565b6001600160a01b03811660009081526001602052604090206111cb9083611384565b506111d7600283611416565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806112238686611422565b9097909650945050505050565b600061123d84848461149d565b90505b9392505050565b611252848484610ec1565b61125e84848484611567565b610ab85760405162461bcd60e51b8152600401808060200182810382526032815260200180611b8d6032913960400191505060405180910390fd5b6060816112be57506040805180820190915260018152600360fc1b602082015261050d565b8160005b81156112d657600101600a820491506112c2565b60608167ffffffffffffffff811180156112ef57600080fd5b506040519080825280601f01601f19166020018201604052801561131a576020820181803683370190505b50859350905060001982015b831561136b57600a840660300160f81b8282806001900393508151811061134957fe5b60200101906001600160f81b031916908160001a905350600a84049350611326565b50949350505050565b600061076f83836116cf565b5490565b600061076f83836116e7565b600061076f83836117ad565b600061123d84846001600160a01b0385166117f7565b815460009082106113f45760405162461bcd60e51b8152600401808060200182810382526022815260200180611b6b6022913960400191505060405180910390fd5b82600001828154811061140357fe5b9060005260206000200154905092915050565b600061076f838361188e565b8154600090819083106114665760405162461bcd60e51b8152600401808060200182810382526022815260200180611c9a6022913960400191505060405180910390fd5b600084600001848154811061147757fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816115385760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114fd5781810151838201526020016114e5565b50505050905090810190601f16801561152a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061154b57fe5b9060005260206000209060020201600101549150509392505050565b600061157b846001600160a01b0316611962565b61158757506001610eb9565b6060611695630a85bd0160e11b61159c610da0565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156116035781810151838201526020016115eb565b50505050905090810190601f1680156116305780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611b8d603291396001600160a01b038816919061199b565b905060008180602001905160208110156116ae57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156117a3578354600019808301919081019060009087908390811061171a57fe5b906000526020600020015490508087600001848154811061173757fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061176757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610772565b6000915050610772565b60006117b983836116cf565b6117ef57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610772565b506000610772565b60008281526001840160205260408120548061185c575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611240565b8285600001600183038154811061186f57fe5b9060005260206000209060020201600101819055506000915050611240565b600081815260018301602052604081205480156117a357835460001980830191908101906000908790839081106118c157fe5b90600052602060002090600202019050808760000184815481106118e157fe5b60009182526020808320845460029093020191825560019384015491840191909155835482528983019052604090209084019055865487908061192057fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506107729350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610eb9575050151592915050565b606061123d848460008560606119b085611962565b611a01576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611a405780518252601f199092019160209182019101611a21565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611aa2576040519150601f19603f3d011682016040523d82523d6000602084013e611aa7565b606091505b50915091508115611abb579150610eb99050565b805115611acb5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156114fd5781810151838201526020016114e5565b50805460018160011615610100020316600290046000825580601f10611b3857506107f0565b601f0160209004906000526020600020908101906107f091905b80821115611b665760008155600101611b52565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732314275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a264697066735822122088463d8d9094af9900e333d6f59433ea72dffa879e16b6c4a06b56cdfbdfdcca64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"burn(uint256)":{"details":"Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","burn(uint256)":"0x42966c68","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101215760003560e01c806342966c68116100ad57806395d89b411161007157806395d89b41146103a8578063a22cb465146103b0578063b88d4fde146103de578063c87b56dd146104a4578063e985e9c5146104c157610121565b806342966c68146103235780634f6ccce7146103405780636352211e1461035d5780636c0360eb1461037a57806370a082311461038257610121565b806318160ddd116100f457806318160ddd1461024557806323b872dd1461025f5780632f745c591461029557806340c10f19146102c157806342842e0e146102ed57610121565b806301ffc9a71461012657806306fdde0314610161578063081812fc146101de578063095ea7b314610217575b600080fd5b61014d6004803603602081101561013c57600080fd5b50356001600160e01b0319166104ef565b604080519115158252519081900360200190f35b610169610512565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a357818101518382015260200161018b565b50505050905090810190601f1680156101d05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101fb600480360360208110156101f457600080fd5b50356105a8565b604080516001600160a01b039092168252519081900360200190f35b6102436004803603604081101561022d57600080fd5b506001600160a01b03813516906020013561060a565b005b61024d6106e5565b60408051918252519081900360200190f35b6102436004803603606081101561027557600080fd5b506001600160a01b038135811691602081013590911690604001356106f6565b61024d600480360360408110156102ab57600080fd5b506001600160a01b03813516906020013561074d565b610243600480360360408110156102d757600080fd5b506001600160a01b038135169060200135610778565b6102436004803603606081101561030357600080fd5b506001600160a01b03813581169160208101359091169060400135610786565b6102436004803603602081101561033957600080fd5b50356107a1565b61024d6004803603602081101561035657600080fd5b50356107f3565b6101fb6004803603602081101561037357600080fd5b5035610809565b610169610831565b61024d6004803603602081101561039857600080fd5b50356001600160a01b0316610892565b6101696108fa565b610243600480360360408110156103c657600080fd5b506001600160a01b038135169060200135151561095b565b610243600480360360808110156103f457600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561042f57600080fd5b82018360208201111561044157600080fd5b8035906020019184600183028401116401000000008311171561046357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a60945050505050565b610169600480360360208110156104ba57600080fd5b5035610abe565b61014d600480360360408110156104d757600080fd5b506001600160a01b0381358116916020013516610d65565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b820191906000526020600020905b81548152906001019060200180831161058157829003601f168201915b5050505050905090565b60006105b382610d93565b6105ee5760405162461bcd60e51b815260040180806020018281038252602c815260200180611cbc602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061061582610809565b9050806001600160a01b0316836001600160a01b031614156106685760405162461bcd60e51b8152600401808060200182810382526021815260200180611d406021913960400191505060405180910390fd5b806001600160a01b031661067a610da0565b6001600160a01b0316148061069b575061069b81610696610da0565b610d65565b6106d65760405162461bcd60e51b8152600401808060200182810382526038815260200180611c0f6038913960400191505060405180910390fd5b6106e08383610da4565b505050565b60006106f16002610e12565b905090565b610707610701610da0565b82610e1d565b6107425760405162461bcd60e51b8152600401808060200182810382526031815260200180611d616031913960400191505060405180910390fd5b6106e0838383610ec1565b6001600160a01b038216600090815260016020526040812061076f908361100d565b90505b92915050565b6107828282611019565b5050565b6106e083838360405180602001604052806000815250610a60565b6107ac610701610da0565b6107e75760405162461bcd60e51b8152600401808060200182810382526030815260200180611d926030913960400191505060405180910390fd5b6107f081611147565b50565b600080610801600284611214565b509392505050565b600061077282604051806060016040528060298152602001611c716029913960029190611230565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b60006001600160a01b0382166108d95760405162461bcd60e51b815260040180806020018281038252602a815260200180611c47602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061077290610e12565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b610963610da0565b6001600160a01b0316826001600160a01b031614156109c9576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b80600560006109d6610da0565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a1a610da0565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610a71610a6b610da0565b83610e1d565b610aac5760405162461bcd60e51b8152600401808060200182810382526031815260200180611d616031913960400191505060405180910390fd5b610ab884848484611247565b50505050565b6060610ac982610d93565b610b045760405162461bcd60e51b815260040180806020018281038252602f815260200180611d11602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610b995780601f10610b6e57610100808354040283529160200191610b99565b820191906000526020600020905b815481529060010190602001808311610b7c57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610bc257905061050d565b805115610c93576009816040516020018083805460018160011615610100020316600290048015610c2a5780601f10610c08576101008083540402835291820191610c2a565b820191906000526020600020905b815481529060010190602001808311610c16575b5050825160208401908083835b60208310610c565780518252601f199092019160209182019101610c37565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061050d565b6009610c9e84611299565b6040516020018083805460018160011615610100020316600290048015610cfc5780601f10610cda576101008083540402835291820191610cfc565b820191906000526020600020905b815481529060010190602001808311610ce8575b5050825160208401908083835b60208310610d285780518252601f199092019160209182019101610d09565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610772600283611374565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610dd982610809565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061077282611380565b6000610e2882610d93565b610e635760405162461bcd60e51b815260040180806020018281038252602c815260200180611be3602c913960400191505060405180910390fd5b6000610e6e83610809565b9050806001600160a01b0316846001600160a01b03161480610ea95750836001600160a01b0316610e9e846105a8565b6001600160a01b0316145b80610eb95750610eb98185610d65565b949350505050565b826001600160a01b0316610ed482610809565b6001600160a01b031614610f195760405162461bcd60e51b8152600401808060200182810382526029815260200180611ce86029913960400191505060405180910390fd5b6001600160a01b038216610f5e5760405162461bcd60e51b8152600401808060200182810382526024815260200180611bbf6024913960400191505060405180910390fd5b610f698383836106e0565b610f74600082610da4565b6001600160a01b0383166000908152600160205260409020610f969082611384565b506001600160a01b0382166000908152600160205260409020610fb99082611390565b50610fc66002828461139c565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061076f83836113b2565b6001600160a01b038216611074576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61107d81610d93565b156110cf576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6110db600083836106e0565b6001600160a01b03821660009081526001602052604090206110fd9082611390565b5061110a6002828461139c565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061115282610809565b9050611160816000846106e0565b61116b600083610da4565b60008281526008602052604090205460026000196101006001841615020190911604156111a95760008281526008602052604081206111a991611b12565b6001600160a01b03811660009081526001602052604090206111cb9083611384565b506111d7600283611416565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806112238686611422565b9097909650945050505050565b600061123d84848461149d565b90505b9392505050565b611252848484610ec1565b61125e84848484611567565b610ab85760405162461bcd60e51b8152600401808060200182810382526032815260200180611b8d6032913960400191505060405180910390fd5b6060816112be57506040805180820190915260018152600360fc1b602082015261050d565b8160005b81156112d657600101600a820491506112c2565b60608167ffffffffffffffff811180156112ef57600080fd5b506040519080825280601f01601f19166020018201604052801561131a576020820181803683370190505b50859350905060001982015b831561136b57600a840660300160f81b8282806001900393508151811061134957fe5b60200101906001600160f81b031916908160001a905350600a84049350611326565b50949350505050565b600061076f83836116cf565b5490565b600061076f83836116e7565b600061076f83836117ad565b600061123d84846001600160a01b0385166117f7565b815460009082106113f45760405162461bcd60e51b8152600401808060200182810382526022815260200180611b6b6022913960400191505060405180910390fd5b82600001828154811061140357fe5b9060005260206000200154905092915050565b600061076f838361188e565b8154600090819083106114665760405162461bcd60e51b8152600401808060200182810382526022815260200180611c9a6022913960400191505060405180910390fd5b600084600001848154811061147757fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816115385760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114fd5781810151838201526020016114e5565b50505050905090810190601f16801561152a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061154b57fe5b9060005260206000209060020201600101549150509392505050565b600061157b846001600160a01b0316611962565b61158757506001610eb9565b6060611695630a85bd0160e11b61159c610da0565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156116035781810151838201526020016115eb565b50505050905090810190601f1680156116305780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611b8d603291396001600160a01b038816919061199b565b905060008180602001905160208110156116ae57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156117a3578354600019808301919081019060009087908390811061171a57fe5b906000526020600020015490508087600001848154811061173757fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061176757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610772565b6000915050610772565b60006117b983836116cf565b6117ef57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610772565b506000610772565b60008281526001840160205260408120548061185c575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611240565b8285600001600183038154811061186f57fe5b9060005260206000209060020201600101819055506000915050611240565b600081815260018301602052604081205480156117a357835460001980830191908101906000908790839081106118c157fe5b90600052602060002090600202019050808760000184815481106118e157fe5b60009182526020808320845460029093020191825560019384015491840191909155835482528983019052604090209084019055865487908061192057fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506107729350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610eb9575050151592915050565b606061123d848460008560606119b085611962565b611a01576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611a405780518252601f199092019160209182019101611a21565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611aa2576040519150601f19603f3d011682016040523d82523d6000602084013e611aa7565b606091505b50915091508115611abb579150610eb99050565b805115611acb5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156114fd5781810151838201526020016114e5565b50805460018160011615610100020316600290046000825580601f10611b3857506107f0565b601f0160209004906000526020600020908101906107f091905b80821115611b665760008155600101611b52565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732314275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a264697066735822122088463d8d9094af9900e333d6f59433ea72dffa879e16b6c4a06b56cdfbdfdcca64736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC721BurnableMock.sol","sourcemap":"104:230:43:-:0;;;156:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;156:85:43;;;;;;;;;;-1:-1:-1;156:85:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;156:85:43;;;;;;;;;;-1:-1:-1;156:85:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;156:85:43;;-1:-1:-1;224:4:43;;-1:-1:-1;230:6:43;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;3637:12:92;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;3659:16:92;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;3763:40:92;-1:-1:-1;;;3763:18:92;:40::i;:::-;3813:49;-1:-1:-1;;;3813:18:92;:49::i;:::-;3872:51;-1:-1:-1;;;3872:18:92;:51::i;:::-;3565:365;;156:85:43;;104:230;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;104:230:43:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;104:230:43;;;-1:-1:-1;104:230:43;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721GSNRecipientMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"trustedSigner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"relay","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"approvalData","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721GSNRecipientMock","deploymentBytecode":{"bytecode":"0x6080604052600a80546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f4941790553480156200003757600080fd5b506040516200287138038062002871833981810160405260608110156200005d57600080fd5b81019080805160405193929190846401000000008211156200007e57600080fd5b9083019060208201858111156200009457600080fd5b8251640100000000811182820188101715620000af57600080fd5b82525081516020918201929091019080838360005b83811015620000de578181015183820152602001620000c4565b50505050905090810190601f1680156200010c5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200013057600080fd5b9083019060208201858111156200014657600080fd5b82516401000000008111828201881017156200016157600080fd5b82525081516020918201929091019080838360005b838110156200019057818101518382015260200162000176565b50505050905090810190601f168015620001be5780820380516001836020036101000a031916815260200191505b506040526020015191508190508383620001df6301ffc9a760e01b620002b4565b8151620001f490600690602085019062000339565b5080516200020a90600790602084019062000339565b506200021d6380ac58cd60e01b620002b4565b6200022f635b5e139f60e01b620002b4565b6200024163780e9d6360e01b620002b4565b50506001600160a01b0381166200028a5760405162461bcd60e51b8152600401808060200182810382526039815260200180620028386039913960400191505060405180910390fd5b600b80546001600160a01b0319166001600160a01b039290921691909117905550620003d5915050565b6001600160e01b0319808216141562000314576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200037c57805160ff1916838001178555620003ac565b82800160010185558215620003ac579182015b82811115620003ac5782518255916020019190600101906200038f565b50620003ba929150620003be565b5090565b5b80821115620003ba5760008155600101620003bf565b61245380620003e56000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c806370a08231116100c3578063a22cb4651161007c578063a22cb46514610638578063ad61ccd514610666578063b88d4fde1461066e578063c87b56dd14610732578063e06e0e221461074f578063e985e9c5146108005761014d565b806370a082311461036557806374e861d61461038b57806380274db71461039357806383947ea01461043757806395d89b4114610613578063a0712d681461061b5761014d565b806323b872dd1161011557806323b872dd1461028b5780632f745c59146102c157806342842e0e146102ed5780634f6ccce7146103235780636352211e146103405780636c0360eb1461035d5761014d565b806301ffc9a71461015257806306fdde031461018d578063081812fc1461020a578063095ea7b31461024357806318160ddd14610271575b600080fd5b6101796004803603602081101561016857600080fd5b50356001600160e01b03191661082e565b604080519115158252519081900360200190f35b610195610851565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cf5781810151838201526020016101b7565b50505050905090810190601f1680156101fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102276004803603602081101561022057600080fd5b50356108e8565b604080516001600160a01b039092168252519081900360200190f35b61026f6004803603604081101561025957600080fd5b506001600160a01b03813516906020013561094a565b005b610279610a25565b60408051918252519081900360200190f35b61026f600480360360608110156102a157600080fd5b506001600160a01b03813581169160208101359091169060400135610a36565b610279600480360360408110156102d757600080fd5b506001600160a01b038135169060200135610a8d565b61026f6004803603606081101561030357600080fd5b506001600160a01b03813581169160208101359091169060400135610ab8565b6102796004803603602081101561033957600080fd5b5035610ad3565b6102276004803603602081101561035657600080fd5b5035610ae9565b610195610b11565b6102796004803603602081101561037b57600080fd5b50356001600160a01b0316610b72565b610227610bda565b610279600480360360208110156103a957600080fd5b810190602081018135600160201b8111156103c357600080fd5b8201836020820111156103d557600080fd5b803590602001918460018302840111600160201b831117156103f657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610be9945050505050565b610594600480360361012081101561044e57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561048157600080fd5b82018360208201111561049357600080fd5b803590602001918460018302840111600160201b831117156104b457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561051e57600080fd5b82018360208201111561053057600080fd5b803590602001918460018302840111600160201b8311171561055157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250610c4b915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156105d75781810151838201526020016105bf565b50505050905090810190601f1680156106045780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610195610d8c565b61026f6004803603602081101561063157600080fd5b5035610ded565b61026f6004803603604081101561064e57600080fd5b506001600160a01b0381351690602001351515610e01565b610195610f06565b61026f6004803603608081101561068457600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156106be57600080fd5b8201836020820111156106d057600080fd5b803590602001918460018302840111600160201b831117156106f157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f25945050505050565b6101956004803603602081101561074857600080fd5b5035610f83565b61026f6004803603608081101561076557600080fd5b810190602081018135600160201b81111561077f57600080fd5b82018360208201111561079157600080fd5b803590602001918460018302840111600160201b831117156107b257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050508035151591506020810135906040013561122a565b6101796004803603604081101561081657600080fd5b506001600160a01b038135811691602001351661128d565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b820191906000526020600020905b8154815290600101906020018083116108c057829003601f168201915b505050505090505b90565b60006108f3826112bb565b61092e5760405162461bcd60e51b815260040180806020018281038252602c815260200180612324602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061095582610ae9565b9050806001600160a01b0316836001600160a01b031614156109a85760405162461bcd60e51b81526004018080602001828103825260218152602001806123a86021913960400191505060405180910390fd5b806001600160a01b03166109ba6112c8565b6001600160a01b031614806109db57506109db816109d66112c8565b61128d565b610a165760405162461bcd60e51b81526004018080602001828103825260388152602001806122556038913960400191505060405180910390fd5b610a2083836112d2565b505050565b6000610a316002611340565b905090565b610a47610a416112c8565b8261134b565b610a825760405162461bcd60e51b81526004018080602001828103825260318152602001806123ed6031913960400191505060405180910390fd5b610a208383836113ef565b6001600160a01b0382166000908152600160205260408120610aaf908361153b565b90505b92915050565b610a2083838360405180602001604052806000815250610f25565b600080610ae1600284611547565b509392505050565b6000610ab2826040518060600160405280602981526020016122b76029913960029190611563565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b60006001600160a01b038216610bb95760405162461bcd60e51b815260040180806020018281038252602a81526020018061228d602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610ab290611340565b600a546001600160a01b031690565b6000610bf3610bda565b6001600160a01b0316336001600160a01b031614610c425760405162461bcd60e51b81526004018080602001828103825260248152602001806123c96024913960400191505060405180910390fd5b610ab28261157a565b60006060808b8b8b8b8b8b8b610c5f610bda565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b60208310610cb65780518252601f199092019160209182019101610c97565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a89093019052600b548251918301919091209195506001600160a01b03169350610d539250889150610d4d90611580565b906115d1565b6001600160a01b03161415610d7457610d6a6117bc565b9250925050610d7e565b610d6a60006117e0565b995099975050505050505050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b610dfe610df86112c8565b826117f8565b50565b610e096112c8565b6001600160a01b0316826001600160a01b03161415610e6f576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610e7c6112c8565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ec06112c8565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610f36610f306112c8565b8361134b565b610f715760405162461bcd60e51b81526004018080602001828103825260318152602001806123ed6031913960400191505060405180910390fd5b610f7d84848484611926565b50505050565b6060610f8e826112bb565b610fc95760405162461bcd60e51b815260040180806020018281038252602f815260200180612379602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561105e5780601f106110335761010080835404028352916020019161105e565b820191906000526020600020905b81548152906001019060200180831161104157829003601f168201915b50506009549394505050506002600019610100600184161502019091160461108757905061084c565b8051156111585760098160405160200180838054600181600116156101000203166002900480156110ef5780601f106110cd5761010080835404028352918201916110ef565b820191906000526020600020905b8154815290600101906020018083116110db575b5050825160208401908083835b6020831061111b5780518252601f1990920191602091820191016110fc565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061084c565b600961116384611978565b60405160200180838054600181600116156101000203166002900480156111c15780601f1061119f5761010080835404028352918201916111c1565b820191906000526020600020905b8154815290600101906020018083116111ad575b5050825160208401908083835b602083106111ed5780518252601f1990920191602091820191016111ce565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b611232610bda565b6001600160a01b0316336001600160a01b0316146112815760405162461bcd60e51b81526004018080602001828103825260248152602001806123c96024913960400191505060405180910390fd5b610f7d84848484610f7d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610ab2600283611a53565b6000610a31611a5f565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061130782610ae9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610ab282611a8a565b6000611356826112bb565b6113915760405162461bcd60e51b815260040180806020018281038252602c815260200180612229602c913960400191505060405180910390fd5b600061139c83610ae9565b9050806001600160a01b0316846001600160a01b031614806113d75750836001600160a01b03166113cc846108e8565b6001600160a01b0316145b806113e757506113e7818561128d565b949350505050565b826001600160a01b031661140282610ae9565b6001600160a01b0316146114475760405162461bcd60e51b81526004018080602001828103825260298152602001806123506029913960400191505060405180910390fd5b6001600160a01b03821661148c5760405162461bcd60e51b81526004018080602001828103825260248152602001806121e36024913960400191505060405180910390fd5b611497838383610a20565b6114a26000826112d2565b6001600160a01b03831660009081526001602052604090206114c49082611a8e565b506001600160a01b03821660009081526001602052604090206114e79082611a9a565b506114f460028284611aa6565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610aaf8383611abc565b60008080806115568686611b20565b9097909650945050505050565b6000611570848484611b9b565b90505b9392505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b60008151604114611629576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561169a5760405162461bcd60e51b81526004018080602001828103825260228152602001806122076022913960400191505060405180910390fd5b8060ff16601b141580156116b257508060ff16601c14155b156116ee5760405162461bcd60e51b81526004018080602001828103825260228152602001806122e06022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561174a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117b2576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600060606117d860405180602001604052806000815250611c65565b915091509091565b604080516020810190915260008152600b9190910191565b6001600160a01b038216611853576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61185c816112bb565b156118ae576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6118ba60008383610a20565b6001600160a01b03821660009081526001602052604090206118dc9082611a9a565b506118e960028284611aa6565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6119318484846113ef565b61193d84848484611c6a565b610f7d5760405162461bcd60e51b81526004018080602001828103825260328152602001806121b16032913960400191505060405180910390fd5b60608161199d57506040805180820190915260018152600360fc1b602082015261084c565b8160005b81156119b557600101600a820491506119a1565b60608167ffffffffffffffff811180156119ce57600080fd5b506040519080825280601f01601f1916602001820160405280156119f9576020820181803683370190505b50859350905060001982015b8315611a4a57600a840660300160f81b82828060019003935081518110611a2857fe5b60200101906001600160f81b031916908160001a905350600a84049350611a05565b50949350505050565b6000610aaf8383611dd2565b600a546000906001600160a01b03163314611a7b5750336108e5565b611a83611dea565b90506108e5565b5490565b6000610aaf8383611e37565b6000610aaf8383611efd565b600061157084846001600160a01b038516611f47565b81546000908210611afe5760405162461bcd60e51b815260040180806020018281038252602281526020018061218f6022913960400191505060405180910390fd5b826000018281548110611b0d57fe5b9060005260206000200154905092915050565b815460009081908310611b645760405162461bcd60e51b81526004018080602001828103825260228152602001806123026022913960400191505060405180910390fd5b6000846000018481548110611b7557fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611c365760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611bfb578181015183820152602001611be3565b50505050905090810190601f168015611c285780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611c4957fe5b9060005260206000209060020201600101549150509392505050565b600091565b6000611c7e846001600160a01b0316611fde565b611c8a575060016113e7565b6060611d98630a85bd0160e11b611c9f6112c8565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611d06578181015183820152602001611cee565b50505050905090810190601f168015611d335780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060600160405280603281526020016121b1603291396001600160a01b0388169190612017565b90506000818060200190516020811015611db157600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b60008181526001830160205260408120548015611ef35783546000198083019190810190600090879083908110611e6a57fe5b9060005260206000200154905080876000018481548110611e8757fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611eb757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610ab2565b6000915050610ab2565b6000611f098383611dd2565b611f3f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610ab2565b506000610ab2565b600082815260018401602052604081205480611fac575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611573565b82856000016001830381548110611fbf57fe5b9060005260206000209060020201600101819055506000915050611573565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906113e7575050151592915050565b60606115708484600085606061202c85611fde565b61207d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106120bc5780518252601f19909201916020918201910161209d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461211e576040519150601f19603f3d011682016040523d82523d6000602084013e612123565b606091505b509150915081156121375791506113e79050565b8051156121475780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611bfb578181015183820152602001611be356fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f206164647265737345434453413a20696e76616c6964207369676e6174757265202773272076616c75654552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e45434453413a20696e76616c6964207369676e6174757265202776272076616c7565456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e657247534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875624552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a264697066735822122078b8bb57b3d14c3736d2a537b91c26f4975e82443a147f6290e7865262c42a9664736f6c634300060c003347534e526563697069656e745369676e61747572653a2074727573746564207369676e657220697320746865207a65726f2061646472657373"},"devdoc":{"kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Ensures that only transactions with a trusted signature can be relayed through the GSN."},"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"title":"ERC721GSNRecipientMock A simple ERC721 mock that has GSN support enabled","version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","getApproved(uint256)":"0x081812fc","getHubAddr()":"0x74e861d6","isApprovedForAll(address,address)":"0xe985e9c5","mint(uint256)":"0xa0712d68","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061014d5760003560e01c806370a08231116100c3578063a22cb4651161007c578063a22cb46514610638578063ad61ccd514610666578063b88d4fde1461066e578063c87b56dd14610732578063e06e0e221461074f578063e985e9c5146108005761014d565b806370a082311461036557806374e861d61461038b57806380274db71461039357806383947ea01461043757806395d89b4114610613578063a0712d681461061b5761014d565b806323b872dd1161011557806323b872dd1461028b5780632f745c59146102c157806342842e0e146102ed5780634f6ccce7146103235780636352211e146103405780636c0360eb1461035d5761014d565b806301ffc9a71461015257806306fdde031461018d578063081812fc1461020a578063095ea7b31461024357806318160ddd14610271575b600080fd5b6101796004803603602081101561016857600080fd5b50356001600160e01b03191661082e565b604080519115158252519081900360200190f35b610195610851565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cf5781810151838201526020016101b7565b50505050905090810190601f1680156101fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102276004803603602081101561022057600080fd5b50356108e8565b604080516001600160a01b039092168252519081900360200190f35b61026f6004803603604081101561025957600080fd5b506001600160a01b03813516906020013561094a565b005b610279610a25565b60408051918252519081900360200190f35b61026f600480360360608110156102a157600080fd5b506001600160a01b03813581169160208101359091169060400135610a36565b610279600480360360408110156102d757600080fd5b506001600160a01b038135169060200135610a8d565b61026f6004803603606081101561030357600080fd5b506001600160a01b03813581169160208101359091169060400135610ab8565b6102796004803603602081101561033957600080fd5b5035610ad3565b6102276004803603602081101561035657600080fd5b5035610ae9565b610195610b11565b6102796004803603602081101561037b57600080fd5b50356001600160a01b0316610b72565b610227610bda565b610279600480360360208110156103a957600080fd5b810190602081018135600160201b8111156103c357600080fd5b8201836020820111156103d557600080fd5b803590602001918460018302840111600160201b831117156103f657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610be9945050505050565b610594600480360361012081101561044e57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561048157600080fd5b82018360208201111561049357600080fd5b803590602001918460018302840111600160201b831117156104b457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561051e57600080fd5b82018360208201111561053057600080fd5b803590602001918460018302840111600160201b8311171561055157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250610c4b915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156105d75781810151838201526020016105bf565b50505050905090810190601f1680156106045780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610195610d8c565b61026f6004803603602081101561063157600080fd5b5035610ded565b61026f6004803603604081101561064e57600080fd5b506001600160a01b0381351690602001351515610e01565b610195610f06565b61026f6004803603608081101561068457600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156106be57600080fd5b8201836020820111156106d057600080fd5b803590602001918460018302840111600160201b831117156106f157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f25945050505050565b6101956004803603602081101561074857600080fd5b5035610f83565b61026f6004803603608081101561076557600080fd5b810190602081018135600160201b81111561077f57600080fd5b82018360208201111561079157600080fd5b803590602001918460018302840111600160201b831117156107b257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050508035151591506020810135906040013561122a565b6101796004803603604081101561081657600080fd5b506001600160a01b038135811691602001351661128d565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b820191906000526020600020905b8154815290600101906020018083116108c057829003601f168201915b505050505090505b90565b60006108f3826112bb565b61092e5760405162461bcd60e51b815260040180806020018281038252602c815260200180612324602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061095582610ae9565b9050806001600160a01b0316836001600160a01b031614156109a85760405162461bcd60e51b81526004018080602001828103825260218152602001806123a86021913960400191505060405180910390fd5b806001600160a01b03166109ba6112c8565b6001600160a01b031614806109db57506109db816109d66112c8565b61128d565b610a165760405162461bcd60e51b81526004018080602001828103825260388152602001806122556038913960400191505060405180910390fd5b610a2083836112d2565b505050565b6000610a316002611340565b905090565b610a47610a416112c8565b8261134b565b610a825760405162461bcd60e51b81526004018080602001828103825260318152602001806123ed6031913960400191505060405180910390fd5b610a208383836113ef565b6001600160a01b0382166000908152600160205260408120610aaf908361153b565b90505b92915050565b610a2083838360405180602001604052806000815250610f25565b600080610ae1600284611547565b509392505050565b6000610ab2826040518060600160405280602981526020016122b76029913960029190611563565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b60006001600160a01b038216610bb95760405162461bcd60e51b815260040180806020018281038252602a81526020018061228d602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610ab290611340565b600a546001600160a01b031690565b6000610bf3610bda565b6001600160a01b0316336001600160a01b031614610c425760405162461bcd60e51b81526004018080602001828103825260248152602001806123c96024913960400191505060405180910390fd5b610ab28261157a565b60006060808b8b8b8b8b8b8b610c5f610bda565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b60208310610cb65780518252601f199092019160209182019101610c97565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a89093019052600b548251918301919091209195506001600160a01b03169350610d539250889150610d4d90611580565b906115d1565b6001600160a01b03161415610d7457610d6a6117bc565b9250925050610d7e565b610d6a60006117e0565b995099975050505050505050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b610dfe610df86112c8565b826117f8565b50565b610e096112c8565b6001600160a01b0316826001600160a01b03161415610e6f576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610e7c6112c8565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ec06112c8565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610f36610f306112c8565b8361134b565b610f715760405162461bcd60e51b81526004018080602001828103825260318152602001806123ed6031913960400191505060405180910390fd5b610f7d84848484611926565b50505050565b6060610f8e826112bb565b610fc95760405162461bcd60e51b815260040180806020018281038252602f815260200180612379602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561105e5780601f106110335761010080835404028352916020019161105e565b820191906000526020600020905b81548152906001019060200180831161104157829003601f168201915b50506009549394505050506002600019610100600184161502019091160461108757905061084c565b8051156111585760098160405160200180838054600181600116156101000203166002900480156110ef5780601f106110cd5761010080835404028352918201916110ef565b820191906000526020600020905b8154815290600101906020018083116110db575b5050825160208401908083835b6020831061111b5780518252601f1990920191602091820191016110fc565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061084c565b600961116384611978565b60405160200180838054600181600116156101000203166002900480156111c15780601f1061119f5761010080835404028352918201916111c1565b820191906000526020600020905b8154815290600101906020018083116111ad575b5050825160208401908083835b602083106111ed5780518252601f1990920191602091820191016111ce565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b611232610bda565b6001600160a01b0316336001600160a01b0316146112815760405162461bcd60e51b81526004018080602001828103825260248152602001806123c96024913960400191505060405180910390fd5b610f7d84848484610f7d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610ab2600283611a53565b6000610a31611a5f565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061130782610ae9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610ab282611a8a565b6000611356826112bb565b6113915760405162461bcd60e51b815260040180806020018281038252602c815260200180612229602c913960400191505060405180910390fd5b600061139c83610ae9565b9050806001600160a01b0316846001600160a01b031614806113d75750836001600160a01b03166113cc846108e8565b6001600160a01b0316145b806113e757506113e7818561128d565b949350505050565b826001600160a01b031661140282610ae9565b6001600160a01b0316146114475760405162461bcd60e51b81526004018080602001828103825260298152602001806123506029913960400191505060405180910390fd5b6001600160a01b03821661148c5760405162461bcd60e51b81526004018080602001828103825260248152602001806121e36024913960400191505060405180910390fd5b611497838383610a20565b6114a26000826112d2565b6001600160a01b03831660009081526001602052604090206114c49082611a8e565b506001600160a01b03821660009081526001602052604090206114e79082611a9a565b506114f460028284611aa6565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610aaf8383611abc565b60008080806115568686611b20565b9097909650945050505050565b6000611570848484611b9b565b90505b9392505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b60008151604114611629576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561169a5760405162461bcd60e51b81526004018080602001828103825260228152602001806122076022913960400191505060405180910390fd5b8060ff16601b141580156116b257508060ff16601c14155b156116ee5760405162461bcd60e51b81526004018080602001828103825260228152602001806122e06022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561174a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117b2576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600060606117d860405180602001604052806000815250611c65565b915091509091565b604080516020810190915260008152600b9190910191565b6001600160a01b038216611853576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61185c816112bb565b156118ae576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6118ba60008383610a20565b6001600160a01b03821660009081526001602052604090206118dc9082611a9a565b506118e960028284611aa6565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6119318484846113ef565b61193d84848484611c6a565b610f7d5760405162461bcd60e51b81526004018080602001828103825260328152602001806121b16032913960400191505060405180910390fd5b60608161199d57506040805180820190915260018152600360fc1b602082015261084c565b8160005b81156119b557600101600a820491506119a1565b60608167ffffffffffffffff811180156119ce57600080fd5b506040519080825280601f01601f1916602001820160405280156119f9576020820181803683370190505b50859350905060001982015b8315611a4a57600a840660300160f81b82828060019003935081518110611a2857fe5b60200101906001600160f81b031916908160001a905350600a84049350611a05565b50949350505050565b6000610aaf8383611dd2565b600a546000906001600160a01b03163314611a7b5750336108e5565b611a83611dea565b90506108e5565b5490565b6000610aaf8383611e37565b6000610aaf8383611efd565b600061157084846001600160a01b038516611f47565b81546000908210611afe5760405162461bcd60e51b815260040180806020018281038252602281526020018061218f6022913960400191505060405180910390fd5b826000018281548110611b0d57fe5b9060005260206000200154905092915050565b815460009081908310611b645760405162461bcd60e51b81526004018080602001828103825260228152602001806123026022913960400191505060405180910390fd5b6000846000018481548110611b7557fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611c365760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611bfb578181015183820152602001611be3565b50505050905090810190601f168015611c285780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611c4957fe5b9060005260206000209060020201600101549150509392505050565b600091565b6000611c7e846001600160a01b0316611fde565b611c8a575060016113e7565b6060611d98630a85bd0160e11b611c9f6112c8565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611d06578181015183820152602001611cee565b50505050905090810190601f168015611d335780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060600160405280603281526020016121b1603291396001600160a01b0388169190612017565b90506000818060200190516020811015611db157600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b60008181526001830160205260408120548015611ef35783546000198083019190810190600090879083908110611e6a57fe5b9060005260206000200154905080876000018481548110611e8757fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611eb757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610ab2565b6000915050610ab2565b6000611f098383611dd2565b611f3f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610ab2565b506000610ab2565b600082815260018401602052604081205480611fac575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611573565b82856000016001830381548110611fbf57fe5b9060005260206000209060020201600101819055506000915050611573565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906113e7575050151592915050565b60606115708484600085606061202c85611fde565b61207d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106120bc5780518252601f19909201916020918201910161209d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461211e576040519150601f19603f3d011682016040523d82523d6000602084013e612123565b606091505b509150915081156121375791506113e79050565b8051156121475780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611bfb578181015183820152602001611be356fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f206164647265737345434453413a20696e76616c6964207369676e6174757265202773272076616c75654552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e45434453413a20696e76616c6964207369676e6174757265202776272076616c7565456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e657247534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875624552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a264697066735822122078b8bb57b3d14c3736d2a537b91c26f4975e82443a147f6290e7865262c42a9664736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC721GSNRecipientMock.sol","sourcemap":"267:640:44:-:0;;;857:70:1;;;-1:-1:-1;;;;;;857:70:1;885:42;857:70;;;352:173:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;352:173:44;;;;;;;;;;-1:-1:-1;352:173:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;352:173:44;;;;;;;;;;-1:-1:-1;352:173:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;352:173:44;;;;;;-1:-1:-1;352:173:44;;-1:-1:-1;459:4:44;465:6;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;3637:12:92;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;3659:16:92;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;3763:40:92;-1:-1:-1;;;3763:18:92;:40::i;:::-;3813:49;-1:-1:-1;;;3813:18:92;:49::i;:::-;3872:51;-1:-1:-1;;;3872:18:92;:51::i;:::-;-1:-1:-1;;;;;;;932:27:3;;924:97;;;;-1:-1:-1;;;924:97:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1031:14;:30;;-1:-1:-1;;;;;;1031:30:3;-1:-1:-1;;;;;1031:30:3;;;;;;;;;;-1:-1:-1;267:640:44;;-1:-1:-1;;267:640:44;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;267:640:44:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;267:640:44;;;-1:-1:-1;267:640:44;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721Holder":{"abi":[{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721Holder","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610159806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b6100f66004803603608081101561004657600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561008157600080fd5b82018360208201111561009357600080fd5b803590602001918460018302840111640100000000831117156100b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610113945050505050565b604080516001600160e01b03199092168252519081900360200190f35b630a85bd0160e11b94935050505056fea2646970667358221220fbe55c7cb4bb858059530b147b5120aacf2caa7540da04ebdad0736e7d14fd9864736f6c634300060c0033"},"devdoc":{"details":"Implementation of the {IERC721Receiver} interface. Accepts all token transfers. Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.","kind":"dev","methods":{"onERC721Received(address,address,uint256,bytes)":{"details":"See {IERC721Receiver-onERC721Received}. Always returns `IERC721Receiver.onERC721Received.selector`."}},"version":1},"methodIdentifiers":{"onERC721Received(address,address,uint256,bytes)":"0x150b7a02"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b6100f66004803603608081101561004657600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561008157600080fd5b82018360208201111561009357600080fd5b803590602001918460018302840111640100000000831117156100b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610113945050505050565b604080516001600160e01b03199092168252519081900360200190f35b630a85bd0160e11b94935050505056fea2646970667358221220fbe55c7cb4bb858059530b147b5120aacf2caa7540da04ebdad0736e7d14fd9864736f6c634300060c0033"},"sourceId":"contracts/token/ERC721/ERC721Holder.sol","sourcemap":"340:354:94:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721Mock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setTokenURI","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721Mock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200251538038062002515833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250839150829050620001b56301ffc9a760e01b62000221565b8151620001ca906006906020850190620002a6565b508051620001e0906007906020840190620002a6565b50620001f36380ac58cd60e01b62000221565b62000205635b5e139f60e01b62000221565b6200021763780e9d6360e01b62000221565b5050505062000342565b6001600160e01b0319808216141562000281576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002e957805160ff191683800117855562000319565b8280016001018555821562000319579182015b8281111562000319578251825591602001919060010190620002fc565b50620003279291506200032b565b5090565b5b808211156200032757600081556001016200032c565b6121c380620003526000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80634f6ccce7116100c357806395d89b411161007c57806395d89b4114610604578063a14481941461060c578063a22cb46514610638578063b88d4fde14610666578063c87b56dd1461072a578063e985e9c51461074757610158565b80634f6ccce71461043f57806355f804b31461045c5780636352211e146105005780636c0360eb1461051d57806370a08231146105255780638832e6e31461054b57610158565b806323b872dd1161011557806323b872dd146103415780632f745c591461037757806340c10f19146103a357806342842e0e146103cf57806342966c68146104055780634f558e791461042257610158565b806301ffc9a71461015d57806306fdde0314610198578063081812fc14610215578063095ea7b31461024e578063162094c41461027c57806318160ddd14610327575b600080fd5b6101846004803603602081101561017357600080fd5b50356001600160e01b031916610775565b604080519115158252519081900360200190f35b6101a0610798565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101da5781810151838201526020016101c2565b50505050905090810190601f1680156102075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603602081101561022b57600080fd5b503561082e565b604080516001600160a01b039092168252519081900360200190f35b61027a6004803603604081101561026457600080fd5b506001600160a01b038135169060200135610890565b005b61027a6004803603604081101561029257600080fd5b81359190810190604081016020820135600160201b8111156102b357600080fd5b8201836020820111156102c557600080fd5b803590602001918460018302840111600160201b831117156102e657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061096b945050505050565b61032f610979565b60408051918252519081900360200190f35b61027a6004803603606081101561035757600080fd5b506001600160a01b0381358116916020810135909116906040013561098a565b61032f6004803603604081101561038d57600080fd5b506001600160a01b0381351690602001356109e1565b61027a600480360360408110156103b957600080fd5b506001600160a01b038135169060200135610a0c565b61027a600480360360608110156103e557600080fd5b506001600160a01b03813581169160208101359091169060400135610a16565b61027a6004803603602081101561041b57600080fd5b5035610a31565b6101846004803603602081101561043857600080fd5b5035610a3d565b61032f6004803603602081101561045557600080fd5b5035610a48565b61027a6004803603602081101561047257600080fd5b810190602081018135600160201b81111561048c57600080fd5b82018360208201111561049e57600080fd5b803590602001918460018302840111600160201b831117156104bf57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a5e945050505050565b6102326004803603602081101561051657600080fd5b5035610a67565b6101a0610a8f565b61032f6004803603602081101561053b57600080fd5b50356001600160a01b0316610af0565b61027a6004803603606081101561056157600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561059057600080fd5b8201836020820111156105a257600080fd5b803590602001918460018302840111600160201b831117156105c357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b58945050505050565b6101a0610b63565b61027a6004803603604081101561062257600080fd5b506001600160a01b038135169060200135610bc4565b61027a6004803603604081101561064e57600080fd5b506001600160a01b0381351690602001351515610bce565b61027a6004803603608081101561067c57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156106b657600080fd5b8201836020820111156106c857600080fd5b803590602001918460018302840111600160201b831117156106e957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610cd3945050505050565b6101a06004803603602081101561074057600080fd5b5035610d31565b6101846004803603604081101561075d57600080fd5b506001600160a01b0381358116916020013516610fd8565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b820191906000526020600020905b81548152906001019060200180831161080757829003601f168201915b5050505050905090565b600061083982611006565b6108745760405162461bcd60e51b815260040180806020018281038252602c81526020018061208c602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061089b82610a67565b9050806001600160a01b0316836001600160a01b031614156108ee5760405162461bcd60e51b815260040180806020018281038252602181526020018061213c6021913960400191505060405180910390fd5b806001600160a01b0316610900611013565b6001600160a01b0316148061092157506109218161091c611013565b610fd8565b61095c5760405162461bcd60e51b8152600401808060200182810382526038815260200180611fdf6038913960400191505060405180910390fd5b6109668383611017565b505050565b6109758282611085565b5050565b600061098560026110e8565b905090565b61099b610995611013565b826110f3565b6109d65760405162461bcd60e51b815260040180806020018281038252603181526020018061215d6031913960400191505060405180910390fd5b610966838383611197565b6001600160a01b0382166000908152600160205260408120610a0390836112e3565b90505b92915050565b61097582826112ef565b61096683838360405180602001604052806000815250610cd3565b610a3a8161141d565b50565b6000610a0682611006565b600080610a566002846114ea565b509392505050565b610a3a81611506565b6000610a06826040518060600160405280602981526020016120416029913960029190611519565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b60006001600160a01b038216610b375760405162461bcd60e51b815260040180806020018281038252602a815260200180612017602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610a06906110e8565b610966838383611530565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b6109758282611582565b610bd6611013565b6001600160a01b0316826001600160a01b03161415610c3c576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610c49611013565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c8d611013565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610ce4610cde611013565b836110f3565b610d1f5760405162461bcd60e51b815260040180806020018281038252603181526020018061215d6031913960400191505060405180910390fd5b610d2b8484848461159c565b50505050565b6060610d3c82611006565b610d775760405162461bcd60e51b815260040180806020018281038252602f81526020018061210d602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610e0c5780601f10610de157610100808354040283529160200191610e0c565b820191906000526020600020905b815481529060010190602001808311610def57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610e35579050610793565b805115610f06576009816040516020018083805460018160011615610100020316600290048015610e9d5780601f10610e7b576101008083540402835291820191610e9d565b820191906000526020600020905b815481529060010190602001808311610e89575b5050825160208401908083835b60208310610ec95780518252601f199092019160209182019101610eaa565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610793565b6009610f11846115ee565b6040516020018083805460018160011615610100020316600290048015610f6f5780601f10610f4d576101008083540402835291820191610f6f565b820191906000526020600020905b815481529060010190602001808311610f5b575b5050825160208401908083835b60208310610f9b5780518252601f199092019160209182019101610f7c565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610a066002836116c9565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061104c82610a67565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61108e82611006565b6110c95760405162461bcd60e51b815260040180806020018281038252602c8152602001806120b8602c913960400191505060405180910390fd5b6000828152600860209081526040909120825161096692840190611e67565b6000610a06826116d5565b60006110fe82611006565b6111395760405162461bcd60e51b815260040180806020018281038252602c815260200180611fb3602c913960400191505060405180910390fd5b600061114483610a67565b9050806001600160a01b0316846001600160a01b0316148061117f5750836001600160a01b03166111748461082e565b6001600160a01b0316145b8061118f575061118f8185610fd8565b949350505050565b826001600160a01b03166111aa82610a67565b6001600160a01b0316146111ef5760405162461bcd60e51b81526004018080602001828103825260298152602001806120e46029913960400191505060405180910390fd5b6001600160a01b0382166112345760405162461bcd60e51b8152600401808060200182810382526024815260200180611f8f6024913960400191505060405180910390fd5b61123f838383610966565b61124a600082611017565b6001600160a01b038316600090815260016020526040902061126c90826116d9565b506001600160a01b038216600090815260016020526040902061128f90826116e5565b5061129c600282846116f1565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610a038383611707565b6001600160a01b03821661134a576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61135381611006565b156113a5576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6113b160008383610966565b6001600160a01b03821660009081526001602052604090206113d390826116e5565b506113e0600282846116f1565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061142882610a67565b905061143681600084610966565b611441600083611017565b600082815260086020526040902054600260001961010060018416150201909116041561147f57600082815260086020526040812061147f91611ee5565b6001600160a01b03811660009081526001602052604090206114a190836116d9565b506114ad60028361176b565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806114f98686611777565b9097909650945050505050565b8051610975906009906020840190611e67565b60006115268484846117f2565b90505b9392505050565b61153a83836112ef565b61154760008484846118bc565b6109665760405162461bcd60e51b8152600401808060200182810382526032815260200180611f5d6032913960400191505060405180910390fd5b610975828260405180602001604052806000815250611530565b6115a7848484611197565b6115b3848484846118bc565b610d2b5760405162461bcd60e51b8152600401808060200182810382526032815260200180611f5d6032913960400191505060405180910390fd5b60608161161357506040805180820190915260018152600360fc1b6020820152610793565b8160005b811561162b57600101600a82049150611617565b60608167ffffffffffffffff8111801561164457600080fd5b506040519080825280601f01601f19166020018201604052801561166f576020820181803683370190505b50859350905060001982015b83156116c057600a840660300160f81b8282806001900393508151811061169e57fe5b60200101906001600160f81b031916908160001a905350600a8404935061167b565b50949350505050565b6000610a038383611a24565b5490565b6000610a038383611a3c565b6000610a038383611b02565b600061152684846001600160a01b038516611b4c565b815460009082106117495760405162461bcd60e51b8152600401808060200182810382526022815260200180611f3b6022913960400191505060405180910390fd5b82600001828154811061175857fe5b9060005260206000200154905092915050565b6000610a038383611be3565b8154600090819083106117bb5760405162461bcd60e51b815260040180806020018281038252602281526020018061206a6022913960400191505060405180910390fd5b60008460000184815481106117cc57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b6000828152600184016020526040812054828161188d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561185257818101518382015260200161183a565b50505050905090810190601f16801561187f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106118a057fe5b9060005260206000209060020201600101549150509392505050565b60006118d0846001600160a01b0316611cb7565b6118dc5750600161118f565b60606119ea630a85bd0160e11b6118f1611013565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611958578181015183820152602001611940565b50505050905090810190601f1680156119855780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611f5d603291396001600160a01b0388169190611cf0565b90506000818060200190516020811015611a0357600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b60008181526001830160205260408120548015611af85783546000198083019190810190600090879083908110611a6f57fe5b9060005260206000200154905080876000018481548110611a8c57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611abc57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610a06565b6000915050610a06565b6000611b0e8383611a24565b611b4457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a06565b506000610a06565b600082815260018401602052604081205480611bb1575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611529565b82856000016001830381548110611bc457fe5b9060005260206000209060020201600101819055506000915050611529565b60008181526001830160205260408120548015611af85783546000198083019190810190600090879083908110611c1657fe5b9060005260206000209060020201905080876000018481548110611c3657fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611c7557fe5b6000828152602080822060026000199094019384020182815560019081018390559290935588815289820190925260408220919091559450610a069350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061118f575050151592915050565b606061152684846000856060611d0585611cb7565b611d56576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611d955780518252601f199092019160209182019101611d76565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611df7576040519150601f19603f3d011682016040523d82523d6000602084013e611dfc565b606091505b50915091508115611e1057915061118f9050565b805115611e205780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561185257818101518382015260200161183a565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611ea857805160ff1916838001178555611ed5565b82800160010185558215611ed5579182015b82811115611ed5578251825591602001919060010190611eba565b50611ee1929150611f25565b5090565b50805460018160011615610100020316600290046000825580601f10611f0b5750610a3a565b601f016020900490600052602060002090810190610a3a91905b5b80821115611ee15760008155600101611f2656fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220efff093671fb82c5bf8902a70092f465a4448a11d7f5de00277c645233565cf464736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"title":"ERC721Mock This mock just provides a public safeMint, mint, and burn functions for testing purposes","version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","burn(uint256)":"0x42966c68","exists(uint256)":"0x4f558e79","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","safeMint(address,uint256)":"0xa1448194","safeMint(address,uint256,bytes)":"0x8832e6e3","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","setBaseURI(string)":"0x55f804b3","setTokenURI(uint256,string)":"0x162094c4","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101585760003560e01c80634f6ccce7116100c357806395d89b411161007c57806395d89b4114610604578063a14481941461060c578063a22cb46514610638578063b88d4fde14610666578063c87b56dd1461072a578063e985e9c51461074757610158565b80634f6ccce71461043f57806355f804b31461045c5780636352211e146105005780636c0360eb1461051d57806370a08231146105255780638832e6e31461054b57610158565b806323b872dd1161011557806323b872dd146103415780632f745c591461037757806340c10f19146103a357806342842e0e146103cf57806342966c68146104055780634f558e791461042257610158565b806301ffc9a71461015d57806306fdde0314610198578063081812fc14610215578063095ea7b31461024e578063162094c41461027c57806318160ddd14610327575b600080fd5b6101846004803603602081101561017357600080fd5b50356001600160e01b031916610775565b604080519115158252519081900360200190f35b6101a0610798565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101da5781810151838201526020016101c2565b50505050905090810190601f1680156102075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603602081101561022b57600080fd5b503561082e565b604080516001600160a01b039092168252519081900360200190f35b61027a6004803603604081101561026457600080fd5b506001600160a01b038135169060200135610890565b005b61027a6004803603604081101561029257600080fd5b81359190810190604081016020820135600160201b8111156102b357600080fd5b8201836020820111156102c557600080fd5b803590602001918460018302840111600160201b831117156102e657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061096b945050505050565b61032f610979565b60408051918252519081900360200190f35b61027a6004803603606081101561035757600080fd5b506001600160a01b0381358116916020810135909116906040013561098a565b61032f6004803603604081101561038d57600080fd5b506001600160a01b0381351690602001356109e1565b61027a600480360360408110156103b957600080fd5b506001600160a01b038135169060200135610a0c565b61027a600480360360608110156103e557600080fd5b506001600160a01b03813581169160208101359091169060400135610a16565b61027a6004803603602081101561041b57600080fd5b5035610a31565b6101846004803603602081101561043857600080fd5b5035610a3d565b61032f6004803603602081101561045557600080fd5b5035610a48565b61027a6004803603602081101561047257600080fd5b810190602081018135600160201b81111561048c57600080fd5b82018360208201111561049e57600080fd5b803590602001918460018302840111600160201b831117156104bf57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a5e945050505050565b6102326004803603602081101561051657600080fd5b5035610a67565b6101a0610a8f565b61032f6004803603602081101561053b57600080fd5b50356001600160a01b0316610af0565b61027a6004803603606081101561056157600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561059057600080fd5b8201836020820111156105a257600080fd5b803590602001918460018302840111600160201b831117156105c357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b58945050505050565b6101a0610b63565b61027a6004803603604081101561062257600080fd5b506001600160a01b038135169060200135610bc4565b61027a6004803603604081101561064e57600080fd5b506001600160a01b0381351690602001351515610bce565b61027a6004803603608081101561067c57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156106b657600080fd5b8201836020820111156106c857600080fd5b803590602001918460018302840111600160201b831117156106e957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610cd3945050505050565b6101a06004803603602081101561074057600080fd5b5035610d31565b6101846004803603604081101561075d57600080fd5b506001600160a01b0381358116916020013516610fd8565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b820191906000526020600020905b81548152906001019060200180831161080757829003601f168201915b5050505050905090565b600061083982611006565b6108745760405162461bcd60e51b815260040180806020018281038252602c81526020018061208c602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061089b82610a67565b9050806001600160a01b0316836001600160a01b031614156108ee5760405162461bcd60e51b815260040180806020018281038252602181526020018061213c6021913960400191505060405180910390fd5b806001600160a01b0316610900611013565b6001600160a01b0316148061092157506109218161091c611013565b610fd8565b61095c5760405162461bcd60e51b8152600401808060200182810382526038815260200180611fdf6038913960400191505060405180910390fd5b6109668383611017565b505050565b6109758282611085565b5050565b600061098560026110e8565b905090565b61099b610995611013565b826110f3565b6109d65760405162461bcd60e51b815260040180806020018281038252603181526020018061215d6031913960400191505060405180910390fd5b610966838383611197565b6001600160a01b0382166000908152600160205260408120610a0390836112e3565b90505b92915050565b61097582826112ef565b61096683838360405180602001604052806000815250610cd3565b610a3a8161141d565b50565b6000610a0682611006565b600080610a566002846114ea565b509392505050565b610a3a81611506565b6000610a06826040518060600160405280602981526020016120416029913960029190611519565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b60006001600160a01b038216610b375760405162461bcd60e51b815260040180806020018281038252602a815260200180612017602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610a06906110e8565b610966838383611530565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b6109758282611582565b610bd6611013565b6001600160a01b0316826001600160a01b03161415610c3c576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610c49611013565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c8d611013565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610ce4610cde611013565b836110f3565b610d1f5760405162461bcd60e51b815260040180806020018281038252603181526020018061215d6031913960400191505060405180910390fd5b610d2b8484848461159c565b50505050565b6060610d3c82611006565b610d775760405162461bcd60e51b815260040180806020018281038252602f81526020018061210d602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610e0c5780601f10610de157610100808354040283529160200191610e0c565b820191906000526020600020905b815481529060010190602001808311610def57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610e35579050610793565b805115610f06576009816040516020018083805460018160011615610100020316600290048015610e9d5780601f10610e7b576101008083540402835291820191610e9d565b820191906000526020600020905b815481529060010190602001808311610e89575b5050825160208401908083835b60208310610ec95780518252601f199092019160209182019101610eaa565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610793565b6009610f11846115ee565b6040516020018083805460018160011615610100020316600290048015610f6f5780601f10610f4d576101008083540402835291820191610f6f565b820191906000526020600020905b815481529060010190602001808311610f5b575b5050825160208401908083835b60208310610f9b5780518252601f199092019160209182019101610f7c565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610a066002836116c9565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061104c82610a67565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61108e82611006565b6110c95760405162461bcd60e51b815260040180806020018281038252602c8152602001806120b8602c913960400191505060405180910390fd5b6000828152600860209081526040909120825161096692840190611e67565b6000610a06826116d5565b60006110fe82611006565b6111395760405162461bcd60e51b815260040180806020018281038252602c815260200180611fb3602c913960400191505060405180910390fd5b600061114483610a67565b9050806001600160a01b0316846001600160a01b0316148061117f5750836001600160a01b03166111748461082e565b6001600160a01b0316145b8061118f575061118f8185610fd8565b949350505050565b826001600160a01b03166111aa82610a67565b6001600160a01b0316146111ef5760405162461bcd60e51b81526004018080602001828103825260298152602001806120e46029913960400191505060405180910390fd5b6001600160a01b0382166112345760405162461bcd60e51b8152600401808060200182810382526024815260200180611f8f6024913960400191505060405180910390fd5b61123f838383610966565b61124a600082611017565b6001600160a01b038316600090815260016020526040902061126c90826116d9565b506001600160a01b038216600090815260016020526040902061128f90826116e5565b5061129c600282846116f1565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610a038383611707565b6001600160a01b03821661134a576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61135381611006565b156113a5576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6113b160008383610966565b6001600160a01b03821660009081526001602052604090206113d390826116e5565b506113e0600282846116f1565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061142882610a67565b905061143681600084610966565b611441600083611017565b600082815260086020526040902054600260001961010060018416150201909116041561147f57600082815260086020526040812061147f91611ee5565b6001600160a01b03811660009081526001602052604090206114a190836116d9565b506114ad60028361176b565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806114f98686611777565b9097909650945050505050565b8051610975906009906020840190611e67565b60006115268484846117f2565b90505b9392505050565b61153a83836112ef565b61154760008484846118bc565b6109665760405162461bcd60e51b8152600401808060200182810382526032815260200180611f5d6032913960400191505060405180910390fd5b610975828260405180602001604052806000815250611530565b6115a7848484611197565b6115b3848484846118bc565b610d2b5760405162461bcd60e51b8152600401808060200182810382526032815260200180611f5d6032913960400191505060405180910390fd5b60608161161357506040805180820190915260018152600360fc1b6020820152610793565b8160005b811561162b57600101600a82049150611617565b60608167ffffffffffffffff8111801561164457600080fd5b506040519080825280601f01601f19166020018201604052801561166f576020820181803683370190505b50859350905060001982015b83156116c057600a840660300160f81b8282806001900393508151811061169e57fe5b60200101906001600160f81b031916908160001a905350600a8404935061167b565b50949350505050565b6000610a038383611a24565b5490565b6000610a038383611a3c565b6000610a038383611b02565b600061152684846001600160a01b038516611b4c565b815460009082106117495760405162461bcd60e51b8152600401808060200182810382526022815260200180611f3b6022913960400191505060405180910390fd5b82600001828154811061175857fe5b9060005260206000200154905092915050565b6000610a038383611be3565b8154600090819083106117bb5760405162461bcd60e51b815260040180806020018281038252602281526020018061206a6022913960400191505060405180910390fd5b60008460000184815481106117cc57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b6000828152600184016020526040812054828161188d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561185257818101518382015260200161183a565b50505050905090810190601f16801561187f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106118a057fe5b9060005260206000209060020201600101549150509392505050565b60006118d0846001600160a01b0316611cb7565b6118dc5750600161118f565b60606119ea630a85bd0160e11b6118f1611013565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611958578181015183820152602001611940565b50505050905090810190601f1680156119855780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611f5d603291396001600160a01b0388169190611cf0565b90506000818060200190516020811015611a0357600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b60008181526001830160205260408120548015611af85783546000198083019190810190600090879083908110611a6f57fe5b9060005260206000200154905080876000018481548110611a8c57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611abc57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610a06565b6000915050610a06565b6000611b0e8383611a24565b611b4457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a06565b506000610a06565b600082815260018401602052604081205480611bb1575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611529565b82856000016001830381548110611bc457fe5b9060005260206000209060020201600101819055506000915050611529565b60008181526001830160205260408120548015611af85783546000198083019190810190600090879083908110611c1657fe5b9060005260206000209060020201905080876000018481548110611c3657fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611c7557fe5b6000828152602080822060026000199094019384020182815560019081018390559290935588815289820190925260408220919091559450610a069350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061118f575050151592915050565b606061152684846000856060611d0585611cb7565b611d56576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611d955780518252601f199092019160209182019101611d76565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611df7576040519150601f19603f3d011682016040523d82523d6000602084013e611dfc565b606091505b50915091508115611e1057915061118f9050565b805115611e205780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561185257818101518382015260200161183a565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611ea857805160ff1916838001178555611ed5565b82800160010185558215611ed5579182015b82811115611ed5578251825591602001919060010190611eba565b50611ee1929150611f25565b5090565b50805460018160011615610100020316600290046000825580601f10611f0b5750610a3a565b601f016020900490600052602060002090810190610a3a91905b5b80821115611ee15760008155600101611f2656fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220efff093671fb82c5bf8902a70092f465a4448a11d7f5de00277c645233565cf464736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC721Mock.sol","sourcemap":"217:827:45:-:0;;;253:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;253:86:45;;;;;;;;;;-1:-1:-1;253:86:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;253:86:45;;;;;;;;;;-1:-1:-1;253:86:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;253:86:45;;-1:-1:-1;322:4:45;;-1:-1:-1;328:6:45;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;3637:12:92;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;3659:16:92;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;3763:40:92;-1:-1:-1;;;3763:18:92;:40::i;:::-;3813:49;-1:-1:-1;;;3813:18:92;:49::i;:::-;3872:51;-1:-1:-1;;;3872:18:92;:51::i;:::-;3565:365;;253:86:45;;217:827;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;217:827:45:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;217:827:45;;;-1:-1:-1;217:827:45;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721Pausable":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721Pausable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"ERC721 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug.","kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","paused()":"0x5c975abb","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC721/ERC721Pausable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721PausableMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721PausableMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b50604051620022fe380380620022fe833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250839150829050620001b56301ffc9a760e01b6200022c565b8151620001ca906006906020850190620002b1565b508051620001e0906007906020840190620002b1565b50620001f36380ac58cd60e01b6200022c565b62000205635b5e139f60e01b6200022c565b6200021763780e9d6360e01b6200022c565b5050600a805460ff19169055506200034d9050565b6001600160e01b031980821614156200028c576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002f457805160ff191683800117855562000324565b8280016001018555821562000324579182015b828111156200032457825182559160200191906001019062000307565b506200033292915062000336565b5090565b5b8082111562000332576000815560010162000337565b611fa1806200035d6000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80634f558e79116100c35780638456cb591161007c5780638456cb591461040157806395d89b4114610409578063a22cb46514610411578063b88d4fde1461043f578063c87b56dd14610505578063e985e9c5146105225761014d565b80634f558e79146103745780634f6ccce7146103915780635c975abb146103ae5780636352211e146103b65780636c0360eb146103d357806370a08231146103db5761014d565b806323b872dd1161011557806323b872dd1461028b5780632f745c59146102c15780633f4ba83a146102ed57806340c10f19146102f557806342842e0e1461032157806342966c68146103575761014d565b806301ffc9a71461015257806306fdde031461018d578063081812fc1461020a578063095ea7b31461024357806318160ddd14610271575b600080fd5b6101796004803603602081101561016857600080fd5b50356001600160e01b031916610550565b604080519115158252519081900360200190f35b610195610573565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cf5781810151838201526020016101b7565b50505050905090810190601f1680156101fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102276004803603602081101561022057600080fd5b5035610609565b604080516001600160a01b039092168252519081900360200190f35b61026f6004803603604081101561025957600080fd5b506001600160a01b03813516906020013561066b565b005b610279610746565b60408051918252519081900360200190f35b61026f600480360360608110156102a157600080fd5b506001600160a01b03813581169160208101359091169060400135610757565b610279600480360360408110156102d757600080fd5b506001600160a01b0381351690602001356107ae565b61026f6107d9565b61026f6004803603604081101561030b57600080fd5b506001600160a01b0381351690602001356107e3565b61026f6004803603606081101561033757600080fd5b506001600160a01b038135811691602081013590911690604001356107f1565b61026f6004803603602081101561036d57600080fd5b503561080c565b6101796004803603602081101561038a57600080fd5b5035610818565b610279600480360360208110156103a757600080fd5b5035610823565b610179610839565b610227600480360360208110156103cc57600080fd5b5035610842565b61019561086a565b610279600480360360208110156103f157600080fd5b50356001600160a01b03166108cb565b61026f610933565b61019561093b565b61026f6004803603604081101561042757600080fd5b506001600160a01b038135169060200135151561099c565b61026f6004803603608081101561045557600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561049057600080fd5b8201836020820111156104a257600080fd5b803590602001918460018302840111640100000000831117156104c457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610aa1945050505050565b6101956004803603602081101561051b57600080fd5b5035610aff565b6101796004803603604081101561053857600080fd5b506001600160a01b0381358116916020013516610da6565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b820191906000526020600020905b8154815290600101906020018083116105e257829003601f168201915b5050505050905090565b600061061482610dd4565b61064f5760405162461bcd60e51b815260040180806020018281038252602c815260200180611e96602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061067682610842565b9050806001600160a01b0316836001600160a01b031614156106c95760405162461bcd60e51b8152600401808060200182810382526021815260200180611f1a6021913960400191505060405180910390fd5b806001600160a01b03166106db610de1565b6001600160a01b031614806106fc57506106fc816106f7610de1565b610da6565b6107375760405162461bcd60e51b8152600401808060200182810382526038815260200180611de96038913960400191505060405180910390fd5b6107418383610de5565b505050565b60006107526002610e53565b905090565b610768610762610de1565b82610e5e565b6107a35760405162461bcd60e51b8152600401808060200182810382526031815260200180611f3b6031913960400191505060405180910390fd5b610741838383610f02565b6001600160a01b03821660009081526001602052604081206107d0908361104e565b90505b92915050565b6107e161105a565b565b6107ed82826110f8565b5050565b61074183838360405180602001604052806000815250610aa1565b61081581611226565b50565b60006107d382610dd4565b6000806108316002846112f3565b509392505050565b600a5460ff1690565b60006107d382604051806060016040528060298152602001611e4b602991396002919061130f565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b60006001600160a01b0382166109125760405162461bcd60e51b815260040180806020018281038252602a815260200180611e21602a913960400191505060405180910390fd5b6001600160a01b03821660009081526001602052604090206107d390610e53565b6107e1611326565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b6109a4610de1565b6001600160a01b0316826001600160a01b03161415610a0a576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610a17610de1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a5b610de1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610ab2610aac610de1565b83610e5e565b610aed5760405162461bcd60e51b8152600401808060200182810382526031815260200180611f3b6031913960400191505060405180910390fd5b610af9848484846113a7565b50505050565b6060610b0a82610dd4565b610b455760405162461bcd60e51b815260040180806020018281038252602f815260200180611eeb602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610bda5780601f10610baf57610100808354040283529160200191610bda565b820191906000526020600020905b815481529060010190602001808311610bbd57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610c0357905061056e565b805115610cd4576009816040516020018083805460018160011615610100020316600290048015610c6b5780601f10610c49576101008083540402835291820191610c6b565b820191906000526020600020905b815481529060010190602001808311610c57575b5050825160208401908083835b60208310610c975780518252601f199092019160209182019101610c78565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061056e565b6009610cdf846113f9565b6040516020018083805460018160011615610100020316600290048015610d3d5780601f10610d1b576101008083540402835291820191610d3d565b820191906000526020600020905b815481529060010190602001808311610d29575b5050825160208401908083835b60208310610d695780518252601f199092019160209182019101610d4a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006107d36002836114d4565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610e1a82610842565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006107d3826114e0565b6000610e6982610dd4565b610ea45760405162461bcd60e51b815260040180806020018281038252602c815260200180611dbd602c913960400191505060405180910390fd5b6000610eaf83610842565b9050806001600160a01b0316846001600160a01b03161480610eea5750836001600160a01b0316610edf84610609565b6001600160a01b0316145b80610efa5750610efa8185610da6565b949350505050565b826001600160a01b0316610f1582610842565b6001600160a01b031614610f5a5760405162461bcd60e51b8152600401808060200182810382526029815260200180611ec26029913960400191505060405180910390fd5b6001600160a01b038216610f9f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d996024913960400191505060405180910390fd5b610faa8383836114e4565b610fb5600082610de5565b6001600160a01b0383166000908152600160205260409020610fd79082611533565b506001600160a01b0382166000908152600160205260409020610ffa908261153f565b506110076002828461154b565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006107d08383611561565b600a5460ff166110a8576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6110db610de1565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216611153576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61115c81610dd4565b156111ae576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6111ba600083836114e4565b6001600160a01b03821660009081526001602052604090206111dc908261153f565b506111e96002828461154b565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061123182610842565b905061123f816000846114e4565b61124a600083610de5565b600082815260086020526040902054600260001961010060018416150201909116041561128857600082815260086020526040812061128891611cc1565b6001600160a01b03811660009081526001602052604090206112aa9083611533565b506112b66002836115c5565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080808061130286866115d1565b9097909650945050505050565b600061131c84848461164c565b90505b9392505050565b600a5460ff1615611371576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110db610de1565b6113b2848484610f02565b6113be84848484611716565b610af95760405162461bcd60e51b8152600401808060200182810382526032815260200180611d676032913960400191505060405180910390fd5b60608161141e57506040805180820190915260018152600360fc1b602082015261056e565b8160005b811561143657600101600a82049150611422565b60608167ffffffffffffffff8111801561144f57600080fd5b506040519080825280601f01601f19166020018201604052801561147a576020820181803683370190505b50859350905060001982015b83156114cb57600a840660300160f81b828280600190039350815181106114a957fe5b60200101906001600160f81b031916908160001a905350600a84049350611486565b50949350505050565b60006107d0838361187e565b5490565b6114ef838383610741565b6114f7610839565b156107415760405162461bcd60e51b815260040180806020018281038252602b815260200180611d3c602b913960400191505060405180910390fd5b60006107d08383611896565b60006107d0838361195c565b600061131c84846001600160a01b0385166119a6565b815460009082106115a35760405162461bcd60e51b8152600401808060200182810382526022815260200180611d1a6022913960400191505060405180910390fd5b8260000182815481106115b257fe5b9060005260206000200154905092915050565b60006107d08383611a3d565b8154600090819083106116155760405162461bcd60e51b8152600401808060200182810382526022815260200180611e746022913960400191505060405180910390fd5b600084600001848154811061162657fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816116e75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116ac578181015183820152602001611694565b50505050905090810190601f1680156116d95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106116fa57fe5b9060005260206000209060020201600101549150509392505050565b600061172a846001600160a01b0316611b11565b61173657506001610efa565b6060611844630a85bd0160e11b61174b610de1565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156117b257818101518382015260200161179a565b50505050905090810190601f1680156117df5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611d67603291396001600160a01b0388169190611b4a565b9050600081806020019051602081101561185d57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561195257835460001980830191908101906000908790839081106118c957fe5b90600052602060002001549050808760000184815481106118e657fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061191657fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506107d3565b60009150506107d3565b6000611968838361187e565b61199e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107d3565b5060006107d3565b600082815260018401602052604081205480611a0b57505060408051808201825283815260208082018481528654600181810189556000898152848120955160029093029095019182559151908201558654868452818801909252929091205561131f565b82856000016001830381548110611a1e57fe5b906000526020600020906002020160010181905550600091505061131f565b600081815260018301602052604081205480156119525783546000198083019190810190600090879083908110611a7057fe5b9060005260206000209060020201905080876000018481548110611a9057fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611acf57fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506107d39350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610efa575050151592915050565b606061131c84846000856060611b5f85611b11565b611bb0576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611bef5780518252601f199092019160209182019101611bd0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611c51576040519150601f19603f3d011682016040523d82523d6000602084013e611c56565b606091505b50915091508115611c6a579150610efa9050565b805115611c7a5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156116ac578181015183820152602001611694565b50805460018160011615610100020316600290046000825580601f10611ce75750610815565b601f01602090049060005260206000209081019061081591905b80821115611d155760008155600101611d01565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732315061757361626c653a20746f6b656e207472616e73666572207768696c65207061757365644552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220dd03dadf5890d03212738e12a53e62ede9b778c9bab83b0f379f0f7ae9a1637164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"title":"ERC721PausableMock This mock just provides a public mint, burn and exists functions for testing purposes","version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","burn(uint256)":"0x42966c68","exists(uint256)":"0x4f558e79","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","pause()":"0x8456cb59","paused()":"0x5c975abb","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd","unpause()":"0x3f4ba83a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80634f558e79116100c35780638456cb591161007c5780638456cb591461040157806395d89b4114610409578063a22cb46514610411578063b88d4fde1461043f578063c87b56dd14610505578063e985e9c5146105225761014d565b80634f558e79146103745780634f6ccce7146103915780635c975abb146103ae5780636352211e146103b65780636c0360eb146103d357806370a08231146103db5761014d565b806323b872dd1161011557806323b872dd1461028b5780632f745c59146102c15780633f4ba83a146102ed57806340c10f19146102f557806342842e0e1461032157806342966c68146103575761014d565b806301ffc9a71461015257806306fdde031461018d578063081812fc1461020a578063095ea7b31461024357806318160ddd14610271575b600080fd5b6101796004803603602081101561016857600080fd5b50356001600160e01b031916610550565b604080519115158252519081900360200190f35b610195610573565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cf5781810151838201526020016101b7565b50505050905090810190601f1680156101fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102276004803603602081101561022057600080fd5b5035610609565b604080516001600160a01b039092168252519081900360200190f35b61026f6004803603604081101561025957600080fd5b506001600160a01b03813516906020013561066b565b005b610279610746565b60408051918252519081900360200190f35b61026f600480360360608110156102a157600080fd5b506001600160a01b03813581169160208101359091169060400135610757565b610279600480360360408110156102d757600080fd5b506001600160a01b0381351690602001356107ae565b61026f6107d9565b61026f6004803603604081101561030b57600080fd5b506001600160a01b0381351690602001356107e3565b61026f6004803603606081101561033757600080fd5b506001600160a01b038135811691602081013590911690604001356107f1565b61026f6004803603602081101561036d57600080fd5b503561080c565b6101796004803603602081101561038a57600080fd5b5035610818565b610279600480360360208110156103a757600080fd5b5035610823565b610179610839565b610227600480360360208110156103cc57600080fd5b5035610842565b61019561086a565b610279600480360360208110156103f157600080fd5b50356001600160a01b03166108cb565b61026f610933565b61019561093b565b61026f6004803603604081101561042757600080fd5b506001600160a01b038135169060200135151561099c565b61026f6004803603608081101561045557600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561049057600080fd5b8201836020820111156104a257600080fd5b803590602001918460018302840111640100000000831117156104c457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610aa1945050505050565b6101956004803603602081101561051b57600080fd5b5035610aff565b6101796004803603604081101561053857600080fd5b506001600160a01b0381358116916020013516610da6565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b820191906000526020600020905b8154815290600101906020018083116105e257829003601f168201915b5050505050905090565b600061061482610dd4565b61064f5760405162461bcd60e51b815260040180806020018281038252602c815260200180611e96602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061067682610842565b9050806001600160a01b0316836001600160a01b031614156106c95760405162461bcd60e51b8152600401808060200182810382526021815260200180611f1a6021913960400191505060405180910390fd5b806001600160a01b03166106db610de1565b6001600160a01b031614806106fc57506106fc816106f7610de1565b610da6565b6107375760405162461bcd60e51b8152600401808060200182810382526038815260200180611de96038913960400191505060405180910390fd5b6107418383610de5565b505050565b60006107526002610e53565b905090565b610768610762610de1565b82610e5e565b6107a35760405162461bcd60e51b8152600401808060200182810382526031815260200180611f3b6031913960400191505060405180910390fd5b610741838383610f02565b6001600160a01b03821660009081526001602052604081206107d0908361104e565b90505b92915050565b6107e161105a565b565b6107ed82826110f8565b5050565b61074183838360405180602001604052806000815250610aa1565b61081581611226565b50565b60006107d382610dd4565b6000806108316002846112f3565b509392505050565b600a5460ff1690565b60006107d382604051806060016040528060298152602001611e4b602991396002919061130f565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b60006001600160a01b0382166109125760405162461bcd60e51b815260040180806020018281038252602a815260200180611e21602a913960400191505060405180910390fd5b6001600160a01b03821660009081526001602052604090206107d390610e53565b6107e1611326565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b6109a4610de1565b6001600160a01b0316826001600160a01b03161415610a0a576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610a17610de1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a5b610de1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610ab2610aac610de1565b83610e5e565b610aed5760405162461bcd60e51b8152600401808060200182810382526031815260200180611f3b6031913960400191505060405180910390fd5b610af9848484846113a7565b50505050565b6060610b0a82610dd4565b610b455760405162461bcd60e51b815260040180806020018281038252602f815260200180611eeb602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610bda5780601f10610baf57610100808354040283529160200191610bda565b820191906000526020600020905b815481529060010190602001808311610bbd57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610c0357905061056e565b805115610cd4576009816040516020018083805460018160011615610100020316600290048015610c6b5780601f10610c49576101008083540402835291820191610c6b565b820191906000526020600020905b815481529060010190602001808311610c57575b5050825160208401908083835b60208310610c975780518252601f199092019160209182019101610c78565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061056e565b6009610cdf846113f9565b6040516020018083805460018160011615610100020316600290048015610d3d5780601f10610d1b576101008083540402835291820191610d3d565b820191906000526020600020905b815481529060010190602001808311610d29575b5050825160208401908083835b60208310610d695780518252601f199092019160209182019101610d4a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006107d36002836114d4565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610e1a82610842565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006107d3826114e0565b6000610e6982610dd4565b610ea45760405162461bcd60e51b815260040180806020018281038252602c815260200180611dbd602c913960400191505060405180910390fd5b6000610eaf83610842565b9050806001600160a01b0316846001600160a01b03161480610eea5750836001600160a01b0316610edf84610609565b6001600160a01b0316145b80610efa5750610efa8185610da6565b949350505050565b826001600160a01b0316610f1582610842565b6001600160a01b031614610f5a5760405162461bcd60e51b8152600401808060200182810382526029815260200180611ec26029913960400191505060405180910390fd5b6001600160a01b038216610f9f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d996024913960400191505060405180910390fd5b610faa8383836114e4565b610fb5600082610de5565b6001600160a01b0383166000908152600160205260409020610fd79082611533565b506001600160a01b0382166000908152600160205260409020610ffa908261153f565b506110076002828461154b565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006107d08383611561565b600a5460ff166110a8576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6110db610de1565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216611153576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61115c81610dd4565b156111ae576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6111ba600083836114e4565b6001600160a01b03821660009081526001602052604090206111dc908261153f565b506111e96002828461154b565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061123182610842565b905061123f816000846114e4565b61124a600083610de5565b600082815260086020526040902054600260001961010060018416150201909116041561128857600082815260086020526040812061128891611cc1565b6001600160a01b03811660009081526001602052604090206112aa9083611533565b506112b66002836115c5565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080808061130286866115d1565b9097909650945050505050565b600061131c84848461164c565b90505b9392505050565b600a5460ff1615611371576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110db610de1565b6113b2848484610f02565b6113be84848484611716565b610af95760405162461bcd60e51b8152600401808060200182810382526032815260200180611d676032913960400191505060405180910390fd5b60608161141e57506040805180820190915260018152600360fc1b602082015261056e565b8160005b811561143657600101600a82049150611422565b60608167ffffffffffffffff8111801561144f57600080fd5b506040519080825280601f01601f19166020018201604052801561147a576020820181803683370190505b50859350905060001982015b83156114cb57600a840660300160f81b828280600190039350815181106114a957fe5b60200101906001600160f81b031916908160001a905350600a84049350611486565b50949350505050565b60006107d0838361187e565b5490565b6114ef838383610741565b6114f7610839565b156107415760405162461bcd60e51b815260040180806020018281038252602b815260200180611d3c602b913960400191505060405180910390fd5b60006107d08383611896565b60006107d0838361195c565b600061131c84846001600160a01b0385166119a6565b815460009082106115a35760405162461bcd60e51b8152600401808060200182810382526022815260200180611d1a6022913960400191505060405180910390fd5b8260000182815481106115b257fe5b9060005260206000200154905092915050565b60006107d08383611a3d565b8154600090819083106116155760405162461bcd60e51b8152600401808060200182810382526022815260200180611e746022913960400191505060405180910390fd5b600084600001848154811061162657fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816116e75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116ac578181015183820152602001611694565b50505050905090810190601f1680156116d95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106116fa57fe5b9060005260206000209060020201600101549150509392505050565b600061172a846001600160a01b0316611b11565b61173657506001610efa565b6060611844630a85bd0160e11b61174b610de1565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156117b257818101518382015260200161179a565b50505050905090810190601f1680156117df5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611d67603291396001600160a01b0388169190611b4a565b9050600081806020019051602081101561185d57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561195257835460001980830191908101906000908790839081106118c957fe5b90600052602060002001549050808760000184815481106118e657fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061191657fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506107d3565b60009150506107d3565b6000611968838361187e565b61199e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107d3565b5060006107d3565b600082815260018401602052604081205480611a0b57505060408051808201825283815260208082018481528654600181810189556000898152848120955160029093029095019182559151908201558654868452818801909252929091205561131f565b82856000016001830381548110611a1e57fe5b906000526020600020906002020160010181905550600091505061131f565b600081815260018301602052604081205480156119525783546000198083019190810190600090879083908110611a7057fe5b9060005260206000209060020201905080876000018481548110611a9057fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611acf57fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506107d39350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610efa575050151592915050565b606061131c84846000856060611b5f85611b11565b611bb0576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611bef5780518252601f199092019160209182019101611bd0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611c51576040519150601f19603f3d011682016040523d82523d6000602084013e611c56565b606091505b50915091508115611c6a579150610efa9050565b805115611c7a5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156116ac578181015183820152602001611694565b50805460018160011615610100020316600290046000825580601f10611ce75750610815565b601f01602090049060005260206000209081019061081591905b80821115611d155760008155600101611d01565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732315061757361626c653a20746f6b656e207472616e73666572207768696c65207061757365644552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220dd03dadf5890d03212738e12a53e62ede9b778c9bab83b0f379f0f7ae9a1637164736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC721PausableMock.sol","sourcemap":"230:548:46:-:0;;;282:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;282:86:46;;;;;;;;;;-1:-1:-1;282:86:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;282:86:46;;;;;;;;;;-1:-1:-1;282:86:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;282:86:46;;-1:-1:-1;351:4:46;;-1:-1:-1;357:6:46;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;3637:12:92;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;3659:16:92;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;3763:40:92;-1:-1:-1;;;3763:18:92;:40::i;:::-;3813:49;-1:-1:-1;;;3813:18:92;:49::i;:::-;3872:51;-1:-1:-1;;;3872:18:92;:51::i;:::-;-1:-1:-1;;923:7:110;:15;;-1:-1:-1;;923:15:110;;;-1:-1:-1;230:548:46;;-1:-1:-1;230:548:46;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;230:548:46:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;230:548:46;;;-1:-1:-1;230:548:46;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721PresetMinterPauserAutoId":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","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":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_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":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721PresetMinterPauserAutoId","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b5060405162002cec38038062002cec833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620001bc57600080fd5b908301906020820185811115620001d257600080fd5b8251640100000000811182820188101715620001ed57600080fd5b82525081516020918201929091019080838360005b838110156200021c57818101518382015260200162000202565b50505050905090810190601f1680156200024a5780820380516001836020036101000a031916815260200191505b5060405250849150839050620002676301ffc9a760e01b6200035d565b81516200027c9060079060208501906200050e565b508051620002929060089060208401906200050e565b50620002a56380ac58cd60e01b6200035d565b620002b7635b5e139f60e01b6200035d565b620002c963780e9d6360e01b6200035d565b5050600b805460ff19169055620002eb6000620002e5620003e5565b620003e9565b6200031a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6620002e5620003e5565b620003497f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a620002e5620003e5565b6200035481620003f9565b505050620005aa565b6001600160e01b03198082161415620003bd576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b3390565b620003f582826200040e565b5050565b8051620003f590600a9060208401906200050e565b60008281526020818152604090912062000433918390620012c762000487821b17901c565b15620003f55762000443620003e5565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006200049e836001600160a01b038416620004a7565b90505b92915050565b6000620004b58383620004f6565b620004ed57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620004a1565b506000620004a1565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200055157805160ff191683800117855562000581565b8280016001018555821562000581579182015b828111156200058157825182559160200191906001019062000564565b506200058f92915062000593565b5090565b5b808211156200058f576000815560010162000594565b61273280620005ba6000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80636a6278421161010f578063a22cb465116100a2578063d539139311610071578063d53913931461068b578063d547741f14610693578063e63ab1e9146106bf578063e985e9c5146106c7576101f0565b8063a22cb4651461055d578063b88d4fde1461058b578063c87b56dd14610651578063ca15c8731461066e576101f0565b80639010d07c116100de5780639010d07c146104fe57806391d148541461052157806395d89b411461054d578063a217fddf14610555576101f0565b80636a627842146104a25780636c0360eb146104c857806370a08231146104d05780638456cb59146104f6576101f0565b80632f745c591161018757806342966c681161015657806342966c68146104435780634f6ccce7146104605780635c975abb1461047d5780636352211e14610485576101f0565b80632f745c59146103ad57806336568abe146103d95780633f4ba83a1461040557806342842e0e1461040d576101f0565b806318160ddd116101c357806318160ddd1461031457806323b872dd1461032e578063248a9ca3146103645780632f2ff15d14610381576101f0565b806301ffc9a7146101f557806306fdde0314610230578063081812fc146102ad578063095ea7b3146102e6575b600080fd5b61021c6004803603602081101561020b57600080fd5b50356001600160e01b0319166106f5565b604080519115158252519081900360200190f35b610238610718565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027257818101518382015260200161025a565b50505050905090810190601f16801561029f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102ca600480360360208110156102c357600080fd5b50356107ae565b604080516001600160a01b039092168252519081900360200190f35b610312600480360360408110156102fc57600080fd5b506001600160a01b038135169060200135610810565b005b61031c6108eb565b60408051918252519081900360200190f35b6103126004803603606081101561034457600080fd5b506001600160a01b038135811691602081013590911690604001356108fc565b61031c6004803603602081101561037a57600080fd5b5035610953565b6103126004803603604081101561039757600080fd5b50803590602001356001600160a01b0316610968565b61031c600480360360408110156103c357600080fd5b506001600160a01b0381351690602001356109d4565b610312600480360360408110156103ef57600080fd5b50803590602001356001600160a01b03166109ff565b610312610a60565b6103126004803603606081101561042357600080fd5b506001600160a01b03813581169160208101359091169060400135610ad1565b6103126004803603602081101561045957600080fd5b5035610aec565b61031c6004803603602081101561047657600080fd5b5035610b3e565b61021c610b54565b6102ca6004803603602081101561049b57600080fd5b5035610b5d565b610312600480360360208110156104b857600080fd5b50356001600160a01b0316610b85565b610238610c09565b61031c600480360360208110156104e657600080fd5b50356001600160a01b0316610c6a565b610312610cd2565b6102ca6004803603604081101561051457600080fd5b5080359060200135610d41565b61021c6004803603604081101561053757600080fd5b50803590602001356001600160a01b0316610d59565b610238610d71565b61031c610dd2565b6103126004803603604081101561057357600080fd5b506001600160a01b0381351690602001351515610dd7565b610312600480360360808110156105a157600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156105dc57600080fd5b8201836020820111156105ee57600080fd5b8035906020019184600183028401116401000000008311171561061057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610edc945050505050565b6102386004803603602081101561066757600080fd5b5035610f3a565b61031c6004803603602081101561068457600080fd5b50356111e1565b61031c6111f8565b610312600480360360408110156106a957600080fd5b50803590602001356001600160a01b031661121c565b61031c611275565b61021c600480360360408110156106dd57600080fd5b506001600160a01b0381358116916020013516611299565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b820191906000526020600020905b81548152906001019060200180831161078757829003601f168201915b5050505050905090565b60006107b9826112dc565b6107f45760405162461bcd60e51b815260040180806020018281038252602c81526020018061254b602c913960400191505060405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061081b82610b5d565b9050806001600160a01b0316836001600160a01b0316141561086e5760405162461bcd60e51b81526004018080602001828103825260218152602001806125cf6021913960400191505060405180910390fd5b806001600160a01b03166108806112e9565b6001600160a01b031614806108a157506108a18161089c6112e9565b611299565b6108dc5760405162461bcd60e51b815260040180806020018281038252603881526020018061249e6038913960400191505060405180910390fd5b6108e683836112ed565b505050565b60006108f7600361135b565b905090565b61090d6109076112e9565b82611366565b6109485760405162461bcd60e51b81526004018080602001828103825260318152602001806125f06031913960400191505060405180910390fd5b6108e683838361140a565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461098b906109866112e9565b610d59565b6109c65760405162461bcd60e51b815260040180806020018281038252602f81526020018061237f602f913960400191505060405180910390fd5b6109d08282611556565b5050565b6001600160a01b03821660009081526002602052604081206109f690836115bf565b90505b92915050565b610a076112e9565b6001600160a01b0316816001600160a01b031614610a565760405162461bcd60e51b815260040180806020018281038252602f8152602001806126ce602f913960400191505060405180910390fd5b6109d082826115cb565b610a8c7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109866112e9565b610ac75760405162461bcd60e51b815260040180806020018281038252604081526020018061268e6040913960400191505060405180910390fd5b610acf611634565b565b6108e683838360405180602001604052806000815250610edc565b610af76109076112e9565b610b325760405162461bcd60e51b815260040180806020018281038252603081526020018061265e6030913960400191505060405180910390fd5b610b3b816116d2565b50565b600080610b4c60038461179f565b509392505050565b600b5460ff1690565b60006109f98260405180606001604052806029815260200161250060299139600391906117bb565b610bb17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109866112e9565b610bec5760405162461bcd60e51b815260040180806020018281038252603d815260200180612621603d913960400191505060405180910390fd5b610bff81610bfa600c6117d2565b6117d6565b610b3b600c611904565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b60006001600160a01b038216610cb15760405162461bcd60e51b815260040180806020018281038252602a8152602001806124d6602a913960400191505060405180910390fd5b6001600160a01b03821660009081526002602052604090206109f99061135b565b610cfe7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109866112e9565b610d395760405162461bcd60e51b815260040180806020018281038252603e8152602001806123e0603e913960400191505060405180910390fd5b610acf61190d565b60008281526020819052604081206109f690836115bf565b60008281526020819052604081206109f6908361198e565b60088054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b600081565b610ddf6112e9565b6001600160a01b0316826001600160a01b03161415610e45576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060066000610e526112e9565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610e966112e9565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610eed610ee76112e9565b83611366565b610f285760405162461bcd60e51b81526004018080602001828103825260318152602001806125f06031913960400191505060405180910390fd5b610f34848484846119a3565b50505050565b6060610f45826112dc565b610f805760405162461bcd60e51b815260040180806020018281038252602f8152602001806125a0602f913960400191505060405180910390fd5b60008281526009602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156110155780601f10610fea57610100808354040283529160200191611015565b820191906000526020600020905b815481529060010190602001808311610ff857829003601f168201915b5050600a549394505050506002600019610100600184161502019091160461103e579050610713565b80511561110f57600a8160405160200180838054600181600116156101000203166002900480156110a65780601f106110845761010080835404028352918201916110a6565b820191906000526020600020905b815481529060010190602001808311611092575b5050825160208401908083835b602083106110d25780518252601f1990920191602091820191016110b3565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610713565b600a61111a846119f5565b60405160200180838054600181600116156101000203166002900480156111785780601f10611156576101008083540402835291820191611178565b820191906000526020600020905b815481529060010190602001808311611164575b5050825160208401908083835b602083106111a45780518252601f199092019160209182019101611185565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b60008181526020819052604081206109f99061135b565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461123a906109866112e9565b610a565760405162461bcd60e51b815260040180806020018281038252603081526020018061246e6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b60006109f6836001600160a01b038416611ad0565b60006109f9600383611b1a565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061132282610b5d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006109f9826117d2565b6000611371826112dc565b6113ac5760405162461bcd60e51b815260040180806020018281038252602c815260200180612442602c913960400191505060405180910390fd5b60006113b783610b5d565b9050806001600160a01b0316846001600160a01b031614806113f25750836001600160a01b03166113e7846107ae565b6001600160a01b0316145b8061140257506114028185611299565b949350505050565b826001600160a01b031661141d82610b5d565b6001600160a01b0316146114625760405162461bcd60e51b81526004018080602001828103825260298152602001806125776029913960400191505060405180910390fd5b6001600160a01b0382166114a75760405162461bcd60e51b815260040180806020018281038252602481526020018061241e6024913960400191505060405180910390fd5b6114b2838383611b26565b6114bd6000826112ed565b6001600160a01b03831660009081526002602052604090206114df9082611b31565b506001600160a01b03821660009081526002602052604090206115029082611b3d565b5061150f60038284611b49565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600082815260208190526040902061156e90826112c7565b156109d05761157b6112e9565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006109f68383611b5f565b60008281526020819052604090206115e39082611bc3565b156109d0576115f06112e9565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600b5460ff16611682576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116b56112e9565b604080516001600160a01b039092168252519081900360200190a1565b60006116dd82610b5d565b90506116eb81600084611b26565b6116f66000836112ed565b6000828152600960205260409020546002600019610100600184161502019091160415611734576000828152600960205260408120611734916122d9565b6001600160a01b03811660009081526002602052604090206117569083611b31565b50611762600383611bd8565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806117ae8686611be4565b9097909650945050505050565b60006117c8848484611c5f565b90505b9392505050565b5490565b6001600160a01b038216611831576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61183a816112dc565b1561188c576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b61189860008383611b26565b6001600160a01b03821660009081526002602052604090206118ba9082611b3d565b506118c760038284611b49565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80546001019055565b600b5460ff1615611958576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116b56112e9565b60006109f6836001600160a01b038416611d29565b6119ae84848461140a565b6119ba84848484611d41565b610f345760405162461bcd60e51b81526004018080602001828103825260328152602001806123ae6032913960400191505060405180910390fd5b606081611a1a57506040805180820190915260018152600360fc1b6020820152610713565b8160005b8115611a3257600101600a82049150611a1e565b60608167ffffffffffffffff81118015611a4b57600080fd5b506040519080825280601f01601f191660200182016040528015611a76576020820181803683370190505b50859350905060001982015b8315611ac757600a840660300160f81b82828060019003935081518110611aa557fe5b60200101906001600160f81b031916908160001a905350600a84049350611a82565b50949350505050565b6000611adc8383611d29565b611b12575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109f9565b5060006109f9565b60006109f68383611d29565b6108e6838383611ea9565b60006109f68383611ef8565b60006109f68383611ad0565b60006117c884846001600160a01b038516611fbe565b81546000908210611ba15760405162461bcd60e51b81526004018080602001828103825260228152602001806123326022913960400191505060405180910390fd5b826000018281548110611bb057fe5b9060005260206000200154905092915050565b60006109f6836001600160a01b038416611ef8565b60006109f68383612055565b815460009081908310611c285760405162461bcd60e51b81526004018080602001828103825260228152602001806125296022913960400191505060405180910390fd5b6000846000018481548110611c3957fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611cfa5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611cbf578181015183820152602001611ca7565b50505050905090810190601f168015611cec5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611d0d57fe5b9060005260206000209060020201600101549150509392505050565b60009081526001919091016020526040902054151590565b6000611d55846001600160a01b0316612129565b611d6157506001611402565b6060611e6f630a85bd0160e11b611d766112e9565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611ddd578181015183820152602001611dc5565b50505050905090810190601f168015611e0a5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060600160405280603281526020016123ae603291396001600160a01b0388169190612162565b90506000818060200190516020811015611e8857600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b611eb48383836108e6565b611ebc610b54565b156108e65760405162461bcd60e51b815260040180806020018281038252602b815260200180612354602b913960400191505060405180910390fd5b60008181526001830160205260408120548015611fb45783546000198083019190810190600090879083908110611f2b57fe5b9060005260206000200154905080876000018481548110611f4857fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611f7857fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506109f9565b60009150506109f9565b6000828152600184016020526040812054806120235750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556117cb565b8285600001600183038154811061203657fe5b90600052602060002090600202016001018190555060009150506117cb565b60008181526001830160205260408120548015611fb4578354600019808301919081019060009087908390811061208857fe5b90600052602060002090600202019050808760000184815481106120a857fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806120e757fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506109f99350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611402575050151592915050565b60606117c88484600085606061217785612129565b6121c8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106122075780518252601f1990920191602091820191016121e8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612269576040519150601f19603f3d011682016040523d82523d6000602084013e61226e565b606091505b509150915081156122825791506114029050565b8051156122925780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611cbf578181015183820152602001611ca7565b50805460018160011615610100020316600290046000825580601f106122ff5750610b3b565b601f016020900490600052602060002090810190610b3b91905b8082111561232d5760008155600101612319565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732315061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732315072657365744d696e7465725061757365724175746f49643a206d75737420686176652070617573657220726f6c6520746f2070617573654552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732315072657365744d696e7465725061757365724175746f49643a206d7573742068617665206d696e74657220726f6c6520746f206d696e744552433732314275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732315072657365744d696e7465725061757365724175746f49643a206d75737420686176652070617573657220726f6c6520746f20756e7061757365416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122082b1c9d736ac3ef0779c90a09d33793e70aa254dddd11e391018687f3378d20f64736f6c634300060c0033"},"devdoc":{"details":"{ERC721} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers - token ID and URI autogeneration This contract uses {AccessControl} to lock permissioned functions using the different roles - head to its documentation for details. The account that deploys the contract will be granted the minter and pauser roles, as well as the default admin role, which will let it grant both minter and pauser roles to other accounts.","kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"burn(uint256)":{"details":"Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator."},"constructor":{"details":"Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the account that deploys the contract. Token URIs will be autogenerated based on `baseURI` and their token IDs. See {ERC721-tokenURI}."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"getRoleAdmin(bytes32)":{"details":"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."},"getRoleMember(bytes32,uint256)":{"details":"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."},"getRoleMemberCount(bytes32)":{"details":"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."},"grantRole(bytes32,address)":{"details":"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."},"hasRole(bytes32,address)":{"details":"Returns `true` if `account` has been granted `role`."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"mint(address)":{"details":"Creates a new token for `to`. Its token ID will be automatically assigned (and available on the emitted {IERC721-Transfer} event), and the token URI autogenerated based on the base URI passed at construction. See {ERC721-_mint}. Requirements: - the caller must have the `MINTER_ROLE`."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"pause()":{"details":"Pauses all token transfers. See {ERC721Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"renounceRole(bytes32,address)":{"details":"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."},"revokeRole(bytes32,address)":{"details":"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."},"unpause()":{"details":"Unpauses all token transfers. See {ERC721Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`."}},"version":1},"methodIdentifiers":{"DEFAULT_ADMIN_ROLE()":"0xa217fddf","MINTER_ROLE()":"0xd5391393","PAUSER_ROLE()":"0xe63ab1e9","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","burn(uint256)":"0x42966c68","getApproved(uint256)":"0x081812fc","getRoleAdmin(bytes32)":"0x248a9ca3","getRoleMember(bytes32,uint256)":"0x9010d07c","getRoleMemberCount(bytes32)":"0xca15c873","grantRole(bytes32,address)":"0x2f2ff15d","hasRole(bytes32,address)":"0x91d14854","isApprovedForAll(address,address)":"0xe985e9c5","mint(address)":"0x6a627842","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","pause()":"0x8456cb59","paused()":"0x5c975abb","renounceRole(bytes32,address)":"0x36568abe","revokeRole(bytes32,address)":"0xd547741f","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd","unpause()":"0x3f4ba83a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101f05760003560e01c80636a6278421161010f578063a22cb465116100a2578063d539139311610071578063d53913931461068b578063d547741f14610693578063e63ab1e9146106bf578063e985e9c5146106c7576101f0565b8063a22cb4651461055d578063b88d4fde1461058b578063c87b56dd14610651578063ca15c8731461066e576101f0565b80639010d07c116100de5780639010d07c146104fe57806391d148541461052157806395d89b411461054d578063a217fddf14610555576101f0565b80636a627842146104a25780636c0360eb146104c857806370a08231146104d05780638456cb59146104f6576101f0565b80632f745c591161018757806342966c681161015657806342966c68146104435780634f6ccce7146104605780635c975abb1461047d5780636352211e14610485576101f0565b80632f745c59146103ad57806336568abe146103d95780633f4ba83a1461040557806342842e0e1461040d576101f0565b806318160ddd116101c357806318160ddd1461031457806323b872dd1461032e578063248a9ca3146103645780632f2ff15d14610381576101f0565b806301ffc9a7146101f557806306fdde0314610230578063081812fc146102ad578063095ea7b3146102e6575b600080fd5b61021c6004803603602081101561020b57600080fd5b50356001600160e01b0319166106f5565b604080519115158252519081900360200190f35b610238610718565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027257818101518382015260200161025a565b50505050905090810190601f16801561029f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102ca600480360360208110156102c357600080fd5b50356107ae565b604080516001600160a01b039092168252519081900360200190f35b610312600480360360408110156102fc57600080fd5b506001600160a01b038135169060200135610810565b005b61031c6108eb565b60408051918252519081900360200190f35b6103126004803603606081101561034457600080fd5b506001600160a01b038135811691602081013590911690604001356108fc565b61031c6004803603602081101561037a57600080fd5b5035610953565b6103126004803603604081101561039757600080fd5b50803590602001356001600160a01b0316610968565b61031c600480360360408110156103c357600080fd5b506001600160a01b0381351690602001356109d4565b610312600480360360408110156103ef57600080fd5b50803590602001356001600160a01b03166109ff565b610312610a60565b6103126004803603606081101561042357600080fd5b506001600160a01b03813581169160208101359091169060400135610ad1565b6103126004803603602081101561045957600080fd5b5035610aec565b61031c6004803603602081101561047657600080fd5b5035610b3e565b61021c610b54565b6102ca6004803603602081101561049b57600080fd5b5035610b5d565b610312600480360360208110156104b857600080fd5b50356001600160a01b0316610b85565b610238610c09565b61031c600480360360208110156104e657600080fd5b50356001600160a01b0316610c6a565b610312610cd2565b6102ca6004803603604081101561051457600080fd5b5080359060200135610d41565b61021c6004803603604081101561053757600080fd5b50803590602001356001600160a01b0316610d59565b610238610d71565b61031c610dd2565b6103126004803603604081101561057357600080fd5b506001600160a01b0381351690602001351515610dd7565b610312600480360360808110156105a157600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156105dc57600080fd5b8201836020820111156105ee57600080fd5b8035906020019184600183028401116401000000008311171561061057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610edc945050505050565b6102386004803603602081101561066757600080fd5b5035610f3a565b61031c6004803603602081101561068457600080fd5b50356111e1565b61031c6111f8565b610312600480360360408110156106a957600080fd5b50803590602001356001600160a01b031661121c565b61031c611275565b61021c600480360360408110156106dd57600080fd5b506001600160a01b0381358116916020013516611299565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b820191906000526020600020905b81548152906001019060200180831161078757829003601f168201915b5050505050905090565b60006107b9826112dc565b6107f45760405162461bcd60e51b815260040180806020018281038252602c81526020018061254b602c913960400191505060405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061081b82610b5d565b9050806001600160a01b0316836001600160a01b0316141561086e5760405162461bcd60e51b81526004018080602001828103825260218152602001806125cf6021913960400191505060405180910390fd5b806001600160a01b03166108806112e9565b6001600160a01b031614806108a157506108a18161089c6112e9565b611299565b6108dc5760405162461bcd60e51b815260040180806020018281038252603881526020018061249e6038913960400191505060405180910390fd5b6108e683836112ed565b505050565b60006108f7600361135b565b905090565b61090d6109076112e9565b82611366565b6109485760405162461bcd60e51b81526004018080602001828103825260318152602001806125f06031913960400191505060405180910390fd5b6108e683838361140a565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461098b906109866112e9565b610d59565b6109c65760405162461bcd60e51b815260040180806020018281038252602f81526020018061237f602f913960400191505060405180910390fd5b6109d08282611556565b5050565b6001600160a01b03821660009081526002602052604081206109f690836115bf565b90505b92915050565b610a076112e9565b6001600160a01b0316816001600160a01b031614610a565760405162461bcd60e51b815260040180806020018281038252602f8152602001806126ce602f913960400191505060405180910390fd5b6109d082826115cb565b610a8c7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109866112e9565b610ac75760405162461bcd60e51b815260040180806020018281038252604081526020018061268e6040913960400191505060405180910390fd5b610acf611634565b565b6108e683838360405180602001604052806000815250610edc565b610af76109076112e9565b610b325760405162461bcd60e51b815260040180806020018281038252603081526020018061265e6030913960400191505060405180910390fd5b610b3b816116d2565b50565b600080610b4c60038461179f565b509392505050565b600b5460ff1690565b60006109f98260405180606001604052806029815260200161250060299139600391906117bb565b610bb17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109866112e9565b610bec5760405162461bcd60e51b815260040180806020018281038252603d815260200180612621603d913960400191505060405180910390fd5b610bff81610bfa600c6117d2565b6117d6565b610b3b600c611904565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b60006001600160a01b038216610cb15760405162461bcd60e51b815260040180806020018281038252602a8152602001806124d6602a913960400191505060405180910390fd5b6001600160a01b03821660009081526002602052604090206109f99061135b565b610cfe7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109866112e9565b610d395760405162461bcd60e51b815260040180806020018281038252603e8152602001806123e0603e913960400191505060405180910390fd5b610acf61190d565b60008281526020819052604081206109f690836115bf565b60008281526020819052604081206109f6908361198e565b60088054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b600081565b610ddf6112e9565b6001600160a01b0316826001600160a01b03161415610e45576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060066000610e526112e9565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610e966112e9565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610eed610ee76112e9565b83611366565b610f285760405162461bcd60e51b81526004018080602001828103825260318152602001806125f06031913960400191505060405180910390fd5b610f34848484846119a3565b50505050565b6060610f45826112dc565b610f805760405162461bcd60e51b815260040180806020018281038252602f8152602001806125a0602f913960400191505060405180910390fd5b60008281526009602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156110155780601f10610fea57610100808354040283529160200191611015565b820191906000526020600020905b815481529060010190602001808311610ff857829003601f168201915b5050600a549394505050506002600019610100600184161502019091160461103e579050610713565b80511561110f57600a8160405160200180838054600181600116156101000203166002900480156110a65780601f106110845761010080835404028352918201916110a6565b820191906000526020600020905b815481529060010190602001808311611092575b5050825160208401908083835b602083106110d25780518252601f1990920191602091820191016110b3565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610713565b600a61111a846119f5565b60405160200180838054600181600116156101000203166002900480156111785780601f10611156576101008083540402835291820191611178565b820191906000526020600020905b815481529060010190602001808311611164575b5050825160208401908083835b602083106111a45780518252601f199092019160209182019101611185565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b60008181526020819052604081206109f99061135b565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461123a906109866112e9565b610a565760405162461bcd60e51b815260040180806020018281038252603081526020018061246e6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b60006109f6836001600160a01b038416611ad0565b60006109f9600383611b1a565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061132282610b5d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006109f9826117d2565b6000611371826112dc565b6113ac5760405162461bcd60e51b815260040180806020018281038252602c815260200180612442602c913960400191505060405180910390fd5b60006113b783610b5d565b9050806001600160a01b0316846001600160a01b031614806113f25750836001600160a01b03166113e7846107ae565b6001600160a01b0316145b8061140257506114028185611299565b949350505050565b826001600160a01b031661141d82610b5d565b6001600160a01b0316146114625760405162461bcd60e51b81526004018080602001828103825260298152602001806125776029913960400191505060405180910390fd5b6001600160a01b0382166114a75760405162461bcd60e51b815260040180806020018281038252602481526020018061241e6024913960400191505060405180910390fd5b6114b2838383611b26565b6114bd6000826112ed565b6001600160a01b03831660009081526002602052604090206114df9082611b31565b506001600160a01b03821660009081526002602052604090206115029082611b3d565b5061150f60038284611b49565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600082815260208190526040902061156e90826112c7565b156109d05761157b6112e9565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006109f68383611b5f565b60008281526020819052604090206115e39082611bc3565b156109d0576115f06112e9565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600b5460ff16611682576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116b56112e9565b604080516001600160a01b039092168252519081900360200190a1565b60006116dd82610b5d565b90506116eb81600084611b26565b6116f66000836112ed565b6000828152600960205260409020546002600019610100600184161502019091160415611734576000828152600960205260408120611734916122d9565b6001600160a01b03811660009081526002602052604090206117569083611b31565b50611762600383611bd8565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806117ae8686611be4565b9097909650945050505050565b60006117c8848484611c5f565b90505b9392505050565b5490565b6001600160a01b038216611831576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61183a816112dc565b1561188c576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b61189860008383611b26565b6001600160a01b03821660009081526002602052604090206118ba9082611b3d565b506118c760038284611b49565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80546001019055565b600b5460ff1615611958576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116b56112e9565b60006109f6836001600160a01b038416611d29565b6119ae84848461140a565b6119ba84848484611d41565b610f345760405162461bcd60e51b81526004018080602001828103825260328152602001806123ae6032913960400191505060405180910390fd5b606081611a1a57506040805180820190915260018152600360fc1b6020820152610713565b8160005b8115611a3257600101600a82049150611a1e565b60608167ffffffffffffffff81118015611a4b57600080fd5b506040519080825280601f01601f191660200182016040528015611a76576020820181803683370190505b50859350905060001982015b8315611ac757600a840660300160f81b82828060019003935081518110611aa557fe5b60200101906001600160f81b031916908160001a905350600a84049350611a82565b50949350505050565b6000611adc8383611d29565b611b12575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109f9565b5060006109f9565b60006109f68383611d29565b6108e6838383611ea9565b60006109f68383611ef8565b60006109f68383611ad0565b60006117c884846001600160a01b038516611fbe565b81546000908210611ba15760405162461bcd60e51b81526004018080602001828103825260228152602001806123326022913960400191505060405180910390fd5b826000018281548110611bb057fe5b9060005260206000200154905092915050565b60006109f6836001600160a01b038416611ef8565b60006109f68383612055565b815460009081908310611c285760405162461bcd60e51b81526004018080602001828103825260228152602001806125296022913960400191505060405180910390fd5b6000846000018481548110611c3957fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611cfa5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611cbf578181015183820152602001611ca7565b50505050905090810190601f168015611cec5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611d0d57fe5b9060005260206000209060020201600101549150509392505050565b60009081526001919091016020526040902054151590565b6000611d55846001600160a01b0316612129565b611d6157506001611402565b6060611e6f630a85bd0160e11b611d766112e9565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611ddd578181015183820152602001611dc5565b50505050905090810190601f168015611e0a5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060600160405280603281526020016123ae603291396001600160a01b0388169190612162565b90506000818060200190516020811015611e8857600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b611eb48383836108e6565b611ebc610b54565b156108e65760405162461bcd60e51b815260040180806020018281038252602b815260200180612354602b913960400191505060405180910390fd5b60008181526001830160205260408120548015611fb45783546000198083019190810190600090879083908110611f2b57fe5b9060005260206000200154905080876000018481548110611f4857fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611f7857fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506109f9565b60009150506109f9565b6000828152600184016020526040812054806120235750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556117cb565b8285600001600183038154811061203657fe5b90600052602060002090600202016001018190555060009150506117cb565b60008181526001830160205260408120548015611fb4578354600019808301919081019060009087908390811061208857fe5b90600052602060002090600202019050808760000184815481106120a857fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806120e757fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506109f99350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611402575050151592915050565b60606117c88484600085606061217785612129565b6121c8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106122075780518252601f1990920191602091820191016121e8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612269576040519150601f19603f3d011682016040523d82523d6000602084013e61226e565b606091505b509150915081156122825791506114029050565b8051156122925780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611cbf578181015183820152602001611ca7565b50805460018160011615610100020316600290046000825580601f106122ff5750610b3b565b601f016020900490600052602060002090810190610b3b91905b8082111561232d5760008155600101612319565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732315061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732315072657365744d696e7465725061757365724175746f49643a206d75737420686176652070617573657220726f6c6520746f2070617573654552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732315072657365744d696e7465725061757365724175746f49643a206d7573742068617665206d696e74657220726f6c6520746f206d696e744552433732314275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732315072657365744d696e7465725061757365724175746f49643a206d75737420686176652070617573657220726f6c6520746f20756e7061757365416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122082b1c9d736ac3ef0779c90a09d33793e70aa254dddd11e391018687f3378d20f64736f6c634300060c0033"},"sourceId":"contracts/presets/ERC721PresetMinterPauserAutoId.sol","sourcemap":"891:2612:75:-:0;;;1476:292;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1476:292:75;;;;;;;;;;-1:-1:-1;1476:292:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1476:292:75;;;;;;;;;;-1:-1:-1;1476:292:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1476:292:75;;;;;;;;;;-1:-1:-1;1476:292:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1476:292:75;;-1:-1:-1;1567:4:75;;-1:-1:-1;1573:6:75;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;3637:12:92;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;3659:16:92;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;3763:40:92;-1:-1:-1;;;3763:18:92;:40::i;:::-;3813:49;-1:-1:-1;;;3813:18:92;:49::i;:::-;3872:51;-1:-1:-1;;;3872:18:92;:51::i;:::-;-1:-1:-1;;923:7:110;:15;;-1:-1:-1;;923:15:110;;;1591:44:75::1;933:5:110::0;1622:12:75::1;:10;:12::i;:::-;1591:10;:44::i;:::-;1646:37;1075:24;1670:12;:10;:12::i;1646:37::-;1693;1143:24;1717:12;:10;:12::i;1693:37::-;1741:20;1753:7:::0;1741:11:::1;:20::i;:::-;1476:292:::0;;;891:2612;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;;;;;1669:4;1633:33;;;;;;;;:40;;-1:-1:-1;;1633:40:10;;;;;;1482:198::o;590:104:0:-;677:10;590:104;:::o;6578:110:6:-;6656:25;6667:4;6673:7;6656:10;:25::i;:::-;6578:110;;:::o;14647:98:92:-;14719:19;;;;:8;;:19;;;;;:::i;7015:184:6:-;7088:6;:12;;;;;;;;;;;:33;;7113:7;;7088:24;;;;;:33;;:::i;:::-;7084:109;;;7169:12;:10;:12::i;:::-;-1:-1:-1;;;;;7142:40:6;7160:7;-1:-1:-1;;;;;7142:40:6;7154:4;7142:40;;;;;;;;;;7015:184;;:::o;4864:141:109:-;4934:4;4957:41;4962:3;-1:-1:-1;;;;;4982:14:109;;4957:4;:41::i;:::-;4950:48;;4864:141;;;;;:::o;1611:404::-;1674:4;1695:21;1705:3;1710:5;1695:9;:21::i;:::-;1690:319;;-1:-1:-1;1732:23:109;;;;;;;;:11;:23;;;;;;;;;;;;;1912:18;;1890:19;;;:12;;;:19;;;;;;:40;;;;1944:11;;1690:319;-1:-1:-1;1993:5:109;1986:12;;3776:127;3849:4;3872:19;;;:12;;;;;:19;;;;;;:24;;;3776:127::o;891:2612:75:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;891:2612:75;;;-1:-1:-1;891:2612:75;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721ReceiverMock":{"abi":[{"inputs":[{"internalType":"bytes4","name":"retval","type":"bytes4"},{"internalType":"bool","name":"reverts","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"gas","type":"uint256"}],"name":"Received","type":"event"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721ReceiverMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506040516102fd3803806102fd8339818101604052604081101561003357600080fd5b508051602090910151600080549115156401000000000260ff60201b1960e09490941c63ffffffff199093169290921792909216179055610284806100796000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b6100f66004803603608081101561004657600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561008157600080fd5b82018360208201111561009357600080fd5b803590602001918460018302840111640100000000831117156100b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610113945050505050565b604080516001600160e01b03199092168252519081900360200190f35b60008054640100000000900460ff1615610174576040805162461bcd60e51b815260206004820152601d60248201527f45524337323152656365697665724d6f636b3a20726576657274696e67000000604482015290519081900360640190fd5b7f28fa6e16458f9c24aa59ddd4085264573006dbe30304837873c7deafc702b038858585855a60405180866001600160a01b03168152602001856001600160a01b0316815260200184815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b838110156102015781810151838201526020016101e9565b50505050905090810190601f16801561022e5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a15060005460e01b94935050505056fea2646970667358221220685611dc93864a7eb15b22e46c9e25c3678974152b3694c751a8546cb2e4d3a764736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"onERC721Received(address,address,uint256,bytes)":{"details":"Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} by `operator` from `from`, this function is called. It must return its Solidity selector to confirm the token transfer. If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`."}},"version":1},"methodIdentifiers":{"onERC721Received(address,address,uint256,bytes)":"0x150b7a02"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b6100f66004803603608081101561004657600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561008157600080fd5b82018360208201111561009357600080fd5b803590602001918460018302840111640100000000831117156100b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610113945050505050565b604080516001600160e01b03199092168252519081900360200190f35b60008054640100000000900460ff1615610174576040805162461bcd60e51b815260206004820152601d60248201527f45524337323152656365697665724d6f636b3a20726576657274696e67000000604482015290519081900360640190fd5b7f28fa6e16458f9c24aa59ddd4085264573006dbe30304837873c7deafc702b038858585855a60405180866001600160a01b03168152602001856001600160a01b0316815260200184815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b838110156102015781810151838201526020016101e9565b50505050905090810190601f16801561022e5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a15060005460e01b94935050505056fea2646970667358221220685611dc93864a7eb15b22e46c9e25c3678974152b3694c751a8546cb2e4d3a764736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC721ReceiverMock.sol","sourcemap":"105:618:47:-:0;;;309:110;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;309:110:47;;;;;;;368:7;:16;;394:18;;;;;-1:-1:-1;;;;368:16:47;;;;;-1:-1:-1;;368:16:47;;;;;;;394:18;;;;;;;105:618;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC777":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address[]","name":"defaultOperators","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"AuthorizedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"RevokedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Sent","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"},{"inputs":[{"internalType":"address","name":"holder","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"authorizeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"defaultOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"granularity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"isOperatorFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"revokeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","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"}],"contractName":"ERC777","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b50604051620023b0380380620023b0833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620001bc57600080fd5b908301906020820185811115620001d257600080fd5b8251866020820283011164010000000082111715620001f057600080fd5b82525081516020918201928201910280838360005b838110156200021f57818101518382015260200162000205565b5050505091909101604052505084516200024392506002915060208601906200040b565b508151620002599060039060208501906200040b565b5080516200026f90600490602084019062000490565b5060005b600454811015620002cf57600160056000600484815481106200029257fe5b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560010162000273565b50604080516329965a1d60e01b815230600482018190527fac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce2177054602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad24916329965a1d91606480830192600092919082900301818387803b1580156200035057600080fd5b505af115801562000365573d6000803e3d6000fd5b5050604080516329965a1d60e01b815230600482018190527faea199e31a596269b42cdafd93407f14436db6e4cad65417994c2eb37381e05a602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad2493506329965a1d9250606480830192600092919082900301818387803b158015620003e957600080fd5b505af1158015620003fe573d6000803e3d6000fd5b505050505050506200052e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200044e57805160ff19168380011785556200047e565b828001600101855582156200047e579182015b828111156200047e57825182559160200191906001019062000461565b506200048c929150620004f6565b5090565b828054828255906000526020600020908101928215620004e8579160200282015b82811115620004e857825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620004b1565b506200048c9291506200050d565b5b808211156200048c5760008155600101620004f7565b5b808211156200048c5780546001600160a01b03191681556001016200050e565b611e72806200053e6000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063959b8c3f116100a2578063d95b637111610071578063d95b63711461052a578063dd62ed3e14610558578063fad8b32a14610586578063fc673c4f146105ac578063fe9d9303146106ea57610116565b8063959b8c3f1461041757806395d89b411461043d5780639bd9bbc614610445578063a9059cbb146104fe57610116565b806323b872dd116100e957806323b872dd1461024a578063313ce56714610280578063556f0dc71461029e57806362ad1b83146102a657806370a08231146103f157610116565b806306e485381461011b57806306fdde0314610173578063095ea7b3146101f057806318160ddd14610230575b600080fd5b610123610795565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561015f578181015183820152602001610147565b505050509050019250505060405180910390f35b61017b6107f7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b557818101518382015260200161019d565b50505050905090810190601f1680156101e25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61021c6004803603604081101561020657600080fd5b506001600160a01b038135169060200135610881565b604080519115158252519081900360200190f35b6102386108a3565b60408051918252519081900360200190f35b61021c6004803603606081101561026057600080fd5b506001600160a01b038135811691602081013590911690604001356108a9565b610288610a26565b6040805160ff9092168252519081900360200190f35b610238610a2b565b6103ef600480360360a08110156102bc57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156102f657600080fd5b82018360208201111561030857600080fd5b803590602001918460018302840111600160201b8311171561032957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561037b57600080fd5b82018360208201111561038d57600080fd5b803590602001918460018302840111600160201b831117156103ae57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a30945050505050565b005b6102386004803603602081101561040757600080fd5b50356001600160a01b0316610a92565b6103ef6004803603602081101561042d57600080fd5b50356001600160a01b0316610aad565b61017b610bf9565b6103ef6004803603606081101561045b57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561048a57600080fd5b82018360208201111561049c57600080fd5b803590602001918460018302840111600160201b831117156104bd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c5a945050505050565b61021c6004803603604081101561051457600080fd5b506001600160a01b038135169060200135610c84565b61021c6004803603604081101561054057600080fd5b506001600160a01b0381358116916020013516610d5d565b6102386004803603604081101561056e57600080fd5b506001600160a01b0381358116916020013516610dff565b6103ef6004803603602081101561059c57600080fd5b50356001600160a01b0316610e2a565b6103ef600480360360808110156105c257600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156105f157600080fd5b82018360208201111561060357600080fd5b803590602001918460018302840111600160201b8311171561062457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561067657600080fd5b82018360208201111561068857600080fd5b803590602001918460018302840111600160201b831117156106a957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f76945050505050565b6103ef6004803603604081101561070057600080fd5b81359190810190604081016020820135600160201b81111561072157600080fd5b82018360208201111561073357600080fd5b803590602001918460018302840111600160201b8311171561075457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610fd4945050505050565b606060048054806020026020016040519081016040528092919081815260200182805480156107ed57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107cf575b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156107ed5780601f10610855576101008083540402835291602001916107ed565b820191906000526020600020905b81548152906001019060200180831161086357509395945050505050565b60008061088c610ffa565b9050610899818585610ffe565b5060019392505050565b60015490565b60006001600160a01b0383166108f05760405162461bcd60e51b8152600401808060200182810382526024815260200180611d586024913960400191505060405180910390fd5b6001600160a01b0384166109355760405162461bcd60e51b8152600401808060200182810382526026815260200180611dd16026913960400191505060405180910390fd5b600061093f610ffa565b905061096d8186868660405180602001604052806000815250604051806020016040528060008152506110ea565b610999818686866040518060200160405280600081525060405180602001604052806000815250611317565b6109ed85826109e886604051806060016040528060298152602001611da8602991396001600160a01b03808c166000908152600860209081526040808320938b16835292905220549190611530565b610ffe565b610a1b81868686604051806020016040528060008152506040518060200160405280600081525060006115c7565b506001949350505050565b601290565b600190565b610a41610a3b610ffa565b86610d5d565b610a7c5760405162461bcd60e51b815260040180806020018281038252602c815260200180611d7c602c913960400191505060405180910390fd5b610a8b8585858585600161184c565b5050505050565b6001600160a01b031660009081526020819052604090205490565b806001600160a01b0316610abf610ffa565b6001600160a01b03161415610b055760405162461bcd60e51b8152600401808060200182810382526024815260200180611cc66024913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610b685760076000610b32610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff19169055610baf565b600160066000610b76610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790555b610bb7610ffa565b6001600160a01b0316816001600160a01b03167ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f960405160405180910390a350565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107ed5780601f10610855576101008083540402835291602001916107ed565b610c7f610c65610ffa565b84848460405180602001604052806000815250600161184c565b505050565b60006001600160a01b038316610ccb5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d586024913960400191505060405180910390fd5b6000610cd5610ffa565b9050610d038182868660405180602001604052806000815250604051806020016040528060008152506110ea565b610d2f818286866040518060200160405280600081525060405180602001604052806000815250611317565b61089981828686604051806020016040528060008152506040518060200160405280600081525060006115c7565b6000816001600160a01b0316836001600160a01b03161480610dc857506001600160a01b03831660009081526005602052604090205460ff168015610dc857506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b80610df857506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610e32610ffa565b6001600160a01b0316816001600160a01b03161415610e825760405162461bcd60e51b8152600401808060200182810382526021815260200180611cea6021913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610eee57600160076000610eb1610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff1916911515919091179055610f2c565b60066000610efa610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff191690555b610f34610ffa565b6001600160a01b0316816001600160a01b03167f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa160405160405180910390a350565b610f87610f81610ffa565b85610d5d565b610fc25760405162461bcd60e51b815260040180806020018281038252602c815260200180611d7c602c913960400191505060405180910390fd5b610fce84848484611923565b50505050565b610ff6610fdf610ffa565b838360405180602001604052806000815250611923565b5050565b3390565b6001600160a01b0383166110435760405162461bcd60e51b8152600401808060200182810382526025815260200180611c366025913960400191505060405180910390fd5b6001600160a01b0382166110885760405162461bcd60e51b8152600401808060200182810382526023815260200180611e1a6023913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561116e57600080fd5b505afa158015611182573d6000803e3d6000fd5b505050506040513d602081101561119857600080fd5b505190506001600160a01b0381161561130e57806001600160a01b03166375ab97828888888888886040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561124357818101518382015260200161122b565b50505050905090810190601f1680156112705780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156112a357818101518382015260200161128b565b50505050905090810190601f1680156112d05780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156112f557600080fd5b505af1158015611309573d6000803e3d6000fd5b505050505b50505050505050565b61132386868686610fce565b61136083604051806060016040528060278152602001611c7d602791396001600160a01b0388166000908152602081905260409020549190611530565b6001600160a01b03808716600090815260208190526040808220939093559086168152205461138f9084611b5d565b600080866001600160a01b03166001600160a01b0316815260200190815260200160002081905550836001600160a01b0316856001600160a01b0316876001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611440578181015183820152602001611428565b50505050905090810190601f16801561146d5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156114a0578181015183820152602001611488565b50505050905090810190601f1680156114cd5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050565b600081848411156115bf5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561158457818101518382015260200161156c565b50505050905090810190601f1680156115b15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561164b57600080fd5b505afa15801561165f573d6000803e3d6000fd5b505050506040513d602081101561167557600080fd5b505190506001600160a01b038116156117ee57806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561171f578181015183820152602001611707565b50505050905090810190601f16801561174c5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b8381101561177f578181015183820152602001611767565b50505050905090810190601f1680156117ac5780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156117d157600080fd5b505af11580156117e5573d6000803e3d6000fd5b50505050611842565b811561184257611806866001600160a01b0316611bb7565b156118425760405162461bcd60e51b815260040180806020018281038252604d815260200180611d0b604d913960600191505060405180910390fd5b5050505050505050565b6001600160a01b0386166118915760405162461bcd60e51b8152600401808060200182810382526022815260200180611c5b6022913960400191505060405180910390fd5b6001600160a01b0385166118ec576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b60006118f6610ffa565b90506119068188888888886110ea565b611914818888888888611317565b61130e818888888888886115c7565b6001600160a01b0384166119685760405162461bcd60e51b8152600401808060200182810382526022815260200180611ca46022913960400191505060405180910390fd5b6000611972610ffa565b90506119818186600087610fce565b611990818660008787876110ea565b6119cd84604051806060016040528060238152602001611df7602391396001600160a01b0388166000908152602081905260409020549190611530565b6001600160a01b0386166000908152602081905260409020556001546119f39085611bf3565b600181905550846001600160a01b0316816001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611a78578181015183820152602001611a60565b50505050905090810190601f168015611aa55780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611ad8578181015183820152602001611ac0565b50505050905090810190601f168015611b055780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516000916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b600082820183811015610df8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611beb57508115155b949350505050565b6000610df883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061153056fe4552433737373a20617070726f76652066726f6d20746865207a65726f20616464726573734552433737373a2073656e642066726f6d20746865207a65726f20616464726573734552433737373a207472616e7366657220616d6f756e7420657863656564732062616c616e63654552433737373a206275726e2066726f6d20746865207a65726f20616464726573734552433737373a20617574686f72697a696e672073656c66206173206f70657261746f724552433737373a207265766f6b696e672073656c66206173206f70657261746f724552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e744552433737373a207472616e7366657220746f20746865207a65726f20616464726573734552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f7220666f7220686f6c6465724552433737373a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654552433737373a207472616e736665722066726f6d20746865207a65726f20616464726573734552433737373a206275726e20616d6f756e7420657863656564732062616c616e63654552433737373a20617070726f766520746f20746865207a65726f2061646472657373a2646970667358221220db7f9bdf4aabd02a9da23e4b332acc97837dc81c9a8e54f8e5830b3584c21f2864736f6c634300060c0033"},"devdoc":{"details":"Implementation of the {IERC777} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. Support for ERC20 is included in this contract, as specified by the EIP: both the ERC777 and ERC20 interfaces can be safely used when interacting with it. Both {IERC777-Sent} and {IERC20-Transfer} events are emitted on token movements. Additionally, the {IERC777-granularity} value is hard-coded to `1`, meaning that there are no special restrictions in the amount of tokens that created, moved, or destroyed. This makes integration with ERC20 applications seamless.","kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}. Note that operator and allowance concepts are orthogonal: operators may not have allowance, and accounts with allowance may not be operators themselves."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Note that accounts cannot have allowance issued by their operators."},"authorizeOperator(address)":{"details":"See {IERC777-authorizeOperator}."},"balanceOf(address)":{"details":"Returns the amount of tokens owned by an account (`tokenHolder`)."},"burn(uint256,bytes)":{"details":"See {IERC777-burn}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."},"constructor":{"details":"`defaultOperators` may be an empty array."},"decimals()":{"details":"See {ERC20-decimals}. Always returns 18, as per the [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility)."},"defaultOperators()":{"details":"See {IERC777-defaultOperators}."},"granularity()":{"details":"See {IERC777-granularity}. This implementation always returns `1`."},"isOperatorFor(address,address)":{"details":"See {IERC777-isOperatorFor}."},"name()":{"details":"See {IERC777-name}."},"operatorBurn(address,uint256,bytes,bytes)":{"details":"See {IERC777-operatorBurn}. Emits {Burned} and {IERC20-Transfer} events."},"operatorSend(address,address,uint256,bytes,bytes)":{"details":"See {IERC777-operatorSend}. Emits {Sent} and {IERC20-Transfer} events."},"revokeOperator(address)":{"details":"See {IERC777-revokeOperator}."},"send(address,uint256,bytes)":{"details":"See {IERC777-send}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."},"symbol()":{"details":"See {IERC777-symbol}."},"totalSupply()":{"details":"See {IERC777-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient} interface if it is a contract. Also emits a {Sent} event."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Note that operator and allowance concepts are orthogonal: operators cannot call `transferFrom` (unless they have allowance), and accounts with allowance cannot call `operatorSend` (unless they are operators). Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","authorizeOperator(address)":"0x959b8c3f","balanceOf(address)":"0x70a08231","burn(uint256,bytes)":"0xfe9d9303","decimals()":"0x313ce567","defaultOperators()":"0x06e48538","granularity()":"0x556f0dc7","isOperatorFor(address,address)":"0xd95b6371","name()":"0x06fdde03","operatorBurn(address,uint256,bytes,bytes)":"0xfc673c4f","operatorSend(address,address,uint256,bytes,bytes)":"0x62ad1b83","revokeOperator(address)":"0xfad8b32a","send(address,uint256,bytes)":"0x9bd9bbc6","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063959b8c3f116100a2578063d95b637111610071578063d95b63711461052a578063dd62ed3e14610558578063fad8b32a14610586578063fc673c4f146105ac578063fe9d9303146106ea57610116565b8063959b8c3f1461041757806395d89b411461043d5780639bd9bbc614610445578063a9059cbb146104fe57610116565b806323b872dd116100e957806323b872dd1461024a578063313ce56714610280578063556f0dc71461029e57806362ad1b83146102a657806370a08231146103f157610116565b806306e485381461011b57806306fdde0314610173578063095ea7b3146101f057806318160ddd14610230575b600080fd5b610123610795565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561015f578181015183820152602001610147565b505050509050019250505060405180910390f35b61017b6107f7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b557818101518382015260200161019d565b50505050905090810190601f1680156101e25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61021c6004803603604081101561020657600080fd5b506001600160a01b038135169060200135610881565b604080519115158252519081900360200190f35b6102386108a3565b60408051918252519081900360200190f35b61021c6004803603606081101561026057600080fd5b506001600160a01b038135811691602081013590911690604001356108a9565b610288610a26565b6040805160ff9092168252519081900360200190f35b610238610a2b565b6103ef600480360360a08110156102bc57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156102f657600080fd5b82018360208201111561030857600080fd5b803590602001918460018302840111600160201b8311171561032957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561037b57600080fd5b82018360208201111561038d57600080fd5b803590602001918460018302840111600160201b831117156103ae57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a30945050505050565b005b6102386004803603602081101561040757600080fd5b50356001600160a01b0316610a92565b6103ef6004803603602081101561042d57600080fd5b50356001600160a01b0316610aad565b61017b610bf9565b6103ef6004803603606081101561045b57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561048a57600080fd5b82018360208201111561049c57600080fd5b803590602001918460018302840111600160201b831117156104bd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c5a945050505050565b61021c6004803603604081101561051457600080fd5b506001600160a01b038135169060200135610c84565b61021c6004803603604081101561054057600080fd5b506001600160a01b0381358116916020013516610d5d565b6102386004803603604081101561056e57600080fd5b506001600160a01b0381358116916020013516610dff565b6103ef6004803603602081101561059c57600080fd5b50356001600160a01b0316610e2a565b6103ef600480360360808110156105c257600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156105f157600080fd5b82018360208201111561060357600080fd5b803590602001918460018302840111600160201b8311171561062457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561067657600080fd5b82018360208201111561068857600080fd5b803590602001918460018302840111600160201b831117156106a957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f76945050505050565b6103ef6004803603604081101561070057600080fd5b81359190810190604081016020820135600160201b81111561072157600080fd5b82018360208201111561073357600080fd5b803590602001918460018302840111600160201b8311171561075457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610fd4945050505050565b606060048054806020026020016040519081016040528092919081815260200182805480156107ed57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107cf575b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156107ed5780601f10610855576101008083540402835291602001916107ed565b820191906000526020600020905b81548152906001019060200180831161086357509395945050505050565b60008061088c610ffa565b9050610899818585610ffe565b5060019392505050565b60015490565b60006001600160a01b0383166108f05760405162461bcd60e51b8152600401808060200182810382526024815260200180611d586024913960400191505060405180910390fd5b6001600160a01b0384166109355760405162461bcd60e51b8152600401808060200182810382526026815260200180611dd16026913960400191505060405180910390fd5b600061093f610ffa565b905061096d8186868660405180602001604052806000815250604051806020016040528060008152506110ea565b610999818686866040518060200160405280600081525060405180602001604052806000815250611317565b6109ed85826109e886604051806060016040528060298152602001611da8602991396001600160a01b03808c166000908152600860209081526040808320938b16835292905220549190611530565b610ffe565b610a1b81868686604051806020016040528060008152506040518060200160405280600081525060006115c7565b506001949350505050565b601290565b600190565b610a41610a3b610ffa565b86610d5d565b610a7c5760405162461bcd60e51b815260040180806020018281038252602c815260200180611d7c602c913960400191505060405180910390fd5b610a8b8585858585600161184c565b5050505050565b6001600160a01b031660009081526020819052604090205490565b806001600160a01b0316610abf610ffa565b6001600160a01b03161415610b055760405162461bcd60e51b8152600401808060200182810382526024815260200180611cc66024913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610b685760076000610b32610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff19169055610baf565b600160066000610b76610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790555b610bb7610ffa565b6001600160a01b0316816001600160a01b03167ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f960405160405180910390a350565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107ed5780601f10610855576101008083540402835291602001916107ed565b610c7f610c65610ffa565b84848460405180602001604052806000815250600161184c565b505050565b60006001600160a01b038316610ccb5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d586024913960400191505060405180910390fd5b6000610cd5610ffa565b9050610d038182868660405180602001604052806000815250604051806020016040528060008152506110ea565b610d2f818286866040518060200160405280600081525060405180602001604052806000815250611317565b61089981828686604051806020016040528060008152506040518060200160405280600081525060006115c7565b6000816001600160a01b0316836001600160a01b03161480610dc857506001600160a01b03831660009081526005602052604090205460ff168015610dc857506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b80610df857506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610e32610ffa565b6001600160a01b0316816001600160a01b03161415610e825760405162461bcd60e51b8152600401808060200182810382526021815260200180611cea6021913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610eee57600160076000610eb1610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff1916911515919091179055610f2c565b60066000610efa610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff191690555b610f34610ffa565b6001600160a01b0316816001600160a01b03167f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa160405160405180910390a350565b610f87610f81610ffa565b85610d5d565b610fc25760405162461bcd60e51b815260040180806020018281038252602c815260200180611d7c602c913960400191505060405180910390fd5b610fce84848484611923565b50505050565b610ff6610fdf610ffa565b838360405180602001604052806000815250611923565b5050565b3390565b6001600160a01b0383166110435760405162461bcd60e51b8152600401808060200182810382526025815260200180611c366025913960400191505060405180910390fd5b6001600160a01b0382166110885760405162461bcd60e51b8152600401808060200182810382526023815260200180611e1a6023913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561116e57600080fd5b505afa158015611182573d6000803e3d6000fd5b505050506040513d602081101561119857600080fd5b505190506001600160a01b0381161561130e57806001600160a01b03166375ab97828888888888886040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561124357818101518382015260200161122b565b50505050905090810190601f1680156112705780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156112a357818101518382015260200161128b565b50505050905090810190601f1680156112d05780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156112f557600080fd5b505af1158015611309573d6000803e3d6000fd5b505050505b50505050505050565b61132386868686610fce565b61136083604051806060016040528060278152602001611c7d602791396001600160a01b0388166000908152602081905260409020549190611530565b6001600160a01b03808716600090815260208190526040808220939093559086168152205461138f9084611b5d565b600080866001600160a01b03166001600160a01b0316815260200190815260200160002081905550836001600160a01b0316856001600160a01b0316876001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611440578181015183820152602001611428565b50505050905090810190601f16801561146d5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156114a0578181015183820152602001611488565b50505050905090810190601f1680156114cd5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050565b600081848411156115bf5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561158457818101518382015260200161156c565b50505050905090810190601f1680156115b15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561164b57600080fd5b505afa15801561165f573d6000803e3d6000fd5b505050506040513d602081101561167557600080fd5b505190506001600160a01b038116156117ee57806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561171f578181015183820152602001611707565b50505050905090810190601f16801561174c5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b8381101561177f578181015183820152602001611767565b50505050905090810190601f1680156117ac5780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156117d157600080fd5b505af11580156117e5573d6000803e3d6000fd5b50505050611842565b811561184257611806866001600160a01b0316611bb7565b156118425760405162461bcd60e51b815260040180806020018281038252604d815260200180611d0b604d913960600191505060405180910390fd5b5050505050505050565b6001600160a01b0386166118915760405162461bcd60e51b8152600401808060200182810382526022815260200180611c5b6022913960400191505060405180910390fd5b6001600160a01b0385166118ec576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b60006118f6610ffa565b90506119068188888888886110ea565b611914818888888888611317565b61130e818888888888886115c7565b6001600160a01b0384166119685760405162461bcd60e51b8152600401808060200182810382526022815260200180611ca46022913960400191505060405180910390fd5b6000611972610ffa565b90506119818186600087610fce565b611990818660008787876110ea565b6119cd84604051806060016040528060238152602001611df7602391396001600160a01b0388166000908152602081905260409020549190611530565b6001600160a01b0386166000908152602081905260409020556001546119f39085611bf3565b600181905550846001600160a01b0316816001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611a78578181015183820152602001611a60565b50505050905090810190601f168015611aa55780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611ad8578181015183820152602001611ac0565b50505050905090810190601f168015611b055780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516000916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b600082820183811015610df8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611beb57508115155b949350505050565b6000610df883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061153056fe4552433737373a20617070726f76652066726f6d20746865207a65726f20616464726573734552433737373a2073656e642066726f6d20746865207a65726f20616464726573734552433737373a207472616e7366657220616d6f756e7420657863656564732062616c616e63654552433737373a206275726e2066726f6d20746865207a65726f20616464726573734552433737373a20617574686f72697a696e672073656c66206173206f70657261746f724552433737373a207265766f6b696e672073656c66206173206f70657261746f724552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e744552433737373a207472616e7366657220746f20746865207a65726f20616464726573734552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f7220666f7220686f6c6465724552433737373a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654552433737373a207472616e736665722066726f6d20746865207a65726f20616464726573734552433737373a206275726e20616d6f756e7420657863656564732062616c616e63654552433737373a20617070726f766520746f20746865207a65726f2061646472657373a2646970667358221220db7f9bdf4aabd02a9da23e4b332acc97837dc81c9a8e54f8e5830b3584c21f2864736f6c634300060c0033"},"sourceId":"contracts/token/ERC777/ERC777.sol","sourcemap":"1049:16252:100:-:0;;;2645:623;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2645:623:100;;;;;;;;;;-1:-1:-1;2645:623:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2645:623:100;;;;;;;;;;-1:-1:-1;2645:623:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2645:623:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;2645:623:100;;;;;;-1:-1:-1;;2781:12:100;;;;-1:-1:-1;2781:5:100;;-1:-1:-1;2781:12:100;;;;;:::i;:::-;-1:-1:-1;2803:16:100;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;2830:41:100;;;;:22;;:41;;;;;:::i;:::-;;2886:9;2881:136;2905:22;:29;2901:33;;2881:136;;;3002:4;2955:17;:44;2973:22;2996:1;2973:25;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2973:25:100;2955:44;;;;;;;;;;;;:51;;-1:-1:-1;;2955:51:100;;;;;;;;;;-1:-1:-1;2936:3:100;2881:136;;;-1:-1:-1;3058:97:100;;;-1:-1:-1;;;3058:97:100;;3108:4;3058:97;;;;;;3115:24;3058:97;;;;;;;;;;1235:42;;3058:41;;:97;;;;;-1:-1:-1;;3058:97:100;;;;;;;-1:-1:-1;1235:42:100;3058:97;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3165:96:100;;;-1:-1:-1;;;3165:96:100;;3215:4;3165:96;;;;;;3222:23;3165:96;;;;;;;;;;1235:42;;-1:-1:-1;3165:41:100;;-1:-1:-1;3165:96:100;;;;;-1:-1:-1;;3165:96:100;;;;;;;-1:-1:-1;1235:42:100;3165:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2645:623;;;1049:16252;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1049:16252:100;;;-1:-1:-1;1049:16252:100;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1049:16252:100;-1:-1:-1;;;;;1049:16252:100;;;;;;;;;;;-1:-1:-1;1049:16252:100;;;;;;;-1:-1:-1;1049:16252:100;;;-1:-1:-1;1049:16252:100;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1049:16252:100;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC777Mock":{"abi":[{"inputs":[{"internalType":"address","name":"initialHolder","type":"address"},{"internalType":"uint256","name":"initialBalance","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address[]","name":"defaultOperators","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"AuthorizedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"RevokedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Sent","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"},{"inputs":[{"internalType":"address","name":"holder","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approveInternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"authorizeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"defaultOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"granularity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"isOperatorFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"mintInternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"revokeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","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"}],"contractName":"ERC777Mock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b5060405162002dc838038062002dc8833981810160405260a08110156200003757600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200006357600080fd5b9083019060208201858111156200007957600080fd5b82516401000000008111828201881017156200009457600080fd5b82525081516020918201929091019080838360005b83811015620000c3578181015183820152602001620000a9565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011557600080fd5b9083019060208201858111156200012b57600080fd5b82516401000000008111828201881017156200014657600080fd5b82525081516020918201929091019080838360005b83811015620001755781810151838201526020016200015b565b50505050905090810190601f168015620001a35780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620001c757600080fd5b908301906020820185811115620001dd57600080fd5b8251866020820283011164010000000082111715620001fb57600080fd5b82525081516020918201928201910280838360005b838110156200022a57818101518382015260200162000210565b50505050905001604052505050828282826002908051906020019062000252929190620009fd565b50815162000268906003906020850190620009fd565b5080516200027e90600490602084019062000a82565b5060005b600454811015620002de5760016005600060048481548110620002a157fe5b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560010162000282565b50604080516329965a1d60e01b815230600482018190527fac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce2177054602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad24916329965a1d91606480830192600092919082900301818387803b1580156200035f57600080fd5b505af115801562000374573d6000803e3d6000fd5b5050604080516329965a1d60e01b815230600482018190527faea199e31a596269b42cdafd93407f14436db6e4cad65417994c2eb37381e05a602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad2493506329965a1d9250606480830192600092919082900301818387803b158015620003f857600080fd5b505af11580156200040d573d6000803e3d6000fd5b5050505050505062000446858560405180602001604052806000815250604051806020016040528060008152506200045160201b60201c565b505050505062000b20565b6001600160a01b038416620004ad576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000620004b9620006b2565b9050620004ca8160008787620006b6565b620004e684600154620006bc60201b6200119b1790919060201c565b6001556001600160a01b03851660009081526020818152604090912054620005199186906200119b620006bc821b17901c565b6001600160a01b038616600090815260208190526040812091909155620005489082908787878760016200071e565b846001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015620005c9578181015183820152602001620005af565b50505050905090810190601f168015620005f75780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156200062c57818101518382015260200162000612565b50505050905090810190601f1680156200065a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516001600160a01b038716916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b3390565b50505050565b60008282018381101562000717576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b158015620007a357600080fd5b505afa158015620007b8573d6000803e3d6000fd5b505050506040513d6020811015620007cf57600080fd5b505190506001600160a01b038116156200095257806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b838110156200087c57818101518382015260200162000862565b50505050905090810190601f168015620008aa5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015620008df578181015183820152602001620008c5565b50505050905090810190601f1680156200090d5780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156200093357600080fd5b505af115801562000948573d6000803e3d6000fd5b50505050620009b6565b8115620009b65762000978866001600160a01b0316620009c060201b620011f51760201c565b15620009b65760405162461bcd60e51b815260040180806020018281038252604d81526020018062002d7b604d913960600191505060405180910390fd5b5050505050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590620009f557508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1062000a4057805160ff191683800117855562000a70565b8280016001018555821562000a70579182015b8281111562000a7057825182559160200191906001019062000a53565b5062000a7e92915062000ae8565b5090565b82805482825590600052602060002090810192821562000ada579160200282015b8281111562000ada57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000aa3565b5062000a7e92915062000aff565b5b8082111562000a7e576000815560010162000ae9565b5b8082111562000a7e5780546001600160a01b031916815560010162000b00565b61224b8062000b306000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063959b8c3f116100ad578063d95b637111610071578063d95b6371146106b4578063dd62ed3e146106e2578063fad8b32a14610710578063fc673c4f14610736578063fe9d9303146108745761012c565b8063959b8c3f1461046357806395d89b41146104895780639bd9bbc614610491578063a9059cbb1461054a578063b1f0b5be146105765761012c565b8063313ce567116100f4578063313ce56714610296578063556f0dc7146102b457806356189cb4146102bc57806362ad1b83146102f457806370a082311461043d5761012c565b806306e485381461013157806306fdde0314610189578063095ea7b31461020657806318160ddd1461024657806323b872dd14610260575b600080fd5b61013961091f565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561017557818101518382015260200161015d565b505050509050019250505060405180910390f35b610191610981565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cb5781810151838201526020016101b3565b50505050905090810190601f1680156101f85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603604081101561021c57600080fd5b506001600160a01b038135169060200135610a0b565b604080519115158252519081900360200190f35b61024e610a2d565b60408051918252519081900360200190f35b6102326004803603606081101561027657600080fd5b506001600160a01b03813581169160208101359091169060400135610a33565b61029e610bb0565b6040805160ff9092168252519081900360200190f35b61024e610bb5565b6102f2600480360360608110156102d257600080fd5b506001600160a01b03813581169160208101359091169060400135610bba565b005b6102f2600480360360a081101561030a57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460018302840111600160201b8311171561037757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156103c957600080fd5b8201836020820111156103db57600080fd5b803590602001918460018302840111600160201b831117156103fc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bca945050505050565b61024e6004803603602081101561045357600080fd5b50356001600160a01b0316610c2c565b6102f26004803603602081101561047957600080fd5b50356001600160a01b0316610c47565b610191610d93565b6102f2600480360360608110156104a757600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156104d657600080fd5b8201836020820111156104e857600080fd5b803590602001918460018302840111600160201b8311171561050957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610df4945050505050565b6102326004803603604081101561056057600080fd5b506001600160a01b038135169060200135610e19565b6102f26004803603608081101561058c57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156105bb57600080fd5b8201836020820111156105cd57600080fd5b803590602001918460018302840111600160201b831117156105ee57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561064057600080fd5b82018360208201111561065257600080fd5b803590602001918460018302840111600160201b8311171561067357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610ef2945050505050565b610232600480360360408110156106ca57600080fd5b506001600160a01b0381358116916020013516610f04565b61024e600480360360408110156106f857600080fd5b506001600160a01b0381358116916020013516610fa6565b6102f26004803603602081101561072657600080fd5b50356001600160a01b0316610fd1565b6102f26004803603608081101561074c57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561077b57600080fd5b82018360208201111561078d57600080fd5b803590602001918460018302840111600160201b831117156107ae57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561080057600080fd5b82018360208201111561081257600080fd5b803590602001918460018302840111600160201b8311171561083357600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061111d945050505050565b6102f26004803603604081101561088a57600080fd5b81359190810190604081016020820135600160201b8111156108ab57600080fd5b8201836020820111156108bd57600080fd5b803590602001918460018302840111600160201b831117156108de57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611175945050505050565b6060600480548060200260200160405190810160405280929190818152602001828054801561097757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610959575b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156109775780601f106109df57610100808354040283529160200191610977565b820191906000526020600020905b8154815290600101906020018083116109ed57509395945050505050565b600080610a16611231565b9050610a23818585611235565b5060019392505050565b60015490565b60006001600160a01b038316610a7a5760405162461bcd60e51b81526004018080602001828103825260248152602001806121316024913960400191505060405180910390fd5b6001600160a01b038416610abf5760405162461bcd60e51b81526004018080602001828103825260268152602001806121aa6026913960400191505060405180910390fd5b6000610ac9611231565b9050610af7818686866040518060200160405280600081525060405180602001604052806000815250611321565b610b2381868686604051806020016040528060008152506040518060200160405280600081525061154e565b610b778582610b7286604051806060016040528060298152602001612181602991396001600160a01b03808c166000908152600860209081526040808320938b16835292905220549190611767565b611235565b610ba581868686604051806020016040528060008152506040518060200160405280600081525060006117fe565b506001949350505050565b601290565b600190565b610bc5838383611235565b505050565b610bdb610bd5611231565b86610f04565b610c165760405162461bcd60e51b815260040180806020018281038252602c815260200180612155602c913960400191505060405180910390fd5b610c2585858585856001611a83565b5050505050565b6001600160a01b031660009081526020819052604090205490565b806001600160a01b0316610c59611231565b6001600160a01b03161415610c9f5760405162461bcd60e51b815260040180806020018281038252602481526020018061209f6024913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610d025760076000610ccc611231565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff19169055610d49565b600160066000610d10611231565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790555b610d51611231565b6001600160a01b0316816001600160a01b03167ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f960405160405180910390a350565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109775780601f106109df57610100808354040283529160200191610977565b610bc5610dff611231565b848484604051806020016040528060008152506001611a83565b60006001600160a01b038316610e605760405162461bcd60e51b81526004018080602001828103825260248152602001806121316024913960400191505060405180910390fd5b6000610e6a611231565b9050610e98818286866040518060200160405280600081525060405180602001604052806000815250611321565b610ec481828686604051806020016040528060008152506040518060200160405280600081525061154e565b610a2381828686604051806020016040528060008152506040518060200160405280600081525060006117fe565b610efe84848484611b5a565b50505050565b6000816001600160a01b0316836001600160a01b03161480610f6f57506001600160a01b03831660009081526005602052604090205460ff168015610f6f57506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b80610f9f57506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610fd9611231565b6001600160a01b0316816001600160a01b031614156110295760405162461bcd60e51b81526004018080602001828103825260218152602001806120c36021913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff161561109557600160076000611058611231565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790556110d3565b600660006110a1611231565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff191690555b6110db611231565b6001600160a01b0316816001600160a01b03167f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa160405160405180910390a350565b61112e611128611231565b85610f04565b6111695760405162461bcd60e51b815260040180806020018281038252602c815260200180612155602c913960400191505060405180910390fd5b610efe84848484611d92565b611197611180611231565b838360405180602001604052806000815250611d92565b5050565b600082820183811015610f9f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061122957508115155b949350505050565b3390565b6001600160a01b03831661127a5760405162461bcd60e51b815260040180806020018281038252602581526020018061200f6025913960400191505060405180910390fd5b6001600160a01b0382166112bf5760405162461bcd60e51b81526004018080602001828103825260238152602001806121f36023913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b1580156113a557600080fd5b505afa1580156113b9573d6000803e3d6000fd5b505050506040513d60208110156113cf57600080fd5b505190506001600160a01b0381161561154557806001600160a01b03166375ab97828888888888886040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561147a578181015183820152602001611462565b50505050905090810190601f1680156114a75780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156114da5781810151838201526020016114c2565b50505050905090810190601f1680156115075780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b15801561152c57600080fd5b505af1158015611540573d6000803e3d6000fd5b505050505b50505050505050565b61155a86868686610efe565b61159783604051806060016040528060278152602001612056602791396001600160a01b0388166000908152602081905260409020549190611767565b6001600160a01b0380871660009081526020819052604080822093909355908616815220546115c6908461119b565b600080866001600160a01b03166001600160a01b0316815260200190815260200160002081905550836001600160a01b0316856001600160a01b0316876001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561167757818101518382015260200161165f565b50505050905090810190601f1680156116a45780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156116d75781810151838201526020016116bf565b50505050905090810190601f1680156117045780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050565b600081848411156117f65760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117bb5781810151838201526020016117a3565b50505050905090810190601f1680156117e85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561188257600080fd5b505afa158015611896573d6000803e3d6000fd5b505050506040513d60208110156118ac57600080fd5b505190506001600160a01b03811615611a2557806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561195657818101518382015260200161193e565b50505050905090810190601f1680156119835780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156119b657818101518382015260200161199e565b50505050905090810190601f1680156119e35780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b158015611a0857600080fd5b505af1158015611a1c573d6000803e3d6000fd5b50505050611a79565b8115611a7957611a3d866001600160a01b03166111f5565b15611a795760405162461bcd60e51b815260040180806020018281038252604d8152602001806120e4604d913960600191505060405180910390fd5b5050505050505050565b6001600160a01b038616611ac85760405162461bcd60e51b81526004018080602001828103825260228152602001806120346022913960400191505060405180910390fd5b6001600160a01b038516611b23576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000611b2d611231565b9050611b3d818888888888611321565b611b4b81888888888861154e565b611545818888888888886117fe565b6001600160a01b038416611bb5576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000611bbf611231565b9050611bce8160008787610efe565b600154611bdb908561119b565b6001556001600160a01b038516600090815260208190526040902054611c01908561119b565b6001600160a01b038616600090815260208190526040812091909155611c2e9082908787878760016117fe565b846001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611cad578181015183820152602001611c95565b50505050905090810190601f168015611cda5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611d0d578181015183820152602001611cf5565b50505050905090810190601f168015611d3a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516001600160a01b038716916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6001600160a01b038416611dd75760405162461bcd60e51b815260040180806020018281038252602281526020018061207d6022913960400191505060405180910390fd5b6000611de1611231565b9050611df08186600087610efe565b611dff81866000878787611321565b611e3c846040518060600160405280602381526020016121d0602391396001600160a01b0388166000908152602081905260409020549190611767565b6001600160a01b038616600090815260208190526040902055600154611e629085611fcc565b600181905550846001600160a01b0316816001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611ee7578181015183820152602001611ecf565b50505050905090810190601f168015611f145780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611f47578181015183820152602001611f2f565b50505050905090810190601f168015611f745780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516000916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6000610f9f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061176756fe4552433737373a20617070726f76652066726f6d20746865207a65726f20616464726573734552433737373a2073656e642066726f6d20746865207a65726f20616464726573734552433737373a207472616e7366657220616d6f756e7420657863656564732062616c616e63654552433737373a206275726e2066726f6d20746865207a65726f20616464726573734552433737373a20617574686f72697a696e672073656c66206173206f70657261746f724552433737373a207265766f6b696e672073656c66206173206f70657261746f724552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e744552433737373a207472616e7366657220746f20746865207a65726f20616464726573734552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f7220666f7220686f6c6465724552433737373a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654552433737373a207472616e736665722066726f6d20746865207a65726f20616464726573734552433737373a206275726e20616d6f756e7420657863656564732062616c616e63654552433737373a20617070726f766520746f20746865207a65726f2061646472657373a26469706673582212203f2081b78b3e2c86cdb7119fa5b1a6abc51d4c602d0c37ee687db578d601d09064736f6c634300060c00334552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e74"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}. Note that operator and allowance concepts are orthogonal: operators may not have allowance, and accounts with allowance may not be operators themselves."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Note that accounts cannot have allowance issued by their operators."},"authorizeOperator(address)":{"details":"See {IERC777-authorizeOperator}."},"balanceOf(address)":{"details":"Returns the amount of tokens owned by an account (`tokenHolder`)."},"burn(uint256,bytes)":{"details":"See {IERC777-burn}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."},"decimals()":{"details":"See {ERC20-decimals}. Always returns 18, as per the [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility)."},"defaultOperators()":{"details":"See {IERC777-defaultOperators}."},"granularity()":{"details":"See {IERC777-granularity}. This implementation always returns `1`."},"isOperatorFor(address,address)":{"details":"See {IERC777-isOperatorFor}."},"name()":{"details":"See {IERC777-name}."},"operatorBurn(address,uint256,bytes,bytes)":{"details":"See {IERC777-operatorBurn}. Emits {Burned} and {IERC20-Transfer} events."},"operatorSend(address,address,uint256,bytes,bytes)":{"details":"See {IERC777-operatorSend}. Emits {Sent} and {IERC20-Transfer} events."},"revokeOperator(address)":{"details":"See {IERC777-revokeOperator}."},"send(address,uint256,bytes)":{"details":"See {IERC777-send}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."},"symbol()":{"details":"See {IERC777-symbol}."},"totalSupply()":{"details":"See {IERC777-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient} interface if it is a contract. Also emits a {Sent} event."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Note that operator and allowance concepts are orthogonal: operators cannot call `transferFrom` (unless they have allowance), and accounts with allowance cannot call `operatorSend` (unless they are operators). Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","approveInternal(address,address,uint256)":"0x56189cb4","authorizeOperator(address)":"0x959b8c3f","balanceOf(address)":"0x70a08231","burn(uint256,bytes)":"0xfe9d9303","decimals()":"0x313ce567","defaultOperators()":"0x06e48538","granularity()":"0x556f0dc7","isOperatorFor(address,address)":"0xd95b6371","mintInternal(address,uint256,bytes,bytes)":"0xb1f0b5be","name()":"0x06fdde03","operatorBurn(address,uint256,bytes,bytes)":"0xfc673c4f","operatorSend(address,address,uint256,bytes,bytes)":"0x62ad1b83","revokeOperator(address)":"0xfad8b32a","send(address,uint256,bytes)":"0x9bd9bbc6","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063959b8c3f116100ad578063d95b637111610071578063d95b6371146106b4578063dd62ed3e146106e2578063fad8b32a14610710578063fc673c4f14610736578063fe9d9303146108745761012c565b8063959b8c3f1461046357806395d89b41146104895780639bd9bbc614610491578063a9059cbb1461054a578063b1f0b5be146105765761012c565b8063313ce567116100f4578063313ce56714610296578063556f0dc7146102b457806356189cb4146102bc57806362ad1b83146102f457806370a082311461043d5761012c565b806306e485381461013157806306fdde0314610189578063095ea7b31461020657806318160ddd1461024657806323b872dd14610260575b600080fd5b61013961091f565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561017557818101518382015260200161015d565b505050509050019250505060405180910390f35b610191610981565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cb5781810151838201526020016101b3565b50505050905090810190601f1680156101f85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603604081101561021c57600080fd5b506001600160a01b038135169060200135610a0b565b604080519115158252519081900360200190f35b61024e610a2d565b60408051918252519081900360200190f35b6102326004803603606081101561027657600080fd5b506001600160a01b03813581169160208101359091169060400135610a33565b61029e610bb0565b6040805160ff9092168252519081900360200190f35b61024e610bb5565b6102f2600480360360608110156102d257600080fd5b506001600160a01b03813581169160208101359091169060400135610bba565b005b6102f2600480360360a081101561030a57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460018302840111600160201b8311171561037757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156103c957600080fd5b8201836020820111156103db57600080fd5b803590602001918460018302840111600160201b831117156103fc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bca945050505050565b61024e6004803603602081101561045357600080fd5b50356001600160a01b0316610c2c565b6102f26004803603602081101561047957600080fd5b50356001600160a01b0316610c47565b610191610d93565b6102f2600480360360608110156104a757600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156104d657600080fd5b8201836020820111156104e857600080fd5b803590602001918460018302840111600160201b8311171561050957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610df4945050505050565b6102326004803603604081101561056057600080fd5b506001600160a01b038135169060200135610e19565b6102f26004803603608081101561058c57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156105bb57600080fd5b8201836020820111156105cd57600080fd5b803590602001918460018302840111600160201b831117156105ee57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561064057600080fd5b82018360208201111561065257600080fd5b803590602001918460018302840111600160201b8311171561067357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610ef2945050505050565b610232600480360360408110156106ca57600080fd5b506001600160a01b0381358116916020013516610f04565b61024e600480360360408110156106f857600080fd5b506001600160a01b0381358116916020013516610fa6565b6102f26004803603602081101561072657600080fd5b50356001600160a01b0316610fd1565b6102f26004803603608081101561074c57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561077b57600080fd5b82018360208201111561078d57600080fd5b803590602001918460018302840111600160201b831117156107ae57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561080057600080fd5b82018360208201111561081257600080fd5b803590602001918460018302840111600160201b8311171561083357600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061111d945050505050565b6102f26004803603604081101561088a57600080fd5b81359190810190604081016020820135600160201b8111156108ab57600080fd5b8201836020820111156108bd57600080fd5b803590602001918460018302840111600160201b831117156108de57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611175945050505050565b6060600480548060200260200160405190810160405280929190818152602001828054801561097757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610959575b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156109775780601f106109df57610100808354040283529160200191610977565b820191906000526020600020905b8154815290600101906020018083116109ed57509395945050505050565b600080610a16611231565b9050610a23818585611235565b5060019392505050565b60015490565b60006001600160a01b038316610a7a5760405162461bcd60e51b81526004018080602001828103825260248152602001806121316024913960400191505060405180910390fd5b6001600160a01b038416610abf5760405162461bcd60e51b81526004018080602001828103825260268152602001806121aa6026913960400191505060405180910390fd5b6000610ac9611231565b9050610af7818686866040518060200160405280600081525060405180602001604052806000815250611321565b610b2381868686604051806020016040528060008152506040518060200160405280600081525061154e565b610b778582610b7286604051806060016040528060298152602001612181602991396001600160a01b03808c166000908152600860209081526040808320938b16835292905220549190611767565b611235565b610ba581868686604051806020016040528060008152506040518060200160405280600081525060006117fe565b506001949350505050565b601290565b600190565b610bc5838383611235565b505050565b610bdb610bd5611231565b86610f04565b610c165760405162461bcd60e51b815260040180806020018281038252602c815260200180612155602c913960400191505060405180910390fd5b610c2585858585856001611a83565b5050505050565b6001600160a01b031660009081526020819052604090205490565b806001600160a01b0316610c59611231565b6001600160a01b03161415610c9f5760405162461bcd60e51b815260040180806020018281038252602481526020018061209f6024913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610d025760076000610ccc611231565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff19169055610d49565b600160066000610d10611231565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790555b610d51611231565b6001600160a01b0316816001600160a01b03167ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f960405160405180910390a350565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109775780601f106109df57610100808354040283529160200191610977565b610bc5610dff611231565b848484604051806020016040528060008152506001611a83565b60006001600160a01b038316610e605760405162461bcd60e51b81526004018080602001828103825260248152602001806121316024913960400191505060405180910390fd5b6000610e6a611231565b9050610e98818286866040518060200160405280600081525060405180602001604052806000815250611321565b610ec481828686604051806020016040528060008152506040518060200160405280600081525061154e565b610a2381828686604051806020016040528060008152506040518060200160405280600081525060006117fe565b610efe84848484611b5a565b50505050565b6000816001600160a01b0316836001600160a01b03161480610f6f57506001600160a01b03831660009081526005602052604090205460ff168015610f6f57506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b80610f9f57506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610fd9611231565b6001600160a01b0316816001600160a01b031614156110295760405162461bcd60e51b81526004018080602001828103825260218152602001806120c36021913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff161561109557600160076000611058611231565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790556110d3565b600660006110a1611231565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff191690555b6110db611231565b6001600160a01b0316816001600160a01b03167f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa160405160405180910390a350565b61112e611128611231565b85610f04565b6111695760405162461bcd60e51b815260040180806020018281038252602c815260200180612155602c913960400191505060405180910390fd5b610efe84848484611d92565b611197611180611231565b838360405180602001604052806000815250611d92565b5050565b600082820183811015610f9f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061122957508115155b949350505050565b3390565b6001600160a01b03831661127a5760405162461bcd60e51b815260040180806020018281038252602581526020018061200f6025913960400191505060405180910390fd5b6001600160a01b0382166112bf5760405162461bcd60e51b81526004018080602001828103825260238152602001806121f36023913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b1580156113a557600080fd5b505afa1580156113b9573d6000803e3d6000fd5b505050506040513d60208110156113cf57600080fd5b505190506001600160a01b0381161561154557806001600160a01b03166375ab97828888888888886040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561147a578181015183820152602001611462565b50505050905090810190601f1680156114a75780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156114da5781810151838201526020016114c2565b50505050905090810190601f1680156115075780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b15801561152c57600080fd5b505af1158015611540573d6000803e3d6000fd5b505050505b50505050505050565b61155a86868686610efe565b61159783604051806060016040528060278152602001612056602791396001600160a01b0388166000908152602081905260409020549190611767565b6001600160a01b0380871660009081526020819052604080822093909355908616815220546115c6908461119b565b600080866001600160a01b03166001600160a01b0316815260200190815260200160002081905550836001600160a01b0316856001600160a01b0316876001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561167757818101518382015260200161165f565b50505050905090810190601f1680156116a45780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156116d75781810151838201526020016116bf565b50505050905090810190601f1680156117045780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050565b600081848411156117f65760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117bb5781810151838201526020016117a3565b50505050905090810190601f1680156117e85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561188257600080fd5b505afa158015611896573d6000803e3d6000fd5b505050506040513d60208110156118ac57600080fd5b505190506001600160a01b03811615611a2557806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561195657818101518382015260200161193e565b50505050905090810190601f1680156119835780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156119b657818101518382015260200161199e565b50505050905090810190601f1680156119e35780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b158015611a0857600080fd5b505af1158015611a1c573d6000803e3d6000fd5b50505050611a79565b8115611a7957611a3d866001600160a01b03166111f5565b15611a795760405162461bcd60e51b815260040180806020018281038252604d8152602001806120e4604d913960600191505060405180910390fd5b5050505050505050565b6001600160a01b038616611ac85760405162461bcd60e51b81526004018080602001828103825260228152602001806120346022913960400191505060405180910390fd5b6001600160a01b038516611b23576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000611b2d611231565b9050611b3d818888888888611321565b611b4b81888888888861154e565b611545818888888888886117fe565b6001600160a01b038416611bb5576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000611bbf611231565b9050611bce8160008787610efe565b600154611bdb908561119b565b6001556001600160a01b038516600090815260208190526040902054611c01908561119b565b6001600160a01b038616600090815260208190526040812091909155611c2e9082908787878760016117fe565b846001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611cad578181015183820152602001611c95565b50505050905090810190601f168015611cda5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611d0d578181015183820152602001611cf5565b50505050905090810190601f168015611d3a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516001600160a01b038716916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6001600160a01b038416611dd75760405162461bcd60e51b815260040180806020018281038252602281526020018061207d6022913960400191505060405180910390fd5b6000611de1611231565b9050611df08186600087610efe565b611dff81866000878787611321565b611e3c846040518060600160405280602381526020016121d0602391396001600160a01b0388166000908152602081905260409020549190611767565b6001600160a01b038616600090815260208190526040902055600154611e629085611fcc565b600181905550846001600160a01b0316816001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611ee7578181015183820152602001611ecf565b50505050905090810190601f168015611f145780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611f47578181015183820152602001611f2f565b50505050905090810190601f168015611f745780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516000916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6000610f9f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061176756fe4552433737373a20617070726f76652066726f6d20746865207a65726f20616464726573734552433737373a2073656e642066726f6d20746865207a65726f20616464726573734552433737373a207472616e7366657220616d6f756e7420657863656564732062616c616e63654552433737373a206275726e2066726f6d20746865207a65726f20616464726573734552433737373a20617574686f72697a696e672073656c66206173206f70657261746f724552433737373a207265766f6b696e672073656c66206173206f70657261746f724552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e744552433737373a207472616e7366657220746f20746865207a65726f20616464726573734552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f7220666f7220686f6c6465724552433737373a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654552433737373a207472616e736665722066726f6d20746865207a65726f20616464726573734552433737373a206275726e20616d6f756e7420657863656564732062616c616e63654552433737373a20617070726f766520746f20746865207a65726f2061646472657373a26469706673582212203f2081b78b3e2c86cdb7119fa5b1a6abc51d4c602d0c37ee687db578d601d09064736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC777Mock.sol","sourcemap":"125:681:48:-:0;;;170:289;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;170:289:48;;;;;;;;;;-1:-1:-1;170:289:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;170:289:48;;;;;;;;;;-1:-1:-1;170:289:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;170:289:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;366:4;372:6;380:16;2789:4:100;2781:5;:12;;;;;;;;;;;;:::i;:::-;-1:-1:-1;2803:16:100;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;2830:41:100;;;;:22;;:41;;;;;:::i;:::-;;2886:9;2881:136;2905:22;:29;2901:33;;2881:136;;;3002:4;2955:17;:44;2973:22;2996:1;2973:25;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2973:25:100;2955:44;;;;;;;;;;;;:51;;-1:-1:-1;;2955:51:100;;;;;;;;;;-1:-1:-1;2936:3:100;2881:136;;;-1:-1:-1;3058:97:100;;;-1:-1:-1;;;3058:97:100;;3108:4;3058:97;;;;;;3115:24;3058:97;;;;;;;;;;1235:42;;3058:41;;:97;;;;;-1:-1:-1;;3058:97:100;;;;;;;-1:-1:-1;1235:42:100;3058:97;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3165:96:100;;;-1:-1:-1;;;3165:96:100;;3215:4;3165:96;;;;;;3222:23;3165:96;;;;;;;;;;1235:42;;-1:-1:-1;3165:41:100;;-1:-1:-1;3165:96:100;;;;;-1:-1:-1;;3165:96:100;;;;;;;-1:-1:-1;1235:42:100;3165:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2645:623;;;408:44:48::1;414:13;429:14;408:44;;;;;;;;;;;::::0;::::1;;;;;;;;;;;::::0;:5:::1;;;:44;;:::i;:::-;170:289:::0;;;;;125:681;;10335:725:100;-1:-1:-1;;;;;10514:21:100;;10506:66;;;;;-1:-1:-1;;;10506:66:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10583:16;10602:12;:10;:12::i;:::-;10583:31;-1:-1:-1;10625:59:100;10583:31;10664:1;10668:7;10677:6;10625:20;:59::i;:::-;10744:24;10761:6;10744:12;;:16;;;;;;:24;;;;:::i;:::-;10729:12;:39;-1:-1:-1;;;;;10799:18:100;;:9;:18;;;;;;;;;;;;:30;;10822:6;;10799:22;;;;;:30;;:::i;:::-;-1:-1:-1;;;;;10778:18:100;;:9;:18;;;;;;;;;;:51;;;;10840:88;;10860:8;;10788:7;10891:6;10899:8;10909:12;10923:4;10840:19;:88::i;:::-;10961:7;-1:-1:-1;;;;;10944:57:100;10951:8;-1:-1:-1;;;;;10944:57:100;;10970:6;10978:8;10988:12;10944:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10944:57:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11016:37;;;;;;;;-1:-1:-1;;;;;11016:37:100;;;11033:1;;11016:37;;;;;;;;;10335:725;;;;;:::o;590:104:0:-;677:10;590:104;:::o;17189:110:100:-;;;;;:::o;874:176:17:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:17:o;15873:688:100:-;16152:79;;;-1:-1:-1;;;16152:79:100;;-1:-1:-1;;;;;16152:79:100;;;;;;1883:66;16152:79;;;;;;16130:19;;1235:42;;16152:41;;:79;;;;;;;;;;;;;;;1235:42;16152:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16152:79:100;;-1:-1:-1;;;;;;16245:25:100;;;16241:314;;16303:11;-1:-1:-1;;;;;16286:44:100;;16331:8;16341:4;16347:2;16351:6;16359:8;16369:12;16286:96;;;;;;;;;;;;;-1:-1:-1;;;;;16286:96:100;;;;;;-1:-1:-1;;;;;16286:96:100;;;;;;-1:-1:-1;;;;;16286:96:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16286:96:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16241:314;;;16403:19;16399:156;;;16447:15;:2;-1:-1:-1;;;;;16447:13:100;;;;;;:15;;:::i;:::-;16446:16;16438:106;;;;-1:-1:-1;;;16438:106:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15873:688;;;;;;;;:::o;718:610:104:-;778:4;1239:20;;1084:66;1278:23;;;;;;:42;;-1:-1:-1;1305:15:104;;;1278:42;1270:51;718:610;-1:-1:-1;;;;718:610:104:o;125:681:48:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;125:681:48;;;-1:-1:-1;125:681:48;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;125:681:48;-1:-1:-1;;;;;125:681:48;;;;;;;;;;;-1:-1:-1;125:681:48;;;;;;;-1:-1:-1;125:681:48;;;-1:-1:-1;125:681:48;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;125:681:48;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC777SenderRecipientMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"fromBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toBalance","type":"uint256"}],"name":"TokensReceivedCalled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"fromBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toBalance","type":"uint256"}],"name":"TokensToSendCalled","type":"event"},{"inputs":[{"internalType":"contract IERC777","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"canImplementInterfaceForAddress","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"recipientFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"registerRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"registerSender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC777","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"senderFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"shouldRevert","type":"bool"}],"name":"setShouldRevertReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"shouldRevert","type":"bool"}],"name":"setShouldRevertSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"tokensReceived","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"tokensToSend","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC777SenderRecipientMock","deploymentBytecode":{"bytecode":"0x60806040526001805462010000600160b01b031916751820a4b7618bde71dce8cdc73aab6c95905fad24000017905534801561003a57600080fd5b50610da58061004a6000396000f3fe608060405234801561001057600080fd5b50600436106100a85760003560e01c806375ab97821161007157806375ab97821461036f578063a8badaa514610455578063c97e18fc1461047b578063d2de64741461049a578063e0eb2180146104c0578063e1ecbd30146104e6576100a8565b806223de29146100ad578063249cb3fa146101955780633836ef89146101d357806344d17187146102975780634e4ae5a514610350575b600080fd5b610193600480360360c08110156100c357600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b81111561010557600080fd5b82018360208201111561011757600080fd5b803590602001918460018302840111600160201b8311171561013857600080fd5b919390929091602081019035600160201b81111561015557600080fd5b82018360208201111561016757600080fd5b803590602001918460018302840111600160201b8311171561018857600080fd5b50909250905061050c565b005b6101c1600480360360408110156101ab57600080fd5b50803590602001356001600160a01b031661072a565b60408051918252519081900360200190f35b610193600480360360808110156101e957600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561022357600080fd5b82018360208201111561023557600080fd5b803590602001918460018302840111600160201b8311171561025657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061079f945050505050565b610193600480360360608110156102ad57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156102dc57600080fd5b8201836020820111156102ee57600080fd5b803590602001918460018302840111600160201b8311171561030f57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061087e945050505050565b6101936004803603602081101561036657600080fd5b5035151561094c565b610193600480360360c081101561038557600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b8111156103c757600080fd5b8201836020820111156103d957600080fd5b803590602001918460018302840111600160201b831117156103fa57600080fd5b919390929091602081019035600160201b81111561041757600080fd5b82018360208201111561042957600080fd5b803590602001918460018302840111600160201b8311171561044a57600080fd5b50909250905061095f565b6101936004803603602081101561046b57600080fd5b50356001600160a01b0316610b78565b6101936004803603602081101561049157600080fd5b50351515610c14565b610193600480360360208110156104b057600080fd5b50356001600160a01b0316610c2e565b610193600480360360208110156104d657600080fd5b50356001600160a01b0316610c77565b610193600480360360208110156104fc57600080fd5b50356001600160a01b0316610cbc565b600154610100900460ff161561052157600080fd5b600061052b610d3d565b90506000816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561057c57600080fd5b505afa158015610590573d6000803e3d6000fd5b505050506040513d60208110156105a657600080fd5b5051604080516370a0823160e01b81526001600160a01b038b811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b1580156105f857600080fd5b505afa15801561060c573d6000803e3d6000fd5b505050506040513d602081101561062257600080fd5b810190808051906020019092919050505090507f47e915878c47f3ec4d7ff646a2becb229f64fd2abe4d2b5e2bb4275b0cf50d4e8b8b8b8b8b8b8b8b8b8b8b604051808c6001600160a01b031681526020018b6001600160a01b031681526020018a6001600160a01b031681526020018981526020018060200180602001866001600160a01b0316815260200185815260200184815260200183810383528a8a82818152602001925080828437600083820152601f01601f191690910184810383528881526020019050888880828437600083820152604051601f909101601f19169092018290039f50909d5050505050505050505050505050a15050505050505050505050565b6000828152602081815260408083206001600160a01b038516845290915281205460ff16610759576000610798565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b9392505050565b836001600160a01b0316639bd9bbc68484846040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b15801561086057600080fd5b505af1158015610874573d6000803e3d6000fd5b5050505050505050565b6040805163fe9d930360e01b815260048101848152602482019283528351604483015283516001600160a01b0387169363fe9d9303938793879390929160640190602085019080838360005b838110156108e25781810151838201526020016108ca565b50505050905090810190601f16801561090f5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b15801561092f57600080fd5b505af1158015610943573d6000803e3d6000fd5b50505050505050565b6001805460ff1916911515919091179055565b60015460ff161561096f57600080fd5b6000610979610d3d565b90506000816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156109ca57600080fd5b505afa1580156109de573d6000803e3d6000fd5b505050506040513d60208110156109f457600080fd5b5051604080516370a0823160e01b81526001600160a01b038b811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b158015610a4657600080fd5b505afa158015610a5a573d6000803e3d6000fd5b505050506040513d6020811015610a7057600080fd5b810190808051906020019092919050505090507faa3e88aca472e90221daf7d3d601abafb62b120319089d7a2c2f63588da855298b8b8b8b8b8b8b8b8b8b8b604051808c6001600160a01b031681526020018b6001600160a01b031681526020018a6001600160a01b031681526020018981526020018060200180602001866001600160a01b0316815260200185815260200184815260200183810383528a8a82818152602001925080828437600083820152601f01601f191690910184810383528881526020019050888880828437600083820152604051601f909101601f19169092018290039f50909d5050505050505050505050505050a15050505050505050505050565b600154604080516329965a1d60e01b81523060048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201526001600160a01b038481166044830152915162010000909304909116916329965a1d9160648082019260009290919082900301818387803b158015610bf957600080fd5b505af1158015610c0d573d6000803e3d6000fd5b5050505050565b600180549115156101000261ff0019909216919091179055565b610c587f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89582610d41565b306001600160a01b038216811415610c7357610c7381610cbc565b5050565b610ca17fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b82610d41565b306001600160a01b038216811415610c7357610c7381610b78565b600154604080516329965a1d60e01b81523060048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201526001600160a01b038481166044830152915162010000909304909116916329965a1d9160648082019260009290919082900301818387803b158015610bf957600080fd5b3390565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff1916600117905556fea26469706673582212208290ff76653273b55c49b16adbb08944deb115fc3add8f46e096a76207c36f0e64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"tokensReceived(address,address,address,uint256,bytes,bytes)":{"details":"Called by an {IERC777} token contract whenever tokens are being moved or created into a registered account (`to`). The type of operation is conveyed by `from` being the zero address or not. This call occurs _after_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the post-operation state. This function may revert to prevent the operation from being executed."},"tokensToSend(address,address,address,uint256,bytes,bytes)":{"details":"Called by an {IERC777} token contract whenever a registered holder's (`from`) tokens are about to be moved or destroyed. The type of operation is conveyed by `to` being the zero address or not. This call occurs _before_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the pre-operation state. This function may revert to prevent the operation from being executed."}},"version":1},"methodIdentifiers":{"burn(address,uint256,bytes)":"0x44d17187","canImplementInterfaceForAddress(bytes32,address)":"0x249cb3fa","recipientFor(address)":"0xe0eb2180","registerRecipient(address)":"0xa8badaa5","registerSender(address)":"0xe1ecbd30","send(address,address,uint256,bytes)":"0x3836ef89","senderFor(address)":"0xd2de6474","setShouldRevertReceive(bool)":"0xc97e18fc","setShouldRevertSend(bool)":"0x4e4ae5a5","tokensReceived(address,address,address,uint256,bytes,bytes)":"0x0023de29","tokensToSend(address,address,address,uint256,bytes,bytes)":"0x75ab9782"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100a85760003560e01c806375ab97821161007157806375ab97821461036f578063a8badaa514610455578063c97e18fc1461047b578063d2de64741461049a578063e0eb2180146104c0578063e1ecbd30146104e6576100a8565b806223de29146100ad578063249cb3fa146101955780633836ef89146101d357806344d17187146102975780634e4ae5a514610350575b600080fd5b610193600480360360c08110156100c357600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b81111561010557600080fd5b82018360208201111561011757600080fd5b803590602001918460018302840111600160201b8311171561013857600080fd5b919390929091602081019035600160201b81111561015557600080fd5b82018360208201111561016757600080fd5b803590602001918460018302840111600160201b8311171561018857600080fd5b50909250905061050c565b005b6101c1600480360360408110156101ab57600080fd5b50803590602001356001600160a01b031661072a565b60408051918252519081900360200190f35b610193600480360360808110156101e957600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561022357600080fd5b82018360208201111561023557600080fd5b803590602001918460018302840111600160201b8311171561025657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061079f945050505050565b610193600480360360608110156102ad57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156102dc57600080fd5b8201836020820111156102ee57600080fd5b803590602001918460018302840111600160201b8311171561030f57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061087e945050505050565b6101936004803603602081101561036657600080fd5b5035151561094c565b610193600480360360c081101561038557600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b8111156103c757600080fd5b8201836020820111156103d957600080fd5b803590602001918460018302840111600160201b831117156103fa57600080fd5b919390929091602081019035600160201b81111561041757600080fd5b82018360208201111561042957600080fd5b803590602001918460018302840111600160201b8311171561044a57600080fd5b50909250905061095f565b6101936004803603602081101561046b57600080fd5b50356001600160a01b0316610b78565b6101936004803603602081101561049157600080fd5b50351515610c14565b610193600480360360208110156104b057600080fd5b50356001600160a01b0316610c2e565b610193600480360360208110156104d657600080fd5b50356001600160a01b0316610c77565b610193600480360360208110156104fc57600080fd5b50356001600160a01b0316610cbc565b600154610100900460ff161561052157600080fd5b600061052b610d3d565b90506000816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561057c57600080fd5b505afa158015610590573d6000803e3d6000fd5b505050506040513d60208110156105a657600080fd5b5051604080516370a0823160e01b81526001600160a01b038b811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b1580156105f857600080fd5b505afa15801561060c573d6000803e3d6000fd5b505050506040513d602081101561062257600080fd5b810190808051906020019092919050505090507f47e915878c47f3ec4d7ff646a2becb229f64fd2abe4d2b5e2bb4275b0cf50d4e8b8b8b8b8b8b8b8b8b8b8b604051808c6001600160a01b031681526020018b6001600160a01b031681526020018a6001600160a01b031681526020018981526020018060200180602001866001600160a01b0316815260200185815260200184815260200183810383528a8a82818152602001925080828437600083820152601f01601f191690910184810383528881526020019050888880828437600083820152604051601f909101601f19169092018290039f50909d5050505050505050505050505050a15050505050505050505050565b6000828152602081815260408083206001600160a01b038516845290915281205460ff16610759576000610798565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b9392505050565b836001600160a01b0316639bd9bbc68484846040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b15801561086057600080fd5b505af1158015610874573d6000803e3d6000fd5b5050505050505050565b6040805163fe9d930360e01b815260048101848152602482019283528351604483015283516001600160a01b0387169363fe9d9303938793879390929160640190602085019080838360005b838110156108e25781810151838201526020016108ca565b50505050905090810190601f16801561090f5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b15801561092f57600080fd5b505af1158015610943573d6000803e3d6000fd5b50505050505050565b6001805460ff1916911515919091179055565b60015460ff161561096f57600080fd5b6000610979610d3d565b90506000816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156109ca57600080fd5b505afa1580156109de573d6000803e3d6000fd5b505050506040513d60208110156109f457600080fd5b5051604080516370a0823160e01b81526001600160a01b038b811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b158015610a4657600080fd5b505afa158015610a5a573d6000803e3d6000fd5b505050506040513d6020811015610a7057600080fd5b810190808051906020019092919050505090507faa3e88aca472e90221daf7d3d601abafb62b120319089d7a2c2f63588da855298b8b8b8b8b8b8b8b8b8b8b604051808c6001600160a01b031681526020018b6001600160a01b031681526020018a6001600160a01b031681526020018981526020018060200180602001866001600160a01b0316815260200185815260200184815260200183810383528a8a82818152602001925080828437600083820152601f01601f191690910184810383528881526020019050888880828437600083820152604051601f909101601f19169092018290039f50909d5050505050505050505050505050a15050505050505050505050565b600154604080516329965a1d60e01b81523060048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201526001600160a01b038481166044830152915162010000909304909116916329965a1d9160648082019260009290919082900301818387803b158015610bf957600080fd5b505af1158015610c0d573d6000803e3d6000fd5b5050505050565b600180549115156101000261ff0019909216919091179055565b610c587f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89582610d41565b306001600160a01b038216811415610c7357610c7381610cbc565b5050565b610ca17fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b82610d41565b306001600160a01b038216811415610c7357610c7381610b78565b600154604080516329965a1d60e01b81523060048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201526001600160a01b038481166044830152915162010000909304909116916329965a1d9160648082019260009290919082900301818387803b158015610bf957600080fd5b3390565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff1916600117905556fea26469706673582212208290ff76653273b55c49b16adbb08944deb115fc3add8f46e096a76207c36f0e64736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC777SenderRecipientMock.sol","sourcemap":"315:3970:49:-:0;;;1010:96;;;-1:-1:-1;;;;;;1010:96:49;;;;;315:3970;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{"canImplementInterfaceForAddress(bytes32,address)":{"notice":"See {IERC1820Implementer-canImplementInterfaceForAddress}."}},"version":1}},"EnumerableAddressSetMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"result","type":"bool"}],"name":"OperationResult","type":"event"},{"inputs":[{"internalType":"address","name":"value","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"at","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"value","type":"address"}],"name":"contains","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"value","type":"address"}],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"EnumerableAddressSetMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610400806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630a3b0a4f1461005c5780631f7b6d321461008457806329092d0e1461009e5780635dbe47e8146100c4578063e0886f90146100fe575b600080fd5b6100826004803603602081101561007257600080fd5b50356001600160a01b0316610137565b005b61008c610180565b60408051918252519081900360200190f35b610082600480360360208110156100b457600080fd5b50356001600160a01b0316610191565b6100ea600480360360208110156100da57600080fd5b50356001600160a01b031661019d565b604080519115158252519081900360200190f35b61011b6004803603602081101561011457600080fd5b50356101af565b604080516001600160a01b039092168252519081900360200190f35b600061014381836101bb565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b600061018c60006101d7565b905090565b600061014381836101e2565b60006101a981836101f7565b92915050565b60006101a9818361020c565b60006101d0836001600160a01b038416610218565b9392505050565b60006101a982610262565b60006101d0836001600160a01b038416610266565b60006101d0836001600160a01b03841661032c565b60006101d08383610344565b6000610224838361032c565b61025a575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556101a9565b5060006101a9565b5490565b60008181526001830160205260408120548015610322578354600019808301919081019060009087908390811061029957fe5b90600052602060002001549050808760000184815481106102b657fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806102e657fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506101a9565b60009150506101a9565b60009081526001919091016020526040902054151590565b815460009082106103865760405162461bcd60e51b81526004018080602001828103825260228152602001806103a96022913960400191505060405180910390fd5b82600001828154811061039557fe5b906000526020600020015490509291505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473a2646970667358221220fcd3e24b2caee3d1d60a2b1ff49bb9c78c41c5e9ef2b4c7b7a2c36d6f2a97aa064736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"add(address)":"0x0a3b0a4f","at(uint256)":"0xe0886f90","contains(address)":"0x5dbe47e8","length()":"0x1f7b6d32","remove(address)":"0x29092d0e"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c80630a3b0a4f1461005c5780631f7b6d321461008457806329092d0e1461009e5780635dbe47e8146100c4578063e0886f90146100fe575b600080fd5b6100826004803603602081101561007257600080fd5b50356001600160a01b0316610137565b005b61008c610180565b60408051918252519081900360200190f35b610082600480360360208110156100b457600080fd5b50356001600160a01b0316610191565b6100ea600480360360208110156100da57600080fd5b50356001600160a01b031661019d565b604080519115158252519081900360200190f35b61011b6004803603602081101561011457600080fd5b50356101af565b604080516001600160a01b039092168252519081900360200190f35b600061014381836101bb565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b600061018c60006101d7565b905090565b600061014381836101e2565b60006101a981836101f7565b92915050565b60006101a9818361020c565b60006101d0836001600160a01b038416610218565b9392505050565b60006101a982610262565b60006101d0836001600160a01b038416610266565b60006101d0836001600160a01b03841661032c565b60006101d08383610344565b6000610224838361032c565b61025a575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556101a9565b5060006101a9565b5490565b60008181526001830160205260408120548015610322578354600019808301919081019060009087908390811061029957fe5b90600052602060002001549050808760000184815481106102b657fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806102e657fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506101a9565b60009150506101a9565b60009081526001919091016020526040902054151590565b815460009082106103865760405162461bcd60e51b81526004018080602001828103825260228152602001806103a96022913960400191505060405180910390fd5b82600001828154811061039557fe5b906000526020600020015490509291505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473a2646970667358221220fcd3e24b2caee3d1d60a2b1ff49bb9c78c41c5e9ef2b4c7b7a2c36d6f2a97aa064736f6c634300060c0033"},"sourceId":"contracts/mocks/EnumerableSetMock.sol","sourcemap":"110:734:51:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"EnumerableMap":{"abi":[],"contractName":"EnumerableMap","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122034bf4db534ebffad11f274170d852d4dbbd16a9161b07cfd2eb7014fc3ea750a64736f6c634300060c0033"},"devdoc":{"details":"Library for managing an enumerable variant of Solidity's https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] type. Maps have the following properties: - Entries are added, removed, and checked for existence in constant time (O(1)). - Entries are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { // Add the library methods using EnumerableMap for EnumerableMap.UintToAddressMap; // Declare a set state variable EnumerableMap.UintToAddressMap private myMap; } ``` As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are supported.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122034bf4db534ebffad11f274170d852d4dbbd16a9161b07cfd2eb7014fc3ea750a64736f6c634300060c0033"},"sourceId":"contracts/utils/EnumerableMap.sol","sourcemap":"764:7555:108:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"EnumerableMapMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"result","type":"bool"}],"name":"OperationResult","type":"event"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"at","outputs":[{"internalType":"uint256","name":"key","type":"uint256"},{"internalType":"address","name":"value","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"key","type":"uint256"}],"name":"contains","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"key","type":"uint256"}],"name":"get","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"key","type":"uint256"}],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"key","type":"uint256"},{"internalType":"address","name":"value","type":"address"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"EnumerableMapMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610628806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631f7b6d32146100675780632f30c6f6146100815780634cc82215146100af5780639507d39a146100cc578063c34052e014610105578063e0886f9014610136575b600080fd5b61006f610174565b60408051918252519081900360200190f35b6100ad6004803603604081101561009757600080fd5b50803590602001356001600160a01b0316610185565b005b6100ad600480360360208110156100c557600080fd5b50356101d0565b6100e9600480360360208110156100e257600080fd5b5035610219565b604080516001600160a01b039092168252519081900360200190f35b6101226004803603602081101561011b57600080fd5b503561022b565b604080519115158252519081900360200190f35b6101536004803603602081101561014c57600080fd5b5035610237565b604080519283526001600160a01b0390911660208301528051918290030190f35b6000610180600061024d565b905090565b6000610192818484610258565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a1505050565b60006101dc8183610278565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b60006102258183610284565b92915050565b60006102258183610290565b600080610244818461029c565b91509150915091565b6000610225826102b8565b600061026e84846001600160a01b0385166102bc565b90505b9392505050565b60006102718383610353565b60006102718383610431565b60006102718383610473565b60008080806102ab868661048b565b9097909650945050505050565b5490565b600082815260018401602052604081205480610321575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610271565b8285600001600183038154811061033457fe5b9060005260206000209060020201600101819055506000915050610271565b60008181526001830160205260408120548015610427578354600019808301919081019060009087908390811061038657fe5b90600052602060002090600202019050808760000184815481106103a657fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806103e557fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506102259350505050565b6000915050610225565b600061027183836040518060400160405280601e81526020017f456e756d657261626c654d61703a206e6f6e6578697374656e74206b65790000815250610506565b60009081526001919091016020526040902054151590565b8154600090819083106104cf5760405162461bcd60e51b81526004018080602001828103825260228152602001806105d16022913960400191505060405180910390fd5b60008460000184815481106104e057fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816105a15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561056657818101518382015260200161054e565b50505050905090810190601f1680156105935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106105b457fe5b906000526020600020906002020160010154915050939250505056fe456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473a264697066735822122045fd6370e299b1d78c4d1a864a1ff025f988a993a245e1429a1db51a2931678764736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"at(uint256)":"0xe0886f90","contains(uint256)":"0xc34052e0","get(uint256)":"0x9507d39a","length()":"0x1f7b6d32","remove(uint256)":"0x4cc82215","set(uint256,address)":"0x2f30c6f6"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100625760003560e01c80631f7b6d32146100675780632f30c6f6146100815780634cc82215146100af5780639507d39a146100cc578063c34052e014610105578063e0886f9014610136575b600080fd5b61006f610174565b60408051918252519081900360200190f35b6100ad6004803603604081101561009757600080fd5b50803590602001356001600160a01b0316610185565b005b6100ad600480360360208110156100c557600080fd5b50356101d0565b6100e9600480360360208110156100e257600080fd5b5035610219565b604080516001600160a01b039092168252519081900360200190f35b6101226004803603602081101561011b57600080fd5b503561022b565b604080519115158252519081900360200190f35b6101536004803603602081101561014c57600080fd5b5035610237565b604080519283526001600160a01b0390911660208301528051918290030190f35b6000610180600061024d565b905090565b6000610192818484610258565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a1505050565b60006101dc8183610278565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b60006102258183610284565b92915050565b60006102258183610290565b600080610244818461029c565b91509150915091565b6000610225826102b8565b600061026e84846001600160a01b0385166102bc565b90505b9392505050565b60006102718383610353565b60006102718383610431565b60006102718383610473565b60008080806102ab868661048b565b9097909650945050505050565b5490565b600082815260018401602052604081205480610321575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610271565b8285600001600183038154811061033457fe5b9060005260206000209060020201600101819055506000915050610271565b60008181526001830160205260408120548015610427578354600019808301919081019060009087908390811061038657fe5b90600052602060002090600202019050808760000184815481106103a657fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806103e557fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506102259350505050565b6000915050610225565b600061027183836040518060400160405280601e81526020017f456e756d657261626c654d61703a206e6f6e6578697374656e74206b65790000815250610506565b60009081526001919091016020526040902054151590565b8154600090819083106104cf5760405162461bcd60e51b81526004018080602001828103825260228152602001806105d16022913960400191505060405180910390fd5b60008460000184815481106104e057fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816105a15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561056657818101518382015260200161054e565b50505050905090810190601f1680156105935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106105b457fe5b906000526020600020906002020160010154915050939250505056fe456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473a264697066735822122045fd6370e299b1d78c4d1a864a1ff025f988a993a245e1429a1db51a2931678764736f6c634300060c0033"},"sourceId":"contracts/mocks/EnumerableMapMock.sol","sourcemap":"96:868:50:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"EnumerableSet":{"abi":[],"contractName":"EnumerableSet","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202e7ad94af614e248d9cd4fde67d294bb7a5b1a801bda47d6b4241eb916bb421464736f6c634300060c0033"},"devdoc":{"details":"Library for managing https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive types. Sets have the following properties: - Elements are added, removed, and checked for existence in constant time (O(1)). - Elements are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { // Add the library methods using EnumerableSet for EnumerableSet.AddressSet; // Declare a set state variable EnumerableSet.AddressSet private mySet; } ``` As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256` (`UintSet`) are supported.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202e7ad94af614e248d9cd4fde67d294bb7a5b1a801bda47d6b4241eb916bb421464736f6c634300060c0033"},"sourceId":"contracts/utils/EnumerableSet.sol","sourcemap":"724:7062:109:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"EnumerableUintSetMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"result","type":"bool"}],"name":"OperationResult","type":"event"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"at","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"contains","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"EnumerableUintSetMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506103ae806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80631003e2d21461005c5780631f7b6d321461007b5780634cc8221514610095578063c34052e0146100b2578063e0886f90146100e3575b600080fd5b6100796004803603602081101561007257600080fd5b5035610100565b005b610083610149565b60408051918252519081900360200190f35b610079600480360360208110156100ab57600080fd5b503561015a565b6100cf600480360360208110156100c857600080fd5b5035610166565b604080519115158252519081900360200190f35b610083600480360360208110156100f957600080fd5b5035610178565b600061010c8183610184565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b60006101556000610197565b905090565b600061010c81836101a2565b600061017281836101ae565b92915050565b600061017281836101ba565b600061019083836101c6565b9392505050565b600061017282610210565b60006101908383610214565b600061019083836102da565b600061019083836102f2565b60006101d283836102da565b61020857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610172565b506000610172565b5490565b600081815260018301602052604081205480156102d0578354600019808301919081019060009087908390811061024757fe5b906000526020600020015490508087600001848154811061026457fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061029457fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610172565b6000915050610172565b60009081526001919091016020526040902054151590565b815460009082106103345760405162461bcd60e51b81526004018080602001828103825260228152602001806103576022913960400191505060405180910390fd5b82600001828154811061034357fe5b906000526020600020015490509291505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473a2646970667358221220629bba601814509aec845d3fd15c5a6834018155e7ce71abfa242a87683c211164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"add(uint256)":"0x1003e2d2","at(uint256)":"0xe0886f90","contains(uint256)":"0xc34052e0","length()":"0x1f7b6d32","remove(uint256)":"0x4cc82215"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c80631003e2d21461005c5780631f7b6d321461007b5780634cc8221514610095578063c34052e0146100b2578063e0886f90146100e3575b600080fd5b6100796004803603602081101561007257600080fd5b5035610100565b005b610083610149565b60408051918252519081900360200190f35b610079600480360360208110156100ab57600080fd5b503561015a565b6100cf600480360360208110156100c857600080fd5b5035610166565b604080519115158252519081900360200190f35b610083600480360360208110156100f957600080fd5b5035610178565b600061010c8183610184565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b60006101556000610197565b905090565b600061010c81836101a2565b600061017281836101ae565b92915050565b600061017281836101ba565b600061019083836101c6565b9392505050565b600061017282610210565b60006101908383610214565b600061019083836102da565b600061019083836102f2565b60006101d283836102da565b61020857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610172565b506000610172565b5490565b600081815260018301602052604081205480156102d0578354600019808301919081019060009087908390811061024757fe5b906000526020600020015490508087600001848154811061026457fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061029457fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610172565b6000915050610172565b60009081526001919091016020526040902054151590565b815460009082106103345760405162461bcd60e51b81526004018080602001828103825260228152602001806103576022913960400191505060405180910390fd5b82600001828154811061034357fe5b906000526020600020015490509291505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473a2646970667358221220629bba601814509aec845d3fd15c5a6834018155e7ce71abfa242a87683c211164736f6c634300060c0033"},"sourceId":"contracts/mocks/EnumerableSetMock.sol","sourcemap":"857:725:51:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Escrow":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"Escrow","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6106d28061007d6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461008f5780638da5cb5b146100a4578063e3a9db1a146100d5578063f2fde38b1461011a578063f340fa011461014d575b600080fd5b34801561006657600080fd5b5061008d6004803603602081101561007d57600080fd5b50356001600160a01b0316610173565b005b34801561009b57600080fd5b5061008d610236565b3480156100b057600080fd5b506100b96102d8565b604080516001600160a01b039092168252519081900360200190f35b3480156100e157600080fd5b50610108600480360360208110156100f857600080fd5b50356001600160a01b03166102e7565b60408051918252519081900360200190f35b34801561012657600080fd5b5061008d6004803603602081101561013d57600080fd5b50356001600160a01b0316610302565b61008d6004803603602081101561016357600080fd5b50356001600160a01b03166103fa565b61017b6104cd565b6000546001600160a01b039081169116146101cb576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906101f390826104d1565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b61023e6104cd565b6000546001600160a01b0390811691161461028e576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61030a6104cd565b6000546001600160a01b0390811691161461035a576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811661039f5760405162461bcd60e51b815260040180806020018281038252602681526020018061061d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6104026104cd565b6000546001600160a01b03908116911614610452576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b038116600090815260016020526040902054349061047790826105bb565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b3390565b80471015610526576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610571576040519150601f19603f3d011682016040523d82523d6000602084013e610576565b606091505b50509050806105b65760405162461bcd60e51b815260040180806020018281038252603a815260200180610643603a913960400191505060405180910390fd5b505050565b600082820183811015610615576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d617920686176652072657665727465644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122046931f8d6f12dcd2899e1f16aa783bb68e4fd7a715103b5b09f2c99959d1cdd064736f6c634300060c0033"},"devdoc":{"details":"Base escrow contract, holds funds designated for a payee until they withdraw them. Intended usage: This contract (and derived escrow contracts) should be a standalone contract, that only interacts with the contract that instantiated it. That way, it is guaranteed that all Ether will be handled according to the `Escrow` rules, and there is no need to check for payable functions or transfers in the inheritance tree. The contract that uses the escrow as its payment method should be its owner, and provide public methods redirecting to the escrow's deposit and withdraw.","kind":"dev","methods":{"deposit(address)":{"details":"Stores the sent amount as credit to be withdrawn.","params":{"payee":"The destination address of the funds."}},"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."},"withdraw(address)":{"details":"Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.","params":{"payee":"The address whose funds will be withdrawn and transferred to."}}},"title":"Escrow","version":1},"methodIdentifiers":{"deposit(address)":"0xf340fa01","depositsOf(address)":"0xe3a9db1a","owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","transferOwnership(address)":"0xf2fde38b","withdraw(address)":"0x51cff8d9"},"runtimeBytecode":{"bytecode":"0x6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461008f5780638da5cb5b146100a4578063e3a9db1a146100d5578063f2fde38b1461011a578063f340fa011461014d575b600080fd5b34801561006657600080fd5b5061008d6004803603602081101561007d57600080fd5b50356001600160a01b0316610173565b005b34801561009b57600080fd5b5061008d610236565b3480156100b057600080fd5b506100b96102d8565b604080516001600160a01b039092168252519081900360200190f35b3480156100e157600080fd5b50610108600480360360208110156100f857600080fd5b50356001600160a01b03166102e7565b60408051918252519081900360200190f35b34801561012657600080fd5b5061008d6004803603602081101561013d57600080fd5b50356001600160a01b0316610302565b61008d6004803603602081101561016357600080fd5b50356001600160a01b03166103fa565b61017b6104cd565b6000546001600160a01b039081169116146101cb576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906101f390826104d1565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b61023e6104cd565b6000546001600160a01b0390811691161461028e576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61030a6104cd565b6000546001600160a01b0390811691161461035a576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811661039f5760405162461bcd60e51b815260040180806020018281038252602681526020018061061d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6104026104cd565b6000546001600160a01b03908116911614610452576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b038116600090815260016020526040902054349061047790826105bb565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b3390565b80471015610526576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610571576040519150601f19603f3d011682016040523d82523d6000602084013e610576565b606091505b50509050806105b65760405162461bcd60e51b815260040180806020018281038252603a815260200180610643603a913960400191505060405180910390fd5b505050565b600082820183811015610615576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d617920686176652072657665727465644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122046931f8d6f12dcd2899e1f16aa783bb68e4fd7a715103b5b09f2c99959d1cdd064736f6c634300060c0033"},"sourceId":"contracts/payment/escrow/Escrow.sol","sourcemap":"807:1400:71:-:0;;;;;;;;;;;;-1:-1:-1;865:17:7;885:12;:10;:12::i;:::-;907:6;:18;;-1:-1:-1;;;;;;907:18:7;-1:-1:-1;;;;;907:18:7;;;;;;;940:43;;907:18;;-1:-1:-1;907:18:7;940:43;;907:6;;940:43;831:159;807:1400:71;;590:104:0;677:10;590:104;:::o;807:1400:71:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"EtherReceiverMock":{"abi":[{"inputs":[{"internalType":"bool","name":"acceptEther","type":"bool"}],"name":"setAcceptEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}],"contractName":"EtherReceiverMock","deploymentBytecode":{"bytecode":"0x6080604052348015600f57600080fd5b5060a38061001e6000396000f3fe608060405260043610601f5760003560e01c80634fea120c146038576033565b3660335760005460ff16603157600080fd5b005b600080fd5b348015604357600080fd5b50603160048036036020811015605857600080fd5b506000805460ff19169135151591909117905556fea26469706673582212206ef7832c3908826dc34fd9e59af2b317a980c6641e6d3cf623a527f936a5cc7a64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"setAcceptEther(bool)":"0x4fea120c"},"runtimeBytecode":{"bytecode":"0x608060405260043610601f5760003560e01c80634fea120c146038576033565b3660335760005460ff16603157600080fd5b005b600080fd5b348015604357600080fd5b50603160048036036020811015605857600080fd5b506000805460ff19169135151591909117905556fea26469706673582212206ef7832c3908826dc34fd9e59af2b317a980c6641e6d3cf623a527f936a5cc7a64736f6c634300060c0033"},"sourceId":"contracts/mocks/EtherReceiverMock.sol","sourcemap":"58:261:52:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"GSNRecipient":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"inputs":[{"internalType":"address","name":"relay","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"approvalData","type":"bytes"},{"internalType":"uint256","name":"maxPossibleCharge","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"GSNRecipient","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Base GSN recipient contract: includes the {IRelayRecipient} interface and enables GSN support on all contracts in the inheritance tree. TIP: This contract is abstract. The functions {IRelayRecipient-acceptRelayedCall}, {_preRelayedCall}, and {_postRelayedCall} are not implemented and must be provided by derived contracts. See the xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategies] for more information on how to use the pre-built {GSNRecipientSignature} and {GSNRecipientERC20Fee}, or how to write your own.","events":{"RelayHubChanged(address,address)":{"details":"Emitted when a contract changes its {IRelayHub} contract to a new one."}},"kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Called by {IRelayHub} to validate if this recipient accepts being charged for a relayed call. Note that the recipient will be charged regardless of the execution result of the relayed call (i.e. if it reverts or not). The relay request was originated by `from` and will be served by `relay`. `encodedFunction` is the relayed call calldata, so its first four bytes are the function selector. The relayed call will be forwarded `gasLimit` gas, and the transaction executed with a gas price of at least `gasPrice`. ``relay``'s fee is `transactionFee`, and the recipient will be charged at most `maxPossibleCharge` (in wei). `nonce` is the sender's (`from`) nonce for replay attack protection in {IRelayHub}, and `approvalData` is a optional parameter that can be used to hold a signature over all or some of the previous values. Returns a tuple, where the first value is used to indicate approval (0) or rejection (custom non-zero error code, values 1 to 10 are reserved) and the second one is data to be passed to the other {IRelayRecipient} functions. {acceptRelayedCall} is called with 50k gas: if it runs out during execution, the request will be considered rejected. A regular revert will also trigger a rejection."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/GSN/GSNRecipient.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"GSNRecipientERC20Fee":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"maxPossibleCharge","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"contractName":"GSNRecipientERC20Fee","deploymentBytecode":{"bytecode":"0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f4941790553480156200003757600080fd5b50604051620020cd380380620020cd833981810160405260408110156200005d57600080fd5b81019080805160405193929190846401000000008211156200007e57600080fd5b9083019060208201858111156200009457600080fd5b8251640100000000811182820188101715620000af57600080fd5b82525081516020918201929091019080838360005b83811015620000de578181015183820152602001620000c4565b50505050905090810190601f1680156200010c5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200013057600080fd5b9083019060208201858111156200014657600080fd5b82516401000000008111828201881017156200016157600080fd5b82525081516020918201929091019080838360005b838110156200019057818101518382015260200162000176565b50505050905090810190601f168015620001be5780820380516001836020036101000a031916815260200191505b506040525050508181604051620001d590620002f1565b604080825283519082015282518190602080830191606084019187019080838360005b8381101562000212578181015183820152602001620001f8565b50505050905090810190601f168015620002405780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015620002755781810151838201526020016200025b565b50505050905090810190601f168015620002a35780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f080158015620002c7573d6000803e3d6000fd5b50600180546001600160a01b0319166001600160a01b039290921691909117905550620002ff9050565b6111ea8062000ee383390190565b610bd4806200030f6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806374e861d61461006757806380274db71461008b57806383947ea014610141578063ad61ccd51461031d578063e06e0e221461039a578063fc0c546a1461044d575b600080fd5b61006f610455565b604080516001600160a01b039092168252519081900360200190f35b61012f600480360360208110156100a157600080fd5b810190602081018135600160201b8111156100bb57600080fd5b8201836020820111156100cd57600080fd5b803590602001918460018302840111600160201b831117156100ee57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610464945050505050565b60408051918252519081900360200190f35b61029e600480360361012081101561015857600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561018b57600080fd5b82018360208201111561019d57600080fd5b803590602001918460018302840111600160201b831117156101be57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561022857600080fd5b82018360208201111561023a57600080fd5b803590602001918460018302840111600160201b8311171561025b57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104cc915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102e15781810151838201526020016102c9565b50505050905090810190601f16801561030e5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103256105bb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035f578181015183820152602001610347565b50505050905090810190601f16801561038c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61044b600480360360808110156103b057600080fd5b810190602081018135600160201b8111156103ca57600080fd5b8201836020820111156103dc57600080fd5b803590602001918460018302840111600160201b831117156103fd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050803515159150602081013590604001356105da565b005b61006f610643565b6000546001600160a01b031690565b600061046e610455565b6001600160a01b0316336001600160a01b0316146104bd5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b516024913960400191505060405180910390fd5b6104c682610652565b92915050565b600154604080516370a0823160e01b81526001600160a01b038b81166004830152915160009360609386939116916370a0823191602480820192602092909190829003018186803b15801561052057600080fd5b505afa158015610534573d6000803e3d6000fd5b505050506040513d602081101561054a57600080fd5b505110156105655761055c6000610699565b915091506105ad565b604080516001600160a01b038c166020820152808201859052606081018a905260808082018a90528251808303909101815260a09091019091526105a8906106b1565b915091505b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b6105e2610455565b6001600160a01b0316336001600160a01b0316146106315760405162461bcd60e51b8152600401808060200182810382526024815260200180610b516024913960400191505060405180910390fd5b61063d848484846106b6565b50505050565b6001546001600160a01b031690565b600080600083806020019051604081101561066c57600080fd5b5080516020909101516001549193509150610692906001600160a01b0316833084610743565b5050919050565b604080516020810190915260008152600b9190910191565b600091565b6000806000808780602001905160808110156106d157600080fd5b50805160208201516040830151606090930151919650945090925090506000610709610702620186a061271061079d565b83856107e6565b9050610715878261079d565b965061073885610725868a61079d565b6001546001600160a01b031691906107f4565b505050505050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261063d90859061084b565b60006107df83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108fc565b9392505050565b606490810191909202020490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261084690849061084b565b505050565b60606108a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109939092919063ffffffff16565b805190915015610846578080602001905160208110156108bf57600080fd5b50516108465760405162461bcd60e51b815260040180806020018281038252602a815260200180610b75602a913960400191505060405180910390fd5b6000818484111561098b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610950578181015183820152602001610938565b50505050905090810190601f16801561097d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606109a284846000856109aa565b949350505050565b60606109b585610b17565b610a06576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610a455780518252601f199092019160209182019101610a26565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610aa7576040519150601f19603f3d011682016040523d82523d6000602084013e610aac565b606091505b50915091508115610ac05791506109a29050565b805115610ad05780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315610950578181015183820152602001610938565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906109a257505015159291505056fe47534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875625361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220e1cc2d9b5034123b36b2cb7317bd1a56db61d1e56f7651cc5f2d4d8c81aae7a564736f6c634300060c003360806040523480156200001157600080fd5b50604051620011ea380380620011ea833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001b89060039060208501906200024c565b508051620001ce9060049060208401906200024c565b50506005805460ff19166012179055506000620001ea62000248565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505050620002e8565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028f57805160ff1916838001178555620002bf565b82800160010185558215620002bf579182015b82811115620002bf578251825591602001919060010190620002a2565b50620002cd929150620002d1565b5090565b5b80821115620002cd5760008155600101620002d2565b610ef280620002f86000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d7146102d9578063a9059cbb14610305578063dd62ed3e14610331578063f2fde38b1461035f576100f5565b806370a082311461027f578063715018a6146102a55780638da5cb5b146102ad57806395d89b41146102d1576100f5565b806323b872dd116100d357806323b872dd146101d1578063313ce56714610207578063395093511461022557806340c10f1914610251576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b610102610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b03813516906020013561041b565b604080519115158252519081900360200190f35b6101bf610439565b60408051918252519081900360200190f35b6101a3600480360360608110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040013561043f565b61020f61048a565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561023b57600080fd5b506001600160a01b038135169060200135610493565b61027d6004803603604081101561026757600080fd5b506001600160a01b0381351690602001356104e6565b005b6101bf6004803603602081101561029557600080fd5b50356001600160a01b0316610563565b61027d61057e565b6102b561063d565b604080516001600160a01b039092168252519081900360200190f35b610102610651565b6101a3600480360360408110156102ef57600080fd5b506001600160a01b0381351690602001356106b2565b6101a36004803603604081101561031b57600080fd5b506001600160a01b03813516906020013561071a565b6101bf6004803603604081101561034757600080fd5b506001600160a01b038135811691602001351661072e565b61027d6004803603602081101561037557600080fd5b50356001600160a01b031661076b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b820191906000526020600020905b8154815290600101906020018083116103f457829003601f168201915b5050505050905090565b600061042f610428610886565b848461088a565b5060015b92915050565b60025490565b600061044961063d565b6001600160a01b0316836001600160a01b031614156104755761046d8484846108c0565b506001610483565b610480848484610a1b565b90505b9392505050565b60055460ff1690565b600061042f6104a0610886565b846104e185600160006104b1610886565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610a9d565b61088a565b6104ee610886565b60055461010090046001600160a01b03908116911614610555576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61055f8282610af7565b5050565b6001600160a01b031660009081526020819052604090205490565b610586610886565b60055461010090046001600160a01b039081169116146105ed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b600061042f6106bf610886565b846104e185604051806060016040528060258152602001610e9860259139600160006106e9610886565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610be7565b600061042f610727610886565b84846108c0565b600061073861063d565b6001600160a01b0316826001600160a01b0316141561075a5750600019610433565b6107648383610c7e565b9050610433565b610773610886565b60055461010090046001600160a01b039081169116146107da576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661081f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610db96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b61089261063d565b6001600160a01b0316826001600160a01b031614156108b0576108bb565b6108bb838383610ca9565b505050565b6001600160a01b0383166109055760405162461bcd60e51b8152600401808060200182810382526025815260200180610e4f6025913960400191505060405180910390fd5b6001600160a01b03821661094a5760405162461bcd60e51b8152600401808060200182810382526023815260200180610d966023913960400191505060405180910390fd5b6109558383836108bb565b61099281604051806060016040528060268152602001610e01602691396001600160a01b0386166000908152602081905260409020549190610be7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546109c19082610a9d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000610a288484846108c0565b610a9384610a34610886565b6104e185604051806060016040528060288152602001610e27602891396001600160a01b038a16600090815260016020526040812090610a72610886565b6001600160a01b031681526020810191909152604001600020549190610be7565b5060019392505050565b600082820183811015610483576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610b52576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610b5e600083836108bb565b600254610b6b9082610a9d565b6002556001600160a01b038216600090815260208190526040902054610b919082610a9d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115610c765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c3b578181015183820152602001610c23565b50505050905090810190601f168015610c685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610cee5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e746024913960400191505060405180910390fd5b6001600160a01b038216610d335760405162461bcd60e51b8152600401808060200182810382526022815260200180610ddf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209f7e4d528c2f5e0178238b471a63b49a19c70b02b5d8e226290a430d9cae242164736f6c634300060c0033"},"devdoc":{"details":"A xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategy] that charges transaction fees in a special purpose ERC20 token, which we refer to as the gas payment token. The amount charged is exactly the amount of Ether charged to the recipient. This means that the token is essentially pegged to the value of Ether. The distribution strategy of the gas payment token to users is not defined by this contract. It's a mintable token whose only minter is the recipient, so the strategy must be implemented in a derived contract, making use of the internal {_mint} function.","kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Ensures that only users with enough gas payment token balance can have transactions relayed through the GSN."},"constructor":{"details":"The arguments to the constructor are the details that the gas payment token will have: `name` and `symbol`. `decimals` is hard-coded to 18."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."},"token()":{"details":"Returns the gas payment token."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5","token()":"0xfc0c546a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100625760003560e01c806374e861d61461006757806380274db71461008b57806383947ea014610141578063ad61ccd51461031d578063e06e0e221461039a578063fc0c546a1461044d575b600080fd5b61006f610455565b604080516001600160a01b039092168252519081900360200190f35b61012f600480360360208110156100a157600080fd5b810190602081018135600160201b8111156100bb57600080fd5b8201836020820111156100cd57600080fd5b803590602001918460018302840111600160201b831117156100ee57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610464945050505050565b60408051918252519081900360200190f35b61029e600480360361012081101561015857600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561018b57600080fd5b82018360208201111561019d57600080fd5b803590602001918460018302840111600160201b831117156101be57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561022857600080fd5b82018360208201111561023a57600080fd5b803590602001918460018302840111600160201b8311171561025b57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104cc915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102e15781810151838201526020016102c9565b50505050905090810190601f16801561030e5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103256105bb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035f578181015183820152602001610347565b50505050905090810190601f16801561038c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61044b600480360360808110156103b057600080fd5b810190602081018135600160201b8111156103ca57600080fd5b8201836020820111156103dc57600080fd5b803590602001918460018302840111600160201b831117156103fd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050803515159150602081013590604001356105da565b005b61006f610643565b6000546001600160a01b031690565b600061046e610455565b6001600160a01b0316336001600160a01b0316146104bd5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b516024913960400191505060405180910390fd5b6104c682610652565b92915050565b600154604080516370a0823160e01b81526001600160a01b038b81166004830152915160009360609386939116916370a0823191602480820192602092909190829003018186803b15801561052057600080fd5b505afa158015610534573d6000803e3d6000fd5b505050506040513d602081101561054a57600080fd5b505110156105655761055c6000610699565b915091506105ad565b604080516001600160a01b038c166020820152808201859052606081018a905260808082018a90528251808303909101815260a09091019091526105a8906106b1565b915091505b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b6105e2610455565b6001600160a01b0316336001600160a01b0316146106315760405162461bcd60e51b8152600401808060200182810382526024815260200180610b516024913960400191505060405180910390fd5b61063d848484846106b6565b50505050565b6001546001600160a01b031690565b600080600083806020019051604081101561066c57600080fd5b5080516020909101516001549193509150610692906001600160a01b0316833084610743565b5050919050565b604080516020810190915260008152600b9190910191565b600091565b6000806000808780602001905160808110156106d157600080fd5b50805160208201516040830151606090930151919650945090925090506000610709610702620186a061271061079d565b83856107e6565b9050610715878261079d565b965061073885610725868a61079d565b6001546001600160a01b031691906107f4565b505050505050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261063d90859061084b565b60006107df83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108fc565b9392505050565b606490810191909202020490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261084690849061084b565b505050565b60606108a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109939092919063ffffffff16565b805190915015610846578080602001905160208110156108bf57600080fd5b50516108465760405162461bcd60e51b815260040180806020018281038252602a815260200180610b75602a913960400191505060405180910390fd5b6000818484111561098b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610950578181015183820152602001610938565b50505050905090810190601f16801561097d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606109a284846000856109aa565b949350505050565b60606109b585610b17565b610a06576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610a455780518252601f199092019160209182019101610a26565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610aa7576040519150601f19603f3d011682016040523d82523d6000602084013e610aac565b606091505b50915091508115610ac05791506109a29050565b805115610ad05780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315610950578181015183820152602001610938565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906109a257505015159291505056fe47534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875625361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220e1cc2d9b5034123b36b2cb7317bd1a56db61d1e56f7651cc5f2d4d8c81aae7a564736f6c634300060c0033"},"sourceId":"contracts/GSN/GSNRecipientERC20Fee.sol","sourcemap":"830:3567:2:-:0;;;857:70:1;;;-1:-1:-1;;;;;;857:70:1;885:42;857:70;;;1253:127:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1253:127:2;;;;;;;;;;-1:-1:-1;1253:127:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1253:127:2;;;;;;;;;;-1:-1:-1;1253:127:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1360:4;1366:6;1333:40;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1333:40:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1324:6:2;:49;;-1:-1:-1;;;;;;1324:49:2;-1:-1:-1;;;;;1324:49:2;;;;;;;;;;-1:-1:-1;830:3567:2;;-1:-1:-1;830:3567:2;;;;;;;;;:::o;:::-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"GSNRecipientERC20FeeMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"senderBalance","type":"uint256"}],"name":"MockFunctionCalled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"maxPossibleCharge","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mockFunction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"contractName":"GSNRecipientERC20FeeMock","deploymentBytecode":{"bytecode":"0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f4941790553480156200003757600080fd5b50604051620022dc380380620022dc833981810160405260408110156200005d57600080fd5b81019080805160405193929190846401000000008211156200007e57600080fd5b9083019060208201858111156200009457600080fd5b8251640100000000811182820188101715620000af57600080fd5b82525081516020918201929091019080838360005b83811015620000de578181015183820152602001620000c4565b50505050905090810190601f1680156200010c5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200013057600080fd5b9083019060208201858111156200014657600080fd5b82516401000000008111828201881017156200016157600080fd5b82525081516020918201929091019080838360005b838110156200019057818101518382015260200162000176565b50505050905090810190601f168015620001be5780820380516001836020036101000a031916815260200191505b5060405250505081818181604051620001d790620002f5565b604080825283519082015282518190602080830191606084019187019080838360005b8381101562000214578181015183820152602001620001fa565b50505050905090810190601f168015620002425780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015620002775781810151838201526020016200025d565b50505050905090810190601f168015620002a55780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f080158015620002c9573d6000803e3d6000fd5b50600180546001600160a01b0319166001600160a01b0392909216919091179055506200030392505050565b6111ea80620010f283390190565b610ddf80620003136000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806383947ea01161005b57806383947ea01461019d578063ad61ccd514610379578063e06e0e22146103f6578063fc0c546a146104a757610088565b80633e6fec041461008d57806340c10f191461009757806374e861d6146100c357806380274db7146100e7575b600080fd5b6100956104af565b005b610095600480360360408110156100ad57600080fd5b506001600160a01b03813516906020013561056a565b6100cb610578565b604080516001600160a01b039092168252519081900360200190f35b61018b600480360360208110156100fd57600080fd5b810190602081018135600160201b81111561011757600080fd5b82018360208201111561012957600080fd5b803590602001918460018302840111600160201b8311171561014a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610588945050505050565b60408051918252519081900360200190f35b6102fa60048036036101208110156101b457600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156101e757600080fd5b8201836020820111156101f957600080fd5b803590602001918460018302840111600160201b8311171561021a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561028457600080fd5b82018360208201111561029657600080fd5b803590602001918460018302840111600160201b831117156102b757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506105f0915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561033d578181015183820152602001610325565b50505050905090810190601f16801561036a5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103816106df565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103bb5781810151838201526020016103a3565b50505050905090810190601f1680156103e85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100956004803603608081101561040c57600080fd5b810190602081018135600160201b81111561042657600080fd5b82018360208201111561043857600080fd5b803590602001918460018302840111600160201b8311171561045957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050803515159150602081013590604001356106fe565b6100cb610767565b7fde4813f7525e49908b98ef6c9c80c5bc8c7d0842981a49420eb45ef36a60e0c06104d8610767565b6001600160a01b03166370a082316104ee610776565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561052b57600080fd5b505afa15801561053f573d6000803e3d6000fd5b505050506040513d602081101561055557600080fd5b505160408051918252519081900360200190a1565b610574828261079f565b5050565b6000546001600160a01b03165b90565b6000610592610578565b6001600160a01b0316336001600160a01b0316146105e15760405162461bcd60e51b8152600401808060200182810382526024815260200180610d5c6024913960400191505060405180910390fd5b6105ea82610810565b92915050565b600154604080516370a0823160e01b81526001600160a01b038b81166004830152915160009360609386939116916370a0823191602480820192602092909190829003018186803b15801561064457600080fd5b505afa158015610658573d6000803e3d6000fd5b505050506040513d602081101561066e57600080fd5b50511015610689576106806000610857565b915091506106d1565b604080516001600160a01b038c166020820152808201859052606081018a905260808082018a90528251808303909101815260a09091019091526106cc9061086f565b915091505b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610706610578565b6001600160a01b0316336001600160a01b0316146107555760405162461bcd60e51b8152600401808060200182810382526024815260200180610d5c6024913960400191505060405180910390fd5b61076184848484610874565b50505050565b6001546001600160a01b031690565b600080546001600160a01b03163314610790575033610585565b610798610901565b9050610585565b600154604080516340c10f1960e01b81526001600160a01b03858116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b1580156107f457600080fd5b505af1158015610808573d6000803e3d6000fd5b505050505050565b600080600083806020019051604081101561082a57600080fd5b5080516020909101516001549193509150610850906001600160a01b031683308461094e565b5050919050565b604080516020810190915260008152600b9190910191565b600091565b60008060008087806020019051608081101561088f57600080fd5b508051602082015160408301516060909301519196509450909250905060006108c76108c0620186a06127106109a8565b83856109f1565b90506108d387826109a8565b96506108f6856108e3868a6109a8565b6001546001600160a01b031691906109ff565b505050505050505050565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610761908590610a56565b60006109ea83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b07565b9392505050565b606490810191909202020490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a51908490610a56565b505050565b6060610aab826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b9e9092919063ffffffff16565b805190915015610a5157808060200190516020811015610aca57600080fd5b5051610a515760405162461bcd60e51b815260040180806020018281038252602a815260200180610d80602a913960400191505060405180910390fd5b60008184841115610b965760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b5b578181015183820152602001610b43565b50505050905090810190601f168015610b885780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060610bad8484600085610bb5565b949350505050565b6060610bc085610d22565b610c11576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610c505780518252601f199092019160209182019101610c31565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610cb2576040519150601f19603f3d011682016040523d82523d6000602084013e610cb7565b606091505b50915091508115610ccb579150610bad9050565b805115610cdb5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315610b5b578181015183820152602001610b43565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610bad57505015159291505056fe47534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875625361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212209ef828d342b281c37e84305a1cd65601999dcf55035c7b17082dfa9a4525f28664736f6c634300060c003360806040523480156200001157600080fd5b50604051620011ea380380620011ea833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001b89060039060208501906200024c565b508051620001ce9060049060208401906200024c565b50506005805460ff19166012179055506000620001ea62000248565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505050620002e8565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028f57805160ff1916838001178555620002bf565b82800160010185558215620002bf579182015b82811115620002bf578251825591602001919060010190620002a2565b50620002cd929150620002d1565b5090565b5b80821115620002cd5760008155600101620002d2565b610ef280620002f86000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d7146102d9578063a9059cbb14610305578063dd62ed3e14610331578063f2fde38b1461035f576100f5565b806370a082311461027f578063715018a6146102a55780638da5cb5b146102ad57806395d89b41146102d1576100f5565b806323b872dd116100d357806323b872dd146101d1578063313ce56714610207578063395093511461022557806340c10f1914610251576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b610102610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b03813516906020013561041b565b604080519115158252519081900360200190f35b6101bf610439565b60408051918252519081900360200190f35b6101a3600480360360608110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040013561043f565b61020f61048a565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561023b57600080fd5b506001600160a01b038135169060200135610493565b61027d6004803603604081101561026757600080fd5b506001600160a01b0381351690602001356104e6565b005b6101bf6004803603602081101561029557600080fd5b50356001600160a01b0316610563565b61027d61057e565b6102b561063d565b604080516001600160a01b039092168252519081900360200190f35b610102610651565b6101a3600480360360408110156102ef57600080fd5b506001600160a01b0381351690602001356106b2565b6101a36004803603604081101561031b57600080fd5b506001600160a01b03813516906020013561071a565b6101bf6004803603604081101561034757600080fd5b506001600160a01b038135811691602001351661072e565b61027d6004803603602081101561037557600080fd5b50356001600160a01b031661076b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b820191906000526020600020905b8154815290600101906020018083116103f457829003601f168201915b5050505050905090565b600061042f610428610886565b848461088a565b5060015b92915050565b60025490565b600061044961063d565b6001600160a01b0316836001600160a01b031614156104755761046d8484846108c0565b506001610483565b610480848484610a1b565b90505b9392505050565b60055460ff1690565b600061042f6104a0610886565b846104e185600160006104b1610886565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610a9d565b61088a565b6104ee610886565b60055461010090046001600160a01b03908116911614610555576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61055f8282610af7565b5050565b6001600160a01b031660009081526020819052604090205490565b610586610886565b60055461010090046001600160a01b039081169116146105ed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b600061042f6106bf610886565b846104e185604051806060016040528060258152602001610e9860259139600160006106e9610886565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610be7565b600061042f610727610886565b84846108c0565b600061073861063d565b6001600160a01b0316826001600160a01b0316141561075a5750600019610433565b6107648383610c7e565b9050610433565b610773610886565b60055461010090046001600160a01b039081169116146107da576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661081f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610db96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b61089261063d565b6001600160a01b0316826001600160a01b031614156108b0576108bb565b6108bb838383610ca9565b505050565b6001600160a01b0383166109055760405162461bcd60e51b8152600401808060200182810382526025815260200180610e4f6025913960400191505060405180910390fd5b6001600160a01b03821661094a5760405162461bcd60e51b8152600401808060200182810382526023815260200180610d966023913960400191505060405180910390fd5b6109558383836108bb565b61099281604051806060016040528060268152602001610e01602691396001600160a01b0386166000908152602081905260409020549190610be7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546109c19082610a9d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000610a288484846108c0565b610a9384610a34610886565b6104e185604051806060016040528060288152602001610e27602891396001600160a01b038a16600090815260016020526040812090610a72610886565b6001600160a01b031681526020810191909152604001600020549190610be7565b5060019392505050565b600082820183811015610483576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610b52576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610b5e600083836108bb565b600254610b6b9082610a9d565b6002556001600160a01b038216600090815260208190526040902054610b919082610a9d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115610c765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c3b578181015183820152602001610c23565b50505050905090810190601f168015610c685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610cee5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e746024913960400191505060405180910390fd5b6001600160a01b038216610d335760405162461bcd60e51b8152600401808060200182810382526022815260200180610ddf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209f7e4d528c2f5e0178238b471a63b49a19c70b02b5d8e226290a430d9cae242164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Ensures that only users with enough gas payment token balance can have transactions relayed through the GSN."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."},"token()":{"details":"Returns the gas payment token."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","mint(address,uint256)":"0x40c10f19","mockFunction()":"0x3e6fec04","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5","token()":"0xfc0c546a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100885760003560e01c806383947ea01161005b57806383947ea01461019d578063ad61ccd514610379578063e06e0e22146103f6578063fc0c546a146104a757610088565b80633e6fec041461008d57806340c10f191461009757806374e861d6146100c357806380274db7146100e7575b600080fd5b6100956104af565b005b610095600480360360408110156100ad57600080fd5b506001600160a01b03813516906020013561056a565b6100cb610578565b604080516001600160a01b039092168252519081900360200190f35b61018b600480360360208110156100fd57600080fd5b810190602081018135600160201b81111561011757600080fd5b82018360208201111561012957600080fd5b803590602001918460018302840111600160201b8311171561014a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610588945050505050565b60408051918252519081900360200190f35b6102fa60048036036101208110156101b457600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156101e757600080fd5b8201836020820111156101f957600080fd5b803590602001918460018302840111600160201b8311171561021a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561028457600080fd5b82018360208201111561029657600080fd5b803590602001918460018302840111600160201b831117156102b757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506105f0915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561033d578181015183820152602001610325565b50505050905090810190601f16801561036a5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103816106df565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103bb5781810151838201526020016103a3565b50505050905090810190601f1680156103e85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100956004803603608081101561040c57600080fd5b810190602081018135600160201b81111561042657600080fd5b82018360208201111561043857600080fd5b803590602001918460018302840111600160201b8311171561045957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050803515159150602081013590604001356106fe565b6100cb610767565b7fde4813f7525e49908b98ef6c9c80c5bc8c7d0842981a49420eb45ef36a60e0c06104d8610767565b6001600160a01b03166370a082316104ee610776565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561052b57600080fd5b505afa15801561053f573d6000803e3d6000fd5b505050506040513d602081101561055557600080fd5b505160408051918252519081900360200190a1565b610574828261079f565b5050565b6000546001600160a01b03165b90565b6000610592610578565b6001600160a01b0316336001600160a01b0316146105e15760405162461bcd60e51b8152600401808060200182810382526024815260200180610d5c6024913960400191505060405180910390fd5b6105ea82610810565b92915050565b600154604080516370a0823160e01b81526001600160a01b038b81166004830152915160009360609386939116916370a0823191602480820192602092909190829003018186803b15801561064457600080fd5b505afa158015610658573d6000803e3d6000fd5b505050506040513d602081101561066e57600080fd5b50511015610689576106806000610857565b915091506106d1565b604080516001600160a01b038c166020820152808201859052606081018a905260808082018a90528251808303909101815260a09091019091526106cc9061086f565b915091505b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610706610578565b6001600160a01b0316336001600160a01b0316146107555760405162461bcd60e51b8152600401808060200182810382526024815260200180610d5c6024913960400191505060405180910390fd5b61076184848484610874565b50505050565b6001546001600160a01b031690565b600080546001600160a01b03163314610790575033610585565b610798610901565b9050610585565b600154604080516340c10f1960e01b81526001600160a01b03858116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b1580156107f457600080fd5b505af1158015610808573d6000803e3d6000fd5b505050505050565b600080600083806020019051604081101561082a57600080fd5b5080516020909101516001549193509150610850906001600160a01b031683308461094e565b5050919050565b604080516020810190915260008152600b9190910191565b600091565b60008060008087806020019051608081101561088f57600080fd5b508051602082015160408301516060909301519196509450909250905060006108c76108c0620186a06127106109a8565b83856109f1565b90506108d387826109a8565b96506108f6856108e3868a6109a8565b6001546001600160a01b031691906109ff565b505050505050505050565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610761908590610a56565b60006109ea83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b07565b9392505050565b606490810191909202020490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a51908490610a56565b505050565b6060610aab826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b9e9092919063ffffffff16565b805190915015610a5157808060200190516020811015610aca57600080fd5b5051610a515760405162461bcd60e51b815260040180806020018281038252602a815260200180610d80602a913960400191505060405180910390fd5b60008184841115610b965760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b5b578181015183820152602001610b43565b50505050905090810190601f168015610b885780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060610bad8484600085610bb5565b949350505050565b6060610bc085610d22565b610c11576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610c505780518252601f199092019160209182019101610c31565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610cb2576040519150601f19603f3d011682016040523d82523d6000602084013e610cb7565b606091505b50915091508115610ccb579150610bad9050565b805115610cdb5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315610b5b578181015183820152602001610b43565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610bad57505015159291505056fe47534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875625361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212209ef828d342b281c37e84305a1cd65601999dcf55035c7b17082dfa9a4525f28664736f6c634300060c0033"},"sourceId":"contracts/mocks/GSNRecipientERC20FeeMock.sol","sourcemap":"135:442:53:-:0;;;857:70:1;;;-1:-1:-1;;;;;;857:70:1;885:42;857:70;;;213:99:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;213:99:53;;;;;;;;;;-1:-1:-1;213:99:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;213:99:53;;;;;;;;;;-1:-1:-1;213:99:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;295:4;301:6;1360:4:2;1366:6;1333:40;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1333:40:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1324:6:2;:49;;-1:-1:-1;;;;;;1324:49:2;-1:-1:-1;;;;;1324:49:2;;;;;;;;;;-1:-1:-1;135:442:53;;-1:-1:-1;;;135:442:53;;;;;;;;;:::o;:::-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"GSNRecipientMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"integerValue","type":"uint256"},{"indexed":false,"internalType":"string","name":"stringValue","type":"string"}],"name":"Data","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"Sender","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"integerValue","type":"uint256"},{"internalType":"string","name":"stringValue","type":"string"}],"name":"msgData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"msgSender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newRelayHub","type":"address"}],"name":"upgradeRelayHub","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"GSNRecipientMock","deploymentBytecode":{"bytecode":"0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f49417905534801561003657600080fd5b50610b58806100466000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80639e30a590116100665780639e30a5901461038c578063ad61ccd5146103b2578063c2db1abe1461042f578063d737d0c71461045b578063e06e0e221461046357610093565b8063376bf2621461009857806374e861d61461014557806380274db71461016957806383947ea01461021f575b600080fd5b610143600480360360408110156100ae57600080fd5b81359190810190604081016020820135600160201b8111156100cf57600080fd5b8201836020820111156100e157600080fd5b803590602001918460018302840111600160201b8311171561010257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610514945050505050565b005b61014d610627565b604080516001600160a01b039092168252519081900360200190f35b61020d6004803603602081101561017f57600080fd5b810190602081018135600160201b81111561019957600080fd5b8201836020820111156101ab57600080fd5b803590602001918460018302840111600160201b831117156101cc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610637945050505050565b60408051918252519081900360200190f35b61030d600480360361012081101561023657600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561026957600080fd5b82018360208201111561027b57600080fd5b803590602001918460018302840111600160201b8311171561029c57600080fd5b9193909282359260208101359260408201359260608301359260a081019060800135600160201b8111156102cf57600080fd5b8201836020820111156102e157600080fd5b803590602001918460018302840111600160201b8311171561030257600080fd5b91935091503561069f565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610350578181015183820152602001610338565b50505050905090810190601f16801561037d5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610143600480360360208110156103a257600080fd5b50356001600160a01b03166106c0565b6103ba6106cc565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103f45781810151838201526020016103dc565b50505050905090810190601f1680156104215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101436004803603604081101561044557600080fd5b50803590602001356001600160a01b03166106eb565b6101436106f9565b6101436004803603608081101561047957600080fd5b810190602081018135600160201b81111561049357600080fd5b8201836020820111156104a557600080fd5b803590602001918460018302840111600160201b831117156104c657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050508035151591506020810135906040013561073f565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea061053d6107a4565b8383604051808060200184815260200180602001838103835286818151815260200191508051906020019080838360005b8381101561058657818101518382015260200161056e565b50505050905090810190601f1680156105b35780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156105e65781810151838201526020016105ce565b50505050905090810190601f1680156106135780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15050565b6000546001600160a01b03165b90565b6000610641610627565b6001600160a01b0316336001600160a01b0316146106905760405162461bcd60e51b8152600401808060200182810382526024815260200180610aff6024913960400191505060405180910390fd5b610699826107b3565b92915050565b60408051602081019091526000808252909b509b9950505050505050505050565b6106c9816107b9565b50565b6040805180820190915260058152640312e302e360dc1b602082015290565b6106f582826108b9565b5050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc610722610925565b604080516001600160a01b039092168252519081900360200190a1565b610747610627565b6001600160a01b0316336001600160a01b0316146107965760405162461bcd60e51b8152600401808060200182810382526024815260200180610aff6024913960400191505060405180910390fd5b61079e848484845b50505050565b60606107ae61092f565b905090565b50600090565b6000546001600160a01b039081169082166108055760405162461bcd60e51b815260040180806020018281038252602e815260200180610aa4602e913960400191505060405180910390fd5b806001600160a01b0316826001600160a01b031614156108565760405162461bcd60e51b815260040180806020018281038252602d815260200180610ad2602d913960400191505060405180910390fd5b816001600160a01b0316816001600160a01b03167fb9f84b8e65164b14439ae3620df0a4d8786d896996c0282b683f9d8c08f046e860405160405180910390a350600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000805460408051627b8a6760e11b8152600481018690526001600160a01b0385811660248301529151919092169262f714ce926044808201939182900301818387803b15801561090957600080fd5b505af115801561091d573d6000803e3d6000fd5b505050505050565b60006107ae610993565b6000546060906001600160a01b03163314610984576000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935061063492505050565b61098c6109b5565b9050610634565b600080546001600160a01b031633146109ad575033610634565b61098c610a56565b60606013193601818167ffffffffffffffff811180156109d457600080fd5b506040519080825280601f01601f1916602001820160405280156109ff576020820181803683370190505b50905060005b82811015610a4f5760003682818110610a1a57fe5b9050013560f81c60f81b828281518110610a3057fe5b60200101906001600160f81b031916908160001a905350600101610a05565b5091505090565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169291505056fe47534e526563697069656e743a206e65772052656c617948756220697320746865207a65726f206164647265737347534e526563697069656e743a206e65772052656c6179487562206973207468652063757272656e74206f6e6547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220313ca331630388ad10834835a83c5e501f2659c409769bdf4f708f546bd0305064736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","msgData(uint256,string)":"0x376bf262","msgSender()":"0xd737d0c7","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5","upgradeRelayHub(address)":"0x9e30a590","withdrawDeposits(uint256,address)":"0xc2db1abe"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100935760003560e01c80639e30a590116100665780639e30a5901461038c578063ad61ccd5146103b2578063c2db1abe1461042f578063d737d0c71461045b578063e06e0e221461046357610093565b8063376bf2621461009857806374e861d61461014557806380274db71461016957806383947ea01461021f575b600080fd5b610143600480360360408110156100ae57600080fd5b81359190810190604081016020820135600160201b8111156100cf57600080fd5b8201836020820111156100e157600080fd5b803590602001918460018302840111600160201b8311171561010257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610514945050505050565b005b61014d610627565b604080516001600160a01b039092168252519081900360200190f35b61020d6004803603602081101561017f57600080fd5b810190602081018135600160201b81111561019957600080fd5b8201836020820111156101ab57600080fd5b803590602001918460018302840111600160201b831117156101cc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610637945050505050565b60408051918252519081900360200190f35b61030d600480360361012081101561023657600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561026957600080fd5b82018360208201111561027b57600080fd5b803590602001918460018302840111600160201b8311171561029c57600080fd5b9193909282359260208101359260408201359260608301359260a081019060800135600160201b8111156102cf57600080fd5b8201836020820111156102e157600080fd5b803590602001918460018302840111600160201b8311171561030257600080fd5b91935091503561069f565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610350578181015183820152602001610338565b50505050905090810190601f16801561037d5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610143600480360360208110156103a257600080fd5b50356001600160a01b03166106c0565b6103ba6106cc565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103f45781810151838201526020016103dc565b50505050905090810190601f1680156104215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101436004803603604081101561044557600080fd5b50803590602001356001600160a01b03166106eb565b6101436106f9565b6101436004803603608081101561047957600080fd5b810190602081018135600160201b81111561049357600080fd5b8201836020820111156104a557600080fd5b803590602001918460018302840111600160201b831117156104c657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050508035151591506020810135906040013561073f565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea061053d6107a4565b8383604051808060200184815260200180602001838103835286818151815260200191508051906020019080838360005b8381101561058657818101518382015260200161056e565b50505050905090810190601f1680156105b35780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156105e65781810151838201526020016105ce565b50505050905090810190601f1680156106135780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15050565b6000546001600160a01b03165b90565b6000610641610627565b6001600160a01b0316336001600160a01b0316146106905760405162461bcd60e51b8152600401808060200182810382526024815260200180610aff6024913960400191505060405180910390fd5b610699826107b3565b92915050565b60408051602081019091526000808252909b509b9950505050505050505050565b6106c9816107b9565b50565b6040805180820190915260058152640312e302e360dc1b602082015290565b6106f582826108b9565b5050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc610722610925565b604080516001600160a01b039092168252519081900360200190a1565b610747610627565b6001600160a01b0316336001600160a01b0316146107965760405162461bcd60e51b8152600401808060200182810382526024815260200180610aff6024913960400191505060405180910390fd5b61079e848484845b50505050565b60606107ae61092f565b905090565b50600090565b6000546001600160a01b039081169082166108055760405162461bcd60e51b815260040180806020018281038252602e815260200180610aa4602e913960400191505060405180910390fd5b806001600160a01b0316826001600160a01b031614156108565760405162461bcd60e51b815260040180806020018281038252602d815260200180610ad2602d913960400191505060405180910390fd5b816001600160a01b0316816001600160a01b03167fb9f84b8e65164b14439ae3620df0a4d8786d896996c0282b683f9d8c08f046e860405160405180910390a350600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000805460408051627b8a6760e11b8152600481018690526001600160a01b0385811660248301529151919092169262f714ce926044808201939182900301818387803b15801561090957600080fd5b505af115801561091d573d6000803e3d6000fd5b505050505050565b60006107ae610993565b6000546060906001600160a01b03163314610984576000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935061063492505050565b61098c6109b5565b9050610634565b600080546001600160a01b031633146109ad575033610634565b61098c610a56565b60606013193601818167ffffffffffffffff811180156109d457600080fd5b506040519080825280601f01601f1916602001820160405280156109ff576020820181803683370190505b50905060005b82811015610a4f5760003682818110610a1a57fe5b9050013560f81c60f81b828281518110610a3057fe5b60200101906001600160f81b031916908160001a905350600101610a05565b5091505090565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169291505056fe47534e526563697069656e743a206e65772052656c617948756220697320746865207a65726f206164647265737347534e526563697069656e743a206e65772052656c6179487562206973207468652063757272656e74206f6e6547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220313ca331630388ad10834835a83c5e501f2659c409769bdf4f708f546bd0305064736f6c634300060c0033"},"sourceId":"contracts/mocks/GSNRecipientMock.sol","sourcemap":"215:1028:54:-:0;;;857:70:1;;;-1:-1:-1;;;;;;857:70:1;885:42;857:70;;;215:1028:54;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"GSNRecipientSignature":{"abi":[{"inputs":[{"internalType":"address","name":"trustedSigner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"inputs":[{"internalType":"address","name":"relay","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"approvalData","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"GSNRecipientSignature","deploymentBytecode":{"bytecode":"0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f49417905534801561003657600080fd5b50604051610aa7380380610aa78339818101604052602081101561005957600080fd5b50516001600160a01b0381166100a05760405162461bcd60e51b8152600401808060200182810382526039815260200180610a6e6039913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b039290921691909117905561099f806100cf6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806374e861d61461005c57806380274db71461008057806383947ea014610136578063ad61ccd514610312578063e06e0e221461038f575b600080fd5b610064610442565b604080516001600160a01b039092168252519081900360200190f35b6101246004803603602081101561009657600080fd5b810190602081018135600160201b8111156100b057600080fd5b8201836020820111156100c257600080fd5b803590602001918460018302840111600160201b831117156100e357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610451945050505050565b60408051918252519081900360200190f35b610293600480360361012081101561014d57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561018057600080fd5b82018360208201111561019257600080fd5b803590602001918460018302840111600160201b831117156101b357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561021d57600080fd5b82018360208201111561022f57600080fd5b803590602001918460018302840111600160201b8311171561025057600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104b9915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102d65781810151838201526020016102be565b50505050905090810190601f1680156103035780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b61031a6105fa565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035457818101518382015260200161033c565b50505050905090810190601f1680156103815780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610440600480360360808110156103a557600080fd5b810190602081018135600160201b8111156103bf57600080fd5b8201836020820111156103d157600080fd5b803590602001918460018302840111600160201b831117156103f257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505080351515915060208101359060400135610619565b005b6000546001600160a01b031690565b600061045b610442565b6001600160a01b0316336001600160a01b0316146104aa5760405162461bcd60e51b81526004018080602001828103825260248152602001806109466024913960400191505060405180910390fd5b6104b38261067e565b92915050565b60006060808b8b8b8b8b8b8b6104cd610442565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b602083106105245780518252601f199092019160209182019101610505565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a890930190526001548251918301919091209195506001600160a01b031693506105c192508891506105bb90610684565b906106d5565b6001600160a01b031614156105e2576105d86108c0565b92509250506105ec565b6105d860006108e4565b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610621610442565b6001600160a01b0316336001600160a01b0316146106705760405162461bcd60e51b81526004018080602001828103825260248152602001806109466024913960400191505060405180910390fd5b610678848484845b50505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461072d576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561079e5760405162461bcd60e51b81526004018080602001828103825260228152602001806109026022913960400191505060405180910390fd5b8060ff16601b141580156107b657508060ff16601c14155b156107f25760405162461bcd60e51b81526004018080602001828103825260228152602001806109246022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561084e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108b6576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600060606108dc604051806020016040528060008152506108fc565b915091509091565b604080516020810190915260008152600b9190910191565b60009156fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220abd4e09a626639362d3aab27376c3bc6e0b995aabe2e5576cad3d9533651d82264736f6c634300060c003347534e526563697069656e745369676e61747572653a2074727573746564207369676e657220697320746865207a65726f2061646472657373"},"devdoc":{"details":"A xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategy] that allows relayed transactions through when they are accompanied by the signature of a trusted signer. The intent is for this signature to be generated by a server that performs validations off-chain. Note that nothing is charged to the user in this scheme. Thus, the server should make sure to account for this in their economic and threat model.","kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Ensures that only transactions with a trusted signature can be relayed through the GSN."},"constructor":{"details":"Sets the trusted signer that is going to be producing signatures to approve relayed calls."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c806374e861d61461005c57806380274db71461008057806383947ea014610136578063ad61ccd514610312578063e06e0e221461038f575b600080fd5b610064610442565b604080516001600160a01b039092168252519081900360200190f35b6101246004803603602081101561009657600080fd5b810190602081018135600160201b8111156100b057600080fd5b8201836020820111156100c257600080fd5b803590602001918460018302840111600160201b831117156100e357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610451945050505050565b60408051918252519081900360200190f35b610293600480360361012081101561014d57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561018057600080fd5b82018360208201111561019257600080fd5b803590602001918460018302840111600160201b831117156101b357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561021d57600080fd5b82018360208201111561022f57600080fd5b803590602001918460018302840111600160201b8311171561025057600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104b9915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102d65781810151838201526020016102be565b50505050905090810190601f1680156103035780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b61031a6105fa565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035457818101518382015260200161033c565b50505050905090810190601f1680156103815780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610440600480360360808110156103a557600080fd5b810190602081018135600160201b8111156103bf57600080fd5b8201836020820111156103d157600080fd5b803590602001918460018302840111600160201b831117156103f257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505080351515915060208101359060400135610619565b005b6000546001600160a01b031690565b600061045b610442565b6001600160a01b0316336001600160a01b0316146104aa5760405162461bcd60e51b81526004018080602001828103825260248152602001806109466024913960400191505060405180910390fd5b6104b38261067e565b92915050565b60006060808b8b8b8b8b8b8b6104cd610442565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b602083106105245780518252601f199092019160209182019101610505565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a890930190526001548251918301919091209195506001600160a01b031693506105c192508891506105bb90610684565b906106d5565b6001600160a01b031614156105e2576105d86108c0565b92509250506105ec565b6105d860006108e4565b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610621610442565b6001600160a01b0316336001600160a01b0316146106705760405162461bcd60e51b81526004018080602001828103825260248152602001806109466024913960400191505060405180910390fd5b610678848484845b50505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461072d576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561079e5760405162461bcd60e51b81526004018080602001828103825260228152602001806109026022913960400191505060405180910390fd5b8060ff16601b141580156107b657508060ff16601c14155b156107f25760405162461bcd60e51b81526004018080602001828103825260228152602001806109246022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561084e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108b6576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600060606108dc604051806020016040528060008152506108fc565b915091509091565b604080516020810190915260008152600b9190910191565b60009156fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220abd4e09a626639362d3aab27376c3bc6e0b995aabe2e5576cad3d9533651d82264736f6c634300060c0033"},"sourceId":"contracts/GSN/GSNRecipientSignature.sol","sourcemap":"560:1854:3:-:0;;;857:70:1;;;-1:-1:-1;;;;;;857:70:1;885:42;857:70;;;872:196:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;872:196:3;-1:-1:-1;;;;;932:27:3;;924:97;;;;-1:-1:-1;;;924:97:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1031:14;:30;;-1:-1:-1;;;;;;1031:30:3;-1:-1:-1;;;;;1031:30:3;;;;;;;;;;560:1854;;;-1:-1:-1;560:1854:3;;","userdoc":{"kind":"user","methods":{},"version":1}},"GSNRecipientSignatureMock":{"abi":[{"inputs":[{"internalType":"address","name":"trustedSigner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"MockFunctionCalled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"inputs":[{"internalType":"address","name":"relay","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"approvalData","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mockFunction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"GSNRecipientSignatureMock","deploymentBytecode":{"bytecode":"0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f49417905534801561003657600080fd5b50604051610ae7380380610ae78339818101604052602081101561005957600080fd5b5051806001600160a01b0381166100a15760405162461bcd60e51b8152600401808060200182810382526039815260200180610aae6039913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055506109dd806100d16000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80633e6fec041461006757806374e861d61461007157806380274db71461009557806383947ea01461014b578063ad61ccd514610327578063e06e0e22146103a4575b600080fd5b61006f610455565b005b610079610480565b604080516001600160a01b039092168252519081900360200190f35b610139600480360360208110156100ab57600080fd5b810190602081018135600160201b8111156100c557600080fd5b8201836020820111156100d757600080fd5b803590602001918460018302840111600160201b831117156100f857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061048f945050505050565b60408051918252519081900360200190f35b6102a8600480360361012081101561016257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561019557600080fd5b8201836020820111156101a757600080fd5b803590602001918460018302840111600160201b831117156101c857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561023257600080fd5b82018360208201111561024457600080fd5b803590602001918460018302840111600160201b8311171561026557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104f7915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102eb5781810151838201526020016102d3565b50505050905090810190601f1680156103185780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b61032f610638565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610369578181015183820152602001610351565b50505050905090810190601f1680156103965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006f600480360360808110156103ba57600080fd5b810190602081018135600160201b8111156103d457600080fd5b8201836020820111156103e657600080fd5b803590602001918460018302840111600160201b8311171561040757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505080351515915060208101359060400135610657565b6040517f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1565b6000546001600160a01b031690565b6000610499610480565b6001600160a01b0316336001600160a01b0316146104e85760405162461bcd60e51b81526004018080602001828103825260248152602001806109846024913960400191505060405180910390fd5b6104f1826106bc565b92915050565b60006060808b8b8b8b8b8b8b61050b610480565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b602083106105625780518252601f199092019160209182019101610543565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a890930190526001548251918301919091209195506001600160a01b031693506105ff92508891506105f9906106c2565b90610713565b6001600160a01b03161415610620576106166108fe565b925092505061062a565b6106166000610922565b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b61065f610480565b6001600160a01b0316336001600160a01b0316146106ae5760405162461bcd60e51b81526004018080602001828103825260248152602001806109846024913960400191505060405180910390fd5b6106b6848484845b50505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461076b576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156107dc5760405162461bcd60e51b81526004018080602001828103825260228152602001806109406022913960400191505060405180910390fd5b8060ff16601b141580156107f457508060ff16601c14155b156108305760405162461bcd60e51b81526004018080602001828103825260228152602001806109626022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561088c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108f4576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b6000606061091a6040518060200160405280600081525061093a565b915091509091565b604080516020810190915260008152600b9190910191565b60009156fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220708429f0e21ae65d764e412fa5892f60478a6f3c69bcd6dd56284a0f1956fd1364736f6c634300060c003347534e526563697069656e745369676e61747572653a2074727573746564207369676e657220697320746865207a65726f2061646472657373"},"devdoc":{"kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Ensures that only transactions with a trusted signature can be relayed through the GSN."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","mockFunction()":"0x3e6fec04","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100625760003560e01c80633e6fec041461006757806374e861d61461007157806380274db71461009557806383947ea01461014b578063ad61ccd514610327578063e06e0e22146103a4575b600080fd5b61006f610455565b005b610079610480565b604080516001600160a01b039092168252519081900360200190f35b610139600480360360208110156100ab57600080fd5b810190602081018135600160201b8111156100c557600080fd5b8201836020820111156100d757600080fd5b803590602001918460018302840111600160201b831117156100f857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061048f945050505050565b60408051918252519081900360200190f35b6102a8600480360361012081101561016257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561019557600080fd5b8201836020820111156101a757600080fd5b803590602001918460018302840111600160201b831117156101c857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561023257600080fd5b82018360208201111561024457600080fd5b803590602001918460018302840111600160201b8311171561026557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104f7915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102eb5781810151838201526020016102d3565b50505050905090810190601f1680156103185780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b61032f610638565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610369578181015183820152602001610351565b50505050905090810190601f1680156103965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006f600480360360808110156103ba57600080fd5b810190602081018135600160201b8111156103d457600080fd5b8201836020820111156103e657600080fd5b803590602001918460018302840111600160201b8311171561040757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505080351515915060208101359060400135610657565b6040517f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1565b6000546001600160a01b031690565b6000610499610480565b6001600160a01b0316336001600160a01b0316146104e85760405162461bcd60e51b81526004018080602001828103825260248152602001806109846024913960400191505060405180910390fd5b6104f1826106bc565b92915050565b60006060808b8b8b8b8b8b8b61050b610480565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b602083106105625780518252601f199092019160209182019101610543565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a890930190526001548251918301919091209195506001600160a01b031693506105ff92508891506105f9906106c2565b90610713565b6001600160a01b03161415610620576106166108fe565b925092505061062a565b6106166000610922565b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b61065f610480565b6001600160a01b0316336001600160a01b0316146106ae5760405162461bcd60e51b81526004018080602001828103825260248152602001806109846024913960400191505060405180910390fd5b6106b6848484845b50505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461076b576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156107dc5760405162461bcd60e51b81526004018080602001828103825260228152602001806109406022913960400191505060405180910390fd5b8060ff16601b141580156107f457508060ff16601c14155b156108305760405162461bcd60e51b81526004018080602001828103825260228152602001806109626022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561088c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108f4576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b6000606061091a6040518060200160405280600081525061093a565b915091509091565b604080516020810190915260008152600b9190910191565b60009156fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220708429f0e21ae65d764e412fa5892f60478a6f3c69bcd6dd56284a0f1956fd1364736f6c634300060c0033"},"sourceId":"contracts/mocks/GSNRecipientSignatureMock.sol","sourcemap":"136:276:55:-:0;;;857:70:1;;;-1:-1:-1;;;;;;857:70:1;885:42;857:70;;;216:82:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;216:82:55;;-1:-1:-1;;;;;932:27:3;;924:97;;;;-1:-1:-1;;;924:97:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1031:14;:30;;-1:-1:-1;;;;;;1031:30:3;-1:-1:-1;;;;;1031:30:3;;;;;;;;;;-1:-1:-1;136:276:55;;;-1:-1:-1;136:276:55;;","userdoc":{"kind":"user","methods":{},"version":1}},"IERC1155":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"IERC1155","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Required interface of an ERC1155 compliant contract, as defined in the https://eips.ethereum.org/EIPS/eip-1155[EIP]. _Available since v3.1._","events":{"ApprovalForAll(address,address,bool)":{"details":"Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to `approved`."},"TransferBatch(address,address,address,uint256[],uint256[])":{"details":"Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all transfers."},"TransferSingle(address,address,address,uint256,uint256)":{"details":"Emitted when `value` tokens of token type `id` are transfered from `from` to `to` by `operator`."},"URI(string,uint256)":{"details":"Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. If an {URI} event was emitted for `id`, the standard https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value returned by {IERC1155MetadataURI-uri}."}},"kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. Emits a {TransferBatch} event. Requirements: - `ids` and `amounts` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"Transfers `amount` tokens of token type `id` from `from` to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `amount`. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value."},"setApprovalForAll(address,bool)":{"details":"Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller."},"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","isApprovedForAll(address,address)":"0xe985e9c5","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC1155/IERC1155.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC1155MetadataURI":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"IERC1155MetadataURI","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the optional ERC1155MetadataExtension interface, as defined in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. _Available since v3.1._","kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. Emits a {TransferBatch} event. Requirements: - `ids` and `amounts` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"Transfers `amount` tokens of token type `id` from `from` to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `amount`. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value."},"setApprovalForAll(address,bool)":{"details":"Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller."},"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."},"uri(uint256)":{"details":"Returns the URI for token type `id`. If the `\\{id\\}` substring is present in the URI, it must be replaced by clients with the actual token type ID."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","isApprovedForAll(address,address)":"0xe985e9c5","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC1155/IERC1155MetadataURI.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC1155Receiver":{"abi":[{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"IERC1155Receiver","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"kind":"dev","methods":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":{"details":"Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` (i.e. 0xbc197c81, or its own function selector).","params":{"data":"Additional data with no specified format","from":"The address which previously owned the token","ids":"An array containing ids of each token being transferred (order and length must match values array)","operator":"The address which initiated the batch transfer (i.e. msg.sender)","values":"An array containing amounts of each token being transferred (order and length must match ids array)"},"returns":{"_0":"`bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed"}},"onERC1155Received(address,address,uint256,uint256,bytes)":{"details":"Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` (i.e. 0xf23a6e61, or its own function selector).","params":{"data":"Additional data with no specified format","from":"The address which previously owned the token","id":"The ID of the token being transferred","operator":"The address which initiated the transfer (i.e. msg.sender)","value":"The amount of tokens being transferred"},"returns":{"_0":"`bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed"}},"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":"0xbc197c81","onERC1155Received(address,address,uint256,uint256,bytes)":"0xf23a6e61","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC1155/IERC1155Receiver.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"notice":"_Available since v3.1._","version":1}},"IERC165":{"abi":[{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"IERC165","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the ERC165 standard, as defined in the https://eips.ethereum.org/EIPS/eip-165[EIP]. Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}.","kind":"dev","methods":{"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/introspection/IERC165.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC1820Implementer":{"abi":[{"inputs":[{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"canImplementInterfaceForAddress","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}],"contractName":"IERC1820Implementer","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface for an ERC1820 implementer, as defined in the https://eips.ethereum.org/EIPS/eip-1820#interface-implementation-erc1820implementerinterface[EIP]. Used by contracts that will be registered as implementers in the {IERC1820Registry}.","kind":"dev","methods":{"canImplementInterfaceForAddress(bytes32,address)":{"details":"Returns a special value (`ERC1820_ACCEPT_MAGIC`) if this contract implements `interfaceHash` for `account`. See {IERC1820Registry-setInterfaceImplementer}."}},"version":1},"methodIdentifiers":{"canImplementInterfaceForAddress(bytes32,address)":"0x249cb3fa"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/introspection/IERC1820Implementer.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC1820Registry":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"implementer","type":"address"}],"name":"InterfaceImplementerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"newManager","type":"address"}],"name":"ManagerChanged","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"}],"name":"getInterfaceImplementer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"implementsERC165Interface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"implementsERC165InterfaceNoCache","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"interfaceName","type":"string"}],"name":"interfaceHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"internalType":"address","name":"implementer","type":"address"}],"name":"setInterfaceImplementer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"newManager","type":"address"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"updateERC165Cache","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC1820Registry","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the global ERC1820 Registry, as defined in the https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register implementers for interfaces in this registry, as well as query support. Implementers may be shared by multiple accounts, and can also implement more than a single interface for each account. Contracts can implement interfaces for themselves, but externally-owned accounts (EOA) must delegate this to a contract. {IERC165} interfaces can also be queried via the registry. For an in-depth explanation and source code analysis, see the EIP text.","kind":"dev","methods":{"getInterfaceImplementer(address,bytes32)":{"details":"Returns the implementer of `interfaceHash` for `account`. If no such implementer is registered, returns the zero address. If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28 zeroes), `account` will be queried for support of it. `account` being the zero address is an alias for the caller's address."},"getManager(address)":{"details":"Returns the manager for `account`. See {setManager}."},"implementsERC165Interface(address,bytes4)":{"params":{"account":"Address of the contract to check.","interfaceId":"ERC165 interface to check."},"returns":{"_0":"True if `account` implements `interfaceId`, false otherwise."}},"implementsERC165InterfaceNoCache(address,bytes4)":{"params":{"account":"Address of the contract to check.","interfaceId":"ERC165 interface to check."},"returns":{"_0":"True if `account` implements `interfaceId`, false otherwise."}},"interfaceHash(string)":{"details":"Returns the interface hash for an `interfaceName`, as defined in the corresponding https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP]."},"setInterfaceImplementer(address,bytes32,address)":{"details":"Sets the `implementer` contract as ``account``'s implementer for `interfaceHash`. `account` being the zero address is an alias for the caller's address. The zero address can also be used in `implementer` to remove an old one. See {interfaceHash} to learn how these are created. Emits an {InterfaceImplementerSet} event. Requirements: - the caller must be the current manager for `account`. - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not end in 28 zeroes). - `implementer` must implement {IERC1820Implementer} and return true when queried for support, unless `implementer` is the caller. See {IERC1820Implementer-canImplementInterfaceForAddress}."},"setManager(address,address)":{"details":"Sets `newManager` as the manager for `account`. A manager of an account is able to set interface implementers for it. By default, each account is its own manager. Passing a value of `0x0` in `newManager` will reset the manager to this initial state. Emits a {ManagerChanged} event. Requirements: - the caller must be the current manager for `account`."},"updateERC165Cache(address,bytes4)":{"params":{"account":"Address of the contract for which to update the cache.","interfaceId":"ERC165 interface for which to update the cache."}}},"version":1},"methodIdentifiers":{"getInterfaceImplementer(address,bytes32)":"0xaabbb8ca","getManager(address)":"0x3d584063","implementsERC165Interface(address,bytes4)":"0xf712f3e8","implementsERC165InterfaceNoCache(address,bytes4)":"0xb7056765","interfaceHash(string)":"0x65ba36c1","setInterfaceImplementer(address,bytes32,address)":"0x29965a1d","setManager(address,address)":"0x5df8122f","updateERC165Cache(address,bytes4)":"0xa41e7d51"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/introspection/IERC1820Registry.sol","sourcemap":"","userdoc":{"kind":"user","methods":{"implementsERC165Interface(address,bytes4)":{"notice":"Checks whether a contract implements an ERC165 interface or not. If the result is not cached a direct lookup on the contract address is performed. If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling {updateERC165Cache} with the contract address."},"implementsERC165InterfaceNoCache(address,bytes4)":{"notice":"Checks whether a contract implements an ERC165 interface or not without using nor updating the cache."},"updateERC165Cache(address,bytes4)":{"notice":"Updates the cache with whether the contract implements an ERC165 interface or not."}},"version":1}},"IERC20":{"abi":[{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","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"}],"contractName":"IERC20","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the ERC20 standard as defined in the EIP.","events":{"Approval(address,address,uint256)":{"details":"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."},"Transfer(address,address,uint256)":{"details":"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."}},"kind":"dev","methods":{"allowance(address,address)":{"details":"Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called."},"approve(address,uint256)":{"details":"Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event."},"balanceOf(address)":{"details":"Returns the amount of tokens owned by `account`."},"totalSupply()":{"details":"Returns the amount of tokens in existence."},"transfer(address,uint256)":{"details":"Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."},"transferFrom(address,address,uint256)":{"details":"Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC20/IERC20.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC721":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC721","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Required interface of an ERC721 compliant contract.","events":{"Approval(address,address,uint256)":{"details":"Emitted when `owner` enables `approved` to manage the `tokenId` token."},"ApprovalForAll(address,address,bool)":{"details":"Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets."},"Transfer(address,address,uint256)":{"details":"Emitted when `tokenId` token is transfered from `from` to `to`."}},"kind":"dev","methods":{"approve(address,uint256)":{"details":"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."},"balanceOf(address)":{"details":"Returns the number of tokens in ``owner``'s account."},"getApproved(uint256)":{"details":"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."},"isApprovedForAll(address,address)":{"details":"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"},"ownerOf(uint256)":{"details":"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."},"safeTransferFrom(address,address,uint256)":{"details":"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."},"setApprovalForAll(address,bool)":{"details":"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event."},"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."},"transferFrom(address,address,uint256)":{"details":"Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."}},"version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","ownerOf(uint256)":"0x6352211e","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC721/IERC721.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC721Enumerable":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC721Enumerable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"See https://eips.ethereum.org/EIPS/eip-721","kind":"dev","methods":{"approve(address,uint256)":{"details":"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."},"balanceOf(address)":{"details":"Returns the number of tokens in ``owner``'s account."},"getApproved(uint256)":{"details":"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."},"isApprovedForAll(address,address)":{"details":"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"},"ownerOf(uint256)":{"details":"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."},"safeTransferFrom(address,address,uint256)":{"details":"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."},"setApprovalForAll(address,bool)":{"details":"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event."},"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."},"tokenByIndex(uint256)":{"details":"Returns a token ID at a given `index` of all the tokens stored by the contract. Use along with {totalSupply} to enumerate all tokens."},"tokenOfOwnerByIndex(address,uint256)":{"details":"Returns a token ID owned by `owner` at a given `index` of its token list. Use along with {balanceOf} to enumerate all of ``owner``'s tokens."},"totalSupply()":{"details":"Returns the total amount of tokens stored by the contract."},"transferFrom(address,address,uint256)":{"details":"Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."}},"title":"ERC-721 Non-Fungible Token Standard, optional enumeration extension","version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","ownerOf(uint256)":"0x6352211e","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC721/IERC721Enumerable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC721Metadata":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC721Metadata","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"See https://eips.ethereum.org/EIPS/eip-721","kind":"dev","methods":{"approve(address,uint256)":{"details":"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."},"balanceOf(address)":{"details":"Returns the number of tokens in ``owner``'s account."},"getApproved(uint256)":{"details":"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."},"isApprovedForAll(address,address)":{"details":"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"},"name()":{"details":"Returns the token collection name."},"ownerOf(uint256)":{"details":"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."},"safeTransferFrom(address,address,uint256)":{"details":"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."},"setApprovalForAll(address,bool)":{"details":"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event."},"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."},"symbol()":{"details":"Returns the token collection symbol."},"tokenURI(uint256)":{"details":"Returns the Uniform Resource Identifier (URI) for `tokenId` token."},"transferFrom(address,address,uint256)":{"details":"Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."}},"title":"ERC-721 Non-Fungible Token Standard, optional metadata extension","version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenURI(uint256)":"0xc87b56dd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC721/IERC721Metadata.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC721Receiver":{"abi":[{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC721Receiver","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface for any contract that wants to support safeTransfers from ERC721 asset contracts.","kind":"dev","methods":{"onERC721Received(address,address,uint256,bytes)":{"details":"Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} by `operator` from `from`, this function is called. It must return its Solidity selector to confirm the token transfer. If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`."}},"title":"ERC721 token receiver interface","version":1},"methodIdentifiers":{"onERC721Received(address,address,uint256,bytes)":"0x150b7a02"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC721/IERC721Receiver.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC777":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"AuthorizedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"RevokedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Sent","type":"event"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"authorizeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"granularity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"isOperatorFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"revokeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"contractName":"IERC777","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the ERC777Token standard as defined in the EIP. This contract uses the https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let token holders and recipients react to token movements by using setting implementers for the associated interfaces in said registry. See {IERC1820Registry} and {ERC1820Implementer}.","kind":"dev","methods":{"authorizeOperator(address)":{"details":"Make an account an operator of the caller. See {isOperatorFor}. Emits an {AuthorizedOperator} event. Requirements - `operator` cannot be calling address."},"balanceOf(address)":{"details":"Returns the amount of tokens owned by an account (`owner`)."},"burn(uint256,bytes)":{"details":"Destroys `amount` tokens from the caller's account, reducing the total supply. If a send hook is registered for the caller, the corresponding function will be called with `data` and empty `operatorData`. See {IERC777Sender}. Emits a {Burned} event. Requirements - the caller must have at least `amount` tokens."},"defaultOperators()":{"details":"Returns the list of default operators. These accounts are operators for all token holders, even if {authorizeOperator} was never called on them. This list is immutable, but individual holders may revoke these via {revokeOperator}, in which case {isOperatorFor} will return false."},"granularity()":{"details":"Returns the smallest part of the token that is not divisible. This means all token operations (creation, movement and destruction) must have amounts that are a multiple of this number. For most token contracts, this value will equal 1."},"isOperatorFor(address,address)":{"details":"Returns true if an account is an operator of `tokenHolder`. Operators can send and burn tokens on behalf of their owners. All accounts are their own operator. See {operatorSend} and {operatorBurn}."},"name()":{"details":"Returns the name of the token."},"operatorBurn(address,uint256,bytes,bytes)":{"details":"Destroys `amount` tokens from `account`, reducing the total supply. The caller must be an operator of `account`. If a send hook is registered for `account`, the corresponding function will be called with `data` and `operatorData`. See {IERC777Sender}. Emits a {Burned} event. Requirements - `account` cannot be the zero address. - `account` must have at least `amount` tokens. - the caller must be an operator for `account`."},"operatorSend(address,address,uint256,bytes,bytes)":{"details":"Moves `amount` tokens from `sender` to `recipient`. The caller must be an operator of `sender`. If send or receive hooks are registered for `sender` and `recipient`, the corresponding functions will be called with `data` and `operatorData`. See {IERC777Sender} and {IERC777Recipient}. Emits a {Sent} event. Requirements - `sender` cannot be the zero address. - `sender` must have at least `amount` tokens. - the caller must be an operator for `sender`. - `recipient` cannot be the zero address. - if `recipient` is a contract, it must implement the {IERC777Recipient} interface."},"revokeOperator(address)":{"details":"Revoke an account's operator status for the caller. See {isOperatorFor} and {defaultOperators}. Emits a {RevokedOperator} event. Requirements - `operator` cannot be calling address."},"send(address,uint256,bytes)":{"details":"Moves `amount` tokens from the caller's account to `recipient`. If send or receive hooks are registered for the caller and `recipient`, the corresponding functions will be called with `data` and empty `operatorData`. See {IERC777Sender} and {IERC777Recipient}. Emits a {Sent} event. Requirements - the caller must have at least `amount` tokens. - `recipient` cannot be the zero address. - if `recipient` is a contract, it must implement the {IERC777Recipient} interface."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"Returns the amount of tokens in existence."}},"version":1},"methodIdentifiers":{"authorizeOperator(address)":"0x959b8c3f","balanceOf(address)":"0x70a08231","burn(uint256,bytes)":"0xfe9d9303","defaultOperators()":"0x06e48538","granularity()":"0x556f0dc7","isOperatorFor(address,address)":"0xd95b6371","name()":"0x06fdde03","operatorBurn(address,uint256,bytes,bytes)":"0xfc673c4f","operatorSend(address,address,uint256,bytes,bytes)":"0x62ad1b83","revokeOperator(address)":"0xfad8b32a","send(address,uint256,bytes)":"0x9bd9bbc6","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC777/IERC777.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC777Recipient":{"abi":[{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"tokensReceived","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC777Recipient","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the ERC777TokensRecipient standard as defined in the EIP. Accounts can be notified of {IERC777} tokens being sent to them by having a contract implement this interface (contract holders can be their own implementer) and registering it on the https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry]. See {IERC1820Registry} and {ERC1820Implementer}.","kind":"dev","methods":{"tokensReceived(address,address,address,uint256,bytes,bytes)":{"details":"Called by an {IERC777} token contract whenever tokens are being moved or created into a registered account (`to`). The type of operation is conveyed by `from` being the zero address or not. This call occurs _after_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the post-operation state. This function may revert to prevent the operation from being executed."}},"version":1},"methodIdentifiers":{"tokensReceived(address,address,address,uint256,bytes,bytes)":"0x0023de29"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC777/IERC777Recipient.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC777Sender":{"abi":[{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"tokensToSend","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC777Sender","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the ERC777TokensSender standard as defined in the EIP. {IERC777} Token holders can be notified of operations performed on their tokens by having a contract implement this interface (contract holders can be their own implementer) and registering it on the https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry]. See {IERC1820Registry} and {ERC1820Implementer}.","kind":"dev","methods":{"tokensToSend(address,address,address,uint256,bytes,bytes)":{"details":"Called by an {IERC777} token contract whenever a registered holder's (`from`) tokens are about to be moved or destroyed. The type of operation is conveyed by `to` being the zero address or not. This call occurs _before_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the pre-operation state. This function may revert to prevent the operation from being executed."}},"version":1},"methodIdentifiers":{"tokensToSend(address,address,address,uint256,bytes,bytes)":"0x75ab9782"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC777/IERC777Sender.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IRelayHub":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"bytes4","name":"selector","type":"bytes4"},{"indexed":false,"internalType":"uint256","name":"reason","type":"uint256"}],"name":"CanRelayFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Penalized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"transactionFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stake","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unstakeDelay","type":"uint256"},{"indexed":false,"internalType":"string","name":"url","type":"string"}],"name":"RelayAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":false,"internalType":"uint256","name":"unstakeTime","type":"uint256"}],"name":"RelayRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":false,"internalType":"uint256","name":"stake","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unstakeDelay","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"bytes4","name":"selector","type":"bytes4"},{"indexed":false,"internalType":"enum IRelayHub.RelayCallStatus","name":"status","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"charge","type":"uint256"}],"name":"TransactionRelayed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":false,"internalType":"uint256","name":"stake","type":"uint256"}],"name":"Unstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"dest","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"relay","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"approvalData","type":"bytes"}],"name":"canRelay","outputs":[{"internalType":"uint256","name":"status","type":"uint256"},{"internalType":"bytes","name":"recipientContext","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"depositFor","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"relay","type":"address"}],"name":"getRelay","outputs":[{"internalType":"uint256","name":"totalStake","type":"uint256"},{"internalType":"uint256","name":"unstakeDelay","type":"uint256"},{"internalType":"uint256","name":"unstakeTime","type":"uint256"},{"internalType":"address payable","name":"owner","type":"address"},{"internalType":"enum IRelayHub.RelayState","name":"state","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"relayedCallStipend","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"transactionFee","type":"uint256"}],"name":"maxPossibleCharge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"unsignedTx","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"penalizeIllegalTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"unsignedTx1","type":"bytes"},{"internalType":"bytes","name":"signature1","type":"bytes"},{"internalType":"bytes","name":"unsignedTx2","type":"bytes"},{"internalType":"bytes","name":"signature2","type":"bytes"}],"name":"penalizeRepeatedNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"string","name":"url","type":"string"}],"name":"registerRelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"approvalData","type":"bytes"}],"name":"relayCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"relay","type":"address"}],"name":"removeRelayByOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"relayedCallStipend","type":"uint256"}],"name":"requiredGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"relayaddr","type":"address"},{"internalType":"uint256","name":"unstakeDelay","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"relay","type":"address"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"dest","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IRelayHub","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface for `RelayHub`, the core contract of the GSN. Users should not need to interact with this contract directly. See the https://github.com/OpenZeppelin/openzeppelin-gsn-helpers[OpenZeppelin GSN helpers] for more information on how to deploy an instance of `RelayHub` on your local test network.","events":{"CanRelayFailed(address,address,address,bytes4,uint256)":{"details":"Emitted when an attempt to relay a call failed. This can happen due to incorrect {relayCall} arguments, or the recipient not accepting the relayed call. The actual relayed call was not executed, and the recipient not charged. The `reason` parameter contains an error code: values 1-10 correspond to `PreconditionCheck` entries, and values over 10 are custom recipient error codes returned from {acceptRelayedCall}."},"Deposited(address,address,uint256)":{"details":"Emitted when {depositFor} is called, including the amount and account that was funded."},"Penalized(address,address,uint256)":{"details":"Emitted when a relay is penalized."},"RelayAdded(address,address,uint256,uint256,uint256,string)":{"details":"Emitted when a relay is registered or re-registerd. Looking at these events (and filtering out {RelayRemoved} events) lets a client discover the list of available relays."},"RelayRemoved(address,uint256)":{"details":"Emitted when a relay is removed (deregistered). `unstakeTime` is the time when unstake will be callable."},"Staked(address,uint256,uint256)":{"details":"Emitted when a relay's stake or unstakeDelay are increased"},"TransactionRelayed(address,address,address,bytes4,uint8,uint256)":{"details":"Emitted when a transaction is relayed. Useful when monitoring a relay's operation and relayed calls to a contract Note that the actual encoded function might be reverted: this is indicated in the `status` parameter. `charge` is the Ether value deducted from the recipient's balance, paid to the relay's owner."},"Unstaked(address,uint256)":{"details":"Emitted when a relay is unstaked for, including the returned stake."},"Withdrawn(address,address,uint256)":{"details":"Emitted when an account withdraws funds from `RelayHub`."}},"kind":"dev","methods":{"balanceOf(address)":{"details":"Returns an account's deposits. These can be either a contracts's funds, or a relay owner's revenue."},"canRelay(address,address,address,bytes,uint256,uint256,uint256,uint256,bytes,bytes)":{"details":"Checks if the `RelayHub` will accept a relayed operation. Multiple things must be true for this to happen: - all arguments must be signed for by the sender (`from`) - the sender's nonce must be the current one - the recipient must accept this transaction (via {acceptRelayedCall}) Returns a `PreconditionCheck` value (`OK` when the transaction can be relayed), or a recipient-specific error code if it returns one in {acceptRelayedCall}."},"depositFor(address)":{"details":"Deposits Ether for a contract, so that it can receive (and pay for) relayed transactions. Unused balance can only be withdrawn by the contract itself, by calling {withdraw}. Emits a {Deposited} event."},"getNonce(address)":{"details":"Returns an account's nonce in `RelayHub`."},"getRelay(address)":{"details":"Returns a relay's status. Note that relays can be deleted when unstaked or penalized, causing this function to return an empty entry."},"maxPossibleCharge(uint256,uint256,uint256)":{"details":"Returns the maximum recipient charge, given the amount of gas forwarded, gas price and relay fee."},"penalizeIllegalTransaction(bytes,bytes)":{"details":"Penalize a relay that sent a transaction that didn't target ``RelayHub``'s {registerRelay} or {relayCall}."},"penalizeRepeatedNonce(bytes,bytes,bytes,bytes)":{"details":"Penalize a relay that signed two transactions using the same nonce (making only the first one valid) and different data (gas price, gas limit, etc. may be different). The (unsigned) transaction data and signature for both transactions must be provided."},"registerRelay(uint256,string)":{"details":"Registers the caller as a relay. The relay must be staked for, and not be a contract (i.e. this function must be called directly from an EOA). This function can be called multiple times, emitting new {RelayAdded} events. Note that the received `transactionFee` is not enforced by {relayCall}. Emits a {RelayAdded} event."},"relayCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,bytes)":{"details":"Relays a transaction. For this to succeed, multiple conditions must be met: - {canRelay} must `return PreconditionCheck.OK` - the sender must be a registered relay - the transaction's gas price must be larger or equal to the one that was requested by the sender - the transaction must have enough gas to not run out of gas if all internal transactions (calls to the recipient) use all gas available to them - the recipient must have enough balance to pay the relay for the worst-case scenario (i.e. when all gas is spent) If all conditions are met, the call will be relayed and the recipient charged. {preRelayedCall}, the encoded function and {postRelayedCall} will be called in that order. Parameters: - `from`: the client originating the request - `to`: the target {IRelayRecipient} contract - `encodedFunction`: the function call to relay, including data - `transactionFee`: fee (%) the relay takes over actual gas cost - `gasPrice`: gas price the client is willing to pay - `gasLimit`: gas to forward when calling the encoded function - `nonce`: client's nonce - `signature`: client's signature over all previous params, plus the relay and RelayHub addresses - `approvalData`: dapp-specific data forwared to {acceptRelayedCall}. This value is *not* verified by the `RelayHub`, but it still can be used for e.g. a signature. Emits a {TransactionRelayed} event."},"removeRelayByOwner(address)":{"details":"Removes (deregisters) a relay. Unregistered (but staked for) relays can also be removed. Can only be called by the owner of the relay. After the relay's `unstakeDelay` has elapsed, {unstake} will be callable. Emits a {RelayRemoved} event."},"requiredGas(uint256)":{"details":"Returns how much gas should be forwarded to a call to {relayCall}, in order to relay a transaction that will spend up to `relayedCallStipend` gas."},"stake(address,uint256)":{"details":"Adds stake to a relay and sets its `unstakeDelay`. If the relay does not exist, it is created, and the caller of this function becomes its owner. If the relay already exists, only the owner can call this function. A relay cannot be its own owner. All Ether in this function call will be added to the relay's stake. Its unstake delay will be assigned to `unstakeDelay`, but the new value must be greater or equal to the current one. Emits a {Staked} event."}},"version":1},"methodIdentifiers":{"balanceOf(address)":"0x70a08231","canRelay(address,address,address,bytes,uint256,uint256,uint256,uint256,bytes,bytes)":"0x2b601747","depositFor(address)":"0xaa67c919","getNonce(address)":"0x2d0335ab","getRelay(address)":"0x8d851460","maxPossibleCharge(uint256,uint256,uint256)":"0xa863f8f9","penalizeIllegalTransaction(bytes,bytes)":"0x39002432","penalizeRepeatedNonce(bytes,bytes,bytes,bytes)":"0xa8cd9572","registerRelay(uint256,string)":"0x1166073a","relayCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,bytes)":"0x405cec67","removeRelayByOwner(address)":"0xc3e712f2","requiredGas(uint256)":"0x6a7d84a4","stake(address,uint256)":"0xadc9772e","unstake(address)":"0xf2888dbb","withdraw(uint256,address)":"0x00f714ce"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/GSN/IRelayHub.sol","sourcemap":"","userdoc":{"kind":"user","methods":{"unstake(address)":{"notice":"Deletes the relay from the system, and gives back its stake to the owner. Can only be called by the relay owner, after `unstakeDelay` has elapsed since {removeRelayByOwner} was called. Emits an {Unstaked} event."},"withdraw(uint256,address)":{"notice":"Withdraws from an account's balance, sending it back to it. Relay owners call this to retrieve their revenue, and contracts can use it to reduce their funding. Emits a {Withdrawn} event."}},"version":1}},"IRelayRecipient":{"abi":[{"inputs":[{"internalType":"address","name":"relay","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"approvalData","type":"bytes"},{"internalType":"uint256","name":"maxPossibleCharge","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"}],"contractName":"IRelayRecipient","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Base interface for a contract that will be called via the GSN from {IRelayHub}. TIP: You don't need to write an implementation yourself! Inherit from {GSNRecipient} instead.","kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Called by {IRelayHub} to validate if this recipient accepts being charged for a relayed call. Note that the recipient will be charged regardless of the execution result of the relayed call (i.e. if it reverts or not). The relay request was originated by `from` and will be served by `relay`. `encodedFunction` is the relayed call calldata, so its first four bytes are the function selector. The relayed call will be forwarded `gasLimit` gas, and the transaction executed with a gas price of at least `gasPrice`. ``relay``'s fee is `transactionFee`, and the recipient will be charged at most `maxPossibleCharge` (in wei). `nonce` is the sender's (`from`) nonce for replay attack protection in {IRelayHub}, and `approvalData` is a optional parameter that can be used to hold a signature over all or some of the previous values. Returns a tuple, where the first value is used to indicate approval (0) or rejection (custom non-zero error code, values 1 to 10 are reserved) and the second one is data to be passed to the other {IRelayRecipient} functions. {acceptRelayedCall} is called with 50k gas: if it runs out during execution, the request will be considered rejected. A regular revert will also trigger a rejection."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} instance this recipient interacts with."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"Called by {IRelayHub} on approved relay call requests, after the relayed call is executed. This allows to e.g. charge the user for the relayed call costs, return any overcharges from {preRelayedCall}, or perform contract-specific bookkeeping. `context` is the second value returned in the tuple by {acceptRelayedCall}. `success` is the execution status of the relayed call. `actualCharge` is an estimate of how much the recipient will be charged for the transaction, not including any gas used by {postRelayedCall} itself. `preRetVal` is {preRelayedCall}'s return value. {postRelayedCall} is called with 100k gas: if it runs out during execution or otherwise reverts, the relayed call and the call to {preRelayedCall} will be reverted retroactively, but the recipient will still be charged for the transaction's cost."},"preRelayedCall(bytes)":{"details":"Called by {IRelayHub} on approved relay call requests, before the relayed call is executed. This allows to e.g. pre-charge the sender of the transaction. `context` is the second value returned in the tuple by {acceptRelayedCall}. Returns a value to be passed to {postRelayedCall}. {preRelayedCall} is called with 100k gas: if it runs out during exection or otherwise reverts, the relayed call will not be executed, but the recipient will still be charged for the transaction's cost."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/GSN/IRelayRecipient.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"Math":{"abi":[],"contractName":"Math","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122043f88c1505a690eb185e1b99fffdee7d42198361953a9a61056efaaba2985c2c64736f6c634300060c0033"},"devdoc":{"details":"Standard math utilities missing in the Solidity language.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122043f88c1505a690eb185e1b99fffdee7d42198361953a9a61056efaaba2985c2c64736f6c634300060c0033"},"sourceId":"contracts/math/Math.sol","sourcemap":"132:668:16:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"MathMock":{"abi":[{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"average","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"min","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}],"contractName":"MathMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5061016d806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80632b7423ab146100465780636d5433e61461007b5780637ae2b5c71461009e575b600080fd5b6100696004803603604081101561005c57600080fd5b50803590602001356100c1565b60408051918252519081900360200190f35b6100696004803603604081101561009157600080fd5b50803590602001356100d4565b610069600480360360408110156100b457600080fd5b50803590602001356100e0565b60006100cd83836100ec565b9392505050565b60006100cd8383610111565b60006100cd8383610128565b600060028083066002850601816100ff57fe5b04600283046002850401019392505050565b60008183101561012157816100cd565b5090919050565b600081831061012157816100cd56fea26469706673582212202084c4cd1da87b0c73cb397ca59c754047e89fd14236c9dee23b239008199e3964736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"average(uint256,uint256)":"0x2b7423ab","max(uint256,uint256)":"0x6d5433e6","min(uint256,uint256)":"0x7ae2b5c7"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100415760003560e01c80632b7423ab146100465780636d5433e61461007b5780637ae2b5c71461009e575b600080fd5b6100696004803603604081101561005c57600080fd5b50803590602001356100c1565b60408051918252519081900360200190f35b6100696004803603604081101561009157600080fd5b50803590602001356100d4565b610069600480360360408110156100b457600080fd5b50803590602001356100e0565b60006100cd83836100ec565b9392505050565b60006100cd8383610111565b60006100cd8383610128565b600060028083066002850601816100ff57fe5b04600283046002850401019392505050565b60008183101561012157816100cd565b5090919050565b600081831061012157816100cd56fea26469706673582212202084c4cd1da87b0c73cb397ca59c754047e89fd14236c9dee23b239008199e3964736f6c634300060c0033"},"sourceId":"contracts/mocks/MathMock.sol","sourcemap":"86:355:56:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"MerkleProof":{"abi":[],"contractName":"MerkleProof","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209d1333d3eabc9b29c414180d846a4ff6e48f2dab06dc5fa3808fe9a6775465d464736f6c634300060c0033"},"devdoc":{"details":"These functions deal with verification of Merkle trees (hash trees),","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209d1333d3eabc9b29c414180d846a4ff6e48f2dab06dc5fa3808fe9a6775465d464736f6c634300060c0033"},"sourceId":"contracts/cryptography/MerkleProof.sol","sourcemap":"143:1135:9:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"MerkleProofWrapper":{"abi":[{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"}],"contractName":"MerkleProofWrapper","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506101e0806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80635a9a49c714610030575b600080fd5b6100d86004803603606081101561004657600080fd5b81019060208101813564010000000081111561006157600080fd5b82018360208201111561007357600080fd5b8035906020019184602083028401116401000000008311171561009557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050823593505050602001356100ec565b604080519115158252519081900360200190f35b60006100f9848484610101565b949350505050565b600081815b855181101561019f57600086828151811061011d57fe5b602002602001015190508083116101645782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610196565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b50600101610106565b50909214939250505056fea264697066735822122005fe461496240b4db8d6fbff409738c271c767a466bd773fea0c0f43e2c41e5d64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"verify(bytes32[],bytes32,bytes32)":"0x5a9a49c7"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80635a9a49c714610030575b600080fd5b6100d86004803603606081101561004657600080fd5b81019060208101813564010000000081111561006157600080fd5b82018360208201111561007357600080fd5b8035906020019184602083028401116401000000008311171561009557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050823593505050602001356100ec565b604080519115158252519081900360200190f35b60006100f9848484610101565b949350505050565b600081815b855181101561019f57600086828151811061011d57fe5b602002602001015190508083116101645782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610196565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b50600101610106565b50909214939250505056fea264697066735822122005fe461496240b4db8d6fbff409738c271c767a466bd773fea0c0f43e2c41e5d64736f6c634300060c0033"},"sourceId":"contracts/mocks/MerkleProofWrapper.sol","sourcemap":"122:192:57:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Ownable":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"Ownable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.","kind":"dev","methods":{"constructor":{"details":"Initializes the contract setting the deployer as the initial owner."},"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}},"version":1},"methodIdentifiers":{"owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","transferOwnership(address)":"0xf2fde38b"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/access/Ownable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"OwnableMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"OwnableMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6102c78061007d6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063715018a6146100465780638da5cb5b14610050578063f2fde38b14610074575b600080fd5b61004e61009a565b005b61005861014e565b604080516001600160a01b039092168252519081900360200190f35b61004e6004803603602081101561008a57600080fd5b50356001600160a01b031661015d565b6100a2610267565b6000546001600160a01b03908116911614610104576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b610165610267565b6000546001600160a01b039081169116146101c7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661020c5760405162461bcd60e51b815260040180806020018281038252602681526020018061026c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220103a69764d0eedfc0a828838094042156b99902924678eb05893cde7328e76c264736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}},"version":1},"methodIdentifiers":{"owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","transferOwnership(address)":"0xf2fde38b"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063715018a6146100465780638da5cb5b14610050578063f2fde38b14610074575b600080fd5b61004e61009a565b005b61005861014e565b604080516001600160a01b039092168252519081900360200190f35b61004e6004803603602081101561008a57600080fd5b50356001600160a01b031661015d565b6100a2610267565b6000546001600160a01b03908116911614610104576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b610165610267565b6000546001600160a01b039081169116146101c7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661020c5760405162461bcd60e51b815260040180806020018281038252602681526020018061026c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220103a69764d0eedfc0a828838094042156b99902924678eb05893cde7328e76c264736f6c634300060c0033"},"sourceId":"contracts/mocks/OwnableMock.sol","sourcemap":"91:35:58:-:0;;;;;;;;;;;;-1:-1:-1;865:17:7;885:12;:10;:12::i;:::-;907:6;:18;;-1:-1:-1;;;;;;907:18:7;-1:-1:-1;;;;;907:18:7;;;;;;;940:43;;907:18;;-1:-1:-1;907:18:7;940:43;;907:6;;940:43;831:159;91:35:58;;590:104:0;677:10;590:104;:::o;91:35:58:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Pausable":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"Pausable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Contract module which allows children to implement an emergency stop mechanism that can be triggered by an authorized account. This module is used through inheritance. It will make available the modifiers `whenNotPaused` and `whenPaused`, which can be applied to the functions of your contract. Note that they will not be pausable by simply including this module, only once the modifiers are put in place.","events":{"Paused(address)":{"details":"Emitted when the pause is triggered by `account`."},"Unpaused(address)":{"details":"Emitted when the pause is lifted by `account`."}},"kind":"dev","methods":{"constructor":{"details":"Initializes the contract in unpaused state."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."}},"version":1},"methodIdentifiers":{"paused()":"0x5c975abb"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/utils/Pausable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"PausableMock":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"count","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"drasticMeasure","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"drasticMeasureTaken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"normalProcess","outputs":[],"stateMutability":"nonpayable","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"PausableMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506000805461ffff1916815560015561031a8061002e6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806376657b8e1161005b57806376657b8e146100c25780638456cb59146100ca5780639958f045146100d2578063e7651d7a146100da5761007d565b806306661abd146100825780633f4ba83a1461009c5780635c975abb146100a6575b600080fd5b61008a6100e2565b60408051918252519081900360200190f35b6100a46100e8565b005b6100ae6100f2565b604080519115158252519081900360200190f35b6100ae6100fb565b6100a4610109565b6100a4610111565b6100a4610170565b60015481565b6100f06101c5565b565b60005460ff1690565b600054610100900460ff1681565b6100f0610263565b60005460ff1661015f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805461ff001916610100179055565b60005460ff16156101bb576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001805481019055565b60005460ff16610213576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6102466102e0565b604080516001600160a01b039092168252519081900360200190a1565b60005460ff16156102ae576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586102465b339056fea2646970667358221220160f129dc9b6264b1f8a9d5296501c5b0662a94fb458d63e3ee0b6dedf8c41c364736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"paused()":{"details":"Returns true if the contract is paused, and false otherwise."}},"version":1},"methodIdentifiers":{"count()":"0x06661abd","drasticMeasure()":"0x9958f045","drasticMeasureTaken()":"0x76657b8e","normalProcess()":"0xe7651d7a","pause()":"0x8456cb59","paused()":"0x5c975abb","unpause()":"0x3f4ba83a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061007d5760003560e01c806376657b8e1161005b57806376657b8e146100c25780638456cb59146100ca5780639958f045146100d2578063e7651d7a146100da5761007d565b806306661abd146100825780633f4ba83a1461009c5780635c975abb146100a6575b600080fd5b61008a6100e2565b60408051918252519081900360200190f35b6100a46100e8565b005b6100ae6100f2565b604080519115158252519081900360200190f35b6100ae6100fb565b6100a4610109565b6100a4610111565b6100a4610170565b60015481565b6100f06101c5565b565b60005460ff1690565b600054610100900460ff1681565b6100f0610263565b60005460ff1661015f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805461ff001916610100179055565b60005460ff16156101bb576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001805481019055565b60005460ff16610213576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6102466102e0565b604080516001600160a01b039092168252519081900360200190a1565b60005460ff16156102ae576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586102465b339056fea2646970667358221220160f129dc9b6264b1f8a9d5296501c5b0662a94fb458d63e3ee0b6dedf8c41c364736f6c634300060c0033"},"sourceId":"contracts/mocks/PausableMock.sol","sourcemap":"91:482:59:-:0;;;195:85;;;;;;;;;-1:-1:-1;933:5:110;923:15;;-1:-1:-1;;227:27:59;;;923:15:110;264:9:59;91:482;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"PaymentSplitter":{"abi":[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}],"contractName":"PaymentSplitter","deploymentBytecode":{"bytecode":"0x6080604052604051610ba6380380610ba68339818101604052604081101561002657600080fd5b810190808051604051939291908464010000000082111561004657600080fd5b90830190602082018581111561005b57600080fd5b825186602082028301116401000000008211171561007857600080fd5b82525081516020918201928201910280838360005b838110156100a557818101518382015260200161008d565b50505050905001604052602001805160405193929190846401000000008211156100ce57600080fd5b9083019060208201858111156100e357600080fd5b825186602082028301116401000000008211171561010057600080fd5b82525081516020918201928201910280838360005b8381101561012d578181015183820152602001610115565b50505050905001604052505050805182511461017a5760405162461bcd60e51b8152600401808060200182810382526032815260200180610b496032913960400191505060405180910390fd5b60008251116101d0576040805162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015290519081900360640190fd5b60005b825181101561021a576102128382815181106101eb57fe5b60200260200101518383815181106101ff57fe5b602002602001015161022260201b60201c565b6001016101d3565b50505061042e565b6001600160a01b0382166102675760405162461bcd60e51b815260040180806020018281038252602c815260200180610b1d602c913960400191505060405180910390fd5b600081116102bc576040805162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015290519081900360640190fd5b6001600160a01b038216600090815260026020526040902054156103115760405162461bcd60e51b815260040180806020018281038252602b815260200180610b7b602b913960400191505060405180910390fd5b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260209081526040822083905590546103829183906103cd811b6103fc17901c565b600055604080516001600160a01b03841681526020810183905281517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac929181900390910190a15050565b600082820183811015610427576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6106e08061043d6000396000f3fe6080604052600436106100595760003560e01c806319165587146100ae5780633a98ef39146100e35780638b83209b1461010a5780639852595c14610150578063ce7c2ac214610183578063e33b7de3146101b6576100a9565b366100a9577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100876101cb565b604080516001600160a01b0390921682523460208301528051918290030190a1005b600080fd5b3480156100ba57600080fd5b506100e1600480360360208110156100d157600080fd5b50356001600160a01b03166101cf565b005b3480156100ef57600080fd5b506100f8610390565b60408051918252519081900360200190f35b34801561011657600080fd5b506101346004803603602081101561012d57600080fd5b5035610396565b604080516001600160a01b039092168252519081900360200190f35b34801561015c57600080fd5b506100f86004803603602081101561017357600080fd5b50356001600160a01b03166103c0565b34801561018f57600080fd5b506100f8600480360360208110156101a657600080fd5b50356001600160a01b03166103db565b3480156101c257600080fd5b506100f86103f6565b3390565b6001600160a01b0381166000908152600260205260409020546102235760405162461bcd60e51b81526004018080602001828103825260268152602001806106396026913960400191505060405180910390fd5b600061023a600154476103fc90919063ffffffff16565b6001600160a01b0383166000908152600360209081526040808320548354600290935290832054939450919261028692916102809161027a90879061045f565b906104b8565b906104fa565b9050806102c45760405162461bcd60e51b815260040180806020018281038252602b81526020018061065f602b913960400191505060405180910390fd5b6001600160a01b0383166000908152600360205260409020546102e790826103fc565b6001600160a01b03841660009081526003602052604090205560015461030d90826103fc565b6001556040516001600160a01b0384169082156108fc029083906000818181858888f19350505050158015610346573d6000803e3d6000fd5b50604080516001600160a01b03851681526020810183905281517fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056929181900390910190a1505050565b60005490565b6000600482815481106103a557fe5b6000918252602090912001546001600160a01b031692915050565b6001600160a01b031660009081526003602052604090205490565b6001600160a01b031660009081526002602052604090205490565b60015490565b600082820183811015610456576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b60008261046e57506000610459565b8282028284828161047b57fe5b04146104565760405162461bcd60e51b815260040180806020018281038252602181526020018061068a6021913960400191505060405180910390fd5b600061045683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061053c565b600061045683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506105de565b600081836105c85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561058d578181015183820152602001610575565b50505050905090810190601f1680156105ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816105d457fe5b0495945050505050565b600081848411156106305760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561058d578181015183820152602001610575565b50505090039056fe5061796d656e7453706c69747465723a206163636f756e7420686173206e6f207368617265735061796d656e7453706c69747465723a206163636f756e74206973206e6f7420647565207061796d656e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122017a1a95ff6ae23404eb87d822ca79300749ab42c65521e441dc6881075d0cd7664736f6c634300060c00335061796d656e7453706c69747465723a206163636f756e7420697320746865207a65726f20616464726573735061796d656e7453706c69747465723a2070617965657320616e6420736861726573206c656e677468206d69736d617463685061796d656e7453706c69747465723a206163636f756e7420616c72656164792068617320736861726573"},"devdoc":{"details":"This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware that the Ether will be split in this way, since it is handled transparently by the contract. The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim an amount proportional to the percentage of total shares they were assigned. `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} function.","kind":"dev","methods":{"constructor":{"details":"Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at the matching position in the `shares` array. All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no duplicates in `payees`."},"payee(uint256)":{"details":"Getter for the address of the payee number `index`."},"release(address)":{"details":"Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the total shares and their previous withdrawals."},"released(address)":{"details":"Getter for the amount of Ether already released to a payee."},"shares(address)":{"details":"Getter for the amount of shares held by an account."},"totalReleased()":{"details":"Getter for the total amount of Ether already released."},"totalShares()":{"details":"Getter for the total shares held by payees."}},"title":"PaymentSplitter","version":1},"methodIdentifiers":{"payee(uint256)":"0x8b83209b","release(address)":"0x19165587","released(address)":"0x9852595c","shares(address)":"0xce7c2ac2","totalReleased()":"0xe33b7de3","totalShares()":"0x3a98ef39"},"runtimeBytecode":{"bytecode":"0x6080604052600436106100595760003560e01c806319165587146100ae5780633a98ef39146100e35780638b83209b1461010a5780639852595c14610150578063ce7c2ac214610183578063e33b7de3146101b6576100a9565b366100a9577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100876101cb565b604080516001600160a01b0390921682523460208301528051918290030190a1005b600080fd5b3480156100ba57600080fd5b506100e1600480360360208110156100d157600080fd5b50356001600160a01b03166101cf565b005b3480156100ef57600080fd5b506100f8610390565b60408051918252519081900360200190f35b34801561011657600080fd5b506101346004803603602081101561012d57600080fd5b5035610396565b604080516001600160a01b039092168252519081900360200190f35b34801561015c57600080fd5b506100f86004803603602081101561017357600080fd5b50356001600160a01b03166103c0565b34801561018f57600080fd5b506100f8600480360360208110156101a657600080fd5b50356001600160a01b03166103db565b3480156101c257600080fd5b506100f86103f6565b3390565b6001600160a01b0381166000908152600260205260409020546102235760405162461bcd60e51b81526004018080602001828103825260268152602001806106396026913960400191505060405180910390fd5b600061023a600154476103fc90919063ffffffff16565b6001600160a01b0383166000908152600360209081526040808320548354600290935290832054939450919261028692916102809161027a90879061045f565b906104b8565b906104fa565b9050806102c45760405162461bcd60e51b815260040180806020018281038252602b81526020018061065f602b913960400191505060405180910390fd5b6001600160a01b0383166000908152600360205260409020546102e790826103fc565b6001600160a01b03841660009081526003602052604090205560015461030d90826103fc565b6001556040516001600160a01b0384169082156108fc029083906000818181858888f19350505050158015610346573d6000803e3d6000fd5b50604080516001600160a01b03851681526020810183905281517fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056929181900390910190a1505050565b60005490565b6000600482815481106103a557fe5b6000918252602090912001546001600160a01b031692915050565b6001600160a01b031660009081526003602052604090205490565b6001600160a01b031660009081526002602052604090205490565b60015490565b600082820183811015610456576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b60008261046e57506000610459565b8282028284828161047b57fe5b04146104565760405162461bcd60e51b815260040180806020018281038252602181526020018061068a6021913960400191505060405180910390fd5b600061045683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061053c565b600061045683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506105de565b600081836105c85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561058d578181015183820152602001610575565b50505050905090810190601f1680156105ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816105d457fe5b0495945050505050565b600081848411156106305760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561058d578181015183820152602001610575565b50505090039056fe5061796d656e7453706c69747465723a206163636f756e7420686173206e6f207368617265735061796d656e7453706c69747465723a206163636f756e74206973206e6f7420647565207061796d656e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122017a1a95ff6ae23404eb87d822ca79300749ab42c65521e441dc6881075d0cd7664736f6c634300060c0033"},"sourceId":"contracts/payment/PaymentSplitter.sol","sourcemap":"942:4196:68:-:0;;;1734:417;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1734:417:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1734:417:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1900:6;:13;1883:6;:13;:30;1875:93;;;;-1:-1:-1;;;1875:93:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2002:1;1986:6;:13;:17;1978:56;;;;;-1:-1:-1;;;1978:56:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;2050:9;2045:100;2069:6;:13;2065:1;:17;2045:100;;;2103:31;2113:6;2120:1;2113:9;;;;;;;;;;;;;;2124:6;2131:1;2124:9;;;;;;;;;;;;;;2103;;;:31;;:::i;:::-;2084:3;;2045:100;;;;1734:417;;942:4196;;4669:467;-1:-1:-1;;;;;4748:21:68;;4740:78;;;;-1:-1:-1;;;4740:78:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4846:1;4836:7;:11;4828:53;;;;;-1:-1:-1;;;4828:53:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4899:16:68;;;;;;:7;:16;;;;;;:21;4891:77;;;;-1:-1:-1;;;4891:77:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4979:7;:21;;;;;;;;;;;;-1:-1:-1;;;;;;4979:21:68;-1:-1:-1;;;;;4979:21:68;;;;;;;;-1:-1:-1;5010:16:68;;;:7;4979:21;5010:16;;;;;;:26;;;5061:12;;:25;;5010:26;;5061:16;;;;;:25;;:::i;:::-;5046:12;:40;5101:28;;;-1:-1:-1;;;;;5101:28:68;;;;;;;;;;;;;;;;;;;;;;;4669:467;;:::o;874:176:17:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:17:o;942:4196:68:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"PullPayment":{"abi":[{"inputs":[{"internalType":"address","name":"dest","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"PullPayment","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Simple implementation of a https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment] strategy, where the paying contract doesn't interact directly with the receiver account, which must withdraw its payments itself. Pull-payments are often considered the best practice when it comes to sending Ether, security-wise. It prevents recipients from blocking execution, and eliminates reentrancy concerns. TIP: If you would like to learn more about reentrancy and alternative ways to protect against it, check out our blog post https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. To use, derive from the `PullPayment` contract, and use {_asyncTransfer} instead of Solidity's `transfer` function. Payees can query their due payments with {payments}, and retrieve them with {withdrawPayments}.","kind":"dev","methods":{"payments(address)":{"details":"Returns the payments owed to an address.","params":{"dest":"The creditor's address."}},"withdrawPayments(address)":{"details":"Withdraw accumulated payments, forwarding all gas to the recipient. Note that _any_ account can call this function, not just the `payee`. This means that contracts unaware of the `PullPayment` protocol can still receive funds this way, by having a separate account call {withdrawPayments}. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.","params":{"payee":"Whose payments will be withdrawn."}}},"version":1},"methodIdentifiers":{"payments(address)":"0xe2982c21","withdrawPayments(address)":"0x31b3eb94"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/payment/PullPayment.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"PullPaymentMock":{"abi":[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"inputs":[{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"callTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"dest","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"PullPaymentMock","deploymentBytecode":{"bytecode":"0x608060405260405161001090610052565b604051809103906000f08015801561002c573d6000803e3d6000fd5b50600080546001600160a01b0319166001600160a01b039290921691909117905561005f565b61074f806102d483390190565b6102668061006e6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806331b3eb9414610046578063d44409911461006e578063e2982c211461009a575b600080fd5b61006c6004803603602081101561005c57600080fd5b50356001600160a01b03166100d2565b005b61006c6004803603604081101561008457600080fd5b506001600160a01b038135169060200135610138565b6100c0600480360360208110156100b057600080fd5b50356001600160a01b0316610146565b60408051918252519081900360200190f35b60008054604080516351cff8d960e01b81526001600160a01b038581166004830152915191909216926351cff8d9926024808201939182900301818387803b15801561011d57600080fd5b505af1158015610131573d6000803e3d6000fd5b5050505050565b61014282826101c6565b5050565b60008054604080516371d4ed8d60e11b81526001600160a01b0385811660048301529151919092169163e3a9db1a916024808301926020929190829003018186803b15801561019457600080fd5b505afa1580156101a8573d6000803e3d6000fd5b505050506040513d60208110156101be57600080fd5b505192915050565b600080546040805163f340fa0160e01b81526001600160a01b0386811660048301529151919092169263f340fa019285926024808301939282900301818588803b15801561021357600080fd5b505af1158015610227573d6000803e3d6000fd5b5050505050505056fea264697066735822122055a85881a0d0392fdbaa46e9c7637fd87bc5804354d0ea415830c8610f9e2ad864736f6c634300060c0033608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6106d28061007d6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461008f5780638da5cb5b146100a4578063e3a9db1a146100d5578063f2fde38b1461011a578063f340fa011461014d575b600080fd5b34801561006657600080fd5b5061008d6004803603602081101561007d57600080fd5b50356001600160a01b0316610173565b005b34801561009b57600080fd5b5061008d610236565b3480156100b057600080fd5b506100b96102d8565b604080516001600160a01b039092168252519081900360200190f35b3480156100e157600080fd5b50610108600480360360208110156100f857600080fd5b50356001600160a01b03166102e7565b60408051918252519081900360200190f35b34801561012657600080fd5b5061008d6004803603602081101561013d57600080fd5b50356001600160a01b0316610302565b61008d6004803603602081101561016357600080fd5b50356001600160a01b03166103fa565b61017b6104cd565b6000546001600160a01b039081169116146101cb576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906101f390826104d1565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b61023e6104cd565b6000546001600160a01b0390811691161461028e576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61030a6104cd565b6000546001600160a01b0390811691161461035a576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811661039f5760405162461bcd60e51b815260040180806020018281038252602681526020018061061d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6104026104cd565b6000546001600160a01b03908116911614610452576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b038116600090815260016020526040902054349061047790826105bb565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b3390565b80471015610526576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610571576040519150601f19603f3d011682016040523d82523d6000602084013e610576565b606091505b50509050806105b65760405162461bcd60e51b815260040180806020018281038252603a815260200180610643603a913960400191505060405180910390fd5b505050565b600082820183811015610615576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d617920686176652072657665727465644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122046931f8d6f12dcd2899e1f16aa783bb68e4fd7a715103b5b09f2c99959d1cdd064736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"payments(address)":{"details":"Returns the payments owed to an address.","params":{"dest":"The creditor's address."}},"withdrawPayments(address)":{"details":"Withdraw accumulated payments, forwarding all gas to the recipient. Note that _any_ account can call this function, not just the `payee`. This means that contracts unaware of the `PullPayment` protocol can still receive funds this way, by having a separate account call {withdrawPayments}. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.","params":{"payee":"Whose payments will be withdrawn."}}},"version":1},"methodIdentifiers":{"callTransfer(address,uint256)":"0xd4440991","payments(address)":"0xe2982c21","withdrawPayments(address)":"0x31b3eb94"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100415760003560e01c806331b3eb9414610046578063d44409911461006e578063e2982c211461009a575b600080fd5b61006c6004803603602081101561005c57600080fd5b50356001600160a01b03166100d2565b005b61006c6004803603604081101561008457600080fd5b506001600160a01b038135169060200135610138565b6100c0600480360360208110156100b057600080fd5b50356001600160a01b0316610146565b60408051918252519081900360200190f35b60008054604080516351cff8d960e01b81526001600160a01b038581166004830152915191909216926351cff8d9926024808201939182900301818387803b15801561011d57600080fd5b505af1158015610131573d6000803e3d6000fd5b5050505050565b61014282826101c6565b5050565b60008054604080516371d4ed8d60e11b81526001600160a01b0385811660048301529151919092169163e3a9db1a916024808301926020929190829003018186803b15801561019457600080fd5b505afa1580156101a8573d6000803e3d6000fd5b505050506040513d60208110156101be57600080fd5b505192915050565b600080546040805163f340fa0160e01b81526001600160a01b0386811660048301529151919092169263f340fa019285926024808301939282900301818588803b15801561021357600080fd5b505af1158015610227573d6000803e3d6000fd5b5050505050505056fea264697066735822122055a85881a0d0392fdbaa46e9c7637fd87bc5804354d0ea415830c8610f9e2ad864736f6c634300060c0033"},"sourceId":"contracts/mocks/PullPaymentMock.sol","sourcemap":"128:241:60:-:0;;;1139:12:69;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1129:7:69;:22;;-1:-1:-1;;;;;;1129:22:69;-1:-1:-1;;;;;1129:22:69;;;;;;;;;;128:241:60;;;;;;;;;;:::o;:::-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ReentrancyAttack":{"abi":[{"inputs":[{"internalType":"bytes4","name":"data","type":"bytes4"}],"name":"callSender","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ReentrancyAttack","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506101c4806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80630a2df1ed14610030575b600080fd5b6100576004803603602081101561004657600080fd5b50356001600160e01b031916610059565b005b600061006361018a565b60408051600481526024810182526020810180516001600160e01b03166001600160e01b03198716178152915181516001600160a01b039490941693919290918291908083835b602083106100c95780518252601f1990920191602091820191016100aa565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461012b576040519150601f19603f3d011682016040523d82523d6000602084013e610130565b606091505b5050905080610186576040805162461bcd60e51b815260206004820152601d60248201527f5265656e7472616e637941747461636b3a206661696c65642063616c6c000000604482015290519081900360640190fd5b5050565b339056fea26469706673582212206f3ef92a872ff5c30933c51aa17e4225775e97b900de5500164ba00d538a195364736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"callSender(bytes4)":"0x0a2df1ed"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80630a2df1ed14610030575b600080fd5b6100576004803603602081101561004657600080fd5b50356001600160e01b031916610059565b005b600061006361018a565b60408051600481526024810182526020810180516001600160e01b03166001600160e01b03198716178152915181516001600160a01b039490941693919290918291908083835b602083106100c95780518252601f1990920191602091820191016100aa565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461012b576040519150601f19603f3d011682016040523d82523d6000602084013e610130565b606091505b5050905080610186576040805162461bcd60e51b815260206004820152601d60248201527f5265656e7472616e637941747461636b3a206661696c65642063616c6c000000604482015290519081900360640190fd5b5050565b339056fea26469706673582212206f3ef92a872ff5c30933c51aa17e4225775e97b900de5500164ba00d538a195364736f6c634300060c0033"},"sourceId":"contracts/mocks/ReentrancyAttack.sol","sourcemap":"87:285:61:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ReentrancyGuard":{"abi":[],"contractName":"ReentrancyGuard","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Contract module that helps prevent reentrant calls to a function. Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier available, which can be applied to functions to make sure there are no nested (reentrant) calls to them. Note that because there is a single `nonReentrant` guard, functions marked as `nonReentrant` may not call one another. This can be worked around by making those functions `private`, and then adding `external` `nonReentrant` entry points to them. TIP: If you would like to learn more about reentrancy and alternative ways to protect against it, check out our blog post https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/utils/ReentrancyGuard.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ReentrancyMock":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"callback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ReentrancyAttack","name":"attacker","type":"address"}],"name":"countAndCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"countLocalRecursive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"countThisRecursive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"counter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"contractName":"ReentrancyMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600160008181559055610478806100296000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063083b27321461005c57806361bc221a146100665780638c5344fa1461008057806396ffa6901461009d578063b672ad8b146100ba575b600080fd5b6100646100e0565b005b61006e61013a565b60408051918252519081900360200190f35b6100646004803603602081101561009657600080fd5b5035610140565b610064600480360360208110156100b357600080fd5b50356102ce565b610064600480360360208110156100d057600080fd5b50356001600160a01b0316610333565b60026000541415610126576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b6002600055610133610418565b6001600055565b60015481565b60026000541415610186576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b600260005580156102c657610199610418565b60408051600019830160248083019190915282518083039091018152604490910182526020810180516001600160e01b0316634629a27d60e11b17815291518151600093309392918291908083835b602083106102075780518252601f1990920191602091820191016101e8565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610269576040519150601f19603f3d011682016040523d82523d6000602084013e61026e565b606091505b50509050806102c4576040805162461bcd60e51b815260206004820152601b60248201527f5265656e7472616e63794d6f636b3a206661696c65642063616c6c0000000000604482015290519081900360640190fd5b505b506001600055565b60026000541415610314576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b600260005580156102c657610327610418565b6102c6600182036102ce565b60026000541415610379576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b6002600055610386610418565b60408051630a2df1ed60e01b815263041d939960e11b600482015290517f083b2732f78169bfaad6b407fa338cc97d697ed69d3915a18239cc111d51a402916001600160a01b03841691630a2df1ed9160248082019260009290919082900301818387803b1580156103f757600080fd5b505af115801561040b573d6000803e3d6000fd5b5050600160005550505050565b600180548101905556fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00a2646970667358221220df6d0c816b87cc3e7981e0e961177ace657aa72d5f19682eed6ac4cc1067c9c864736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"callback()":"0x083b2732","countAndCall(address)":"0xb672ad8b","countLocalRecursive(uint256)":"0x96ffa690","countThisRecursive(uint256)":"0x8c5344fa","counter()":"0x61bc221a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063083b27321461005c57806361bc221a146100665780638c5344fa1461008057806396ffa6901461009d578063b672ad8b146100ba575b600080fd5b6100646100e0565b005b61006e61013a565b60408051918252519081900360200190f35b6100646004803603602081101561009657600080fd5b5035610140565b610064600480360360208110156100b357600080fd5b50356102ce565b610064600480360360208110156100d057600080fd5b50356001600160a01b0316610333565b60026000541415610126576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b6002600055610133610418565b6001600055565b60015481565b60026000541415610186576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b600260005580156102c657610199610418565b60408051600019830160248083019190915282518083039091018152604490910182526020810180516001600160e01b0316634629a27d60e11b17815291518151600093309392918291908083835b602083106102075780518252601f1990920191602091820191016101e8565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610269576040519150601f19603f3d011682016040523d82523d6000602084013e61026e565b606091505b50509050806102c4576040805162461bcd60e51b815260206004820152601b60248201527f5265656e7472616e63794d6f636b3a206661696c65642063616c6c0000000000604482015290519081900360640190fd5b505b506001600055565b60026000541415610314576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b600260005580156102c657610327610418565b6102c6600182036102ce565b60026000541415610379576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b6002600055610386610418565b60408051630a2df1ed60e01b815263041d939960e11b600482015290517f083b2732f78169bfaad6b407fa338cc97d697ed69d3915a18239cc111d51a402916001600160a01b03841691630a2df1ed9160248082019260009290919082900301818387803b1580156103f757600080fd5b505af115801561040b573d6000803e3d6000fd5b5050600160005550505050565b600180548101905556fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00a2646970667358221220df6d0c816b87cc3e7981e0e961177ace657aa72d5f19682eed6ac4cc1067c9c864736f6c634300060c0033"},"sourceId":"contracts/mocks/ReentrancyMock.sol","sourcemap":"131:982:62:-:0;;;209:50;;;;;;;;;-1:-1:-1;1628:1:111;1743:7;:22;;;241:11:62;;131:982;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"RefundEscrow":{"abi":[{"inputs":[{"internalType":"address payable","name":"beneficiary","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"RefundsClosed","type":"event"},{"anonymous":false,"inputs":[],"name":"RefundsEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiaryWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"close","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"refundee","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableRefunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"state","outputs":[{"internalType":"enum RefundEscrow.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawalAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"RefundEscrow","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50604051610d4f380380610d4f8339818101604052602081101561003357600080fd5b5051600061003f6100fe565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0381166100ce5760405162461bcd60e51b815260040180806020018281038252602d815260200180610d22602d913960400191505060405180910390fd5b6002805460ff196001600160a01b039390931661010002610100600160a81b031990911617919091169055610102565b3390565b610c11806101116000396000f3fe6080604052600436106100a75760003560e01c80638da5cb5b116100645780638da5cb5b146101985780639af6549a146101ad578063c19d93fb146101c2578063e3a9db1a146101f8578063f2fde38b1461023d578063f340fa0114610270576100a7565b806338af3eed146100ac57806343d726d6146100dd57806351cff8d9146100f4578063685ca19414610127578063715018a61461016e5780638c52dc4114610183575b600080fd5b3480156100b857600080fd5b506100c1610296565b604080516001600160a01b039092168252519081900360200190f35b3480156100e957600080fd5b506100f26102aa565b005b34801561010057600080fd5b506100f26004803603602081101561011757600080fd5b50356001600160a01b0316610388565b34801561013357600080fd5b5061015a6004803603602081101561014a57600080fd5b50356001600160a01b03166103d8565b604080519115158252519081900360200190f35b34801561017a57600080fd5b506100f26103f4565b34801561018f57600080fd5b506100f2610496565b3480156101a457600080fd5b506100c1610575565b3480156101b957600080fd5b506100f2610584565b3480156101ce57600080fd5b506101d7610611565b604051808260028111156101e757fe5b815260200191505060405180910390f35b34801561020457600080fd5b5061022b6004803603602081101561021b57600080fd5b50356001600160a01b031661061a565b60408051918252519081900360200190f35b34801561024957600080fd5b506100f26004803603602081101561026057600080fd5b50356001600160a01b0316610635565b6100f26004803603602081101561028657600080fd5b50356001600160a01b031661072d565b60025461010090046001600160a01b031690565b6102b2610785565b6000546001600160a01b03908116911614610302576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b60006002805460ff169081111561031557fe5b146103515760405162461bcd60e51b8152600401808060200182810382526029815260200180610b616029913960400191505060405180910390fd5b6002805460ff1916811790556040517f088672c3a6e342f7cd94a65ba63b79df24a8973927b4d05d803c44bbf787d12f90600090a1565b610391816103d8565b6103cc5760405162461bcd60e51b8152600401808060200182810382526033815260200180610b2e6033913960400191505060405180910390fd5b6103d581610789565b50565b600060016002805460ff16908111156103ed57fe5b1492915050565b6103fc610785565b6000546001600160a01b0390811691161461044c576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61049e610785565b6000546001600160a01b039081169116146104ee576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b60006002805460ff169081111561050157fe5b1461053d5760405162461bcd60e51b8152600401808060200182810382526032815260200180610baa6032913960400191505060405180910390fd5b6002805460ff191660011790556040517f599d8e5a83cffb867d051598c4d70e805d59802d8081c1c7d6dffc5b6aca2b8990600090a1565b6000546001600160a01b031690565b6002805460ff168181111561059557fe5b146105d15760405162461bcd60e51b8152600401808060200182810382526038815260200180610a6b6038913960400191505060405180910390fd5b6002546040516001600160a01b0361010090920491909116904780156108fc02916000818181858888f193505050501580156103d5573d6000803e3d6000fd5b60025460ff1690565b6001600160a01b031660009081526001602052604090205490565b61063d610785565b6000546001600160a01b0390811691161461068d576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b0381166106d25760405162461bcd60e51b8152600401808060200182810382526026815260200180610aa36026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006002805460ff169081111561074057fe5b1461077c5760405162461bcd60e51b815260040180806020018281038252602b815260200180610b03602b913960400191505060405180910390fd5b6103d58161084c565b3390565b610791610785565b6000546001600160a01b039081169116146107e1576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b0381166000818152600160205260408120805491905590610809908261091f565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b610854610785565b6000546001600160a01b039081169116146108a4576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205434906108c99082610a09565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b80471015610974576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d80600081146109bf576040519150601f19603f3d011682016040523d82523d6000602084013e6109c4565b606091505b5050905080610a045760405162461bcd60e51b815260040180806020018281038252603a815260200180610ac9603a913960400191505060405180910390fd5b505050565b600082820183811015610a63576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe526566756e64457363726f773a2062656e65666963696172792063616e206f6e6c79207769746864726177207768696c6520636c6f7365644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564526566756e64457363726f773a2063616e206f6e6c79206465706f736974207768696c6520616374697665436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420616c6c6f77656420746f207769746864726177526566756e64457363726f773a2063616e206f6e6c7920636c6f7365207768696c65206163746976654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526566756e64457363726f773a2063616e206f6e6c7920656e61626c6520726566756e6473207768696c6520616374697665a2646970667358221220258f742f1c7b702749260ebfad658367df321839174c58c67ece804508d173b564736f6c634300060c0033526566756e64457363726f773a2062656e656669636961727920697320746865207a65726f2061646472657373"},"devdoc":{"details":"Escrow that holds funds for a beneficiary, deposited from multiple parties.Intended usage: See {Escrow}. Same usage guidelines apply here.The owner account (that is, the contract that instantiates this contract) may deposit, close the deposit period, and allow for either withdrawal by the beneficiary, or refunds to the depositors. All interactions with `RefundEscrow` will be made through the owner contract.","kind":"dev","methods":{"beneficiary()":{"returns":{"_0":"The beneficiary of the escrow."}},"beneficiaryWithdraw()":{"details":"Withdraws the beneficiary's funds."},"close()":{"details":"Allows for the beneficiary to withdraw their funds, rejecting further deposits."},"constructor":{"details":"Constructor.","params":{"beneficiary":"The beneficiary of the deposits."}},"deposit(address)":{"details":"Stores funds that may later be refunded.","params":{"refundee":"The address funds will be sent to if a refund occurs."}},"enableRefunds()":{"details":"Allows for refunds to take place, rejecting further deposits."},"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"state()":{"returns":{"_0":"The current state of the escrow."}},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."},"withdraw(address)":{"details":"Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.","params":{"payee":"The address whose funds will be withdrawn and transferred to."}},"withdrawalAllowed(address)":{"details":"Returns whether refundees can withdraw their deposits (be refunded). The overridden function receives a 'payee' argument, but we ignore it here since the condition is global, not per-payee."}},"title":"RefundEscrow","version":1},"methodIdentifiers":{"beneficiary()":"0x38af3eed","beneficiaryWithdraw()":"0x9af6549a","close()":"0x43d726d6","deposit(address)":"0xf340fa01","depositsOf(address)":"0xe3a9db1a","enableRefunds()":"0x8c52dc41","owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","state()":"0xc19d93fb","transferOwnership(address)":"0xf2fde38b","withdraw(address)":"0x51cff8d9","withdrawalAllowed(address)":"0x685ca194"},"runtimeBytecode":{"bytecode":"0x6080604052600436106100a75760003560e01c80638da5cb5b116100645780638da5cb5b146101985780639af6549a146101ad578063c19d93fb146101c2578063e3a9db1a146101f8578063f2fde38b1461023d578063f340fa0114610270576100a7565b806338af3eed146100ac57806343d726d6146100dd57806351cff8d9146100f4578063685ca19414610127578063715018a61461016e5780638c52dc4114610183575b600080fd5b3480156100b857600080fd5b506100c1610296565b604080516001600160a01b039092168252519081900360200190f35b3480156100e957600080fd5b506100f26102aa565b005b34801561010057600080fd5b506100f26004803603602081101561011757600080fd5b50356001600160a01b0316610388565b34801561013357600080fd5b5061015a6004803603602081101561014a57600080fd5b50356001600160a01b03166103d8565b604080519115158252519081900360200190f35b34801561017a57600080fd5b506100f26103f4565b34801561018f57600080fd5b506100f2610496565b3480156101a457600080fd5b506100c1610575565b3480156101b957600080fd5b506100f2610584565b3480156101ce57600080fd5b506101d7610611565b604051808260028111156101e757fe5b815260200191505060405180910390f35b34801561020457600080fd5b5061022b6004803603602081101561021b57600080fd5b50356001600160a01b031661061a565b60408051918252519081900360200190f35b34801561024957600080fd5b506100f26004803603602081101561026057600080fd5b50356001600160a01b0316610635565b6100f26004803603602081101561028657600080fd5b50356001600160a01b031661072d565b60025461010090046001600160a01b031690565b6102b2610785565b6000546001600160a01b03908116911614610302576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b60006002805460ff169081111561031557fe5b146103515760405162461bcd60e51b8152600401808060200182810382526029815260200180610b616029913960400191505060405180910390fd5b6002805460ff1916811790556040517f088672c3a6e342f7cd94a65ba63b79df24a8973927b4d05d803c44bbf787d12f90600090a1565b610391816103d8565b6103cc5760405162461bcd60e51b8152600401808060200182810382526033815260200180610b2e6033913960400191505060405180910390fd5b6103d581610789565b50565b600060016002805460ff16908111156103ed57fe5b1492915050565b6103fc610785565b6000546001600160a01b0390811691161461044c576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61049e610785565b6000546001600160a01b039081169116146104ee576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b60006002805460ff169081111561050157fe5b1461053d5760405162461bcd60e51b8152600401808060200182810382526032815260200180610baa6032913960400191505060405180910390fd5b6002805460ff191660011790556040517f599d8e5a83cffb867d051598c4d70e805d59802d8081c1c7d6dffc5b6aca2b8990600090a1565b6000546001600160a01b031690565b6002805460ff168181111561059557fe5b146105d15760405162461bcd60e51b8152600401808060200182810382526038815260200180610a6b6038913960400191505060405180910390fd5b6002546040516001600160a01b0361010090920491909116904780156108fc02916000818181858888f193505050501580156103d5573d6000803e3d6000fd5b60025460ff1690565b6001600160a01b031660009081526001602052604090205490565b61063d610785565b6000546001600160a01b0390811691161461068d576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b0381166106d25760405162461bcd60e51b8152600401808060200182810382526026815260200180610aa36026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006002805460ff169081111561074057fe5b1461077c5760405162461bcd60e51b815260040180806020018281038252602b815260200180610b03602b913960400191505060405180910390fd5b6103d58161084c565b3390565b610791610785565b6000546001600160a01b039081169116146107e1576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b0381166000818152600160205260408120805491905590610809908261091f565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b610854610785565b6000546001600160a01b039081169116146108a4576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205434906108c99082610a09565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b80471015610974576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d80600081146109bf576040519150601f19603f3d011682016040523d82523d6000602084013e6109c4565b606091505b5050905080610a045760405162461bcd60e51b815260040180806020018281038252603a815260200180610ac9603a913960400191505060405180910390fd5b505050565b600082820183811015610a63576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe526566756e64457363726f773a2062656e65666963696172792063616e206f6e6c79207769746864726177207768696c6520636c6f7365644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564526566756e64457363726f773a2063616e206f6e6c79206465706f736974207768696c6520616374697665436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420616c6c6f77656420746f207769746864726177526566756e64457363726f773a2063616e206f6e6c7920636c6f7365207768696c65206163746976654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526566756e64457363726f773a2063616e206f6e6c7920656e61626c6520726566756e6473207768696c6520616374697665a2646970667358221220258f742f1c7b702749260ebfad658367df321839174c58c67ece804508d173b564736f6c634300060c0033"},"sourceId":"contracts/payment/escrow/RefundEscrow.sol","sourcemap":"573:2446:72:-:0;;;893:216;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;893:216:72;865:17:7;885:12;:10;:12::i;:::-;907:6;:18;;-1:-1:-1;;;;;;907:18:7;-1:-1:-1;;;;;907:18:7;;;;;;;940:43;;907:18;;-1:-1:-1;907:18:7;940:43;;907:6;;940:43;-1:-1:-1;;;;;;960:25:72;;952:83;;;;-1:-1:-1;;;952:83:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1045:12;:26;;-1:-1:-1;;;;;;;1045:26:72;;;;;;-1:-1:-1;;;;;;1045:26:72;;;;1081:21;;;;;;573:2446;;590:104:0;677:10;590:104;:::o;573:2446:72:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SafeCast":{"abi":[],"contractName":"SafeCast","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220865232395114f6230d9a919dd8c76d3a5c8ebe5a7226fe8dc98ec98d010fa34364736f6c634300060c0033"},"devdoc":{"details":"Wrappers over Solidity's uintXX/intXX casting operators with added overflow checks. Downcasting from uint256/int256 in Solidity does not revert on overflow. This can easily result in undesired exploitation or bugs, since developers usually assume that overflows raise errors. `SafeCast` restores this intuition by reverting the transaction when such an operation overflows. Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always. Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing all math on `uint256` and `int256` and then downcasting.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220865232395114f6230d9a919dd8c76d3a5c8ebe5a7226fe8dc98ec98d010fa34364736f6c634300060c0033"},"sourceId":"contracts/utils/SafeCast.sol","sourcemap":"769:5765:112:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SafeCastMock":{"abi":[{"inputs":[{"internalType":"int256","name":"a","type":"int256"}],"name":"toInt128","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"}],"name":"toInt16","outputs":[{"internalType":"int16","name":"","type":"int16"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"}],"name":"toInt256","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"}],"name":"toInt32","outputs":[{"internalType":"int32","name":"","type":"int32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"}],"name":"toInt64","outputs":[{"internalType":"int64","name":"","type":"int64"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"}],"name":"toInt8","outputs":[{"internalType":"int8","name":"","type":"int8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"}],"name":"toUint128","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"}],"name":"toUint16","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"}],"name":"toUint256","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"}],"name":"toUint32","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"}],"name":"toUint64","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"}],"name":"toUint8","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"}],"contractName":"SafeCastMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610871806100206000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063cf65b4d311610071578063cf65b4d314610206578063d6bd32aa1461023a578063dd2a03161461026e578063dfbe873b146102a2578063f136dc02146102d1578063fdcf791b14610305576100b4565b80630cc4681e146100b95780632665fad0146100ec578063809fdd33146101265780639374068f146101685780639c6f59be1461019c578063c8193255146101d0575b600080fd5b6100d6600480360360208110156100cf57600080fd5b5035610322565b6040805160ff9092168252519081900360200190f35b6101096004803603602081101561010257600080fd5b5035610333565b6040805167ffffffffffffffff9092168252519081900360200190f35b6101436004803603602081101561013c57600080fd5b503561033e565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101856004803603602081101561017e57600080fd5b5035610349565b6040805161ffff9092168252519081900360200190f35b6101b9600480360360208110156101b257600080fd5b5035610354565b6040805160039290920b8252519081900360200190f35b6101ed600480360360208110156101e657600080fd5b503561035f565b6040805163ffffffff9092168252519081900360200190f35b6102236004803603602081101561021c57600080fd5b503561036a565b6040805160019290920b8252519081900360200190f35b6102576004803603602081101561025057600080fd5b5035610375565b6040805160079290920b8252519081900360200190f35b61028b6004803603602081101561028457600080fd5b5035610380565b60408051600f9290920b8252519081900360200190f35b6102bf600480360360208110156102b857600080fd5b503561038b565b60408051918252519081900360200190f35b6102ee600480360360208110156102e757600080fd5b5035610396565b6040805160009290920b8252519081900360200190f35b6102bf6004803603602081101561031b57600080fd5b50356103a1565b600061032d826103ac565b92915050565b600061032d826103f2565b600061032d8261043b565b600061032d8261047f565b600061032d826104c2565b600061032d82610517565b600061032d8261055c565b600061032d826105ad565b600061032d8261060a565b600061032d8261066b565b600061032d826106af565b600061032d826106fe565b600061010082106103ee5760405162461bcd60e51b815260040180806020018281038252602581526020018061077c6025913960400191505060405180910390fd5b5090565b60006801000000000000000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107c86026913960400191505060405180910390fd5b6000600160801b82106103ee5760405162461bcd60e51b81526004018080602001828103825260278152602001806107a16027913960400191505060405180910390fd5b60006201000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107566026913960400191505060405180910390fd5b6000637fffffff1982121580156104dc5750638000000082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107ee6026913960400191505060405180910390fd5b600064010000000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107ee6026913960400191505060405180910390fd5b6000617fff198212158015610572575061800082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107566026913960400191505060405180910390fd5b6000677fffffffffffffff1982121580156105cf575067800000000000000082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107c86026913960400191505060405180910390fd5b60006f7fffffffffffffffffffffffffffffff19821215801561063057506001607f1b82125b6103ee5760405162461bcd60e51b81526004018080602001828103825260278152602001806107a16027913960400191505060405180910390fd5b6000600160ff1b82106103ee5760405162461bcd60e51b81526004018080602001828103825260288152602001806108146028913960400191505060405180910390fd5b6000607f1982121580156106c35750608082125b6103ee5760405162461bcd60e51b815260040180806020018281038252602581526020018061077c6025913960400191505060405180910390fd5b6000808212156103ee576040805162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015290519081900360640190fdfe53616665436173743a2076616c756520646f65736e27742066697420696e203136206269747353616665436173743a2076616c756520646f65736e27742066697420696e2038206269747353616665436173743a2076616c756520646f65736e27742066697420696e20313238206269747353616665436173743a2076616c756520646f65736e27742066697420696e203634206269747353616665436173743a2076616c756520646f65736e27742066697420696e203332206269747353616665436173743a2076616c756520646f65736e27742066697420696e20616e20696e74323536a26469706673582212207d240da711601fd6fe201c2d88718dffb4b1f985be6d38dab1e48733af56d55c64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"toInt128(int256)":"0xdd2a0316","toInt16(int256)":"0xcf65b4d3","toInt256(uint256)":"0xdfbe873b","toInt32(int256)":"0x9c6f59be","toInt64(int256)":"0xd6bd32aa","toInt8(int256)":"0xf136dc02","toUint128(uint256)":"0x809fdd33","toUint16(uint256)":"0x9374068f","toUint256(int256)":"0xfdcf791b","toUint32(uint256)":"0xc8193255","toUint64(uint256)":"0x2665fad0","toUint8(uint256)":"0x0cc4681e"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063cf65b4d311610071578063cf65b4d314610206578063d6bd32aa1461023a578063dd2a03161461026e578063dfbe873b146102a2578063f136dc02146102d1578063fdcf791b14610305576100b4565b80630cc4681e146100b95780632665fad0146100ec578063809fdd33146101265780639374068f146101685780639c6f59be1461019c578063c8193255146101d0575b600080fd5b6100d6600480360360208110156100cf57600080fd5b5035610322565b6040805160ff9092168252519081900360200190f35b6101096004803603602081101561010257600080fd5b5035610333565b6040805167ffffffffffffffff9092168252519081900360200190f35b6101436004803603602081101561013c57600080fd5b503561033e565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101856004803603602081101561017e57600080fd5b5035610349565b6040805161ffff9092168252519081900360200190f35b6101b9600480360360208110156101b257600080fd5b5035610354565b6040805160039290920b8252519081900360200190f35b6101ed600480360360208110156101e657600080fd5b503561035f565b6040805163ffffffff9092168252519081900360200190f35b6102236004803603602081101561021c57600080fd5b503561036a565b6040805160019290920b8252519081900360200190f35b6102576004803603602081101561025057600080fd5b5035610375565b6040805160079290920b8252519081900360200190f35b61028b6004803603602081101561028457600080fd5b5035610380565b60408051600f9290920b8252519081900360200190f35b6102bf600480360360208110156102b857600080fd5b503561038b565b60408051918252519081900360200190f35b6102ee600480360360208110156102e757600080fd5b5035610396565b6040805160009290920b8252519081900360200190f35b6102bf6004803603602081101561031b57600080fd5b50356103a1565b600061032d826103ac565b92915050565b600061032d826103f2565b600061032d8261043b565b600061032d8261047f565b600061032d826104c2565b600061032d82610517565b600061032d8261055c565b600061032d826105ad565b600061032d8261060a565b600061032d8261066b565b600061032d826106af565b600061032d826106fe565b600061010082106103ee5760405162461bcd60e51b815260040180806020018281038252602581526020018061077c6025913960400191505060405180910390fd5b5090565b60006801000000000000000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107c86026913960400191505060405180910390fd5b6000600160801b82106103ee5760405162461bcd60e51b81526004018080602001828103825260278152602001806107a16027913960400191505060405180910390fd5b60006201000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107566026913960400191505060405180910390fd5b6000637fffffff1982121580156104dc5750638000000082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107ee6026913960400191505060405180910390fd5b600064010000000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107ee6026913960400191505060405180910390fd5b6000617fff198212158015610572575061800082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107566026913960400191505060405180910390fd5b6000677fffffffffffffff1982121580156105cf575067800000000000000082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107c86026913960400191505060405180910390fd5b60006f7fffffffffffffffffffffffffffffff19821215801561063057506001607f1b82125b6103ee5760405162461bcd60e51b81526004018080602001828103825260278152602001806107a16027913960400191505060405180910390fd5b6000600160ff1b82106103ee5760405162461bcd60e51b81526004018080602001828103825260288152602001806108146028913960400191505060405180910390fd5b6000607f1982121580156106c35750608082125b6103ee5760405162461bcd60e51b815260040180806020018281038252602581526020018061077c6025913960400191505060405180910390fd5b6000808212156103ee576040805162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015290519081900360640190fdfe53616665436173743a2076616c756520646f65736e27742066697420696e203136206269747353616665436173743a2076616c756520646f65736e27742066697420696e2038206269747353616665436173743a2076616c756520646f65736e27742066697420696e20313238206269747353616665436173743a2076616c756520646f65736e27742066697420696e203634206269747353616665436173743a2076616c756520646f65736e27742066697420696e203332206269747353616665436173743a2076616c756520646f65736e27742066697420696e20616e20696e74323536a26469706673582212207d240da711601fd6fe201c2d88718dffb4b1f985be6d38dab1e48733af56d55c64736f6c634300060c0033"},"sourceId":"contracts/mocks/SafeCastMock.sol","sourcemap":"91:1228:63:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SafeERC20":{"abi":[],"contractName":"SafeERC20","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122005cffbceed689ab59b14f381e77a1ab4df09bde8f68f0b9b6f9a8d86610f4e4264736f6c634300060c0033"},"devdoc":{"details":"Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, which allows you to call the safe operations as `token.safeTransfer(...)`, etc.","kind":"dev","methods":{},"title":"SafeERC20","version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122005cffbceed689ab59b14f381e77a1ab4df09bde8f68f0b9b6f9a8d86610f4e4264736f6c634300060c0033"},"sourceId":"contracts/token/ERC20/SafeERC20.sol","sourcemap":"608:3104:90:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SafeERC20Wrapper":{"abi":[{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"decreaseAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"increaseAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"allowance_","type":"uint256"}],"name":"setAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"SafeERC20Wrapper","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50604051610a73380380610a738339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b0319909216919091179055610a0e806100656000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063811c34d31161005b578063811c34d3146100db5780638a4068dd146100e3578063b759f954146100eb578063de242ff4146101085761007d565b806310bad4cf1461008257806311e330b2146100a15780633ba93f26146100be575b600080fd5b61009f6004803603602081101561009857600080fd5b5035610122565b005b61009f600480360360208110156100b757600080fd5b503561013f565b61009f600480360360208110156100d457600080fd5b5035610159565b61009f6101bc565b61009f6101d9565b61009f6004803603602081101561010157600080fd5b50356101f3565b61011061020d565b60408051918252519081900360200190f35b6000805461013c916001600160a01b039091169083610292565b50565b6000805461013c916001600160a01b03909116908361038f565b6000805460408051631dd49f9360e11b81526004810185905290516001600160a01b0390921692633ba93f269260248084019382900301818387803b1580156101a157600080fd5b505af11580156101b5573d6000803e3d6000fd5b5050505050565b600080546101d7916001600160a01b03909116908080610425565b565b600080546101d7916001600160a01b03909116908061047f565b6000805461013c916001600160a01b0390911690836104d6565b6000805460408051636eb1769f60e11b8152600481018490526024810184905290516001600160a01b039092169163dd62ed3e91604480820192602092909190829003018186803b15801561026157600080fd5b505afa158015610275573d6000803e3d6000fd5b505050506040513d602081101561028b57600080fd5b5051905090565b6000610334826040518060600160405280602981526020016109506029913960408051636eb1769f60e11b81523060048201526001600160a01b03888116602483015291519189169163dd62ed3e91604480820192602092909190829003018186803b15801561030157600080fd5b505afa158015610315573d6000803e3d6000fd5b505050506040513d602081101561032b57600080fd5b505191906105e9565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052909150610389908590610680565b50505050565b600061033482856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156103f357600080fd5b505afa158015610407573d6000803e3d6000fd5b505050506040513d602081101561041d57600080fd5b505190610731565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610389908590610680565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526104d1908490610680565b505050565b80158061055c575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561052e57600080fd5b505afa158015610542573d6000803e3d6000fd5b505050506040513d602081101561055857600080fd5b5051155b6105975760405162461bcd60e51b81526004018080602001828103825260368152602001806109a36036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526104d1908490610680565b600081848411156106785760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561063d578181015183820152602001610625565b50505050905090810190601f16801561066a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606106d5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107929092919063ffffffff16565b8051909150156104d1578080602001905160208110156106f457600080fd5b50516104d15760405162461bcd60e51b815260040180806020018281038252602a815260200180610979602a913960400191505060405180910390fd5b60008282018381101561078b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60606107a184846000856107a9565b949350505050565b60606107b485610916565b610805576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106108445780518252601f199092019160209182019101610825565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146108a6576040519150601f19603f3d011682016040523d82523d6000602084013e6108ab565b606091505b509150915081156108bf5791506107a19050565b8051156108cf5780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561063d578181015183820152602001610625565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906107a157505015159291505056fe5361666545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212206efd3d5793413ccdf3ee7fcc997b1aa28697a1e6eb2295a220e12c83c7a7788764736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"allowance()":"0xde242ff4","approve(uint256)":"0xb759f954","decreaseAllowance(uint256)":"0x10bad4cf","increaseAllowance(uint256)":"0x11e330b2","setAllowance(uint256)":"0x3ba93f26","transfer()":"0x8a4068dd","transferFrom()":"0x811c34d3"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063811c34d31161005b578063811c34d3146100db5780638a4068dd146100e3578063b759f954146100eb578063de242ff4146101085761007d565b806310bad4cf1461008257806311e330b2146100a15780633ba93f26146100be575b600080fd5b61009f6004803603602081101561009857600080fd5b5035610122565b005b61009f600480360360208110156100b757600080fd5b503561013f565b61009f600480360360208110156100d457600080fd5b5035610159565b61009f6101bc565b61009f6101d9565b61009f6004803603602081101561010157600080fd5b50356101f3565b61011061020d565b60408051918252519081900360200190f35b6000805461013c916001600160a01b039091169083610292565b50565b6000805461013c916001600160a01b03909116908361038f565b6000805460408051631dd49f9360e11b81526004810185905290516001600160a01b0390921692633ba93f269260248084019382900301818387803b1580156101a157600080fd5b505af11580156101b5573d6000803e3d6000fd5b5050505050565b600080546101d7916001600160a01b03909116908080610425565b565b600080546101d7916001600160a01b03909116908061047f565b6000805461013c916001600160a01b0390911690836104d6565b6000805460408051636eb1769f60e11b8152600481018490526024810184905290516001600160a01b039092169163dd62ed3e91604480820192602092909190829003018186803b15801561026157600080fd5b505afa158015610275573d6000803e3d6000fd5b505050506040513d602081101561028b57600080fd5b5051905090565b6000610334826040518060600160405280602981526020016109506029913960408051636eb1769f60e11b81523060048201526001600160a01b03888116602483015291519189169163dd62ed3e91604480820192602092909190829003018186803b15801561030157600080fd5b505afa158015610315573d6000803e3d6000fd5b505050506040513d602081101561032b57600080fd5b505191906105e9565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052909150610389908590610680565b50505050565b600061033482856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156103f357600080fd5b505afa158015610407573d6000803e3d6000fd5b505050506040513d602081101561041d57600080fd5b505190610731565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610389908590610680565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526104d1908490610680565b505050565b80158061055c575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561052e57600080fd5b505afa158015610542573d6000803e3d6000fd5b505050506040513d602081101561055857600080fd5b5051155b6105975760405162461bcd60e51b81526004018080602001828103825260368152602001806109a36036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526104d1908490610680565b600081848411156106785760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561063d578181015183820152602001610625565b50505050905090810190601f16801561066a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606106d5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107929092919063ffffffff16565b8051909150156104d1578080602001905160208110156106f457600080fd5b50516104d15760405162461bcd60e51b815260040180806020018281038252602a815260200180610979602a913960400191505060405180910390fd5b60008282018381101561078b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60606107a184846000856107a9565b949350505050565b60606107b485610916565b610805576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106108445780518252601f199092019160209182019101610825565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146108a6576040519150601f19603f3d011682016040523d82523d6000602084013e6108ab565b606091505b509150915081156108bf5791506107a19050565b8051156108cf5780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561063d578181015183820152602001610625565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906107a157505015159291505056fe5361666545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212206efd3d5793413ccdf3ee7fcc997b1aa28697a1e6eb2295a220e12c83c7a7788764736f6c634300060c0033"},"sourceId":"contracts/mocks/SafeERC20Helper.sol","sourcemap":"2605:956:64:-:0;;;2709:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2709:65:64;2753:6;:14;;-1:-1:-1;;;;;2753:14:64;;;-1:-1:-1;;;;;;2753:14:64;;;;;;;;;2605:956;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SafeMath":{"abi":[],"contractName":"SafeMath","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207fba369605e72cb427851ff8ad9e7f251ebae41b09bc298939e6bbbf361d3e5364736f6c634300060c0033"},"devdoc":{"details":"Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restores this intuition by reverting the transaction when an operation overflows. Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207fba369605e72cb427851ff8ad9e7f251ebae41b09bc298939e6bbbf361d3e5364736f6c634300060c0033"},"sourceId":"contracts/math/SafeMath.sol","sourcemap":"622:4578:17:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SafeMathMock":{"abi":[{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"add","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"div","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"mod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"mul","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"sub","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}],"contractName":"SafeMathMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610490806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063771602f71461005c578063a391c15b14610091578063b67d77c5146100b4578063c8a4ac9c146100d7578063f43f523a146100fa575b600080fd5b61007f6004803603604081101561007257600080fd5b508035906020013561011d565b60408051918252519081900360200190f35b61007f600480360360408110156100a757600080fd5b5080359060200135610132565b61007f600480360360408110156100ca57600080fd5b508035906020013561013e565b61007f600480360360408110156100ed57600080fd5b508035906020013561014a565b61007f6004803603604081101561011057600080fd5b5080359060200135610156565b60006101298383610162565b90505b92915050565b600061012983836101bc565b600061012983836101fe565b60006101298383610240565b60006101298383610299565b600082820183811015610129576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061012983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506102db565b600061012983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061037d565b60008261024f5750600061012c565b8282028284828161025c57fe5b04146101295760405162461bcd60e51b815260040180806020018281038252602181526020018061043a6021913960400191505060405180910390fd5b600061012983836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f00000000000000008152506103d7565b600081836103675760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561032c578181015183820152602001610314565b50505050905090810190601f1680156103595780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161037357fe5b0495945050505050565b600081848411156103cf5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561032c578181015183820152602001610314565b505050900390565b600081836104265760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561032c578181015183820152602001610314565b5082848161043057fe5b0694935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212205969458e322f472fb82618222cda9043561141ded7c53c182eb64d094aca534864736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"add(uint256,uint256)":"0x771602f7","div(uint256,uint256)":"0xa391c15b","mod(uint256,uint256)":"0xf43f523a","mul(uint256,uint256)":"0xc8a4ac9c","sub(uint256,uint256)":"0xb67d77c5"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063771602f71461005c578063a391c15b14610091578063b67d77c5146100b4578063c8a4ac9c146100d7578063f43f523a146100fa575b600080fd5b61007f6004803603604081101561007257600080fd5b508035906020013561011d565b60408051918252519081900360200190f35b61007f600480360360408110156100a757600080fd5b5080359060200135610132565b61007f600480360360408110156100ca57600080fd5b508035906020013561013e565b61007f600480360360408110156100ed57600080fd5b508035906020013561014a565b61007f6004803603604081101561011057600080fd5b5080359060200135610156565b60006101298383610162565b90505b92915050565b600061012983836101bc565b600061012983836101fe565b60006101298383610240565b60006101298383610299565b600082820183811015610129576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061012983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506102db565b600061012983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061037d565b60008261024f5750600061012c565b8282028284828161025c57fe5b04146101295760405162461bcd60e51b815260040180806020018281038252602181526020018061043a6021913960400191505060405180910390fd5b600061012983836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f00000000000000008152506103d7565b600081836103675760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561032c578181015183820152602001610314565b50505050905090810190601f1680156103595780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161037357fe5b0495945050505050565b600081848411156103cf5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561032c578181015183820152602001610314565b505050900390565b600081836104265760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561032c578181015183820152602001610314565b5082848161043057fe5b0694935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212205969458e322f472fb82618222cda9043561141ded7c53c182eb64d094aca534864736f6c634300060c0033"},"sourceId":"contracts/mocks/SafeMathMock.sol","sourcemap":"90:589:65:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SignedSafeMath":{"abi":[],"contractName":"SignedSafeMath","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b478f454298524f5395e4ae2c86d2cc769b528631919b9f1e528103792d5804c64736f6c634300060c0033"},"devdoc":{"details":"Signed math operations with safety checks that revert on error.","kind":"dev","methods":{},"title":"SignedSafeMath","version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b478f454298524f5395e4ae2c86d2cc769b528631919b9f1e528103792d5804c64736f6c634300060c0033"},"sourceId":"contracts/math/SignedSafeMath.sol","sourcemap":"163:2499:18:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SignedSafeMathMock":{"abi":[{"inputs":[{"internalType":"int256","name":"a","type":"int256"},{"internalType":"int256","name":"b","type":"int256"}],"name":"add","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"},{"internalType":"int256","name":"b","type":"int256"}],"name":"div","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"},{"internalType":"int256","name":"b","type":"int256"}],"name":"mul","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"},{"internalType":"int256","name":"b","type":"int256"}],"name":"sub","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"}],"contractName":"SignedSafeMathMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610416806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80634350913814610051578063a5f3c23b14610086578063adefc37b146100a9578063bbe93d91146100cc575b600080fd5b6100746004803603604081101561006757600080fd5b50803590602001356100ef565b60408051918252519081900360200190f35b6100746004803603604081101561009c57600080fd5b5080359060200135610104565b610074600480360360408110156100bf57600080fd5b5080359060200135610110565b610074600480360360408110156100e257600080fd5b508035906020013561011c565b60006100fb8383610128565b90505b92915050565b60006100fb83836101e0565b60006100fb8383610245565b60006100fb83836102aa565b60008161017c576040805162461bcd60e51b815260206004820181905260248201527f5369676e6564536166654d6174683a206469766973696f6e206279207a65726f604482015290519081900360640190fd5b816000191480156101905750600160ff1b83145b156101cc5760405162461bcd60e51b81526004018080602001828103825260218152602001806103756021913960400191505060405180910390fd5b60008284816101d757fe5b05949350505050565b60008282018183128015906101f55750838112155b8061020a575060008312801561020a57508381125b6100fb5760405162461bcd60e51b81526004018080602001828103825260218152602001806103546021913960400191505060405180910390fd5b600081830381831280159061025a5750838113155b8061026f575060008312801561026f57508381135b6100fb5760405162461bcd60e51b81526004018080602001828103825260248152602001806103bd6024913960400191505060405180910390fd5b6000826102b9575060006100fe565b826000191480156102cd5750600160ff1b82145b156103095760405162461bcd60e51b81526004018080602001828103825260278152602001806103966027913960400191505060405180910390fd5b8282028284828161031657fe5b05146100fb5760405162461bcd60e51b81526004018080602001828103825260278152602001806103966027913960400191505060405180910390fdfe5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f775369676e6564536166654d6174683a206469766973696f6e206f766572666c6f775369676e6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775369676e6564536166654d6174683a207375627472616374696f6e206f766572666c6f77a26469706673582212200c87c8e6ec612152c42618fb37668e9ce52a300c58dc7dbc8a2ec628ca71fdca64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"add(int256,int256)":"0xa5f3c23b","div(int256,int256)":"0x43509138","mul(int256,int256)":"0xbbe93d91","sub(int256,int256)":"0xadefc37b"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80634350913814610051578063a5f3c23b14610086578063adefc37b146100a9578063bbe93d91146100cc575b600080fd5b6100746004803603604081101561006757600080fd5b50803590602001356100ef565b60408051918252519081900360200190f35b6100746004803603604081101561009c57600080fd5b5080359060200135610104565b610074600480360360408110156100bf57600080fd5b5080359060200135610110565b610074600480360360408110156100e257600080fd5b508035906020013561011c565b60006100fb8383610128565b90505b92915050565b60006100fb83836101e0565b60006100fb8383610245565b60006100fb83836102aa565b60008161017c576040805162461bcd60e51b815260206004820181905260248201527f5369676e6564536166654d6174683a206469766973696f6e206279207a65726f604482015290519081900360640190fd5b816000191480156101905750600160ff1b83145b156101cc5760405162461bcd60e51b81526004018080602001828103825260218152602001806103756021913960400191505060405180910390fd5b60008284816101d757fe5b05949350505050565b60008282018183128015906101f55750838112155b8061020a575060008312801561020a57508381125b6100fb5760405162461bcd60e51b81526004018080602001828103825260218152602001806103546021913960400191505060405180910390fd5b600081830381831280159061025a5750838113155b8061026f575060008312801561026f57508381135b6100fb5760405162461bcd60e51b81526004018080602001828103825260248152602001806103bd6024913960400191505060405180910390fd5b6000826102b9575060006100fe565b826000191480156102cd5750600160ff1b82145b156103095760405162461bcd60e51b81526004018080602001828103825260278152602001806103966027913960400191505060405180910390fd5b8282028284828161031657fe5b05146100fb5760405162461bcd60e51b81526004018080602001828103825260278152602001806103966027913960400191505060405180910390fdfe5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f775369676e6564536166654d6174683a206469766973696f6e206f766572666c6f775369676e6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775369676e6564536166654d6174683a207375627472616374696f6e206f766572666c6f77a26469706673582212200c87c8e6ec612152c42618fb37668e9ce52a300c58dc7dbc8a2ec628ca71fdca64736f6c634300060c0033"},"sourceId":"contracts/mocks/SignedSafeMathMock.sol","sourcemap":"96:494:66:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Strings":{"abi":[],"contractName":"Strings","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220dccbe01ba3a01385181b4b2545e3dc389fdc3ab2d11f45559a7ee852975a5f0664736f6c634300060c0033"},"devdoc":{"details":"String operations.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220dccbe01ba3a01385181b4b2545e3dc389fdc3ab2d11f45559a7ee852975a5f0664736f6c634300060c0033"},"sourceId":"contracts/utils/Strings.sol","sourcemap":"93:834:113:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"StringsMock":{"abi":[{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"fromUint256","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}],"contractName":"StringsMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506101e6806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063a2bd364414610030575b600080fd5b61004d6004803603602081101561004657600080fd5b50356100c2565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561008757818101518382015260200161006f565b50505050905090810190601f1680156100b45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60606100cd826100d5565b90505b919050565b6060816100fa57506040805180820190915260018152600360fc1b60208201526100d0565b8160005b811561011257600101600a820491506100fe565b60608167ffffffffffffffff8111801561012b57600080fd5b506040519080825280601f01601f191660200182016040528015610156576020820181803683370190505b50859350905060001982015b83156101a757600a840660300160f81b8282806001900393508151811061018557fe5b60200101906001600160f81b031916908160001a905350600a84049350610162565b5094935050505056fea2646970667358221220b3fae198e8616bfc87bc66e8d7c6135f6f577fa15c77ff44f726260ee2b4827864736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"fromUint256(uint256)":"0xa2bd3644"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063a2bd364414610030575b600080fd5b61004d6004803603602081101561004657600080fd5b50356100c2565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561008757818101518382015260200161006f565b50505050905090810190601f1680156100b45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60606100cd826100d5565b90505b919050565b6060816100fa57506040805180820190915260018152600360fc1b60208201526100d0565b8160005b811561011257600101600a820491506100fe565b60608167ffffffffffffffff8111801561012b57600080fd5b506040519080825280601f01601f191660200182016040528015610156576020820181803683370190505b50859350905060001982015b83156101a757600a840660300160f81b8282806001900393508151811061018557fe5b60200101906001600160f81b031916908160001a905350600a84049350610162565b5094935050505056fea2646970667358221220b3fae198e8616bfc87bc66e8d7c6135f6f577fa15c77ff44f726260ee2b4827864736f6c634300060c0033"},"sourceId":"contracts/mocks/StringsMock.sol","sourcemap":"90:148:67:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SupportsInterfaceWithLookupMock":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"INTERFACE_ID_ERC165","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"SupportsInterfaceWithLookupMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506100216301ffc9a760e01b610026565b610094565b6001600160e01b0319808216141561006f5760405162461bcd60e51b815260040180806020018281038252602f815260200180610194602f913960400191505060405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b60f2806100a26000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c14606f575b600080fd5b605b60048036036020811015604b57600080fd5b50356001600160e01b0319166092565b604080519115158252519081900360200190f35b607560b1565b604080516001600160e01b03199092168252519081900360200190f35b6001600160e01b03191660009081526020819052604090205460ff1690565b6301ffc9a760e01b8156fea26469706673582212205d8229dcef87407727046a393c05132666aef2088e6a4db8cb225c0b54ade1d564736f6c634300060c0033455243313635496e7465726661636573537570706f727465643a20696e76616c696420696e74657266616365206964"},"devdoc":{"kind":"dev","methods":{"constructor":{"details":"A contract implementing SupportsInterfaceWithLookup implement ERC165 itself."},"supportsInterface(bytes4)":{"details":"Implement supportsInterface(bytes4) using a lookup table."}},"stateVariables":{"_supportedInterfaces":{"details":"A mapping of interface id to whether or not it's supported."}},"version":1},"methodIdentifiers":{"INTERFACE_ID_ERC165()":"0x34d7006c","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c14606f575b600080fd5b605b60048036036020811015604b57600080fd5b50356001600160e01b0319166092565b604080519115158252519081900360200190f35b607560b1565b604080516001600160e01b03199092168252519081900360200190f35b6001600160e01b03191660009081526020819052604090205460ff1690565b6301ffc9a760e01b8156fea26469706673582212205d8229dcef87407727046a393c05132666aef2088e6a4db8cb225c0b54ade1d564736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC165/ERC165InterfacesSupported.sol","sourcemap":"629:1062:32:-:0;;;1091:78;;;;;;;;;-1:-1:-1;1123:39:32;-1:-1:-1;;;1123:18:32;:39::i;:::-;629:1062;;1480:209;-1:-1:-1;;;;;;1555:25:32;;;;;1547:85;;;;-1:-1:-1;;;1547:85:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1642:33:32;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1642:40:32;1678:4;1642:40;;;1480:209::o;629:1062::-;;;;;;;","userdoc":{"kind":"user","methods":{},"notice":"https://eips.ethereum.org/EIPS/eip-214#specification From the specification: > Any attempts to make state-changing operations inside an execution instance with STATIC set to true will instead throw an exception. > These operations include [...], LOG0, LOG1, LOG2, [...] therefore, because this contract is staticcall'd we need to not emit events (which is how solidity-coverage works) solidity-coverage ignores the /mocks folder, so we duplicate its implementation here to avoid instrumenting it","version":1}},"TokenTimelock":{"abi":[{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"releaseTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"contractName":"TokenTimelock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5060405161068a38038061068a8339818101604052606081101561003357600080fd5b50805160208201516040909201519091904281116100825760405162461bcd60e51b81526004018080602001828103825260328152602001806106586032913960400191505060405180910390fd5b600080546001600160a01b039485166001600160a01b0319918216179091556001805493909416921691909117909155600255610594806100c46000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806338af3eed1461005157806386d1a69f14610075578063b91d40011461007f578063fc0c546a14610099575b600080fd5b6100596100a1565b604080516001600160a01b039092168252519081900360200190f35b61007d6100b0565b005b6100876101c7565b60408051918252519081900360200190f35b6100596101cd565b6001546001600160a01b031690565b6002544210156100f15760405162461bcd60e51b81526004018080602001828103825260328152602001806104e06032913960400191505060405180910390fd5b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561013d57600080fd5b505afa158015610151573d6000803e3d6000fd5b505050506040513d602081101561016757600080fd5b50519050806101a75760405162461bcd60e51b815260040180806020018281038252602381526020018061053c6023913960400191505060405180910390fd5b6001546000546101c4916001600160a01b039182169116836101dc565b50565b60025490565b6000546001600160a01b031690565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261022e908490610233565b505050565b6060610288826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166102e49092919063ffffffff16565b80519091501561022e578080602001905160208110156102a757600080fd5b505161022e5760405162461bcd60e51b815260040180806020018281038252602a815260200180610512602a913960400191505060405180910390fd5b60606102f384846000856102fb565b949350505050565b6060610306856104a6565b610357576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106103965780518252601f199092019160209182019101610377565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146103f8576040519150601f19603f3d011682016040523d82523d6000602084013e6103fd565b606091505b509150915081156104115791506102f39050565b8051156104215780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561046b578181015183820152602001610453565b50505050905090810190601f1680156104985780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906102f357505015159291505056fe546f6b656e54696d656c6f636b3a2063757272656e742074696d65206973206265666f72652072656c656173652074696d655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e54696d656c6f636b3a206e6f20746f6b656e7320746f2072656c65617365a26469706673582212209556424ea791b59882eff435f5403b04b9940949c346c431cc08b8b4e04fdddc64736f6c634300060c0033546f6b656e54696d656c6f636b3a2072656c656173652074696d65206973206265666f72652063757272656e742074696d65"},"devdoc":{"details":"A token holder contract that will allow a beneficiary to extract the tokens after a given release time. Useful for simple vesting schedules like \"advisors get all of their tokens after 1 year\".","kind":"dev","methods":{"beneficiary()":{"returns":{"_0":"the beneficiary of the tokens."}},"releaseTime()":{"returns":{"_0":"the time when the tokens are released."}},"token()":{"returns":{"_0":"the token being held."}}},"version":1},"methodIdentifiers":{"beneficiary()":"0x38af3eed","release()":"0x86d1a69f","releaseTime()":"0xb91d4001","token()":"0xfc0c546a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806338af3eed1461005157806386d1a69f14610075578063b91d40011461007f578063fc0c546a14610099575b600080fd5b6100596100a1565b604080516001600160a01b039092168252519081900360200190f35b61007d6100b0565b005b6100876101c7565b60408051918252519081900360200190f35b6100596101cd565b6001546001600160a01b031690565b6002544210156100f15760405162461bcd60e51b81526004018080602001828103825260328152602001806104e06032913960400191505060405180910390fd5b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561013d57600080fd5b505afa158015610151573d6000803e3d6000fd5b505050506040513d602081101561016757600080fd5b50519050806101a75760405162461bcd60e51b815260040180806020018281038252602381526020018061053c6023913960400191505060405180910390fd5b6001546000546101c4916001600160a01b039182169116836101dc565b50565b60025490565b6000546001600160a01b031690565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261022e908490610233565b505050565b6060610288826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166102e49092919063ffffffff16565b80519091501561022e578080602001905160208110156102a757600080fd5b505161022e5760405162461bcd60e51b815260040180806020018281038252602a815260200180610512602a913960400191505060405180910390fd5b60606102f384846000856102fb565b949350505050565b6060610306856104a6565b610357576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106103965780518252601f199092019160209182019101610377565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146103f8576040519150601f19603f3d011682016040523d82523d6000602084013e6103fd565b606091505b509150915081156104115791506102f39050565b8051156104215780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561046b578181015183820152602001610453565b50505050905090810190601f1680156104985780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906102f357505015159291505056fe546f6b656e54696d656c6f636b3a2063757272656e742074696d65206973206265666f72652072656c656173652074696d655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e54696d656c6f636b3a206e6f20746f6b656e7320746f2072656c65617365a26469706673582212209556424ea791b59882eff435f5403b04b9940949c346c431cc08b8b4e04fdddc64736f6c634300060c0033"},"sourceId":"contracts/token/ERC20/TokenTimelock.sol","sourcemap":"307:1564:91:-:0;;;612:335;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;612:335:91;;;;;;;;;;;;;;774:15;760:29;;752:92;;;;-1:-1:-1;;;752:92:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;854:6;:14;;-1:-1:-1;;;;;854:14:91;;;-1:-1:-1;;;;;;854:14:91;;;;;;;;878:26;;;;;;;;;;;;;;;914:12;:26;307:1564;;;;;;","userdoc":{"kind":"user","methods":{"release()":{"notice":"Transfers tokens held by timelock to beneficiary."}},"version":1}},"__unstable__ERC20Owned":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"inputs":[{"internalType":"address","name":"tokenOwner","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":"account","type":"address"}],"name":"balanceOf","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"__unstable__ERC20Owned","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b50604051620011ea380380620011ea833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001b89060039060208501906200024c565b508051620001ce9060049060208401906200024c565b50506005805460ff19166012179055506000620001ea62000248565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505050620002e8565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028f57805160ff1916838001178555620002bf565b82800160010185558215620002bf579182015b82811115620002bf578251825591602001919060010190620002a2565b50620002cd929150620002d1565b5090565b5b80821115620002cd5760008155600101620002d2565b610ef280620002f86000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d7146102d9578063a9059cbb14610305578063dd62ed3e14610331578063f2fde38b1461035f576100f5565b806370a082311461027f578063715018a6146102a55780638da5cb5b146102ad57806395d89b41146102d1576100f5565b806323b872dd116100d357806323b872dd146101d1578063313ce56714610207578063395093511461022557806340c10f1914610251576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b610102610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b03813516906020013561041b565b604080519115158252519081900360200190f35b6101bf610439565b60408051918252519081900360200190f35b6101a3600480360360608110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040013561043f565b61020f61048a565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561023b57600080fd5b506001600160a01b038135169060200135610493565b61027d6004803603604081101561026757600080fd5b506001600160a01b0381351690602001356104e6565b005b6101bf6004803603602081101561029557600080fd5b50356001600160a01b0316610563565b61027d61057e565b6102b561063d565b604080516001600160a01b039092168252519081900360200190f35b610102610651565b6101a3600480360360408110156102ef57600080fd5b506001600160a01b0381351690602001356106b2565b6101a36004803603604081101561031b57600080fd5b506001600160a01b03813516906020013561071a565b6101bf6004803603604081101561034757600080fd5b506001600160a01b038135811691602001351661072e565b61027d6004803603602081101561037557600080fd5b50356001600160a01b031661076b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b820191906000526020600020905b8154815290600101906020018083116103f457829003601f168201915b5050505050905090565b600061042f610428610886565b848461088a565b5060015b92915050565b60025490565b600061044961063d565b6001600160a01b0316836001600160a01b031614156104755761046d8484846108c0565b506001610483565b610480848484610a1b565b90505b9392505050565b60055460ff1690565b600061042f6104a0610886565b846104e185600160006104b1610886565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610a9d565b61088a565b6104ee610886565b60055461010090046001600160a01b03908116911614610555576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61055f8282610af7565b5050565b6001600160a01b031660009081526020819052604090205490565b610586610886565b60055461010090046001600160a01b039081169116146105ed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b600061042f6106bf610886565b846104e185604051806060016040528060258152602001610e9860259139600160006106e9610886565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610be7565b600061042f610727610886565b84846108c0565b600061073861063d565b6001600160a01b0316826001600160a01b0316141561075a5750600019610433565b6107648383610c7e565b9050610433565b610773610886565b60055461010090046001600160a01b039081169116146107da576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661081f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610db96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b61089261063d565b6001600160a01b0316826001600160a01b031614156108b0576108bb565b6108bb838383610ca9565b505050565b6001600160a01b0383166109055760405162461bcd60e51b8152600401808060200182810382526025815260200180610e4f6025913960400191505060405180910390fd5b6001600160a01b03821661094a5760405162461bcd60e51b8152600401808060200182810382526023815260200180610d966023913960400191505060405180910390fd5b6109558383836108bb565b61099281604051806060016040528060268152602001610e01602691396001600160a01b0386166000908152602081905260409020549190610be7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546109c19082610a9d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000610a288484846108c0565b610a9384610a34610886565b6104e185604051806060016040528060288152602001610e27602891396001600160a01b038a16600090815260016020526040812090610a72610886565b6001600160a01b031681526020810191909152604001600020549190610be7565b5060019392505050565b600082820183811015610483576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610b52576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610b5e600083836108bb565b600254610b6b9082610a9d565b6002556001600160a01b038216600090815260208190526040902054610b919082610a9d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115610c765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c3b578181015183820152602001610c23565b50505050905090810190601f168015610c685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610cee5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e746024913960400191505060405180910390fd5b6001600160a01b038216610d335760405162461bcd60e51b8152600401808060200182810382526022815260200180610ddf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209f7e4d528c2f5e0178238b471a63b49a19c70b02b5d8e226290a430d9cae242164736f6c634300060c0033"},"devdoc":{"details":"An ERC20 token owned by another contract, which has minting permissions and can use transferFrom to receive anyone's tokens. This contract is an internal helper for GSNRecipientERC20Fee, and should not be used outside of this context.","kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}},"title":"__unstable__ERC20Owned","version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd","transferOwnership(address)":"0xf2fde38b"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d7146102d9578063a9059cbb14610305578063dd62ed3e14610331578063f2fde38b1461035f576100f5565b806370a082311461027f578063715018a6146102a55780638da5cb5b146102ad57806395d89b41146102d1576100f5565b806323b872dd116100d357806323b872dd146101d1578063313ce56714610207578063395093511461022557806340c10f1914610251576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b610102610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b03813516906020013561041b565b604080519115158252519081900360200190f35b6101bf610439565b60408051918252519081900360200190f35b6101a3600480360360608110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040013561043f565b61020f61048a565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561023b57600080fd5b506001600160a01b038135169060200135610493565b61027d6004803603604081101561026757600080fd5b506001600160a01b0381351690602001356104e6565b005b6101bf6004803603602081101561029557600080fd5b50356001600160a01b0316610563565b61027d61057e565b6102b561063d565b604080516001600160a01b039092168252519081900360200190f35b610102610651565b6101a3600480360360408110156102ef57600080fd5b506001600160a01b0381351690602001356106b2565b6101a36004803603604081101561031b57600080fd5b506001600160a01b03813516906020013561071a565b6101bf6004803603604081101561034757600080fd5b506001600160a01b038135811691602001351661072e565b61027d6004803603602081101561037557600080fd5b50356001600160a01b031661076b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b820191906000526020600020905b8154815290600101906020018083116103f457829003601f168201915b5050505050905090565b600061042f610428610886565b848461088a565b5060015b92915050565b60025490565b600061044961063d565b6001600160a01b0316836001600160a01b031614156104755761046d8484846108c0565b506001610483565b610480848484610a1b565b90505b9392505050565b60055460ff1690565b600061042f6104a0610886565b846104e185600160006104b1610886565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610a9d565b61088a565b6104ee610886565b60055461010090046001600160a01b03908116911614610555576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61055f8282610af7565b5050565b6001600160a01b031660009081526020819052604090205490565b610586610886565b60055461010090046001600160a01b039081169116146105ed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b600061042f6106bf610886565b846104e185604051806060016040528060258152602001610e9860259139600160006106e9610886565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610be7565b600061042f610727610886565b84846108c0565b600061073861063d565b6001600160a01b0316826001600160a01b0316141561075a5750600019610433565b6107648383610c7e565b9050610433565b610773610886565b60055461010090046001600160a01b039081169116146107da576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661081f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610db96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b61089261063d565b6001600160a01b0316826001600160a01b031614156108b0576108bb565b6108bb838383610ca9565b505050565b6001600160a01b0383166109055760405162461bcd60e51b8152600401808060200182810382526025815260200180610e4f6025913960400191505060405180910390fd5b6001600160a01b03821661094a5760405162461bcd60e51b8152600401808060200182810382526023815260200180610d966023913960400191505060405180910390fd5b6109558383836108bb565b61099281604051806060016040528060268152602001610e01602691396001600160a01b0386166000908152602081905260409020549190610be7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546109c19082610a9d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000610a288484846108c0565b610a9384610a34610886565b6104e185604051806060016040528060288152602001610e27602891396001600160a01b038a16600090815260016020526040812090610a72610886565b6001600160a01b031681526020810191909152604001600020549190610be7565b5060019392505050565b600082820183811015610483576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610b52576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610b5e600083836108bb565b600254610b6b9082610a9d565b6002556001600160a01b038216600090815260208190526040902054610b919082610a9d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115610c765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c3b578181015183820152602001610c23565b50505050905090810190601f168015610c685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610cee5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e746024913960400191505060405180910390fd5b6001600160a01b038216610d335760405162461bcd60e51b8152600401808060200182810382526022815260200180610ddf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209f7e4d528c2f5e0178238b471a63b49a19c70b02b5d8e226290a430d9cae242164736f6c634300060c0033"},"sourceId":"contracts/GSN/GSNRecipientERC20Fee.sol","sourcemap":"4742:1321:2:-:0;;;4855:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4855:84:2;;;;;;;;;;-1:-1:-1;4855:84:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4855:84:2;;;;;;;;;;-1:-1:-1;4855:84:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4855:84:2;;-1:-1:-1;;2085:12:84;;4922:4:2;;-1:-1:-1;4928:6:2;;2085:12:84;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;2133:9:84;885:12:7;:10;:12::i;:::-;907:6;:18;;-1:-1:-1;;;;;;907:18:7;-1:-1:-1;;;;;;907:18:7;;;;;;;;;;;;940:43;;907:18;;-1:-1:-1;907:18:7;-1:-1:-1;;940:43:7;;-1:-1:-1;;940:43:7;831:159;4855:84:2;;4742:1321;;590:104:0;677:10;590:104;:::o;4742:1321:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4742:1321:2;;;-1:-1:-1;4742:1321:2;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}}},"manifest":"ethpm/3","sources":{"contracts/GSN/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\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 GSN 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 Context {\n function _msgSender() internal view virtual returns (address payable) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes memory) {\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\n return msg.data;\n }\n}\n","urls":[]},"contracts/GSN/GSNRecipient.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IRelayRecipient.sol\";\nimport \"./IRelayHub.sol\";\nimport \"./Context.sol\";\n\n/**\n * @dev Base GSN recipient contract: includes the {IRelayRecipient} interface\n * and enables GSN support on all contracts in the inheritance tree.\n *\n * TIP: This contract is abstract. The functions {IRelayRecipient-acceptRelayedCall},\n * {_preRelayedCall}, and {_postRelayedCall} are not implemented and must be\n * provided by derived contracts. See the\n * xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategies] for more\n * information on how to use the pre-built {GSNRecipientSignature} and\n * {GSNRecipientERC20Fee}, or how to write your own.\n */\nabstract contract GSNRecipient is IRelayRecipient, Context {\n // Default RelayHub address, deployed on mainnet and all testnets at the same address\n address private _relayHub = 0xD216153c06E857cD7f72665E0aF1d7D82172F494;\n\n uint256 constant private _RELAYED_CALL_ACCEPTED = 0;\n uint256 constant private _RELAYED_CALL_REJECTED = 11;\n\n // How much gas is forwarded to postRelayedCall\n uint256 constant internal _POST_RELAYED_CALL_MAX_GAS = 100000;\n\n /**\n * @dev Emitted when a contract changes its {IRelayHub} contract to a new one.\n */\n event RelayHubChanged(address indexed oldRelayHub, address indexed newRelayHub);\n\n /**\n * @dev Returns the address of the {IRelayHub} contract for this recipient.\n */\n function getHubAddr() public view override returns (address) {\n return _relayHub;\n }\n\n /**\n * @dev Switches to a new {IRelayHub} instance. This method is added for future-proofing: there's no reason to not\n * use the default instance.\n *\n * IMPORTANT: After upgrading, the {GSNRecipient} will no longer be able to receive relayed calls from the old\n * {IRelayHub} instance. Additionally, all funds should be previously withdrawn via {_withdrawDeposits}.\n */\n function _upgradeRelayHub(address newRelayHub) internal virtual {\n address currentRelayHub = _relayHub;\n require(newRelayHub != address(0), \"GSNRecipient: new RelayHub is the zero address\");\n require(newRelayHub != currentRelayHub, \"GSNRecipient: new RelayHub is the current one\");\n\n emit RelayHubChanged(currentRelayHub, newRelayHub);\n\n _relayHub = newRelayHub;\n }\n\n /**\n * @dev Returns the version string of the {IRelayHub} for which this recipient implementation was built. If\n * {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version.\n */\n // This function is view for future-proofing, it may require reading from\n // storage in the future.\n function relayHubVersion() public view returns (string memory) {\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\n return \"1.0.0\";\n }\n\n /**\n * @dev Withdraws the recipient's deposits in `RelayHub`.\n *\n * Derived contracts should expose this in an external interface with proper access control.\n */\n function _withdrawDeposits(uint256 amount, address payable payee) internal virtual {\n IRelayHub(_relayHub).withdraw(amount, payee);\n }\n\n // Overrides for Context's functions: when called from RelayHub, sender and\n // data require some pre-processing: the actual sender is stored at the end\n // of the call data, which in turns means it needs to be removed from it\n // when handling said data.\n\n /**\n * @dev Replacement for msg.sender. Returns the actual sender of a transaction: msg.sender for regular transactions,\n * and the end-user for GSN relayed calls (where msg.sender is actually `RelayHub`).\n *\n * IMPORTANT: Contracts derived from {GSNRecipient} should never use `msg.sender`, and use {_msgSender} instead.\n */\n function _msgSender() internal view virtual override returns (address payable) {\n if (msg.sender != _relayHub) {\n return msg.sender;\n } else {\n return _getRelayedCallSender();\n }\n }\n\n /**\n * @dev Replacement for msg.data. Returns the actual calldata of a transaction: msg.data for regular transactions,\n * and a reduced version for GSN relayed calls (where msg.data contains additional information).\n *\n * IMPORTANT: Contracts derived from {GSNRecipient} should never use `msg.data`, and use {_msgData} instead.\n */\n function _msgData() internal view virtual override returns (bytes memory) {\n if (msg.sender != _relayHub) {\n return msg.data;\n } else {\n return _getRelayedCallData();\n }\n }\n\n // Base implementations for pre and post relayedCall: only RelayHub can invoke them, and data is forwarded to the\n // internal hook.\n\n /**\n * @dev See `IRelayRecipient.preRelayedCall`.\n *\n * This function should not be overriden directly, use `_preRelayedCall` instead.\n *\n * * Requirements:\n *\n * - the caller must be the `RelayHub` contract.\n */\n function preRelayedCall(bytes memory context) public virtual override returns (bytes32) {\n require(msg.sender == getHubAddr(), \"GSNRecipient: caller is not RelayHub\");\n return _preRelayedCall(context);\n }\n\n /**\n * @dev See `IRelayRecipient.preRelayedCall`.\n *\n * Called by `GSNRecipient.preRelayedCall`, which asserts the caller is the `RelayHub` contract. Derived contracts\n * must implement this function with any relayed-call preprocessing they may wish to do.\n *\n */\n function _preRelayedCall(bytes memory context) internal virtual returns (bytes32);\n\n /**\n * @dev See `IRelayRecipient.postRelayedCall`.\n *\n * This function should not be overriden directly, use `_postRelayedCall` instead.\n *\n * * Requirements:\n *\n * - the caller must be the `RelayHub` contract.\n */\n function postRelayedCall(bytes memory context, bool success, uint256 actualCharge, bytes32 preRetVal) public virtual override {\n require(msg.sender == getHubAddr(), \"GSNRecipient: caller is not RelayHub\");\n _postRelayedCall(context, success, actualCharge, preRetVal);\n }\n\n /**\n * @dev See `IRelayRecipient.postRelayedCall`.\n *\n * Called by `GSNRecipient.postRelayedCall`, which asserts the caller is the `RelayHub` contract. Derived contracts\n * must implement this function with any relayed-call postprocessing they may wish to do.\n *\n */\n function _postRelayedCall(bytes memory context, bool success, uint256 actualCharge, bytes32 preRetVal) internal virtual;\n\n /**\n * @dev Return this in acceptRelayedCall to proceed with the execution of a relayed call. Note that this contract\n * will be charged a fee by RelayHub\n */\n function _approveRelayedCall() internal pure returns (uint256, bytes memory) {\n return _approveRelayedCall(\"\");\n }\n\n /**\n * @dev See `GSNRecipient._approveRelayedCall`.\n *\n * This overload forwards `context` to _preRelayedCall and _postRelayedCall.\n */\n function _approveRelayedCall(bytes memory context) internal pure returns (uint256, bytes memory) {\n return (_RELAYED_CALL_ACCEPTED, context);\n }\n\n /**\n * @dev Return this in acceptRelayedCall to impede execution of a relayed call. No fees will be charged.\n */\n function _rejectRelayedCall(uint256 errorCode) internal pure returns (uint256, bytes memory) {\n return (_RELAYED_CALL_REJECTED + errorCode, \"\");\n }\n\n /*\n * @dev Calculates how much RelayHub will charge a recipient for using `gas` at a `gasPrice`, given a relayer's\n * `serviceFee`.\n */\n function _computeCharge(uint256 gas, uint256 gasPrice, uint256 serviceFee) internal pure returns (uint256) {\n // The fee is expressed as a percentage. E.g. a value of 40 stands for a 40% fee, so the recipient will be\n // charged for 1.4 times the spent amount.\n return (gas * gasPrice * (100 + serviceFee)) / 100;\n }\n\n function _getRelayedCallSender() private pure returns (address payable result) {\n // We need to read 20 bytes (an address) located at array index msg.data.length - 20. In memory, the array\n // is prefixed with a 32-byte length value, so we first add 32 to get the memory read index. However, doing\n // so would leave the address in the upper 20 bytes of the 32-byte word, which is inconvenient and would\n // require bit shifting. We therefore subtract 12 from the read index so the address lands on the lower 20\n // bytes. This can always be done due to the 32-byte prefix.\n\n // The final memory read index is msg.data.length - 20 + 32 - 12 = msg.data.length. Using inline assembly is the\n // easiest/most-efficient way to perform this operation.\n\n // These fields are not accessible from assembly\n bytes memory array = msg.data;\n uint256 index = msg.data.length;\n\n // solhint-disable-next-line no-inline-assembly\n assembly {\n // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.\n result := and(mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff)\n }\n return result;\n }\n\n function _getRelayedCallData() private pure returns (bytes memory) {\n // RelayHub appends the sender address at the end of the calldata, so in order to retrieve the actual msg.data,\n // we must strip the last 20 bytes (length of an address type) from it.\n\n uint256 actualDataLength = msg.data.length - 20;\n bytes memory actualData = new bytes(actualDataLength);\n\n for (uint256 i = 0; i < actualDataLength; ++i) {\n actualData[i] = msg.data[i];\n }\n\n return actualData;\n }\n}\n","urls":[]},"contracts/GSN/GSNRecipientERC20Fee.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./GSNRecipient.sol\";\nimport \"../math/SafeMath.sol\";\nimport \"../access/Ownable.sol\";\nimport \"../token/ERC20/SafeERC20.sol\";\nimport \"../token/ERC20/ERC20.sol\";\n\n/**\n * @dev A xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategy] that charges transaction fees in a special purpose ERC20\n * token, which we refer to as the gas payment token. The amount charged is exactly the amount of Ether charged to the\n * recipient. This means that the token is essentially pegged to the value of Ether.\n *\n * The distribution strategy of the gas payment token to users is not defined by this contract. It's a mintable token\n * whose only minter is the recipient, so the strategy must be implemented in a derived contract, making use of the\n * internal {_mint} function.\n */\ncontract GSNRecipientERC20Fee is GSNRecipient {\n using SafeERC20 for __unstable__ERC20Owned;\n using SafeMath for uint256;\n\n enum GSNRecipientERC20FeeErrorCodes {\n INSUFFICIENT_BALANCE\n }\n\n __unstable__ERC20Owned private _token;\n\n /**\n * @dev The arguments to the constructor are the details that the gas payment token will have: `name` and `symbol`. `decimals` is hard-coded to 18.\n */\n constructor(string memory name, string memory symbol) public {\n _token = new __unstable__ERC20Owned(name, symbol);\n }\n\n /**\n * @dev Returns the gas payment token.\n */\n function token() public view returns (IERC20) {\n return IERC20(_token);\n }\n\n /**\n * @dev Internal function that mints the gas payment token. Derived contracts should expose this function in their public API, with proper access control mechanisms.\n */\n function _mint(address account, uint256 amount) internal virtual {\n _token.mint(account, amount);\n }\n\n /**\n * @dev Ensures that only users with enough gas payment token balance can have transactions relayed through the GSN.\n */\n function acceptRelayedCall(\n address,\n address from,\n bytes memory,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256,\n uint256,\n bytes memory,\n uint256 maxPossibleCharge\n )\n public\n view\n virtual\n override\n returns (uint256, bytes memory)\n {\n if (_token.balanceOf(from) < maxPossibleCharge) {\n return _rejectRelayedCall(uint256(GSNRecipientERC20FeeErrorCodes.INSUFFICIENT_BALANCE));\n }\n\n return _approveRelayedCall(abi.encode(from, maxPossibleCharge, transactionFee, gasPrice));\n }\n\n /**\n * @dev Implements the precharge to the user. The maximum possible charge (depending on gas limit, gas price, and\n * fee) will be deducted from the user balance of gas payment token. Note that this is an overestimation of the\n * actual charge, necessary because we cannot predict how much gas the execution will actually need. The remainder\n * is returned to the user in {_postRelayedCall}.\n */\n function _preRelayedCall(bytes memory context) internal virtual override returns (bytes32) {\n (address from, uint256 maxPossibleCharge) = abi.decode(context, (address, uint256));\n\n // The maximum token charge is pre-charged from the user\n _token.safeTransferFrom(from, address(this), maxPossibleCharge);\n }\n\n /**\n * @dev Returns to the user the extra amount that was previously charged, once the actual execution cost is known.\n */\n function _postRelayedCall(bytes memory context, bool, uint256 actualCharge, bytes32) internal virtual override {\n (address from, uint256 maxPossibleCharge, uint256 transactionFee, uint256 gasPrice) =\n abi.decode(context, (address, uint256, uint256, uint256));\n\n // actualCharge is an _estimated_ charge, which assumes postRelayedCall will use all available gas.\n // This implementation's gas cost can be roughly estimated as 10k gas, for the two SSTORE operations in an\n // ERC20 transfer.\n uint256 overestimation = _computeCharge(_POST_RELAYED_CALL_MAX_GAS.sub(10000), gasPrice, transactionFee);\n actualCharge = actualCharge.sub(overestimation);\n\n // After the relayed call has been executed and the actual charge estimated, the excess pre-charge is returned\n _token.safeTransfer(from, maxPossibleCharge.sub(actualCharge));\n }\n}\n\n/**\n * @title __unstable__ERC20Owned\n * @dev An ERC20 token owned by another contract, which has minting permissions and can use transferFrom to receive\n * anyone's tokens. This contract is an internal helper for GSNRecipientERC20Fee, and should not be used\n * outside of this context.\n */\n// solhint-disable-next-line contract-name-camelcase\ncontract __unstable__ERC20Owned is ERC20, Ownable {\n uint256 private constant _UINT256_MAX = 2**256 - 1;\n\n constructor(string memory name, string memory symbol) public ERC20(name, symbol) { }\n\n // The owner (GSNRecipientERC20Fee) can mint tokens\n function mint(address account, uint256 amount) public onlyOwner {\n _mint(account, amount);\n }\n\n // The owner has 'infinite' allowance for all token holders\n function allowance(address tokenOwner, address spender) public view override returns (uint256) {\n if (spender == owner()) {\n return _UINT256_MAX;\n } else {\n return super.allowance(tokenOwner, spender);\n }\n }\n\n // Allowance for the owner cannot be changed (it is always 'infinite')\n function _approve(address tokenOwner, address spender, uint256 value) internal override {\n if (spender == owner()) {\n return;\n } else {\n super._approve(tokenOwner, spender, value);\n }\n }\n\n function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {\n if (recipient == owner()) {\n _transfer(sender, recipient, amount);\n return true;\n } else {\n return super.transferFrom(sender, recipient, amount);\n }\n }\n}\n","urls":[]},"contracts/GSN/GSNRecipientSignature.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./GSNRecipient.sol\";\nimport \"../cryptography/ECDSA.sol\";\n\n/**\n * @dev A xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategy] that allows relayed transactions through when they are\n * accompanied by the signature of a trusted signer. The intent is for this signature to be generated by a server that\n * performs validations off-chain. Note that nothing is charged to the user in this scheme. Thus, the server should make\n * sure to account for this in their economic and threat model.\n */\ncontract GSNRecipientSignature is GSNRecipient {\n using ECDSA for bytes32;\n\n address private _trustedSigner;\n\n enum GSNRecipientSignatureErrorCodes {\n INVALID_SIGNER\n }\n\n /**\n * @dev Sets the trusted signer that is going to be producing signatures to approve relayed calls.\n */\n constructor(address trustedSigner) public {\n require(trustedSigner != address(0), \"GSNRecipientSignature: trusted signer is the zero address\");\n _trustedSigner = trustedSigner;\n }\n\n /**\n * @dev Ensures that only transactions with a trusted signature can be relayed through the GSN.\n */\n function acceptRelayedCall(\n address relay,\n address from,\n bytes memory encodedFunction,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256 gasLimit,\n uint256 nonce,\n bytes memory approvalData,\n uint256\n )\n public\n view\n virtual\n override\n returns (uint256, bytes memory)\n {\n bytes memory blob = abi.encodePacked(\n relay,\n from,\n encodedFunction,\n transactionFee,\n gasPrice,\n gasLimit,\n nonce, // Prevents replays on RelayHub\n getHubAddr(), // Prevents replays in multiple RelayHubs\n address(this) // Prevents replays in multiple recipients\n );\n if (keccak256(blob).toEthSignedMessageHash().recover(approvalData) == _trustedSigner) {\n return _approveRelayedCall();\n } else {\n return _rejectRelayedCall(uint256(GSNRecipientSignatureErrorCodes.INVALID_SIGNER));\n }\n }\n\n function _preRelayedCall(bytes memory) internal virtual override returns (bytes32) { }\n\n function _postRelayedCall(bytes memory, bool, uint256, bytes32) internal virtual override { }\n}\n","urls":[]},"contracts/GSN/IRelayHub.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface for `RelayHub`, the core contract of the GSN. Users should not need to interact with this contract\n * directly.\n *\n * See the https://github.com/OpenZeppelin/openzeppelin-gsn-helpers[OpenZeppelin GSN helpers] for more information on\n * how to deploy an instance of `RelayHub` on your local test network.\n */\ninterface IRelayHub {\n // Relay management\n\n /**\n * @dev Adds stake to a relay and sets its `unstakeDelay`. If the relay does not exist, it is created, and the caller\n * of this function becomes its owner. If the relay already exists, only the owner can call this function. A relay\n * cannot be its own owner.\n *\n * All Ether in this function call will be added to the relay's stake.\n * Its unstake delay will be assigned to `unstakeDelay`, but the new value must be greater or equal to the current one.\n *\n * Emits a {Staked} event.\n */\n function stake(address relayaddr, uint256 unstakeDelay) external payable;\n\n /**\n * @dev Emitted when a relay's stake or unstakeDelay are increased\n */\n event Staked(address indexed relay, uint256 stake, uint256 unstakeDelay);\n\n /**\n * @dev Registers the caller as a relay.\n * The relay must be staked for, and not be a contract (i.e. this function must be called directly from an EOA).\n *\n * This function can be called multiple times, emitting new {RelayAdded} events. Note that the received\n * `transactionFee` is not enforced by {relayCall}.\n *\n * Emits a {RelayAdded} event.\n */\n function registerRelay(uint256 transactionFee, string calldata url) external;\n\n /**\n * @dev Emitted when a relay is registered or re-registerd. Looking at these events (and filtering out\n * {RelayRemoved} events) lets a client discover the list of available relays.\n */\n event RelayAdded(address indexed relay, address indexed owner, uint256 transactionFee, uint256 stake, uint256 unstakeDelay, string url);\n\n /**\n * @dev Removes (deregisters) a relay. Unregistered (but staked for) relays can also be removed.\n *\n * Can only be called by the owner of the relay. After the relay's `unstakeDelay` has elapsed, {unstake} will be\n * callable.\n *\n * Emits a {RelayRemoved} event.\n */\n function removeRelayByOwner(address relay) external;\n\n /**\n * @dev Emitted when a relay is removed (deregistered). `unstakeTime` is the time when unstake will be callable.\n */\n event RelayRemoved(address indexed relay, uint256 unstakeTime);\n\n /** Deletes the relay from the system, and gives back its stake to the owner.\n *\n * Can only be called by the relay owner, after `unstakeDelay` has elapsed since {removeRelayByOwner} was called.\n *\n * Emits an {Unstaked} event.\n */\n function unstake(address relay) external;\n\n /**\n * @dev Emitted when a relay is unstaked for, including the returned stake.\n */\n event Unstaked(address indexed relay, uint256 stake);\n\n // States a relay can be in\n enum RelayState {\n Unknown, // The relay is unknown to the system: it has never been staked for\n Staked, // The relay has been staked for, but it is not yet active\n Registered, // The relay has registered itself, and is active (can relay calls)\n Removed // The relay has been removed by its owner and can no longer relay calls. It must wait for its unstakeDelay to elapse before it can unstake\n }\n\n /**\n * @dev Returns a relay's status. Note that relays can be deleted when unstaked or penalized, causing this function\n * to return an empty entry.\n */\n function getRelay(address relay) external view returns (uint256 totalStake, uint256 unstakeDelay, uint256 unstakeTime, address payable owner, RelayState state);\n\n // Balance management\n\n /**\n * @dev Deposits Ether for a contract, so that it can receive (and pay for) relayed transactions.\n *\n * Unused balance can only be withdrawn by the contract itself, by calling {withdraw}.\n *\n * Emits a {Deposited} event.\n */\n function depositFor(address target) external payable;\n\n /**\n * @dev Emitted when {depositFor} is called, including the amount and account that was funded.\n */\n event Deposited(address indexed recipient, address indexed from, uint256 amount);\n\n /**\n * @dev Returns an account's deposits. These can be either a contracts's funds, or a relay owner's revenue.\n */\n function balanceOf(address target) external view returns (uint256);\n\n /**\n * Withdraws from an account's balance, sending it back to it. Relay owners call this to retrieve their revenue, and\n * contracts can use it to reduce their funding.\n *\n * Emits a {Withdrawn} event.\n */\n function withdraw(uint256 amount, address payable dest) external;\n\n /**\n * @dev Emitted when an account withdraws funds from `RelayHub`.\n */\n event Withdrawn(address indexed account, address indexed dest, uint256 amount);\n\n // Relaying\n\n /**\n * @dev Checks if the `RelayHub` will accept a relayed operation.\n * Multiple things must be true for this to happen:\n * - all arguments must be signed for by the sender (`from`)\n * - the sender's nonce must be the current one\n * - the recipient must accept this transaction (via {acceptRelayedCall})\n *\n * Returns a `PreconditionCheck` value (`OK` when the transaction can be relayed), or a recipient-specific error\n * code if it returns one in {acceptRelayedCall}.\n */\n function canRelay(\n address relay,\n address from,\n address to,\n bytes calldata encodedFunction,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256 gasLimit,\n uint256 nonce,\n bytes calldata signature,\n bytes calldata approvalData\n ) external view returns (uint256 status, bytes memory recipientContext);\n\n // Preconditions for relaying, checked by canRelay and returned as the corresponding numeric values.\n enum PreconditionCheck {\n OK, // All checks passed, the call can be relayed\n WrongSignature, // The transaction to relay is not signed by requested sender\n WrongNonce, // The provided nonce has already been used by the sender\n AcceptRelayedCallReverted, // The recipient rejected this call via acceptRelayedCall\n InvalidRecipientStatusCode // The recipient returned an invalid (reserved) status code\n }\n\n /**\n * @dev Relays a transaction.\n *\n * For this to succeed, multiple conditions must be met:\n * - {canRelay} must `return PreconditionCheck.OK`\n * - the sender must be a registered relay\n * - the transaction's gas price must be larger or equal to the one that was requested by the sender\n * - the transaction must have enough gas to not run out of gas if all internal transactions (calls to the\n * recipient) use all gas available to them\n * - the recipient must have enough balance to pay the relay for the worst-case scenario (i.e. when all gas is\n * spent)\n *\n * If all conditions are met, the call will be relayed and the recipient charged. {preRelayedCall}, the encoded\n * function and {postRelayedCall} will be called in that order.\n *\n * Parameters:\n * - `from`: the client originating the request\n * - `to`: the target {IRelayRecipient} contract\n * - `encodedFunction`: the function call to relay, including data\n * - `transactionFee`: fee (%) the relay takes over actual gas cost\n * - `gasPrice`: gas price the client is willing to pay\n * - `gasLimit`: gas to forward when calling the encoded function\n * - `nonce`: client's nonce\n * - `signature`: client's signature over all previous params, plus the relay and RelayHub addresses\n * - `approvalData`: dapp-specific data forwared to {acceptRelayedCall}. This value is *not* verified by the\n * `RelayHub`, but it still can be used for e.g. a signature.\n *\n * Emits a {TransactionRelayed} event.\n */\n function relayCall(\n address from,\n address to,\n bytes calldata encodedFunction,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256 gasLimit,\n uint256 nonce,\n bytes calldata signature,\n bytes calldata approvalData\n ) external;\n\n /**\n * @dev Emitted when an attempt to relay a call failed.\n *\n * This can happen due to incorrect {relayCall} arguments, or the recipient not accepting the relayed call. The\n * actual relayed call was not executed, and the recipient not charged.\n *\n * The `reason` parameter contains an error code: values 1-10 correspond to `PreconditionCheck` entries, and values\n * over 10 are custom recipient error codes returned from {acceptRelayedCall}.\n */\n event CanRelayFailed(address indexed relay, address indexed from, address indexed to, bytes4 selector, uint256 reason);\n\n /**\n * @dev Emitted when a transaction is relayed.\n * Useful when monitoring a relay's operation and relayed calls to a contract\n *\n * Note that the actual encoded function might be reverted: this is indicated in the `status` parameter.\n *\n * `charge` is the Ether value deducted from the recipient's balance, paid to the relay's owner.\n */\n event TransactionRelayed(address indexed relay, address indexed from, address indexed to, bytes4 selector, RelayCallStatus status, uint256 charge);\n\n // Reason error codes for the TransactionRelayed event\n enum RelayCallStatus {\n OK, // The transaction was successfully relayed and execution successful - never included in the event\n RelayedCallFailed, // The transaction was relayed, but the relayed call failed\n PreRelayedFailed, // The transaction was not relayed due to preRelatedCall reverting\n PostRelayedFailed, // The transaction was relayed and reverted due to postRelatedCall reverting\n RecipientBalanceChanged // The transaction was relayed and reverted due to the recipient's balance changing\n }\n\n /**\n * @dev Returns how much gas should be forwarded to a call to {relayCall}, in order to relay a transaction that will\n * spend up to `relayedCallStipend` gas.\n */\n function requiredGas(uint256 relayedCallStipend) external view returns (uint256);\n\n /**\n * @dev Returns the maximum recipient charge, given the amount of gas forwarded, gas price and relay fee.\n */\n function maxPossibleCharge(uint256 relayedCallStipend, uint256 gasPrice, uint256 transactionFee) external view returns (uint256);\n\n // Relay penalization.\n // Any account can penalize relays, removing them from the system immediately, and rewarding the\n // reporter with half of the relay's stake. The other half is burned so that, even if the relay penalizes itself, it\n // still loses half of its stake.\n\n /**\n * @dev Penalize a relay that signed two transactions using the same nonce (making only the first one valid) and\n * different data (gas price, gas limit, etc. may be different).\n *\n * The (unsigned) transaction data and signature for both transactions must be provided.\n */\n function penalizeRepeatedNonce(bytes calldata unsignedTx1, bytes calldata signature1, bytes calldata unsignedTx2, bytes calldata signature2) external;\n\n /**\n * @dev Penalize a relay that sent a transaction that didn't target ``RelayHub``'s {registerRelay} or {relayCall}.\n */\n function penalizeIllegalTransaction(bytes calldata unsignedTx, bytes calldata signature) external;\n\n /**\n * @dev Emitted when a relay is penalized.\n */\n event Penalized(address indexed relay, address sender, uint256 amount);\n\n /**\n * @dev Returns an account's nonce in `RelayHub`.\n */\n function getNonce(address from) external view returns (uint256);\n}\n","urls":[]},"contracts/GSN/IRelayRecipient.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Base interface for a contract that will be called via the GSN from {IRelayHub}.\n *\n * TIP: You don't need to write an implementation yourself! Inherit from {GSNRecipient} instead.\n */\ninterface IRelayRecipient {\n /**\n * @dev Returns the address of the {IRelayHub} instance this recipient interacts with.\n */\n function getHubAddr() external view returns (address);\n\n /**\n * @dev Called by {IRelayHub} to validate if this recipient accepts being charged for a relayed call. Note that the\n * recipient will be charged regardless of the execution result of the relayed call (i.e. if it reverts or not).\n *\n * The relay request was originated by `from` and will be served by `relay`. `encodedFunction` is the relayed call\n * calldata, so its first four bytes are the function selector. The relayed call will be forwarded `gasLimit` gas,\n * and the transaction executed with a gas price of at least `gasPrice`. ``relay``'s fee is `transactionFee`, and the\n * recipient will be charged at most `maxPossibleCharge` (in wei). `nonce` is the sender's (`from`) nonce for\n * replay attack protection in {IRelayHub}, and `approvalData` is a optional parameter that can be used to hold a signature\n * over all or some of the previous values.\n *\n * Returns a tuple, where the first value is used to indicate approval (0) or rejection (custom non-zero error code,\n * values 1 to 10 are reserved) and the second one is data to be passed to the other {IRelayRecipient} functions.\n *\n * {acceptRelayedCall} is called with 50k gas: if it runs out during execution, the request will be considered\n * rejected. A regular revert will also trigger a rejection.\n */\n function acceptRelayedCall(\n address relay,\n address from,\n bytes calldata encodedFunction,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256 gasLimit,\n uint256 nonce,\n bytes calldata approvalData,\n uint256 maxPossibleCharge\n )\n external\n view\n returns (uint256, bytes memory);\n\n /**\n * @dev Called by {IRelayHub} on approved relay call requests, before the relayed call is executed. This allows to e.g.\n * pre-charge the sender of the transaction.\n *\n * `context` is the second value returned in the tuple by {acceptRelayedCall}.\n *\n * Returns a value to be passed to {postRelayedCall}.\n *\n * {preRelayedCall} is called with 100k gas: if it runs out during exection or otherwise reverts, the relayed call\n * will not be executed, but the recipient will still be charged for the transaction's cost.\n */\n function preRelayedCall(bytes calldata context) external returns (bytes32);\n\n /**\n * @dev Called by {IRelayHub} on approved relay call requests, after the relayed call is executed. This allows to e.g.\n * charge the user for the relayed call costs, return any overcharges from {preRelayedCall}, or perform\n * contract-specific bookkeeping.\n *\n * `context` is the second value returned in the tuple by {acceptRelayedCall}. `success` is the execution status of\n * the relayed call. `actualCharge` is an estimate of how much the recipient will be charged for the transaction,\n * not including any gas used by {postRelayedCall} itself. `preRetVal` is {preRelayedCall}'s return value.\n *\n *\n * {postRelayedCall} is called with 100k gas: if it runs out during execution or otherwise reverts, the relayed call\n * and the call to {preRelayedCall} will be reverted retroactively, but the recipient will still be charged for the\n * transaction's cost.\n */\n function postRelayedCall(bytes calldata context, bool success, uint256 actualCharge, bytes32 preRetVal) external;\n}\n","urls":[]},"contracts/access/AccessControl.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/EnumerableSet.sol\";\nimport \"../utils/Address.sol\";\nimport \"../GSN/Context.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms.\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 AccessControl is Context {\n using EnumerableSet for EnumerableSet.AddressSet;\n using Address for address;\n\n struct RoleData {\n EnumerableSet.AddressSet 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 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 {_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) public view returns (bool) {\n return _roles[role].members.contains(account);\n }\n\n /**\n * @dev Returns the number of accounts that have `role`. Can be used\n * together with {getRoleMember} to enumerate all bearers of a role.\n */\n function getRoleMemberCount(bytes32 role) public view returns (uint256) {\n return _roles[role].members.length();\n }\n\n /**\n * @dev Returns one of the accounts that have `role`. `index` must be a\n * value between 0 and {getRoleMemberCount}, non-inclusive.\n *\n * Role bearers are not sorted in any particular way, and their ordering may\n * change at any point.\n *\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\n * you perform all queries on the same block. See the following\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\n * for more information.\n */\n function getRoleMember(bytes32 role, uint256 index) public view returns (address) {\n return _roles[role].members.at(index);\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 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 function grantRole(bytes32 role, address account) public virtual {\n require(hasRole(_roles[role].adminRole, _msgSender()), \"AccessControl: sender must be an admin to grant\");\n\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 function revokeRole(bytes32 role, address account) public virtual {\n require(hasRole(_roles[role].adminRole, _msgSender()), \"AccessControl: sender must be an admin to revoke\");\n\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 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) public virtual {\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 * [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 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 emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);\n _roles[role].adminRole = adminRole;\n }\n\n function _grantRole(bytes32 role, address account) private {\n if (_roles[role].members.add(account)) {\n emit RoleGranted(role, account, _msgSender());\n }\n }\n\n function _revokeRole(bytes32 role, address account) private {\n if (_roles[role].members.remove(account)) {\n emit RoleRevoked(role, account, _msgSender());\n }\n }\n}\n","urls":[]},"contracts/access/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\ncontract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n constructor () internal {\n address msgSender = _msgSender();\n _owner = msgSender;\n emit OwnershipTransferred(address(0), msgSender);\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(_owner == _msgSender(), \"Ownable: caller is not the owner\");\n _;\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions anymore. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby removing any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n emit OwnershipTransferred(_owner, address(0));\n _owner = address(0);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n emit OwnershipTransferred(_owner, newOwner);\n _owner = newOwner;\n }\n}\n","urls":[]},"contracts/cryptography/ECDSA.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\n *\n * These functions can be used to verify that a message was signed by the holder\n * of the private keys of a given address.\n */\nlibrary ECDSA {\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with\n * `signature`. This address can then be used for verification purposes.\n *\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n * this function rejects them by requiring the `s` value to be in the lower\n * half order, and the `v` value to be either 27 or 28.\n *\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n * verification to be secure: it is possible to craft signatures that\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n * this is by receiving a hash of the original message (which may otherwise\n * be too long), and then calling {toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n // Check the signature length\n if (signature.length != 65) {\n revert(\"ECDSA: invalid signature length\");\n }\n\n // Divide the signature in r, s and v variables\n bytes32 r;\n bytes32 s;\n uint8 v;\n\n // ecrecover takes the signature parameters, and the only way to get them\n // currently is to use assembly.\n // solhint-disable-next-line no-inline-assembly\n assembly {\n r := mload(add(signature, 0x20))\n s := mload(add(signature, 0x40))\n v := byte(0, mload(add(signature, 0x60)))\n }\n\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\n // the valid range for s in (281): 0 < s < secp256k1n \u00f7 2 + 1, and for v in (282): v \u2208 {27, 28}. Most\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\n //\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\n // these malleable signatures as well.\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\n revert(\"ECDSA: invalid signature 's' value\");\n }\n\n if (v != 27 && v != 28) {\n revert(\"ECDSA: invalid signature 'v' value\");\n }\n\n // If the signature is valid (and not malleable), return the signer address\n address signer = ecrecover(hash, v, r, s);\n require(signer != address(0), \"ECDSA: invalid signature\");\n\n return signer;\n }\n\n /**\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\n * replicates the behavior of the\n * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]\n * JSON-RPC method.\n *\n * See {recover}.\n */\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\n // 32 is the length in bytes of hash,\n // enforced by the type signature above\n return keccak256(abi.encodePacked(\"\\x19Ethereum Signed Message:\\n32\", hash));\n }\n}\n","urls":[]},"contracts/cryptography/MerkleProof.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev These functions deal with verification of Merkle trees (hash trees),\n */\nlibrary MerkleProof {\n /**\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\n * defined by `root`. For this, a `proof` must be provided, containing\n * sibling hashes on the branch from the leaf to the root of the tree. Each\n * pair of leaves and each pair of pre-images are assumed to be sorted.\n */\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\n bytes32 computedHash = leaf;\n\n for (uint256 i = 0; i < proof.length; i++) {\n bytes32 proofElement = proof[i];\n\n if (computedHash <= proofElement) {\n // Hash(current computed hash + current element of the proof)\n computedHash = keccak256(abi.encodePacked(computedHash, proofElement));\n } else {\n // Hash(current element of the proof + current computed hash)\n computedHash = keccak256(abi.encodePacked(proofElement, computedHash));\n }\n }\n\n // Check if the computed hash (root) is equal to the provided root\n return computedHash == root;\n }\n}\n","urls":[]},"contracts/introspection/ERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts may inherit from this and call {_registerInterface} to declare\n * their support of an interface.\n */\ncontract ERC165 is IERC165 {\n /*\n * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7\n */\n bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;\n\n /**\n * @dev Mapping of interface ids to whether or not it's supported.\n */\n mapping(bytes4 => bool) private _supportedInterfaces;\n\n constructor () internal {\n // Derived contracts need only register support for their own interfaces,\n // we register support for ERC165 itself here\n _registerInterface(_INTERFACE_ID_ERC165);\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n *\n * Time complexity O(1), guaranteed to always use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) public view override returns (bool) {\n return _supportedInterfaces[interfaceId];\n }\n\n /**\n * @dev Registers the contract as an implementer of the interface defined by\n * `interfaceId`. Support of the actual ERC165 interface is automatic and\n * registering its interface id is not required.\n *\n * See {IERC165-supportsInterface}.\n *\n * Requirements:\n *\n * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).\n */\n function _registerInterface(bytes4 interfaceId) internal virtual {\n require(interfaceId != 0xffffffff, \"ERC165: invalid interface id\");\n _supportedInterfaces[interfaceId] = true;\n }\n}\n","urls":[]},"contracts/introspection/ERC165Checker.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\n/**\n * @dev Library used to query support of an interface declared via {IERC165}.\n *\n * Note that these functions return the actual result of the query: they do not\n * `revert` if an interface is not supported. It is up to the caller to decide\n * what to do in these cases.\n */\nlibrary ERC165Checker {\n // As per the EIP-165 spec, no interface should ever match 0xffffffff\n bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;\n\n /*\n * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7\n */\n bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;\n\n /**\n * @dev Returns true if `account` supports the {IERC165} interface,\n */\n function supportsERC165(address account) internal view returns (bool) {\n // Any contract that implements ERC165 must explicitly indicate support of\n // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid\n return _supportsERC165Interface(account, _INTERFACE_ID_ERC165) &&\n !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);\n }\n\n /**\n * @dev Returns true if `account` supports the interface defined by\n * `interfaceId`. Support for {IERC165} itself is queried automatically.\n *\n * See {IERC165-supportsInterface}.\n */\n function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {\n // query support of both ERC165 as per the spec and support of _interfaceId\n return supportsERC165(account) &&\n _supportsERC165Interface(account, interfaceId);\n }\n\n /**\n * @dev Returns true if `account` supports all the interfaces defined in\n * `interfaceIds`. Support for {IERC165} itself is queried automatically.\n *\n * Batch-querying can lead to gas savings by skipping repeated checks for\n * {IERC165} support.\n *\n * See {IERC165-supportsInterface}.\n */\n function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {\n // query support of ERC165 itself\n if (!supportsERC165(account)) {\n return false;\n }\n\n // query support of each interface in _interfaceIds\n for (uint256 i = 0; i < interfaceIds.length; i++) {\n if (!_supportsERC165Interface(account, interfaceIds[i])) {\n return false;\n }\n }\n\n // all interfaces supported\n return true;\n }\n\n /**\n * @notice Query if a contract implements an interface, does not check ERC165 support\n * @param account The address of the contract to query for support of an interface\n * @param interfaceId The interface identifier, as specified in ERC-165\n * @return true if the contract at account indicates support of the interface with\n * identifier interfaceId, false otherwise\n * @dev Assumes that account contains a contract that supports ERC165, otherwise\n * the behavior of this method is undefined. This precondition can be checked\n * with {supportsERC165}.\n * Interface identification is specified in ERC-165.\n */\n function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {\n // success determines whether the staticcall succeeded and result determines\n // whether the contract at account indicates support of _interfaceId\n (bool success, bool result) = _callERC165SupportsInterface(account, interfaceId);\n\n return (success && result);\n }\n\n /**\n * @notice Calls the function with selector 0x01ffc9a7 (ERC165) and suppresses throw\n * @param account The address of the contract to query for support of an interface\n * @param interfaceId The interface identifier, as specified in ERC-165\n * @return success true if the STATICCALL succeeded, false otherwise\n * @return result true if the STATICCALL succeeded and the contract at account\n * indicates support of the interface with identifier interfaceId, false otherwise\n */\n function _callERC165SupportsInterface(address account, bytes4 interfaceId)\n private\n view\n returns (bool, bool)\n {\n bytes memory encodedParams = abi.encodeWithSelector(_INTERFACE_ID_ERC165, interfaceId);\n (bool success, bytes memory result) = account.staticcall{ gas: 30000 }(encodedParams);\n if (result.length < 32) return (false, false);\n return (success, abi.decode(result, (bool)));\n }\n}\n","urls":[]},"contracts/introspection/ERC1820Implementer.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC1820Implementer.sol\";\n\n/**\n * @dev Implementation of the {IERC1820Implementer} interface.\n *\n * Contracts may inherit from this and call {_registerInterfaceForAddress} to\n * declare their willingness to be implementers.\n * {IERC1820Registry-setInterfaceImplementer} should then be called for the\n * registration to be complete.\n */\ncontract ERC1820Implementer is IERC1820Implementer {\n bytes32 constant private _ERC1820_ACCEPT_MAGIC = keccak256(abi.encodePacked(\"ERC1820_ACCEPT_MAGIC\"));\n\n mapping(bytes32 => mapping(address => bool)) private _supportedInterfaces;\n\n /**\n * See {IERC1820Implementer-canImplementInterfaceForAddress}.\n */\n function canImplementInterfaceForAddress(bytes32 interfaceHash, address account) public view override returns (bytes32) {\n return _supportedInterfaces[interfaceHash][account] ? _ERC1820_ACCEPT_MAGIC : bytes32(0x00);\n }\n\n /**\n * @dev Declares the contract as willing to be an implementer of\n * `interfaceHash` for `account`.\n *\n * See {IERC1820Registry-setInterfaceImplementer} and\n * {IERC1820Registry-interfaceHash}.\n */\n function _registerInterfaceForAddress(bytes32 interfaceHash, address account) internal virtual {\n _supportedInterfaces[interfaceHash][account] = true;\n }\n}\n","urls":[]},"contracts/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.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 IERC165 {\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","urls":[]},"contracts/introspection/IERC1820Implementer.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface for an ERC1820 implementer, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1820#interface-implementation-erc1820implementerinterface[EIP].\n * Used by contracts that will be registered as implementers in the\n * {IERC1820Registry}.\n */\ninterface IERC1820Implementer {\n /**\n * @dev Returns a special value (`ERC1820_ACCEPT_MAGIC`) if this contract\n * implements `interfaceHash` for `account`.\n *\n * See {IERC1820Registry-setInterfaceImplementer}.\n */\n function canImplementInterfaceForAddress(bytes32 interfaceHash, address account) external view returns (bytes32);\n}\n","urls":[]},"contracts/introspection/IERC1820Registry.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the global ERC1820 Registry, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register\n * implementers for interfaces in this registry, as well as query support.\n *\n * Implementers may be shared by multiple accounts, and can also implement more\n * than a single interface for each account. Contracts can implement interfaces\n * for themselves, but externally-owned accounts (EOA) must delegate this to a\n * contract.\n *\n * {IERC165} interfaces can also be queried via the registry.\n *\n * For an in-depth explanation and source code analysis, see the EIP text.\n */\ninterface IERC1820Registry {\n /**\n * @dev Sets `newManager` as the manager for `account`. A manager of an\n * account is able to set interface implementers for it.\n *\n * By default, each account is its own manager. Passing a value of `0x0` in\n * `newManager` will reset the manager to this initial state.\n *\n * Emits a {ManagerChanged} event.\n *\n * Requirements:\n *\n * - the caller must be the current manager for `account`.\n */\n function setManager(address account, address newManager) external;\n\n /**\n * @dev Returns the manager for `account`.\n *\n * See {setManager}.\n */\n function getManager(address account) external view returns (address);\n\n /**\n * @dev Sets the `implementer` contract as ``account``'s implementer for\n * `interfaceHash`.\n *\n * `account` being the zero address is an alias for the caller's address.\n * The zero address can also be used in `implementer` to remove an old one.\n *\n * See {interfaceHash} to learn how these are created.\n *\n * Emits an {InterfaceImplementerSet} event.\n *\n * Requirements:\n *\n * - the caller must be the current manager for `account`.\n * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not\n * end in 28 zeroes).\n * - `implementer` must implement {IERC1820Implementer} and return true when\n * queried for support, unless `implementer` is the caller. See\n * {IERC1820Implementer-canImplementInterfaceForAddress}.\n */\n function setInterfaceImplementer(address account, bytes32 interfaceHash, address implementer) external;\n\n /**\n * @dev Returns the implementer of `interfaceHash` for `account`. If no such\n * implementer is registered, returns the zero address.\n *\n * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28\n * zeroes), `account` will be queried for support of it.\n *\n * `account` being the zero address is an alias for the caller's address.\n */\n function getInterfaceImplementer(address account, bytes32 interfaceHash) external view returns (address);\n\n /**\n * @dev Returns the interface hash for an `interfaceName`, as defined in the\n * corresponding\n * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP].\n */\n function interfaceHash(string calldata interfaceName) external pure returns (bytes32);\n\n /**\n * @notice Updates the cache with whether the contract implements an ERC165 interface or not.\n * @param account Address of the contract for which to update the cache.\n * @param interfaceId ERC165 interface for which to update the cache.\n */\n function updateERC165Cache(address account, bytes4 interfaceId) external;\n\n /**\n * @notice Checks whether a contract implements an ERC165 interface or not.\n * If the result is not cached a direct lookup on the contract address is performed.\n * If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling\n * {updateERC165Cache} with the contract address.\n * @param account Address of the contract to check.\n * @param interfaceId ERC165 interface to check.\n * @return True if `account` implements `interfaceId`, false otherwise.\n */\n function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool);\n\n /**\n * @notice Checks whether a contract implements an ERC165 interface or not without using nor updating the cache.\n * @param account Address of the contract to check.\n * @param interfaceId ERC165 interface to check.\n * @return True if `account` implements `interfaceId`, false otherwise.\n */\n function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool);\n\n event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer);\n\n event ManagerChanged(address indexed account, address indexed newManager);\n}\n","urls":[]},"contracts/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\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, so we distribute\n return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);\n }\n}\n","urls":[]},"contracts/math/SafeMath.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\n * checks.\n *\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\n * in bugs, because programmers usually assume that an overflow raises an\n * error, which is the standard behavior in high level programming languages.\n * `SafeMath` restores this intuition by reverting the transaction when an\n * operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeMath {\n /**\n * @dev Returns the addition of two unsigned integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `+` operator.\n *\n * Requirements:\n *\n * - Addition cannot overflow.\n */\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n require(c >= a, \"SafeMath: addition overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting on\n * overflow (when the result is negative).\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n return sub(a, b, \"SafeMath: subtraction overflow\");\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\n * overflow (when the result is negative).\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b <= a, errorMessage);\n uint256 c = a - b;\n\n return c;\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `*` operator.\n *\n * Requirements:\n *\n * - Multiplication cannot overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n // benefit is lost if 'b' is also tested.\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n if (a == 0) {\n return 0;\n }\n\n uint256 c = a * b;\n require(c / a == b, \"SafeMath: multiplication overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the integer division of two unsigned integers. Reverts on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n return div(a, b, \"SafeMath: division by zero\");\n }\n\n /**\n * @dev Returns the integer division of two unsigned integers. Reverts with custom message on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b > 0, errorMessage);\n uint256 c = a / b;\n // assert(a == b * c + a % b); // There is no case in which this doesn't hold\n\n return c;\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n * Reverts when dividing by zero.\n *\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\n * opcode (which leaves remaining gas untouched) while Solidity uses an\n * invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\n return mod(a, b, \"SafeMath: modulo by zero\");\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n * Reverts with custom message when dividing by zero.\n *\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\n * opcode (which leaves remaining gas untouched) while Solidity uses an\n * invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b != 0, errorMessage);\n return a % b;\n }\n}\n","urls":[]},"contracts/math/SignedSafeMath.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @title SignedSafeMath\n * @dev Signed math operations with safety checks that revert on error.\n */\nlibrary SignedSafeMath {\n int256 constant private _INT256_MIN = -2**255;\n\n /**\n * @dev Returns the multiplication of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `*` operator.\n *\n * Requirements:\n *\n * - Multiplication cannot overflow.\n */\n function mul(int256 a, int256 b) internal pure returns (int256) {\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n // benefit is lost if 'b' is also tested.\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n if (a == 0) {\n return 0;\n }\n\n require(!(a == -1 && b == _INT256_MIN), \"SignedSafeMath: multiplication overflow\");\n\n int256 c = a * b;\n require(c / a == b, \"SignedSafeMath: multiplication overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the integer division of two signed integers. Reverts on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(int256 a, int256 b) internal pure returns (int256) {\n require(b != 0, \"SignedSafeMath: division by zero\");\n require(!(b == -1 && a == _INT256_MIN), \"SignedSafeMath: division overflow\");\n\n int256 c = a / b;\n\n return c;\n }\n\n /**\n * @dev Returns the subtraction of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(int256 a, int256 b) internal pure returns (int256) {\n int256 c = a - b;\n require((b >= 0 && c <= a) || (b < 0 && c > a), \"SignedSafeMath: subtraction overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the addition of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `+` operator.\n *\n * Requirements:\n *\n * - Addition cannot overflow.\n */\n function add(int256 a, int256 b) internal pure returns (int256) {\n int256 c = a + b;\n require((b >= 0 && c >= a) || (b < 0 && c < a), \"SignedSafeMath: addition overflow\");\n\n return c;\n }\n}\n","urls":[]},"contracts/mocks/AccessControlMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/AccessControl.sol\";\n\ncontract AccessControlMock is AccessControl {\n constructor() public {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n }\n\n function setRoleAdmin(bytes32 roleId, bytes32 adminRoleId) public {\n _setRoleAdmin(roleId, adminRoleId);\n }\n}\n","urls":[]},"contracts/mocks/AddressImpl.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Address.sol\";\n\ncontract AddressImpl {\n event CallReturnValue(string data);\n\n function isContract(address account) external view returns (bool) {\n return Address.isContract(account);\n }\n\n function sendValue(address payable receiver, uint256 amount) external {\n Address.sendValue(receiver, amount);\n }\n\n function functionCall(address target, bytes calldata data) external {\n bytes memory returnData = Address.functionCall(target, data);\n\n emit CallReturnValue(abi.decode(returnData, (string)));\n }\n\n function functionCallWithValue(address target, bytes calldata data, uint256 value) external payable {\n bytes memory returnData = Address.functionCallWithValue(target, data, value);\n\n emit CallReturnValue(abi.decode(returnData, (string)));\n }\n\n // sendValue's tests require the contract to hold Ether\n receive () external payable { }\n}\n","urls":[]},"contracts/mocks/ArraysImpl.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Arrays.sol\";\n\ncontract ArraysImpl {\n using Arrays for uint256[];\n\n uint256[] private _array;\n\n constructor (uint256[] memory array) public {\n _array = array;\n }\n\n function findUpperBound(uint256 element) external view returns (uint256) {\n return _array.findUpperBound(element);\n }\n}\n","urls":[]},"contracts/mocks/CallReceiverMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\ncontract CallReceiverMock {\n\n event MockFunctionCalled();\n\n uint256[] private _array;\n\n function mockFunction() public payable returns (string memory) {\n emit MockFunctionCalled();\n\n return \"0x1234\";\n }\n\n function mockFunctionNonPayable() public returns (string memory) {\n emit MockFunctionCalled();\n\n return \"0x1234\";\n }\n\n function mockFunctionRevertsNoReason() public payable {\n revert();\n }\n\n function mockFunctionRevertsReason() public payable {\n revert(\"CallReceiverMock: reverting\");\n }\n\n function mockFunctionThrows() public payable {\n assert(false);\n }\n\n function mockFunctionOutOfGas() public payable {\n for (uint256 i = 0; ; ++i) {\n _array.push(i);\n }\n }\n}\n","urls":[]},"contracts/mocks/ConditionalEscrowMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../payment/escrow/ConditionalEscrow.sol\";\n\n// mock class using ConditionalEscrow\ncontract ConditionalEscrowMock is ConditionalEscrow {\n mapping(address => bool) private _allowed;\n\n function setAllowed(address payee, bool allowed) public {\n _allowed[payee] = allowed;\n }\n\n function withdrawalAllowed(address payee) public view override returns (bool) {\n return _allowed[payee];\n }\n}\n","urls":[]},"contracts/mocks/ContextMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\n\ncontract ContextMock is Context {\n event Sender(address sender);\n\n function msgSender() public {\n emit Sender(_msgSender());\n }\n\n event Data(bytes data, uint256 integerValue, string stringValue);\n\n function msgData(uint256 integerValue, string memory stringValue) public {\n emit Data(_msgData(), integerValue, stringValue);\n }\n}\n\ncontract ContextMockCaller {\n function callSender(ContextMock context) public {\n context.msgSender();\n }\n\n function callData(ContextMock context, uint256 integerValue, string memory stringValue) public {\n context.msgData(integerValue, stringValue);\n }\n}\n","urls":[]},"contracts/mocks/CountersImpl.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Counters.sol\";\n\ncontract CountersImpl {\n using Counters for Counters.Counter;\n\n Counters.Counter private _counter;\n\n function current() public view returns (uint256) {\n return _counter.current();\n }\n\n function increment() public {\n _counter.increment();\n }\n\n function decrement() public {\n _counter.decrement();\n }\n}\n","urls":[]},"contracts/mocks/Create2Impl.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Create2.sol\";\nimport \"../introspection/ERC1820Implementer.sol\";\n\ncontract Create2Impl {\n function deploy(uint256 value, bytes32 salt, bytes memory code) public {\n Create2.deploy(value, salt, code);\n }\n\n function deployERC1820Implementer(uint256 value, bytes32 salt) public {\n // solhint-disable-next-line indent\n Create2.deploy(value, salt, type(ERC1820Implementer).creationCode);\n }\n\n function computeAddress(bytes32 salt, bytes32 codeHash) public view returns (address) {\n return Create2.computeAddress(salt, codeHash);\n }\n\n function computeAddressWithDeployer(bytes32 salt, bytes32 codeHash, address deployer) public pure returns (address) {\n return Create2.computeAddress(salt, codeHash, deployer);\n }\n\n receive() payable external {}\n}\n","urls":[]},"contracts/mocks/ECDSAMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../cryptography/ECDSA.sol\";\n\ncontract ECDSAMock {\n using ECDSA for bytes32;\n\n function recover(bytes32 hash, bytes memory signature) public pure returns (address) {\n return hash.recover(signature);\n }\n\n function toEthSignedMessageHash(bytes32 hash) public pure returns (bytes32) {\n return hash.toEthSignedMessageHash();\n }\n}\n","urls":[]},"contracts/mocks/ERC1155BurnableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC1155/ERC1155Burnable.sol\";\n\ncontract ERC1155BurnableMock is ERC1155Burnable {\n constructor(string memory uri) public ERC1155(uri) { }\n\n function mint(address to, uint256 id, uint256 value, bytes memory data) public {\n _mint(to, id, value, data);\n }\n}\n","urls":[]},"contracts/mocks/ERC1155Mock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC1155/ERC1155.sol\";\n\n/**\n * @title ERC1155Mock\n * This mock just publicizes internal functions for testing purposes\n */\ncontract ERC1155Mock is ERC1155 {\n constructor (string memory uri) public ERC1155(uri) {\n // solhint-disable-previous-line no-empty-blocks\n }\n\n function setURI(string memory newuri) public {\n _setURI(newuri);\n }\n\n function mint(address to, uint256 id, uint256 value, bytes memory data) public {\n _mint(to, id, value, data);\n }\n\n function mintBatch(address to, uint256[] memory ids, uint256[] memory values, bytes memory data) public {\n _mintBatch(to, ids, values, data);\n }\n\n function burn(address owner, uint256 id, uint256 value) public {\n _burn(owner, id, value);\n }\n\n function burnBatch(address owner, uint256[] memory ids, uint256[] memory values) public {\n _burnBatch(owner, ids, values);\n }\n}\n","urls":[]},"contracts/mocks/ERC1155PausableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC1155Mock.sol\";\nimport \"../token/ERC1155/ERC1155Pausable.sol\";\n\ncontract ERC1155PausableMock is ERC1155Mock, ERC1155Pausable {\n constructor(string memory uri) public ERC1155Mock(uri) { }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n internal virtual override(ERC1155, ERC1155Pausable)\n {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n }\n}\n","urls":[]},"contracts/mocks/ERC1155ReceiverMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC1155/IERC1155Receiver.sol\";\nimport \"./ERC165Mock.sol\";\n\ncontract ERC1155ReceiverMock is IERC1155Receiver, ERC165Mock {\n bytes4 private _recRetval;\n bool private _recReverts;\n bytes4 private _batRetval;\n bool private _batReverts;\n\n event Received(address operator, address from, uint256 id, uint256 value, bytes data, uint256 gas);\n event BatchReceived(address operator, address from, uint256[] ids, uint256[] values, bytes data, uint256 gas);\n\n constructor (\n bytes4 recRetval,\n bool recReverts,\n bytes4 batRetval,\n bool batReverts\n )\n public\n {\n _recRetval = recRetval;\n _recReverts = recReverts;\n _batRetval = batRetval;\n _batReverts = batReverts;\n }\n\n function onERC1155Received(\n address operator,\n address from,\n uint256 id,\n uint256 value,\n bytes calldata data\n )\n external\n override\n returns(bytes4)\n {\n require(!_recReverts, \"ERC1155ReceiverMock: reverting on receive\");\n emit Received(operator, from, id, value, data, gasleft());\n return _recRetval;\n }\n\n function onERC1155BatchReceived(\n address operator,\n address from,\n uint256[] calldata ids,\n uint256[] calldata values,\n bytes calldata data\n )\n external\n override\n returns(bytes4)\n {\n require(!_batReverts, \"ERC1155ReceiverMock: reverting on batch receive\");\n emit BatchReceived(operator, from, ids, values, data, gasleft());\n return _batRetval;\n }\n}\n","urls":[]},"contracts/mocks/ERC165/ERC165InterfacesSupported.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../introspection/IERC165.sol\";\n\n/**\n * https://eips.ethereum.org/EIPS/eip-214#specification\n * From the specification:\n * > Any attempts to make state-changing operations inside an execution instance with STATIC set to true will instead\n * throw an exception.\n * > These operations include [...], LOG0, LOG1, LOG2, [...]\n *\n * therefore, because this contract is staticcall'd we need to not emit events (which is how solidity-coverage works)\n * solidity-coverage ignores the /mocks folder, so we duplicate its implementation here to avoid instrumenting it\n */\ncontract SupportsInterfaceWithLookupMock is IERC165 {\n /*\n * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7\n */\n bytes4 public constant INTERFACE_ID_ERC165 = 0x01ffc9a7;\n\n /**\n * @dev A mapping of interface id to whether or not it's supported.\n */\n mapping(bytes4 => bool) private _supportedInterfaces;\n\n /**\n * @dev A contract implementing SupportsInterfaceWithLookup\n * implement ERC165 itself.\n */\n constructor () public {\n _registerInterface(INTERFACE_ID_ERC165);\n }\n\n /**\n * @dev Implement supportsInterface(bytes4) using a lookup table.\n */\n function supportsInterface(bytes4 interfaceId) public view override returns (bool) {\n return _supportedInterfaces[interfaceId];\n }\n\n /**\n * @dev Private method for registering an interface.\n */\n function _registerInterface(bytes4 interfaceId) internal {\n require(interfaceId != 0xffffffff, \"ERC165InterfacesSupported: invalid interface id\");\n _supportedInterfaces[interfaceId] = true;\n }\n}\n\ncontract ERC165InterfacesSupported is SupportsInterfaceWithLookupMock {\n constructor (bytes4[] memory interfaceIds) public {\n for (uint256 i = 0; i < interfaceIds.length; i++) {\n _registerInterface(interfaceIds[i]);\n }\n }\n}\n","urls":[]},"contracts/mocks/ERC165/ERC165NotSupported.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\ncontract ERC165NotSupported { }\n","urls":[]},"contracts/mocks/ERC165CheckerMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../introspection/ERC165Checker.sol\";\n\ncontract ERC165CheckerMock {\n using ERC165Checker for address;\n\n function supportsERC165(address account) public view returns (bool) {\n return account.supportsERC165();\n }\n\n function supportsInterface(address account, bytes4 interfaceId) public view returns (bool) {\n return account.supportsInterface(interfaceId);\n }\n\n function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) public view returns (bool) {\n return account.supportsAllInterfaces(interfaceIds);\n }\n}\n","urls":[]},"contracts/mocks/ERC165Mock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../introspection/ERC165.sol\";\n\ncontract ERC165Mock is ERC165 {\n function registerInterface(bytes4 interfaceId) public {\n _registerInterface(interfaceId);\n }\n}\n","urls":[]},"contracts/mocks/ERC1820ImplementerMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../introspection/ERC1820Implementer.sol\";\n\ncontract ERC1820ImplementerMock is ERC1820Implementer {\n function registerInterfaceForAddress(bytes32 interfaceHash, address account) public {\n _registerInterfaceForAddress(interfaceHash, account);\n }\n}\n","urls":[]},"contracts/mocks/ERC20BurnableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20Burnable.sol\";\n\ncontract ERC20BurnableMock is ERC20Burnable {\n constructor (\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) public ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n}\n","urls":[]},"contracts/mocks/ERC20CappedMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20Capped.sol\";\n\ncontract ERC20CappedMock is ERC20Capped {\n constructor (string memory name, string memory symbol, uint256 cap)\n public ERC20(name, symbol) ERC20Capped(cap)\n { }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n}\n","urls":[]},"contracts/mocks/ERC20DecimalsMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20.sol\";\n\ncontract ERC20DecimalsMock is ERC20 {\n constructor (string memory name, string memory symbol, uint8 decimals) public ERC20(name, symbol) {\n _setupDecimals(decimals);\n }\n}\n","urls":[]},"contracts/mocks/ERC20Mock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20.sol\";\n\n// mock class using ERC20\ncontract ERC20Mock is ERC20 {\n constructor (\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) public payable ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n\n function mint(address account, uint256 amount) public {\n _mint(account, amount);\n }\n\n function burn(address account, uint256 amount) public {\n _burn(account, amount);\n }\n\n function transferInternal(address from, address to, uint256 value) public {\n _transfer(from, to, value);\n }\n\n function approveInternal(address owner, address spender, uint256 value) public {\n _approve(owner, spender, value);\n }\n}\n","urls":[]},"contracts/mocks/ERC20PausableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20Pausable.sol\";\n\n// mock class using ERC20Pausable\ncontract ERC20PausableMock is ERC20Pausable {\n constructor (\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) public ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n\n function mint(address to, uint256 amount) public {\n _mint(to, amount);\n }\n\n function burn(address from, uint256 amount) public {\n _burn(from, amount);\n }\n}\n","urls":[]},"contracts/mocks/ERC20SnapshotMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20Snapshot.sol\";\n\n\ncontract ERC20SnapshotMock is ERC20Snapshot {\n constructor(\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) public ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n\n function snapshot() public {\n _snapshot();\n }\n\n function mint(address account, uint256 amount) public {\n _mint(account, amount);\n }\n\n function burn(address account, uint256 amount) public {\n _burn(account, amount);\n }\n}\n","urls":[]},"contracts/mocks/ERC721BurnableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/ERC721Burnable.sol\";\n\ncontract ERC721BurnableMock is ERC721Burnable {\n constructor(string memory name, string memory symbol) public ERC721(name, symbol) { }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n}\n","urls":[]},"contracts/mocks/ERC721GSNRecipientMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/ERC721.sol\";\nimport \"../GSN/GSNRecipient.sol\";\nimport \"../GSN/GSNRecipientSignature.sol\";\n\n/**\n * @title ERC721GSNRecipientMock\n * A simple ERC721 mock that has GSN support enabled\n */\ncontract ERC721GSNRecipientMock is ERC721, GSNRecipient, GSNRecipientSignature {\n constructor(string memory name, string memory symbol, address trustedSigner)\n public\n ERC721(name, symbol)\n GSNRecipientSignature(trustedSigner)\n { }\n\n function mint(uint256 tokenId) public {\n _mint(_msgSender(), tokenId);\n }\n\n function _msgSender() internal view override(Context, GSNRecipient) returns (address payable) {\n return GSNRecipient._msgSender();\n }\n\n function _msgData() internal view override(Context, GSNRecipient) returns (bytes memory) {\n return GSNRecipient._msgData();\n }\n}\n","urls":[]},"contracts/mocks/ERC721Mock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/ERC721.sol\";\n\n/**\n * @title ERC721Mock\n * This mock just provides a public safeMint, mint, and burn functions for testing purposes\n */\ncontract ERC721Mock is ERC721 {\n constructor (string memory name, string memory symbol) public ERC721(name, symbol) { }\n\n function exists(uint256 tokenId) public view returns (bool) {\n return _exists(tokenId);\n }\n\n function setTokenURI(uint256 tokenId, string memory uri) public {\n _setTokenURI(tokenId, uri);\n }\n\n function setBaseURI(string memory baseURI) public {\n _setBaseURI(baseURI);\n }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n\n function safeMint(address to, uint256 tokenId) public {\n _safeMint(to, tokenId);\n }\n\n function safeMint(address to, uint256 tokenId, bytes memory _data) public {\n _safeMint(to, tokenId, _data);\n }\n\n function burn(uint256 tokenId) public {\n _burn(tokenId);\n }\n}\n","urls":[]},"contracts/mocks/ERC721PausableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/ERC721Pausable.sol\";\n\n/**\n * @title ERC721PausableMock\n * This mock just provides a public mint, burn and exists functions for testing purposes\n */\ncontract ERC721PausableMock is ERC721Pausable {\n constructor (string memory name, string memory symbol) public ERC721(name, symbol) { }\n\n function mint(address to, uint256 tokenId) public {\n super._mint(to, tokenId);\n }\n\n function burn(uint256 tokenId) public {\n super._burn(tokenId);\n }\n\n function exists(uint256 tokenId) public view returns (bool) {\n return super._exists(tokenId);\n }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n}\n","urls":[]},"contracts/mocks/ERC721ReceiverMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/IERC721Receiver.sol\";\n\ncontract ERC721ReceiverMock is IERC721Receiver {\n bytes4 private _retval;\n bool private _reverts;\n\n event Received(address operator, address from, uint256 tokenId, bytes data, uint256 gas);\n\n constructor (bytes4 retval, bool reverts) public {\n _retval = retval;\n _reverts = reverts;\n }\n\n function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data)\n public override returns (bytes4)\n {\n require(!_reverts, \"ERC721ReceiverMock: reverting\");\n emit Received(operator, from, tokenId, data, gasleft());\n return _retval;\n }\n}\n","urls":[]},"contracts/mocks/ERC777Mock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC777/ERC777.sol\";\n\ncontract ERC777Mock is Context, ERC777 {\n constructor(\n address initialHolder,\n uint256 initialBalance,\n string memory name,\n string memory symbol,\n address[] memory defaultOperators\n ) public ERC777(name, symbol, defaultOperators) {\n _mint(initialHolder, initialBalance, \"\", \"\");\n }\n\n function mintInternal (\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n ) public {\n _mint(to, amount, userData, operatorData);\n }\n\n function approveInternal(address holder, address spender, uint256 value) public {\n _approve(holder, spender, value);\n }\n}\n","urls":[]},"contracts/mocks/ERC777SenderRecipientMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC777/IERC777.sol\";\nimport \"../token/ERC777/IERC777Sender.sol\";\nimport \"../token/ERC777/IERC777Recipient.sol\";\nimport \"../introspection/IERC1820Registry.sol\";\nimport \"../introspection/ERC1820Implementer.sol\";\n\ncontract ERC777SenderRecipientMock is Context, IERC777Sender, IERC777Recipient, ERC1820Implementer {\n event TokensToSendCalled(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes data,\n bytes operatorData,\n address token,\n uint256 fromBalance,\n uint256 toBalance\n );\n\n event TokensReceivedCalled(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes data,\n bytes operatorData,\n address token,\n uint256 fromBalance,\n uint256 toBalance\n );\n\n bool private _shouldRevertSend;\n bool private _shouldRevertReceive;\n\n IERC1820Registry private _erc1820 = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);\n\n bytes32 constant private _TOKENS_SENDER_INTERFACE_HASH = keccak256(\"ERC777TokensSender\");\n bytes32 constant private _TOKENS_RECIPIENT_INTERFACE_HASH = keccak256(\"ERC777TokensRecipient\");\n\n function tokensToSend(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external override {\n if (_shouldRevertSend) {\n revert();\n }\n\n IERC777 token = IERC777(_msgSender());\n\n uint256 fromBalance = token.balanceOf(from);\n // when called due to burn, to will be the zero address, which will have a balance of 0\n uint256 toBalance = token.balanceOf(to);\n\n emit TokensToSendCalled(\n operator,\n from,\n to,\n amount,\n userData,\n operatorData,\n address(token),\n fromBalance,\n toBalance\n );\n }\n\n function tokensReceived(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external override {\n if (_shouldRevertReceive) {\n revert();\n }\n\n IERC777 token = IERC777(_msgSender());\n\n uint256 fromBalance = token.balanceOf(from);\n // when called due to burn, to will be the zero address, which will have a balance of 0\n uint256 toBalance = token.balanceOf(to);\n\n emit TokensReceivedCalled(\n operator,\n from,\n to,\n amount,\n userData,\n operatorData,\n address(token),\n fromBalance,\n toBalance\n );\n }\n\n function senderFor(address account) public {\n _registerInterfaceForAddress(_TOKENS_SENDER_INTERFACE_HASH, account);\n\n address self = address(this);\n if (account == self) {\n registerSender(self);\n }\n }\n\n function registerSender(address sender) public {\n _erc1820.setInterfaceImplementer(address(this), _TOKENS_SENDER_INTERFACE_HASH, sender);\n }\n\n function recipientFor(address account) public {\n _registerInterfaceForAddress(_TOKENS_RECIPIENT_INTERFACE_HASH, account);\n\n address self = address(this);\n if (account == self) {\n registerRecipient(self);\n }\n }\n\n function registerRecipient(address recipient) public {\n _erc1820.setInterfaceImplementer(address(this), _TOKENS_RECIPIENT_INTERFACE_HASH, recipient);\n }\n\n function setShouldRevertSend(bool shouldRevert) public {\n _shouldRevertSend = shouldRevert;\n }\n\n function setShouldRevertReceive(bool shouldRevert) public {\n _shouldRevertReceive = shouldRevert;\n }\n\n function send(IERC777 token, address to, uint256 amount, bytes memory data) public {\n // This is 777's send function, not the Solidity send function\n token.send(to, amount, data); // solhint-disable-line check-send-result\n }\n\n function burn(IERC777 token, uint256 amount, bytes memory data) public {\n token.burn(amount, data);\n }\n}\n","urls":[]},"contracts/mocks/EnumerableMapMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/EnumerableMap.sol\";\n\ncontract EnumerableMapMock {\n using EnumerableMap for EnumerableMap.UintToAddressMap;\n\n event OperationResult(bool result);\n\n EnumerableMap.UintToAddressMap private _map;\n\n function contains(uint256 key) public view returns (bool) {\n return _map.contains(key);\n }\n\n function set(uint256 key, address value) public {\n bool result = _map.set(key, value);\n emit OperationResult(result);\n }\n\n function remove(uint256 key) public {\n bool result = _map.remove(key);\n emit OperationResult(result);\n }\n\n function length() public view returns (uint256) {\n return _map.length();\n }\n\n function at(uint256 index) public view returns (uint256 key, address value) {\n return _map.at(index);\n }\n\n\n function get(uint256 key) public view returns (address) {\n return _map.get(key);\n }\n}\n","urls":[]},"contracts/mocks/EnumerableSetMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/EnumerableSet.sol\";\n\n// AddressSet\ncontract EnumerableAddressSetMock {\n using EnumerableSet for EnumerableSet.AddressSet;\n\n event OperationResult(bool result);\n\n EnumerableSet.AddressSet private _set;\n\n function contains(address value) public view returns (bool) {\n return _set.contains(value);\n }\n\n function add(address value) public {\n bool result = _set.add(value);\n emit OperationResult(result);\n }\n\n function remove(address value) public {\n bool result = _set.remove(value);\n emit OperationResult(result);\n }\n\n function length() public view returns (uint256) {\n return _set.length();\n }\n\n function at(uint256 index) public view returns (address) {\n return _set.at(index);\n }\n}\n\n// UintSet\ncontract EnumerableUintSetMock {\n using EnumerableSet for EnumerableSet.UintSet;\n\n event OperationResult(bool result);\n\n EnumerableSet.UintSet private _set;\n\n function contains(uint256 value) public view returns (bool) {\n return _set.contains(value);\n }\n\n function add(uint256 value) public {\n bool result = _set.add(value);\n emit OperationResult(result);\n }\n\n function remove(uint256 value) public {\n bool result = _set.remove(value);\n emit OperationResult(result);\n }\n\n function length() public view returns (uint256) {\n return _set.length();\n }\n\n function at(uint256 index) public view returns (uint256) {\n return _set.at(index);\n }\n}\n","urls":[]},"contracts/mocks/EtherReceiverMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\ncontract EtherReceiverMock {\n bool private _acceptEther;\n\n function setAcceptEther(bool acceptEther) public {\n _acceptEther = acceptEther;\n }\n\n receive () external payable {\n if (!_acceptEther) {\n revert();\n }\n }\n}\n","urls":[]},"contracts/mocks/GSNRecipientERC20FeeMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/GSNRecipient.sol\";\nimport \"../GSN/GSNRecipientERC20Fee.sol\";\n\ncontract GSNRecipientERC20FeeMock is GSNRecipient, GSNRecipientERC20Fee {\n constructor(string memory name, string memory symbol) public GSNRecipientERC20Fee(name, symbol) { }\n\n function mint(address account, uint256 amount) public {\n _mint(account, amount);\n }\n\n event MockFunctionCalled(uint256 senderBalance);\n\n function mockFunction() public {\n emit MockFunctionCalled(token().balanceOf(_msgSender()));\n }\n}\n","urls":[]},"contracts/mocks/GSNRecipientMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ContextMock.sol\";\nimport \"../GSN/GSNRecipient.sol\";\n\n// By inheriting from GSNRecipient, Context's internal functions are overridden automatically\ncontract GSNRecipientMock is ContextMock, GSNRecipient {\n function withdrawDeposits(uint256 amount, address payable payee) public {\n _withdrawDeposits(amount, payee);\n }\n\n function acceptRelayedCall(address, address, bytes calldata, uint256, uint256, uint256, uint256, bytes calldata, uint256)\n external\n view\n override\n returns (uint256, bytes memory)\n {\n return (0, \"\");\n }\n\n function _preRelayedCall(bytes memory) internal override returns (bytes32) { }\n\n function _postRelayedCall(bytes memory, bool, uint256, bytes32) internal override { }\n\n function upgradeRelayHub(address newRelayHub) public {\n return _upgradeRelayHub(newRelayHub);\n }\n\n function _msgSender() internal override(Context, GSNRecipient) view virtual returns (address payable) {\n return GSNRecipient._msgSender();\n }\n\n function _msgData() internal override(Context, GSNRecipient) view virtual returns (bytes memory) {\n return GSNRecipient._msgData();\n }\n}\n","urls":[]},"contracts/mocks/GSNRecipientSignatureMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/GSNRecipient.sol\";\nimport \"../GSN/GSNRecipientSignature.sol\";\n\ncontract GSNRecipientSignatureMock is GSNRecipient, GSNRecipientSignature {\n constructor(address trustedSigner) public GSNRecipientSignature(trustedSigner) { }\n\n event MockFunctionCalled();\n\n function mockFunction() public {\n emit MockFunctionCalled();\n }\n}\n","urls":[]},"contracts/mocks/MathMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/Math.sol\";\n\ncontract MathMock {\n function max(uint256 a, uint256 b) public pure returns (uint256) {\n return Math.max(a, b);\n }\n\n function min(uint256 a, uint256 b) public pure returns (uint256) {\n return Math.min(a, b);\n }\n\n function average(uint256 a, uint256 b) public pure returns (uint256) {\n return Math.average(a, b);\n }\n}\n","urls":[]},"contracts/mocks/MerkleProofWrapper.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport { MerkleProof } from \"../cryptography/MerkleProof.sol\";\n\ncontract MerkleProofWrapper {\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) public pure returns (bool) {\n return MerkleProof.verify(proof, root, leaf);\n }\n}\n","urls":[]},"contracts/mocks/OwnableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/Ownable.sol\";\n\ncontract OwnableMock is Ownable { }\n","urls":[]},"contracts/mocks/PausableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Pausable.sol\";\n\ncontract PausableMock is Pausable {\n bool public drasticMeasureTaken;\n uint256 public count;\n\n constructor () public {\n drasticMeasureTaken = false;\n count = 0;\n }\n\n function normalProcess() external whenNotPaused {\n count++;\n }\n\n function drasticMeasure() external whenPaused {\n drasticMeasureTaken = true;\n }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n}\n","urls":[]},"contracts/mocks/PullPaymentMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../payment/PullPayment.sol\";\n\n// mock class using PullPayment\ncontract PullPaymentMock is PullPayment {\n constructor () public payable { }\n\n // test helper function to call asyncTransfer\n function callTransfer(address dest, uint256 amount) public {\n _asyncTransfer(dest, amount);\n }\n}\n","urls":[]},"contracts/mocks/ReentrancyAttack.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\ncontract ReentrancyAttack is Context {\n function callSender(bytes4 data) public {\n // solhint-disable-next-line avoid-low-level-calls\n (bool success,) = _msgSender().call(abi.encodeWithSelector(data));\n require(success, \"ReentrancyAttack: failed call\");\n }\n}\n","urls":[]},"contracts/mocks/ReentrancyMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/ReentrancyGuard.sol\";\nimport \"./ReentrancyAttack.sol\";\n\ncontract ReentrancyMock is ReentrancyGuard {\n uint256 public counter;\n\n constructor () public {\n counter = 0;\n }\n\n function callback() external nonReentrant {\n _count();\n }\n\n function countLocalRecursive(uint256 n) public nonReentrant {\n if (n > 0) {\n _count();\n countLocalRecursive(n - 1);\n }\n }\n\n function countThisRecursive(uint256 n) public nonReentrant {\n if (n > 0) {\n _count();\n // solhint-disable-next-line avoid-low-level-calls\n (bool success,) = address(this).call(abi.encodeWithSignature(\"countThisRecursive(uint256)\", n - 1));\n require(success, \"ReentrancyMock: failed call\");\n }\n }\n\n function countAndCall(ReentrancyAttack attacker) public nonReentrant {\n _count();\n bytes4 func = bytes4(keccak256(\"callback()\"));\n attacker.callSender(func);\n }\n\n function _count() private {\n counter += 1;\n }\n}\n","urls":[]},"contracts/mocks/SafeCastMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/SafeCast.sol\";\n\ncontract SafeCastMock {\n using SafeCast for uint;\n using SafeCast for int;\n\n function toUint256(int a) public pure returns (uint256) {\n return a.toUint256();\n }\n\n function toInt256(uint a) public pure returns (int256) {\n return a.toInt256();\n }\n\n function toUint128(uint a) public pure returns (uint128) {\n return a.toUint128();\n }\n\n function toUint64(uint a) public pure returns (uint64) {\n return a.toUint64();\n }\n\n function toUint32(uint a) public pure returns (uint32) {\n return a.toUint32();\n }\n\n function toUint16(uint a) public pure returns (uint16) {\n return a.toUint16();\n }\n\n function toUint8(uint a) public pure returns (uint8) {\n return a.toUint8();\n }\n\n function toInt128(int a) public pure returns (int128) {\n return a.toInt128();\n }\n\n function toInt64(int a) public pure returns (int64) {\n return a.toInt64();\n }\n\n function toInt32(int a) public pure returns (int32) {\n return a.toInt32();\n }\n\n function toInt16(int a) public pure returns (int16) {\n return a.toInt16();\n }\n\n function toInt8(int a) public pure returns (int8) {\n return a.toInt8();\n }\n}\n","urls":[]},"contracts/mocks/SafeERC20Helper.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC20/IERC20.sol\";\nimport \"../token/ERC20/SafeERC20.sol\";\n\ncontract ERC20ReturnFalseMock is Context {\n uint256 private _allowance;\n\n // IERC20's functions are not pure, but these mock implementations are: to prevent Solidity from issuing warnings,\n // we write to a dummy state variable.\n uint256 private _dummy;\n\n function transfer(address, uint256) public returns (bool) {\n _dummy = 0;\n return false;\n }\n\n function transferFrom(address, address, uint256) public returns (bool) {\n _dummy = 0;\n return false;\n }\n\n function approve(address, uint256) public returns (bool) {\n _dummy = 0;\n return false;\n }\n\n function allowance(address, address) public view returns (uint256) {\n require(_dummy == 0); // Duummy read from a state variable so that the function is view\n return 0;\n }\n}\n\ncontract ERC20ReturnTrueMock is Context {\n mapping (address => uint256) private _allowances;\n\n // IERC20's functions are not pure, but these mock implementations are: to prevent Solidity from issuing warnings,\n // we write to a dummy state variable.\n uint256 private _dummy;\n\n function transfer(address, uint256) public returns (bool) {\n _dummy = 0;\n return true;\n }\n\n function transferFrom(address, address, uint256) public returns (bool) {\n _dummy = 0;\n return true;\n }\n\n function approve(address, uint256) public returns (bool) {\n _dummy = 0;\n return true;\n }\n\n function setAllowance(uint256 allowance_) public {\n _allowances[_msgSender()] = allowance_;\n }\n\n function allowance(address owner, address) public view returns (uint256) {\n return _allowances[owner];\n }\n}\n\ncontract ERC20NoReturnMock is Context {\n mapping (address => uint256) private _allowances;\n\n // IERC20's functions are not pure, but these mock implementations are: to prevent Solidity from issuing warnings,\n // we write to a dummy state variable.\n uint256 private _dummy;\n\n function transfer(address, uint256) public {\n _dummy = 0;\n }\n\n function transferFrom(address, address, uint256) public {\n _dummy = 0;\n }\n\n function approve(address, uint256) public {\n _dummy = 0;\n }\n\n function setAllowance(uint256 allowance_) public {\n _allowances[_msgSender()] = allowance_;\n }\n\n function allowance(address owner, address) public view returns (uint256) {\n return _allowances[owner];\n }\n}\n\ncontract SafeERC20Wrapper is Context {\n using SafeERC20 for IERC20;\n\n IERC20 private _token;\n\n constructor (IERC20 token) public {\n _token = token;\n }\n\n function transfer() public {\n _token.safeTransfer(address(0), 0);\n }\n\n function transferFrom() public {\n _token.safeTransferFrom(address(0), address(0), 0);\n }\n\n function approve(uint256 amount) public {\n _token.safeApprove(address(0), amount);\n }\n\n function increaseAllowance(uint256 amount) public {\n _token.safeIncreaseAllowance(address(0), amount);\n }\n\n function decreaseAllowance(uint256 amount) public {\n _token.safeDecreaseAllowance(address(0), amount);\n }\n\n function setAllowance(uint256 allowance_) public {\n ERC20ReturnTrueMock(address(_token)).setAllowance(allowance_);\n }\n\n function allowance() public view returns (uint256) {\n return _token.allowance(address(0), address(0));\n }\n}\n","urls":[]},"contracts/mocks/SafeMathMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/SafeMath.sol\";\n\ncontract SafeMathMock {\n function mul(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.mul(a, b);\n }\n\n function div(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.div(a, b);\n }\n\n function sub(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.sub(a, b);\n }\n\n function add(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.add(a, b);\n }\n\n function mod(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.mod(a, b);\n }\n}\n","urls":[]},"contracts/mocks/SignedSafeMathMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/SignedSafeMath.sol\";\n\ncontract SignedSafeMathMock {\n function mul(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.mul(a, b);\n }\n\n function div(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.div(a, b);\n }\n\n function sub(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.sub(a, b);\n }\n\n function add(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.add(a, b);\n }\n}\n","urls":[]},"contracts/mocks/StringsMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Strings.sol\";\n\ncontract StringsMock {\n function fromUint256(uint256 value) public pure returns (string memory) {\n return Strings.toString(value);\n }\n}\n","urls":[]},"contracts/payment/PaymentSplitter.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\nimport \"../math/SafeMath.sol\";\n\n/**\n * @title PaymentSplitter\n * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware\n * that the Ether will be split in this way, since it is handled transparently by the contract.\n *\n * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each\n * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim\n * an amount proportional to the percentage of total shares they were assigned.\n *\n * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the\n * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}\n * function.\n */\ncontract PaymentSplitter is Context {\n using SafeMath for uint256;\n\n event PayeeAdded(address account, uint256 shares);\n event PaymentReleased(address to, uint256 amount);\n event PaymentReceived(address from, uint256 amount);\n\n uint256 private _totalShares;\n uint256 private _totalReleased;\n\n mapping(address => uint256) private _shares;\n mapping(address => uint256) private _released;\n address[] private _payees;\n\n /**\n * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at\n * the matching position in the `shares` array.\n *\n * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no\n * duplicates in `payees`.\n */\n constructor (address[] memory payees, uint256[] memory shares) public payable {\n // solhint-disable-next-line max-line-length\n require(payees.length == shares.length, \"PaymentSplitter: payees and shares length mismatch\");\n require(payees.length > 0, \"PaymentSplitter: no payees\");\n\n for (uint256 i = 0; i < payees.length; i++) {\n _addPayee(payees[i], shares[i]);\n }\n }\n\n /**\n * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully\n * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the\n * reliability of the events, and not the actual splitting of Ether.\n *\n * To learn more about this see the Solidity documentation for\n * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback\n * functions].\n */\n receive () external payable virtual {\n emit PaymentReceived(_msgSender(), msg.value);\n }\n\n /**\n * @dev Getter for the total shares held by payees.\n */\n function totalShares() public view returns (uint256) {\n return _totalShares;\n }\n\n /**\n * @dev Getter for the total amount of Ether already released.\n */\n function totalReleased() public view returns (uint256) {\n return _totalReleased;\n }\n\n /**\n * @dev Getter for the amount of shares held by an account.\n */\n function shares(address account) public view returns (uint256) {\n return _shares[account];\n }\n\n /**\n * @dev Getter for the amount of Ether already released to a payee.\n */\n function released(address account) public view returns (uint256) {\n return _released[account];\n }\n\n /**\n * @dev Getter for the address of the payee number `index`.\n */\n function payee(uint256 index) public view returns (address) {\n return _payees[index];\n }\n\n /**\n * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the\n * total shares and their previous withdrawals.\n */\n function release(address payable account) public virtual {\n require(_shares[account] > 0, \"PaymentSplitter: account has no shares\");\n\n uint256 totalReceived = address(this).balance.add(_totalReleased);\n uint256 payment = totalReceived.mul(_shares[account]).div(_totalShares).sub(_released[account]);\n\n require(payment != 0, \"PaymentSplitter: account is not due payment\");\n\n _released[account] = _released[account].add(payment);\n _totalReleased = _totalReleased.add(payment);\n\n account.transfer(payment);\n emit PaymentReleased(account, payment);\n }\n\n /**\n * @dev Add a new payee to the contract.\n * @param account The address of the payee to add.\n * @param shares_ The number of shares owned by the payee.\n */\n function _addPayee(address account, uint256 shares_) private {\n require(account != address(0), \"PaymentSplitter: account is the zero address\");\n require(shares_ > 0, \"PaymentSplitter: shares are 0\");\n require(_shares[account] == 0, \"PaymentSplitter: account already has shares\");\n\n _payees.push(account);\n _shares[account] = shares_;\n _totalShares = _totalShares.add(shares_);\n emit PayeeAdded(account, shares_);\n }\n}\n","urls":[]},"contracts/payment/PullPayment.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"./escrow/Escrow.sol\";\n\n/**\n * @dev Simple implementation of a\n * https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment]\n * strategy, where the paying contract doesn't interact directly with the\n * receiver account, which must withdraw its payments itself.\n *\n * Pull-payments are often considered the best practice when it comes to sending\n * Ether, security-wise. It prevents recipients from blocking execution, and\n * eliminates reentrancy concerns.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n *\n * To use, derive from the `PullPayment` contract, and use {_asyncTransfer}\n * instead of Solidity's `transfer` function. Payees can query their due\n * payments with {payments}, and retrieve them with {withdrawPayments}.\n */\ncontract PullPayment {\n Escrow private _escrow;\n\n constructor () internal {\n _escrow = new Escrow();\n }\n\n /**\n * @dev Withdraw accumulated payments, forwarding all gas to the recipient.\n *\n * Note that _any_ account can call this function, not just the `payee`.\n * This means that contracts unaware of the `PullPayment` protocol can still\n * receive funds this way, by having a separate account call\n * {withdrawPayments}.\n *\n * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.\n * Make sure you trust the recipient, or are either following the\n * checks-effects-interactions pattern or using {ReentrancyGuard}.\n *\n * @param payee Whose payments will be withdrawn.\n */\n function withdrawPayments(address payable payee) public virtual {\n _escrow.withdraw(payee);\n }\n\n /**\n * @dev Returns the payments owed to an address.\n * @param dest The creditor's address.\n */\n function payments(address dest) public view returns (uint256) {\n return _escrow.depositsOf(dest);\n }\n\n /**\n * @dev Called by the payer to store the sent amount as credit to be pulled.\n * Funds sent in this way are stored in an intermediate {Escrow} contract, so\n * there is no danger of them being spent before withdrawal.\n *\n * @param dest The destination address of the funds.\n * @param amount The amount to transfer.\n */\n function _asyncTransfer(address dest, uint256 amount) internal virtual {\n _escrow.deposit{ value: amount }(dest);\n }\n}\n","urls":[]},"contracts/payment/escrow/ConditionalEscrow.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./Escrow.sol\";\n\n/**\n * @title ConditionalEscrow\n * @dev Base abstract escrow to only allow withdrawal if a condition is met.\n * @dev Intended usage: See {Escrow}. Same usage guidelines apply here.\n */\nabstract contract ConditionalEscrow is Escrow {\n /**\n * @dev Returns whether an address is allowed to withdraw their funds. To be\n * implemented by derived contracts.\n * @param payee The destination address of the funds.\n */\n function withdrawalAllowed(address payee) public view virtual returns (bool);\n\n function withdraw(address payable payee) public virtual override {\n require(withdrawalAllowed(payee), \"ConditionalEscrow: payee is not allowed to withdraw\");\n super.withdraw(payee);\n }\n}\n","urls":[]},"contracts/payment/escrow/Escrow.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../math/SafeMath.sol\";\nimport \"../../access/Ownable.sol\";\nimport \"../../utils/Address.sol\";\n\n /**\n * @title Escrow\n * @dev Base escrow contract, holds funds designated for a payee until they\n * withdraw them.\n *\n * Intended usage: This contract (and derived escrow contracts) should be a\n * standalone contract, that only interacts with the contract that instantiated\n * it. That way, it is guaranteed that all Ether will be handled according to\n * the `Escrow` rules, and there is no need to check for payable functions or\n * transfers in the inheritance tree. The contract that uses the escrow as its\n * payment method should be its owner, and provide public methods redirecting\n * to the escrow's deposit and withdraw.\n */\ncontract Escrow is Ownable {\n using SafeMath for uint256;\n using Address for address payable;\n\n event Deposited(address indexed payee, uint256 weiAmount);\n event Withdrawn(address indexed payee, uint256 weiAmount);\n\n mapping(address => uint256) private _deposits;\n\n function depositsOf(address payee) public view returns (uint256) {\n return _deposits[payee];\n }\n\n /**\n * @dev Stores the sent amount as credit to be withdrawn.\n * @param payee The destination address of the funds.\n */\n function deposit(address payee) public virtual payable onlyOwner {\n uint256 amount = msg.value;\n _deposits[payee] = _deposits[payee].add(amount);\n\n emit Deposited(payee, amount);\n }\n\n /**\n * @dev Withdraw accumulated balance for a payee, forwarding all gas to the\n * recipient.\n *\n * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.\n * Make sure you trust the recipient, or are either following the\n * checks-effects-interactions pattern or using {ReentrancyGuard}.\n *\n * @param payee The address whose funds will be withdrawn and transferred to.\n */\n function withdraw(address payable payee) public virtual onlyOwner {\n uint256 payment = _deposits[payee];\n\n _deposits[payee] = 0;\n\n payee.sendValue(payment);\n\n emit Withdrawn(payee, payment);\n }\n}\n","urls":[]},"contracts/payment/escrow/RefundEscrow.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ConditionalEscrow.sol\";\n\n/**\n * @title RefundEscrow\n * @dev Escrow that holds funds for a beneficiary, deposited from multiple\n * parties.\n * @dev Intended usage: See {Escrow}. Same usage guidelines apply here.\n * @dev The owner account (that is, the contract that instantiates this\n * contract) may deposit, close the deposit period, and allow for either\n * withdrawal by the beneficiary, or refunds to the depositors. All interactions\n * with `RefundEscrow` will be made through the owner contract.\n */\ncontract RefundEscrow is ConditionalEscrow {\n enum State { Active, Refunding, Closed }\n\n event RefundsClosed();\n event RefundsEnabled();\n\n State private _state;\n address payable private _beneficiary;\n\n /**\n * @dev Constructor.\n * @param beneficiary The beneficiary of the deposits.\n */\n constructor (address payable beneficiary) public {\n require(beneficiary != address(0), \"RefundEscrow: beneficiary is the zero address\");\n _beneficiary = beneficiary;\n _state = State.Active;\n }\n\n /**\n * @return The current state of the escrow.\n */\n function state() public view returns (State) {\n return _state;\n }\n\n /**\n * @return The beneficiary of the escrow.\n */\n function beneficiary() public view returns (address) {\n return _beneficiary;\n }\n\n /**\n * @dev Stores funds that may later be refunded.\n * @param refundee The address funds will be sent to if a refund occurs.\n */\n function deposit(address refundee) public payable virtual override {\n require(_state == State.Active, \"RefundEscrow: can only deposit while active\");\n super.deposit(refundee);\n }\n\n /**\n * @dev Allows for the beneficiary to withdraw their funds, rejecting\n * further deposits.\n */\n function close() public onlyOwner virtual {\n require(_state == State.Active, \"RefundEscrow: can only close while active\");\n _state = State.Closed;\n emit RefundsClosed();\n }\n\n /**\n * @dev Allows for refunds to take place, rejecting further deposits.\n */\n function enableRefunds() public onlyOwner virtual {\n require(_state == State.Active, \"RefundEscrow: can only enable refunds while active\");\n _state = State.Refunding;\n emit RefundsEnabled();\n }\n\n /**\n * @dev Withdraws the beneficiary's funds.\n */\n function beneficiaryWithdraw() public virtual {\n require(_state == State.Closed, \"RefundEscrow: beneficiary can only withdraw while closed\");\n _beneficiary.transfer(address(this).balance);\n }\n\n /**\n * @dev Returns whether refundees can withdraw their deposits (be refunded). The overridden function receives a\n * 'payee' argument, but we ignore it here since the condition is global, not per-payee.\n */\n function withdrawalAllowed(address) public view override returns (bool) {\n return _state == State.Refunding;\n }\n}\n","urls":[]},"contracts/presets/ERC1155PresetMinterPauser.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/AccessControl.sol\";\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC1155/ERC1155.sol\";\nimport \"../token/ERC1155/ERC1155Burnable.sol\";\nimport \"../token/ERC1155/ERC1155Pausable.sol\";\n\n/**\n * @dev {ERC1155} token, including:\n *\n * - ability for holders to burn (destroy) their tokens\n * - a minter role that allows for token minting (creation)\n * - a pauser role that allows to stop all token transfers\n *\n * This contract uses {AccessControl} to lock permissioned functions using the\n * different roles - head to its documentation for details.\n *\n * The account that deploys the contract will be granted the minter and pauser\n * roles, as well as the default admin role, which will let it grant both minter\n * and pauser roles to other accounts.\n */\ncontract ERC1155PresetMinterPauser is Context, AccessControl, ERC1155Burnable, ERC1155Pausable {\n bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n\n /**\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, and `PAUSER_ROLE` to the account that\n * deploys the contract.\n */\n constructor(string memory uri) public ERC1155(uri) {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n\n _setupRole(MINTER_ROLE, _msgSender());\n _setupRole(PAUSER_ROLE, _msgSender());\n }\n\n /**\n * @dev Creates `amount` new tokens for `to`, of token type `id`.\n *\n * See {ERC1155-_mint}.\n *\n * Requirements:\n *\n * - the caller must have the `MINTER_ROLE`.\n */\n function mint(address to, uint256 id, uint256 amount, bytes memory data) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have minter role to mint\");\n\n _mint(to, id, amount, data);\n }\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}.\n */\n function mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have minter role to mint\");\n\n _mintBatch(to, ids, amounts, data);\n }\n\n /**\n * @dev Pauses all token transfers.\n *\n * See {ERC1155Pausable} and {Pausable-_pause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function pause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have pauser role to pause\");\n _pause();\n }\n\n /**\n * @dev Unpauses all token transfers.\n *\n * See {ERC1155Pausable} and {Pausable-_unpause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function unpause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have pauser role to unpause\");\n _unpause();\n }\n\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n internal virtual override(ERC1155, ERC1155Pausable)\n {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n }\n}\n","urls":[]},"contracts/presets/ERC20PresetMinterPauser.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/AccessControl.sol\";\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC20/ERC20.sol\";\nimport \"../token/ERC20/ERC20Burnable.sol\";\nimport \"../token/ERC20/ERC20Pausable.sol\";\n\n/**\n * @dev {ERC20} token, including:\n *\n * - ability for holders to burn (destroy) their tokens\n * - a minter role that allows for token minting (creation)\n * - a pauser role that allows to stop all token transfers\n *\n * This contract uses {AccessControl} to lock permissioned functions using the\n * different roles - head to its documentation for details.\n *\n * The account that deploys the contract will be granted the minter and pauser\n * roles, as well as the default admin role, which will let it grant both minter\n * and pauser roles to other accounts.\n */\ncontract ERC20PresetMinterPauser is Context, AccessControl, ERC20Burnable, ERC20Pausable {\n bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n\n /**\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the\n * account that deploys the contract.\n *\n * See {ERC20-constructor}.\n */\n constructor(string memory name, string memory symbol) public ERC20(name, symbol) {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n\n _setupRole(MINTER_ROLE, _msgSender());\n _setupRole(PAUSER_ROLE, _msgSender());\n }\n\n /**\n * @dev Creates `amount` new tokens for `to`.\n *\n * See {ERC20-_mint}.\n *\n * Requirements:\n *\n * - the caller must have the `MINTER_ROLE`.\n */\n function mint(address to, uint256 amount) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have minter role to mint\");\n _mint(to, amount);\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 virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have pauser role to pause\");\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 virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have pauser role to unpause\");\n _unpause();\n }\n\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20, ERC20Pausable) {\n super._beforeTokenTransfer(from, to, amount);\n }\n}\n","urls":[]},"contracts/presets/ERC721PresetMinterPauserAutoId.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/AccessControl.sol\";\nimport \"../GSN/Context.sol\";\nimport \"../utils/Counters.sol\";\nimport \"../token/ERC721/ERC721.sol\";\nimport \"../token/ERC721/ERC721Burnable.sol\";\nimport \"../token/ERC721/ERC721Pausable.sol\";\n\n/**\n * @dev {ERC721} token, including:\n *\n * - ability for holders to burn (destroy) their tokens\n * - a minter role that allows for token minting (creation)\n * - a pauser role that allows to stop all token transfers\n * - token ID and URI autogeneration\n *\n * This contract uses {AccessControl} to lock permissioned functions using the\n * different roles - head to its documentation for details.\n *\n * The account that deploys the contract will be granted the minter and pauser\n * roles, as well as the default admin role, which will let it grant both minter\n * and pauser roles to other accounts.\n */\ncontract ERC721PresetMinterPauserAutoId is Context, AccessControl, ERC721Burnable, ERC721Pausable {\n using Counters for Counters.Counter;\n\n bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n\n Counters.Counter private _tokenIdTracker;\n\n /**\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the\n * account that deploys the contract.\n *\n * Token URIs will be autogenerated based on `baseURI` and their token IDs.\n * See {ERC721-tokenURI}.\n */\n constructor(string memory name, string memory symbol, string memory baseURI) public ERC721(name, symbol) {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n\n _setupRole(MINTER_ROLE, _msgSender());\n _setupRole(PAUSER_ROLE, _msgSender());\n\n _setBaseURI(baseURI);\n }\n\n /**\n * @dev Creates a new token for `to`. Its token ID will be automatically\n * assigned (and available on the emitted {IERC721-Transfer} event), and the token\n * URI autogenerated based on the base URI passed at construction.\n *\n * See {ERC721-_mint}.\n *\n * Requirements:\n *\n * - the caller must have the `MINTER_ROLE`.\n */\n function mint(address to) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC721PresetMinterPauserAutoId: must have minter role to mint\");\n\n // We can just use balanceOf to create the new tokenId because tokens\n // can be burned (destroyed), so we need a separate counter.\n _mint(to, _tokenIdTracker.current());\n _tokenIdTracker.increment();\n }\n\n /**\n * @dev Pauses all token transfers.\n *\n * See {ERC721Pausable} and {Pausable-_pause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function pause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC721PresetMinterPauserAutoId: must have pauser role to pause\");\n _pause();\n }\n\n /**\n * @dev Unpauses all token transfers.\n *\n * See {ERC721Pausable} and {Pausable-_unpause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function unpause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC721PresetMinterPauserAutoId: must have pauser role to unpause\");\n _unpause();\n }\n\n function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Pausable) {\n super._beforeTokenTransfer(from, to, tokenId);\n }\n}\n","urls":[]},"contracts/token/ERC1155/ERC1155.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC1155.sol\";\nimport \"./IERC1155MetadataURI.sol\";\nimport \"./IERC1155Receiver.sol\";\nimport \"../../GSN/Context.sol\";\nimport \"../../introspection/ERC165.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.sol\";\n\n/**\n *\n * @dev Implementation of the basic standard multi-token.\n * See https://eips.ethereum.org/EIPS/eip-1155\n * Originally based on code by Enjin: https://github.com/enjin/erc-1155\n *\n * _Available since v3.1._\n */\ncontract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {\n using SafeMath for uint256;\n using Address for address;\n\n // Mapping from token ID to account balances\n mapping (uint256 => mapping(address => uint256)) private _balances;\n\n // Mapping from account to operator approvals\n mapping (address => mapping(address => bool)) private _operatorApprovals;\n\n // Used as the URI for all token types by relying on ID substition, e.g. https://token-cdn-domain/{id}.json\n string private _uri;\n\n /*\n * bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e\n * bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4\n * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465\n * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5\n * bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a\n * bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6\n *\n * => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^\n * 0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26\n */\n bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26;\n\n /*\n * bytes4(keccak256('uri(uint256)')) == 0x0e89341c\n */\n bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c;\n\n /**\n * @dev See {_setURI}.\n */\n constructor (string memory uri) public {\n _setURI(uri);\n\n // register the supported interfaces to conform to ERC1155 via ERC165\n _registerInterface(_INTERFACE_ID_ERC1155);\n\n // register the supported interfaces to conform to ERC1155MetadataURI via ERC165\n _registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI);\n }\n\n /**\n * @dev See {IERC1155MetadataURI-uri}.\n *\n * This implementation returns the same URI for *all* token types. It relies\n * on the token type ID substituion mechanism\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\n *\n * Clients calling this function must replace the `\\{id\\}` substring with the\n * actual token type ID.\n */\n function uri(uint256) external view override returns (string memory) {\n return _uri;\n }\n\n /**\n * @dev See {IERC1155-balanceOf}.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function balanceOf(address account, uint256 id) public view override returns (uint256) {\n require(account != address(0), \"ERC1155: balance query for the zero address\");\n return _balances[id][account];\n }\n\n /**\n * @dev See {IERC1155-balanceOfBatch}.\n *\n * Requirements:\n *\n * - `accounts` and `ids` must have the same length.\n */\n function balanceOfBatch(\n address[] memory accounts,\n uint256[] memory ids\n )\n public\n view\n override\n returns (uint256[] memory)\n {\n require(accounts.length == ids.length, \"ERC1155: accounts and ids length mismatch\");\n\n uint256[] memory batchBalances = new uint256[](accounts.length);\n\n for (uint256 i = 0; i < accounts.length; ++i) {\n require(accounts[i] != address(0), \"ERC1155: batch balance query for the zero address\");\n batchBalances[i] = _balances[ids[i]][accounts[i]];\n }\n\n return batchBalances;\n }\n\n /**\n * @dev See {IERC1155-setApprovalForAll}.\n */\n function setApprovalForAll(address operator, bool approved) public virtual override {\n require(_msgSender() != operator, \"ERC1155: setting approval status for self\");\n\n _operatorApprovals[_msgSender()][operator] = approved;\n emit ApprovalForAll(_msgSender(), operator, approved);\n }\n\n /**\n * @dev See {IERC1155-isApprovedForAll}.\n */\n function isApprovedForAll(address account, address operator) public view override returns (bool) {\n return _operatorApprovals[account][operator];\n }\n\n /**\n * @dev See {IERC1155-safeTransferFrom}.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 id,\n uint256 amount,\n bytes memory data\n )\n public\n virtual\n override\n {\n require(to != address(0), \"ERC1155: transfer to the zero address\");\n require(\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\n \"ERC1155: caller is not owner nor approved\"\n );\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);\n\n _balances[id][from] = _balances[id][from].sub(amount, \"ERC1155: insufficient balance for transfer\");\n _balances[id][to] = _balances[id][to].add(amount);\n\n emit TransferSingle(operator, from, to, id, amount);\n\n _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);\n }\n\n /**\n * @dev See {IERC1155-safeBatchTransferFrom}.\n */\n function safeBatchTransferFrom(\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n public\n virtual\n override\n {\n require(ids.length == amounts.length, \"ERC1155: ids and amounts length mismatch\");\n require(to != address(0), \"ERC1155: transfer to the zero address\");\n require(\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\n \"ERC1155: transfer caller is not owner nor approved\"\n );\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, from, to, ids, amounts, data);\n\n for (uint256 i = 0; i < ids.length; ++i) {\n uint256 id = ids[i];\n uint256 amount = amounts[i];\n\n _balances[id][from] = _balances[id][from].sub(\n amount,\n \"ERC1155: insufficient balance for transfer\"\n );\n _balances[id][to] = _balances[id][to].add(amount);\n }\n\n emit TransferBatch(operator, from, to, ids, amounts);\n\n _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);\n }\n\n /**\n * @dev Sets a new URI for all token types, by relying on the token type ID\n * substituion mechanism\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\n *\n * By this mechanism, any occurence of the `\\{id\\}` substring in either the\n * URI or any of the amounts in the JSON file at said URI will be replaced by\n * clients with the token type ID.\n *\n * For example, the `https://token-cdn-domain/\\{id\\}.json` URI would be\n * interpreted by clients as\n * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`\n * for token type ID 0x4cce0.\n *\n * See {uri}.\n *\n * Because these URIs cannot be meaningfully represented by the {URI} event,\n * this function emits no events.\n */\n function _setURI(string memory newuri) internal virtual {\n _uri = newuri;\n }\n\n /**\n * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.\n *\n * Emits a {TransferSingle} event.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\n * acceptance magic value.\n */\n function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal virtual {\n require(account != address(0), \"ERC1155: mint to the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);\n\n _balances[id][account] = _balances[id][account].add(amount);\n emit TransferSingle(operator, address(0), account, id, amount);\n\n _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);\n }\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\n * acceptance magic value.\n */\n function _mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual {\n require(to != address(0), \"ERC1155: mint to the zero address\");\n require(ids.length == amounts.length, \"ERC1155: ids and amounts length mismatch\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);\n\n for (uint i = 0; i < ids.length; i++) {\n _balances[ids[i]][to] = amounts[i].add(_balances[ids[i]][to]);\n }\n\n emit TransferBatch(operator, address(0), to, ids, amounts);\n\n _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);\n }\n\n /**\n * @dev Destroys `amount` tokens of token type `id` from `account`\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens of token type `id`.\n */\n function _burn(address account, uint256 id, uint256 amount) internal virtual {\n require(account != address(0), \"ERC1155: burn from the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), \"\");\n\n _balances[id][account] = _balances[id][account].sub(\n amount,\n \"ERC1155: burn amount exceeds balance\"\n );\n\n emit TransferSingle(operator, account, address(0), id, amount);\n }\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n */\n function _burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) internal virtual {\n require(account != address(0), \"ERC1155: burn from the zero address\");\n require(ids.length == amounts.length, \"ERC1155: ids and amounts length mismatch\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, account, address(0), ids, amounts, \"\");\n\n for (uint i = 0; i < ids.length; i++) {\n _balances[ids[i]][account] = _balances[ids[i]][account].sub(\n amounts[i],\n \"ERC1155: burn amount exceeds balance\"\n );\n }\n\n emit TransferBatch(operator, account, address(0), ids, amounts);\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes minting\n * and burning, as well as batched variants.\n *\n * The same hook is called on both single and batched variants. For single\n * transfers, the length of the `id` and `amount` arrays will be 1.\n *\n * Calling conditions (for each `id` and `amount` pair):\n *\n * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * of token type `id` will be transferred to `to`.\n * - When `from` is zero, `amount` tokens of token type `id` will be minted\n * for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`\n * will be burned.\n * - `from` and `to` are never both zero.\n * - `ids` and `amounts` have the same, non-zero length.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n internal virtual\n { }\n\n function _doSafeTransferAcceptanceCheck(\n address operator,\n address from,\n address to,\n uint256 id,\n uint256 amount,\n bytes memory data\n )\n private\n {\n if (to.isContract()) {\n try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {\n if (response != IERC1155Receiver(to).onERC1155Received.selector) {\n revert(\"ERC1155: ERC1155Receiver rejected tokens\");\n }\n } catch Error(string memory reason) {\n revert(reason);\n } catch {\n revert(\"ERC1155: transfer to non ERC1155Receiver implementer\");\n }\n }\n }\n\n function _doSafeBatchTransferAcceptanceCheck(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n private\n {\n if (to.isContract()) {\n try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (bytes4 response) {\n if (response != IERC1155Receiver(to).onERC1155BatchReceived.selector) {\n revert(\"ERC1155: ERC1155Receiver rejected tokens\");\n }\n } catch Error(string memory reason) {\n revert(reason);\n } catch {\n revert(\"ERC1155: transfer to non ERC1155Receiver implementer\");\n }\n }\n }\n\n function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {\n uint256[] memory array = new uint256[](1);\n array[0] = element;\n\n return array;\n }\n}\n","urls":[]},"contracts/token/ERC1155/ERC1155Burnable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC1155.sol\";\n\n/**\n * @dev Extension of {ERC1155} that allows token holders to destroy both their\n * own tokens and those that they have been approved to use.\n *\n * _Available since v3.1._\n */\nabstract contract ERC1155Burnable is ERC1155 {\n function burn(address account, uint256 id, uint256 value) public virtual {\n require(\n account == _msgSender() || isApprovedForAll(account, _msgSender()),\n \"ERC1155: caller is not owner nor approved\"\n );\n\n _burn(account, id, value);\n }\n\n function burnBatch(address account, uint256[] memory ids, uint256[] memory values) public virtual {\n require(\n account == _msgSender() || isApprovedForAll(account, _msgSender()),\n \"ERC1155: caller is not owner nor approved\"\n );\n\n _burnBatch(account, ids, values);\n }\n}\n","urls":[]},"contracts/token/ERC1155/ERC1155Holder.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC1155Receiver.sol\";\n\n/**\n * @dev _Available since v3.1._\n */\ncontract ERC1155Holder is ERC1155Receiver {\n function onERC1155Received(address, address, uint256, uint256, bytes memory) public virtual override returns (bytes4) {\n return this.onERC1155Received.selector;\n }\n\n function onERC1155BatchReceived(address, address, uint256[] memory, uint256[] memory, bytes memory) public virtual override returns (bytes4) {\n return this.onERC1155BatchReceived.selector;\n }\n}\n","urls":[]},"contracts/token/ERC1155/ERC1155Pausable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC1155.sol\";\nimport \"../../utils/Pausable.sol\";\n\n/**\n * @dev ERC1155 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 *\n * _Available since v3.1._\n */\nabstract contract ERC1155Pausable is ERC1155, Pausable {\n /**\n * @dev See {ERC1155-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n internal virtual override\n {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n\n require(!paused(), \"ERC1155Pausable: token transfer while paused\");\n }\n}\n","urls":[]},"contracts/token/ERC1155/ERC1155Receiver.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC1155Receiver.sol\";\nimport \"../../introspection/ERC165.sol\";\n\n/**\n * @dev _Available since v3.1._\n */\nabstract contract ERC1155Receiver is ERC165, IERC1155Receiver {\n constructor() public {\n _registerInterface(\n ERC1155Receiver(0).onERC1155Received.selector ^\n ERC1155Receiver(0).onERC1155BatchReceived.selector\n );\n }\n}\n","urls":[]},"contracts/token/ERC1155/IERC1155.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"../../introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC1155 compliant contract, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1155[EIP].\n *\n * _Available since v3.1._\n */\ninterface IERC1155 is IERC165 {\n /**\n * @dev Emitted when `value` tokens of token type `id` are transfered from `from` to `to` by `operator`.\n */\n event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);\n\n /**\n * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all\n * transfers.\n */\n event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);\n\n /**\n * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to\n * `approved`.\n */\n event ApprovalForAll(address indexed account, address indexed operator, bool approved);\n\n /**\n * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.\n *\n * If an {URI} event was emitted for `id`, the standard\n * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value\n * returned by {IERC1155MetadataURI-uri}.\n */\n event URI(string value, uint256 indexed id);\n\n /**\n * @dev Returns the amount of tokens of token type `id` owned by `account`.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function balanceOf(address account, uint256 id) external view returns (uint256);\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.\n *\n * Requirements:\n *\n * - `accounts` and `ids` must have the same length.\n */\n function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);\n\n /**\n * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,\n *\n * Emits an {ApprovalForAll} event.\n *\n * Requirements:\n *\n * - `operator` cannot be the caller.\n */\n function setApprovalForAll(address operator, bool approved) external;\n\n /**\n * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.\n *\n * See {setApprovalForAll}.\n */\n function isApprovedForAll(address account, address operator) external view returns (bool);\n\n /**\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\n *\n * Emits a {TransferSingle} event.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\n * acceptance magic value.\n */\n function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.\n *\n * Emits a {TransferBatch} event.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\n * acceptance magic value.\n */\n function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;\n}\n","urls":[]},"contracts/token/ERC1155/IERC1155MetadataURI.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"./IERC1155.sol\";\n\n/**\n * @dev Interface of the optional ERC1155MetadataExtension interface, as defined\n * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].\n *\n * _Available since v3.1._\n */\ninterface IERC1155MetadataURI is IERC1155 {\n /**\n * @dev Returns the URI for token type `id`.\n *\n * If the `\\{id\\}` substring is present in the URI, it must be replaced by\n * clients with the actual token type ID.\n */\n function uri(uint256 id) external view returns (string memory);\n}\n","urls":[]},"contracts/token/ERC1155/IERC1155Receiver.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../introspection/IERC165.sol\";\n\n/**\n * _Available since v3.1._\n */\ninterface IERC1155Receiver is IERC165 {\n\n /**\n @dev Handles the receipt of a single ERC1155 token type. This function is\n called at the end of a `safeTransferFrom` after the balance has been updated.\n To accept the transfer, this must return\n `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))`\n (i.e. 0xf23a6e61, or its own function selector).\n @param operator The address which initiated the transfer (i.e. msg.sender)\n @param from The address which previously owned the token\n @param id The ID of the token being transferred\n @param value The amount of tokens being transferred\n @param data Additional data with no specified format\n @return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed\n */\n function onERC1155Received(\n address operator,\n address from,\n uint256 id,\n uint256 value,\n bytes calldata data\n )\n external\n returns(bytes4);\n\n /**\n @dev Handles the receipt of a multiple ERC1155 token types. This function\n is called at the end of a `safeBatchTransferFrom` after the balances have\n been updated. To accept the transfer(s), this must return\n `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))`\n (i.e. 0xbc197c81, or its own function selector).\n @param operator The address which initiated the batch transfer (i.e. msg.sender)\n @param from The address which previously owned the token\n @param ids An array containing ids of each token being transferred (order and length must match values array)\n @param values An array containing amounts of each token being transferred (order and length must match ids array)\n @param data Additional data with no specified format\n @return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed\n */\n function onERC1155BatchReceived(\n address operator,\n address from,\n uint256[] calldata ids,\n uint256[] calldata values,\n bytes calldata data\n )\n external\n returns(bytes4);\n}\n","urls":[]},"contracts/token/ERC20/ERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./IERC20.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * We have followed general OpenZeppelin guidelines: functions revert instead\n * of returning `false` on failure. This behavior is nonetheless conventional\n * and does not conflict with the expectations of ERC20 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 ERC20 is Context, IERC20 {\n using SafeMath for uint256;\n using Address for address;\n\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 uint8 private _decimals;\n\n /**\n * @dev Sets the values for {name} and {symbol}, initializes {decimals} with\n * a default value of 18.\n *\n * To select a different value for {decimals}, use {_setupDecimals}.\n *\n * All three of these values are immutable: they can only be set once during\n * construction.\n */\n constructor (string memory name, string memory symbol) public {\n _name = name;\n _symbol = symbol;\n _decimals = 18;\n }\n\n /**\n * @dev Returns the name of the token.\n */\n function name() public view 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 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 {_setupDecimals} is\n * called.\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 returns (uint8) {\n return _decimals;\n }\n\n /**\n * @dev See {IERC20-totalSupply}.\n */\n function totalSupply() public view override returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev See {IERC20-balanceOf}.\n */\n function balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Requirements:\n *\n * - `recipient` cannot be the zero address.\n * - the caller must have a balance of at least `amount`.\n */\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, 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 * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\n _approve(_msgSender(), 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 * Requirements:\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(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\n _transfer(sender, recipient, amount);\n _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, \"ERC20: transfer amount exceeds allowance\"));\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 _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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 _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, \"ERC20: decreased allowance below zero\"));\n return true;\n }\n\n /**\n * @dev Moves tokens `amount` from `sender` to `recipient`.\n *\n * This is 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 * - `sender` cannot be the zero address.\n * - `recipient` cannot be the zero address.\n * - `sender` must have a balance of at least `amount`.\n */\n function _transfer(address sender, address recipient, uint256 amount) internal virtual {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(sender, recipient, amount);\n\n _balances[sender] = _balances[sender].sub(amount, \"ERC20: transfer amount exceeds balance\");\n _balances[recipient] = _balances[recipient].add(amount);\n emit Transfer(sender, recipient, 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 * - `to` 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 = _totalSupply.add(amount);\n _balances[account] = _balances[account].add(amount);\n emit Transfer(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 _balances[account] = _balances[account].sub(amount, \"ERC20: burn amount exceeds balance\");\n _totalSupply = _totalSupply.sub(amount);\n emit Transfer(account, address(0), amount);\n }\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.\n *\n * This is 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(address owner, address spender, uint256 amount) 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 Sets {decimals} to a value other than the default one of 18.\n *\n * WARNING: This function should only be called from the constructor. Most\n * applications that interact with token contracts will not expect\n * {decimals} to ever change, and may work incorrectly if it does.\n */\n function _setupDecimals(uint8 decimals_) internal {\n _decimals = decimals_;\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 to 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(address from, address to, uint256 amount) internal virtual { }\n}\n","urls":[]},"contracts/token/ERC20/ERC20Burnable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./ERC20.sol\";\n\n/**\n * @dev Extension of {ERC20} that allows token holders to destroy both their own\n * tokens and those that they have an allowance for, in a way that can be\n * recognized off-chain (via event analysis).\n */\nabstract contract ERC20Burnable is Context, ERC20 {\n /**\n * @dev Destroys `amount` tokens from the caller.\n *\n * See {ERC20-_burn}.\n */\n function burn(uint256 amount) public virtual {\n _burn(_msgSender(), amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`, deducting from the caller's\n * allowance.\n *\n * See {ERC20-_burn} and {ERC20-allowance}.\n *\n * Requirements:\n *\n * - the caller must have allowance for ``accounts``'s tokens of at least\n * `amount`.\n */\n function burnFrom(address account, uint256 amount) public virtual {\n uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, \"ERC20: burn amount exceeds allowance\");\n\n _approve(account, _msgSender(), decreasedAllowance);\n _burn(account, amount);\n }\n}\n","urls":[]},"contracts/token/ERC20/ERC20Capped.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC20.sol\";\n\n/**\n * @dev Extension of {ERC20} that adds a cap to the supply of tokens.\n */\nabstract contract ERC20Capped is ERC20 {\n uint256 private _cap;\n\n /**\n * @dev Sets the value of the `cap`. This value is immutable, it can only be\n * set once during construction.\n */\n constructor (uint256 cap) public {\n require(cap > 0, \"ERC20Capped: cap is 0\");\n _cap = cap;\n }\n\n /**\n * @dev Returns the cap on the token's total supply.\n */\n function cap() public view returns (uint256) {\n return _cap;\n }\n\n /**\n * @dev See {ERC20-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - minted tokens must not cause the total supply to go over the cap.\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\n super._beforeTokenTransfer(from, to, amount);\n\n if (from == address(0)) { // When minting tokens\n require(totalSupply().add(amount) <= _cap, \"ERC20Capped: cap exceeded\");\n }\n }\n}\n","urls":[]},"contracts/token/ERC20/ERC20Pausable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC20.sol\";\nimport \"../../utils/Pausable.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 ERC20Pausable is ERC20, Pausable {\n /**\n * @dev See {ERC20-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\n super._beforeTokenTransfer(from, to, amount);\n\n require(!paused(), \"ERC20Pausable: token transfer while paused\");\n }\n}\n","urls":[]},"contracts/token/ERC20/ERC20Snapshot.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Arrays.sol\";\nimport \"../../utils/Counters.sol\";\nimport \"./ERC20.sol\";\n\n/**\n * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and\n * total supply at the time are recorded for later access.\n *\n * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting.\n * In naive implementations it's possible to perform a \"double spend\" attack by reusing the same balance from different\n * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be\n * used to create an efficient ERC20 forking mechanism.\n *\n * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a\n * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot\n * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id\n * and the account address.\n *\n * ==== Gas Costs\n *\n * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log\n * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much\n * smaller since identical balances in subsequent snapshots are stored as a single entry.\n *\n * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is\n * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent\n * transfers will have normal cost until the next snapshot, and so on.\n */\nabstract contract ERC20Snapshot is ERC20 {\n // Inspired by Jordi Baylina's MiniMeToken to record historical balances:\n // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol\n\n using SafeMath for uint256;\n using Arrays for uint256[];\n using Counters for Counters.Counter;\n\n // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a\n // Snapshot struct, but that would impede usage of functions that work on an array.\n struct Snapshots {\n uint256[] ids;\n uint256[] values;\n }\n\n mapping (address => Snapshots) private _accountBalanceSnapshots;\n Snapshots private _totalSupplySnapshots;\n\n // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid.\n Counters.Counter private _currentSnapshotId;\n\n /**\n * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created.\n */\n event Snapshot(uint256 id);\n\n /**\n * @dev Creates a new snapshot and returns its snapshot id.\n *\n * Emits a {Snapshot} event that contains the same id.\n *\n * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a\n * set of accounts, for example using {AccessControl}, or it may be open to the public.\n *\n * [WARNING]\n * ====\n * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking,\n * you must consider that it can potentially be used by attackers in two ways.\n *\n * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow\n * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target\n * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs\n * section above.\n *\n * We haven't measured the actual numbers; if this is something you're interested in please reach out to us.\n * ====\n */\n function _snapshot() internal virtual returns (uint256) {\n _currentSnapshotId.increment();\n\n uint256 currentId = _currentSnapshotId.current();\n emit Snapshot(currentId);\n return currentId;\n }\n\n /**\n * @dev Retrieves the balance of `account` at the time `snapshotId` was created.\n */\n function balanceOfAt(address account, uint256 snapshotId) public view returns (uint256) {\n (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]);\n\n return snapshotted ? value : balanceOf(account);\n }\n\n /**\n * @dev Retrieves the total supply at the time `snapshotId` was created.\n */\n function totalSupplyAt(uint256 snapshotId) public view returns(uint256) {\n (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots);\n\n return snapshotted ? value : totalSupply();\n }\n\n // _transfer, _mint and _burn are the only functions where the balances are modified, so it is there that the\n // snapshots are updated. Note that the update happens _before_ the balance change, with the pre-modified value.\n // The same is true for the total supply and _mint and _burn.\n function _transfer(address from, address to, uint256 value) internal virtual override {\n _updateAccountSnapshot(from);\n _updateAccountSnapshot(to);\n\n super._transfer(from, to, value);\n }\n\n function _mint(address account, uint256 value) internal virtual override {\n _updateAccountSnapshot(account);\n _updateTotalSupplySnapshot();\n\n super._mint(account, value);\n }\n\n function _burn(address account, uint256 value) internal virtual override {\n _updateAccountSnapshot(account);\n _updateTotalSupplySnapshot();\n\n super._burn(account, value);\n }\n\n function _valueAt(uint256 snapshotId, Snapshots storage snapshots)\n private view returns (bool, uint256)\n {\n require(snapshotId > 0, \"ERC20Snapshot: id is 0\");\n // solhint-disable-next-line max-line-length\n require(snapshotId <= _currentSnapshotId.current(), \"ERC20Snapshot: nonexistent id\");\n\n // When a valid snapshot is queried, there are three possibilities:\n // a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never\n // created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds\n // to this id is the current one.\n // b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the\n // requested id, and its value is the one to return.\n // c) More snapshots were created after the requested one, and the queried value was later modified. There will be\n // no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is\n // larger than the requested one.\n //\n // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if\n // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does\n // exactly this.\n\n uint256 index = snapshots.ids.findUpperBound(snapshotId);\n\n if (index == snapshots.ids.length) {\n return (false, 0);\n } else {\n return (true, snapshots.values[index]);\n }\n }\n\n function _updateAccountSnapshot(address account) private {\n _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account));\n }\n\n function _updateTotalSupplySnapshot() private {\n _updateSnapshot(_totalSupplySnapshots, totalSupply());\n }\n\n function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private {\n uint256 currentId = _currentSnapshotId.current();\n if (_lastSnapshotId(snapshots.ids) < currentId) {\n snapshots.ids.push(currentId);\n snapshots.values.push(currentValue);\n }\n }\n\n function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) {\n if (ids.length == 0) {\n return 0;\n } else {\n return ids[ids.length - 1];\n }\n }\n}\n","urls":[]},"contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\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 `recipient`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address recipient, 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 `sender` to `recipient` 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(address sender, address recipient, uint256 amount) external returns (bool);\n\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","urls":[]},"contracts/token/ERC20/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC20.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n using SafeMath for uint256;\n using Address for address;\n\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n }\n\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n }\n\n /**\n * @dev Deprecated. This function has issues similar to the ones found in\n * {IERC20-approve}, and its usage is discouraged.\n *\n * Whenever possible, use {safeIncreaseAllowance} and\n * {safeDecreaseAllowance} instead.\n */\n function safeApprove(IERC20 token, address spender, uint256 value) internal {\n // safeApprove should only be called when setting an initial allowance,\n // or when resetting it to zero. To increase and decrease it, use\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n // solhint-disable-next-line max-line-length\n require((value == 0) || (token.allowance(address(this), spender) == 0),\n \"SafeERC20: approve from non-zero to non-zero allowance\"\n );\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n }\n\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 newAllowance = token.allowance(address(this), spender).add(value);\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 newAllowance = token.allowance(address(this), spender).sub(value, \"SafeERC20: decreased allowance below zero\");\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\n // the target address contains contract code and also asserts for success in the low-level call.\n\n bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n if (returndata.length > 0) { // Return data is optional\n // solhint-disable-next-line max-line-length\n require(abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n }\n }\n}\n","urls":[]},"contracts/token/ERC20/TokenTimelock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./SafeERC20.sol\";\n\n/**\n * @dev A token holder contract that will allow a beneficiary to extract the\n * tokens after a given release time.\n *\n * Useful for simple vesting schedules like \"advisors get all of their tokens\n * after 1 year\".\n */\ncontract TokenTimelock {\n using SafeERC20 for IERC20;\n\n // ERC20 basic token contract being held\n IERC20 private _token;\n\n // beneficiary of tokens after they are released\n address private _beneficiary;\n\n // timestamp when token release is enabled\n uint256 private _releaseTime;\n\n constructor (IERC20 token, address beneficiary, uint256 releaseTime) public {\n // solhint-disable-next-line not-rely-on-time\n require(releaseTime > block.timestamp, \"TokenTimelock: release time is before current time\");\n _token = token;\n _beneficiary = beneficiary;\n _releaseTime = releaseTime;\n }\n\n /**\n * @return the token being held.\n */\n function token() public view returns (IERC20) {\n return _token;\n }\n\n /**\n * @return the beneficiary of the tokens.\n */\n function beneficiary() public view returns (address) {\n return _beneficiary;\n }\n\n /**\n * @return the time when the tokens are released.\n */\n function releaseTime() public view returns (uint256) {\n return _releaseTime;\n }\n\n /**\n * @notice Transfers tokens held by timelock to beneficiary.\n */\n function release() public virtual {\n // solhint-disable-next-line not-rely-on-time\n require(block.timestamp >= _releaseTime, \"TokenTimelock: current time is before release time\");\n\n uint256 amount = _token.balanceOf(address(this));\n require(amount > 0, \"TokenTimelock: no tokens to release\");\n\n _token.safeTransfer(_beneficiary, amount);\n }\n}\n","urls":[]},"contracts/token/ERC721/ERC721.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./IERC721.sol\";\nimport \"./IERC721Metadata.sol\";\nimport \"./IERC721Enumerable.sol\";\nimport \"./IERC721Receiver.sol\";\nimport \"../../introspection/ERC165.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.sol\";\nimport \"../../utils/EnumerableSet.sol\";\nimport \"../../utils/EnumerableMap.sol\";\nimport \"../../utils/Strings.sol\";\n\n/**\n * @title ERC721 Non-Fungible Token Standard basic implementation\n * @dev see https://eips.ethereum.org/EIPS/eip-721\n */\ncontract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {\n using SafeMath for uint256;\n using Address for address;\n using EnumerableSet for EnumerableSet.UintSet;\n using EnumerableMap for EnumerableMap.UintToAddressMap;\n using Strings for uint256;\n\n // Equals to `bytes4(keccak256(\"onERC721Received(address,address,uint256,bytes)\"))`\n // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`\n bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;\n\n // Mapping from holder address to their (enumerable) set of owned tokens\n mapping (address => EnumerableSet.UintSet) private _holderTokens;\n\n // Enumerable mapping from token ids to their owners\n EnumerableMap.UintToAddressMap private _tokenOwners;\n\n // Mapping from token ID to approved address\n mapping (uint256 => address) private _tokenApprovals;\n\n // Mapping from owner to operator approvals\n mapping (address => mapping (address => bool)) private _operatorApprovals;\n\n // Token name\n string private _name;\n\n // Token symbol\n string private _symbol;\n\n // Optional mapping for token URIs\n mapping(uint256 => string) private _tokenURIs;\n\n // Base URI\n string private _baseURI;\n\n /*\n * bytes4(keccak256('balanceOf(address)')) == 0x70a08231\n * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e\n * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3\n * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc\n * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465\n * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5\n * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd\n * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e\n * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde\n *\n * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^\n * 0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd\n */\n bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;\n\n /*\n * bytes4(keccak256('name()')) == 0x06fdde03\n * bytes4(keccak256('symbol()')) == 0x95d89b41\n * bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd\n *\n * => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f\n */\n bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;\n\n /*\n * bytes4(keccak256('totalSupply()')) == 0x18160ddd\n * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59\n * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7\n *\n * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63\n */\n bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;\n\n /**\n * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.\n */\n constructor (string memory name, string memory symbol) public {\n _name = name;\n _symbol = symbol;\n\n // register the supported interfaces to conform to ERC721 via ERC165\n _registerInterface(_INTERFACE_ID_ERC721);\n _registerInterface(_INTERFACE_ID_ERC721_METADATA);\n _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);\n }\n\n /**\n * @dev See {IERC721-balanceOf}.\n */\n function balanceOf(address owner) public view override returns (uint256) {\n require(owner != address(0), \"ERC721: balance query for the zero address\");\n\n return _holderTokens[owner].length();\n }\n\n /**\n * @dev See {IERC721-ownerOf}.\n */\n function ownerOf(uint256 tokenId) public view override returns (address) {\n return _tokenOwners.get(tokenId, \"ERC721: owner query for nonexistent token\");\n }\n\n /**\n * @dev See {IERC721Metadata-name}.\n */\n function name() public view override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev See {IERC721Metadata-symbol}.\n */\n function symbol() public view override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev See {IERC721Metadata-tokenURI}.\n */\n function tokenURI(uint256 tokenId) public view override returns (string memory) {\n require(_exists(tokenId), \"ERC721Metadata: URI query for nonexistent token\");\n\n string memory _tokenURI = _tokenURIs[tokenId];\n\n // If there is no base URI, return the token URI.\n if (bytes(_baseURI).length == 0) {\n return _tokenURI;\n }\n // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).\n if (bytes(_tokenURI).length > 0) {\n return string(abi.encodePacked(_baseURI, _tokenURI));\n }\n // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.\n return string(abi.encodePacked(_baseURI, tokenId.toString()));\n }\n\n /**\n * @dev Returns the base URI set via {_setBaseURI}. This will be\n * automatically added as a prefix in {tokenURI} to each token's URI, or\n * to the token ID if no specific URI is set for that token ID.\n */\n function baseURI() public view returns (string memory) {\n return _baseURI;\n }\n\n /**\n * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.\n */\n function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {\n return _holderTokens[owner].at(index);\n }\n\n /**\n * @dev See {IERC721Enumerable-totalSupply}.\n */\n function totalSupply() public view override returns (uint256) {\n // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds\n return _tokenOwners.length();\n }\n\n /**\n * @dev See {IERC721Enumerable-tokenByIndex}.\n */\n function tokenByIndex(uint256 index) public view override returns (uint256) {\n (uint256 tokenId, ) = _tokenOwners.at(index);\n return tokenId;\n }\n\n /**\n * @dev See {IERC721-approve}.\n */\n function approve(address to, uint256 tokenId) public virtual override {\n address owner = ownerOf(tokenId);\n require(to != owner, \"ERC721: approval to current owner\");\n\n require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()),\n \"ERC721: approve caller is not owner nor approved for all\"\n );\n\n _approve(to, tokenId);\n }\n\n /**\n * @dev See {IERC721-getApproved}.\n */\n function getApproved(uint256 tokenId) public view override returns (address) {\n require(_exists(tokenId), \"ERC721: approved query for nonexistent token\");\n\n return _tokenApprovals[tokenId];\n }\n\n /**\n * @dev See {IERC721-setApprovalForAll}.\n */\n function setApprovalForAll(address operator, bool approved) public virtual override {\n require(operator != _msgSender(), \"ERC721: approve to caller\");\n\n _operatorApprovals[_msgSender()][operator] = approved;\n emit ApprovalForAll(_msgSender(), operator, approved);\n }\n\n /**\n * @dev See {IERC721-isApprovedForAll}.\n */\n function isApprovedForAll(address owner, address operator) public view override returns (bool) {\n return _operatorApprovals[owner][operator];\n }\n\n /**\n * @dev See {IERC721-transferFrom}.\n */\n function transferFrom(address from, address to, uint256 tokenId) public virtual override {\n //solhint-disable-next-line max-line-length\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721: transfer caller is not owner nor approved\");\n\n _transfer(from, to, tokenId);\n }\n\n /**\n * @dev See {IERC721-safeTransferFrom}.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {\n safeTransferFrom(from, to, tokenId, \"\");\n }\n\n /**\n * @dev See {IERC721-safeTransferFrom}.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721: transfer caller is not owner nor approved\");\n _safeTransfer(from, to, tokenId, _data);\n }\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * `_data` is additional data, it has no specified format and it is sent in call to `to`.\n *\n * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.\n * implement alternative mecanisms to perform token transfer, such as signature-based.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {\n _transfer(from, to, tokenId);\n require(_checkOnERC721Received(from, to, tokenId, _data), \"ERC721: transfer to non ERC721Receiver implementer\");\n }\n\n /**\n * @dev Returns whether `tokenId` exists.\n *\n * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.\n *\n * Tokens start existing when they are minted (`_mint`),\n * and stop existing when they are burned (`_burn`).\n */\n function _exists(uint256 tokenId) internal view returns (bool) {\n return _tokenOwners.contains(tokenId);\n }\n\n /**\n * @dev Returns whether `spender` is allowed to manage `tokenId`.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {\n require(_exists(tokenId), \"ERC721: operator query for nonexistent token\");\n address owner = ownerOf(tokenId);\n return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));\n }\n\n /**\n * @dev Safely mints `tokenId` and transfers it to `to`.\n *\n * Requirements:\n d*\n * - `tokenId` must not exist.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function _safeMint(address to, uint256 tokenId) internal virtual {\n _safeMint(to, tokenId, \"\");\n }\n\n /**\n * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is\n * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n */\n function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {\n _mint(to, tokenId);\n require(_checkOnERC721Received(address(0), to, tokenId, _data), \"ERC721: transfer to non ERC721Receiver implementer\");\n }\n\n /**\n * @dev Mints `tokenId` and transfers it to `to`.\n *\n * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible\n *\n * Requirements:\n *\n * - `tokenId` must not exist.\n * - `to` cannot be the zero address.\n *\n * Emits a {Transfer} event.\n */\n function _mint(address to, uint256 tokenId) internal virtual {\n require(to != address(0), \"ERC721: mint to the zero address\");\n require(!_exists(tokenId), \"ERC721: token already minted\");\n\n _beforeTokenTransfer(address(0), to, tokenId);\n\n _holderTokens[to].add(tokenId);\n\n _tokenOwners.set(tokenId, to);\n\n emit Transfer(address(0), to, tokenId);\n }\n\n /**\n * @dev Destroys `tokenId`.\n * The approval is cleared when the token is burned.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n *\n * Emits a {Transfer} event.\n */\n function _burn(uint256 tokenId) internal virtual {\n address owner = ownerOf(tokenId);\n\n _beforeTokenTransfer(owner, address(0), tokenId);\n\n // Clear approvals\n _approve(address(0), tokenId);\n\n // Clear metadata (if any)\n if (bytes(_tokenURIs[tokenId]).length != 0) {\n delete _tokenURIs[tokenId];\n }\n\n _holderTokens[owner].remove(tokenId);\n\n _tokenOwners.remove(tokenId);\n\n emit Transfer(owner, address(0), tokenId);\n }\n\n /**\n * @dev Transfers `tokenId` from `from` to `to`.\n * As opposed to {transferFrom}, this imposes no restrictions on msg.sender.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n *\n * Emits a {Transfer} event.\n */\n function _transfer(address from, address to, uint256 tokenId) internal virtual {\n require(ownerOf(tokenId) == from, \"ERC721: transfer of token that is not own\");\n require(to != address(0), \"ERC721: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, tokenId);\n\n // Clear approvals from the previous owner\n _approve(address(0), tokenId);\n\n _holderTokens[from].remove(tokenId);\n _holderTokens[to].add(tokenId);\n\n _tokenOwners.set(tokenId, to);\n\n emit Transfer(from, to, tokenId);\n }\n\n /**\n * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {\n require(_exists(tokenId), \"ERC721Metadata: URI set of nonexistent token\");\n _tokenURIs[tokenId] = _tokenURI;\n }\n\n /**\n * @dev Internal function to set the base URI for all token IDs. It is\n * automatically added as a prefix to the value returned in {tokenURI},\n * or to the token ID if {tokenURI} is empty.\n */\n function _setBaseURI(string memory baseURI_) internal virtual {\n _baseURI = baseURI_;\n }\n\n /**\n * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.\n * The call is not executed if the target address is not a contract.\n *\n * @param from address representing the previous owner of the given token ID\n * @param to target address that will receive the tokens\n * @param tokenId uint256 ID of the token to be transferred\n * @param _data bytes optional data to send along with the call\n * @return bool whether the call correctly returned the expected magic value\n */\n function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)\n private returns (bool)\n {\n if (!to.isContract()) {\n return true;\n }\n bytes memory returndata = to.functionCall(abi.encodeWithSelector(\n IERC721Receiver(to).onERC721Received.selector,\n _msgSender(),\n from,\n tokenId,\n _data\n ), \"ERC721: transfer to non ERC721Receiver implementer\");\n bytes4 retval = abi.decode(returndata, (bytes4));\n return (retval == _ERC721_RECEIVED);\n }\n\n function _approve(address to, uint256 tokenId) private {\n _tokenApprovals[tokenId] = to;\n emit Approval(ownerOf(tokenId), to, tokenId);\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes minting\n * and burning.\n *\n * Calling conditions:\n *\n * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be\n * transferred to `to`.\n * - When `from` is zero, `tokenId` will be minted for `to`.\n * - When `to` is zero, ``from``'s `tokenId` will be burned.\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }\n}\n","urls":[]},"contracts/token/ERC721/ERC721Burnable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./ERC721.sol\";\n\n/**\n * @title ERC721 Burnable Token\n * @dev ERC721 Token that can be irreversibly burned (destroyed).\n */\nabstract contract ERC721Burnable is Context, ERC721 {\n /**\n * @dev Burns `tokenId`. See {ERC721-_burn}.\n *\n * Requirements:\n *\n * - The caller must own `tokenId` or be an approved operator.\n */\n function burn(uint256 tokenId) public virtual {\n //solhint-disable-next-line max-line-length\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721Burnable: caller is not owner nor approved\");\n _burn(tokenId);\n }\n}\n","urls":[]},"contracts/token/ERC721/ERC721Holder.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC721Receiver.sol\";\n\n /**\n * @dev Implementation of the {IERC721Receiver} interface.\n *\n * Accepts all token transfers. \n * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.\n */\ncontract ERC721Holder is IERC721Receiver {\n\n /**\n * @dev See {IERC721Receiver-onERC721Received}.\n *\n * Always returns `IERC721Receiver.onERC721Received.selector`.\n */\n function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) {\n return this.onERC721Received.selector;\n }\n}\n","urls":[]},"contracts/token/ERC721/ERC721Pausable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC721.sol\";\nimport \"../../utils/Pausable.sol\";\n\n/**\n * @dev ERC721 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 ERC721Pausable is ERC721, Pausable {\n /**\n * @dev See {ERC721-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {\n super._beforeTokenTransfer(from, to, tokenId);\n\n require(!paused(), \"ERC721Pausable: token transfer while paused\");\n }\n}\n","urls":[]},"contracts/token/ERC721/IERC721.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"../../introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC721 compliant contract.\n */\ninterface IERC721 is IERC165 {\n /**\n * @dev Emitted when `tokenId` token is transfered from `from` to `to`.\n */\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n */\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n */\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n /**\n * @dev Returns the number of tokens in ``owner``'s account.\n */\n function balanceOf(address owner) external view returns (uint256 balance);\n\n /**\n * @dev Returns the owner of the `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function ownerOf(uint256 tokenId) external view returns (address owner);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId) external;\n\n /**\n * @dev Transfers `tokenId` token from `from` to `to`.\n *\n * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address from, address to, uint256 tokenId) external;\n\n /**\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n * The approval is cleared when the token is transferred.\n *\n * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n *\n * Requirements:\n *\n * - The caller must own the token or be an approved operator.\n * - `tokenId` must exist.\n *\n * Emits an {Approval} event.\n */\n function approve(address to, uint256 tokenId) external;\n\n /**\n * @dev Returns the account approved for `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function getApproved(uint256 tokenId) external view returns (address operator);\n\n /**\n * @dev Approve or remove `operator` as an operator for the caller.\n * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n *\n * Requirements:\n *\n * - The `operator` cannot be the caller.\n *\n * Emits an {ApprovalForAll} event.\n */\n function setApprovalForAll(address operator, bool _approved) external;\n\n /**\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n *\n * See {setApprovalForAll}\n */\n function isApprovedForAll(address owner, address operator) external view returns (bool);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;\n}\n","urls":[]},"contracts/token/ERC721/IERC721Enumerable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"./IERC721.sol\";\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721Enumerable is IERC721 {\n\n /**\n * @dev Returns the total amount of tokens stored by the contract.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns a token ID owned by `owner` at a given `index` of its token list.\n * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.\n */\n function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);\n\n /**\n * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.\n * Use along with {totalSupply} to enumerate all tokens.\n */\n function tokenByIndex(uint256 index) external view returns (uint256);\n}\n","urls":[]},"contracts/token/ERC721/IERC721Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"./IERC721.sol\";\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional metadata extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721Metadata is IERC721 {\n\n /**\n * @dev Returns the token collection name.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the token collection symbol.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.\n */\n function tokenURI(uint256 tokenId) external view returns (string memory);\n}\n","urls":[]},"contracts/token/ERC721/IERC721Receiver.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @title ERC721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC721 asset contracts.\n */\ninterface IERC721Receiver {\n /**\n * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n * by `operator` from `from`, this function is called.\n *\n * It must return its Solidity selector to confirm the token transfer.\n * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\n *\n * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.\n */\n function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data)\n external returns (bytes4);\n}\n","urls":[]},"contracts/token/ERC777/ERC777.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./IERC777.sol\";\nimport \"./IERC777Recipient.sol\";\nimport \"./IERC777Sender.sol\";\nimport \"../../token/ERC20/IERC20.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.sol\";\nimport \"../../introspection/IERC1820Registry.sol\";\n\n/**\n * @dev Implementation of the {IERC777} 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 *\n * Support for ERC20 is included in this contract, as specified by the EIP: both\n * the ERC777 and ERC20 interfaces can be safely used when interacting with it.\n * Both {IERC777-Sent} and {IERC20-Transfer} events are emitted on token\n * movements.\n *\n * Additionally, the {IERC777-granularity} value is hard-coded to `1`, meaning that there\n * are no special restrictions in the amount of tokens that created, moved, or\n * destroyed. This makes integration with ERC20 applications seamless.\n */\ncontract ERC777 is Context, IERC777, IERC20 {\n using SafeMath for uint256;\n using Address for address;\n\n IERC1820Registry constant internal _ERC1820_REGISTRY = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);\n\n mapping(address => uint256) private _balances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n\n // We inline the result of the following hashes because Solidity doesn't resolve them at compile time.\n // See https://github.com/ethereum/solidity/issues/4024.\n\n // keccak256(\"ERC777TokensSender\")\n bytes32 constant private _TOKENS_SENDER_INTERFACE_HASH =\n 0x29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe895;\n\n // keccak256(\"ERC777TokensRecipient\")\n bytes32 constant private _TOKENS_RECIPIENT_INTERFACE_HASH =\n 0xb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b;\n\n // This isn't ever read from - it's only used to respond to the defaultOperators query.\n address[] private _defaultOperatorsArray;\n\n // Immutable, but accounts may revoke them (tracked in __revokedDefaultOperators).\n mapping(address => bool) private _defaultOperators;\n\n // For each account, a mapping of its operators and revoked default operators.\n mapping(address => mapping(address => bool)) private _operators;\n mapping(address => mapping(address => bool)) private _revokedDefaultOperators;\n\n // ERC20-allowances\n mapping (address => mapping (address => uint256)) private _allowances;\n\n /**\n * @dev `defaultOperators` may be an empty array.\n */\n constructor(\n string memory name,\n string memory symbol,\n address[] memory defaultOperators\n ) public {\n _name = name;\n _symbol = symbol;\n\n _defaultOperatorsArray = defaultOperators;\n for (uint256 i = 0; i < _defaultOperatorsArray.length; i++) {\n _defaultOperators[_defaultOperatorsArray[i]] = true;\n }\n\n // register interfaces\n _ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256(\"ERC777Token\"), address(this));\n _ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256(\"ERC20Token\"), address(this));\n }\n\n /**\n * @dev See {IERC777-name}.\n */\n function name() public view override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev See {IERC777-symbol}.\n */\n function symbol() public view override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev See {ERC20-decimals}.\n *\n * Always returns 18, as per the\n * [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility).\n */\n function decimals() public pure returns (uint8) {\n return 18;\n }\n\n /**\n * @dev See {IERC777-granularity}.\n *\n * This implementation always returns `1`.\n */\n function granularity() public view override returns (uint256) {\n return 1;\n }\n\n /**\n * @dev See {IERC777-totalSupply}.\n */\n function totalSupply() public view override(IERC20, IERC777) returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev Returns the amount of tokens owned by an account (`tokenHolder`).\n */\n function balanceOf(address tokenHolder) public view override(IERC20, IERC777) returns (uint256) {\n return _balances[tokenHolder];\n }\n\n /**\n * @dev See {IERC777-send}.\n *\n * Also emits a {IERC20-Transfer} event for ERC20 compatibility.\n */\n function send(address recipient, uint256 amount, bytes memory data) public override {\n _send(_msgSender(), recipient, amount, data, \"\", true);\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient}\n * interface if it is a contract.\n *\n * Also emits a {Sent} event.\n */\n function transfer(address recipient, uint256 amount) public override returns (bool) {\n require(recipient != address(0), \"ERC777: transfer to the zero address\");\n\n address from = _msgSender();\n\n _callTokensToSend(from, from, recipient, amount, \"\", \"\");\n\n _move(from, from, recipient, amount, \"\", \"\");\n\n _callTokensReceived(from, from, recipient, amount, \"\", \"\", false);\n\n return true;\n }\n\n /**\n * @dev See {IERC777-burn}.\n *\n * Also emits a {IERC20-Transfer} event for ERC20 compatibility.\n */\n function burn(uint256 amount, bytes memory data) public override {\n _burn(_msgSender(), amount, data, \"\");\n }\n\n /**\n * @dev See {IERC777-isOperatorFor}.\n */\n function isOperatorFor(\n address operator,\n address tokenHolder\n ) public view override returns (bool) {\n return operator == tokenHolder ||\n (_defaultOperators[operator] && !_revokedDefaultOperators[tokenHolder][operator]) ||\n _operators[tokenHolder][operator];\n }\n\n /**\n * @dev See {IERC777-authorizeOperator}.\n */\n function authorizeOperator(address operator) public override {\n require(_msgSender() != operator, \"ERC777: authorizing self as operator\");\n\n if (_defaultOperators[operator]) {\n delete _revokedDefaultOperators[_msgSender()][operator];\n } else {\n _operators[_msgSender()][operator] = true;\n }\n\n emit AuthorizedOperator(operator, _msgSender());\n }\n\n /**\n * @dev See {IERC777-revokeOperator}.\n */\n function revokeOperator(address operator) public override {\n require(operator != _msgSender(), \"ERC777: revoking self as operator\");\n\n if (_defaultOperators[operator]) {\n _revokedDefaultOperators[_msgSender()][operator] = true;\n } else {\n delete _operators[_msgSender()][operator];\n }\n\n emit RevokedOperator(operator, _msgSender());\n }\n\n /**\n * @dev See {IERC777-defaultOperators}.\n */\n function defaultOperators() public view override returns (address[] memory) {\n return _defaultOperatorsArray;\n }\n\n /**\n * @dev See {IERC777-operatorSend}.\n *\n * Emits {Sent} and {IERC20-Transfer} events.\n */\n function operatorSend(\n address sender,\n address recipient,\n uint256 amount,\n bytes memory data,\n bytes memory operatorData\n )\n public override\n {\n require(isOperatorFor(_msgSender(), sender), \"ERC777: caller is not an operator for holder\");\n _send(sender, recipient, amount, data, operatorData, true);\n }\n\n /**\n * @dev See {IERC777-operatorBurn}.\n *\n * Emits {Burned} and {IERC20-Transfer} events.\n */\n function operatorBurn(address account, uint256 amount, bytes memory data, bytes memory operatorData) public override {\n require(isOperatorFor(_msgSender(), account), \"ERC777: caller is not an operator for holder\");\n _burn(account, amount, data, operatorData);\n }\n\n /**\n * @dev See {IERC20-allowance}.\n *\n * Note that operator and allowance concepts are orthogonal: operators may\n * not have allowance, and accounts with allowance may not be operators\n * themselves.\n */\n function allowance(address holder, address spender) public view override returns (uint256) {\n return _allowances[holder][spender];\n }\n\n /**\n * @dev See {IERC20-approve}.\n *\n * Note that accounts cannot have allowance issued by their operators.\n */\n function approve(address spender, uint256 value) public override returns (bool) {\n address holder = _msgSender();\n _approve(holder, spender, value);\n return true;\n }\n\n /**\n * @dev See {IERC20-transferFrom}.\n *\n * Note that operator and allowance concepts are orthogonal: operators cannot\n * call `transferFrom` (unless they have allowance), and accounts with\n * allowance cannot call `operatorSend` (unless they are operators).\n *\n * Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events.\n */\n function transferFrom(address holder, address recipient, uint256 amount) public override returns (bool) {\n require(recipient != address(0), \"ERC777: transfer to the zero address\");\n require(holder != address(0), \"ERC777: transfer from the zero address\");\n\n address spender = _msgSender();\n\n _callTokensToSend(spender, holder, recipient, amount, \"\", \"\");\n\n _move(spender, holder, recipient, amount, \"\", \"\");\n _approve(holder, spender, _allowances[holder][spender].sub(amount, \"ERC777: transfer amount exceeds allowance\"));\n\n _callTokensReceived(spender, holder, recipient, amount, \"\", \"\", false);\n\n return true;\n }\n\n /**\n * @dev Creates `amount` tokens and assigns them to `account`, increasing\n * the total supply.\n *\n * If a send hook is registered for `account`, the corresponding function\n * will be called with `operator`, `data` and `operatorData`.\n *\n * See {IERC777Sender} and {IERC777Recipient}.\n *\n * Emits {Minted} and {IERC20-Transfer} events.\n *\n * Requirements\n *\n * - `account` cannot be the zero address.\n * - if `account` is a contract, it must implement the {IERC777Recipient}\n * interface.\n */\n function _mint(\n address account,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n )\n internal virtual\n {\n require(account != address(0), \"ERC777: mint to the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, address(0), account, amount);\n\n // Update state variables\n _totalSupply = _totalSupply.add(amount);\n _balances[account] = _balances[account].add(amount);\n\n _callTokensReceived(operator, address(0), account, amount, userData, operatorData, true);\n\n emit Minted(operator, account, amount, userData, operatorData);\n emit Transfer(address(0), account, amount);\n }\n\n /**\n * @dev Send tokens\n * @param from address token holder address\n * @param to address recipient address\n * @param amount uint256 amount of tokens to transfer\n * @param userData bytes extra information provided by the token holder (if any)\n * @param operatorData bytes extra information provided by the operator (if any)\n * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient\n */\n function _send(\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData,\n bool requireReceptionAck\n )\n internal\n {\n require(from != address(0), \"ERC777: send from the zero address\");\n require(to != address(0), \"ERC777: send to the zero address\");\n\n address operator = _msgSender();\n\n _callTokensToSend(operator, from, to, amount, userData, operatorData);\n\n _move(operator, from, to, amount, userData, operatorData);\n\n _callTokensReceived(operator, from, to, amount, userData, operatorData, requireReceptionAck);\n }\n\n /**\n * @dev Burn tokens\n * @param from address token holder address\n * @param amount uint256 amount of tokens to burn\n * @param data bytes extra information provided by the token holder\n * @param operatorData bytes extra information provided by the operator (if any)\n */\n function _burn(\n address from,\n uint256 amount,\n bytes memory data,\n bytes memory operatorData\n )\n internal virtual\n {\n require(from != address(0), \"ERC777: burn from the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, from, address(0), amount);\n\n _callTokensToSend(operator, from, address(0), amount, data, operatorData);\n\n // Update state variables\n _balances[from] = _balances[from].sub(amount, \"ERC777: burn amount exceeds balance\");\n _totalSupply = _totalSupply.sub(amount);\n\n emit Burned(operator, from, amount, data, operatorData);\n emit Transfer(from, address(0), amount);\n }\n\n function _move(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n )\n private\n {\n _beforeTokenTransfer(operator, from, to, amount);\n\n _balances[from] = _balances[from].sub(amount, \"ERC777: transfer amount exceeds balance\");\n _balances[to] = _balances[to].add(amount);\n\n emit Sent(operator, from, to, amount, userData, operatorData);\n emit Transfer(from, to, amount);\n }\n\n /**\n * @dev See {ERC20-_approve}.\n *\n * Note that accounts cannot have allowance issued by their operators.\n */\n function _approve(address holder, address spender, uint256 value) internal {\n require(holder != address(0), \"ERC777: approve from the zero address\");\n require(spender != address(0), \"ERC777: approve to the zero address\");\n\n _allowances[holder][spender] = value;\n emit Approval(holder, spender, value);\n }\n\n /**\n * @dev Call from.tokensToSend() if the interface is registered\n * @param operator address operator requesting the transfer\n * @param from address token holder address\n * @param to address recipient address\n * @param amount uint256 amount of tokens to transfer\n * @param userData bytes extra information provided by the token holder (if any)\n * @param operatorData bytes extra information provided by the operator (if any)\n */\n function _callTokensToSend(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n )\n private\n {\n address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(from, _TOKENS_SENDER_INTERFACE_HASH);\n if (implementer != address(0)) {\n IERC777Sender(implementer).tokensToSend(operator, from, to, amount, userData, operatorData);\n }\n }\n\n /**\n * @dev Call to.tokensReceived() if the interface is registered. Reverts if the recipient is a contract but\n * tokensReceived() was not registered for the recipient\n * @param operator address operator requesting the transfer\n * @param from address token holder address\n * @param to address recipient address\n * @param amount uint256 amount of tokens to transfer\n * @param userData bytes extra information provided by the token holder (if any)\n * @param operatorData bytes extra information provided by the operator (if any)\n * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient\n */\n function _callTokensReceived(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData,\n bool requireReceptionAck\n )\n private\n {\n address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(to, _TOKENS_RECIPIENT_INTERFACE_HASH);\n if (implementer != address(0)) {\n IERC777Recipient(implementer).tokensReceived(operator, from, to, amount, userData, operatorData);\n } else if (requireReceptionAck) {\n require(!to.isContract(), \"ERC777: token recipient contract has no implementer for ERC777TokensRecipient\");\n }\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes\n * calls to {send}, {transfer}, {operatorSend}, 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 to 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(address operator, address from, address to, uint256 amount) internal virtual { }\n}\n","urls":[]},"contracts/token/ERC777/IERC777.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the ERC777Token standard as defined in the EIP.\n *\n * This contract uses the\n * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let\n * token holders and recipients react to token movements by using setting implementers\n * for the associated interfaces in said registry. See {IERC1820Registry} and\n * {ERC1820Implementer}.\n */\ninterface IERC777 {\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, usually a shorter version of the\n * name.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the smallest part of the token that is not divisible. This\n * means all token operations (creation, movement and destruction) must have\n * amounts that are a multiple of this number.\n *\n * For most token contracts, this value will equal 1.\n */\n function granularity() external view returns (uint256);\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 an account (`owner`).\n */\n function balanceOf(address owner) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `recipient`.\n *\n * If send or receive hooks are registered for the caller and `recipient`,\n * the corresponding functions will be called with `data` and empty\n * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.\n *\n * Emits a {Sent} event.\n *\n * Requirements\n *\n * - the caller must have at least `amount` tokens.\n * - `recipient` cannot be the zero address.\n * - if `recipient` is a contract, it must implement the {IERC777Recipient}\n * interface.\n */\n function send(address recipient, uint256 amount, bytes calldata data) external;\n\n /**\n * @dev Destroys `amount` tokens from the caller's account, reducing the\n * total supply.\n *\n * If a send hook is registered for the caller, the corresponding function\n * will be called with `data` and empty `operatorData`. See {IERC777Sender}.\n *\n * Emits a {Burned} event.\n *\n * Requirements\n *\n * - the caller must have at least `amount` tokens.\n */\n function burn(uint256 amount, bytes calldata data) external;\n\n /**\n * @dev Returns true if an account is an operator of `tokenHolder`.\n * Operators can send and burn tokens on behalf of their owners. All\n * accounts are their own operator.\n *\n * See {operatorSend} and {operatorBurn}.\n */\n function isOperatorFor(address operator, address tokenHolder) external view returns (bool);\n\n /**\n * @dev Make an account an operator of the caller.\n *\n * See {isOperatorFor}.\n *\n * Emits an {AuthorizedOperator} event.\n *\n * Requirements\n *\n * - `operator` cannot be calling address.\n */\n function authorizeOperator(address operator) external;\n\n /**\n * @dev Revoke an account's operator status for the caller.\n *\n * See {isOperatorFor} and {defaultOperators}.\n *\n * Emits a {RevokedOperator} event.\n *\n * Requirements\n *\n * - `operator` cannot be calling address.\n */\n function revokeOperator(address operator) external;\n\n /**\n * @dev Returns the list of default operators. These accounts are operators\n * for all token holders, even if {authorizeOperator} was never called on\n * them.\n *\n * This list is immutable, but individual holders may revoke these via\n * {revokeOperator}, in which case {isOperatorFor} will return false.\n */\n function defaultOperators() external view returns (address[] memory);\n\n /**\n * @dev Moves `amount` tokens from `sender` to `recipient`. The caller must\n * be an operator of `sender`.\n *\n * If send or receive hooks are registered for `sender` and `recipient`,\n * the corresponding functions will be called with `data` and\n * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.\n *\n * Emits a {Sent} event.\n *\n * Requirements\n *\n * - `sender` cannot be the zero address.\n * - `sender` must have at least `amount` tokens.\n * - the caller must be an operator for `sender`.\n * - `recipient` cannot be the zero address.\n * - if `recipient` is a contract, it must implement the {IERC777Recipient}\n * interface.\n */\n function operatorSend(\n address sender,\n address recipient,\n uint256 amount,\n bytes calldata data,\n bytes calldata operatorData\n ) external;\n\n /**\n * @dev Destroys `amount` tokens from `account`, reducing the total supply.\n * The caller must be an operator of `account`.\n *\n * If a send hook is registered for `account`, the corresponding function\n * will be called with `data` and `operatorData`. See {IERC777Sender}.\n *\n * Emits a {Burned} event.\n *\n * Requirements\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens.\n * - the caller must be an operator for `account`.\n */\n function operatorBurn(\n address account,\n uint256 amount,\n bytes calldata data,\n bytes calldata operatorData\n ) external;\n\n event Sent(\n address indexed operator,\n address indexed from,\n address indexed to,\n uint256 amount,\n bytes data,\n bytes operatorData\n );\n\n event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData);\n\n event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData);\n\n event AuthorizedOperator(address indexed operator, address indexed tokenHolder);\n\n event RevokedOperator(address indexed operator, address indexed tokenHolder);\n}\n","urls":[]},"contracts/token/ERC777/IERC777Recipient.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the ERC777TokensRecipient standard as defined in the EIP.\n *\n * Accounts can be notified of {IERC777} tokens being sent to them by having a\n * contract implement this interface (contract holders can be their own\n * implementer) and registering it on the\n * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].\n *\n * See {IERC1820Registry} and {ERC1820Implementer}.\n */\ninterface IERC777Recipient {\n /**\n * @dev Called by an {IERC777} token contract whenever tokens are being\n * moved or created into a registered account (`to`). The type of operation\n * is conveyed by `from` being the zero address or not.\n *\n * This call occurs _after_ the token contract's state is updated, so\n * {IERC777-balanceOf}, etc., can be used to query the post-operation state.\n *\n * This function may revert to prevent the operation from being executed.\n */\n function tokensReceived(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external;\n}\n","urls":[]},"contracts/token/ERC777/IERC777Sender.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the ERC777TokensSender standard as defined in the EIP.\n *\n * {IERC777} Token holders can be notified of operations performed on their\n * tokens by having a contract implement this interface (contract holders can be\n * their own implementer) and registering it on the\n * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].\n *\n * See {IERC1820Registry} and {ERC1820Implementer}.\n */\ninterface IERC777Sender {\n /**\n * @dev Called by an {IERC777} token contract whenever a registered holder's\n * (`from`) tokens are about to be moved or destroyed. The type of operation\n * is conveyed by `to` being the zero address or not.\n *\n * This call occurs _before_ the token contract's state is updated, so\n * {IERC777-balanceOf}, etc., can be used to query the pre-operation state.\n *\n * This function may revert to prevent the operation from being executed.\n */\n function tokensToSend(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external;\n}\n","urls":[]},"contracts/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\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 function isContract(address account) internal view returns (bool) {\n // According to EIP-1052, 0x0 is the value returned for not-yet created accounts\n // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned\n // for accounts without code, i.e. `keccak256('')`\n bytes32 codehash;\n bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;\n // solhint-disable-next-line no-inline-assembly\n assembly { codehash := extcodehash(account) }\n return (codehash != accountHash && codehash != 0x0);\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 // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\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 functionCall(target, data, \"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(address target, bytes memory data, string memory errorMessage) 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(address target, bytes memory data, uint256 value) 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(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n return _functionCallWithValue(target, data, value, errorMessage);\n }\n\n function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {\n require(isContract(target), \"Address: call to non-contract\");\n\n // solhint-disable-next-line avoid-low-level-calls\n (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);\n if (success) {\n return returndata;\n } else {\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\n // solhint-disable-next-line no-inline-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}\n","urls":[]},"contracts/utils/Arrays.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/Math.sol\";\n\n/**\n * @dev Collection of functions related to array types.\n */\nlibrary Arrays {\n /**\n * @dev Searches a sorted `array` and returns the first index that contains\n * a value greater or equal to `element`. If no such index exists (i.e. all\n * values in the array are strictly less than `element`), the array length is\n * returned. Time complexity O(log n).\n *\n * `array` is expected to be sorted in ascending order, and to contain no\n * repeated elements.\n */\n function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {\n if (array.length == 0) {\n return 0;\n }\n\n uint256 low = 0;\n uint256 high = array.length;\n\n while (low < high) {\n uint256 mid = Math.average(low, high);\n\n // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n // because Math.average rounds down (it does integer division with truncation).\n if (array[mid] > element) {\n high = mid;\n } else {\n low = mid + 1;\n }\n }\n\n // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.\n if (low > 0 && array[low - 1] == element) {\n return low - 1;\n } else {\n return low;\n }\n }\n}\n","urls":[]},"contracts/utils/Counters.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/SafeMath.sol\";\n\n/**\n * @title Counters\n * @author Matt Condon (@shrugs)\n * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number\n * of elements in a mapping, issuing ERC721 ids, or counting request ids.\n *\n * Include with `using Counters for Counters.Counter;`\n * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}\n * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never\n * directly accessed.\n */\nlibrary Counters {\n using SafeMath for uint256;\n\n struct Counter {\n // This variable should never be directly accessed by users of the library: interactions must be restricted to\n // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add\n // this feature: see https://github.com/ethereum/solidity/issues/4637\n uint256 _value; // default: 0\n }\n\n function current(Counter storage counter) internal view returns (uint256) {\n return counter._value;\n }\n\n function increment(Counter storage counter) internal {\n // The {SafeMath} overflow check can be skipped here, see the comment at the top\n counter._value += 1;\n }\n\n function decrement(Counter storage counter) internal {\n counter._value = counter._value.sub(1);\n }\n}\n","urls":[]},"contracts/utils/Create2.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\n * `CREATE2` can be used to compute in advance the address where a smart\n * contract will be deployed, which allows for interesting new mechanisms known\n * as 'counterfactual interactions'.\n *\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\n * information.\n */\nlibrary Create2 {\n /**\n * @dev Deploys a contract using `CREATE2`. The address where the contract\n * will be deployed can be known in advance via {computeAddress}.\n *\n * The bytecode for a contract can be obtained from Solidity with\n * `type(contractName).creationCode`.\n *\n * Requirements:\n *\n * - `bytecode` must not be empty.\n * - `salt` must have not been used for `bytecode` already.\n * - the factory must have a balance of at least `amount`.\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\n */\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address) {\n address addr;\n require(address(this).balance >= amount, \"Create2: insufficient balance\");\n require(bytecode.length != 0, \"Create2: bytecode length is zero\");\n // solhint-disable-next-line no-inline-assembly\n assembly {\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\n }\n require(addr != address(0), \"Create2: Failed on deploy\");\n return addr;\n }\n\n /**\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\n * `bytecodeHash` or `salt` will result in a new destination address.\n */\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\n return computeAddress(salt, bytecodeHash, address(this));\n }\n\n /**\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\n */\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address) {\n bytes32 _data = keccak256(\n abi.encodePacked(bytes1(0xff), deployer, salt, bytecodeHash)\n );\n return address(uint256(_data));\n }\n}\n","urls":[]},"contracts/utils/EnumerableMap.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Library for managing an enumerable variant of Solidity's\n * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]\n * type.\n *\n * Maps have the following properties:\n *\n * - Entries are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Entries are enumerated in O(n). No guarantees are made on the ordering.\n *\n * ```\n * contract Example {\n * // Add the library methods\n * using EnumerableMap for EnumerableMap.UintToAddressMap;\n *\n * // Declare a set state variable\n * EnumerableMap.UintToAddressMap private myMap;\n * }\n * ```\n *\n * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are\n * supported.\n */\nlibrary EnumerableMap {\n // To implement this library for multiple types with as little code\n // repetition as possible, we write it in terms of a generic Map type with\n // bytes32 keys and values.\n // The Map implementation uses private functions, and user-facing\n // implementations (such as Uint256ToAddressMap) are just wrappers around\n // the underlying Map.\n // This means that we can only create new EnumerableMaps for types that fit\n // in bytes32.\n\n struct MapEntry {\n bytes32 _key;\n bytes32 _value;\n }\n\n struct Map {\n // Storage of map keys and values\n MapEntry[] _entries;\n\n // Position of the entry defined by a key in the `entries` array, plus 1\n // because index 0 means a key is not in the map.\n mapping (bytes32 => uint256) _indexes;\n }\n\n /**\n * @dev Adds a key-value pair to a map, or updates the value for an existing\n * key. O(1).\n *\n * Returns true if the key was added to the map, that is if it was not\n * already present.\n */\n function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {\n // We read and store the key's index to prevent multiple reads from the same storage slot\n uint256 keyIndex = map._indexes[key];\n\n if (keyIndex == 0) { // Equivalent to !contains(map, key)\n map._entries.push(MapEntry({ _key: key, _value: value }));\n // The entry is stored at length-1, but we add 1 to all indexes\n // and use 0 as a sentinel value\n map._indexes[key] = map._entries.length;\n return true;\n } else {\n map._entries[keyIndex - 1]._value = value;\n return false;\n }\n }\n\n /**\n * @dev Removes a key-value pair from a map. O(1).\n *\n * Returns true if the key was removed from the map, that is if it was present.\n */\n function _remove(Map storage map, bytes32 key) private returns (bool) {\n // We read and store the key's index to prevent multiple reads from the same storage slot\n uint256 keyIndex = map._indexes[key];\n\n if (keyIndex != 0) { // Equivalent to contains(map, key)\n // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one\n // in the array, and then remove the last entry (sometimes called as 'swap and pop').\n // This modifies the order of the array, as noted in {at}.\n\n uint256 toDeleteIndex = keyIndex - 1;\n uint256 lastIndex = map._entries.length - 1;\n\n // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs\n // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.\n\n MapEntry storage lastEntry = map._entries[lastIndex];\n\n // Move the last entry to the index where the entry to delete is\n map._entries[toDeleteIndex] = lastEntry;\n // Update the index for the moved entry\n map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based\n\n // Delete the slot where the moved entry was stored\n map._entries.pop();\n\n // Delete the index for the deleted slot\n delete map._indexes[key];\n\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @dev Returns true if the key is in the map. O(1).\n */\n function _contains(Map storage map, bytes32 key) private view returns (bool) {\n return map._indexes[key] != 0;\n }\n\n /**\n * @dev Returns the number of key-value pairs in the map. O(1).\n */\n function _length(Map storage map) private view returns (uint256) {\n return map._entries.length;\n }\n\n /**\n * @dev Returns the key-value pair stored at position `index` in the map. O(1).\n *\n * Note that there are no guarantees on the ordering of entries inside the\n * array, and it may change when more entries are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {\n require(map._entries.length > index, \"EnumerableMap: index out of bounds\");\n\n MapEntry storage entry = map._entries[index];\n return (entry._key, entry._value);\n }\n\n /**\n * @dev Returns the value associated with `key`. O(1).\n *\n * Requirements:\n *\n * - `key` must be in the map.\n */\n function _get(Map storage map, bytes32 key) private view returns (bytes32) {\n return _get(map, key, \"EnumerableMap: nonexistent key\");\n }\n\n /**\n * @dev Same as {_get}, with a custom error message when `key` is not in the map.\n */\n function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {\n uint256 keyIndex = map._indexes[key];\n require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)\n return map._entries[keyIndex - 1]._value; // All indexes are 1-based\n }\n\n // UintToAddressMap\n\n struct UintToAddressMap {\n Map _inner;\n }\n\n /**\n * @dev Adds a key-value pair to a map, or updates the value for an existing\n * key. O(1).\n *\n * Returns true if the key was added to the map, that is if it was not\n * already present.\n */\n function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {\n return _set(map._inner, bytes32(key), bytes32(uint256(value)));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the key was removed from the map, that is if it was present.\n */\n function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {\n return _remove(map._inner, bytes32(key));\n }\n\n /**\n * @dev Returns true if the key is in the map. O(1).\n */\n function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {\n return _contains(map._inner, bytes32(key));\n }\n\n /**\n * @dev Returns the number of elements in the map. O(1).\n */\n function length(UintToAddressMap storage map) internal view returns (uint256) {\n return _length(map._inner);\n }\n\n /**\n * @dev Returns the element stored at position `index` in the set. O(1).\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {\n (bytes32 key, bytes32 value) = _at(map._inner, index);\n return (uint256(key), address(uint256(value)));\n }\n\n /**\n * @dev Returns the value associated with `key`. O(1).\n *\n * Requirements:\n *\n * - `key` must be in the map.\n */\n function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {\n return address(uint256(_get(map._inner, bytes32(key))));\n }\n\n /**\n * @dev Same as {get}, with a custom error message when `key` is not in the map.\n */\n function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {\n return address(uint256(_get(map._inner, bytes32(key), errorMessage)));\n }\n}\n","urls":[]},"contracts/utils/EnumerableSet.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Library for managing\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\n * types.\n *\n * Sets have the following properties:\n *\n * - Elements are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\n *\n * ```\n * contract Example {\n * // Add the library methods\n * using EnumerableSet for EnumerableSet.AddressSet;\n *\n * // Declare a set state variable\n * EnumerableSet.AddressSet private mySet;\n * }\n * ```\n *\n * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`\n * (`UintSet`) are supported.\n */\nlibrary EnumerableSet {\n // To implement this library for multiple types with as little code\n // repetition as possible, we write it in terms of a generic Set type with\n // bytes32 values.\n // The Set implementation uses private functions, and user-facing\n // implementations (such as AddressSet) are just wrappers around the\n // underlying Set.\n // This means that we can only create new EnumerableSets for types that fit\n // in bytes32.\n\n struct Set {\n // Storage of set values\n bytes32[] _values;\n\n // Position of the value in the `values` array, plus 1 because index 0\n // means a value is not in the set.\n mapping (bytes32 => uint256) _indexes;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function _add(Set storage set, bytes32 value) private returns (bool) {\n if (!_contains(set, value)) {\n set._values.push(value);\n // The value is stored at length-1, but we add 1 to all indexes\n // and use 0 as a sentinel value\n set._indexes[value] = set._values.length;\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function _remove(Set storage set, bytes32 value) private returns (bool) {\n // We read and store the value's index to prevent multiple reads from the same storage slot\n uint256 valueIndex = set._indexes[value];\n\n if (valueIndex != 0) { // Equivalent to contains(set, value)\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n // the array, and then remove the last element (sometimes called as 'swap and pop').\n // This modifies the order of the array, as noted in {at}.\n\n uint256 toDeleteIndex = valueIndex - 1;\n uint256 lastIndex = set._values.length - 1;\n\n // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs\n // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.\n\n bytes32 lastvalue = set._values[lastIndex];\n\n // Move the last value to the index where the value to delete is\n set._values[toDeleteIndex] = lastvalue;\n // Update the index for the moved value\n set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based\n\n // Delete the slot where the moved value was stored\n set._values.pop();\n\n // Delete the index for the deleted slot\n delete set._indexes[value];\n\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\n return set._indexes[value] != 0;\n }\n\n /**\n * @dev Returns the number of values on the set. O(1).\n */\n function _length(Set storage set) private view returns (uint256) {\n return set._values.length;\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\n require(set._values.length > index, \"EnumerableSet: index out of bounds\");\n return set._values[index];\n }\n\n // AddressSet\n\n struct AddressSet {\n Set _inner;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function add(AddressSet storage set, address value) internal returns (bool) {\n return _add(set._inner, bytes32(uint256(value)));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function remove(AddressSet storage set, address value) internal returns (bool) {\n return _remove(set._inner, bytes32(uint256(value)));\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function contains(AddressSet storage set, address value) internal view returns (bool) {\n return _contains(set._inner, bytes32(uint256(value)));\n }\n\n /**\n * @dev Returns the number of values in the set. O(1).\n */\n function length(AddressSet storage set) internal view returns (uint256) {\n return _length(set._inner);\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\n return address(uint256(_at(set._inner, index)));\n }\n\n\n // UintSet\n\n struct UintSet {\n Set _inner;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function add(UintSet storage set, uint256 value) internal returns (bool) {\n return _add(set._inner, bytes32(value));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\n return _remove(set._inner, bytes32(value));\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\n return _contains(set._inner, bytes32(value));\n }\n\n /**\n * @dev Returns the number of values on the set. O(1).\n */\n function length(UintSet storage set) internal view returns (uint256) {\n return _length(set._inner);\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\n return uint256(_at(set._inner, index));\n }\n}\n","urls":[]},"contracts/utils/Pausable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.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 */\ncontract Pausable is Context {\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 constructor () internal {\n _paused = false;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view returns (bool) {\n return _paused;\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 require(!_paused, \"Pausable: paused\");\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 require(_paused, \"Pausable: not paused\");\n _;\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","urls":[]},"contracts/utils/ReentrancyGuard.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\ncontract ReentrancyGuard {\n // Booleans are more expensive than uint256 or any type that takes up a full\n // word because each write operation emits an extra SLOAD to first read the\n // slot's contents, replace the bits taken up by the boolean, and then write\n // back. This is the compiler's defense against contract upgrades and\n // pointer aliasing, and it cannot be disabled.\n\n // The values being non-zero value makes deployment a bit more expensive,\n // but in exchange the refund on every call to nonReentrant will be lower in\n // amount. Since refunds are capped to a percentage of the total\n // transaction's gas, it is best to keep them low in cases like this one, to\n // increase the likelihood of the full refund coming into effect.\n uint256 private constant _NOT_ENTERED = 1;\n uint256 private constant _ENTERED = 2;\n\n uint256 private _status;\n\n constructor () internal {\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Prevents a contract from calling itself, directly or indirectly.\n * Calling a `nonReentrant` function from another `nonReentrant`\n * function is not supported. It is possible to prevent this from happening\n * by making the `nonReentrant` function external, and make it call a\n * `private` function that does the actual work.\n */\n modifier nonReentrant() {\n // On the first call to nonReentrant, _notEntered will be true\n require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n // Any calls to nonReentrant after this point will fail\n _status = _ENTERED;\n\n _;\n\n // By storing the original value once again, a refund is triggered (see\n // https://eips.ethereum.org/EIPS/eip-2200)\n _status = _NOT_ENTERED;\n }\n}\n","urls":[]},"contracts/utils/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n *\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\n * all math on `uint256` and `int256` and then downcasting.\n */\nlibrary SafeCast {\n\n /**\n * @dev Returns the downcasted uint128 from uint256, reverting on\n * overflow (when the input is greater than largest uint128).\n *\n * Counterpart to Solidity's `uint128` operator.\n *\n * Requirements:\n *\n * - input must fit into 128 bits\n */\n function toUint128(uint256 value) internal pure returns (uint128) {\n require(value < 2**128, \"SafeCast: value doesn\\'t fit in 128 bits\");\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint64 from uint256, reverting on\n * overflow (when the input is greater than largest uint64).\n *\n * Counterpart to Solidity's `uint64` operator.\n *\n * Requirements:\n *\n * - input must fit into 64 bits\n */\n function toUint64(uint256 value) internal pure returns (uint64) {\n require(value < 2**64, \"SafeCast: value doesn\\'t fit in 64 bits\");\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint32 from uint256, reverting on\n * overflow (when the input is greater than largest uint32).\n *\n * Counterpart to Solidity's `uint32` operator.\n *\n * Requirements:\n *\n * - input must fit into 32 bits\n */\n function toUint32(uint256 value) internal pure returns (uint32) {\n require(value < 2**32, \"SafeCast: value doesn\\'t fit in 32 bits\");\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint16 from uint256, reverting on\n * overflow (when the input is greater than largest uint16).\n *\n * Counterpart to Solidity's `uint16` operator.\n *\n * Requirements:\n *\n * - input must fit into 16 bits\n */\n function toUint16(uint256 value) internal pure returns (uint16) {\n require(value < 2**16, \"SafeCast: value doesn\\'t fit in 16 bits\");\n return uint16(value);\n }\n\n /**\n * @dev Returns the downcasted uint8 from uint256, reverting on\n * overflow (when the input is greater than largest uint8).\n *\n * Counterpart to Solidity's `uint8` operator.\n *\n * Requirements:\n *\n * - input must fit into 8 bits.\n */\n function toUint8(uint256 value) internal pure returns (uint8) {\n require(value < 2**8, \"SafeCast: value doesn\\'t fit in 8 bits\");\n return uint8(value);\n }\n\n /**\n * @dev Converts a signed int256 into an unsigned uint256.\n *\n * Requirements:\n *\n * - input must be greater than or equal to 0.\n */\n function toUint256(int256 value) internal pure returns (uint256) {\n require(value >= 0, \"SafeCast: value must be positive\");\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int128 from int256, reverting on\n * overflow (when the input is less than smallest int128 or\n * greater than largest int128).\n *\n * Counterpart to Solidity's `int128` operator.\n *\n * Requirements:\n *\n * - input must fit into 128 bits\n *\n * _Available since v3.1._\n */\n function toInt128(int256 value) internal pure returns (int128) {\n require(value >= -2**127 && value < 2**127, \"SafeCast: value doesn\\'t fit in 128 bits\");\n return int128(value);\n }\n\n /**\n * @dev Returns the downcasted int64 from int256, reverting on\n * overflow (when the input is less than smallest int64 or\n * greater than largest int64).\n *\n * Counterpart to Solidity's `int64` operator.\n *\n * Requirements:\n *\n * - input must fit into 64 bits\n *\n * _Available since v3.1._\n */\n function toInt64(int256 value) internal pure returns (int64) {\n require(value >= -2**63 && value < 2**63, \"SafeCast: value doesn\\'t fit in 64 bits\");\n return int64(value);\n }\n\n /**\n * @dev Returns the downcasted int32 from int256, reverting on\n * overflow (when the input is less than smallest int32 or\n * greater than largest int32).\n *\n * Counterpart to Solidity's `int32` operator.\n *\n * Requirements:\n *\n * - input must fit into 32 bits\n *\n * _Available since v3.1._\n */\n function toInt32(int256 value) internal pure returns (int32) {\n require(value >= -2**31 && value < 2**31, \"SafeCast: value doesn\\'t fit in 32 bits\");\n return int32(value);\n }\n\n /**\n * @dev Returns the downcasted int16 from int256, reverting on\n * overflow (when the input is less than smallest int16 or\n * greater than largest int16).\n *\n * Counterpart to Solidity's `int16` operator.\n *\n * Requirements:\n *\n * - input must fit into 16 bits\n *\n * _Available since v3.1._\n */\n function toInt16(int256 value) internal pure returns (int16) {\n require(value >= -2**15 && value < 2**15, \"SafeCast: value doesn\\'t fit in 16 bits\");\n return int16(value);\n }\n\n /**\n * @dev Returns the downcasted int8 from int256, reverting on\n * overflow (when the input is less than smallest int8 or\n * greater than largest int8).\n *\n * Counterpart to Solidity's `int8` operator.\n *\n * Requirements:\n *\n * - input must fit into 8 bits.\n *\n * _Available since v3.1._\n */\n function toInt8(int256 value) internal pure returns (int8) {\n require(value >= -2**7 && value < 2**7, \"SafeCast: value doesn\\'t fit in 8 bits\");\n return int8(value);\n }\n\n /**\n * @dev Converts an unsigned uint256 into a signed int256.\n *\n * Requirements:\n *\n * - input must be less than or equal to maxInt256.\n */\n function toInt256(uint256 value) internal pure returns (int256) {\n require(value < 2**255, \"SafeCast: value doesn't fit in an int256\");\n return int256(value);\n }\n}\n","urls":[]},"contracts/utils/Strings.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n /**\n * @dev Converts a `uint256` to its ASCII `string` representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n // Inspired by OraclizeAPI's implementation - MIT licence\n // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\n\n if (value == 0) {\n return \"0\";\n }\n uint256 temp = value;\n uint256 digits;\n while (temp != 0) {\n digits++;\n temp /= 10;\n }\n bytes memory buffer = new bytes(digits);\n uint256 index = digits - 1;\n temp = value;\n while (temp != 0) {\n buffer[index--] = byte(uint8(48 + temp % 10));\n temp /= 10;\n }\n return string(buffer);\n }\n}\n","urls":[]}}} diff --git a/tests/functional/data/manifests/openzeppelin/4.4.2/openzeppelin.json b/tests/functional/data/manifests/openzeppelin/4.4.2/openzeppelin.json new file mode 100644 index 0000000000..d7f889113a --- /dev/null +++ b/tests/functional/data/manifests/openzeppelin/4.4.2/openzeppelin.json @@ -0,0 +1 @@ +{"contractTypes":{"AccessControl":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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"}],"contractName":"AccessControl","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Contract module that allows children to implement role-based access control mechanisms. Roles are referred to by their `bytes32` identifier. These should be exposed in the external API and be unique. The best way to achieve this is by using `public constant` hash digests: ``` bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\"); ``` Roles can be used to represent a set of permissions. To restrict access to a function call, use {hasRole}: ``` function foo() public { require(hasRole(MY_ROLE, msg.sender)); ... } ``` Roles can be granted and revoked dynamically via the {grantRole} and {revokeRole} functions. Each role has an associated admin role, and only accounts that have a role's admin role can call {grantRole} and {revokeRole}. By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means that only accounts with this role will be able to grant or revoke other roles. More complex role relationships can be created by using {_setRoleAdmin}. WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to grant and revoke this role. Extra precautions should be taken to secure accounts that have been granted it.","events":{"RoleAdminChanged(bytes32,bytes32,bytes32)":{"details":"Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._"},"RoleGranted(bytes32,address,address)":{"details":"Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {_setupRole}."},"RoleRevoked(bytes32,address,address)":{"details":"Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call: - if using `revokeRole`, it is the admin role bearer - if using `renounceRole`, it is the role bearer (i.e. `account`)"}},"kind":"dev","methods":{"getRoleAdmin(bytes32)":{"details":"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."},"getRoleMember(bytes32,uint256)":{"details":"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."},"getRoleMemberCount(bytes32)":{"details":"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."},"grantRole(bytes32,address)":{"details":"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."},"hasRole(bytes32,address)":{"details":"Returns `true` if `account` has been granted `role`."},"renounceRole(bytes32,address)":{"details":"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."},"revokeRole(bytes32,address)":{"details":"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}},"version":1},"methodIdentifiers":{"DEFAULT_ADMIN_ROLE()":"0xa217fddf","getRoleAdmin(bytes32)":"0x248a9ca3","getRoleMember(bytes32,uint256)":"0x9010d07c","getRoleMemberCount(bytes32)":"0xca15c873","grantRole(bytes32,address)":"0x2f2ff15d","hasRole(bytes32,address)":"0x91d14854","renounceRole(bytes32,address)":"0x36568abe","revokeRole(bytes32,address)":"0xd547741f"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/access/AccessControl.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"AccessControlMock":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"roleId","type":"bytes32"},{"internalType":"bytes32","name":"adminRoleId","type":"bytes32"}],"name":"setRoleAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"AccessControlMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610023600061001e610028565b61002c565b61012d565b3390565b610036828261003a565b5050565b60008281526020818152604090912061005c9183906103ae6100ad821b17901c565b1561003657610069610028565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006100c2836001600160a01b0384166100cb565b90505b92915050565b60006100d78383610115565b61010d575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556100c5565b5060006100c5565b60009081526001919091016020526040902054151590565b6107a28061013c6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80639010d07c116100665780639010d07c1461014457806391d1485414610183578063a217fddf146101c3578063ca15c873146101cb578063d547741f146101e857610093565b80631e4e009114610098578063248a9ca3146100bd5780632f2ff15d146100ec57806336568abe14610118575b600080fd5b6100bb600480360360408110156100ae57600080fd5b5080359060200135610214565b005b6100da600480360360208110156100d357600080fd5b5035610222565b60408051918252519081900360200190f35b6100bb6004803603604081101561010257600080fd5b50803590602001356001600160a01b0316610237565b6100bb6004803603604081101561012e57600080fd5b50803590602001356001600160a01b031661029f565b6101676004803603604081101561015a57600080fd5b5080359060200135610300565b604080516001600160a01b039092168252519081900360200190f35b6101af6004803603604081101561019957600080fd5b50803590602001356001600160a01b0316610321565b604080519115158252519081900360200190f35b6100da610339565b6100da600480360360208110156101e157600080fd5b503561033e565b6100bb600480360360408110156101fe57600080fd5b50803590602001356001600160a01b0316610355565b61021e82826103c3565b5050565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461025a90610255610415565b610321565b6102955760405162461bcd60e51b815260040180806020018281038252602f8152602001806106df602f913960400191505060405180910390fd5b61021e8282610419565b6102a7610415565b6001600160a01b0316816001600160a01b0316146102f65760405162461bcd60e51b815260040180806020018281038252602f81526020018061073e602f913960400191505060405180910390fd5b61021e8282610482565b600082815260208190526040812061031890836104eb565b90505b92915050565b600082815260208190526040812061031890836104f7565b600081565b600081815260208190526040812061031b9061050c565b60008281526020819052604090206002015461037390610255610415565b6102f65760405162461bcd60e51b815260040180806020018281038252603081526020018061070e6030913960400191505060405180910390fd5b6000610318836001600160a01b038416610517565b600082815260208190526040808220600201549051839285917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a460009182526020829052604090912060020155565b3390565b600082815260208190526040902061043190826103ae565b1561021e5761043e610415565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260208190526040902061049a9082610561565b1561021e576104a7610415565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006103188383610576565b6000610318836001600160a01b0384166105da565b600061031b826105f2565b600061052383836105da565b6105595750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561031b565b50600061031b565b6000610318836001600160a01b0384166105f6565b815460009082106105b85760405162461bcd60e51b81526004018080602001828103825260228152602001806106bd6022913960400191505060405180910390fd5b8260000182815481106105c757fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156106b2578354600019808301919081019060009087908390811061062957fe5b906000526020600020015490508087600001848154811061064657fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061067657fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061031b565b600091505061031b56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122070bddcb7ebea0d9d0a410693317f3307f7a357311e88666c23c191d9a931676264736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"getRoleAdmin(bytes32)":{"details":"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."},"getRoleMember(bytes32,uint256)":{"details":"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."},"getRoleMemberCount(bytes32)":{"details":"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."},"grantRole(bytes32,address)":{"details":"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."},"hasRole(bytes32,address)":{"details":"Returns `true` if `account` has been granted `role`."},"renounceRole(bytes32,address)":{"details":"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."},"revokeRole(bytes32,address)":{"details":"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."}},"version":1},"methodIdentifiers":{"DEFAULT_ADMIN_ROLE()":"0xa217fddf","getRoleAdmin(bytes32)":"0x248a9ca3","getRoleMember(bytes32,uint256)":"0x9010d07c","getRoleMemberCount(bytes32)":"0xca15c873","grantRole(bytes32,address)":"0x2f2ff15d","hasRole(bytes32,address)":"0x91d14854","renounceRole(bytes32,address)":"0x36568abe","revokeRole(bytes32,address)":"0xd547741f","setRoleAdmin(bytes32,bytes32)":"0x1e4e0091"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100935760003560e01c80639010d07c116100665780639010d07c1461014457806391d1485414610183578063a217fddf146101c3578063ca15c873146101cb578063d547741f146101e857610093565b80631e4e009114610098578063248a9ca3146100bd5780632f2ff15d146100ec57806336568abe14610118575b600080fd5b6100bb600480360360408110156100ae57600080fd5b5080359060200135610214565b005b6100da600480360360208110156100d357600080fd5b5035610222565b60408051918252519081900360200190f35b6100bb6004803603604081101561010257600080fd5b50803590602001356001600160a01b0316610237565b6100bb6004803603604081101561012e57600080fd5b50803590602001356001600160a01b031661029f565b6101676004803603604081101561015a57600080fd5b5080359060200135610300565b604080516001600160a01b039092168252519081900360200190f35b6101af6004803603604081101561019957600080fd5b50803590602001356001600160a01b0316610321565b604080519115158252519081900360200190f35b6100da610339565b6100da600480360360208110156101e157600080fd5b503561033e565b6100bb600480360360408110156101fe57600080fd5b50803590602001356001600160a01b0316610355565b61021e82826103c3565b5050565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461025a90610255610415565b610321565b6102955760405162461bcd60e51b815260040180806020018281038252602f8152602001806106df602f913960400191505060405180910390fd5b61021e8282610419565b6102a7610415565b6001600160a01b0316816001600160a01b0316146102f65760405162461bcd60e51b815260040180806020018281038252602f81526020018061073e602f913960400191505060405180910390fd5b61021e8282610482565b600082815260208190526040812061031890836104eb565b90505b92915050565b600082815260208190526040812061031890836104f7565b600081565b600081815260208190526040812061031b9061050c565b60008281526020819052604090206002015461037390610255610415565b6102f65760405162461bcd60e51b815260040180806020018281038252603081526020018061070e6030913960400191505060405180910390fd5b6000610318836001600160a01b038416610517565b600082815260208190526040808220600201549051839285917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a460009182526020829052604090912060020155565b3390565b600082815260208190526040902061043190826103ae565b1561021e5761043e610415565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260208190526040902061049a9082610561565b1561021e576104a7610415565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006103188383610576565b6000610318836001600160a01b0384166105da565b600061031b826105f2565b600061052383836105da565b6105595750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561031b565b50600061031b565b6000610318836001600160a01b0384166105f6565b815460009082106105b85760405162461bcd60e51b81526004018080602001828103825260228152602001806106bd6022913960400191505060405180910390fd5b8260000182815481106105c757fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156106b2578354600019808301919081019060009087908390811061062957fe5b906000526020600020015490508087600001848154811061064657fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061067657fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061031b565b600091505061031b56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122070bddcb7ebea0d9d0a410693317f3307f7a357311e88666c23c191d9a931676264736f6c634300060c0033"},"sourceId":"contracts/mocks/AccessControlMock.sol","sourcemap":"97:257:19:-:0;;;147:82;;;;;;;;;-1:-1:-1;178:44:19;1762:4:6;209:12:19;:10;:12::i;:::-;178:10;:44::i;:::-;97:257;;590:104:0;677:10;590:104;:::o;6578:110:6:-;6656:25;6667:4;6673:7;6656:10;:25::i;:::-;6578:110;;:::o;7015:184::-;7088:6;:12;;;;;;;;;;;:33;;7113:7;;7088:24;;;;;:33;;:::i;:::-;7084:109;;;7169:12;:10;:12::i;:::-;-1:-1:-1;;;;;7142:40:6;7160:7;-1:-1:-1;;;;;7142:40:6;7154:4;7142:40;;;;;;;;;;7015:184;;:::o;4864:141:109:-;4934:4;4957:41;4962:3;-1:-1:-1;;;;;4982:14:109;;4957:4;:41::i;:::-;4950:48;;4864:141;;;;;:::o;1611:404::-;1674:4;1695:21;1705:3;1710:5;1695:9;:21::i;:::-;1690:319;;-1:-1:-1;1732:23:109;;;;;;;;:11;:23;;;;;;;;;;;;;1912:18;;1890:19;;;:12;;;:19;;;;;;:40;;;;1944:11;;1690:319;-1:-1:-1;1993:5:109;1986:12;;3776:127;3849:4;3872:19;;;:12;;;;;:19;;;;;;:24;;;3776:127::o;97:257:19:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Address":{"abi":[],"contractName":"Address","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200fad9cea9a041e032f5bf35bdb41ac60ba6056b605642ec35ead1b665db3eddd64736f6c634300060c0033"},"devdoc":{"details":"Collection of functions related to the address type","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200fad9cea9a041e032f5bf35bdb41ac60ba6056b605642ec35ead1b665db3eddd64736f6c634300060c0033"},"sourceId":"contracts/utils/Address.sol","sourcemap":"126:5951:104:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"AddressImpl":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"data","type":"string"}],"name":"CallReturnValue","type":"event"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"functionCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"functionCallWithValue","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sendValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}],"contractName":"AddressImpl","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5061099c806100206000396000f3fe6080604052600436106100435760003560e01c8063162790551461004f57806324a084df146100965780632a011594146100d1578063a0b5ffb01461014f5761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b506100826004803603602081101561007257600080fd5b50356001600160a01b03166101da565b604080519115158252519081900360200190f35b3480156100a257600080fd5b506100cf600480360360408110156100b957600080fd5b506001600160a01b0381351690602001356101eb565b005b6100cf600480360360608110156100e757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561011157600080fd5b82018360208201111561012357600080fd5b803590602001918460018302840111600160201b8311171561014457600080fd5b9193509150356101f9565b34801561015b57600080fd5b506100cf6004803603604081101561017257600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561019c57600080fd5b8201836020820111156101ae57600080fd5b803590602001918460018302840111600160201b831117156101cf57600080fd5b50909250905061039c565b60006101e58261053c565b92915050565b6101f58282610578565b5050565b606061023d8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250610662915050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c81806020019051602081101561027557600080fd5b8101908080516040519392919084600160201b82111561029457600080fd5b9083019060208201858111156102a957600080fd5b8251600160201b8111828201881017156102c257600080fd5b82525081516020918201929091019080838360005b838110156102ef5781810151838201526020016102d7565b50505050905090810190601f16801561031c5780820380516001836020036101000a031916815260200191505b50604081815260208083528651818401528651929550859450908401925085019080838360005b8381101561035b578181015183820152602001610343565b50505050905090810190601f1680156103885780820380516001836020036101000a031916815260200191505b509250505060405180910390a15050505050565b60606103de8484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061068892505050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c81806020019051602081101561041657600080fd5b8101908080516040519392919084600160201b82111561043557600080fd5b90830190602082018581111561044a57600080fd5b8251600160201b81118282018810171561046357600080fd5b82525081516020918201929091019080838360005b83811015610490578181015183820152602001610478565b50505050905090810190601f1680156104bd5780820380516001836020036101000a031916815260200191505b50604081815260208083528651818401528651929550859450908401925085019080838360005b838110156104fc5781810151838201526020016104e4565b50505050905090810190601f1680156105295780820380516001836020036101000a031916815260200191505b509250505060405180910390a150505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061057057508115155b949350505050565b804710156105cd576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610618576040519150601f19603f3d011682016040523d82523d6000602084013e61061d565b606091505b505090508061065d5760405162461bcd60e51b815260040180806020018281038252603a8152602001806108de603a913960400191505060405180910390fd5b505050565b606061057084848460405180606001604052806029815260200161093e602991396106d1565b60606106ca83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610727565b9392505050565b6060824710156107125760405162461bcd60e51b81526004018080602001828103825260268152602001806109186026913960400191505060405180910390fd5b61071e85858585610732565b95945050505050565b606061057084846000855b606061073d8561053c565b61078e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106107cd5780518252601f1990920191602091820191016107ae565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461082f576040519150601f19603f3d011682016040523d82523d6000602084013e610834565b606091505b509150915081156108485791506105709050565b8051156108585780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108a257818101518382015260200161088a565b50505050905090810190601f1680156108cf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a2646970667358221220134e667fd70954d715df90c23c236801690dd89ffb1aaa882d9b2214600d61c764736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"functionCall(address,bytes)":"0xa0b5ffb0","functionCallWithValue(address,bytes,uint256)":"0x2a011594","isContract(address)":"0x16279055","sendValue(address,uint256)":"0x24a084df"},"runtimeBytecode":{"bytecode":"0x6080604052600436106100435760003560e01c8063162790551461004f57806324a084df146100965780632a011594146100d1578063a0b5ffb01461014f5761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b506100826004803603602081101561007257600080fd5b50356001600160a01b03166101da565b604080519115158252519081900360200190f35b3480156100a257600080fd5b506100cf600480360360408110156100b957600080fd5b506001600160a01b0381351690602001356101eb565b005b6100cf600480360360608110156100e757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561011157600080fd5b82018360208201111561012357600080fd5b803590602001918460018302840111600160201b8311171561014457600080fd5b9193509150356101f9565b34801561015b57600080fd5b506100cf6004803603604081101561017257600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561019c57600080fd5b8201836020820111156101ae57600080fd5b803590602001918460018302840111600160201b831117156101cf57600080fd5b50909250905061039c565b60006101e58261053c565b92915050565b6101f58282610578565b5050565b606061023d8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250879250610662915050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c81806020019051602081101561027557600080fd5b8101908080516040519392919084600160201b82111561029457600080fd5b9083019060208201858111156102a957600080fd5b8251600160201b8111828201881017156102c257600080fd5b82525081516020918201929091019080838360005b838110156102ef5781810151838201526020016102d7565b50505050905090810190601f16801561031c5780820380516001836020036101000a031916815260200191505b50604081815260208083528651818401528651929550859450908401925085019080838360005b8381101561035b578181015183820152602001610343565b50505050905090810190601f1680156103885780820380516001836020036101000a031916815260200191505b509250505060405180910390a15050505050565b60606103de8484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061068892505050565b90507fe518073da644d0626295bee74d5d5c51447a33857c62913bb30f35e2fba3db7c81806020019051602081101561041657600080fd5b8101908080516040519392919084600160201b82111561043557600080fd5b90830190602082018581111561044a57600080fd5b8251600160201b81118282018810171561046357600080fd5b82525081516020918201929091019080838360005b83811015610490578181015183820152602001610478565b50505050905090810190601f1680156104bd5780820380516001836020036101000a031916815260200191505b50604081815260208083528651818401528651929550859450908401925085019080838360005b838110156104fc5781810151838201526020016104e4565b50505050905090810190601f1680156105295780820380516001836020036101000a031916815260200191505b509250505060405180910390a150505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061057057508115155b949350505050565b804710156105cd576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610618576040519150601f19603f3d011682016040523d82523d6000602084013e61061d565b606091505b505090508061065d5760405162461bcd60e51b815260040180806020018281038252603a8152602001806108de603a913960400191505060405180910390fd5b505050565b606061057084848460405180606001604052806029815260200161093e602991396106d1565b60606106ca83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610727565b9392505050565b6060824710156107125760405162461bcd60e51b81526004018080602001828103825260268152602001806109186026913960400191505060405180910390fd5b61071e85858585610732565b95945050505050565b606061057084846000855b606061073d8561053c565b61078e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106107cd5780518252601f1990920191602091820191016107ae565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461082f576040519150601f19603f3d011682016040523d82523d6000602084013e610834565b606091505b509150915081156108485791506105709050565b8051156108585780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108a257818101518382015260200161088a565b50505050905090810190601f1680156108cf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a2646970667358221220134e667fd70954d715df90c23c236801690dd89ffb1aaa882d9b2214600d61c764736f6c634300060c0033"},"sourceId":"contracts/mocks/AddressImpl.sol","sourcemap":"90:892:20:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Arrays":{"abi":[],"contractName":"Arrays","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200ccfc2c15577d4eb59eda77a0d71de8efbf9f34ee2fc32be6298a15fe3b1864264736f6c634300060c0033"},"devdoc":{"details":"Collection of functions related to array types.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200ccfc2c15577d4eb59eda77a0d71de8efbf9f34ee2fc32be6298a15fe3b1864264736f6c634300060c0033"},"sourceId":"contracts/utils/Arrays.sol","sourcemap":"150:1326:105:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ArraysImpl":{"abi":[{"inputs":[{"internalType":"uint256[]","name":"array","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"element","type":"uint256"}],"name":"findUpperBound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"contractName":"ArraysImpl","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506040516102b73803806102b78339818101604052602081101561003357600080fd5b810190808051604051939291908464010000000082111561005357600080fd5b90830190602082018581111561006857600080fd5b825186602082028301116401000000008211171561008557600080fd5b82525081516020918201928201910280838360005b838110156100b257818101518382015260200161009a565b5050505091909101604052505082516100d492506000915060208401906100db565b505061013b565b828054828255906000526020600020908101928215610116579160200282015b828111156101165782518255916020019190600101906100fb565b50610122929150610126565b5090565b5b808211156101225760008155600101610127565b61016d8061014a6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806333e3a58a14610030575b600080fd5b61004d6004803603602081101561004657600080fd5b503561005f565b60408051918252519081900360200190f35b600061006b8183610071565b92915050565b81546000906100825750600061006b565b82546000905b808210156100d157600061009c8383610112565b9050848682815481106100ab57fe5b906000526020600020015411156100c4578091506100cb565b8060010192505b50610088565b6000821180156100f95750838560018403815481106100ec57fe5b9060005260206000200154145b1561010a575060001901905061006b565b509392505050565b6000600280830660028506018161012557fe5b0460028304600285040101939250505056fea2646970667358221220deb9c1cbe5bfbc1caa8bfa72e13dbcdcb706c759bd6cae03bb9c0a0873c6dcc864736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"findUpperBound(uint256)":"0x33e3a58a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806333e3a58a14610030575b600080fd5b61004d6004803603602081101561004657600080fd5b503561005f565b60408051918252519081900360200190f35b600061006b8183610071565b92915050565b81546000906100825750600061006b565b82546000905b808210156100d157600061009c8383610112565b9050848682815481106100ab57fe5b906000526020600020015411156100c4578091506100cb565b8060010192505b50610088565b6000821180156100f95750838560018403815481106100ec57fe5b9060005260206000200154145b1561010a575060001901905061006b565b509392505050565b6000600280830660028506018161012557fe5b0460028304600285040101939250505056fea2646970667358221220deb9c1cbe5bfbc1caa8bfa72e13dbcdcb706c759bd6cae03bb9c0a0873c6dcc864736f6c634300060c0033"},"sourceId":"contracts/mocks/ArraysImpl.sol","sourcemap":"89:300:21:-:0;;;179:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;179:75:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;179:75:21;;;;;;-1:-1:-1;;233:14:21;;;;-1:-1:-1;233:6:21;;-1:-1:-1;233:14:21;;;;;:::i;:::-;;179:75;89:300;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;89:300:21;;;-1:-1:-1;89:300:21;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"CallReceiverMock":{"abi":[{"anonymous":false,"inputs":[],"name":"MockFunctionCalled","type":"event"},{"inputs":[],"name":"mockFunction","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mockFunctionNonPayable","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mockFunctionOutOfGas","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mockFunctionRevertsNoReason","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mockFunctionRevertsReason","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mockFunctionThrows","outputs":[],"stateMutability":"payable","type":"function"}],"contractName":"CallReceiverMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5061021c806100206000396000f3fe6080604052600436106100555760003560e01c80630c0349681461005a5780630f63e42c146100645780632c81d638146100ee5780633bcfaa14146100f65780633e6fec04146100fe578063a793ab4714610106575b600080fd5b61006261010e565b005b34801561007057600080fd5b5061007961015b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100b357818101518382015260200161009b565b50505050905090810190601f1680156100e05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610062610055565b6100626101a8565b61007961015b565b6100626101aa565b6040805162461bcd60e51b815260206004820152601b60248201527f43616c6c52656365697665724d6f636b3a20726576657274696e670000000000604482015290519081900360640190fd5b6040516060907f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1506040805180820190915260068152650c1e0c4c8ccd60d21b602082015290565bfe5b60005b60008054600181810183559180527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56301829055016101ad56fea26469706673582212206f27c57db78ca736a1f9cb72a607c6092a1bb6e99c67a519dfe0fc2ed6bf25a464736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"mockFunction()":"0x3e6fec04","mockFunctionNonPayable()":"0x0f63e42c","mockFunctionOutOfGas()":"0xa793ab47","mockFunctionRevertsNoReason()":"0x2c81d638","mockFunctionRevertsReason()":"0x0c034968","mockFunctionThrows()":"0x3bcfaa14"},"runtimeBytecode":{"bytecode":"0x6080604052600436106100555760003560e01c80630c0349681461005a5780630f63e42c146100645780632c81d638146100ee5780633bcfaa14146100f65780633e6fec04146100fe578063a793ab4714610106575b600080fd5b61006261010e565b005b34801561007057600080fd5b5061007961015b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100b357818101518382015260200161009b565b50505050905090810190601f1680156100e05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610062610055565b6100626101a8565b61007961015b565b6100626101aa565b6040805162461bcd60e51b815260206004820152601b60248201527f43616c6c52656365697665724d6f636b3a20726576657274696e670000000000604482015290519081900360640190fd5b6040516060907f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1506040805180820190915260068152650c1e0c4c8ccd60d21b602082015290565bfe5b60005b60008054600181810183559180527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56301829055016101ad56fea26469706673582212206f27c57db78ca736a1f9cb72a607c6092a1bb6e99c67a519dfe0fc2ed6bf25a464736f6c634300060c0033"},"sourceId":"contracts/mocks/CallReceiverMock.sol","sourcemap":"58:782:22:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ConditionalEscrow":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"withdrawalAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ConditionalEscrow","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Base abstract escrow to only allow withdrawal if a condition is met.Intended usage: See {Escrow}. Same usage guidelines apply here.","kind":"dev","methods":{"deposit(address)":{"details":"Stores the sent amount as credit to be withdrawn.","params":{"payee":"The destination address of the funds."}},"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."},"withdraw(address)":{"details":"Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.","params":{"payee":"The address whose funds will be withdrawn and transferred to."}},"withdrawalAllowed(address)":{"details":"Returns whether an address is allowed to withdraw their funds. To be implemented by derived contracts.","params":{"payee":"The destination address of the funds."}}},"title":"ConditionalEscrow","version":1},"methodIdentifiers":{"deposit(address)":"0xf340fa01","depositsOf(address)":"0xe3a9db1a","owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","transferOwnership(address)":"0xf2fde38b","withdraw(address)":"0x51cff8d9","withdrawalAllowed(address)":"0x685ca194"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/payment/escrow/ConditionalEscrow.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ConditionalEscrowMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"withdrawalAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ConditionalEscrowMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6108468061007d6000396000f3fe60806040526004361061007b5760003560e01c80638da5cb5b1161004e5780638da5cb5b1461014c578063e3a9db1a1461017d578063f2fde38b146101c2578063f340fa01146101f55761007b565b80634697f05d1461008057806351cff8d9146100bd578063685ca194146100f0578063715018a614610137575b600080fd5b34801561008c57600080fd5b506100bb600480360360408110156100a357600080fd5b506001600160a01b038135169060200135151561021b565b005b3480156100c957600080fd5b506100bb600480360360208110156100e057600080fd5b50356001600160a01b0316610246565b3480156100fc57600080fd5b506101236004803603602081101561011357600080fd5b50356001600160a01b0316610296565b604080519115158252519081900360200190f35b34801561014357600080fd5b506100bb6102b4565b34801561015857600080fd5b50610161610356565b604080516001600160a01b039092168252519081900360200190f35b34801561018957600080fd5b506101b0600480360360208110156101a057600080fd5b50356001600160a01b0316610365565b60408051918252519081900360200190f35b3480156101ce57600080fd5b506100bb600480360360208110156101e557600080fd5b50356001600160a01b0316610380565b6100bb6004803603602081101561020b57600080fd5b50356001600160a01b0316610478565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b61024f81610296565b61028a5760405162461bcd60e51b81526004018080602001828103825260338152602001806107be6033913960400191505060405180910390fd5b6102938161054b565b50565b6001600160a01b031660009081526002602052604090205460ff1690565b6102bc61060e565b6000546001600160a01b0390811691161461030c576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61038861060e565b6000546001600160a01b039081169116146103d8576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811661041d5760405162461bcd60e51b815260040180806020018281038252602681526020018061075e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61048061060e565b6000546001600160a01b039081169116146104d0576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205434906104f59082610612565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b61055361060e565b6000546001600160a01b039081169116146105a3576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906105cb9082610673565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b3390565b60008282018381101561066c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b804710156106c8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610713576040519150601f19603f3d011682016040523d82523d6000602084013e610718565b606091505b50509050806107585760405162461bcd60e51b815260040180806020018281038252603a815260200180610784603a913960400191505060405180910390fd5b50505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420616c6c6f77656420746f2077697468647261774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220452f50e9a3b4ac7fbcf5deb2a441a5efa0cd3ccd4bac6c919c7101f51b8e5a5264736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"deposit(address)":{"details":"Stores the sent amount as credit to be withdrawn.","params":{"payee":"The destination address of the funds."}},"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."},"withdraw(address)":{"details":"Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.","params":{"payee":"The address whose funds will be withdrawn and transferred to."}},"withdrawalAllowed(address)":{"details":"Returns whether an address is allowed to withdraw their funds. To be implemented by derived contracts.","params":{"payee":"The destination address of the funds."}}},"version":1},"methodIdentifiers":{"deposit(address)":"0xf340fa01","depositsOf(address)":"0xe3a9db1a","owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","setAllowed(address,bool)":"0x4697f05d","transferOwnership(address)":"0xf2fde38b","withdraw(address)":"0x51cff8d9","withdrawalAllowed(address)":"0x685ca194"},"runtimeBytecode":{"bytecode":"0x60806040526004361061007b5760003560e01c80638da5cb5b1161004e5780638da5cb5b1461014c578063e3a9db1a1461017d578063f2fde38b146101c2578063f340fa01146101f55761007b565b80634697f05d1461008057806351cff8d9146100bd578063685ca194146100f0578063715018a614610137575b600080fd5b34801561008c57600080fd5b506100bb600480360360408110156100a357600080fd5b506001600160a01b038135169060200135151561021b565b005b3480156100c957600080fd5b506100bb600480360360208110156100e057600080fd5b50356001600160a01b0316610246565b3480156100fc57600080fd5b506101236004803603602081101561011357600080fd5b50356001600160a01b0316610296565b604080519115158252519081900360200190f35b34801561014357600080fd5b506100bb6102b4565b34801561015857600080fd5b50610161610356565b604080516001600160a01b039092168252519081900360200190f35b34801561018957600080fd5b506101b0600480360360208110156101a057600080fd5b50356001600160a01b0316610365565b60408051918252519081900360200190f35b3480156101ce57600080fd5b506100bb600480360360208110156101e557600080fd5b50356001600160a01b0316610380565b6100bb6004803603602081101561020b57600080fd5b50356001600160a01b0316610478565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b61024f81610296565b61028a5760405162461bcd60e51b81526004018080602001828103825260338152602001806107be6033913960400191505060405180910390fd5b6102938161054b565b50565b6001600160a01b031660009081526002602052604090205460ff1690565b6102bc61060e565b6000546001600160a01b0390811691161461030c576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61038861060e565b6000546001600160a01b039081169116146103d8576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811661041d5760405162461bcd60e51b815260040180806020018281038252602681526020018061075e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61048061060e565b6000546001600160a01b039081169116146104d0576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205434906104f59082610612565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b61055361060e565b6000546001600160a01b039081169116146105a3576040805162461bcd60e51b815260206004820181905260248201526000805160206107f1833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906105cb9082610673565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b3390565b60008282018381101561066c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b804710156106c8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610713576040519150601f19603f3d011682016040523d82523d6000602084013e610718565b606091505b50509050806107585760405162461bcd60e51b815260040180806020018281038252603a815260200180610784603a913960400191505060405180910390fd5b50505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420616c6c6f77656420746f2077697468647261774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220452f50e9a3b4ac7fbcf5deb2a441a5efa0cd3ccd4bac6c919c7101f51b8e5a5264736f6c634300060c0033"},"sourceId":"contracts/mocks/ConditionalEscrowMock.sol","sourcemap":"147:329:23:-:0;;;;;;;;;;;;-1:-1:-1;865:17:7;885:12;:10;:12::i;:::-;907:6;:18;;-1:-1:-1;;;;;;907:18:7;-1:-1:-1;;;;;907:18:7;;;;;;;940:43;;907:18;;-1:-1:-1;907:18:7;940:43;;907:6;;940:43;831:159;147:329:23;;590:104:0;677:10;590:104;:::o;147:329:23:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Context":{"abi":[],"contractName":"Context","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/GSN/Context.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ContextMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"integerValue","type":"uint256"},{"indexed":false,"internalType":"string","name":"stringValue","type":"string"}],"name":"Data","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"Sender","type":"event"},{"inputs":[{"internalType":"uint256","name":"integerValue","type":"uint256"},{"internalType":"string","name":"stringValue","type":"string"}],"name":"msgData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"msgSender","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ContextMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506102c4806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063376bf2621461003b578063d737d0c7146100ea575b600080fd5b6100e86004803603604081101561005157600080fd5b8135919081019060408101602082013564010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506100f2945050505050565b005b6100e8610205565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea061011b61024b565b8383604051808060200184815260200180602001838103835286818151815260200191508051906020019080838360005b8381101561016457818101518382015260200161014c565b50505050905090810190601f1680156101915780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156101c45781810151838201526020016101ac565b50505050905090810190601f1680156101f15780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc61022e61028a565b604080516001600160a01b039092168252519081900360200190a1565b60606000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935050505090565b339056fea2646970667358221220b9bfd7a409f9d246c5f26369db7f8684746a4950634ebb12695113139d82d68064736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"msgData(uint256,string)":"0x376bf262","msgSender()":"0xd737d0c7"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063376bf2621461003b578063d737d0c7146100ea575b600080fd5b6100e86004803603604081101561005157600080fd5b8135919081019060408101602082013564010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506100f2945050505050565b005b6100e8610205565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea061011b61024b565b8383604051808060200184815260200180602001838103835286818151815260200191508051906020019080838360005b8381101561016457818101518382015260200161014c565b50505050905090810190601f1680156101915780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156101c45781810151838201526020016101ac565b50505050905090810190601f1680156101f15780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc61022e61028a565b604080516001600160a01b039092168252519081900360200190a1565b60606000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935050505090565b339056fea2646970667358221220b9bfd7a409f9d246c5f26369db7f8684746a4950634ebb12695113139d82d68064736f6c634300060c0033"},"sourceId":"contracts/mocks/ContextMock.sol","sourcemap":"88:360:24:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ContextMockCaller":{"abi":[{"inputs":[{"internalType":"contract ContextMock","name":"context","type":"address"},{"internalType":"uint256","name":"integerValue","type":"uint256"},{"internalType":"string","name":"stringValue","type":"string"}],"name":"callData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ContextMock","name":"context","type":"address"}],"name":"callSender","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ContextMockCaller","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610277806100206000396000f3fe608060405234801561001057600080fd5b50600436106100355760003560e01c80628604591461003a5780633207ad96146100f7575b600080fd5b6100f56004803603606081101561005057600080fd5b6001600160a01b038235169160208101359181019060608101604082013564010000000081111561008057600080fd5b82018360208201111561009257600080fd5b803590602001918460018302840111640100000000831117156100b457600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061011d945050505050565b005b6100f56004803603602081101561010d57600080fd5b50356001600160a01b03166101eb565b60408051631bb5f93160e11b815260048101848152602482019283528351604483015283516001600160a01b0387169363376bf262938793879390929160640190602085019080838360005b83811015610181578181015183820152602001610169565b50505050905090810190601f1680156101ae5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b1580156101ce57600080fd5b505af11580156101e2573d6000803e3d6000fd5b50505050505050565b806001600160a01b031663d737d0c76040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022657600080fd5b505af115801561023a573d6000803e3d6000fd5b505050505056fea26469706673582212202b477c11f48c4017db34692f2ff41e8f0b98ce740371090fd56901789521ac6a64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"callData(address,uint256,string)":"0x00860459","callSender(address)":"0x3207ad96"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100355760003560e01c80628604591461003a5780633207ad96146100f7575b600080fd5b6100f56004803603606081101561005057600080fd5b6001600160a01b038235169160208101359181019060608101604082013564010000000081111561008057600080fd5b82018360208201111561009257600080fd5b803590602001918460018302840111640100000000831117156100b457600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061011d945050505050565b005b6100f56004803603602081101561010d57600080fd5b50356001600160a01b03166101eb565b60408051631bb5f93160e11b815260048101848152602482019283528351604483015283516001600160a01b0387169363376bf262938793879390929160640190602085019080838360005b83811015610181578181015183820152602001610169565b50505050905090810190601f1680156101ae5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b1580156101ce57600080fd5b505af11580156101e2573d6000803e3d6000fd5b50505050505050565b806001600160a01b031663d737d0c76040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022657600080fd5b505af115801561023a573d6000803e3d6000fd5b505050505056fea26469706673582212202b477c11f48c4017db34692f2ff41e8f0b98ce740371090fd56901789521ac6a64736f6c634300060c0033"},"sourceId":"contracts/mocks/ContextMock.sol","sourcemap":"450:279:24:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Counters":{"abi":[],"contractName":"Counters","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220df2a04527afd2f681d2076b0cfa29c9d6ffe35186e2a9359964cb213c027614764736f6c634300060c0033"},"devdoc":{"author":"Matt Condon (@shrugs)","details":"Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number of elements in a mapping, issuing ERC721 ids, or counting request ids. Include with `using Counters for Counters.Counter;` Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath} overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never directly accessed.","kind":"dev","methods":{},"title":"Counters","version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220df2a04527afd2f681d2076b0cfa29c9d6ffe35186e2a9359964cb213c027614764736f6c634300060c0033"},"sourceId":"contracts/utils/Counters.sol","sourcemap":"662:848:106:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"CountersImpl":{"abi":[{"inputs":[],"name":"current","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decrement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"increment","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"CountersImpl","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506101cd806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80632baeceb7146100465780639fa6a6e314610050578063d09de08a1461006a575b600080fd5b61004e610072565b005b61005861007e565b60408051918252519081900360200190f35b61004e61008f565b61007c6000610099565b565b600061008a60006100aa565b905090565b61007c60006100ae565b80546100a69060016100b7565b9055565b5490565b80546001019055565b60006100f983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610100565b9392505050565b6000818484111561018f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561015457818101518382015260200161013c565b50505050905090810190601f1680156101815780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fea2646970667358221220b590b5b8335d7e112db69e037a46b8e1e8cd5b15f90ef6b00f5ce74a3ea720ee64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"current()":"0x9fa6a6e3","decrement()":"0x2baeceb7","increment()":"0xd09de08a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100415760003560e01c80632baeceb7146100465780639fa6a6e314610050578063d09de08a1461006a575b600080fd5b61004e610072565b005b61005861007e565b60408051918252519081900360200190f35b61004e61008f565b61007c6000610099565b565b600061008a60006100aa565b905090565b61007c60006100ae565b80546100a69060016100b7565b9055565b5490565b80546001019055565b60006100f983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610100565b9392505050565b6000818484111561018f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561015457818101518382015260200161013c565b50505050905090810190601f1680156101815780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fea2646970667358221220b590b5b8335d7e112db69e037a46b8e1e8cd5b15f90ef6b00f5ce74a3ea720ee64736f6c634300060c0033"},"sourceId":"contracts/mocks/CountersImpl.sol","sourcemap":"91:345:25:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Create2":{"abi":[],"contractName":"Create2","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212201dd115240f77ca99faaf15bc24fa7d2009a3c52e49099ee4ac1312602d0b79bc64736f6c634300060c0033"},"devdoc":{"details":"Helper to make usage of the `CREATE2` EVM opcode easier and safer. `CREATE2` can be used to compute in advance the address where a smart contract will be deployed, which allows for interesting new mechanisms known as 'counterfactual interactions'. See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more information.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212201dd115240f77ca99faaf15bc24fa7d2009a3c52e49099ee4ac1312602d0b79bc64736f6c634300060c0033"},"sourceId":"contracts/utils/Create2.sol","sourcemap":"426:2012:107:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Create2Impl":{"abi":[{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"bytes32","name":"codeHash","type":"bytes32"}],"name":"computeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"bytes32","name":"codeHash","type":"bytes32"},{"internalType":"address","name":"deployer","type":"address"}],"name":"computeAddressWithDeployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"bytes","name":"code","type":"bytes"}],"name":"deploy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"deployERC1820Implementer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}],"contractName":"Create2Impl","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5061051f806100206000396000f3fe6080604052600436106100435760003560e01c8063076c37b21461004f578063481286e61461008157806356299481146100cd57806366cfa0571461010c5761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b5061007f6004803603604081101561007257600080fd5b50803590602001356101cb565b005b34801561008d57600080fd5b506100b1600480360360408110156100a457600080fd5b50803590602001356101fd565b604080516001600160a01b039092168252519081900360200190f35b3480156100d957600080fd5b506100b1600480360360608110156100f057600080fd5b50803590602081013590604001356001600160a01b0316610210565b34801561011857600080fd5b5061007f6004803603606081101561012f57600080fd5b81359160208101359181019060608101604082013564010000000081111561015657600080fd5b82018360208201111561016857600080fd5b8035906020019184600183028401116401000000008311171561018a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610225945050505050565b6101f88282604051806020016101e0906103ab565b601f1982820381018352601f90910116604052610236565b505050565b60006102098383610347565b9392505050565b600061021d848484610350565b949350505050565b610230838383610236565b50505050565b6000808447101561028e576040805162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b82516102e1576040805162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015290519081900360640190fd5b8383516020850187f590506001600160a01b03811661021d576040805162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015290519081900360640190fd5b60006102098383305b604080516001600160f81b031960208083019190915260609390931b6bffffffffffffffffffffffff191660218201526035810194909452605580850193909352805180850390930183526075909301909252805191012090565b610131806103b98339019056fe608060405234801561001057600080fd5b50610111806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b605660048036036040811015604157600080fd5b50803590602001356001600160a01b03166068565b60408051918252519081900360200190f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16609557600060d4565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b939250505056fea264697066735822122015fe6f9037ca52b8c1bc2ce5ae62724367ce1540374713e4face6cb839fe448e64736f6c634300060c0033a26469706673582212209f0d3ad8582398283c1c8960451e24f26eadf4da348faf9c9b4afbb891d5d5ef64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"computeAddress(bytes32,bytes32)":"0x481286e6","computeAddressWithDeployer(bytes32,bytes32,address)":"0x56299481","deploy(uint256,bytes32,bytes)":"0x66cfa057","deployERC1820Implementer(uint256,bytes32)":"0x076c37b2"},"runtimeBytecode":{"bytecode":"0x6080604052600436106100435760003560e01c8063076c37b21461004f578063481286e61461008157806356299481146100cd57806366cfa0571461010c5761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b5061007f6004803603604081101561007257600080fd5b50803590602001356101cb565b005b34801561008d57600080fd5b506100b1600480360360408110156100a457600080fd5b50803590602001356101fd565b604080516001600160a01b039092168252519081900360200190f35b3480156100d957600080fd5b506100b1600480360360608110156100f057600080fd5b50803590602081013590604001356001600160a01b0316610210565b34801561011857600080fd5b5061007f6004803603606081101561012f57600080fd5b81359160208101359181019060608101604082013564010000000081111561015657600080fd5b82018360208201111561016857600080fd5b8035906020019184600183028401116401000000008311171561018a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610225945050505050565b6101f88282604051806020016101e0906103ab565b601f1982820381018352601f90910116604052610236565b505050565b60006102098383610347565b9392505050565b600061021d848484610350565b949350505050565b610230838383610236565b50505050565b6000808447101561028e576040805162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b82516102e1576040805162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015290519081900360640190fd5b8383516020850187f590506001600160a01b03811661021d576040805162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015290519081900360640190fd5b60006102098383305b604080516001600160f81b031960208083019190915260609390931b6bffffffffffffffffffffffff191660218201526035810194909452605580850193909352805180850390930183526075909301909252805191012090565b610131806103b98339019056fe608060405234801561001057600080fd5b50610111806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b605660048036036040811015604157600080fd5b50803590602001356001600160a01b03166068565b60408051918252519081900360200190f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16609557600060d4565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b939250505056fea264697066735822122015fe6f9037ca52b8c1bc2ce5ae62724367ce1540374713e4face6cb839fe448e64736f6c634300060c0033a26469706673582212209f0d3ad8582398283c1c8960451e24f26eadf4da348faf9c9b4afbb891d5d5ef64736f6c634300060c0033"},"sourceId":"contracts/mocks/Create2Impl.sol","sourcemap":"140:736:26:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ECDSA":{"abi":[],"contractName":"ECDSA","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122078a4c5a4b6271d2ddd7806f82cb005f2b9f1e769fd21bb3f1a350c1f97db25e364736f6c634300060c0033"},"devdoc":{"details":"Elliptic Curve Digital Signature Algorithm (ECDSA) operations. These functions can be used to verify that a message was signed by the holder of the private keys of a given address.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122078a4c5a4b6271d2ddd7806f82cb005f2b9f1e769fd21bb3f1a350c1f97db25e364736f6c634300060c0033"},"sourceId":"contracts/cryptography/ECDSA.sol","sourcemap":"264:3399:8:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ECDSAMock":{"abi":[{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recover","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"}],"name":"toEthSignedMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"}],"contractName":"ECDSAMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5061040d806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806319045a251461003b578063918a15cf14610104575b600080fd5b6100e86004803603604081101561005157600080fd5b8135919081019060408101602082013564010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610133945050505050565b604080516001600160a01b039092168252519081900360200190f35b6101216004803603602081101561011a57600080fd5b5035610146565b60408051918252519081900360200190f35b600061013f8383610157565b9392505050565b600061015182610342565b92915050565b600081516041146101af576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156102205760405162461bcd60e51b81526004018080602001828103825260228152602001806103946022913960400191505060405180910390fd5b8060ff16601b1415801561023857508060ff16601c14155b156102745760405162461bcd60e51b81526004018080602001828103825260228152602001806103b66022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156102d0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610338576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c90910190915281519101209056fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c7565a264697066735822122079cf4dff41b76c7416683a75115ff150eab43ee80467c8c503b1b54d53f72e8d64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"recover(bytes32,bytes)":"0x19045a25","toEthSignedMessageHash(bytes32)":"0x918a15cf"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100365760003560e01c806319045a251461003b578063918a15cf14610104575b600080fd5b6100e86004803603604081101561005157600080fd5b8135919081019060408101602082013564010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610133945050505050565b604080516001600160a01b039092168252519081900360200190f35b6101216004803603602081101561011a57600080fd5b5035610146565b60408051918252519081900360200190f35b600061013f8383610157565b9392505050565b600061015182610342565b92915050565b600081516041146101af576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156102205760405162461bcd60e51b81526004018080602001828103825260228152602001806103946022913960400191505060405180910390fd5b8060ff16601b1415801561023857508060ff16601c14155b156102745760405162461bcd60e51b81526004018080602001828103825260228152602001806103b66022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156102d0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610338576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c90910190915281519101209056fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c7565a264697066735822122079cf4dff41b76c7416683a75115ff150eab43ee80467c8c503b1b54d53f72e8d64736f6c634300060c0033"},"sourceId":"contracts/mocks/ECDSAMock.sol","sourcemap":"95:324:27:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155":{"abi":[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200192738038062001927833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052506200010191506301ffc9a760e01b905062000137565b6200010c81620001bc565b6200011e636cdb3d1360e11b62000137565b620001306303a24d0760e21b62000137565b5062000271565b6001600160e01b0319808216141562000197576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001d1906003906020840190620001d5565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200021857805160ff191683800117855562000248565b8280016001018555821562000248579182015b82811115620002485782518255916020019190600101906200022b565b50620002569291506200025a565b5090565b5b808211156200025657600081556001016200025b565b6116a680620002816000396000f3fe608060405234801561001057600080fd5b50600436106100875760003560e01c80634e1273f41161005b5780634e1273f41461035a578063a22cb465146104cd578063e985e9c5146104fb578063f242432a1461052957610087565b8062fdd58e1461008c57806301ffc9a7146100ca5780630e89341c146101055780632eb2c2d614610197575b600080fd5b6100b8600480360360408110156100a257600080fd5b506001600160a01b0381351690602001356105f2565b60408051918252519081900360200190f35b6100f1600480360360208110156100e057600080fd5b50356001600160e01b031916610661565b604080519115158252519081900360200190f35b6101226004803603602081101561011b57600080fd5b5035610680565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015c578181015183820152602001610144565b50505050905090810190601f1680156101895780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610358600480360360a08110156101ad57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156101e057600080fd5b8201836020820111156101f257600080fd5b803590602001918460208302840111600160201b8311171561021357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561026257600080fd5b82018360208201111561027457600080fd5b803590602001918460208302840111600160201b8311171561029557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156102e457600080fd5b8201836020820111156102f657600080fd5b803590602001918460018302840111600160201b8311171561031757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610718945050505050565b005b61047d6004803603604081101561037057600080fd5b810190602081018135600160201b81111561038a57600080fd5b82018360208201111561039c57600080fd5b803590602001918460208302840111600160201b831117156103bd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561040c57600080fd5b82018360208201111561041e57600080fd5b803590602001918460208302840111600160201b8311171561043f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a16945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104b95781810151838201526020016104a1565b505050509050019250505060405180910390f35b610358600480360360408110156104e357600080fd5b506001600160a01b0381351690602001351515610b94565b6100f16004803603604081101561051157600080fd5b506001600160a01b0381358116916020013516610c83565b610358600480360360a081101561053f57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561057e57600080fd5b82018360208201111561059057600080fd5b803590602001918460018302840111600160201b831117156105b157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610cb1945050505050565b60006001600160a01b0383166106395760405162461bcd60e51b815260040180806020018281038252602b8152602001806114f1602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561070c5780601f106106e15761010080835404028352916020019161070c565b820191906000526020600020905b8154815290600101906020018083116106ef57829003601f168201915b50505050509050919050565b81518351146107585760405162461bcd60e51b81526004018080602001828103825260288152602001806116496028913960400191505060405180910390fd5b6001600160a01b03841661079d5760405162461bcd60e51b81526004018080602001828103825260258152602001806115766025913960400191505060405180910390fd5b6107a5610e7c565b6001600160a01b0316856001600160a01b031614806107d057506107d0856107cb610e7c565b610c83565b61080b5760405162461bcd60e51b815260040180806020018281038252603281526020018061159b6032913960400191505060405180910390fd5b6000610815610e7c565b9050610825818787878787610a0e565b60005b845181101561092657600085828151811061083f57fe5b60200260200101519050600085838151811061085757fe5b602002602001015190506108c4816040518060600160405280602a81526020016115cd602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054610e819092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a16815220546108fb9082610f18565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610828565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156109ac578181015183820152602001610994565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156109eb5781810151838201526020016109d3565b5050505090500194505050505060405180910390a4610a0e818787878787610f79565b505050505050565b60608151835114610a585760405162461bcd60e51b81526004018080602001828103825260298152602001806116206029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610a7257600080fd5b50604051908082528060200260200182016040528015610a9c578160200160208202803683370190505b50905060005b8451811015610b8c5760006001600160a01b0316858281518110610ac257fe5b60200260200101516001600160a01b03161415610b105760405162461bcd60e51b815260040180806020018281038252603181526020018061151c6031913960400191505060405180910390fd5b60016000858381518110610b2057fe5b602002602001015181526020019081526020016000206000868381518110610b4457fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054828281518110610b7957fe5b6020908102919091010152600101610aa2565b509392505050565b816001600160a01b0316610ba6610e7c565b6001600160a01b03161415610bec5760405162461bcd60e51b81526004018080602001828103825260298152602001806115f76029913960400191505060405180910390fd5b8060026000610bf9610e7c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c3d610e7c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610cf65760405162461bcd60e51b81526004018080602001828103825260258152602001806115766025913960400191505060405180910390fd5b610cfe610e7c565b6001600160a01b0316856001600160a01b03161480610d245750610d24856107cb610e7c565b610d5f5760405162461bcd60e51b815260040180806020018281038252602981526020018061154d6029913960400191505060405180910390fd5b6000610d69610e7c565b9050610d89818787610d7a886111f8565b610d83886111f8565b87610a0e565b610dd0836040518060600160405280602a81526020016115cd602a913960008781526001602090815260408083206001600160a01b038d1684529091529020549190610e81565b60008581526001602090815260408083206001600160a01b038b81168552925280832093909355871681522054610e079084610f18565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610a0e81878787878761123c565b335b90565b60008184841115610f105760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ed5578181015183820152602001610ebd565b50505050905090810190601f168015610f025780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610f72576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b610f8b846001600160a01b03166113ad565b15610a0e57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611019578181015183820152602001611001565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611058578181015183820152602001611040565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561109457818101518382015260200161107c565b50505050905090810190601f1680156110c15780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156110e657600080fd5b505af192505050801561110b57506040513d602081101561110657600080fd5b505160015b6111a0576111176113ef565b806111225750611169565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315610ed5578181015183820152602001610ebd565b60405162461bcd60e51b81526004018080602001828103825260348152602001806114956034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146111ef5760405162461bcd60e51b81526004018080602001828103825260288152602001806114c96028913960400191505060405180910390fd5b50505050505050565b60408051600180825281830190925260609182919060208083019080368337019050509050828160008151811061122b57fe5b602090810291909101015292915050565b61124e846001600160a01b03166113ad565b15610a0e57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156112dd5781810151838201526020016112c5565b50505050905090810190601f16801561130a5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561132d57600080fd5b505af192505050801561135257506040513d602081101561134d57600080fd5b505160015b61135e576111176113ef565b6001600160e01b0319811663f23a6e6160e01b146111ef5760405162461bcd60e51b81526004018080602001828103825260288152602001806114c96028913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906113e157508115155b949350505050565b60e01c90565b600060443d10156113ff57610e7e565b600481823e6308c379a061141382516113e9565b1461141d57610e7e565b6040513d600319016004823e80513d67ffffffffffffffff816024840111818411171561144d5750505050610e7e565b828401925082519150808211156114675750505050610e7e565b503d8301602082840101111561147f57505050610e7e565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368a2646970667358221220c091c4a0c037014ace3f38ef3d6814f9f79c2b6f1555f46d519ef0400568570964736f6c634300060c0033"},"devdoc":{"details":"Implementation of the basic standard multi-token. See https://eips.ethereum.org/EIPS/eip-1155 Originally based on code by Enjin: https://github.com/enjin/erc-1155 _Available since v3.1._","kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"constructor":{"details":"See {_setURI}."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","isApprovedForAll(address,address)":"0xe985e9c5","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100875760003560e01c80634e1273f41161005b5780634e1273f41461035a578063a22cb465146104cd578063e985e9c5146104fb578063f242432a1461052957610087565b8062fdd58e1461008c57806301ffc9a7146100ca5780630e89341c146101055780632eb2c2d614610197575b600080fd5b6100b8600480360360408110156100a257600080fd5b506001600160a01b0381351690602001356105f2565b60408051918252519081900360200190f35b6100f1600480360360208110156100e057600080fd5b50356001600160e01b031916610661565b604080519115158252519081900360200190f35b6101226004803603602081101561011b57600080fd5b5035610680565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015c578181015183820152602001610144565b50505050905090810190601f1680156101895780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610358600480360360a08110156101ad57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156101e057600080fd5b8201836020820111156101f257600080fd5b803590602001918460208302840111600160201b8311171561021357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561026257600080fd5b82018360208201111561027457600080fd5b803590602001918460208302840111600160201b8311171561029557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156102e457600080fd5b8201836020820111156102f657600080fd5b803590602001918460018302840111600160201b8311171561031757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610718945050505050565b005b61047d6004803603604081101561037057600080fd5b810190602081018135600160201b81111561038a57600080fd5b82018360208201111561039c57600080fd5b803590602001918460208302840111600160201b831117156103bd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561040c57600080fd5b82018360208201111561041e57600080fd5b803590602001918460208302840111600160201b8311171561043f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a16945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104b95781810151838201526020016104a1565b505050509050019250505060405180910390f35b610358600480360360408110156104e357600080fd5b506001600160a01b0381351690602001351515610b94565b6100f16004803603604081101561051157600080fd5b506001600160a01b0381358116916020013516610c83565b610358600480360360a081101561053f57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561057e57600080fd5b82018360208201111561059057600080fd5b803590602001918460018302840111600160201b831117156105b157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610cb1945050505050565b60006001600160a01b0383166106395760405162461bcd60e51b815260040180806020018281038252602b8152602001806114f1602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561070c5780601f106106e15761010080835404028352916020019161070c565b820191906000526020600020905b8154815290600101906020018083116106ef57829003601f168201915b50505050509050919050565b81518351146107585760405162461bcd60e51b81526004018080602001828103825260288152602001806116496028913960400191505060405180910390fd5b6001600160a01b03841661079d5760405162461bcd60e51b81526004018080602001828103825260258152602001806115766025913960400191505060405180910390fd5b6107a5610e7c565b6001600160a01b0316856001600160a01b031614806107d057506107d0856107cb610e7c565b610c83565b61080b5760405162461bcd60e51b815260040180806020018281038252603281526020018061159b6032913960400191505060405180910390fd5b6000610815610e7c565b9050610825818787878787610a0e565b60005b845181101561092657600085828151811061083f57fe5b60200260200101519050600085838151811061085757fe5b602002602001015190506108c4816040518060600160405280602a81526020016115cd602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054610e819092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a16815220546108fb9082610f18565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610828565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156109ac578181015183820152602001610994565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156109eb5781810151838201526020016109d3565b5050505090500194505050505060405180910390a4610a0e818787878787610f79565b505050505050565b60608151835114610a585760405162461bcd60e51b81526004018080602001828103825260298152602001806116206029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610a7257600080fd5b50604051908082528060200260200182016040528015610a9c578160200160208202803683370190505b50905060005b8451811015610b8c5760006001600160a01b0316858281518110610ac257fe5b60200260200101516001600160a01b03161415610b105760405162461bcd60e51b815260040180806020018281038252603181526020018061151c6031913960400191505060405180910390fd5b60016000858381518110610b2057fe5b602002602001015181526020019081526020016000206000868381518110610b4457fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054828281518110610b7957fe5b6020908102919091010152600101610aa2565b509392505050565b816001600160a01b0316610ba6610e7c565b6001600160a01b03161415610bec5760405162461bcd60e51b81526004018080602001828103825260298152602001806115f76029913960400191505060405180910390fd5b8060026000610bf9610e7c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c3d610e7c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610cf65760405162461bcd60e51b81526004018080602001828103825260258152602001806115766025913960400191505060405180910390fd5b610cfe610e7c565b6001600160a01b0316856001600160a01b03161480610d245750610d24856107cb610e7c565b610d5f5760405162461bcd60e51b815260040180806020018281038252602981526020018061154d6029913960400191505060405180910390fd5b6000610d69610e7c565b9050610d89818787610d7a886111f8565b610d83886111f8565b87610a0e565b610dd0836040518060600160405280602a81526020016115cd602a913960008781526001602090815260408083206001600160a01b038d1684529091529020549190610e81565b60008581526001602090815260408083206001600160a01b038b81168552925280832093909355871681522054610e079084610f18565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610a0e81878787878761123c565b335b90565b60008184841115610f105760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ed5578181015183820152602001610ebd565b50505050905090810190601f168015610f025780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610f72576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b610f8b846001600160a01b03166113ad565b15610a0e57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611019578181015183820152602001611001565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611058578181015183820152602001611040565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561109457818101518382015260200161107c565b50505050905090810190601f1680156110c15780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156110e657600080fd5b505af192505050801561110b57506040513d602081101561110657600080fd5b505160015b6111a0576111176113ef565b806111225750611169565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315610ed5578181015183820152602001610ebd565b60405162461bcd60e51b81526004018080602001828103825260348152602001806114956034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146111ef5760405162461bcd60e51b81526004018080602001828103825260288152602001806114c96028913960400191505060405180910390fd5b50505050505050565b60408051600180825281830190925260609182919060208083019080368337019050509050828160008151811061122b57fe5b602090810291909101015292915050565b61124e846001600160a01b03166113ad565b15610a0e57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156112dd5781810151838201526020016112c5565b50505050905090810190601f16801561130a5780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561132d57600080fd5b505af192505050801561135257506040513d602081101561134d57600080fd5b505160015b61135e576111176113ef565b6001600160e01b0319811663f23a6e6160e01b146111ef5760405162461bcd60e51b81526004018080602001828103825260288152602001806114c96028913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906113e157508115155b949350505050565b60e01c90565b600060443d10156113ff57610e7e565b600481823e6308c379a061141382516113e9565b1461141d57610e7e565b6040513d600319016004823e80513d67ffffffffffffffff816024840111818411171561144d5750505050610e7e565b828401925082519150808211156114675750505050610e7e565b503d8301602082840101111561147f57505050610e7e565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368a2646970667358221220c091c4a0c037014ace3f38ef3d6814f9f79c2b6f1555f46d519ef0400568570964736f6c634300060c0033"},"sourceId":"contracts/token/ERC1155/ERC1155.sol","sourcemap":"512:13738:76:-:0;;;1964:352;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1964:352:76;;;;;;;;;;-1:-1:-1;1964:352:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1964:352:76;;-1:-1:-1;751:40:10;;-1:-1:-1;;;;770:20:10;-1:-1:-1;751:18:10;:40::i;:::-;2013:12:76;2021:3;2013:7;:12::i;:::-;2114:41;-1:-1:-1;;;2114:18:76;:41::i;:::-;2255:54;-1:-1:-1;;;2255:18:76;:54::i;:::-;1964:352;512:13738;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;7585:86:76:-;7651:13;;;;:4;;:13;;;;;:::i;:::-;;7585:86;:::o;512:13738::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;512:13738:76;;;-1:-1:-1;512:13738:76;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155Burnable":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155Burnable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Extension of {ERC1155} that allows token holders to destroy both their own tokens and those that they have been approved to use. _Available since v3.1._","kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","burn(address,uint256,uint256)":"0xf5298aca","burnBatch(address,uint256[],uint256[])":"0x6b20c454","isApprovedForAll(address,address)":"0xe985e9c5","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC1155/ERC1155Burnable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155BurnableMock":{"abi":[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155BurnableMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200217f3803806200217f833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052508291506200010290506301ffc9a760e01b62000139565b6200010d81620001be565b6200011f636cdb3d1360e11b62000139565b620001316303a24d0760e21b62000139565b505062000273565b6001600160e01b0319808216141562000199576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001d3906003906020840190620001d7565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200021a57805160ff19168380011785556200024a565b828001600101855582156200024a579182015b828111156200024a5782518255916020019190600101906200022d565b50620002589291506200025c565b5090565b5b808211156200025857600081556001016200025d565b611efc80620002836000396000f3fe608060405234801561001057600080fd5b50600436106100a85760003560e01c80636b20c454116100715780636b20c454146104ee578063731133e914610621578063a22cb465146106e1578063e985e9c51461070f578063f242432a1461073d578063f5298aca14610806576100a8565b8062fdd58e146100ad57806301ffc9a7146100eb5780630e89341c146101265780632eb2c2d6146101b85780634e1273f41461037b575b600080fd5b6100d9600480360360408110156100c357600080fd5b506001600160a01b038135169060200135610838565b60408051918252519081900360200190f35b6101126004803603602081101561010157600080fd5b50356001600160e01b0319166108a7565b604080519115158252519081900360200190f35b6101436004803603602081101561013c57600080fd5b50356108c6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017d578181015183820152602001610165565b50505050905090810190601f1680156101aa5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610379600480360360a08110156101ce57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561020157600080fd5b82018360208201111561021357600080fd5b803590602001918460208302840111600160201b8311171561023457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561028357600080fd5b82018360208201111561029557600080fd5b803590602001918460208302840111600160201b831117156102b657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561030557600080fd5b82018360208201111561031757600080fd5b803590602001918460018302840111600160201b8311171561033857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061095e945050505050565b005b61049e6004803603604081101561039157600080fd5b810190602081018135600160201b8111156103ab57600080fd5b8201836020820111156103bd57600080fd5b803590602001918460208302840111600160201b831117156103de57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561042d57600080fd5b82018360208201111561043f57600080fd5b803590602001918460208302840111600160201b8311171561046057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c5c945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104da5781810151838201526020016104c2565b505050509050019250505060405180910390f35b6103796004803603606081101561050457600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561052e57600080fd5b82018360208201111561054057600080fd5b803590602001918460208302840111600160201b8311171561056157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105b057600080fd5b8201836020820111156105c257600080fd5b803590602001918460208302840111600160201b831117156105e357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610dda945050505050565b6103796004803603608081101561063757600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561066d57600080fd5b82018360208201111561067f57600080fd5b803590602001918460018302840111600160201b831117156106a057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610e53945050505050565b610379600480360360408110156106f757600080fd5b506001600160a01b0381351690602001351515610e65565b6101126004803603604081101561072557600080fd5b506001600160a01b0381358116916020013516610f54565b610379600480360360a081101561075357600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561079257600080fd5b8201836020820111156107a457600080fd5b803590602001918460018302840111600160201b831117156107c557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f82945050505050565b6103796004803603606081101561081c57600080fd5b506001600160a01b03813516906020810135906040013561114d565b60006001600160a01b03831661087f5760405162461bcd60e51b815260040180806020018281038252602b815260200180611cdf602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109525780601f1061092757610100808354040283529160200191610952565b820191906000526020600020905b81548152906001019060200180831161093557829003601f168201915b50505050509050919050565b815183511461099e5760405162461bcd60e51b8152600401808060200182810382526028815260200180611e7e6028913960400191505060405180910390fd5b6001600160a01b0384166109e35760405162461bcd60e51b8152600401808060200182810382526025815260200180611d886025913960400191505060405180910390fd5b6109eb6111c1565b6001600160a01b0316856001600160a01b03161480610a165750610a1685610a116111c1565b610f54565b610a515760405162461bcd60e51b8152600401808060200182810382526032815260200180611dad6032913960400191505060405180910390fd5b6000610a5b6111c1565b9050610a6b818787878787610c54565b60005b8451811015610b6c576000858281518110610a8557fe5b602002602001015190506000858381518110610a9d57fe5b60200260200101519050610b0a816040518060600160405280602a8152602001611e02602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546111c69092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610b41908261125d565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610a6e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610bf2578181015183820152602001610bda565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610c31578181015183820152602001610c19565b5050505090500194505050505060405180910390a4610c548187878787876112be565b505050505050565b60608151835114610c9e5760405162461bcd60e51b8152600401808060200182810382526029815260200180611e556029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610cb857600080fd5b50604051908082528060200260200182016040528015610ce2578160200160208202803683370190505b50905060005b8451811015610dd25760006001600160a01b0316858281518110610d0857fe5b60200260200101516001600160a01b03161415610d565760405162461bcd60e51b8152600401808060200182810382526031815260200180611d0a6031913960400191505060405180910390fd5b60016000858381518110610d6657fe5b602002602001015181526020019081526020016000206000868381518110610d8a57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054828281518110610dbf57fe5b6020908102919091010152600101610ce8565b509392505050565b610de26111c1565b6001600160a01b0316836001600160a01b03161480610e085750610e0883610a116111c1565b610e435760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b610e4e83838361153d565b505050565b610e5f848484846117ab565b50505050565b816001600160a01b0316610e776111c1565b6001600160a01b03161415610ebd5760405162461bcd60e51b8152600401808060200182810382526029815260200180611e2c6029913960400191505060405180910390fd5b8060026000610eca6111c1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f0e6111c1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610fc75760405162461bcd60e51b8152600401808060200182810382526025815260200180611d886025913960400191505060405180910390fd5b610fcf6111c1565b6001600160a01b0316856001600160a01b03161480610ff55750610ff585610a116111c1565b6110305760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b600061103a6111c1565b905061105a81878761104b886118b3565b611054886118b3565b87610c54565b6110a1836040518060600160405280602a8152602001611e02602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906111c6565b60008581526001602090815260408083206001600160a01b038b811685529252808320939093558716815220546110d8908461125d565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610c548187878787876118f7565b6111556111c1565b6001600160a01b0316836001600160a01b0316148061117b575061117b83610a116111c1565b6111b65760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b610e4e838383611a68565b335b90565b600081848411156112555760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561121a578181015183820152602001611202565b50505050905090810190601f1680156112475780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156112b7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6112d0846001600160a01b0316611b9b565b15610c5457836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561135e578181015183820152602001611346565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561139d578181015183820152602001611385565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156113d95781810151838201526020016113c1565b50505050905090810190601f1680156114065780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561142b57600080fd5b505af192505050801561145057506040513d602081101561144b57600080fd5b505160015b6114e55761145c611bdd565b8061146757506114ae565b60405162461bcd60e51b815260206004820181815283516024840152835184939192839260440191908501908083836000831561121a578181015183820152602001611202565b60405162461bcd60e51b8152600401808060200182810382526034815260200180611c836034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146115345760405162461bcd60e51b8152600401808060200182810382526028815260200180611cb76028913960400191505060405180910390fd5b50505050505050565b6001600160a01b0383166115825760405162461bcd60e51b8152600401808060200182810382526023815260200180611ddf6023913960400191505060405180910390fd5b80518251146115c25760405162461bcd60e51b8152600401808060200182810382526028815260200180611e7e6028913960400191505060405180910390fd5b60006115cc6111c1565b90506115ec81856000868660405180602001604052806000815250610c54565b60005b83518110156116ca5761168183828151811061160757fe5b6020026020010151604051806060016040528060248152602001611d3b602491396001600088868151811061163857fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546111c69092919063ffffffff16565b6001600086848151811061169157fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a1682529092529020556001016115ef565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611751578181015183820152602001611739565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611790578181015183820152602001611778565b5050505090500194505050505060405180910390a450505050565b6001600160a01b0384166117f05760405162461bcd60e51b8152600401808060200182810382526021815260200180611ea66021913960400191505060405180910390fd5b60006117fa6111c1565b905061180c8160008761104b886118b3565b60008481526001602090815260408083206001600160a01b0389168452909152902054611839908461125d565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46118ac816000878787876118f7565b5050505050565b6040805160018082528183019092526060918291906020808301908036833701905050905082816000815181106118e657fe5b602090810291909101015292915050565b611909846001600160a01b0316611b9b565b15610c5457836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611998578181015183820152602001611980565b50505050905090810190601f1680156119c55780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156119e857600080fd5b505af1925050508015611a0d57506040513d6020811015611a0857600080fd5b505160015b611a195761145c611bdd565b6001600160e01b0319811663f23a6e6160e01b146115345760405162461bcd60e51b8152600401808060200182810382526028815260200180611cb76028913960400191505060405180910390fd5b6001600160a01b038316611aad5760405162461bcd60e51b8152600401808060200182810382526023815260200180611ddf6023913960400191505060405180910390fd5b6000611ab76111c1565b9050611ae781856000611ac9876118b3565b611ad2876118b3565b60405180602001604052806000815250610c54565b611b2e82604051806060016040528060248152602001611d3b6024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906111c6565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611bcf57508115155b949350505050565b60e01c90565b600060443d1015611bed576111c3565b600481823e6308c379a0611c018251611bd7565b14611c0b576111c3565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715611c3b57505050506111c3565b82840192508251915080821115611c5557505050506111c3565b503d83016020828401011115611c6d575050506111c3565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a26469706673582212200d8ad60eaba554878afc88fbfe9304c7b1dbd5529c6e69be8ef1901c1ba489d164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","burn(address,uint256,uint256)":"0xf5298aca","burnBatch(address,uint256[],uint256[])":"0x6b20c454","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256,uint256,bytes)":"0x731133e9","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100a85760003560e01c80636b20c454116100715780636b20c454146104ee578063731133e914610621578063a22cb465146106e1578063e985e9c51461070f578063f242432a1461073d578063f5298aca14610806576100a8565b8062fdd58e146100ad57806301ffc9a7146100eb5780630e89341c146101265780632eb2c2d6146101b85780634e1273f41461037b575b600080fd5b6100d9600480360360408110156100c357600080fd5b506001600160a01b038135169060200135610838565b60408051918252519081900360200190f35b6101126004803603602081101561010157600080fd5b50356001600160e01b0319166108a7565b604080519115158252519081900360200190f35b6101436004803603602081101561013c57600080fd5b50356108c6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017d578181015183820152602001610165565b50505050905090810190601f1680156101aa5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610379600480360360a08110156101ce57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561020157600080fd5b82018360208201111561021357600080fd5b803590602001918460208302840111600160201b8311171561023457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561028357600080fd5b82018360208201111561029557600080fd5b803590602001918460208302840111600160201b831117156102b657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561030557600080fd5b82018360208201111561031757600080fd5b803590602001918460018302840111600160201b8311171561033857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061095e945050505050565b005b61049e6004803603604081101561039157600080fd5b810190602081018135600160201b8111156103ab57600080fd5b8201836020820111156103bd57600080fd5b803590602001918460208302840111600160201b831117156103de57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561042d57600080fd5b82018360208201111561043f57600080fd5b803590602001918460208302840111600160201b8311171561046057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c5c945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156104da5781810151838201526020016104c2565b505050509050019250505060405180910390f35b6103796004803603606081101561050457600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561052e57600080fd5b82018360208201111561054057600080fd5b803590602001918460208302840111600160201b8311171561056157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105b057600080fd5b8201836020820111156105c257600080fd5b803590602001918460208302840111600160201b831117156105e357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610dda945050505050565b6103796004803603608081101561063757600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561066d57600080fd5b82018360208201111561067f57600080fd5b803590602001918460018302840111600160201b831117156106a057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610e53945050505050565b610379600480360360408110156106f757600080fd5b506001600160a01b0381351690602001351515610e65565b6101126004803603604081101561072557600080fd5b506001600160a01b0381358116916020013516610f54565b610379600480360360a081101561075357600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561079257600080fd5b8201836020820111156107a457600080fd5b803590602001918460018302840111600160201b831117156107c557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f82945050505050565b6103796004803603606081101561081c57600080fd5b506001600160a01b03813516906020810135906040013561114d565b60006001600160a01b03831661087f5760405162461bcd60e51b815260040180806020018281038252602b815260200180611cdf602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109525780601f1061092757610100808354040283529160200191610952565b820191906000526020600020905b81548152906001019060200180831161093557829003601f168201915b50505050509050919050565b815183511461099e5760405162461bcd60e51b8152600401808060200182810382526028815260200180611e7e6028913960400191505060405180910390fd5b6001600160a01b0384166109e35760405162461bcd60e51b8152600401808060200182810382526025815260200180611d886025913960400191505060405180910390fd5b6109eb6111c1565b6001600160a01b0316856001600160a01b03161480610a165750610a1685610a116111c1565b610f54565b610a515760405162461bcd60e51b8152600401808060200182810382526032815260200180611dad6032913960400191505060405180910390fd5b6000610a5b6111c1565b9050610a6b818787878787610c54565b60005b8451811015610b6c576000858281518110610a8557fe5b602002602001015190506000858381518110610a9d57fe5b60200260200101519050610b0a816040518060600160405280602a8152602001611e02602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546111c69092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610b41908261125d565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610a6e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610bf2578181015183820152602001610bda565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610c31578181015183820152602001610c19565b5050505090500194505050505060405180910390a4610c548187878787876112be565b505050505050565b60608151835114610c9e5760405162461bcd60e51b8152600401808060200182810382526029815260200180611e556029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610cb857600080fd5b50604051908082528060200260200182016040528015610ce2578160200160208202803683370190505b50905060005b8451811015610dd25760006001600160a01b0316858281518110610d0857fe5b60200260200101516001600160a01b03161415610d565760405162461bcd60e51b8152600401808060200182810382526031815260200180611d0a6031913960400191505060405180910390fd5b60016000858381518110610d6657fe5b602002602001015181526020019081526020016000206000868381518110610d8a57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054828281518110610dbf57fe5b6020908102919091010152600101610ce8565b509392505050565b610de26111c1565b6001600160a01b0316836001600160a01b03161480610e085750610e0883610a116111c1565b610e435760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b610e4e83838361153d565b505050565b610e5f848484846117ab565b50505050565b816001600160a01b0316610e776111c1565b6001600160a01b03161415610ebd5760405162461bcd60e51b8152600401808060200182810382526029815260200180611e2c6029913960400191505060405180910390fd5b8060026000610eca6111c1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f0e6111c1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610fc75760405162461bcd60e51b8152600401808060200182810382526025815260200180611d886025913960400191505060405180910390fd5b610fcf6111c1565b6001600160a01b0316856001600160a01b03161480610ff55750610ff585610a116111c1565b6110305760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b600061103a6111c1565b905061105a81878761104b886118b3565b611054886118b3565b87610c54565b6110a1836040518060600160405280602a8152602001611e02602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906111c6565b60008581526001602090815260408083206001600160a01b038b811685529252808320939093558716815220546110d8908461125d565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610c548187878787876118f7565b6111556111c1565b6001600160a01b0316836001600160a01b0316148061117b575061117b83610a116111c1565b6111b65760405162461bcd60e51b8152600401808060200182810382526029815260200180611d5f6029913960400191505060405180910390fd5b610e4e838383611a68565b335b90565b600081848411156112555760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561121a578181015183820152602001611202565b50505050905090810190601f1680156112475780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156112b7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6112d0846001600160a01b0316611b9b565b15610c5457836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561135e578181015183820152602001611346565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561139d578181015183820152602001611385565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156113d95781810151838201526020016113c1565b50505050905090810190601f1680156114065780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561142b57600080fd5b505af192505050801561145057506040513d602081101561144b57600080fd5b505160015b6114e55761145c611bdd565b8061146757506114ae565b60405162461bcd60e51b815260206004820181815283516024840152835184939192839260440191908501908083836000831561121a578181015183820152602001611202565b60405162461bcd60e51b8152600401808060200182810382526034815260200180611c836034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146115345760405162461bcd60e51b8152600401808060200182810382526028815260200180611cb76028913960400191505060405180910390fd5b50505050505050565b6001600160a01b0383166115825760405162461bcd60e51b8152600401808060200182810382526023815260200180611ddf6023913960400191505060405180910390fd5b80518251146115c25760405162461bcd60e51b8152600401808060200182810382526028815260200180611e7e6028913960400191505060405180910390fd5b60006115cc6111c1565b90506115ec81856000868660405180602001604052806000815250610c54565b60005b83518110156116ca5761168183828151811061160757fe5b6020026020010151604051806060016040528060248152602001611d3b602491396001600088868151811061163857fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546111c69092919063ffffffff16565b6001600086848151811061169157fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a1682529092529020556001016115ef565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611751578181015183820152602001611739565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611790578181015183820152602001611778565b5050505090500194505050505060405180910390a450505050565b6001600160a01b0384166117f05760405162461bcd60e51b8152600401808060200182810382526021815260200180611ea66021913960400191505060405180910390fd5b60006117fa6111c1565b905061180c8160008761104b886118b3565b60008481526001602090815260408083206001600160a01b0389168452909152902054611839908461125d565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46118ac816000878787876118f7565b5050505050565b6040805160018082528183019092526060918291906020808301908036833701905050905082816000815181106118e657fe5b602090810291909101015292915050565b611909846001600160a01b0316611b9b565b15610c5457836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611998578181015183820152602001611980565b50505050905090810190601f1680156119c55780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156119e857600080fd5b505af1925050508015611a0d57506040513d6020811015611a0857600080fd5b505160015b611a195761145c611bdd565b6001600160e01b0319811663f23a6e6160e01b146115345760405162461bcd60e51b8152600401808060200182810382526028815260200180611cb76028913960400191505060405180910390fd5b6001600160a01b038316611aad5760405162461bcd60e51b8152600401808060200182810382526023815260200180611ddf6023913960400191505060405180910390fd5b6000611ab76111c1565b9050611ae781856000611ac9876118b3565b611ad2876118b3565b60405180602001604052806000815250610c54565b611b2e82604051806060016040528060248152602001611d3b6024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906111c6565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611bcf57508115155b949350505050565b60e01c90565b600060443d1015611bed576111c3565b600481823e6308c379a0611c018251611bd7565b14611c0b576111c3565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715611c3b57505050506111c3565b82840192508251915080821115611c5557505050506111c3565b503d83016020828401011115611c6d575050506111c3565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a26469706673582212200d8ad60eaba554878afc88fbfe9304c7b1dbd5529c6e69be8ef1901c1ba489d164736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC1155BurnableMock.sol","sourcemap":"106:238:28:-:0;;;160:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;160:54:28;;;;;;;;;;-1:-1:-1;160:54:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;160:54:28;;-1:-1:-1;206:3:28;;-1:-1:-1;751:40:10;;-1:-1:-1;;;;751:18:10;:40::i;:::-;2013:12:76;2021:3;2013:7;:12::i;:::-;2114:41;-1:-1:-1;;;2114:18:76;:41::i;:::-;2255:54;-1:-1:-1;;;2255:18:76;:54::i;:::-;1964:352;160:54:28;106:238;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;7585:86:76:-;7651:13;;;;:4;;:13;;;;;:::i;:::-;;7585:86;:::o;106:238:28:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;106:238:28;;;-1:-1:-1;106:238:28;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155Holder":{"abi":[{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155Holder","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506100216301ffc9a760e01b610036565b610031630271189760e51b610036565b6100ba565b6001600160e01b03198082161415610095576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b61039f806100c96000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063bc197c8114610081578063f23a6e611461025f575b600080fd5b61006d6004803603602081101561005c57600080fd5b50356001600160e01b031916610328565b604080519115158252519081900360200190f35b610242600480360360a081101561009757600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156100ca57600080fd5b8201836020820111156100dc57600080fd5b803590602001918460208302840111600160201b831117156100fd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561014c57600080fd5b82018360208201111561015e57600080fd5b803590602001918460208302840111600160201b8311171561017f57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156101ce57600080fd5b8201836020820111156101e057600080fd5b803590602001918460018302840111600160201b8311171561020157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610347945050505050565b604080516001600160e01b03199092168252519081900360200190f35b610242600480360360a081101561027557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b8111156102b457600080fd5b8201836020820111156102c657600080fd5b803590602001918460018302840111600160201b831117156102e757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610358945050505050565b6001600160e01b03191660009081526020819052604090205460ff1690565b63bc197c8160e01b95945050505050565b63f23a6e6160e01b9594505050505056fea26469706673582212201ed765e6a1deab3d2a7c3c57cee7fdbc8e479b86324fdfaa42bdc57ab3ec163d64736f6c634300060c0033"},"devdoc":{"details":"_Available since v3.1._","kind":"dev","methods":{"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":"0xbc197c81","onERC1155Received(address,address,uint256,uint256,bytes)":"0xf23a6e61","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063bc197c8114610081578063f23a6e611461025f575b600080fd5b61006d6004803603602081101561005c57600080fd5b50356001600160e01b031916610328565b604080519115158252519081900360200190f35b610242600480360360a081101561009757600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156100ca57600080fd5b8201836020820111156100dc57600080fd5b803590602001918460208302840111600160201b831117156100fd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561014c57600080fd5b82018360208201111561015e57600080fd5b803590602001918460208302840111600160201b8311171561017f57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156101ce57600080fd5b8201836020820111156101e057600080fd5b803590602001918460018302840111600160201b8311171561020157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610347945050505050565b604080516001600160e01b03199092168252519081900360200190f35b610242600480360360a081101561027557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b8111156102b457600080fd5b8201836020820111156102c657600080fd5b803590602001918460018302840111600160201b831117156102e757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610358945050505050565b6001600160e01b03191660009081526020819052604090205460ff1690565b63bc197c8160e01b95945050505050565b63f23a6e6160e01b9594505050505056fea26469706673582212201ed765e6a1deab3d2a7c3c57cee7fdbc8e479b86324fdfaa42bdc57ab3ec163d64736f6c634300060c0033"},"sourceId":"contracts/token/ERC1155/ERC1155Holder.sol","sourcemap":"131:430:78:-:0;;;;;;;;;;;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;272:152:80;-1:-1:-1;;;272:18:80;:152::i;:::-;131:430:78;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;131:430:78:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155Mock":{"abi":[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155Mock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200263f3803806200263f833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052508291506200010290506301ffc9a760e01b62000139565b6200010d81620001be565b6200011f636cdb3d1360e11b62000139565b620001316303a24d0760e21b62000139565b505062000273565b6001600160e01b0319808216141562000199576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001d3906003906020840190620001d7565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200021a57805160ff19168380011785556200024a565b828001600101855582156200024a579182015b828111156200024a5782518255916020019190600101906200022d565b50620002589291506200025c565b5090565b5b808211156200025857600081556001016200025d565b6123bc80620002836000396000f3fe608060405234801561001057600080fd5b50600436106100ce5760003560e01c80634e1273f41161008c578063a22cb46511610066578063a22cb46514610963578063e985e9c514610991578063f242432a146109bf578063f5298aca14610a88576100ce565b80634e1273f4146105fd5780636b20c45414610770578063731133e9146108a3576100ce565b8062fdd58e146100d357806301ffc9a71461011157806302fe53051461014c5780630e89341c146101f25780631f7fdffa146102845780632eb2c2d61461043c575b600080fd5b6100ff600480360360408110156100e957600080fd5b506001600160a01b038135169060200135610aba565b60408051918252519081900360200190f35b6101386004803603602081101561012757600080fd5b50356001600160e01b031916610b29565b604080519115158252519081900360200190f35b6101f06004803603602081101561016257600080fd5b810190602081018135600160201b81111561017c57600080fd5b82018360208201111561018e57600080fd5b803590602001918460018302840111600160201b831117156101af57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b48945050505050565b005b61020f6004803603602081101561020857600080fd5b5035610b54565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610249578181015183820152602001610231565b50505050905090810190601f1680156102765780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101f06004803603608081101561029a57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102c457600080fd5b8201836020820111156102d657600080fd5b803590602001918460208302840111600160201b831117156102f757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561034657600080fd5b82018360208201111561035857600080fd5b803590602001918460208302840111600160201b8311171561037957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103c857600080fd5b8201836020820111156103da57600080fd5b803590602001918460018302840111600160201b831117156103fb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bec945050505050565b6101f0600480360360a081101561045257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561048557600080fd5b82018360208201111561049757600080fd5b803590602001918460208302840111600160201b831117156104b857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561050757600080fd5b82018360208201111561051957600080fd5b803590602001918460208302840111600160201b8311171561053a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561058957600080fd5b82018360208201111561059b57600080fd5b803590602001918460018302840111600160201b831117156105bc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bfe945050505050565b6107206004803603604081101561061357600080fd5b810190602081018135600160201b81111561062d57600080fd5b82018360208201111561063f57600080fd5b803590602001918460208302840111600160201b8311171561066057600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106af57600080fd5b8201836020820111156106c157600080fd5b803590602001918460208302840111600160201b831117156106e257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610efc945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561075c578181015183820152602001610744565b505050509050019250505060405180910390f35b6101f06004803603606081101561078657600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156107b057600080fd5b8201836020820111156107c257600080fd5b803590602001918460208302840111600160201b831117156107e357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561083257600080fd5b82018360208201111561084457600080fd5b803590602001918460208302840111600160201b8311171561086557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061107a945050505050565b6101f0600480360360808110156108b957600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b8111156108ef57600080fd5b82018360208201111561090157600080fd5b803590602001918460018302840111600160201b8311171561092257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061108a945050505050565b6101f06004803603604081101561097957600080fd5b506001600160a01b0381351690602001351515611096565b610138600480360360408110156109a757600080fd5b506001600160a01b0381358116916020013516611185565b6101f0600480360360a08110156109d557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a1457600080fd5b820183602082011115610a2657600080fd5b803590602001918460018302840111600160201b83111715610a4757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506111b3945050505050565b6101f060048036036060811015610a9e57600080fd5b506001600160a01b03813516906020810135906040013561137e565b60006001600160a01b038316610b015760405162461bcd60e51b815260040180806020018281038252602b81526020018061219f602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b610b5181611389565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610be05780601f10610bb557610100808354040283529160200191610be0565b820191906000526020600020905b815481529060010190602001808311610bc357829003601f168201915b50505050509050919050565b610bf8848484846113a0565b50505050565b8151835114610c3e5760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b6001600160a01b038416610c835760405162461bcd60e51b81526004018080602001828103825260258152602001806122486025913960400191505060405180910390fd5b610c8b6115f5565b6001600160a01b0316856001600160a01b03161480610cb65750610cb685610cb16115f5565b611185565b610cf15760405162461bcd60e51b815260040180806020018281038252603281526020018061226d6032913960400191505060405180910390fd5b6000610cfb6115f5565b9050610d0b818787878787610ef4565b60005b8451811015610e0c576000858281518110610d2557fe5b602002602001015190506000858381518110610d3d57fe5b60200260200101519050610daa816040518060600160405280602a81526020016122c2602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546115fa9092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610de19082611691565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610d0e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610e92578181015183820152602001610e7a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610ed1578181015183820152602001610eb9565b5050505090500194505050505060405180910390a4610ef48187878787876116f2565b505050505050565b60608151835114610f3e5760405162461bcd60e51b81526004018080602001828103825260298152602001806123156029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610f5857600080fd5b50604051908082528060200260200182016040528015610f82578160200160208202803683370190505b50905060005b84518110156110725760006001600160a01b0316858281518110610fa857fe5b60200260200101516001600160a01b03161415610ff65760405162461bcd60e51b81526004018080602001828103825260318152602001806121ca6031913960400191505060405180910390fd5b6001600085838151811061100657fe5b60200260200101518152602001908152602001600020600086838151811061102a57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061105f57fe5b6020908102919091010152600101610f88565b509392505050565b611085838383611971565b505050565b610bf884848484611bdf565b816001600160a01b03166110a86115f5565b6001600160a01b031614156110ee5760405162461bcd60e51b81526004018080602001828103825260298152602001806122ec6029913960400191505060405180910390fd5b80600260006110fb6115f5565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561113f6115f5565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166111f85760405162461bcd60e51b81526004018080602001828103825260258152602001806122486025913960400191505060405180910390fd5b6112006115f5565b6001600160a01b0316856001600160a01b03161480611226575061122685610cb16115f5565b6112615760405162461bcd60e51b815260040180806020018281038252602981526020018061221f6029913960400191505060405180910390fd5b600061126b6115f5565b905061128b81878761127c88611ce0565b61128588611ce0565b87610ef4565b6112d2836040518060600160405280602a81526020016122c2602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906115fa565b60008581526001602090815260408083206001600160a01b038b811685529252808320939093558716815220546113099084611691565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610ef4818787878787611d24565b611085838383611e95565b805161139c906003906020840190612004565b5050565b6001600160a01b0384166113e55760405162461bcd60e51b81526004018080602001828103825260218152602001806123666021913960400191505060405180910390fd5b81518351146114255760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b600061142f6115f5565b905061144081600087878787610ef4565b60005b8451811015611504576114bb6001600087848151811061145f57fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020548583815181106114a557fe5b602002602001015161169190919063ffffffff16565b600160008784815181106114cb57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b168252909252902055600101611443565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561158b578181015183820152602001611573565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156115ca5781810151838201526020016115b2565b5050505090500194505050505060405180910390a46115ee816000878787876116f2565b5050505050565b335b90565b600081848411156116895760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561164e578181015183820152602001611636565b50505050905090810190601f16801561167b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156116eb576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611704846001600160a01b0316611fc8565b15610ef457836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561179257818101518382015260200161177a565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156117d15781810151838201526020016117b9565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561180d5781810151838201526020016117f5565b50505050905090810190601f16801561183a5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561185f57600080fd5b505af192505050801561188457506040513d602081101561187f57600080fd5b505160015b6119195761189061209d565b8061189b57506118e2565b60405162461bcd60e51b815260206004820181815283516024840152835184939192839260440191908501908083836000831561164e578181015183820152602001611636565b60405162461bcd60e51b81526004018080602001828103825260348152602001806121436034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146119685760405162461bcd60e51b81526004018080602001828103825260288152602001806121776028913960400191505060405180910390fd5b50505050505050565b6001600160a01b0383166119b65760405162461bcd60e51b815260040180806020018281038252602381526020018061229f6023913960400191505060405180910390fd5b80518251146119f65760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b6000611a006115f5565b9050611a2081856000868660405180602001604052806000815250610ef4565b60005b8351811015611afe57611ab5838281518110611a3b57fe5b60200260200101516040518060600160405280602481526020016121fb6024913960016000888681518110611a6c57fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546115fa9092919063ffffffff16565b60016000868481518110611ac557fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a168252909252902055600101611a23565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611b85578181015183820152602001611b6d565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611bc4578181015183820152602001611bac565b5050505090500194505050505060405180910390a450505050565b6001600160a01b038416611c245760405162461bcd60e51b81526004018080602001828103825260218152602001806123666021913960400191505060405180910390fd5b6000611c2e6115f5565b9050611c408160008761127c88611ce0565b60008481526001602090815260408083206001600160a01b0389168452909152902054611c6d9084611691565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46115ee81600087878787611d24565b604080516001808252818301909252606091829190602080830190803683370190505090508281600081518110611d1357fe5b602090810291909101015292915050565b611d36846001600160a01b0316611fc8565b15610ef457836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611dc5578181015183820152602001611dad565b50505050905090810190601f168015611df25780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015611e1557600080fd5b505af1925050508015611e3a57506040513d6020811015611e3557600080fd5b505160015b611e465761189061209d565b6001600160e01b0319811663f23a6e6160e01b146119685760405162461bcd60e51b81526004018080602001828103825260288152602001806121776028913960400191505060405180910390fd5b6001600160a01b038316611eda5760405162461bcd60e51b815260040180806020018281038252602381526020018061229f6023913960400191505060405180910390fd5b6000611ee46115f5565b9050611f1481856000611ef687611ce0565b611eff87611ce0565b60405180602001604052806000815250610ef4565b611f5b826040518060600160405280602481526020016121fb6024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906115fa565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611ffc57508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061204557805160ff1916838001178555612072565b82800160010185558215612072579182015b82811115612072578251825591602001919060010190612057565b5061207e929150612082565b5090565b5b8082111561207e5760008155600101612083565b60e01c90565b600060443d10156120ad576115f7565b600481823e6308c379a06120c18251612097565b146120cb576115f7565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156120fb57505050506115f7565b8284019250825191508082111561211557505050506115f7565b503d8301602082840101111561212d575050506115f7565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a2646970667358221220e40435beb9e8504d4b2b9f94ed177f51b51a17402769749ca776021f018119f764736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"title":"ERC1155Mock This mock just publicizes internal functions for testing purposes","version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","burn(address,uint256,uint256)":"0xf5298aca","burnBatch(address,uint256[],uint256[])":"0x6b20c454","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256,uint256,bytes)":"0x731133e9","mintBatch(address,uint256[],uint256[],bytes)":"0x1f7fdffa","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","setURI(string)":"0x02fe5305","supportsInterface(bytes4)":"0x01ffc9a7","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100ce5760003560e01c80634e1273f41161008c578063a22cb46511610066578063a22cb46514610963578063e985e9c514610991578063f242432a146109bf578063f5298aca14610a88576100ce565b80634e1273f4146105fd5780636b20c45414610770578063731133e9146108a3576100ce565b8062fdd58e146100d357806301ffc9a71461011157806302fe53051461014c5780630e89341c146101f25780631f7fdffa146102845780632eb2c2d61461043c575b600080fd5b6100ff600480360360408110156100e957600080fd5b506001600160a01b038135169060200135610aba565b60408051918252519081900360200190f35b6101386004803603602081101561012757600080fd5b50356001600160e01b031916610b29565b604080519115158252519081900360200190f35b6101f06004803603602081101561016257600080fd5b810190602081018135600160201b81111561017c57600080fd5b82018360208201111561018e57600080fd5b803590602001918460018302840111600160201b831117156101af57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b48945050505050565b005b61020f6004803603602081101561020857600080fd5b5035610b54565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610249578181015183820152602001610231565b50505050905090810190601f1680156102765780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101f06004803603608081101561029a57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102c457600080fd5b8201836020820111156102d657600080fd5b803590602001918460208302840111600160201b831117156102f757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561034657600080fd5b82018360208201111561035857600080fd5b803590602001918460208302840111600160201b8311171561037957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103c857600080fd5b8201836020820111156103da57600080fd5b803590602001918460018302840111600160201b831117156103fb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bec945050505050565b6101f0600480360360a081101561045257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561048557600080fd5b82018360208201111561049757600080fd5b803590602001918460208302840111600160201b831117156104b857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561050757600080fd5b82018360208201111561051957600080fd5b803590602001918460208302840111600160201b8311171561053a57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561058957600080fd5b82018360208201111561059b57600080fd5b803590602001918460018302840111600160201b831117156105bc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bfe945050505050565b6107206004803603604081101561061357600080fd5b810190602081018135600160201b81111561062d57600080fd5b82018360208201111561063f57600080fd5b803590602001918460208302840111600160201b8311171561066057600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106af57600080fd5b8201836020820111156106c157600080fd5b803590602001918460208302840111600160201b831117156106e257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610efc945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561075c578181015183820152602001610744565b505050509050019250505060405180910390f35b6101f06004803603606081101561078657600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156107b057600080fd5b8201836020820111156107c257600080fd5b803590602001918460208302840111600160201b831117156107e357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561083257600080fd5b82018360208201111561084457600080fd5b803590602001918460208302840111600160201b8311171561086557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061107a945050505050565b6101f0600480360360808110156108b957600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b8111156108ef57600080fd5b82018360208201111561090157600080fd5b803590602001918460018302840111600160201b8311171561092257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061108a945050505050565b6101f06004803603604081101561097957600080fd5b506001600160a01b0381351690602001351515611096565b610138600480360360408110156109a757600080fd5b506001600160a01b0381358116916020013516611185565b6101f0600480360360a08110156109d557600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a1457600080fd5b820183602082011115610a2657600080fd5b803590602001918460018302840111600160201b83111715610a4757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506111b3945050505050565b6101f060048036036060811015610a9e57600080fd5b506001600160a01b03813516906020810135906040013561137e565b60006001600160a01b038316610b015760405162461bcd60e51b815260040180806020018281038252602b81526020018061219f602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b610b5181611389565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610be05780601f10610bb557610100808354040283529160200191610be0565b820191906000526020600020905b815481529060010190602001808311610bc357829003601f168201915b50505050509050919050565b610bf8848484846113a0565b50505050565b8151835114610c3e5760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b6001600160a01b038416610c835760405162461bcd60e51b81526004018080602001828103825260258152602001806122486025913960400191505060405180910390fd5b610c8b6115f5565b6001600160a01b0316856001600160a01b03161480610cb65750610cb685610cb16115f5565b611185565b610cf15760405162461bcd60e51b815260040180806020018281038252603281526020018061226d6032913960400191505060405180910390fd5b6000610cfb6115f5565b9050610d0b818787878787610ef4565b60005b8451811015610e0c576000858281518110610d2557fe5b602002602001015190506000858381518110610d3d57fe5b60200260200101519050610daa816040518060600160405280602a81526020016122c2602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020546115fa9092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610de19082611691565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610d0e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610e92578181015183820152602001610e7a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610ed1578181015183820152602001610eb9565b5050505090500194505050505060405180910390a4610ef48187878787876116f2565b505050505050565b60608151835114610f3e5760405162461bcd60e51b81526004018080602001828103825260298152602001806123156029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610f5857600080fd5b50604051908082528060200260200182016040528015610f82578160200160208202803683370190505b50905060005b84518110156110725760006001600160a01b0316858281518110610fa857fe5b60200260200101516001600160a01b03161415610ff65760405162461bcd60e51b81526004018080602001828103825260318152602001806121ca6031913960400191505060405180910390fd5b6001600085838151811061100657fe5b60200260200101518152602001908152602001600020600086838151811061102a57fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061105f57fe5b6020908102919091010152600101610f88565b509392505050565b611085838383611971565b505050565b610bf884848484611bdf565b816001600160a01b03166110a86115f5565b6001600160a01b031614156110ee5760405162461bcd60e51b81526004018080602001828103825260298152602001806122ec6029913960400191505060405180910390fd5b80600260006110fb6115f5565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561113f6115f5565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166111f85760405162461bcd60e51b81526004018080602001828103825260258152602001806122486025913960400191505060405180910390fd5b6112006115f5565b6001600160a01b0316856001600160a01b03161480611226575061122685610cb16115f5565b6112615760405162461bcd60e51b815260040180806020018281038252602981526020018061221f6029913960400191505060405180910390fd5b600061126b6115f5565b905061128b81878761127c88611ce0565b61128588611ce0565b87610ef4565b6112d2836040518060600160405280602a81526020016122c2602a913960008781526001602090815260408083206001600160a01b038d16845290915290205491906115fa565b60008581526001602090815260408083206001600160a01b038b811685529252808320939093558716815220546113099084611691565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610ef4818787878787611d24565b611085838383611e95565b805161139c906003906020840190612004565b5050565b6001600160a01b0384166113e55760405162461bcd60e51b81526004018080602001828103825260218152602001806123666021913960400191505060405180910390fd5b81518351146114255760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b600061142f6115f5565b905061144081600087878787610ef4565b60005b8451811015611504576114bb6001600087848151811061145f57fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020548583815181106114a557fe5b602002602001015161169190919063ffffffff16565b600160008784815181106114cb57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b168252909252902055600101611443565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561158b578181015183820152602001611573565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156115ca5781810151838201526020016115b2565b5050505090500194505050505060405180910390a46115ee816000878787876116f2565b5050505050565b335b90565b600081848411156116895760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561164e578181015183820152602001611636565b50505050905090810190601f16801561167b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156116eb576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611704846001600160a01b0316611fc8565b15610ef457836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561179257818101518382015260200161177a565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156117d15781810151838201526020016117b9565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561180d5781810151838201526020016117f5565b50505050905090810190601f16801561183a5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b15801561185f57600080fd5b505af192505050801561188457506040513d602081101561187f57600080fd5b505160015b6119195761189061209d565b8061189b57506118e2565b60405162461bcd60e51b815260206004820181815283516024840152835184939192839260440191908501908083836000831561164e578181015183820152602001611636565b60405162461bcd60e51b81526004018080602001828103825260348152602001806121436034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146119685760405162461bcd60e51b81526004018080602001828103825260288152602001806121776028913960400191505060405180910390fd5b50505050505050565b6001600160a01b0383166119b65760405162461bcd60e51b815260040180806020018281038252602381526020018061229f6023913960400191505060405180910390fd5b80518251146119f65760405162461bcd60e51b815260040180806020018281038252602881526020018061233e6028913960400191505060405180910390fd5b6000611a006115f5565b9050611a2081856000868660405180602001604052806000815250610ef4565b60005b8351811015611afe57611ab5838281518110611a3b57fe5b60200260200101516040518060600160405280602481526020016121fb6024913960016000888681518110611a6c57fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b03168152602001908152602001600020546115fa9092919063ffffffff16565b60016000868481518110611ac557fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a168252909252902055600101611a23565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611b85578181015183820152602001611b6d565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611bc4578181015183820152602001611bac565b5050505090500194505050505060405180910390a450505050565b6001600160a01b038416611c245760405162461bcd60e51b81526004018080602001828103825260218152602001806123666021913960400191505060405180910390fd5b6000611c2e6115f5565b9050611c408160008761127c88611ce0565b60008481526001602090815260408083206001600160a01b0389168452909152902054611c6d9084611691565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46115ee81600087878787611d24565b604080516001808252818301909252606091829190602080830190803683370190505090508281600081518110611d1357fe5b602090810291909101015292915050565b611d36846001600160a01b0316611fc8565b15610ef457836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611dc5578181015183820152602001611dad565b50505050905090810190601f168015611df25780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015611e1557600080fd5b505af1925050508015611e3a57506040513d6020811015611e3557600080fd5b505160015b611e465761189061209d565b6001600160e01b0319811663f23a6e6160e01b146119685760405162461bcd60e51b81526004018080602001828103825260288152602001806121776028913960400191505060405180910390fd5b6001600160a01b038316611eda5760405162461bcd60e51b815260040180806020018281038252602381526020018061229f6023913960400191505060405180910390fd5b6000611ee46115f5565b9050611f1481856000611ef687611ce0565b611eff87611ce0565b60405180602001604052806000815250610ef4565b611f5b826040518060600160405280602481526020016121fb6024913960008681526001602090815260408083206001600160a01b038b16845290915290205491906115fa565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611ffc57508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061204557805160ff1916838001178555612072565b82800160010185558215612072579182015b82811115612072578251825591602001919060010190612057565b5061207e929150612082565b5090565b5b8082111561207e5760008155600101612083565b60e01c90565b600060443d10156120ad576115f7565b600481823e6308c379a06120c18251612097565b146120cb576115f7565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156120fb57505050506115f7565b8284019250825191508082111561211557505050506115f7565b503d8301602082840101111561212d575050506115f7565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a2646970667358221220e40435beb9e8504d4b2b9f94ed177f51b51a17402769749ca776021f018119f764736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC1155Mock.sol","sourcemap":"197:777:29:-:0;;;235:116;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;235:116:29;;;;;;;;;;-1:-1:-1;235:116:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;235:116:29;;-1:-1:-1;282:3:29;;-1:-1:-1;751:40:10;;-1:-1:-1;;;;751:18:10;:40::i;:::-;2013:12:76;2021:3;2013:7;:12::i;:::-;2114:41;-1:-1:-1;;;2114:18:76;:41::i;:::-;2255:54;-1:-1:-1;;;2255:18:76;:54::i;:::-;1964:352;235:116:29;197:777;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;7585:86:76:-;7651:13;;;;:4;;:13;;;;;:::i;:::-;;7585:86;:::o;197:777:29:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;197:777:29;;;-1:-1:-1;197:777:29;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155Pausable":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155Pausable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"ERC1155 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug. _Available since v3.1._","kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","isApprovedForAll(address,address)":"0xe985e9c5","paused()":"0x5c975abb","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC1155/ERC1155Pausable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155PausableMock":{"abi":[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155PausableMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200285a3803806200285a833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b5060405250829150819050620001036301ffc9a760e01b62000145565b6200010e81620001ca565b62000120636cdb3d1360e11b62000145565b620001326303a24d0760e21b62000145565b50506004805460ff19169055506200027f565b6001600160e01b03198082161415620001a5576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8051620001df906003906020840190620001e3565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200022657805160ff191683800117855562000256565b8280016001018555821562000256579182015b828111156200025657825182559160200191906001019062000239565b506200026492915062000268565b5090565b5b8082111562000264576000815560010162000269565b6125cb806200028f6000396000f3fe608060405234801561001057600080fd5b50600436106100ff5760003560e01c80635c975abb11610097578063a22cb46511610066578063a22cb465146109ac578063e985e9c5146109da578063f242432a14610a08578063f5298aca14610ad1576100ff565b80635c975abb146107a95780636b20c454146107b1578063731133e9146108e45780638456cb59146109a4576100ff565b80631f7fdffa116100d35780631f7fdffa146102b55780632eb2c2d61461046d5780633f4ba83a1461062e5780634e1273f414610636576100ff565b8062fdd58e1461010457806301ffc9a71461014257806302fe53051461017d5780630e89341c14610223575b600080fd5b6101306004803603604081101561011a57600080fd5b506001600160a01b038135169060200135610b03565b60408051918252519081900360200190f35b6101696004803603602081101561015857600080fd5b50356001600160e01b031916610b72565b604080519115158252519081900360200190f35b6102216004803603602081101561019357600080fd5b810190602081018135600160201b8111156101ad57600080fd5b8201836020820111156101bf57600080fd5b803590602001918460018302840111600160201b831117156101e057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b91945050505050565b005b6102406004803603602081101561023957600080fd5b5035610b9d565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027a578181015183820152602001610262565b50505050905090810190601f1680156102a75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610221600480360360808110156102cb57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102f557600080fd5b82018360208201111561030757600080fd5b803590602001918460208302840111600160201b8311171561032857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561037757600080fd5b82018360208201111561038957600080fd5b803590602001918460208302840111600160201b831117156103aa57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103f957600080fd5b82018360208201111561040b57600080fd5b803590602001918460018302840111600160201b8311171561042c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c35945050505050565b610221600480360360a081101561048357600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104b657600080fd5b8201836020820111156104c857600080fd5b803590602001918460208302840111600160201b831117156104e957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561053857600080fd5b82018360208201111561054a57600080fd5b803590602001918460208302840111600160201b8311171561056b57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105ba57600080fd5b8201836020820111156105cc57600080fd5b803590602001918460018302840111600160201b831117156105ed57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c47945050505050565b610221610f45565b6107596004803603604081101561064c57600080fd5b810190602081018135600160201b81111561066657600080fd5b82018360208201111561067857600080fd5b803590602001918460208302840111600160201b8311171561069957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106e857600080fd5b8201836020820111156106fa57600080fd5b803590602001918460208302840111600160201b8311171561071b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610f4f945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561079557818101518382015260200161077d565b505050509050019250505060405180910390f35b6101696110cd565b610221600480360360608110156107c757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156107f157600080fd5b82018360208201111561080357600080fd5b803590602001918460208302840111600160201b8311171561082457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561087357600080fd5b82018360208201111561088557600080fd5b803590602001918460208302840111600160201b831117156108a657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506110d7945050505050565b610221600480360360808110156108fa57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561093057600080fd5b82018360208201111561094257600080fd5b803590602001918460018302840111600160201b8311171561096357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506110e7945050505050565b6102216110f3565b610221600480360360408110156109c257600080fd5b506001600160a01b03813516906020013515156110fb565b610169600480360360408110156109f057600080fd5b506001600160a01b03813581169160200135166111ea565b610221600480360360a0811015610a1e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a5d57600080fd5b820183602082011115610a6f57600080fd5b803590602001918460018302840111600160201b83111715610a9057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611218945050505050565b61022160048036036060811015610ae757600080fd5b506001600160a01b0381351690602081013590604001356113e3565b60006001600160a01b038316610b4a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612382602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b610b9a816113ee565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c295780601f10610bfe57610100808354040283529160200191610c29565b820191906000526020600020905b815481529060010190602001808311610c0c57829003601f168201915b50505050509050919050565b610c4184848484611405565b50505050565b8151835114610c875760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b6001600160a01b038416610ccc5760405162461bcd60e51b81526004018080602001828103825260258152602001806124576025913960400191505060405180910390fd5b610cd461165a565b6001600160a01b0316856001600160a01b03161480610cff5750610cff85610cfa61165a565b6111ea565b610d3a5760405162461bcd60e51b815260040180806020018281038252603281526020018061247c6032913960400191505060405180910390fd5b6000610d4461165a565b9050610d5481878787878761165e565b60005b8451811015610e55576000858281518110610d6e57fe5b602002602001015190506000858381518110610d8657fe5b60200260200101519050610df3816040518060600160405280602a81526020016124d1602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000205461166c9092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610e2a9082611703565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610d57565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610edb578181015183820152602001610ec3565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610f1a578181015183820152602001610f02565b5050505090500194505050505060405180910390a4610f3d818787878787611764565b505050505050565b610f4d6119e3565b565b60608151835114610f915760405162461bcd60e51b81526004018080602001828103825260298152602001806125246029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610fab57600080fd5b50604051908082528060200260200182016040528015610fd5578160200160208202803683370190505b50905060005b84518110156110c55760006001600160a01b0316858281518110610ffb57fe5b60200260200101516001600160a01b031614156110495760405162461bcd60e51b81526004018080602001828103825260318152602001806123ad6031913960400191505060405180910390fd5b6001600085838151811061105957fe5b60200260200101518152602001908152602001600020600086838151811061107d57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106110b257fe5b6020908102919091010152600101610fdb565b509392505050565b60045460ff165b90565b6110e2838383611a81565b505050565b610c4184848484611cef565b610f4d611df0565b816001600160a01b031661110d61165a565b6001600160a01b031614156111535760405162461bcd60e51b81526004018080602001828103825260298152602001806124fb6029913960400191505060405180910390fd5b806002600061116061165a565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556111a461165a565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b03841661125d5760405162461bcd60e51b81526004018080602001828103825260258152602001806124576025913960400191505060405180910390fd5b61126561165a565b6001600160a01b0316856001600160a01b0316148061128b575061128b85610cfa61165a565b6112c65760405162461bcd60e51b815260040180806020018281038252602981526020018061242e6029913960400191505060405180910390fd5b60006112d061165a565b90506112f08187876112e188611e71565b6112ea88611e71565b8761165e565b611337836040518060600160405280602a81526020016124d1602a913960008781526001602090815260408083206001600160a01b038d168452909152902054919061166c565b60008581526001602090815260408083206001600160a01b038b8116855292528083209390935587168152205461136e9084611703565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610f3d818787878787611eb5565b6110e2838383612026565b80516114019060039060208401906121e7565b5050565b6001600160a01b03841661144a5760405162461bcd60e51b81526004018080602001828103825260218152602001806125756021913960400191505060405180910390fd5b815183511461148a5760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b600061149461165a565b90506114a58160008787878761165e565b60005b845181101561156957611520600160008784815181106114c457fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205485838151811061150a57fe5b602002602001015161170390919063ffffffff16565b6001600087848151811061153057fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b1682529092529020556001016114a8565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156115f05781810151838201526020016115d8565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561162f578181015183820152602001611617565b5050505090500194505050505060405180910390a461165381600087878787611764565b5050505050565b3390565b610f3d868686868686612159565b600081848411156116fb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116c05781810151838201526020016116a8565b50505050905090810190601f1680156116ed5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561175d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611776846001600160a01b03166121ab565b15610f3d57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156118045781810151838201526020016117ec565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561184357818101518382015260200161182b565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561187f578181015183820152602001611867565b50505050905090810190601f1680156118ac5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156118d157600080fd5b505af19250505080156118f657506040513d60208110156118f157600080fd5b505160015b61198b57611902612280565b8061190d5750611954565b60405162461bcd60e51b81526020600482018181528351602484015283518493919283926044019190850190808383600083156116c05781810151838201526020016116a8565b60405162461bcd60e51b81526004018080602001828103825260348152602001806123266034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146119da5760405162461bcd60e51b815260040180806020018281038252602881526020018061235a6028913960400191505060405180910390fd5b50505050505050565b60045460ff16611a31576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611a6461165a565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038316611ac65760405162461bcd60e51b81526004018080602001828103825260238152602001806124ae6023913960400191505060405180910390fd5b8051825114611b065760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b6000611b1061165a565b9050611b308185600086866040518060200160405280600081525061165e565b60005b8351811015611c0e57611bc5838281518110611b4b57fe5b60200260200101516040518060600160405280602481526020016123de6024913960016000888681518110611b7c57fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b031681526020019081526020016000205461166c9092919063ffffffff16565b60016000868481518110611bd557fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a168252909252902055600101611b33565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611c95578181015183820152602001611c7d565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611cd4578181015183820152602001611cbc565b5050505090500194505050505060405180910390a450505050565b6001600160a01b038416611d345760405162461bcd60e51b81526004018080602001828103825260218152602001806125756021913960400191505060405180910390fd5b6000611d3e61165a565b9050611d50816000876112e188611e71565b60008481526001602090815260408083206001600160a01b0389168452909152902054611d7d9084611703565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a461165381600087878787611eb5565b60045460ff1615611e3b576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a6461165a565b604080516001808252818301909252606091829190602080830190803683370190505090508281600081518110611ea457fe5b602090810291909101015292915050565b611ec7846001600160a01b03166121ab565b15610f3d57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611f56578181015183820152602001611f3e565b50505050905090810190601f168015611f835780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015611fa657600080fd5b505af1925050508015611fcb57506040513d6020811015611fc657600080fd5b505160015b611fd757611902612280565b6001600160e01b0319811663f23a6e6160e01b146119da5760405162461bcd60e51b815260040180806020018281038252602881526020018061235a6028913960400191505060405180910390fd5b6001600160a01b03831661206b5760405162461bcd60e51b81526004018080602001828103825260238152602001806124ae6023913960400191505060405180910390fd5b600061207561165a565b90506120a58185600061208787611e71565b61209087611e71565b6040518060200160405280600081525061165e565b6120ec826040518060600160405280602481526020016123de6024913960008681526001602090815260408083206001600160a01b038b168452909152902054919061166c565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b612167868686868686610f3d565b61216f6110cd565b15610f3d5760405162461bcd60e51b815260040180806020018281038252602c815260200180612402602c913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906121df57508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061222857805160ff1916838001178555612255565b82800160010185558215612255579182015b8281111561225557825182559160200191906001019061223a565b50612261929150612265565b5090565b5b808211156122615760008155600101612266565b60e01c90565b600060443d1015612290576110d4565b600481823e6308c379a06122a4825161227a565b146122ae576110d4565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156122de57505050506110d4565b828401925082519150808211156122f857505050506110d4565b503d83016020828401011115612310575050506110d4565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a2646970667358221220228ebe9a4f00db0abfb11859189c46710465b51614712765fbd1f9376134ae7664736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","burn(address,uint256,uint256)":"0xf5298aca","burnBatch(address,uint256[],uint256[])":"0x6b20c454","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256,uint256,bytes)":"0x731133e9","mintBatch(address,uint256[],uint256[],bytes)":"0x1f7fdffa","pause()":"0x8456cb59","paused()":"0x5c975abb","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","setURI(string)":"0x02fe5305","supportsInterface(bytes4)":"0x01ffc9a7","unpause()":"0x3f4ba83a","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100ff5760003560e01c80635c975abb11610097578063a22cb46511610066578063a22cb465146109ac578063e985e9c5146109da578063f242432a14610a08578063f5298aca14610ad1576100ff565b80635c975abb146107a95780636b20c454146107b1578063731133e9146108e45780638456cb59146109a4576100ff565b80631f7fdffa116100d35780631f7fdffa146102b55780632eb2c2d61461046d5780633f4ba83a1461062e5780634e1273f414610636576100ff565b8062fdd58e1461010457806301ffc9a71461014257806302fe53051461017d5780630e89341c14610223575b600080fd5b6101306004803603604081101561011a57600080fd5b506001600160a01b038135169060200135610b03565b60408051918252519081900360200190f35b6101696004803603602081101561015857600080fd5b50356001600160e01b031916610b72565b604080519115158252519081900360200190f35b6102216004803603602081101561019357600080fd5b810190602081018135600160201b8111156101ad57600080fd5b8201836020820111156101bf57600080fd5b803590602001918460018302840111600160201b831117156101e057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b91945050505050565b005b6102406004803603602081101561023957600080fd5b5035610b9d565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027a578181015183820152602001610262565b50505050905090810190601f1680156102a75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610221600480360360808110156102cb57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102f557600080fd5b82018360208201111561030757600080fd5b803590602001918460208302840111600160201b8311171561032857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561037757600080fd5b82018360208201111561038957600080fd5b803590602001918460208302840111600160201b831117156103aa57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103f957600080fd5b82018360208201111561040b57600080fd5b803590602001918460018302840111600160201b8311171561042c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c35945050505050565b610221600480360360a081101561048357600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104b657600080fd5b8201836020820111156104c857600080fd5b803590602001918460208302840111600160201b831117156104e957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561053857600080fd5b82018360208201111561054a57600080fd5b803590602001918460208302840111600160201b8311171561056b57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105ba57600080fd5b8201836020820111156105cc57600080fd5b803590602001918460018302840111600160201b831117156105ed57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c47945050505050565b610221610f45565b6107596004803603604081101561064c57600080fd5b810190602081018135600160201b81111561066657600080fd5b82018360208201111561067857600080fd5b803590602001918460208302840111600160201b8311171561069957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156106e857600080fd5b8201836020820111156106fa57600080fd5b803590602001918460208302840111600160201b8311171561071b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610f4f945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561079557818101518382015260200161077d565b505050509050019250505060405180910390f35b6101696110cd565b610221600480360360608110156107c757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156107f157600080fd5b82018360208201111561080357600080fd5b803590602001918460208302840111600160201b8311171561082457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561087357600080fd5b82018360208201111561088557600080fd5b803590602001918460208302840111600160201b831117156108a657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506110d7945050505050565b610221600480360360808110156108fa57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561093057600080fd5b82018360208201111561094257600080fd5b803590602001918460018302840111600160201b8311171561096357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506110e7945050505050565b6102216110f3565b610221600480360360408110156109c257600080fd5b506001600160a01b03813516906020013515156110fb565b610169600480360360408110156109f057600080fd5b506001600160a01b03813581169160200135166111ea565b610221600480360360a0811015610a1e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a5d57600080fd5b820183602082011115610a6f57600080fd5b803590602001918460018302840111600160201b83111715610a9057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611218945050505050565b61022160048036036060811015610ae757600080fd5b506001600160a01b0381351690602081013590604001356113e3565b60006001600160a01b038316610b4a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612382602b913960400191505060405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b6001600160e01b03191660009081526020819052604090205460ff1690565b610b9a816113ee565b50565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c295780601f10610bfe57610100808354040283529160200191610c29565b820191906000526020600020905b815481529060010190602001808311610c0c57829003601f168201915b50505050509050919050565b610c4184848484611405565b50505050565b8151835114610c875760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b6001600160a01b038416610ccc5760405162461bcd60e51b81526004018080602001828103825260258152602001806124576025913960400191505060405180910390fd5b610cd461165a565b6001600160a01b0316856001600160a01b03161480610cff5750610cff85610cfa61165a565b6111ea565b610d3a5760405162461bcd60e51b815260040180806020018281038252603281526020018061247c6032913960400191505060405180910390fd5b6000610d4461165a565b9050610d5481878787878761165e565b60005b8451811015610e55576000858281518110610d6e57fe5b602002602001015190506000858381518110610d8657fe5b60200260200101519050610df3816040518060600160405280602a81526020016124d1602a91396001600086815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000205461166c9092919063ffffffff16565b60008381526001602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610e2a9082611703565b60009283526001602081815260408086206001600160a01b038d168752909152909320555001610d57565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610edb578181015183820152602001610ec3565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610f1a578181015183820152602001610f02565b5050505090500194505050505060405180910390a4610f3d818787878787611764565b505050505050565b610f4d6119e3565b565b60608151835114610f915760405162461bcd60e51b81526004018080602001828103825260298152602001806125246029913960400191505060405180910390fd5b6060835167ffffffffffffffff81118015610fab57600080fd5b50604051908082528060200260200182016040528015610fd5578160200160208202803683370190505b50905060005b84518110156110c55760006001600160a01b0316858281518110610ffb57fe5b60200260200101516001600160a01b031614156110495760405162461bcd60e51b81526004018080602001828103825260318152602001806123ad6031913960400191505060405180910390fd5b6001600085838151811061105957fe5b60200260200101518152602001908152602001600020600086838151811061107d57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106110b257fe5b6020908102919091010152600101610fdb565b509392505050565b60045460ff165b90565b6110e2838383611a81565b505050565b610c4184848484611cef565b610f4d611df0565b816001600160a01b031661110d61165a565b6001600160a01b031614156111535760405162461bcd60e51b81526004018080602001828103825260298152602001806124fb6029913960400191505060405180910390fd5b806002600061116061165a565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556111a461165a565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6001600160a01b03841661125d5760405162461bcd60e51b81526004018080602001828103825260258152602001806124576025913960400191505060405180910390fd5b61126561165a565b6001600160a01b0316856001600160a01b0316148061128b575061128b85610cfa61165a565b6112c65760405162461bcd60e51b815260040180806020018281038252602981526020018061242e6029913960400191505060405180910390fd5b60006112d061165a565b90506112f08187876112e188611e71565b6112ea88611e71565b8761165e565b611337836040518060600160405280602a81526020016124d1602a913960008781526001602090815260408083206001600160a01b038d168452909152902054919061166c565b60008581526001602090815260408083206001600160a01b038b8116855292528083209390935587168152205461136e9084611703565b60008581526001602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4610f3d818787878787611eb5565b6110e2838383612026565b80516114019060039060208401906121e7565b5050565b6001600160a01b03841661144a5760405162461bcd60e51b81526004018080602001828103825260218152602001806125756021913960400191505060405180910390fd5b815183511461148a5760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b600061149461165a565b90506114a58160008787878761165e565b60005b845181101561156957611520600160008784815181106114c457fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205485838151811061150a57fe5b602002602001015161170390919063ffffffff16565b6001600087848151811061153057fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b1682529092529020556001016114a8565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156115f05781810151838201526020016115d8565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561162f578181015183820152602001611617565b5050505090500194505050505060405180910390a461165381600087878787611764565b5050505050565b3390565b610f3d868686868686612159565b600081848411156116fb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116c05781810151838201526020016116a8565b50505050905090810190601f1680156116ed5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561175d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611776846001600160a01b03166121ab565b15610f3d57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156118045781810151838201526020016117ec565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561184357818101518382015260200161182b565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561187f578181015183820152602001611867565b50505050905090810190601f1680156118ac5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b1580156118d157600080fd5b505af19250505080156118f657506040513d60208110156118f157600080fd5b505160015b61198b57611902612280565b8061190d5750611954565b60405162461bcd60e51b81526020600482018181528351602484015283518493919283926044019190850190808383600083156116c05781810151838201526020016116a8565b60405162461bcd60e51b81526004018080602001828103825260348152602001806123266034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b146119da5760405162461bcd60e51b815260040180806020018281038252602881526020018061235a6028913960400191505060405180910390fd5b50505050505050565b60045460ff16611a31576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611a6461165a565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038316611ac65760405162461bcd60e51b81526004018080602001828103825260238152602001806124ae6023913960400191505060405180910390fd5b8051825114611b065760405162461bcd60e51b815260040180806020018281038252602881526020018061254d6028913960400191505060405180910390fd5b6000611b1061165a565b9050611b308185600086866040518060200160405280600081525061165e565b60005b8351811015611c0e57611bc5838281518110611b4b57fe5b60200260200101516040518060600160405280602481526020016123de6024913960016000888681518110611b7c57fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b031681526020019081526020016000205461166c9092919063ffffffff16565b60016000868481518110611bd557fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a168252909252902055600101611b33565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611c95578181015183820152602001611c7d565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611cd4578181015183820152602001611cbc565b5050505090500194505050505060405180910390a450505050565b6001600160a01b038416611d345760405162461bcd60e51b81526004018080602001828103825260218152602001806125756021913960400191505060405180910390fd5b6000611d3e61165a565b9050611d50816000876112e188611e71565b60008481526001602090815260408083206001600160a01b0389168452909152902054611d7d9084611703565b60008581526001602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a461165381600087878787611eb5565b60045460ff1615611e3b576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a6461165a565b604080516001808252818301909252606091829190602080830190803683370190505090508281600081518110611ea457fe5b602090810291909101015292915050565b611ec7846001600160a01b03166121ab565b15610f3d57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611f56578181015183820152602001611f3e565b50505050905090810190601f168015611f835780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b158015611fa657600080fd5b505af1925050508015611fcb57506040513d6020811015611fc657600080fd5b505160015b611fd757611902612280565b6001600160e01b0319811663f23a6e6160e01b146119da5760405162461bcd60e51b815260040180806020018281038252602881526020018061235a6028913960400191505060405180910390fd5b6001600160a01b03831661206b5760405162461bcd60e51b81526004018080602001828103825260238152602001806124ae6023913960400191505060405180910390fd5b600061207561165a565b90506120a58185600061208787611e71565b61209087611e71565b6040518060200160405280600081525061165e565b6120ec826040518060600160405280602481526020016123de6024913960008681526001602090815260408083206001600160a01b038b168452909152902054919061166c565b60008481526001602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b612167868686868686610f3d565b61216f6110cd565b15610f3d5760405162461bcd60e51b815260040180806020018281038252602c815260200180612402602c913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906121df57508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061222857805160ff1916838001178555612255565b82800160010185558215612255579182015b8281111561225557825182559160200191906001019061223a565b50612261929150612265565b5090565b5b808211156122615760008155600101612266565b60e01c90565b600060443d1015612290576110d4565b600481823e6308c379a06122a4825161227a565b146122ae576110d4565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156122de57505050506110d4565b828401925082519150808211156122f857505050506110d4565b503d83016020828401011115612310575050506110d4565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373a2646970667358221220228ebe9a4f00db0abfb11859189c46710465b51614712765fbd1f9376134ae7664736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC1155PausableMock.sol","sourcemap":"134:593:30:-:0;;;201:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;201:58:30;;;;;;;;;;-1:-1:-1;201:58:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;201:58:30;;-1:-1:-1;251:3:30;;-1:-1:-1;251:3:30;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;2013:12:76;2021:3;2013:7;:12::i;:::-;2114:41;-1:-1:-1;;;2114:18:76;:41::i;:::-;2255:54;-1:-1:-1;;;2255:18:76;:54::i;:::-;-1:-1:-1;;923:7:110;:15;;-1:-1:-1;;923:15:110;;;-1:-1:-1;134:593:30;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;7585:86:76:-;7651:13;;;;:4;;:13;;;;;:::i;:::-;;7585:86;:::o;134:593:30:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;134:593:30;;;-1:-1:-1;134:593:30;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155PresetMinterPauser":{"abi":[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","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":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_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":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155PresetMinterPauser","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200328c3803806200328c833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052508291506200010290506301ffc9a760e01b620001b7565b6200010d816200023f565b6200011f636cdb3d1360e11b620001b7565b620001316303a24d0760e21b620001b7565b506005805460ff191690556200015260006200014c62000258565b6200025c565b620001817f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66200014c62000258565b620001b07f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6200014c62000258565b50620003fe565b6001600160e01b0319808216141562000217576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b80516200025490600490602084019062000362565b5050565b3390565b620002548282600082815260208181526040909120620002879183906200193e620002db821b17901c565b1562000254576200029762000258565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620002f2836001600160a01b038416620002fb565b90505b92915050565b60006200030983836200034a565b6200034157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620002f5565b506000620002f5565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003a557805160ff1916838001178555620003d5565b82800160010185558215620003d5579182015b82811115620003d5578251825591602001919060010190620003b8565b50620003e3929150620003e7565b5090565b5b80821115620003e35760008155600101620003e8565b612e7e806200040e6000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c8063731133e9116100de578063ca15c87311610097578063e63ab1e911610071578063e63ab1e914610ae2578063e985e9c514610aea578063f242432a14610b18578063f5298aca14610be157610172565b8063ca15c87314610a91578063d539139314610aae578063d547741f14610ab657610172565b8063731133e9146109285780638456cb59146109e85780639010d07c146109f057806391d1485414610a2f578063a217fddf14610a5b578063a22cb46514610a6357610172565b80632f2ff15d116101305780632f2ff15d1461061a57806336568abe146106465780633f4ba83a146106725780634e1273f41461067a5780635c975abb146107ed5780636b20c454146107f557610172565b8062fdd58e1461017757806301ffc9a7146101b55780630e89341c146101f05780631f7fdffa14610282578063248a9ca31461043c5780632eb2c2d614610459575b600080fd5b6101a36004803603604081101561018d57600080fd5b506001600160a01b038135169060200135610c13565b60408051918252519081900360200190f35b6101dc600480360360208110156101cb57600080fd5b50356001600160e01b031916610c85565b604080519115158252519081900360200190f35b61020d6004803603602081101561020657600080fd5b5035610ca4565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561024757818101518382015260200161022f565b50505050905090810190601f1680156102745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61043a6004803603608081101561029857600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102c257600080fd5b8201836020820111156102d457600080fd5b803590602001918460208302840111600160201b831117156102f557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460208302840111600160201b8311171561037757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103c657600080fd5b8201836020820111156103d857600080fd5b803590602001918460018302840111600160201b831117156103f957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d3c945050505050565b005b6101a36004803603602081101561045257600080fd5b5035610dba565b61043a600480360360a081101561046f57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104a257600080fd5b8201836020820111156104b457600080fd5b803590602001918460208302840111600160201b831117156104d557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561052457600080fd5b82018360208201111561053657600080fd5b803590602001918460208302840111600160201b8311171561055757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105a657600080fd5b8201836020820111156105b857600080fd5b803590602001918460018302840111600160201b831117156105d957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610dcf945050505050565b61043a6004803603604081101561063057600080fd5b50803590602001356001600160a01b03166110d2565b61043a6004803603604081101561065c57600080fd5b50803590602001356001600160a01b0316611139565b61043a61119a565b61079d6004803603604081101561069057600080fd5b810190602081018135600160201b8111156106aa57600080fd5b8201836020820111156106bc57600080fd5b803590602001918460208302840111600160201b831117156106dd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561072c57600080fd5b82018360208201111561073e57600080fd5b803590602001918460208302840111600160201b8311171561075f57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061120b945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156107d95781810151838201526020016107c1565b505050509050019250505060405180910390f35b6101dc611389565b61043a6004803603606081101561080b57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561083557600080fd5b82018360208201111561084757600080fd5b803590602001918460208302840111600160201b8311171561086857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156108b757600080fd5b8201836020820111156108c957600080fd5b803590602001918460208302840111600160201b831117156108ea57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611393945050505050565b61043a6004803603608081101561093e57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561097457600080fd5b82018360208201111561098657600080fd5b803590602001918460018302840111600160201b831117156109a757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061140c945050505050565b61043a61147f565b610a1360048036036040811015610a0657600080fd5b50803590602001356114ee565b604080516001600160a01b039092168252519081900360200190f35b6101dc60048036036040811015610a4557600080fd5b50803590602001356001600160a01b031661150d565b6101a3611525565b61043a60048036036040811015610a7957600080fd5b506001600160a01b038135169060200135151561152a565b6101a360048036036020811015610aa757600080fd5b5035611619565b6101a3611630565b61043a60048036036040811015610acc57600080fd5b50803590602001356001600160a01b0316611654565b6101a36116ad565b6101dc60048036036040811015610b0057600080fd5b506001600160a01b03813581169160200135166116d1565b61043a600480360360a0811015610b2e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610b6d57600080fd5b820183602082011115610b7f57600080fd5b803590602001918460018302840111600160201b83111715610ba057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506116ff945050505050565b61043a60048036036060811015610bf757600080fd5b506001600160a01b0381351690602081013590604001356118ca565b60006001600160a01b038316610c5a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612b2a602b913960400191505060405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b6001600160e01b03191660009081526001602052604090205460ff1690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d305780601f10610d0557610100808354040283529160200191610d30565b820191906000526020600020905b815481529060010190602001808311610d1357829003601f168201915b50505050509050919050565b610d6d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d68611953565b61150d565b610da85760405162461bcd60e51b8152600401808060200182810382526038815260200180612ca96038913960400191505060405180910390fd5b610db484848484611957565b50505050565b60009081526020819052604090206002015490565b8151835114610e0f5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b6001600160a01b038416610e545760405162461bcd60e51b8152600401808060200182810382526025815260200180612c2f6025913960400191505060405180910390fd5b610e5c611953565b6001600160a01b0316856001600160a01b03161480610e875750610e8785610e82611953565b6116d1565b610ec25760405162461bcd60e51b8152600401808060200182810382526032815260200180612c546032913960400191505060405180910390fd5b6000610ecc611953565b9050610edc818787878787611bac565b60005b8451811015610fe2576000858281518110610ef657fe5b602002602001015190506000858381518110610f0e57fe5b60200260200101519050610f7b816040518060600160405280602a8152602001612ce1602a91396002600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611bba9092919063ffffffff16565b60008381526002602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610fb29082611c51565b60009283526002602090815260408085206001600160a01b038c1686529091529092209190915550600101610edf565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611068578181015183820152602001611050565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156110a757818101518382015260200161108f565b5050505090500194505050505060405180910390a46110ca818787878787611cab565b505050505050565b6000828152602081905260409020600201546110f090610d68611953565b61112b5760405162461bcd60e51b815260040180806020018281038252602f815260200180612afb602f913960400191505060405180910390fd5b6111358282611f2a565b5050565b611141611953565b6001600160a01b0316816001600160a01b0316146111905760405162461bcd60e51b815260040180806020018281038252602f815260200180612e1a602f913960400191505060405180910390fd5b6111358282611f93565b6111c67f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d68611953565b6112015760405162461bcd60e51b815260040180806020018281038252603b815260200180612d0b603b913960400191505060405180910390fd5b611209611ffc565b565b6060815183511461124d5760405162461bcd60e51b8152600401808060200182810382526029815260200180612da86029913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561126757600080fd5b50604051908082528060200260200182016040528015611291578160200160208202803683370190505b50905060005b84518110156113815760006001600160a01b03168582815181106112b757fe5b60200260200101516001600160a01b031614156113055760405162461bcd60e51b8152600401808060200182810382526031815260200180612b556031913960400191505060405180910390fd5b6002600085838151811061131557fe5b60200260200101518152602001908152602001600020600086838151811061133957fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061136e57fe5b6020908102919091010152600101611297565b509392505050565b60055460ff165b90565b61139b611953565b6001600160a01b0316836001600160a01b031614806113c157506113c183610e82611953565b6113fc5760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b61140783838361209a565b505050565b6114387f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d68611953565b6114735760405162461bcd60e51b8152600401808060200182810382526038815260200180612ca96038913960400191505060405180910390fd5b610db484848484612308565b6114ab7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d68611953565b6114e65760405162461bcd60e51b8152600401808060200182810382526039815260200180612d466039913960400191505060405180910390fd5b611209612409565b6000828152602081905260408120611506908361248a565b9392505050565b60008281526020819052604081206115069083612496565b600081565b816001600160a01b031661153c611953565b6001600160a01b031614156115825760405162461bcd60e51b8152600401808060200182810382526029815260200180612d7f6029913960400191505060405180910390fd5b806003600061158f611953565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556115d3611953565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6000818152602081905260408120610c7f906124ab565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461167290610d68611953565b6111905760405162461bcd60e51b8152600401808060200182810382526030815260200180612bff6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166117445760405162461bcd60e51b8152600401808060200182810382526025815260200180612c2f6025913960400191505060405180910390fd5b61174c611953565b6001600160a01b0316856001600160a01b03161480611772575061177285610e82611953565b6117ad5760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b60006117b7611953565b90506117d78187876117c8886124b6565b6117d1886124b6565b87611bac565b61181e836040518060600160405280602a8152602001612ce1602a913960008781526002602090815260408083206001600160a01b038d1684529091529020549190611bba565b60008581526002602090815260408083206001600160a01b038b811685529252808320939093558716815220546118559084611c51565b60008581526002602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46110ca8187878787876124fa565b6118d2611953565b6001600160a01b0316836001600160a01b031614806118f857506118f883610e82611953565b6119335760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b61140783838361266b565b6000611506836001600160a01b03841661279e565b3390565b6001600160a01b03841661199c5760405162461bcd60e51b8152600401808060200182810382526021815260200180612df96021913960400191505060405180910390fd5b81518351146119dc5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b60006119e6611953565b90506119f781600087878787611bac565b60005b8451811015611abb57611a7260026000878481518110611a1657fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002054858381518110611a5c57fe5b6020026020010151611c5190919063ffffffff16565b60026000878481518110611a8257fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b1682529092529020556001016119fa565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611b42578181015183820152602001611b2a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611b81578181015183820152602001611b69565b5050505090500194505050505060405180910390a4611ba581600087878787611cab565b5050505050565b6110ca8686868686866127e8565b60008184841115611c495760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c0e578181015183820152602001611bf6565b50505050905090810190601f168015611c3b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611506576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b611cbd846001600160a01b031661283a565b156110ca57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611d4b578181015183820152602001611d33565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611d8a578181015183820152602001611d72565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015611dc6578181015183820152602001611dae565b50505050905090810190601f168015611df35780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015611e1857600080fd5b505af1925050508015611e3d57506040513d6020811015611e3857600080fd5b505160015b611ed257611e496129d7565b80611e545750611e9b565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315611c0e578181015183820152602001611bf6565b60405162461bcd60e51b8152600401808060200182810382526034815260200180612a7d6034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b14611f215760405162461bcd60e51b8152600401808060200182810382526028815260200180612ad36028913960400191505060405180910390fd5b50505050505050565b6000828152602081905260409020611f42908261193e565b1561113557611f4f611953565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611fab9082612876565b1561113557611fb8611953565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60055460ff1661204a576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61207d611953565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b0383166120df5760405162461bcd60e51b8152600401808060200182810382526023815260200180612c866023913960400191505060405180910390fd5b805182511461211f5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b6000612129611953565b905061214981856000868660405180602001604052806000815250611bac565b60005b8351811015612227576121de83828151811061216457fe5b6020026020010151604051806060016040528060248152602001612b86602491396002600088868151811061219557fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002054611bba9092919063ffffffff16565b600260008684815181106121ee57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a16825290925290205560010161214c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156122ae578181015183820152602001612296565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156122ed5781810151838201526020016122d5565b5050505090500194505050505060405180910390a450505050565b6001600160a01b03841661234d5760405162461bcd60e51b8152600401808060200182810382526021815260200180612df96021913960400191505060405180910390fd5b6000612357611953565b9050612369816000876117c8886124b6565b60008481526002602090815260408083206001600160a01b03891684529091529020546123969084611c51565b60008581526002602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4611ba5816000878787876124fa565b60055460ff1615612454576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861207d611953565b6000611506838361288b565b6000611506836001600160a01b0384166128ef565b6000610c7f82612907565b6040805160018082528183019092526060918291906020808301908036833701905050905082816000815181106124e957fe5b602090810291909101015292915050565b61250c846001600160a01b031661283a565b156110ca57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561259b578181015183820152602001612583565b50505050905090810190601f1680156125c85780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156125eb57600080fd5b505af192505050801561261057506040513d602081101561260b57600080fd5b505160015b61261c57611e496129d7565b6001600160e01b0319811663f23a6e6160e01b14611f215760405162461bcd60e51b8152600401808060200182810382526028815260200180612ad36028913960400191505060405180910390fd5b6001600160a01b0383166126b05760405162461bcd60e51b8152600401808060200182810382526023815260200180612c866023913960400191505060405180910390fd5b60006126ba611953565b90506126ea818560006126cc876124b6565b6126d5876124b6565b60405180602001604052806000815250611bac565b61273182604051806060016040528060248152602001612b866024913960008681526002602090815260408083206001600160a01b038b1684529091529020549190611bba565b60008481526002602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b60006127aa83836128ef565b6127e057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c7f565b506000610c7f565b6127f68686868686866110ca565b6127fe611389565b156110ca5760405162461bcd60e51b815260040180806020018281038252602c815260200180612baa602c913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061286e57508115155b949350505050565b6000611506836001600160a01b03841661290b565b815460009082106128cd5760405162461bcd60e51b8152600401808060200182810382526022815260200180612ab16022913960400191505060405180910390fd5b8260000182815481106128dc57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156129c7578354600019808301919081019060009087908390811061293e57fe5b906000526020600020015490508087600001848154811061295b57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061298b57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610c7f565b6000915050610c7f565b60e01c90565b600060443d10156129e757611390565b600481823e6308c379a06129fb82516129d1565b14612a0557611390565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715612a355750505050611390565b82840192508251915080821115612a4f5750505050611390565b503d83016020828401011115612a6757505050611390565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135355072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e74455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e7061757365455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f207061757365455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212208344e6b26fea227a61547ae485b735d31dad4e57c5b3d14cc319bf7c0b2cb2d364736f6c634300060c0033"},"devdoc":{"details":"{ERC1155} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers This contract uses {AccessControl} to lock permissioned functions using the different roles - head to its documentation for details. The account that deploys the contract will be granted the minter and pauser roles, as well as the default admin role, which will let it grant both minter and pauser roles to other accounts.","kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."},"constructor":{"details":"Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, and `PAUSER_ROLE` to the account that deploys the contract."},"getRoleAdmin(bytes32)":{"details":"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."},"getRoleMember(bytes32,uint256)":{"details":"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."},"getRoleMemberCount(bytes32)":{"details":"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."},"grantRole(bytes32,address)":{"details":"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."},"hasRole(bytes32,address)":{"details":"Returns `true` if `account` has been granted `role`."},"isApprovedForAll(address,address)":{"details":"See {IERC1155-isApprovedForAll}."},"mint(address,uint256,uint256,bytes)":{"details":"Creates `amount` new tokens for `to`, of token type `id`. See {ERC1155-_mint}. Requirements: - the caller must have the `MINTER_ROLE`."},"mintBatch(address,uint256[],uint256[],bytes)":{"details":"xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}."},"pause()":{"details":"Pauses all token transfers. See {ERC1155Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"renounceRole(bytes32,address)":{"details":"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."},"revokeRole(bytes32,address)":{"details":"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"See {IERC1155-safeBatchTransferFrom}."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"See {IERC1155-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC1155-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"unpause()":{"details":"Unpauses all token transfers. See {ERC1155Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`."},"uri(uint256)":{"details":"See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substituion mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."}},"version":1},"methodIdentifiers":{"DEFAULT_ADMIN_ROLE()":"0xa217fddf","MINTER_ROLE()":"0xd5391393","PAUSER_ROLE()":"0xe63ab1e9","balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","burn(address,uint256,uint256)":"0xf5298aca","burnBatch(address,uint256[],uint256[])":"0x6b20c454","getRoleAdmin(bytes32)":"0x248a9ca3","getRoleMember(bytes32,uint256)":"0x9010d07c","getRoleMemberCount(bytes32)":"0xca15c873","grantRole(bytes32,address)":"0x2f2ff15d","hasRole(bytes32,address)":"0x91d14854","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256,uint256,bytes)":"0x731133e9","mintBatch(address,uint256[],uint256[],bytes)":"0x1f7fdffa","pause()":"0x8456cb59","paused()":"0x5c975abb","renounceRole(bytes32,address)":"0x36568abe","revokeRole(bytes32,address)":"0xd547741f","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","unpause()":"0x3f4ba83a","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101725760003560e01c8063731133e9116100de578063ca15c87311610097578063e63ab1e911610071578063e63ab1e914610ae2578063e985e9c514610aea578063f242432a14610b18578063f5298aca14610be157610172565b8063ca15c87314610a91578063d539139314610aae578063d547741f14610ab657610172565b8063731133e9146109285780638456cb59146109e85780639010d07c146109f057806391d1485414610a2f578063a217fddf14610a5b578063a22cb46514610a6357610172565b80632f2ff15d116101305780632f2ff15d1461061a57806336568abe146106465780633f4ba83a146106725780634e1273f41461067a5780635c975abb146107ed5780636b20c454146107f557610172565b8062fdd58e1461017757806301ffc9a7146101b55780630e89341c146101f05780631f7fdffa14610282578063248a9ca31461043c5780632eb2c2d614610459575b600080fd5b6101a36004803603604081101561018d57600080fd5b506001600160a01b038135169060200135610c13565b60408051918252519081900360200190f35b6101dc600480360360208110156101cb57600080fd5b50356001600160e01b031916610c85565b604080519115158252519081900360200190f35b61020d6004803603602081101561020657600080fd5b5035610ca4565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561024757818101518382015260200161022f565b50505050905090810190601f1680156102745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61043a6004803603608081101561029857600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102c257600080fd5b8201836020820111156102d457600080fd5b803590602001918460208302840111600160201b831117156102f557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460208302840111600160201b8311171561037757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156103c657600080fd5b8201836020820111156103d857600080fd5b803590602001918460018302840111600160201b831117156103f957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d3c945050505050565b005b6101a36004803603602081101561045257600080fd5b5035610dba565b61043a600480360360a081101561046f57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156104a257600080fd5b8201836020820111156104b457600080fd5b803590602001918460208302840111600160201b831117156104d557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561052457600080fd5b82018360208201111561053657600080fd5b803590602001918460208302840111600160201b8311171561055757600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156105a657600080fd5b8201836020820111156105b857600080fd5b803590602001918460018302840111600160201b831117156105d957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610dcf945050505050565b61043a6004803603604081101561063057600080fd5b50803590602001356001600160a01b03166110d2565b61043a6004803603604081101561065c57600080fd5b50803590602001356001600160a01b0316611139565b61043a61119a565b61079d6004803603604081101561069057600080fd5b810190602081018135600160201b8111156106aa57600080fd5b8201836020820111156106bc57600080fd5b803590602001918460208302840111600160201b831117156106dd57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561072c57600080fd5b82018360208201111561073e57600080fd5b803590602001918460208302840111600160201b8311171561075f57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061120b945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156107d95781810151838201526020016107c1565b505050509050019250505060405180910390f35b6101dc611389565b61043a6004803603606081101561080b57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561083557600080fd5b82018360208201111561084757600080fd5b803590602001918460208302840111600160201b8311171561086857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156108b757600080fd5b8201836020820111156108c957600080fd5b803590602001918460208302840111600160201b831117156108ea57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611393945050505050565b61043a6004803603608081101561093e57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135600160201b81111561097457600080fd5b82018360208201111561098657600080fd5b803590602001918460018302840111600160201b831117156109a757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061140c945050505050565b61043a61147f565b610a1360048036036040811015610a0657600080fd5b50803590602001356114ee565b604080516001600160a01b039092168252519081900360200190f35b6101dc60048036036040811015610a4557600080fd5b50803590602001356001600160a01b031661150d565b6101a3611525565b61043a60048036036040811015610a7957600080fd5b506001600160a01b038135169060200135151561152a565b6101a360048036036020811015610aa757600080fd5b5035611619565b6101a3611630565b61043a60048036036040811015610acc57600080fd5b50803590602001356001600160a01b0316611654565b6101a36116ad565b6101dc60048036036040811015610b0057600080fd5b506001600160a01b03813581169160200135166116d1565b61043a600480360360a0811015610b2e57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610b6d57600080fd5b820183602082011115610b7f57600080fd5b803590602001918460018302840111600160201b83111715610ba057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506116ff945050505050565b61043a60048036036060811015610bf757600080fd5b506001600160a01b0381351690602081013590604001356118ca565b60006001600160a01b038316610c5a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612b2a602b913960400191505060405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b6001600160e01b03191660009081526001602052604090205460ff1690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d305780601f10610d0557610100808354040283529160200191610d30565b820191906000526020600020905b815481529060010190602001808311610d1357829003601f168201915b50505050509050919050565b610d6d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d68611953565b61150d565b610da85760405162461bcd60e51b8152600401808060200182810382526038815260200180612ca96038913960400191505060405180910390fd5b610db484848484611957565b50505050565b60009081526020819052604090206002015490565b8151835114610e0f5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b6001600160a01b038416610e545760405162461bcd60e51b8152600401808060200182810382526025815260200180612c2f6025913960400191505060405180910390fd5b610e5c611953565b6001600160a01b0316856001600160a01b03161480610e875750610e8785610e82611953565b6116d1565b610ec25760405162461bcd60e51b8152600401808060200182810382526032815260200180612c546032913960400191505060405180910390fd5b6000610ecc611953565b9050610edc818787878787611bac565b60005b8451811015610fe2576000858281518110610ef657fe5b602002602001015190506000858381518110610f0e57fe5b60200260200101519050610f7b816040518060600160405280602a8152602001612ce1602a91396002600086815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611bba9092919063ffffffff16565b60008381526002602090815260408083206001600160a01b038e811685529252808320939093558a1681522054610fb29082611c51565b60009283526002602090815260408085206001600160a01b038c1686529091529092209190915550600101610edf565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611068578181015183820152602001611050565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156110a757818101518382015260200161108f565b5050505090500194505050505060405180910390a46110ca818787878787611cab565b505050505050565b6000828152602081905260409020600201546110f090610d68611953565b61112b5760405162461bcd60e51b815260040180806020018281038252602f815260200180612afb602f913960400191505060405180910390fd5b6111358282611f2a565b5050565b611141611953565b6001600160a01b0316816001600160a01b0316146111905760405162461bcd60e51b815260040180806020018281038252602f815260200180612e1a602f913960400191505060405180910390fd5b6111358282611f93565b6111c67f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d68611953565b6112015760405162461bcd60e51b815260040180806020018281038252603b815260200180612d0b603b913960400191505060405180910390fd5b611209611ffc565b565b6060815183511461124d5760405162461bcd60e51b8152600401808060200182810382526029815260200180612da86029913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561126757600080fd5b50604051908082528060200260200182016040528015611291578160200160208202803683370190505b50905060005b84518110156113815760006001600160a01b03168582815181106112b757fe5b60200260200101516001600160a01b031614156113055760405162461bcd60e51b8152600401808060200182810382526031815260200180612b556031913960400191505060405180910390fd5b6002600085838151811061131557fe5b60200260200101518152602001908152602001600020600086838151811061133957fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061136e57fe5b6020908102919091010152600101611297565b509392505050565b60055460ff165b90565b61139b611953565b6001600160a01b0316836001600160a01b031614806113c157506113c183610e82611953565b6113fc5760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b61140783838361209a565b505050565b6114387f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d68611953565b6114735760405162461bcd60e51b8152600401808060200182810382526038815260200180612ca96038913960400191505060405180910390fd5b610db484848484612308565b6114ab7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d68611953565b6114e65760405162461bcd60e51b8152600401808060200182810382526039815260200180612d466039913960400191505060405180910390fd5b611209612409565b6000828152602081905260408120611506908361248a565b9392505050565b60008281526020819052604081206115069083612496565b600081565b816001600160a01b031661153c611953565b6001600160a01b031614156115825760405162461bcd60e51b8152600401808060200182810382526029815260200180612d7f6029913960400191505060405180910390fd5b806003600061158f611953565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556115d3611953565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6000818152602081905260408120610c7f906124ab565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461167290610d68611953565b6111905760405162461bcd60e51b8152600401808060200182810382526030815260200180612bff6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6001600160a01b0384166117445760405162461bcd60e51b8152600401808060200182810382526025815260200180612c2f6025913960400191505060405180910390fd5b61174c611953565b6001600160a01b0316856001600160a01b03161480611772575061177285610e82611953565b6117ad5760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b60006117b7611953565b90506117d78187876117c8886124b6565b6117d1886124b6565b87611bac565b61181e836040518060600160405280602a8152602001612ce1602a913960008781526002602090815260408083206001600160a01b038d1684529091529020549190611bba565b60008581526002602090815260408083206001600160a01b038b811685529252808320939093558716815220546118559084611c51565b60008581526002602090815260408083206001600160a01b03808b168086529184529382902094909455805188815291820187905280518a8416938616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a46110ca8187878787876124fa565b6118d2611953565b6001600160a01b0316836001600160a01b031614806118f857506118f883610e82611953565b6119335760405162461bcd60e51b8152600401808060200182810382526029815260200180612bd66029913960400191505060405180910390fd5b61140783838361266b565b6000611506836001600160a01b03841661279e565b3390565b6001600160a01b03841661199c5760405162461bcd60e51b8152600401808060200182810382526021815260200180612df96021913960400191505060405180910390fd5b81518351146119dc5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b60006119e6611953565b90506119f781600087878787611bac565b60005b8451811015611abb57611a7260026000878481518110611a1657fe5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002054858381518110611a5c57fe5b6020026020010151611c5190919063ffffffff16565b60026000878481518110611a8257fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038b1682529092529020556001016119fa565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611b42578181015183820152602001611b2a565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611b81578181015183820152602001611b69565b5050505090500194505050505060405180910390a4611ba581600087878787611cab565b5050505050565b6110ca8686868686866127e8565b60008184841115611c495760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c0e578181015183820152602001611bf6565b50505050905090810190601f168015611c3b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611506576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b611cbd846001600160a01b031661283a565b156110ca57836001600160a01b031663bc197c8187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611d4b578181015183820152602001611d33565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611d8a578181015183820152602001611d72565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015611dc6578181015183820152602001611dae565b50505050905090810190601f168015611df35780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b158015611e1857600080fd5b505af1925050508015611e3d57506040513d6020811015611e3857600080fd5b505160015b611ed257611e496129d7565b80611e545750611e9b565b60405162461bcd60e51b8152602060048201818152835160248401528351849391928392604401919085019080838360008315611c0e578181015183820152602001611bf6565b60405162461bcd60e51b8152600401808060200182810382526034815260200180612a7d6034913960400191505060405180910390fd5b6001600160e01b0319811663bc197c8160e01b14611f215760405162461bcd60e51b8152600401808060200182810382526028815260200180612ad36028913960400191505060405180910390fd5b50505050505050565b6000828152602081905260409020611f42908261193e565b1561113557611f4f611953565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611fab9082612876565b1561113557611fb8611953565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60055460ff1661204a576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61207d611953565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b0383166120df5760405162461bcd60e51b8152600401808060200182810382526023815260200180612c866023913960400191505060405180910390fd5b805182511461211f5760405162461bcd60e51b8152600401808060200182810382526028815260200180612dd16028913960400191505060405180910390fd5b6000612129611953565b905061214981856000868660405180602001604052806000815250611bac565b60005b8351811015612227576121de83828151811061216457fe5b6020026020010151604051806060016040528060248152602001612b86602491396002600088868151811061219557fe5b602002602001015181526020019081526020016000206000896001600160a01b03166001600160a01b0316815260200190815260200160002054611bba9092919063ffffffff16565b600260008684815181106121ee57fe5b602090810291909101810151825281810192909252604090810160009081206001600160a01b038a16825290925290205560010161214c565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156122ae578181015183820152602001612296565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156122ed5781810151838201526020016122d5565b5050505090500194505050505060405180910390a450505050565b6001600160a01b03841661234d5760405162461bcd60e51b8152600401808060200182810382526021815260200180612df96021913960400191505060405180910390fd5b6000612357611953565b9050612369816000876117c8886124b6565b60008481526002602090815260408083206001600160a01b03891684529091529020546123969084611c51565b60008581526002602090815260408083206001600160a01b03808b16808652918452828520959095558151898152928301889052815190948616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a4611ba5816000878787876124fa565b60055460ff1615612454576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861207d611953565b6000611506838361288b565b6000611506836001600160a01b0384166128ef565b6000610c7f82612907565b6040805160018082528183019092526060918291906020808301908036833701905050905082816000815181106124e957fe5b602090810291909101015292915050565b61250c846001600160a01b031661283a565b156110ca57836001600160a01b031663f23a6e6187878686866040518663ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561259b578181015183820152602001612583565b50505050905090810190601f1680156125c85780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156125eb57600080fd5b505af192505050801561261057506040513d602081101561260b57600080fd5b505160015b61261c57611e496129d7565b6001600160e01b0319811663f23a6e6160e01b14611f215760405162461bcd60e51b8152600401808060200182810382526028815260200180612ad36028913960400191505060405180910390fd5b6001600160a01b0383166126b05760405162461bcd60e51b8152600401808060200182810382526023815260200180612c866023913960400191505060405180910390fd5b60006126ba611953565b90506126ea818560006126cc876124b6565b6126d5876124b6565b60405180602001604052806000815250611bac565b61273182604051806060016040528060248152602001612b866024913960008681526002602090815260408083206001600160a01b038b1684529091529020549190611bba565b60008481526002602090815260408083206001600160a01b03808a16808652918452828520959095558151888152928301879052815193949093908616927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6292908290030190a450505050565b60006127aa83836128ef565b6127e057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c7f565b506000610c7f565b6127f68686868686866110ca565b6127fe611389565b156110ca5760405162461bcd60e51b815260040180806020018281038252602c815260200180612baa602c913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061286e57508115155b949350505050565b6000611506836001600160a01b03841661290b565b815460009082106128cd5760405162461bcd60e51b8152600401808060200182810382526022815260200180612ab16022913960400191505060405180910390fd5b8260000182815481106128dc57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600081815260018301602052604081205480156129c7578354600019808301919081019060009087908390811061293e57fe5b906000526020600020015490508087600001848154811061295b57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061298b57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610c7f565b6000915050610c7f565b60e01c90565b600060443d10156129e757611390565b600481823e6308c379a06129fb82516129d1565b14612a0557611390565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715612a355750505050611390565b82840192508251915080821115612a4f5750505050611390565b503d83016020828401011115612a6757505050611390565b601f01601f191681016020016040529150509056fe455243313135353a207472616e7366657220746f206e6f6e2045524331313535526563656976657220696d706c656d656e746572456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473455243313135353a204552433131353552656365697665722072656a656374656420746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a2062617463682062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a206275726e20616d6f756e7420657863656564732062616c616e6365455243313135355061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65455243313135353a207472616e7366657220746f20746865207a65726f2061646472657373455243313135353a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243313135353a206275726e2066726f6d20746865207a65726f2061646472657373455243313135355072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e74455243313135353a20696e73756666696369656e742062616c616e636520666f72207472616e73666572455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e7061757365455243313135355072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f207061757365455243313135353a2073657474696e6720617070726f76616c2073746174757320666f722073656c66455243313135353a206163636f756e747320616e6420696473206c656e677468206d69736d61746368455243313135353a2069647320616e6420616d6f756e7473206c656e677468206d69736d61746368455243313135353a206d696e7420746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212208344e6b26fea227a61547ae485b735d31dad4e57c5b3d14cc319bf7c0b2cb2d364736f6c634300060c0033"},"sourceId":"contracts/presets/ERC1155PresetMinterPauser.sol","sourcemap":"828:2533:73:-:0;;;1205:207;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1205:207:73;;;;;;;;;;-1:-1:-1;1205:207:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1205:207:73;;-1:-1:-1;1251:3:73;;-1:-1:-1;751:40:10;;-1:-1:-1;;;;751:18:10;:40::i;:::-;2013:12:76;2021:3;2013:7;:12::i;:::-;2114:41;-1:-1:-1;;;2114:18:76;:41::i;:::-;2255:54;-1:-1:-1;;;2255:18:76;:54::i;:::-;-1:-1:-1;923:7:110;:15;;-1:-1:-1;;923:15:110;;;1266:44:73::1;933:5:110::0;1297:12:73::1;:10;:12::i;:::-;1266:10;:44::i;:::-;1321:37;967:24;1345:12;:10;:12::i;1321:37::-;1368;1035:24;1392:12;:10;:12::i;1368:37::-;1205:207:::0;828:2533;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;;;;;1669:4;1633:33;;;;;;;;:40;;-1:-1:-1;;1633:40:10;;;;;;1482:198::o;7585:86:76:-;7651:13;;;;:4;;:13;;;;;:::i;:::-;;7585:86;:::o;590:104:0:-;677:10;590:104;:::o;6578:110:6:-;6656:25;6667:4;6673:7;7088:6;:12;;;;;;;;;;;:33;;7113:7;;7088:24;;;;;:33;;:::i;:::-;7084:109;;;7169:12;:10;:12::i;:::-;-1:-1:-1;;;;;7142:40:6;7160:7;-1:-1:-1;;;;;7142:40:6;7154:4;7142:40;;;;;;;;;;7015:184;;:::o;4864:141:109:-;4934:4;4957:41;4962:3;-1:-1:-1;;;;;4982:14:109;;4957:4;:41::i;:::-;4950:48;;4864:141;;;;;:::o;1611:404::-;1674:4;1695:21;1705:3;1710:5;1695:9;:21::i;:::-;1690:319;;-1:-1:-1;1732:23:109;;;;;;;;:11;:23;;;;;;;;;;;;;1912:18;;1890:19;;;:12;;;:19;;;;;;:40;;;;1944:11;;1690:319;-1:-1:-1;1993:5:109;1986:12;;3776:127;3849:4;3872:19;;;:12;;;;;:19;;;;;;:24;;;3776:127::o;828:2533:73:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;828:2533:73;;;-1:-1:-1;828:2533:73;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155Receiver":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155Receiver","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"_Available since v3.1._","kind":"dev","methods":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":{"details":"Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` (i.e. 0xbc197c81, or its own function selector).","params":{"data":"Additional data with no specified format","from":"The address which previously owned the token","ids":"An array containing ids of each token being transferred (order and length must match values array)","operator":"The address which initiated the batch transfer (i.e. msg.sender)","values":"An array containing amounts of each token being transferred (order and length must match ids array)"},"returns":{"_0":"`bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed"}},"onERC1155Received(address,address,uint256,uint256,bytes)":{"details":"Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` (i.e. 0xf23a6e61, or its own function selector).","params":{"data":"Additional data with no specified format","from":"The address which previously owned the token","id":"The ID of the token being transferred","operator":"The address which initiated the transfer (i.e. msg.sender)","value":"The amount of tokens being transferred"},"returns":{"_0":"`bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed"}},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":"0xbc197c81","onERC1155Received(address,address,uint256,uint256,bytes)":"0xf23a6e61","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC1155/ERC1155Receiver.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1155ReceiverMock":{"abi":[{"inputs":[{"internalType":"bytes4","name":"recRetval","type":"bytes4"},{"internalType":"bool","name":"recReverts","type":"bool"},{"internalType":"bytes4","name":"batRetval","type":"bytes4"},{"internalType":"bool","name":"batReverts","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"gas","type":"uint256"}],"name":"BatchReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"gas","type":"uint256"}],"name":"Received","type":"event"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"registerInterface","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1155ReceiverMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5060405161076e38038061076e8339818101604052608081101561003357600080fd5b508051602082015160408301516060909301519192909161005a6301ffc9a760e01b6100c4565b6001805463ffffffff191660e095861c1760ff60201b1916640100000000941515949094029390931763ffffffff60281b1916650100000000009290941c919091029290921760ff60481b1916690100000000000000000092151592909202919091179055610148565b6001600160e01b03198082161415610123576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610617806101576000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806301ffc9a714610051578063214cdb801461008c578063bc197c81146100b5578063f23a6e61146101f9575b600080fd5b6100786004803603602081101561006757600080fd5b50356001600160e01b03191661028c565b604080519115158252519081900360200190f35b6100b3600480360360208110156100a257600080fd5b50356001600160e01b0319166102ab565b005b6101dc600480360360a08110156100cb57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156100fe57600080fd5b82018360208201111561011057600080fd5b803590602001918460208302840111600160201b8311171561013157600080fd5b919390929091602081019035600160201b81111561014e57600080fd5b82018360208201111561016057600080fd5b803590602001918460208302840111600160201b8311171561018157600080fd5b919390929091602081019035600160201b81111561019e57600080fd5b8201836020820111156101b057600080fd5b803590602001918460018302840111600160201b831117156101d157600080fd5b5090925090506102b7565b604080516001600160e01b03199092168252519081900360200190f35b6101dc600480360360a081101561020f57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561024e57600080fd5b82018360208201111561026057600080fd5b803590602001918460018302840111600160201b8311171561028157600080fd5b50909250905061040e565b6001600160e01b03191660009081526020819052604090205460ff1690565b6102b481610505565b50565b6001546000906901000000000000000000900460ff16156103095760405162461bcd60e51b815260040180806020018281038252602f8152602001806105b3602f913960400191505060405180910390fd5b7f0bcad9224ba33b574e9c85298de2f44b4c80015a21aa5df474896444909863d889898989898989895a604051808a6001600160a01b03168152602001896001600160a01b0316815260200180602001806020018060200185815260200184810384528b8b82818152602001925060200280828437600083820152601f01601f19169091018581038452898152602090810191508a908a0280828437600083820152601f01601f191690910185810383528781526020019050878780828437600083820152604051601f909101601f19169092018290039e50909c50505050505050505050505050a15060015465010000000000900460e01b98975050505050505050565b600154600090600160201b900460ff161561045a5760405162461bcd60e51b815260040180806020018281038252602981526020018061058a6029913960400191505060405180910390fd5b7f20dfa9f79060c8c4d7fe892c97c71bcf6e3b63d1dcf66fea7aefc0211628cf298787878787875a60405180886001600160a01b03168152602001876001600160a01b03168152602001868152602001858152602001806020018381526020018281038252858582818152602001925080828437600083820152604051601f909101601f19169092018290039a509098505050505050505050a15060015460e01b9695505050505050565b6001600160e01b03198082161415610564576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff1916600117905556fe4552433131353552656365697665724d6f636b3a20726576657274696e67206f6e20726563656976654552433131353552656365697665724d6f636b3a20726576657274696e67206f6e2062617463682072656365697665a264697066735822122078f6f17fb3d2f14a65863547621a0ce793e6f029ac8f3f54b6bdf071728c93e164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":{"details":"Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` (i.e. 0xbc197c81, or its own function selector).","params":{"data":"Additional data with no specified format","from":"The address which previously owned the token","ids":"An array containing ids of each token being transferred (order and length must match values array)","operator":"The address which initiated the batch transfer (i.e. msg.sender)","values":"An array containing amounts of each token being transferred (order and length must match ids array)"},"returns":{"_0":"`bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed"}},"onERC1155Received(address,address,uint256,uint256,bytes)":{"details":"Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` (i.e. 0xf23a6e61, or its own function selector).","params":{"data":"Additional data with no specified format","from":"The address which previously owned the token","id":"The ID of the token being transferred","operator":"The address which initiated the transfer (i.e. msg.sender)","value":"The amount of tokens being transferred"},"returns":{"_0":"`bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed"}},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":"0xbc197c81","onERC1155Received(address,address,uint256,uint256,bytes)":"0xf23a6e61","registerInterface(bytes4)":"0x214cdb80","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806301ffc9a714610051578063214cdb801461008c578063bc197c81146100b5578063f23a6e61146101f9575b600080fd5b6100786004803603602081101561006757600080fd5b50356001600160e01b03191661028c565b604080519115158252519081900360200190f35b6100b3600480360360208110156100a257600080fd5b50356001600160e01b0319166102ab565b005b6101dc600480360360a08110156100cb57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156100fe57600080fd5b82018360208201111561011057600080fd5b803590602001918460208302840111600160201b8311171561013157600080fd5b919390929091602081019035600160201b81111561014e57600080fd5b82018360208201111561016057600080fd5b803590602001918460208302840111600160201b8311171561018157600080fd5b919390929091602081019035600160201b81111561019e57600080fd5b8201836020820111156101b057600080fd5b803590602001918460018302840111600160201b831117156101d157600080fd5b5090925090506102b7565b604080516001600160e01b03199092168252519081900360200190f35b6101dc600480360360a081101561020f57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b81111561024e57600080fd5b82018360208201111561026057600080fd5b803590602001918460018302840111600160201b8311171561028157600080fd5b50909250905061040e565b6001600160e01b03191660009081526020819052604090205460ff1690565b6102b481610505565b50565b6001546000906901000000000000000000900460ff16156103095760405162461bcd60e51b815260040180806020018281038252602f8152602001806105b3602f913960400191505060405180910390fd5b7f0bcad9224ba33b574e9c85298de2f44b4c80015a21aa5df474896444909863d889898989898989895a604051808a6001600160a01b03168152602001896001600160a01b0316815260200180602001806020018060200185815260200184810384528b8b82818152602001925060200280828437600083820152601f01601f19169091018581038452898152602090810191508a908a0280828437600083820152601f01601f191690910185810383528781526020019050878780828437600083820152604051601f909101601f19169092018290039e50909c50505050505050505050505050a15060015465010000000000900460e01b98975050505050505050565b600154600090600160201b900460ff161561045a5760405162461bcd60e51b815260040180806020018281038252602981526020018061058a6029913960400191505060405180910390fd5b7f20dfa9f79060c8c4d7fe892c97c71bcf6e3b63d1dcf66fea7aefc0211628cf298787878787875a60405180886001600160a01b03168152602001876001600160a01b03168152602001868152602001858152602001806020018381526020018281038252858582818152602001925080828437600083820152604051601f909101601f19169092018290039a509098505050505050505050a15060015460e01b9695505050505050565b6001600160e01b03198082161415610564576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff1916600117905556fe4552433131353552656365697665724d6f636b3a20726576657274696e67206f6e20726563656976654552433131353552656365697665724d6f636b3a20726576657274696e67206f6e2062617463682072656365697665a264697066735822122078f6f17fb3d2f14a65863547621a0ce793e6f029ac8f3f54b6bdf071728c93e164736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC1155ReceiverMock.sol","sourcemap":"134:1529:31:-:0;;;544:279;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;544:279:31;;;;;;;;;;;;;;;;;;;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;694:10:31;:22;;-1:-1:-1;;694:22:31;;;;;;-1:-1:-1;;;;726:24:31;;;;;;;;;;;;;-1:-1:-1;;;;760:22:31;;;;;;;;;;;;;;-1:-1:-1;;;;792:24:31;;;;;;;;;;;;;;;134:1529;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;134:1529:31:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC165":{"abi":[{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC165","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Implementation of the {IERC165} interface. Contracts may inherit from this and call {_registerInterface} to declare their support of an interface.","kind":"dev","methods":{"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}},"stateVariables":{"_supportedInterfaces":{"details":"Mapping of interface ids to whether or not it's supported."}},"version":1},"methodIdentifiers":{"supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/introspection/ERC165.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC165Checker":{"abi":[],"contractName":"ERC165Checker","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b183306ce0802e1555165f8e90038f93b66b6383c6b4925d983b5e98dd2c403f64736f6c634300060c0033"},"devdoc":{"details":"Library used to query support of an interface declared via {IERC165}. Note that these functions return the actual result of the query: they do not `revert` if an interface is not supported. It is up to the caller to decide what to do in these cases.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b183306ce0802e1555165f8e90038f93b66b6383c6b4925d983b5e98dd2c403f64736f6c634300060c0033"},"sourceId":"contracts/introspection/ERC165Checker.sol","sourcemap":"336:4192:11:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC165CheckerMock":{"abi":[{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes4[]","name":"interfaceIds","type":"bytes4[]"}],"name":"supportsAllInterfaces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"supportsERC165","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC165CheckerMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506103eb806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634b9dd90414610046578063c398a9251461010d578063d905700714610133575b600080fd5b6100f96004803603604081101561005c57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561008757600080fd5b82018360208201111561009957600080fd5b803590602001918460208302840111640100000000831117156100bb57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610169945050505050565b604080519115158252519081900360200190f35b6100f96004803603602081101561012357600080fd5b50356001600160a01b0316610187565b6100f96004803603604081101561014957600080fd5b5080356001600160a01b031690602001356001600160e01b03191661019b565b600061017e6001600160a01b038416836101b0565b90505b92915050565b6000610181826001600160a01b0316610210565b600061017e6001600160a01b03841683610243565b60006101bb83610210565b6101c757506000610181565b60005b8251811015610206576101f0848483815181106101e357fe5b602002602001015161025b565b6101fe576000915050610181565b6001016101ca565b5060019392505050565b6000610223826301ffc9a760e01b61025b565b8015610181575061023c826001600160e01b031961025b565b1592915050565b600061024e83610210565b801561017e575061017e83835b600080600061026a8585610281565b915091508180156102785750805b95945050505050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166301ffc9a760e01b1781529151815160009384939284926060926001600160a01b038a169261753092879282918083835b602083106103095780518252601f1990920191602091820191016102ea565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303818686fa925050503d806000811461036a576040519150601f19603f3d011682016040523d82523d6000602084013e61036f565b606091505b509150915060208151101561038d57600080945094505050506103ae565b818180602001905160208110156103a357600080fd5b505190955093505050505b925092905056fea2646970667358221220791baa16d8358b0ac6c7261efb396bd49cabf74de769a5c8ff8c08f22c9b0f4164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"supportsAllInterfaces(address,bytes4[])":"0x4b9dd904","supportsERC165(address)":"0xc398a925","supportsInterface(address,bytes4)":"0xd9057007"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634b9dd90414610046578063c398a9251461010d578063d905700714610133575b600080fd5b6100f96004803603604081101561005c57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561008757600080fd5b82018360208201111561009957600080fd5b803590602001918460208302840111640100000000831117156100bb57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610169945050505050565b604080519115158252519081900360200190f35b6100f96004803603602081101561012357600080fd5b50356001600160a01b0316610187565b6100f96004803603604081101561014957600080fd5b5080356001600160a01b031690602001356001600160e01b03191661019b565b600061017e6001600160a01b038416836101b0565b90505b92915050565b6000610181826001600160a01b0316610210565b600061017e6001600160a01b03841683610243565b60006101bb83610210565b6101c757506000610181565b60005b8251811015610206576101f0848483815181106101e357fe5b602002602001015161025b565b6101fe576000915050610181565b6001016101ca565b5060019392505050565b6000610223826301ffc9a760e01b61025b565b8015610181575061023c826001600160e01b031961025b565b1592915050565b600061024e83610210565b801561017e575061017e83835b600080600061026a8585610281565b915091508180156102785750805b95945050505050565b604080516001600160e01b0319831660248083019190915282518083039091018152604490910182526020810180516001600160e01b03166301ffc9a760e01b1781529151815160009384939284926060926001600160a01b038a169261753092879282918083835b602083106103095780518252601f1990920191602091820191016102ea565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303818686fa925050503d806000811461036a576040519150601f19603f3d011682016040523d82523d6000602084013e61036f565b606091505b509150915060208151101561038d57600080945094505050506103ae565b818180602001905160208110156103a357600080fd5b505190955093505050505b925092905056fea2646970667358221220791baa16d8358b0ac6c7261efb396bd49cabf74de769a5c8ff8c08f22c9b0f4164736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC165CheckerMock.sol","sourcemap":"104:526:34:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC165InterfacesSupported":{"abi":[{"inputs":[{"internalType":"bytes4[]","name":"interfaceIds","type":"bytes4[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"INTERFACE_ID_ERC165","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC165InterfacesSupported","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506040516102af3803806102af8339818101604052602081101561003357600080fd5b810190808051604051939291908464010000000082111561005357600080fd5b90830190602082018581111561006857600080fd5b825186602082028301116401000000008211171561008557600080fd5b82525081516020918201928201910280838360005b838110156100b257818101518382015260200161009a565b505050509050016040525050506100d56301ffc9a760e01b61011260201b60201c565b60005b815181101561010b576101038282815181106100f057fe5b602002602001015161011260201b60201c565b6001016100d8565b5050610180565b6001600160e01b0319808216141561015b5760405162461bcd60e51b815260040180806020018281038252602f815260200180610280602f913960400191505060405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b60f28061018e6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c14606f575b600080fd5b605b60048036036020811015604b57600080fd5b50356001600160e01b0319166092565b604080519115158252519081900360200190f35b607560b1565b604080516001600160e01b03199092168252519081900360200190f35b6001600160e01b03191660009081526020819052604090205460ff1690565b6301ffc9a760e01b8156fea26469706673582212205b0212c041577e38b114c28bc9b1cf98a5fc05699c310da8125b2141d520935d64736f6c634300060c0033455243313635496e7465726661636573537570706f727465643a20696e76616c696420696e74657266616365206964"},"devdoc":{"kind":"dev","methods":{"supportsInterface(bytes4)":{"details":"Implement supportsInterface(bytes4) using a lookup table."}},"version":1},"methodIdentifiers":{"INTERFACE_ID_ERC165()":"0x34d7006c","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c14606f575b600080fd5b605b60048036036020811015604b57600080fd5b50356001600160e01b0319166092565b604080519115158252519081900360200190f35b607560b1565b604080516001600160e01b03199092168252519081900360200190f35b6001600160e01b03191660009081526020819052604090205460ff1690565b6301ffc9a760e01b8156fea26469706673582212205b0212c041577e38b114c28bc9b1cf98a5fc05699c310da8125b2141d520935d64736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC165/ERC165InterfacesSupported.sol","sourcemap":"1693:254:32:-:0;;;1769:176;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1769:176:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1123:39;815:10;1142:19;;1123:18;;;:39;;:::i;:::-;1834:9;1829:110;1853:12;:19;1849:1;:23;1829:110;;;1893:35;1912:12;1925:1;1912:15;;;;;;;;;;;;;;1893:18;;;:35;;:::i;:::-;1874:3;;1829:110;;;;1769:176;1693:254;;1480:209;-1:-1:-1;;;;;;1555:25:32;;;;;1547:85;;;;-1:-1:-1;;;1547:85:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1642:33:32;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1642:40:32;1678:4;1642:40;;;1480:209::o;1693:254::-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC165Mock":{"abi":[{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"registerInterface","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"ERC165Mock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506100216301ffc9a760e01b610026565b6100aa565b6001600160e01b03198082161415610085576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b610184806100b96000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806301ffc9a71461003b578063214cdb8014610076575b600080fd5b6100626004803603602081101561005157600080fd5b50356001600160e01b03191661009f565b604080519115158252519081900360200190f35b61009d6004803603602081101561008c57600080fd5b50356001600160e01b0319166100be565b005b6001600160e01b03191660009081526020819052604090205460ff1690565b6100c7816100ca565b50565b6001600160e01b03198082161415610129576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff1916600117905556fea2646970667358221220b4ce134c994c223600829a467f1328003020aabb3785fe072d91691000bcee7964736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"registerInterface(bytes4)":"0x214cdb80","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100365760003560e01c806301ffc9a71461003b578063214cdb8014610076575b600080fd5b6100626004803603602081101561005157600080fd5b50356001600160e01b03191661009f565b604080519115158252519081900360200190f35b61009d6004803603602081101561008c57600080fd5b50356001600160e01b0319166100be565b005b6001600160e01b03191660009081526020819052604090205460ff1690565b6100c7816100ca565b50565b6001600160e01b03198082161415610129576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff1916600117905556fea2646970667358221220b4ce134c994c223600829a467f1328003020aabb3785fe072d91691000bcee7964736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC165Mock.sol","sourcemap":"97:140:35:-:0;;;;;;;;;;;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;97:140:35;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;97:140:35:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC165NotSupported":{"abi":[],"contractName":"ERC165NotSupported","deploymentBytecode":{"bytecode":"0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea264697066735822122052721c9cc0b4003fd69cff8bcb94d7851091a497e7e5a756fc4637430458028764736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x6080604052600080fdfea264697066735822122052721c9cc0b4003fd69cff8bcb94d7851091a497e7e5a756fc4637430458028764736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC165/ERC165NotSupported.sol","sourcemap":"58:31:33:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC1820Implementer":{"abi":[{"inputs":[{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"canImplementInterfaceForAddress","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}],"contractName":"ERC1820Implementer","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610111806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b605660048036036040811015604157600080fd5b50803590602001356001600160a01b03166068565b60408051918252519081900360200190f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16609557600060d4565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b939250505056fea264697066735822122015fe6f9037ca52b8c1bc2ce5ae62724367ce1540374713e4face6cb839fe448e64736f6c634300060c0033"},"devdoc":{"details":"Implementation of the {IERC1820Implementer} interface. Contracts may inherit from this and call {_registerInterfaceForAddress} to declare their willingness to be implementers. {IERC1820Registry-setInterfaceImplementer} should then be called for the registration to be complete.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{"canImplementInterfaceForAddress(bytes32,address)":"0x249cb3fa"},"runtimeBytecode":{"bytecode":"0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b605660048036036040811015604157600080fd5b50803590602001356001600160a01b03166068565b60408051918252519081900360200190f35b6000828152602081815260408083206001600160a01b038516845290915281205460ff16609557600060d4565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b939250505056fea264697066735822122015fe6f9037ca52b8c1bc2ce5ae62724367ce1540374713e4face6cb839fe448e64736f6c634300060c0033"},"sourceId":"contracts/introspection/ERC1820Implementer.sol","sourcemap":"404:954:12:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{"canImplementInterfaceForAddress(bytes32,address)":{"notice":"See {IERC1820Implementer-canImplementInterfaceForAddress}."}},"version":1}},"ERC1820ImplementerMock":{"abi":[{"inputs":[{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"canImplementInterfaceForAddress","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"registerInterfaceForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC1820ImplementerMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5061018e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063249cb3fa1461003b5780635536e45d14610079575b600080fd5b6100676004803603604081101561005157600080fd5b50803590602001356001600160a01b03166100a7565b60408051918252519081900360200190f35b6100a56004803603604081101561008f57600080fd5b50803590602001356001600160a01b031661011c565b005b6000828152602081815260408083206001600160a01b038516845290915281205460ff166100d6576000610115565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b9392505050565b610126828261012a565b5050565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff1916600117905556fea2646970667358221220136ed4cef848dbd1603f584a69cafbefb0c7a473892a4960cfd0bbc5eec2b13c64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"canImplementInterfaceForAddress(bytes32,address)":"0x249cb3fa","registerInterfaceForAddress(bytes32,address)":"0x5536e45d"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063249cb3fa1461003b5780635536e45d14610079575b600080fd5b6100676004803603604081101561005157600080fd5b50803590602001356001600160a01b03166100a7565b60408051918252519081900360200190f35b6100a56004803603604081101561008f57600080fd5b50803590602001356001600160a01b031661011c565b005b6000828152602081815260408083206001600160a01b038516845290915281205460ff166100d6576000610115565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b9392505050565b610126828261012a565b5050565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff1916600117905556fea2646970667358221220136ed4cef848dbd1603f584a69cafbefb0c7a473892a4960cfd0bbc5eec2b13c64736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC1820ImplementerMock.sol","sourcemap":"109:215:36:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{"canImplementInterfaceForAddress(bytes32,address)":{"notice":"See {IERC1820Implementer-canImplementInterfaceForAddress}."}},"version":1}},"ERC20":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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"}],"contractName":"ERC20","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5060405162000c6238038062000c628339818101604052604081101561003557600080fd5b810190808051604051939291908464010000000082111561005557600080fd5b90830190602082018581111561006a57600080fd5b825164010000000081118282018810171561008457600080fd5b82525081516020918201929091019080838360005b838110156100b1578181015183820152602001610099565b50505050905090810190601f1680156100de5780820380516001836020036101000a031916815260200191505b506040526020018051604051939291908464010000000082111561010157600080fd5b90830190602082018581111561011657600080fd5b825164010000000081118282018810171561013057600080fd5b82525081516020918201929091019080838360005b8381101561015d578181015183820152602001610145565b50505050905090810190601f16801561018a5780820380516001836020036101000a031916815260200191505b50604052505082516101a4915060039060208501906101cd565b5080516101b89060049060208401906101cd565b50506005805460ff1916601217905550610260565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061020e57805160ff191683800117855561023b565b8280016001018555821561023b579182015b8281111561023b578251825591602001919060010190610220565b5061024792915061024b565b5090565b5b80821115610247576000815560010161024c565b6109f280620002706000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610573565b8484610577565b50600192915050565b60025490565b600061037f848484610663565b6103ef8461038b610573565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c9610573565b6001600160a01b0316815260208101919091526040016000205491906107be565b610577565b5060019392505050565b60055460ff1690565b600061036361040f610573565b846103ea8560016000610420610573565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610855565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d9610573565b846103ea856040518060600160405280602581526020016109986025913960016000610503610573565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906107be565b6000610363610541610573565b8484610663565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105bc5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106015760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106a85760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b0382166106ed5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6106f88383836108b6565b61073581604051806060016040528060268152602001610901602691396001600160a01b03861660009081526020819052604090205491906107be565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107649082610855565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561084d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108af576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ac724e2051d163ad8f1167bfe4e104a20db7ea8ec6a50ca266536f15613da74164736f6c634300060c0033"},"devdoc":{"details":"Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How to implement supply mechanisms]. We have followed general OpenZeppelin guidelines: functions revert instead of returning `false` on failure. This behavior is nonetheless conventional and does not conflict with the expectations of ERC20 applications. Additionally, an {Approval} event is emitted on calls to {transferFrom}. This allows applications to reconstruct the allowance for all accounts just by listening to said events. Other implementations of the EIP may not emit these events, as it isn't required by the specification. Finally, the non-standard {decreaseAllowance} and {increaseAllowance} functions have been added to mitigate the well-known issues around setting allowances. See {IERC20-approve}.","kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"constructor":{"details":"Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610573565b8484610577565b50600192915050565b60025490565b600061037f848484610663565b6103ef8461038b610573565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c9610573565b6001600160a01b0316815260208101919091526040016000205491906107be565b610577565b5060019392505050565b60055460ff1690565b600061036361040f610573565b846103ea8560016000610420610573565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610855565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d9610573565b846103ea856040518060600160405280602581526020016109986025913960016000610503610573565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906107be565b6000610363610541610573565b8484610663565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105bc5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106015760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106a85760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b0382166106ed5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6106f88383836108b6565b61073581604051806060016040528060268152602001610901602691396001600160a01b03861660009081526020819052604090205491906107be565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107649082610855565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561084d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108af576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ac724e2051d163ad8f1167bfe4e104a20db7ea8ec6a50ca266536f15613da74164736f6c634300060c0033"},"sourceId":"contracts/token/ERC20/ERC20.sol","sourcemap":"1345:9446:84:-:0;;;2013:141;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2013:141:84;;;;;;;;;;-1:-1:-1;2013:141:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2013:141:84;;;;;;;;;;-1:-1:-1;2013:141:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2013:141:84;;-1:-1:-1;;2085:12:84;;;;-1:-1:-1;2085:5:84;;:12;;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;1345:9446:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1345:9446:84;;;-1:-1:-1;1345:9446:84;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20Burnable":{"abi":[{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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"}],"contractName":"ERC20Burnable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Extension of {ERC20} that allows token holders to destroy both their own tokens and those that they have an allowance for, in a way that can be recognized off-chain (via event analysis).","kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"burn(uint256)":{"details":"Destroys `amount` tokens from the caller. See {ERC20-_burn}."},"burnFrom(address,uint256)":{"details":"Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","burn(uint256)":"0x42966c68","burnFrom(address,uint256)":"0x79cc6790","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC20/ERC20Burnable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20BurnableMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"initialAccount","type":"address"},{"internalType":"uint256","name":"initialBalance","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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"}],"contractName":"ERC20BurnableMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200109438038062001094833981810160405260808110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604090815260208281015192909101518651929450925085918591620001c59160039185019062000377565b508051620001db90600490602084019062000377565b50506005805460ff1916601217905550620001f7828262000201565b5050505062000413565b6001600160a01b0382166200025d576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6200026b6000838362000310565b62000287816002546200031560201b620006521790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620002ba9183906200065262000315821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b60008282018381101562000370576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003ba57805160ff1916838001178555620003ea565b82800160010185558215620003ea579182015b82811115620003ea578251825591602001919060010190620003cd565b50620003f8929150620003fc565b5090565b5b80821115620003f85760008155600101620003fd565b610c7180620004236000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b411461029c578063a457c2d7146102a4578063a9059cbb146102d0578063dd62ed3e146102fc576100cf565b806342966c681461022b57806370a082311461024a57806379cc679014610270576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e157806339509351146101ff575b600080fd5b6100dc61032a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103c0565b604080519115158252519081900360200190f35b6101996103dd565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103e3565b6101e961046a565b6040805160ff9092168252519081900360200190f35b61017d6004803603604081101561021557600080fd5b506001600160a01b038135169060200135610473565b6102486004803603602081101561024157600080fd5b50356104c1565b005b6101996004803603602081101561026057600080fd5b50356001600160a01b03166104d5565b6102486004803603604081101561028657600080fd5b506001600160a01b0381351690602001356104f0565b6100dc61054a565b61017d600480360360408110156102ba57600080fd5b506001600160a01b0381351690602001356105ab565b61017d600480360360408110156102e657600080fd5b506001600160a01b038135169060200135610613565b6101996004803603604081101561031257600080fd5b506001600160a01b0381358116916020013516610627565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b65780601f1061038b576101008083540402835291602001916103b6565b820191906000526020600020905b81548152906001019060200180831161039957829003601f168201915b5050505050905090565b60006103d46103cd6106b3565b84846106b7565b50600192915050565b60025490565b60006103f08484846107a3565b610460846103fc6106b3565b61045b85604051806060016040528060288152602001610b61602891396001600160a01b038a1660009081526001602052604081209061043a6106b3565b6001600160a01b0316815260208101919091526040016000205491906108fe565b6106b7565b5060019392505050565b60055460ff1690565b60006103d46104806106b3565b8461045b85600160006104916106b3565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610652565b6104d26104cc6106b3565b82610995565b50565b6001600160a01b031660009081526020819052604090205490565b600061052782604051806060016040528060248152602001610b89602491396105208661051b6106b3565b610627565b91906108fe565b905061053b836105356106b3565b836106b7565b6105458383610995565b505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b65780601f1061038b576101008083540402835291602001916103b6565b60006103d46105b86106b3565b8461045b85604051806060016040528060258152602001610c1760259139600160006105e26106b3565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906108fe565b60006103d46106206106b3565b84846107a3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156106ac576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166106fc5760405162461bcd60e51b8152600401808060200182810382526024815260200180610bf36024913960400191505060405180910390fd5b6001600160a01b0382166107415760405162461bcd60e51b8152600401808060200182810382526022815260200180610b196022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107e85760405162461bcd60e51b8152600401808060200182810382526025815260200180610bce6025913960400191505060405180910390fd5b6001600160a01b03821661082d5760405162461bcd60e51b8152600401808060200182810382526023815260200180610ad46023913960400191505060405180910390fd5b610838838383610545565b61087581604051806060016040528060268152602001610b3b602691396001600160a01b03861660009081526020819052604090205491906108fe565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108a49082610652565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561098d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561095257818101518382015260200161093a565b50505050905090810190601f16801561097f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166109da5760405162461bcd60e51b8152600401808060200182810382526021815260200180610bad6021913960400191505060405180910390fd5b6109e682600083610545565b610a2381604051806060016040528060228152602001610af7602291396001600160a01b03851660009081526020819052604090205491906108fe565b6001600160a01b038316600090815260208190526040902055600254610a499082610a91565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60006106ac83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108fe56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122045b37c8e0a29a8736fa80a71bcdc0128701a4a9673236a7c5b1cea5d905df3b264736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"burn(uint256)":{"details":"Destroys `amount` tokens from the caller. See {ERC20-_burn}."},"burnFrom(address,uint256)":{"details":"Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","burn(uint256)":"0x42966c68","burnFrom(address,uint256)":"0x79cc6790","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b411461029c578063a457c2d7146102a4578063a9059cbb146102d0578063dd62ed3e146102fc576100cf565b806342966c681461022b57806370a082311461024a57806379cc679014610270576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e157806339509351146101ff575b600080fd5b6100dc61032a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103c0565b604080519115158252519081900360200190f35b6101996103dd565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103e3565b6101e961046a565b6040805160ff9092168252519081900360200190f35b61017d6004803603604081101561021557600080fd5b506001600160a01b038135169060200135610473565b6102486004803603602081101561024157600080fd5b50356104c1565b005b6101996004803603602081101561026057600080fd5b50356001600160a01b03166104d5565b6102486004803603604081101561028657600080fd5b506001600160a01b0381351690602001356104f0565b6100dc61054a565b61017d600480360360408110156102ba57600080fd5b506001600160a01b0381351690602001356105ab565b61017d600480360360408110156102e657600080fd5b506001600160a01b038135169060200135610613565b6101996004803603604081101561031257600080fd5b506001600160a01b0381358116916020013516610627565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b65780601f1061038b576101008083540402835291602001916103b6565b820191906000526020600020905b81548152906001019060200180831161039957829003601f168201915b5050505050905090565b60006103d46103cd6106b3565b84846106b7565b50600192915050565b60025490565b60006103f08484846107a3565b610460846103fc6106b3565b61045b85604051806060016040528060288152602001610b61602891396001600160a01b038a1660009081526001602052604081209061043a6106b3565b6001600160a01b0316815260208101919091526040016000205491906108fe565b6106b7565b5060019392505050565b60055460ff1690565b60006103d46104806106b3565b8461045b85600160006104916106b3565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610652565b6104d26104cc6106b3565b82610995565b50565b6001600160a01b031660009081526020819052604090205490565b600061052782604051806060016040528060248152602001610b89602491396105208661051b6106b3565b610627565b91906108fe565b905061053b836105356106b3565b836106b7565b6105458383610995565b505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103b65780601f1061038b576101008083540402835291602001916103b6565b60006103d46105b86106b3565b8461045b85604051806060016040528060258152602001610c1760259139600160006105e26106b3565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906108fe565b60006103d46106206106b3565b84846107a3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156106ac576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166106fc5760405162461bcd60e51b8152600401808060200182810382526024815260200180610bf36024913960400191505060405180910390fd5b6001600160a01b0382166107415760405162461bcd60e51b8152600401808060200182810382526022815260200180610b196022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107e85760405162461bcd60e51b8152600401808060200182810382526025815260200180610bce6025913960400191505060405180910390fd5b6001600160a01b03821661082d5760405162461bcd60e51b8152600401808060200182810382526023815260200180610ad46023913960400191505060405180910390fd5b610838838383610545565b61087581604051806060016040528060268152602001610b3b602691396001600160a01b03861660009081526020819052604090205491906108fe565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108a49082610652565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561098d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561095257818101518382015260200161093a565b50505050905090810190601f16801561097f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166109da5760405162461bcd60e51b8152600401808060200182810382526021815260200180610bad6021913960400191505060405180910390fd5b6109e682600083610545565b610a2381604051806060016040528060228152602001610af7602291396001600160a01b03851660009081526020819052604090205491906108fe565b6001600160a01b038316600090815260208190526040902055600254610a499082610a91565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60006106ac83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108fe56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122045b37c8e0a29a8736fa80a71bcdc0128701a4a9673236a7c5b1cea5d905df3b264736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC20BurnableMock.sol","sourcemap":"102:274:37:-:0;;;152:222;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;152:222:37;;;;;;;;;;-1:-1:-1;152:222:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;152:222:37;;;;;;;;;;-1:-1:-1;152:222:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;152:222:37;;;;;;;;;;;;;;2085:12:84;;152:222:37;;-1:-1:-1;152:222:37;-1:-1:-1;306:4:37;;312:6;;2085:12:84;;:5;;:12;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;330:37:37::1;336:14:::0;352;330:5:::1;:37::i;:::-;152:222:::0;;;;102:274;;7835:370:84;-1:-1:-1;;;;;7918:21:84;;7910:65;;;;;-1:-1:-1;;;7910:65:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;7986:49;8015:1;8019:7;8028:6;7986:20;:49::i;:::-;8061:24;8078:6;8061:12;;:16;;;;;;:24;;;;:::i;:::-;8046:12;:39;-1:-1:-1;;;;;8116:18:84;;:9;:18;;;;;;;;;;;;:30;;8139:6;;8116:22;;;;;:30;;:::i;:::-;-1:-1:-1;;;;;8095:18:84;;:9;:18;;;;;;;;;;;:51;;;;8161:37;;;;;;;8095:18;;:9;;8161:37;;;;;;;;;;7835:370;;:::o;10697:92::-;;;;:::o;874:176:17:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:17:o;102:274:37:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;102:274:37;;;-1:-1:-1;102:274:37;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20Capped":{"abi":[{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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"}],"contractName":"ERC20Capped","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Extension of {ERC20} that adds a cap to the supply of tokens.","kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"cap()":{"details":"Returns the cap on the token's total supply."},"constructor":{"details":"Sets the value of the `cap`. This value is immutable, it can only be set once during construction."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","cap()":"0x355274ea","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC20/ERC20Capped.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20CappedMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"cap","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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"}],"contractName":"ERC20CappedMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b5060405162000ec538038062000ec5833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052602090810151855190935083925085918591620001c0916003919085019062000246565b508051620001d690600490602084019062000246565b50506005805460ff19166012179055508062000239576040805162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a2063617020697320300000000000000000000000604482015290519081900360640190fd5b60065550620002e2915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028957805160ff1916838001178555620002b9565b82800160010185558215620002b9579182015b82811115620002b95782518255916020019190600101906200029c565b50620002c7929150620002cb565b5090565b5b80821115620002c75760008155600101620002cc565b610bd380620002f26000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063395093511161008c57806395d89b411161006657806395d89b4114610287578063a457c2d71461028f578063a9059cbb146102bb578063dd62ed3e146102e7576100cf565b8063395093511461020757806340c10f191461023357806370a0823114610261576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e1578063355274ea146101ff575b600080fd5b6100dc610315565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103ab565b604080519115158252519081900360200190f35b6101996103c8565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103ce565b6101e9610455565b6040805160ff9092168252519081900360200190f35b61019961045e565b61017d6004803603604081101561021d57600080fd5b506001600160a01b038135169060200135610464565b61025f6004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104b2565b005b6101996004803603602081101561027757600080fd5b50356001600160a01b03166104c0565b6100dc6104db565b61017d600480360360408110156102a557600080fd5b506001600160a01b03813516906020013561053c565b61017d600480360360408110156102d157600080fd5b506001600160a01b0381351690602001356105a4565b610199600480360360408110156102fd57600080fd5b506001600160a01b03813581169160200135166105b8565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a15780601f10610376576101008083540402835291602001916103a1565b820191906000526020600020905b81548152906001019060200180831161038457829003601f168201915b5050505050905090565b60006103bf6103b86105e3565b84846105e7565b50600192915050565b60025490565b60006103db8484846106d3565b61044b846103e76105e3565b61044685604051806060016040528060288152602001610b08602891396001600160a01b038a166000908152600160205260408120906104256105e3565b6001600160a01b03168152602081019190915260400160002054919061082e565b6105e7565b5060019392505050565b60055460ff1690565b60065490565b60006103bf6104716105e3565b8461044685600160006104826105e3565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906108c5565b6104bc8282610926565b5050565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a15780601f10610376576101008083540402835291602001916103a1565b60006103bf6105496105e3565b8461044685604051806060016040528060258152602001610b7960259139600160006105736105e3565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061082e565b60006103bf6105b16105e3565b84846106d3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661062c5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b556024913960400191505060405180910390fd5b6001600160a01b0382166106715760405162461bcd60e51b8152600401808060200182810382526022815260200180610ac06022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107185760405162461bcd60e51b8152600401808060200182810382526025815260200180610b306025913960400191505060405180910390fd5b6001600160a01b03821661075d5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a9d6023913960400191505060405180910390fd5b610768838383610a16565b6107a581604051806060016040528060268152602001610ae2602691396001600160a01b038616600090815260208190526040902054919061082e565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107d490826108c5565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108bd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561088257818101518382015260200161086a565b50505050905090810190601f1680156108af5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561091f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610981576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61098d60008383610a16565b60025461099a90826108c5565b6002556001600160a01b0382166000908152602081905260409020546109c090826108c5565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b610a21838383610a97565b6001600160a01b038316610a9757600654610a4482610a3e6103c8565b906108c5565b1115610a97576040805162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015290519081900360640190fd5b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207fa0dadf1f9ff37ff1c0aa3094369e7bfa0265b5df4ed3f75b5cbbc553e0e0a564736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"cap()":{"details":"Returns the cap on the token's total supply."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","cap()":"0x355274ea","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063395093511161008c57806395d89b411161006657806395d89b4114610287578063a457c2d71461028f578063a9059cbb146102bb578063dd62ed3e146102e7576100cf565b8063395093511461020757806340c10f191461023357806370a0823114610261576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e1578063355274ea146101ff575b600080fd5b6100dc610315565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103ab565b604080519115158252519081900360200190f35b6101996103c8565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103ce565b6101e9610455565b6040805160ff9092168252519081900360200190f35b61019961045e565b61017d6004803603604081101561021d57600080fd5b506001600160a01b038135169060200135610464565b61025f6004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104b2565b005b6101996004803603602081101561027757600080fd5b50356001600160a01b03166104c0565b6100dc6104db565b61017d600480360360408110156102a557600080fd5b506001600160a01b03813516906020013561053c565b61017d600480360360408110156102d157600080fd5b506001600160a01b0381351690602001356105a4565b610199600480360360408110156102fd57600080fd5b506001600160a01b03813581169160200135166105b8565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a15780601f10610376576101008083540402835291602001916103a1565b820191906000526020600020905b81548152906001019060200180831161038457829003601f168201915b5050505050905090565b60006103bf6103b86105e3565b84846105e7565b50600192915050565b60025490565b60006103db8484846106d3565b61044b846103e76105e3565b61044685604051806060016040528060288152602001610b08602891396001600160a01b038a166000908152600160205260408120906104256105e3565b6001600160a01b03168152602081019190915260400160002054919061082e565b6105e7565b5060019392505050565b60055460ff1690565b60065490565b60006103bf6104716105e3565b8461044685600160006104826105e3565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906108c5565b6104bc8282610926565b5050565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103a15780601f10610376576101008083540402835291602001916103a1565b60006103bf6105496105e3565b8461044685604051806060016040528060258152602001610b7960259139600160006105736105e3565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061082e565b60006103bf6105b16105e3565b84846106d3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661062c5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b556024913960400191505060405180910390fd5b6001600160a01b0382166106715760405162461bcd60e51b8152600401808060200182810382526022815260200180610ac06022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107185760405162461bcd60e51b8152600401808060200182810382526025815260200180610b306025913960400191505060405180910390fd5b6001600160a01b03821661075d5760405162461bcd60e51b8152600401808060200182810382526023815260200180610a9d6023913960400191505060405180910390fd5b610768838383610a16565b6107a581604051806060016040528060268152602001610ae2602691396001600160a01b038616600090815260208190526040902054919061082e565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107d490826108c5565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156108bd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561088257818101518382015260200161086a565b50505050905090810190601f1680156108af5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561091f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610981576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61098d60008383610a16565b60025461099a90826108c5565b6002556001600160a01b0382166000908152602081905260409020546109c090826108c5565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b610a21838383610a97565b6001600160a01b038316610a9757600654610a4482610a3e6103c8565b906108c5565b1115610a97576040805162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015290519081900360640190fd5b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207fa0dadf1f9ff37ff1c0aa3094369e7bfa0265b5df4ed3f75b5cbbc553e0e0a564736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC20CappedMock.sol","sourcemap":"100:266:38:-:0;;;146:127;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;146:127:38;;;;;;;;;;-1:-1:-1;146:127:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;146:127:38;;;;;;;;;;-1:-1:-1;146:127:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;146:127:38;;;;;;;2085:12:84;;146:127:38;;-1:-1:-1;146:127:38;;-1:-1:-1;235:4:38;;241:6;;2085:12:84;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;416:7:86;408:41;;;;;-1:-1:-1;;;408:41:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;459:4;:10;-1:-1:-1;100:266:38;;-1:-1:-1;;100:266:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;100:266:38;;;-1:-1:-1;100:266:38;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20DecimalsMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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"}],"contractName":"ERC20DecimalsMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b5060405162000cab38038062000cab833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260209081015185519093508592508491620001bd916003918501906200020d565b508051620001d39060049060208401906200020d565b50506005805460ff1916601217905550620001ee81620001f7565b505050620002a9565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200025057805160ff191683800117855562000280565b8280016001018555821562000280579182015b828111156200028057825182559160200191906001019062000263565b506200028e92915062000292565b5090565b5b808211156200028e576000815560010162000293565b6109f280620002b96000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610573565b8484610577565b50600192915050565b60025490565b600061037f848484610663565b6103ef8461038b610573565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c9610573565b6001600160a01b0316815260208101919091526040016000205491906107be565b610577565b5060019392505050565b60055460ff1690565b600061036361040f610573565b846103ea8560016000610420610573565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610855565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d9610573565b846103ea856040518060600160405280602581526020016109986025913960016000610503610573565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906107be565b6000610363610541610573565b8484610663565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105bc5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106015760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106a85760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b0382166106ed5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6106f88383836108b6565b61073581604051806060016040528060268152602001610901602691396001600160a01b03861660009081526020819052604090205491906107be565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107649082610855565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561084d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108af576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122049782dcadd57c6101c7f8186997708b31a8ef6666fc67196022f17859da33eb164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610573565b8484610577565b50600192915050565b60025490565b600061037f848484610663565b6103ef8461038b610573565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c9610573565b6001600160a01b0316815260208101919091526040016000205491906107be565b610577565b5060019392505050565b60055460ff1690565b600061036361040f610573565b846103ea8560016000610420610573565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610855565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d9610573565b846103ea856040518060600160405280602581526020016109986025913960016000610503610573565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906107be565b6000610363610541610573565b8484610663565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105bc5760405162461bcd60e51b81526004018080602001828103825260248152602001806109746024913960400191505060405180910390fd5b6001600160a01b0382166106015760405162461bcd60e51b81526004018080602001828103825260228152602001806108df6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106a85760405162461bcd60e51b815260040180806020018281038252602581526020018061094f6025913960400191505060405180910390fd5b6001600160a01b0382166106ed5760405162461bcd60e51b81526004018080602001828103825260238152602001806108bc6023913960400191505060405180910390fd5b6106f88383836108b6565b61073581604051806060016040528060268152602001610901602691396001600160a01b03861660009081526020819052604090205491906107be565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546107649082610855565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561084d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108af576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122049782dcadd57c6101c7f8186997708b31a8ef6666fc67196022f17859da33eb164736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC20DecimalsMock.sol","sourcemap":"94:183:39:-:0;;;136:139;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;136:139:39;;;;;;;;;;-1:-1:-1;136:139:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;136:139:39;;;;;;;;;;-1:-1:-1;136:139:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;136:139:39;;;;;;;2085:12:84;;136:139:39;;-1:-1:-1;220:4:39;;-1:-1:-1;226:6:39;;2085:12:84;;:5;;:12;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;244:24:39::1;259:8:::0;244:14:::1;:24::i;:::-;136:139:::0;;;94:183;;10022:88:84;10082:9;:21;;-1:-1:-1;;10082:21:84;;;;;;;;;;;;10022:88::o;94:183:39:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;94:183:39;;;-1:-1:-1;94:183:39;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20Mock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"initialAccount","type":"address"},{"internalType":"uint256","name":"initialBalance","type":"uint256"}],"stateMutability":"payable","type":"constructor"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approveInternal","outputs":[],"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"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferInternal","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC20Mock","deploymentBytecode":{"bytecode":"0x6080604052604051620011b8380380620011b8833981810160405260808110156200002957600080fd5b81019080805160405193929190846401000000008211156200004a57600080fd5b9083019060208201858111156200006057600080fd5b82516401000000008111828201881017156200007b57600080fd5b82525081516020918201929091019080838360005b83811015620000aa57818101518382015260200162000090565b50505050905090810190601f168015620000d85780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620000fc57600080fd5b9083019060208201858111156200011257600080fd5b82516401000000008111828201881017156200012d57600080fd5b82525081516020918201929091019080838360005b838110156200015c57818101518382015260200162000142565b50505050905090810190601f1680156200018a5780820380516001836020036101000a031916815260200191505b50604090815260208281015192909101518651929450925085918591620001b79160039185019062000369565b508051620001cd90600490602084019062000369565b50506005805460ff1916601217905550620001e98282620001f3565b5050505062000405565b6001600160a01b0382166200024f576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6200025d6000838362000302565b62000279816002546200030760201b620006b81790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620002ac918390620006b862000307821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b60008282018381101562000362576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003ac57805160ff1916838001178555620003dc565b82800160010185558215620003dc579182015b82811115620003dc578251825591602001919060010190620003bf565b50620003ea929150620003ee565b5090565b5b80821115620003ea5760008155600101620003ef565b610da380620004156000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806340c10f19116100975780639dc29fac116100665780639dc29fac14610319578063a457c2d714610345578063a9059cbb14610371578063dd62ed3e1461039d576100f5565b806340c10f191461028957806356189cb4146102b557806370a08231146102eb57806395d89b4114610311576100f5565b8063222f5be0116100d3578063222f5be0146101d157806323b872dd14610209578063313ce5671461023f578063395093511461025d576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b6101026103cb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b038135169060200135610461565b604080519115158252519081900360200190f35b6101bf61047e565b60408051918252519081900360200190f35b610207600480360360608110156101e757600080fd5b506001600160a01b03813581169160208101359091169060400135610484565b005b6101a36004803603606081101561021f57600080fd5b506001600160a01b03813581169160208101359091169060400135610494565b61024761051b565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561027357600080fd5b506001600160a01b038135169060200135610524565b6102076004803603604081101561029f57600080fd5b506001600160a01b038135169060200135610572565b610207600480360360608110156102cb57600080fd5b506001600160a01b03813581169160208101359091169060400135610580565b6101bf6004803603602081101561030157600080fd5b50356001600160a01b031661058b565b6101026105a6565b6102076004803603604081101561032f57600080fd5b506001600160a01b038135169060200135610607565b6101a36004803603604081101561035b57600080fd5b506001600160a01b038135169060200135610611565b6101a36004803603604081101561038757600080fd5b506001600160a01b038135169060200135610679565b6101bf600480360360408110156103b357600080fd5b506001600160a01b038135811691602001351661068d565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104575780601f1061042c57610100808354040283529160200191610457565b820191906000526020600020905b81548152906001019060200180831161043a57829003601f168201915b5050505050905090565b600061047561046e610719565b848461071d565b50600192915050565b60025490565b61048f838383610809565b505050565b60006104a1848484610809565b610511846104ad610719565b61050c85604051806060016040528060288152602001610cb7602891396001600160a01b038a166000908152600160205260408120906104eb610719565b6001600160a01b031681526020810191909152604001600020549190610964565b61071d565b5060019392505050565b60055460ff1690565b6000610475610531610719565b8461050c8560016000610542610719565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906106b8565b61057c82826109fb565b5050565b61048f83838361071d565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104575780601f1061042c57610100808354040283529160200191610457565b61057c8282610aeb565b600061047561061e610719565b8461050c85604051806060016040528060258152602001610d496025913960016000610648610719565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610964565b6000610475610686610719565b8484610809565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600082820183811015610712576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166107625760405162461bcd60e51b8152600401808060200182810382526024815260200180610d256024913960400191505060405180910390fd5b6001600160a01b0382166107a75760405162461bcd60e51b8152600401808060200182810382526022815260200180610c6f6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661084e5760405162461bcd60e51b8152600401808060200182810382526025815260200180610d006025913960400191505060405180910390fd5b6001600160a01b0382166108935760405162461bcd60e51b8152600401808060200182810382526023815260200180610c2a6023913960400191505060405180910390fd5b61089e83838361048f565b6108db81604051806060016040528060268152602001610c91602691396001600160a01b0386166000908152602081905260409020549190610964565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461090a90826106b8565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109f35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109b85781810151838201526020016109a0565b50505050905090810190601f1680156109e55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610a56576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610a626000838361048f565b600254610a6f90826106b8565b6002556001600160a01b038216600090815260208190526040902054610a9590826106b8565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610b305760405162461bcd60e51b8152600401808060200182810382526021815260200180610cdf6021913960400191505060405180910390fd5b610b3c8260008361048f565b610b7981604051806060016040528060228152602001610c4d602291396001600160a01b0385166000908152602081905260409020549190610964565b6001600160a01b038316600090815260208190526040902055600254610b9f9082610be7565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061071283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061096456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220018f0e222a7ad2a0803af35a085d24af2e45a25df53c09a51bdd7a0ff5f9e63364736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","approveInternal(address,address,uint256)":"0x56189cb4","balanceOf(address)":"0x70a08231","burn(address,uint256)":"0x9dc29fac","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd","transferInternal(address,address,uint256)":"0x222f5be0"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806340c10f19116100975780639dc29fac116100665780639dc29fac14610319578063a457c2d714610345578063a9059cbb14610371578063dd62ed3e1461039d576100f5565b806340c10f191461028957806356189cb4146102b557806370a08231146102eb57806395d89b4114610311576100f5565b8063222f5be0116100d3578063222f5be0146101d157806323b872dd14610209578063313ce5671461023f578063395093511461025d576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b6101026103cb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b038135169060200135610461565b604080519115158252519081900360200190f35b6101bf61047e565b60408051918252519081900360200190f35b610207600480360360608110156101e757600080fd5b506001600160a01b03813581169160208101359091169060400135610484565b005b6101a36004803603606081101561021f57600080fd5b506001600160a01b03813581169160208101359091169060400135610494565b61024761051b565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561027357600080fd5b506001600160a01b038135169060200135610524565b6102076004803603604081101561029f57600080fd5b506001600160a01b038135169060200135610572565b610207600480360360608110156102cb57600080fd5b506001600160a01b03813581169160208101359091169060400135610580565b6101bf6004803603602081101561030157600080fd5b50356001600160a01b031661058b565b6101026105a6565b6102076004803603604081101561032f57600080fd5b506001600160a01b038135169060200135610607565b6101a36004803603604081101561035b57600080fd5b506001600160a01b038135169060200135610611565b6101a36004803603604081101561038757600080fd5b506001600160a01b038135169060200135610679565b6101bf600480360360408110156103b357600080fd5b506001600160a01b038135811691602001351661068d565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104575780601f1061042c57610100808354040283529160200191610457565b820191906000526020600020905b81548152906001019060200180831161043a57829003601f168201915b5050505050905090565b600061047561046e610719565b848461071d565b50600192915050565b60025490565b61048f838383610809565b505050565b60006104a1848484610809565b610511846104ad610719565b61050c85604051806060016040528060288152602001610cb7602891396001600160a01b038a166000908152600160205260408120906104eb610719565b6001600160a01b031681526020810191909152604001600020549190610964565b61071d565b5060019392505050565b60055460ff1690565b6000610475610531610719565b8461050c8560016000610542610719565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906106b8565b61057c82826109fb565b5050565b61048f83838361071d565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104575780601f1061042c57610100808354040283529160200191610457565b61057c8282610aeb565b600061047561061e610719565b8461050c85604051806060016040528060258152602001610d496025913960016000610648610719565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610964565b6000610475610686610719565b8484610809565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600082820183811015610712576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166107625760405162461bcd60e51b8152600401808060200182810382526024815260200180610d256024913960400191505060405180910390fd5b6001600160a01b0382166107a75760405162461bcd60e51b8152600401808060200182810382526022815260200180610c6f6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661084e5760405162461bcd60e51b8152600401808060200182810382526025815260200180610d006025913960400191505060405180910390fd5b6001600160a01b0382166108935760405162461bcd60e51b8152600401808060200182810382526023815260200180610c2a6023913960400191505060405180910390fd5b61089e83838361048f565b6108db81604051806060016040528060268152602001610c91602691396001600160a01b0386166000908152602081905260409020549190610964565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461090a90826106b8565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109f35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109b85781810151838201526020016109a0565b50505050905090810190601f1680156109e55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610a56576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610a626000838361048f565b600254610a6f90826106b8565b6002556001600160a01b038216600090815260208190526040902054610a9590826106b8565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610b305760405162461bcd60e51b8152600401808060200182810382526021815260200180610cdf6021913960400191505060405180910390fd5b610b3c8260008361048f565b610b7981604051806060016040528060228152602001610c4d602291396001600160a01b0385166000908152602081905260409020549190610964565b6001600160a01b038316600090815260208190526040902055600254610b9f9082610be7565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061071283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061096456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220018f0e222a7ad2a0803af35a085d24af2e45a25df53c09a51bdd7a0ff5f9e63364736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC20Mock.sol","sourcemap":"120:720:40:-:0;;;154:230;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;154:230:40;;;;;;;;;;-1:-1:-1;154:230:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;154:230:40;;;;;;;;;;-1:-1:-1;154:230:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;154:230:40;;;;;;;;;;;;;;2085:12:84;;154:230:40;;-1:-1:-1;154:230:40;-1:-1:-1;316:4:40;;322:6;;2085:12:84;;:5;;:12;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;340:37:40::1;346:14:::0;362;340:5:::1;:37::i;:::-;154:230:::0;;;;120:720;;7835:370:84;-1:-1:-1;;;;;7918:21:84;;7910:65;;;;;-1:-1:-1;;;7910:65:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;7986:49;8015:1;8019:7;8028:6;7986:20;:49::i;:::-;8061:24;8078:6;8061:12;;:16;;;;;;:24;;;;:::i;:::-;8046:12;:39;-1:-1:-1;;;;;8116:18:84;;:9;:18;;;;;;;;;;;;:30;;8139:6;;8116:22;;;;;:30;;:::i;:::-;-1:-1:-1;;;;;8095:18:84;;:9;:18;;;;;;;;;;;:51;;;;8161:37;;;;;;;8095:18;;:9;;8161:37;;;;;;;;;;7835:370;;:::o;10697:92::-;;;;:::o;874:176:17:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:17:o;120:720:40:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;120:720:40;;;-1:-1:-1;120:720:40;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20NoReturnMock":{"abi":[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"allowance_","type":"uint256"}],"name":"setAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC20NoReturnMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506101af806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461008a5780633ba93f26146100c0578063a9059cbb1461005c578063dd62ed3e146100dd575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b03813516906020013561011d565b005b610088600480360360608110156100a057600080fd5b506001600160a01b03813581169160208101359091169060400135610126565b610088600480360360208110156100d657600080fd5b5035610130565b61010b600480360360408110156100f357600080fd5b506001600160a01b0381358116916020013516610159565b60408051918252519081900360200190f35b50506000600155565b5050600060015550565b8060008061013c610175565b6001600160a01b0316815260208101919091526040016000205550565b506001600160a01b031660009081526020819052604090205490565b339056fea2646970667358221220b8786d5382ea48c20834c697db1c476e88aea8e6f88940f00e953ed7d3f752a964736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","setAllowance(uint256)":"0x3ba93f26","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461008a5780633ba93f26146100c0578063a9059cbb1461005c578063dd62ed3e146100dd575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b03813516906020013561011d565b005b610088600480360360608110156100a057600080fd5b506001600160a01b03813581169160208101359091169060400135610126565b610088600480360360208110156100d657600080fd5b5035610130565b61010b600480360360408110156100f357600080fd5b506001600160a01b0381358116916020013516610159565b60408051918252519081900360200190f35b50506000600155565b5050600060015550565b8060008061013c610175565b6001600160a01b0316815260208101919091526040016000205550565b506001600160a01b031660009081526020819052604090205490565b339056fea2646970667358221220b8786d5382ea48c20834c697db1c476e88aea8e6f88940f00e953ed7d3f752a964736f6c634300060c0033"},"sourceId":"contracts/mocks/SafeERC20Helper.sol","sourcemap":"1846:757:64:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20Pausable":{"abi":[{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","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"}],"contractName":"ERC20Pausable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"ERC20 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug.","kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","paused()":"0x5c975abb","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC20/ERC20Pausable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20PausableMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"initialAccount","type":"address"},{"internalType":"uint256","name":"initialBalance","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","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":"symbol","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":"recipient","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC20PausableMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b50604051620013cb380380620013cb833981810160405260808110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604090815260208281015192909101518651929450925085918591620001c591600391850190620003ec565b508051620001db906004906020840190620003ec565b50506005805461ff001960ff1990911660121716905550620001fe828262000208565b5050505062000488565b6001600160a01b03821662000264576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620002726000838362000317565b6200028e816002546200037c60201b620006741790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620002c1918390620006746200037c821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6200032f8383836200037760201b620006d51760201c565b62000339620003de565b15620003775760405162461bcd60e51b815260040180806020018281038252602a815260200180620013a1602a913960400191505060405180910390fd5b505050565b600082820183811015620003d7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600554610100900460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200042f57805160ff19168380011785556200045f565b828001600101855582156200045f579182015b828111156200045f57825182559160200191906001019062000442565b506200046d92915062000471565b5090565b5b808211156200046d576000815560010162000472565b610f0980620004986000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80635c975abb116100975780639dc29fac116100665780639dc29fac146102d0578063a457c2d7146102fc578063a9059cbb14610328578063dd62ed3e1461035457610100565b80635c975abb1461029257806370a082311461029a5780638456cb59146102c057806395d89b41146102c857610100565b8063313ce567116100d3578063313ce5671461021257806339509351146102305780633f4ba83a1461025c57806340c10f191461026657610100565b806306fdde0314610105578063095ea7b31461018257806318160ddd146101c257806323b872dd146101dc575b600080fd5b61010d610382565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610418565b604080519115158252519081900360200190f35b6101ca610435565b60408051918252519081900360200190f35b6101ae600480360360608110156101f257600080fd5b506001600160a01b0381358116916020810135909116906040013561043b565b61021a6104c2565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024657600080fd5b506001600160a01b0381351690602001356104cb565b610264610519565b005b6102646004803603604081101561027c57600080fd5b506001600160a01b038135169060200135610523565b6101ae610531565b6101ca600480360360208110156102b057600080fd5b50356001600160a01b031661053f565b61026461055a565b61010d610562565b610264600480360360408110156102e657600080fd5b506001600160a01b0381351690602001356105c3565b6101ae6004803603604081101561031257600080fd5b506001600160a01b0381351690602001356105cd565b6101ae6004803603604081101561033e57600080fd5b506001600160a01b038135169060200135610635565b6101ca6004803603604081101561036a57600080fd5b506001600160a01b0381358116916020013516610649565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561040e5780601f106103e35761010080835404028352916020019161040e565b820191906000526020600020905b8154815290600101906020018083116103f157829003601f168201915b5050505050905090565b600061042c6104256106da565b84846106de565b50600192915050565b60025490565b60006104488484846107ca565b6104b8846104546106da565b6104b385604051806060016040528060288152602001610df3602891396001600160a01b038a166000908152600160205260408120906104926106da565b6001600160a01b031681526020810191909152604001600020549190610925565b6106de565b5060019392505050565b60055460ff1690565b600061042c6104d86106da565b846104b385600160006104e96106da565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610674565b6105216109bc565b565b61052d8282610a60565b5050565b600554610100900460ff1690565b6001600160a01b031660009081526020819052604090205490565b610521610b50565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561040e5780601f106103e35761010080835404028352916020019161040e565b61052d8282610bd8565b600061042c6105da6106da565b846104b385604051806060016040528060258152602001610e8560259139600160006106046106da565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610925565b600061042c6106426106da565b84846107ca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156106ce576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b505050565b3390565b6001600160a01b0383166107235760405162461bcd60e51b8152600401808060200182810382526024815260200180610e616024913960400191505060405180910390fd5b6001600160a01b0382166107685760405162461bcd60e51b8152600401808060200182810382526022815260200180610dab6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661080f5760405162461bcd60e51b8152600401808060200182810382526025815260200180610e3c6025913960400191505060405180910390fd5b6001600160a01b0382166108545760405162461bcd60e51b8152600401808060200182810382526023815260200180610d666023913960400191505060405180910390fd5b61085f838383610cd4565b61089c81604051806060016040528060268152602001610dcd602691396001600160a01b0386166000908152602081905260409020549190610925565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108cb9082610674565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109b45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610979578181015183820152602001610961565b50505050905090810190601f1680156109a65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600554610100900460ff16610a0f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6005805461ff00191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a436106da565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216610abb576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610ac760008383610cd4565b600254610ad49082610674565b6002556001600160a01b038216600090815260208190526040902054610afa9082610674565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600554610100900460ff1615610ba0576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6005805461ff0019166101001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610a436106da565b6001600160a01b038216610c1d5760405162461bcd60e51b8152600401808060200182810382526021815260200180610e1b6021913960400191505060405180910390fd5b610c2982600083610cd4565b610c6681604051806060016040528060228152602001610d89602291396001600160a01b0385166000908152602081905260409020549190610925565b6001600160a01b038316600090815260208190526040902055600254610c8c9082610d23565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b610cdf8383836106d5565b610ce7610531565b156106d55760405162461bcd60e51b815260040180806020018281038252602a815260200180610eaa602a913960400191505060405180910390fd5b60006106ce83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061092556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f45524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564a2646970667358221220addf479ace69620eca8f8a59c71a91863a3109a6db1c8b547dbfc36bd721051864736f6c634300060c003345524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","burn(address,uint256)":"0x9dc29fac","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","pause()":"0x8456cb59","paused()":"0x5c975abb","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd","unpause()":"0x3f4ba83a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101005760003560e01c80635c975abb116100975780639dc29fac116100665780639dc29fac146102d0578063a457c2d7146102fc578063a9059cbb14610328578063dd62ed3e1461035457610100565b80635c975abb1461029257806370a082311461029a5780638456cb59146102c057806395d89b41146102c857610100565b8063313ce567116100d3578063313ce5671461021257806339509351146102305780633f4ba83a1461025c57806340c10f191461026657610100565b806306fdde0314610105578063095ea7b31461018257806318160ddd146101c257806323b872dd146101dc575b600080fd5b61010d610382565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610418565b604080519115158252519081900360200190f35b6101ca610435565b60408051918252519081900360200190f35b6101ae600480360360608110156101f257600080fd5b506001600160a01b0381358116916020810135909116906040013561043b565b61021a6104c2565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024657600080fd5b506001600160a01b0381351690602001356104cb565b610264610519565b005b6102646004803603604081101561027c57600080fd5b506001600160a01b038135169060200135610523565b6101ae610531565b6101ca600480360360208110156102b057600080fd5b50356001600160a01b031661053f565b61026461055a565b61010d610562565b610264600480360360408110156102e657600080fd5b506001600160a01b0381351690602001356105c3565b6101ae6004803603604081101561031257600080fd5b506001600160a01b0381351690602001356105cd565b6101ae6004803603604081101561033e57600080fd5b506001600160a01b038135169060200135610635565b6101ca6004803603604081101561036a57600080fd5b506001600160a01b0381358116916020013516610649565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561040e5780601f106103e35761010080835404028352916020019161040e565b820191906000526020600020905b8154815290600101906020018083116103f157829003601f168201915b5050505050905090565b600061042c6104256106da565b84846106de565b50600192915050565b60025490565b60006104488484846107ca565b6104b8846104546106da565b6104b385604051806060016040528060288152602001610df3602891396001600160a01b038a166000908152600160205260408120906104926106da565b6001600160a01b031681526020810191909152604001600020549190610925565b6106de565b5060019392505050565b60055460ff1690565b600061042c6104d86106da565b846104b385600160006104e96106da565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610674565b6105216109bc565b565b61052d8282610a60565b5050565b600554610100900460ff1690565b6001600160a01b031660009081526020819052604090205490565b610521610b50565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561040e5780601f106103e35761010080835404028352916020019161040e565b61052d8282610bd8565b600061042c6105da6106da565b846104b385604051806060016040528060258152602001610e8560259139600160006106046106da565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610925565b600061042c6106426106da565b84846107ca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000828201838110156106ce576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b505050565b3390565b6001600160a01b0383166107235760405162461bcd60e51b8152600401808060200182810382526024815260200180610e616024913960400191505060405180910390fd5b6001600160a01b0382166107685760405162461bcd60e51b8152600401808060200182810382526022815260200180610dab6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661080f5760405162461bcd60e51b8152600401808060200182810382526025815260200180610e3c6025913960400191505060405180910390fd5b6001600160a01b0382166108545760405162461bcd60e51b8152600401808060200182810382526023815260200180610d666023913960400191505060405180910390fd5b61085f838383610cd4565b61089c81604051806060016040528060268152602001610dcd602691396001600160a01b0386166000908152602081905260409020549190610925565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108cb9082610674565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109b45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610979578181015183820152602001610961565b50505050905090810190601f1680156109a65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600554610100900460ff16610a0f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6005805461ff00191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a436106da565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216610abb576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610ac760008383610cd4565b600254610ad49082610674565b6002556001600160a01b038216600090815260208190526040902054610afa9082610674565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600554610100900460ff1615610ba0576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6005805461ff0019166101001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610a436106da565b6001600160a01b038216610c1d5760405162461bcd60e51b8152600401808060200182810382526021815260200180610e1b6021913960400191505060405180910390fd5b610c2982600083610cd4565b610c6681604051806060016040528060228152602001610d89602291396001600160a01b0385166000908152602081905260409020549190610925565b6001600160a01b038316600090815260208190526040902055600254610c8c9082610d23565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b610cdf8383836106d5565b610ce7610531565b156106d55760405162461bcd60e51b815260040180806020018281038252602a815260200180610eaa602a913960400191505060405180910390fd5b60006106ce83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061092556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f45524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564a2646970667358221220addf479ace69620eca8f8a59c71a91863a3109a6db1c8b547dbfc36bd721051864736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC20PausableMock.sol","sourcemap":"136:574:41:-:0;;;186:222;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;186:222:41;;;;;;;;;;-1:-1:-1;186:222:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;186:222:41;;;;;;;;;;-1:-1:-1;186:222:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;186:222:41;;;;;;;;;;;;;;2085:12:84;;186:222:41;;-1:-1:-1;186:222:41;-1:-1:-1;340:4:41;;346:6;;2085:12:84;;:5;;:12;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;;;2133:14:84;;;2145:2;2133:14;923:15:110;;;-1:-1:-1;364:37:41::1;370:14:::0;386;364:5:::1;:37::i;:::-;186:222:::0;;;;136:574;;7835:370:84;-1:-1:-1;;;;;7918:21:84;;7910:65;;;;;-1:-1:-1;;;7910:65:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;7986:49;8015:1;8019:7;8028:6;7986:20;:49::i;:::-;8061:24;8078:6;8061:12;;:16;;;;;;:24;;;;:::i;:::-;8046:12;:39;-1:-1:-1;;;;;8116:18:84;;:9;:18;;;;;;;;;;;;:30;;8139:6;;8116:22;;;;;:30;;:::i;:::-;-1:-1:-1;;;;;8095:18:84;;:9;:18;;;;;;;;;;;:51;;;;8161:37;;;;;;;8095:18;;:9;;8161:37;;;;;;;;;;7835:370;;:::o;582:234:87:-;690:44;717:4;723:2;727:6;690:26;;;;;:44;;:::i;:::-;754:8;:6;:8::i;:::-;753:9;745:64;;;;-1:-1:-1;;;745:64:87;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;582:234;;;:::o;874:176:17:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:17:o;1040:76:110:-;1102:7;;;;;;;;1040:76::o;136:574:41:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;136:574:41;;;-1:-1:-1;136:574:41;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20PresetMinterPauser":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":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":"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_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":"PAUSER_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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","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":"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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","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":[{"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":"symbol","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":"recipient","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC20PresetMinterPauser","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b5060405162001cd238038062001cd2833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001b890600490602085019062000375565b508051620001ce90600590602084019062000375565b50506006805461ff001960ff1990911660121716905550620001fb6000620001f562000261565b62000265565b6200022a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6620001f562000261565b620002597f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a620001f562000261565b505062000411565b3390565b62000271828262000275565b5050565b6000828152602081815260409091206200029a91839062000be7620002ee821b17901c565b156200027157620002aa62000261565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000305836001600160a01b0384166200030e565b90505b92915050565b60006200031c83836200035d565b620003545750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000308565b50600062000308565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003b857805160ff1916838001178555620003e8565b82800160010185558215620003e8579182015b82811115620003e8578251825591602001919060010190620003cb565b50620003f6929150620003fa565b5090565b5b80821115620003f65760008155600101620003fb565b6118b180620004216000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063a457c2d711610097578063d539139311610071578063d53913931461051f578063d547741f14610527578063dd62ed3e14610553578063e63ab1e914610581576101a9565b8063a457c2d7146104aa578063a9059cbb146104d6578063ca15c87314610502576101a9565b80639010d07c116100d35780639010d07c1461042f57806391d148541461046e57806395d89b411461049a578063a217fddf146104a2576101a9565b806370a08231146103d557806379cc6790146103fb5780638456cb5914610427576101a9565b8063313ce567116101665780633f4ba83a116101405780633f4ba83a1461037c57806340c10f191461038457806342966c68146103b05780635c975abb146103cd576101a9565b8063313ce5671461030657806336568abe146103245780633950935114610350576101a9565b806306fdde03146101ae578063095ea7b31461022b57806318160ddd1461026b57806323b872dd14610285578063248a9ca3146102bb5780632f2ff15d146102d8575b600080fd5b6101b6610589565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f05781810151838201526020016101d8565b50505050905090810190601f16801561021d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102576004803603604081101561024157600080fd5b506001600160a01b03813516906020013561061f565b604080519115158252519081900360200190f35b61027361063d565b60408051918252519081900360200190f35b6102576004803603606081101561029b57600080fd5b506001600160a01b03813581169160208101359091169060400135610643565b610273600480360360208110156102d157600080fd5b50356106ca565b610304600480360360408110156102ee57600080fd5b50803590602001356001600160a01b03166106df565b005b61030e61074b565b6040805160ff9092168252519081900360200190f35b6103046004803603604081101561033a57600080fd5b50803590602001356001600160a01b0316610754565b6102576004803603604081101561036657600080fd5b506001600160a01b0381351690602001356107b5565b610304610803565b6103046004803603604081101561039a57600080fd5b506001600160a01b038135169060200135610874565b610304600480360360208110156103c657600080fd5b50356108e5565b6102576108f9565b610273600480360360208110156103eb57600080fd5b50356001600160a01b0316610907565b6103046004803603604081101561041157600080fd5b506001600160a01b038135169060200135610922565b61030461097c565b6104526004803603604081101561044557600080fd5b50803590602001356109eb565b604080516001600160a01b039092168252519081900360200190f35b6102576004803603604081101561048457600080fd5b50803590602001356001600160a01b0316610a0a565b6101b6610a22565b610273610a83565b610257600480360360408110156104c057600080fd5b506001600160a01b038135169060200135610a88565b610257600480360360408110156104ec57600080fd5b506001600160a01b038135169060200135610af0565b6102736004803603602081101561051857600080fd5b5035610b04565b610273610b1b565b6103046004803603604081101561053d57600080fd5b50803590602001356001600160a01b0316610b3f565b6102736004803603604081101561056957600080fd5b506001600160a01b0381358116916020013516610b98565b610273610bc3565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106155780601f106105ea57610100808354040283529160200191610615565b820191906000526020600020905b8154815290600101906020018083116105f857829003601f168201915b5050505050905090565b600061063361062c610bfc565b8484610c00565b5060015b92915050565b60035490565b6000610650848484610cec565b6106c08461065c610bfc565b6106bb856040518060600160405280602881526020016116db602891396001600160a01b038a1660009081526002602052604081209061069a610bfc565b6001600160a01b031681526020810191909152604001600020549190610e49565b610c00565b5060019392505050565b60009081526020819052604090206002015490565b600082815260208190526040902060020154610702906106fd610bfc565b610a0a565b61073d5760405162461bcd60e51b815260040180806020018281038252602f8152602001806115d9602f913960400191505060405180910390fd5b6107478282610ee0565b5050565b60065460ff1690565b61075c610bfc565b6001600160a01b0316816001600160a01b0316146107ab5760405162461bcd60e51b815260040180806020018281038252602f815260200180611823602f913960400191505060405180910390fd5b6107478282610f49565b60006106336107c2610bfc565b846106bb85600260006107d3610bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610fb2565b61082f7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106fd610bfc565b61086a5760405162461bcd60e51b815260040180806020018281038252603981526020018061162a6039913960400191505060405180910390fd5b61087261100c565b565b6108a07f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66106fd610bfc565b6108db5760405162461bcd60e51b81526004018080602001828103825260368152602001806117036036913960400191505060405180910390fd5b61074782826110b0565b6108f66108f0610bfc565b826111a2565b50565b600654610100900460ff1690565b6001600160a01b031660009081526001602052604090205490565b600061095982604051806060016040528060248152602001611739602491396109528661094d610bfc565b610b98565b9190610e49565b905061096d83610967610bfc565b83610c00565b61097783836111a2565b505050565b6109a87f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106fd610bfc565b6109e35760405162461bcd60e51b81526004018080602001828103825260378152602001806117c76037913960400191505060405180910390fd5b61087261129e565b6000828152602081905260408120610a039083611326565b9392505050565b6000828152602081905260408120610a039083611332565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106155780601f106105ea57610100808354040283529160200191610615565b600081565b6000610633610a95610bfc565b846106bb856040518060600160405280602581526020016117fe6025913960026000610abf610bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610e49565b6000610633610afd610bfc565b8484610cec565b600081815260208190526040812061063790611347565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600082815260208190526040902060020154610b5d906106fd610bfc565b6107ab5760405162461bcd60e51b81526004018080602001828103825260308152602001806116ab6030913960400191505060405180910390fd5b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000610a03836001600160a01b038416611352565b3390565b6001600160a01b038316610c455760405162461bcd60e51b81526004018080602001828103825260248152602001806117a36024913960400191505060405180910390fd5b6001600160a01b038216610c8a5760405162461bcd60e51b81526004018080602001828103825260228152602001806116636022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610d315760405162461bcd60e51b815260040180806020018281038252602581526020018061177e6025913960400191505060405180910390fd5b6001600160a01b038216610d765760405162461bcd60e51b81526004018080602001828103825260238152602001806115b66023913960400191505060405180910390fd5b610d8183838361139c565b610dbe81604051806060016040528060268152602001611685602691396001600160a01b0386166000908152600160205260409020549190610e49565b6001600160a01b038085166000908152600160205260408082209390935590841681522054610ded9082610fb2565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610ed85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e9d578181015183820152602001610e85565b50505050905090810190601f168015610eca5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828152602081905260409020610ef89082610be7565b1561074757610f05610bfc565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020610f6190826113a7565b1561074757610f6e610bfc565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600082820183811015610a03576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600654610100900460ff1661105f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6006805461ff00191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611093610bfc565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b03821661110b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6111176000838361139c565b6003546111249082610fb2565b6003556001600160a01b03821660009081526001602052604090205461114a9082610fb2565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166111e75760405162461bcd60e51b815260040180806020018281038252602181526020018061175d6021913960400191505060405180910390fd5b6111f38260008361139c565b61123081604051806060016040528060228152602001611608602291396001600160a01b0385166000908152600160205260409020549190610e49565b6001600160a01b03831660009081526001602052604090205560035461125690826113bc565b6003556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600654610100900460ff16156112ee576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6006805461ff0019166101001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611093610bfc565b6000610a0383836113fe565b6000610a03836001600160a01b038416611462565b60006106378261147a565b600061135e8383611462565b61139457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610637565b506000610637565b61097783838361147e565b6000610a03836001600160a01b0384166114cd565b6000610a0383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e49565b815460009082106114405760405162461bcd60e51b81526004018080602001828103825260228152602001806115946022913960400191505060405180910390fd5b82600001828154811061144f57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b611489838383610977565b6114916108f9565b156109775760405162461bcd60e51b815260040180806020018281038252602a815260200180611852602a913960400191505060405180910390fd5b60008181526001830160205260408120548015611589578354600019808301919081019060009087908390811061150057fe5b906000526020600020015490508087600001848154811061151d57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061154d57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610637565b600091505061063756fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332305072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e706175736545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332305072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e7445524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332305072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20706175736545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c6645524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564a26469706673582212200a7a3cb1441f55aac9862da57b80657ed79302c590ad2df05ce9ce6b6b563ba464736f6c634300060c0033"},"devdoc":{"details":"{ERC20} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers This contract uses {AccessControl} to lock permissioned functions using the different roles - head to its documentation for details. The account that deploys the contract will be granted the minter and pauser roles, as well as the default admin role, which will let it grant both minter and pauser roles to other accounts.","kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"burn(uint256)":{"details":"Destroys `amount` tokens from the caller. See {ERC20-_burn}."},"burnFrom(address,uint256)":{"details":"Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`."},"constructor":{"details":"Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the account that deploys the contract. See {ERC20-constructor}."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"getRoleAdmin(bytes32)":{"details":"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."},"getRoleMember(bytes32,uint256)":{"details":"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."},"getRoleMemberCount(bytes32)":{"details":"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."},"grantRole(bytes32,address)":{"details":"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."},"hasRole(bytes32,address)":{"details":"Returns `true` if `account` has been granted `role`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"mint(address,uint256)":{"details":"Creates `amount` new tokens for `to`. See {ERC20-_mint}. Requirements: - the caller must have the `MINTER_ROLE`."},"name()":{"details":"Returns the name of the token."},"pause()":{"details":"Pauses all token transfers. See {ERC20Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"renounceRole(bytes32,address)":{"details":"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."},"revokeRole(bytes32,address)":{"details":"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."},"unpause()":{"details":"Unpauses all token transfers. See {ERC20Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`."}},"version":1},"methodIdentifiers":{"DEFAULT_ADMIN_ROLE()":"0xa217fddf","MINTER_ROLE()":"0xd5391393","PAUSER_ROLE()":"0xe63ab1e9","allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","burn(uint256)":"0x42966c68","burnFrom(address,uint256)":"0x79cc6790","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","getRoleAdmin(bytes32)":"0x248a9ca3","getRoleMember(bytes32,uint256)":"0x9010d07c","getRoleMemberCount(bytes32)":"0xca15c873","grantRole(bytes32,address)":"0x2f2ff15d","hasRole(bytes32,address)":"0x91d14854","increaseAllowance(address,uint256)":"0x39509351","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","pause()":"0x8456cb59","paused()":"0x5c975abb","renounceRole(bytes32,address)":"0x36568abe","revokeRole(bytes32,address)":"0xd547741f","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd","unpause()":"0x3f4ba83a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063a457c2d711610097578063d539139311610071578063d53913931461051f578063d547741f14610527578063dd62ed3e14610553578063e63ab1e914610581576101a9565b8063a457c2d7146104aa578063a9059cbb146104d6578063ca15c87314610502576101a9565b80639010d07c116100d35780639010d07c1461042f57806391d148541461046e57806395d89b411461049a578063a217fddf146104a2576101a9565b806370a08231146103d557806379cc6790146103fb5780638456cb5914610427576101a9565b8063313ce567116101665780633f4ba83a116101405780633f4ba83a1461037c57806340c10f191461038457806342966c68146103b05780635c975abb146103cd576101a9565b8063313ce5671461030657806336568abe146103245780633950935114610350576101a9565b806306fdde03146101ae578063095ea7b31461022b57806318160ddd1461026b57806323b872dd14610285578063248a9ca3146102bb5780632f2ff15d146102d8575b600080fd5b6101b6610589565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f05781810151838201526020016101d8565b50505050905090810190601f16801561021d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102576004803603604081101561024157600080fd5b506001600160a01b03813516906020013561061f565b604080519115158252519081900360200190f35b61027361063d565b60408051918252519081900360200190f35b6102576004803603606081101561029b57600080fd5b506001600160a01b03813581169160208101359091169060400135610643565b610273600480360360208110156102d157600080fd5b50356106ca565b610304600480360360408110156102ee57600080fd5b50803590602001356001600160a01b03166106df565b005b61030e61074b565b6040805160ff9092168252519081900360200190f35b6103046004803603604081101561033a57600080fd5b50803590602001356001600160a01b0316610754565b6102576004803603604081101561036657600080fd5b506001600160a01b0381351690602001356107b5565b610304610803565b6103046004803603604081101561039a57600080fd5b506001600160a01b038135169060200135610874565b610304600480360360208110156103c657600080fd5b50356108e5565b6102576108f9565b610273600480360360208110156103eb57600080fd5b50356001600160a01b0316610907565b6103046004803603604081101561041157600080fd5b506001600160a01b038135169060200135610922565b61030461097c565b6104526004803603604081101561044557600080fd5b50803590602001356109eb565b604080516001600160a01b039092168252519081900360200190f35b6102576004803603604081101561048457600080fd5b50803590602001356001600160a01b0316610a0a565b6101b6610a22565b610273610a83565b610257600480360360408110156104c057600080fd5b506001600160a01b038135169060200135610a88565b610257600480360360408110156104ec57600080fd5b506001600160a01b038135169060200135610af0565b6102736004803603602081101561051857600080fd5b5035610b04565b610273610b1b565b6103046004803603604081101561053d57600080fd5b50803590602001356001600160a01b0316610b3f565b6102736004803603604081101561056957600080fd5b506001600160a01b0381358116916020013516610b98565b610273610bc3565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106155780601f106105ea57610100808354040283529160200191610615565b820191906000526020600020905b8154815290600101906020018083116105f857829003601f168201915b5050505050905090565b600061063361062c610bfc565b8484610c00565b5060015b92915050565b60035490565b6000610650848484610cec565b6106c08461065c610bfc565b6106bb856040518060600160405280602881526020016116db602891396001600160a01b038a1660009081526002602052604081209061069a610bfc565b6001600160a01b031681526020810191909152604001600020549190610e49565b610c00565b5060019392505050565b60009081526020819052604090206002015490565b600082815260208190526040902060020154610702906106fd610bfc565b610a0a565b61073d5760405162461bcd60e51b815260040180806020018281038252602f8152602001806115d9602f913960400191505060405180910390fd5b6107478282610ee0565b5050565b60065460ff1690565b61075c610bfc565b6001600160a01b0316816001600160a01b0316146107ab5760405162461bcd60e51b815260040180806020018281038252602f815260200180611823602f913960400191505060405180910390fd5b6107478282610f49565b60006106336107c2610bfc565b846106bb85600260006107d3610bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610fb2565b61082f7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106fd610bfc565b61086a5760405162461bcd60e51b815260040180806020018281038252603981526020018061162a6039913960400191505060405180910390fd5b61087261100c565b565b6108a07f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66106fd610bfc565b6108db5760405162461bcd60e51b81526004018080602001828103825260368152602001806117036036913960400191505060405180910390fd5b61074782826110b0565b6108f66108f0610bfc565b826111a2565b50565b600654610100900460ff1690565b6001600160a01b031660009081526001602052604090205490565b600061095982604051806060016040528060248152602001611739602491396109528661094d610bfc565b610b98565b9190610e49565b905061096d83610967610bfc565b83610c00565b61097783836111a2565b505050565b6109a87f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6106fd610bfc565b6109e35760405162461bcd60e51b81526004018080602001828103825260378152602001806117c76037913960400191505060405180910390fd5b61087261129e565b6000828152602081905260408120610a039083611326565b9392505050565b6000828152602081905260408120610a039083611332565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106155780601f106105ea57610100808354040283529160200191610615565b600081565b6000610633610a95610bfc565b846106bb856040518060600160405280602581526020016117fe6025913960026000610abf610bfc565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610e49565b6000610633610afd610bfc565b8484610cec565b600081815260208190526040812061063790611347565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600082815260208190526040902060020154610b5d906106fd610bfc565b6107ab5760405162461bcd60e51b81526004018080602001828103825260308152602001806116ab6030913960400191505060405180910390fd5b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000610a03836001600160a01b038416611352565b3390565b6001600160a01b038316610c455760405162461bcd60e51b81526004018080602001828103825260248152602001806117a36024913960400191505060405180910390fd5b6001600160a01b038216610c8a5760405162461bcd60e51b81526004018080602001828103825260228152602001806116636022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610d315760405162461bcd60e51b815260040180806020018281038252602581526020018061177e6025913960400191505060405180910390fd5b6001600160a01b038216610d765760405162461bcd60e51b81526004018080602001828103825260238152602001806115b66023913960400191505060405180910390fd5b610d8183838361139c565b610dbe81604051806060016040528060268152602001611685602691396001600160a01b0386166000908152600160205260409020549190610e49565b6001600160a01b038085166000908152600160205260408082209390935590841681522054610ded9082610fb2565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610ed85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e9d578181015183820152602001610e85565b50505050905090810190601f168015610eca5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828152602081905260409020610ef89082610be7565b1561074757610f05610bfc565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020610f6190826113a7565b1561074757610f6e610bfc565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600082820183811015610a03576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600654610100900460ff1661105f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6006805461ff00191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611093610bfc565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b03821661110b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6111176000838361139c565b6003546111249082610fb2565b6003556001600160a01b03821660009081526001602052604090205461114a9082610fb2565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166111e75760405162461bcd60e51b815260040180806020018281038252602181526020018061175d6021913960400191505060405180910390fd5b6111f38260008361139c565b61123081604051806060016040528060228152602001611608602291396001600160a01b0385166000908152600160205260409020549190610e49565b6001600160a01b03831660009081526001602052604090205560035461125690826113bc565b6003556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600654610100900460ff16156112ee576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6006805461ff0019166101001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611093610bfc565b6000610a0383836113fe565b6000610a03836001600160a01b038416611462565b60006106378261147a565b600061135e8383611462565b61139457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610637565b506000610637565b61097783838361147e565b6000610a03836001600160a01b0384166114cd565b6000610a0383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e49565b815460009082106114405760405162461bcd60e51b81526004018080602001828103825260228152602001806115946022913960400191505060405180910390fd5b82600001828154811061144f57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b611489838383610977565b6114916108f9565b156109775760405162461bcd60e51b815260040180806020018281038252602a815260200180611852602a913960400191505060405180910390fd5b60008181526001830160205260408120548015611589578354600019808301919081019060009087908390811061150057fe5b906000526020600020015490508087600001848154811061151d57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061154d57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610637565b600091505061063756fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332305072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20756e706175736545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332305072657365744d696e7465725061757365723a206d7573742068617665206d696e74657220726f6c6520746f206d696e7445524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332305072657365744d696e7465725061757365723a206d75737420686176652070617573657220726f6c6520746f20706175736545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c6645524332305061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564a26469706673582212200a7a3cb1441f55aac9862da57b80657ed79302c590ad2df05ce9ce6b6b563ba464736f6c634300060c0033"},"sourceId":"contracts/presets/ERC20PresetMinterPauser.sol","sourcemap":"814:1980:74:-:0;;;1223:237;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1223:237:74;;;;;;;;;;-1:-1:-1;1223:237:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1223:237:74;;;;;;;;;;-1:-1:-1;1223:237:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1223:237:74;;-1:-1:-1;;2085:12:84;;1290:4:74;;-1:-1:-1;1296:6:74;;2085:12:84;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;;;2133:14:84;;;2145:2;2133:14;923:15:110;;;-1:-1:-1;1314:44:74::1;2133:9:84::0;1345:12:74::1;:10;:12::i;:::-;1314:10;:44::i;:::-;1369:37;947:24;1393:12;:10;:12::i;1369:37::-;1416;1015:24;1440:12;:10;:12::i;1416:37::-;1223:237:::0;;814:1980;;590:104:0;677:10;590:104;:::o;6578:110:6:-;6656:25;6667:4;6673:7;6656:10;:25::i;:::-;6578:110;;:::o;7015:184::-;7088:6;:12;;;;;;;;;;;:33;;7113:7;;7088:24;;;;;:33;;:::i;:::-;7084:109;;;7169:12;:10;:12::i;:::-;-1:-1:-1;;;;;7142:40:6;7160:7;-1:-1:-1;;;;;7142:40:6;7154:4;7142:40;;;;;;;;;;7015:184;;:::o;4864:141:109:-;4934:4;4957:41;4962:3;-1:-1:-1;;;;;4982:14:109;;4957:4;:41::i;:::-;4950:48;;4864:141;;;;;:::o;1611:404::-;1674:4;1695:21;1705:3;1710:5;1695:9;:21::i;:::-;1690:319;;-1:-1:-1;1732:23:109;;;;;;;;:11;:23;;;;;;;;;;;;;1912:18;;1890:19;;;:12;;;:19;;;;;;:40;;;;1944:11;;1690:319;-1:-1:-1;1993:5:109;1986:12;;3776:127;3849:4;3872:19;;;:12;;;;;:19;;;;;;:24;;;3776:127::o;814:1980:74:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;814:1980:74;;;-1:-1:-1;814:1980:74;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20ReturnFalseMock":{"abi":[{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC20ReturnFalseMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610171806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063095ea7b31461005157806323b872dd14610091578063a9059cbb14610051578063dd62ed3e146100c7575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b038135169060200135610107565b604080519115158252519081900360200190f35b61007d600480360360608110156100a757600080fd5b506001600160a01b03813581169160208101359091169060400135610113565b6100f5600480360360408110156100dd57600080fd5b506001600160a01b0381358116916020013516610121565b60408051918252519081900360200190f35b50506000600181905590565b600060018190559392505050565b600060015460001461013257600080fd5b5060009291505056fea26469706673582212201a125d07a99d98c1c6805dcec80d255eb61802ae9679de2d1df2af9bda35b42f64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063095ea7b31461005157806323b872dd14610091578063a9059cbb14610051578063dd62ed3e146100c7575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b038135169060200135610107565b604080519115158252519081900360200190f35b61007d600480360360608110156100a757600080fd5b506001600160a01b03813581169160208101359091169060400135610113565b6100f5600480360360408110156100dd57600080fd5b506001600160a01b0381358116916020013516610121565b60408051918252519081900360200190f35b50506000600181905590565b600060018190559392505050565b600060015460001461013257600080fd5b5060009291505056fea26469706673582212201a125d07a99d98c1c6805dcec80d255eb61802ae9679de2d1df2af9bda35b42f64736f6c634300060c0033"},"sourceId":"contracts/mocks/SafeERC20Helper.sol","sourcemap":"163:812:64:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20ReturnTrueMock":{"abi":[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"allowance_","type":"uint256"}],"name":"setAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC20ReturnTrueMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506101ca806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461009c5780633ba93f26146100d2578063a9059cbb1461005c578063dd62ed3e146100f1575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b038135169060200135610131565b604080519115158252519081900360200190f35b610088600480360360608110156100b257600080fd5b506001600160a01b0381358116916020810135909116906040013561013d565b6100ef600480360360208110156100e857600080fd5b503561014b565b005b61011f6004803603604081101561010757600080fd5b506001600160a01b0381358116916020013516610174565b60408051918252519081900360200190f35b50506000600190815590565b600060019081559392505050565b80600080610157610190565b6001600160a01b0316815260208101919091526040016000205550565b506001600160a01b031660009081526020819052604090205490565b339056fea26469706673582212202a6f0a245a1b438227e189e2291c8fda698c8671d9902452cbcfe34d9c51ebb964736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","setAllowance(uint256)":"0x3ba93f26","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063095ea7b31461005c57806323b872dd1461009c5780633ba93f26146100d2578063a9059cbb1461005c578063dd62ed3e146100f1575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b038135169060200135610131565b604080519115158252519081900360200190f35b610088600480360360608110156100b257600080fd5b506001600160a01b0381358116916020810135909116906040013561013d565b6100ef600480360360208110156100e857600080fd5b503561014b565b005b61011f6004803603604081101561010757600080fd5b506001600160a01b0381358116916020013516610174565b60408051918252519081900360200190f35b50506000600190815590565b600060019081559392505050565b80600080610157610190565b6001600160a01b0316815260208101919091526040016000205550565b506001600160a01b031660009081526020819052604090205490565b339056fea26469706673582212202a6f0a245a1b438227e189e2291c8fda698c8671d9902452cbcfe34d9c51ebb964736f6c634300060c0033"},"sourceId":"contracts/mocks/SafeERC20Helper.sol","sourcemap":"977:867:64:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20Snapshot":{"abi":[{"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":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","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"},{"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":"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":"snapshotId","type":"uint256"}],"name":"balanceOfAt","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","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":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","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"}],"contractName":"ERC20Snapshot","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and total supply at the time are recorded for later access. This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting. In naive implementations it's possible to perform a \"double spend\" attack by reusing the same balance from different accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be used to create an efficient ERC20 forking mechanism. Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id and the account address. ==== Gas Costs Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much smaller since identical balances in subsequent snapshots are stored as a single entry. There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent transfers will have normal cost until the next snapshot, and so on.","events":{"Snapshot(uint256)":{"details":"Emitted by {_snapshot} when a snapshot identified by `id` is created."}},"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"balanceOfAt(address,uint256)":{"details":"Retrieves the balance of `account` at the time `snapshotId` was created."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"totalSupplyAt(uint256)":{"details":"Retrieves the total supply at the time `snapshotId` was created."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","balanceOfAt(address,uint256)":"0x4ee2cd7e","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","name()":"0x06fdde03","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","totalSupplyAt(uint256)":"0x981b24d0","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC20/ERC20Snapshot.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC20SnapshotMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"initialAccount","type":"address"},{"internalType":"uint256","name":"initialBalance","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","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"},{"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":"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":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"snapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","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":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","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"}],"contractName":"ERC20SnapshotMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200168b3803806200168b833981810160405260808110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604090815260208281015192909101518651929450925085918591620001c591600391850190620004a8565b508051620001db906004906020840190620004a8565b50506005805460ff1916601217905550620001f7828262000201565b5050505062000544565b6200020c8262000231565b6200021662000262565b6200022d82826200027460201b620007161760201c565b5050565b6001600160a01b03811660009081526006602052604090206200025f90620002598362000383565b620003a2565b50565b6200027260076200025962000403565b565b6001600160a01b038216620002d0576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620002de60008383620003fe565b620002fa816002546200040960201b620008061790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200032d9183906200080662000409821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0381166000908152602081905260409020545b919050565b6000620003bb60096200046b60201b620008671760201c565b905080620003c9846200046f565b1015620003fe578254600181810185556000858152602080822090930184905581860180549283018155815291909120018290555b505050565b60025490565b60008282018381101562000464576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b5490565b805460009062000482575060006200039d565b8154829060001981019081106200049557fe5b906000526020600020015490506200039d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004eb57805160ff19168380011785556200051b565b828001600101855582156200051b579182015b828111156200051b578251825591602001919060010190620004fe565b50620005299291506200052d565b5090565b5b808211156200052957600081556001016200052e565b61113780620005546000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806370a08231116100975780639dc29fac116100665780639dc29fac14610309578063a457c2d714610335578063a9059cbb14610361578063dd62ed3e1461038d57610100565b806370a08231146102b657806395d89b41146102dc5780639711715a146102e4578063981b24d0146102ec57610100565b8063313ce567116100d3578063313ce56714610212578063395093511461023057806340c10f191461025c5780634ee2cd7e1461028a57610100565b806306fdde0314610105578063095ea7b31461018257806318160ddd146101c257806323b872dd146101dc575b600080fd5b61010d6103bb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610451565b604080519115158252519081900360200190f35b6101ca61046f565b60408051918252519081900360200190f35b6101ae600480360360608110156101f257600080fd5b506001600160a01b03813581169160208101359091169060400135610475565b61021a6104fc565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024657600080fd5b506001600160a01b038135169060200135610505565b6102886004803603604081101561027257600080fd5b506001600160a01b038135169060200135610553565b005b6101ca600480360360408110156102a057600080fd5b506001600160a01b038135169060200135610561565b6101ca600480360360208110156102cc57600080fd5b50356001600160a01b03166105aa565b61010d6105c9565b61028861062a565b6101ca6004803603602081101561030257600080fd5b5035610635565b6102886004803603604081101561031f57600080fd5b506001600160a01b038135169060200135610665565b6101ae6004803603604081101561034b57600080fd5b506001600160a01b03813516906020013561066f565b6101ae6004803603604081101561037757600080fd5b506001600160a01b0381351690602001356106d7565b6101ca600480360360408110156103a357600080fd5b506001600160a01b03813581169160200135166106eb565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104475780601f1061041c57610100808354040283529160200191610447565b820191906000526020600020905b81548152906001019060200180831161042a57829003601f168201915b5050505050905090565b600061046561045e61086b565b848461086f565b5060015b92915050565b60025490565b600061048284848461095b565b6104f28461048e61086b565b6104ed8560405180606001604052806028815260200161104b602891396001600160a01b038a166000908152600160205260408120906104cc61086b565b6001600160a01b03168152602081019190915260400160002054919061097d565b61086f565b5060019392505050565b60055460ff1690565b600061046561051261086b565b846104ed856001600061052361086b565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610806565b61055d8282610a14565b5050565b6001600160a01b038216600090815260066020526040812081908190610588908590610a2f565b915091508161059f5761059a856105aa565b6105a1565b805b95945050505050565b6001600160a01b0381166000908152602081905260409020545b919050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104475780601f1061041c57610100808354040283529160200191610447565b610632610b2c565b50565b6000806000610645846007610a2f565b915091508161065b5761065661046f565b61065d565b805b949350505050565b61055d8282610b80565b600061046561067c61086b565b846104ed856040518060600160405280602581526020016110dd60259139600160006106a661086b565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061097d565b60006104656106e461086b565b848461095b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038216610771576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61077d60008383610978565b60025461078a9082610806565b6002556001600160a01b0382166000908152602081905260409020546107b09082610806565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082820183811015610860576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b5490565b3390565b6001600160a01b0383166108b45760405162461bcd60e51b81526004018080602001828103825260248152602001806110b96024913960400191505060405180910390fd5b6001600160a01b0382166108f95760405162461bcd60e51b81526004018080602001828103825260228152602001806110036022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b61096483610b9b565b61096d82610b9b565b610978838383610bc5565b505050565b60008184841115610a0c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109d15781810151838201526020016109b9565b50505050905090810190601f1680156109fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b610a1d82610b9b565b610a25610d20565b61055d8282610716565b60008060008411610a80576040805162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b604482015290519081900360640190fd5b610a8a6009610867565b841115610ade576040805162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e74206964000000604482015290519081900360640190fd5b6000610aea8486610d2f565b8454909150811415610b03576000809250925050610b25565b6001846001018281548110610b1457fe5b906000526020600020015492509250505b9250929050565b6000610b386009610dd0565b6000610b446009610867565b6040805182815290519192507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67919081900360200190a1905090565b610b8982610b9b565b610b91610d20565b61055d8282610dd9565b6001600160a01b038116600090815260066020526040902061063290610bc0836105aa565b610ed5565b6001600160a01b038316610c0a5760405162461bcd60e51b81526004018080602001828103825260258152602001806110946025913960400191505060405180910390fd5b6001600160a01b038216610c4f5760405162461bcd60e51b8152600401808060200182810382526023815260200180610fbe6023913960400191505060405180910390fd5b610c5a838383610978565b610c9781604051806060016040528060268152602001611025602691396001600160a01b038616600090815260208190526040902054919061097d565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610cc69082610806565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b610d2d6007610bc061046f565b565b8154600090610d4057506000610469565b82546000905b80821015610d8f576000610d5a8383610f21565b905084868281548110610d6957fe5b90600052602060002001541115610d8257809150610d89565b8060010192505b50610d46565b600082118015610db7575083856001840381548110610daa57fe5b9060005260206000200154145b15610dc85750600019019050610469565b509050610469565b80546001019055565b6001600160a01b038216610e1e5760405162461bcd60e51b81526004018080602001828103825260218152602001806110736021913960400191505060405180910390fd5b610e2a82600083610978565b610e6781604051806060016040528060228152602001610fe1602291396001600160a01b038516600090815260208190526040902054919061097d565b6001600160a01b038316600090815260208190526040902055600254610e8d9082610f46565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000610ee16009610867565b905080610eed84610f88565b1015610978578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b60006002808306600285060181610f3457fe5b04600283046002850401019392505050565b600061086083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061097d565b8054600090610f99575060006105c4565b815482906000198101908110610fab57fe5b906000526020600020015490506105c456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220cb0bb080c4602f63740b94ba195debbaba1475fe7a0f7344de1c0ee088876a3164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"balanceOfAt(address,uint256)":{"details":"Retrieves the balance of `account` at the time `snapshotId` was created."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"totalSupplyAt(uint256)":{"details":"Retrieves the total supply at the time `snapshotId` was created."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","balanceOfAt(address,uint256)":"0x4ee2cd7e","burn(address,uint256)":"0x9dc29fac","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","snapshot()":"0x9711715a","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","totalSupplyAt(uint256)":"0x981b24d0","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101005760003560e01c806370a08231116100975780639dc29fac116100665780639dc29fac14610309578063a457c2d714610335578063a9059cbb14610361578063dd62ed3e1461038d57610100565b806370a08231146102b657806395d89b41146102dc5780639711715a146102e4578063981b24d0146102ec57610100565b8063313ce567116100d3578063313ce56714610212578063395093511461023057806340c10f191461025c5780634ee2cd7e1461028a57610100565b806306fdde0314610105578063095ea7b31461018257806318160ddd146101c257806323b872dd146101dc575b600080fd5b61010d6103bb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ae6004803603604081101561019857600080fd5b506001600160a01b038135169060200135610451565b604080519115158252519081900360200190f35b6101ca61046f565b60408051918252519081900360200190f35b6101ae600480360360608110156101f257600080fd5b506001600160a01b03813581169160208101359091169060400135610475565b61021a6104fc565b6040805160ff9092168252519081900360200190f35b6101ae6004803603604081101561024657600080fd5b506001600160a01b038135169060200135610505565b6102886004803603604081101561027257600080fd5b506001600160a01b038135169060200135610553565b005b6101ca600480360360408110156102a057600080fd5b506001600160a01b038135169060200135610561565b6101ca600480360360208110156102cc57600080fd5b50356001600160a01b03166105aa565b61010d6105c9565b61028861062a565b6101ca6004803603602081101561030257600080fd5b5035610635565b6102886004803603604081101561031f57600080fd5b506001600160a01b038135169060200135610665565b6101ae6004803603604081101561034b57600080fd5b506001600160a01b03813516906020013561066f565b6101ae6004803603604081101561037757600080fd5b506001600160a01b0381351690602001356106d7565b6101ca600480360360408110156103a357600080fd5b506001600160a01b03813581169160200135166106eb565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104475780601f1061041c57610100808354040283529160200191610447565b820191906000526020600020905b81548152906001019060200180831161042a57829003601f168201915b5050505050905090565b600061046561045e61086b565b848461086f565b5060015b92915050565b60025490565b600061048284848461095b565b6104f28461048e61086b565b6104ed8560405180606001604052806028815260200161104b602891396001600160a01b038a166000908152600160205260408120906104cc61086b565b6001600160a01b03168152602081019190915260400160002054919061097d565b61086f565b5060019392505050565b60055460ff1690565b600061046561051261086b565b846104ed856001600061052361086b565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610806565b61055d8282610a14565b5050565b6001600160a01b038216600090815260066020526040812081908190610588908590610a2f565b915091508161059f5761059a856105aa565b6105a1565b805b95945050505050565b6001600160a01b0381166000908152602081905260409020545b919050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104475780601f1061041c57610100808354040283529160200191610447565b610632610b2c565b50565b6000806000610645846007610a2f565b915091508161065b5761065661046f565b61065d565b805b949350505050565b61055d8282610b80565b600061046561067c61086b565b846104ed856040518060600160405280602581526020016110dd60259139600160006106a661086b565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061097d565b60006104656106e461086b565b848461095b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038216610771576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61077d60008383610978565b60025461078a9082610806565b6002556001600160a01b0382166000908152602081905260409020546107b09082610806565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082820183811015610860576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b5490565b3390565b6001600160a01b0383166108b45760405162461bcd60e51b81526004018080602001828103825260248152602001806110b96024913960400191505060405180910390fd5b6001600160a01b0382166108f95760405162461bcd60e51b81526004018080602001828103825260228152602001806110036022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b61096483610b9b565b61096d82610b9b565b610978838383610bc5565b505050565b60008184841115610a0c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109d15781810151838201526020016109b9565b50505050905090810190601f1680156109fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b610a1d82610b9b565b610a25610d20565b61055d8282610716565b60008060008411610a80576040805162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b604482015290519081900360640190fd5b610a8a6009610867565b841115610ade576040805162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e74206964000000604482015290519081900360640190fd5b6000610aea8486610d2f565b8454909150811415610b03576000809250925050610b25565b6001846001018281548110610b1457fe5b906000526020600020015492509250505b9250929050565b6000610b386009610dd0565b6000610b446009610867565b6040805182815290519192507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67919081900360200190a1905090565b610b8982610b9b565b610b91610d20565b61055d8282610dd9565b6001600160a01b038116600090815260066020526040902061063290610bc0836105aa565b610ed5565b6001600160a01b038316610c0a5760405162461bcd60e51b81526004018080602001828103825260258152602001806110946025913960400191505060405180910390fd5b6001600160a01b038216610c4f5760405162461bcd60e51b8152600401808060200182810382526023815260200180610fbe6023913960400191505060405180910390fd5b610c5a838383610978565b610c9781604051806060016040528060268152602001611025602691396001600160a01b038616600090815260208190526040902054919061097d565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610cc69082610806565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b610d2d6007610bc061046f565b565b8154600090610d4057506000610469565b82546000905b80821015610d8f576000610d5a8383610f21565b905084868281548110610d6957fe5b90600052602060002001541115610d8257809150610d89565b8060010192505b50610d46565b600082118015610db7575083856001840381548110610daa57fe5b9060005260206000200154145b15610dc85750600019019050610469565b509050610469565b80546001019055565b6001600160a01b038216610e1e5760405162461bcd60e51b81526004018080602001828103825260218152602001806110736021913960400191505060405180910390fd5b610e2a82600083610978565b610e6781604051806060016040528060228152602001610fe1602291396001600160a01b038516600090815260208190526040902054919061097d565b6001600160a01b038316600090815260208190526040902055600254610e8d9082610f46565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000610ee16009610867565b905080610eed84610f88565b1015610978578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b60006002808306600285060181610f3457fe5b04600283046002850401019392505050565b600061086083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061097d565b8054600090610f99575060006105c4565b815482906000198101908110610fab57fe5b906000526020600020015490506105c456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220cb0bb080c4602f63740b94ba195debbaba1475fe7a0f7344de1c0ee088876a3164736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC20SnapshotMock.sol","sourcemap":"103:532:42:-:0;;;153:221;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;153:221:42;;;;;;;;;;-1:-1:-1;153:221:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;153:221:42;;;;;;;;;;-1:-1:-1;153:221:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;153:221:42;;;;;;;;;;;;;;2085:12:84;;153:221:42;;-1:-1:-1;153:221:42;-1:-1:-1;306:4:42;;312:6;;2085:12:84;;:5;;:12;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;330:37:42::1;336:14:::0;352;330:5:::1;:37::i;:::-;153:221:::0;;;;103:532;;5370:197:88;5453:31;5476:7;5453:22;:31::i;:::-;5494:28;:26;:28::i;:::-;5533:27;5545:7;5554:5;5533:11;;;;;:27;;:::i;:::-;5370:197;;:::o;7446:144::-;-1:-1:-1;;;;;7529:33:88;;;;;;:24;:33;;;;;7513:70;;7564:18;7554:7;7564:9;:18::i;:::-;7513:15;:70::i;:::-;7446:144;:::o;7596:116::-;7652:53;7668:21;7691:13;:11;:13::i;7652:53::-;7596:116::o;7835:370:84:-;-1:-1:-1;;;;;7918:21:84;;7910:65;;;;;-1:-1:-1;;;7910:65:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;7986:49;8015:1;8019:7;8028:6;7986:20;:49::i;:::-;8061:24;8078:6;8061:12;;:16;;;;;;:24;;;;:::i;:::-;8046:12;:39;-1:-1:-1;;;;;8116:18:84;;:9;:18;;;;;;;;;;;;:30;;8139:6;;8116:22;;;;;:30;;:::i;:::-;-1:-1:-1;;;;;8095:18:84;;:9;:18;;;;;;;;;;;:51;;;;8161:37;;;;;;;8095:18;;:9;;8161:37;;;;;;;;;;7835:370;;:::o;3418:117::-;-1:-1:-1;;;;;3510:18:84;;3484:7;3510:18;;;;;;;;;;;3418:117;;;;:::o;7718:309:88:-;7812:17;7832:28;:18;:26;;;;;:28;;:::i;:::-;7812:48;-1:-1:-1;7812:48:88;7874:30;7890:9;7874:15;:30::i;:::-;:42;7870:151;;;7932:29;;;;;;;;:13;:29;;;;;;;;;;;;;7975:16;;;:35;;;;;;;;;;;;;;;;;7870:151;7718:309;;;:::o;3262:98:84:-;3341:12;;3262:98;:::o;874:176:17:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:17:o;1098:112:106:-;1189:14;;1098:112::o;8033:206:88:-;8126:10;;8103:7;;8122:111;;-1:-1:-1;8164:1:88;8157:8;;8122:111;8207:10;;8203:3;;-1:-1:-1;;8207:14:88;;;8203:19;;;;;;;;;;;;;;8196:26;;;;103:532:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;103:532:42;;;-1:-1:-1;103:532:42;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b5060405162001d2338038062001d23833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250620001b391506301ffc9a760e01b90506200021d565b8151620001c8906006906020850190620002a2565b508051620001de906007906020840190620002a2565b50620001f16380ac58cd60e01b6200021d565b62000203635b5e139f60e01b6200021d565b6200021563780e9d6360e01b6200021d565b50506200033e565b6001600160e01b031980821614156200027d576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002e557805160ff191683800117855562000315565b8280016001018555821562000315579182015b8281111562000315578251825591602001919060010190620002f8565b506200032392915062000327565b5090565b5b8082111562000323576000815560010162000328565b6119d5806200034e6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80634f6ccce7116100a257806395d89b411161007157806395d89b4114610349578063a22cb46514610351578063b88d4fde1461037f578063c87b56dd14610445578063e985e9c5146104625761010b565b80634f6ccce7146102e15780636352211e146102fe5780636c0360eb1461031b57806370a08231146103235761010b565b806318160ddd116100de57806318160ddd1461022f57806323b872dd146102495780632f745c591461027f57806342842e0e146102ab5761010b565b806301ffc9a71461011057806306fdde031461014b578063081812fc146101c8578063095ea7b314610201575b600080fd5b6101376004803603602081101561012657600080fd5b50356001600160e01b031916610490565b604080519115158252519081900360200190f35b6101536104b3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561018d578181015183820152602001610175565b50505050905090810190601f1680156101ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101e5600480360360208110156101de57600080fd5b5035610549565b604080516001600160a01b039092168252519081900360200190f35b61022d6004803603604081101561021757600080fd5b506001600160a01b0381351690602001356105ab565b005b610237610686565b60408051918252519081900360200190f35b61022d6004803603606081101561025f57600080fd5b506001600160a01b03813581169160208101359091169060400135610697565b6102376004803603604081101561029557600080fd5b506001600160a01b0381351690602001356106ee565b61022d600480360360608110156102c157600080fd5b506001600160a01b03813581169160208101359091169060400135610719565b610237600480360360208110156102f757600080fd5b5035610734565b6101e56004803603602081101561031457600080fd5b503561074a565b610153610772565b6102376004803603602081101561033957600080fd5b50356001600160a01b03166107d3565b61015361083b565b61022d6004803603604081101561036757600080fd5b506001600160a01b038135169060200135151561089c565b61022d6004803603608081101561039557600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156103d057600080fd5b8201836020820111156103e257600080fd5b8035906020019184600183028401116401000000008311171561040457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506109a1945050505050565b6101536004803603602081101561045b57600080fd5b50356109ff565b6101376004803603604081101561047857600080fd5b506001600160a01b0381358116916020013516610ca6565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b820191906000526020600020905b81548152906001019060200180831161052257829003601f168201915b5050505050905090565b600061055482610cd4565b61058f5760405162461bcd60e51b815260040180806020018281038252602c8152602001806118ca602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105b68261074a565b9050806001600160a01b0316836001600160a01b031614156106095760405162461bcd60e51b815260040180806020018281038252602181526020018061194e6021913960400191505060405180910390fd5b806001600160a01b031661061b610ce1565b6001600160a01b0316148061063c575061063c81610637610ce1565b610ca6565b6106775760405162461bcd60e51b815260040180806020018281038252603881526020018061181d6038913960400191505060405180910390fd5b6106818383610ce5565b505050565b60006106926002610d53565b905090565b6106a86106a2610ce1565b82610d5e565b6106e35760405162461bcd60e51b815260040180806020018281038252603181526020018061196f6031913960400191505060405180910390fd5b610681838383610e02565b6001600160a01b03821660009081526001602052604081206107109083610f4e565b90505b92915050565b610681838383604051806020016040528060008152506109a1565b600080610742600284610f5a565b509392505050565b60006107138260405180606001604052806029815260200161187f6029913960029190610f76565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b60006001600160a01b03821661081a5760405162461bcd60e51b815260040180806020018281038252602a815260200180611855602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061071390610d53565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b6108a4610ce1565b6001600160a01b0316826001600160a01b0316141561090a576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610917610ce1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561095b610ce1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6109b26109ac610ce1565b83610d5e565b6109ed5760405162461bcd60e51b815260040180806020018281038252603181526020018061196f6031913960400191505060405180910390fd5b6109f984848484610f8d565b50505050565b6060610a0a82610cd4565b610a455760405162461bcd60e51b815260040180806020018281038252602f81526020018061191f602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610ada5780601f10610aaf57610100808354040283529160200191610ada565b820191906000526020600020905b815481529060010190602001808311610abd57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610b035790506104ae565b805115610bd4576009816040516020018083805460018160011615610100020316600290048015610b6b5780601f10610b49576101008083540402835291820191610b6b565b820191906000526020600020905b815481529060010190602001808311610b57575b5050825160208401908083835b60208310610b975780518252601f199092019160209182019101610b78565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150506104ae565b6009610bdf84610fdf565b6040516020018083805460018160011615610100020316600290048015610c3d5780601f10610c1b576101008083540402835291820191610c3d565b820191906000526020600020905b815481529060010190602001808311610c29575b5050825160208401908083835b60208310610c695780518252601f199092019160209182019101610c4a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006107136002836110ba565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d1a8261074a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610713826110c6565b6000610d6982610cd4565b610da45760405162461bcd60e51b815260040180806020018281038252602c8152602001806117f1602c913960400191505060405180910390fd5b6000610daf8361074a565b9050806001600160a01b0316846001600160a01b03161480610dea5750836001600160a01b0316610ddf84610549565b6001600160a01b0316145b80610dfa5750610dfa8185610ca6565b949350505050565b826001600160a01b0316610e158261074a565b6001600160a01b031614610e5a5760405162461bcd60e51b81526004018080602001828103825260298152602001806118f66029913960400191505060405180910390fd5b6001600160a01b038216610e9f5760405162461bcd60e51b81526004018080602001828103825260248152602001806117cd6024913960400191505060405180910390fd5b610eaa838383610681565b610eb5600082610ce5565b6001600160a01b0383166000908152600160205260409020610ed790826110ca565b506001600160a01b0382166000908152600160205260409020610efa90826110d6565b50610f07600282846110e2565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061071083836110f8565b6000808080610f69868661115c565b9097909650945050505050565b6000610f838484846111d7565b90505b9392505050565b610f98848484610e02565b610fa4848484846112a1565b6109f95760405162461bcd60e51b815260040180806020018281038252603281526020018061179b6032913960400191505060405180910390fd5b60608161100457506040805180820190915260018152600360fc1b60208201526104ae565b8160005b811561101c57600101600a82049150611008565b60608167ffffffffffffffff8111801561103557600080fd5b506040519080825280601f01601f191660200182016040528015611060576020820181803683370190505b50859350905060001982015b83156110b157600a840660300160f81b8282806001900393508151811061108f57fe5b60200101906001600160f81b031916908160001a905350600a8404935061106c565b50949350505050565b60006107108383611409565b5490565b60006107108383611421565b600061071083836114e7565b6000610f8384846001600160a01b038516611531565b8154600090821061113a5760405162461bcd60e51b81526004018080602001828103825260228152602001806117796022913960400191505060405180910390fd5b82600001828154811061114957fe5b9060005260206000200154905092915050565b8154600090819083106111a05760405162461bcd60e51b81526004018080602001828103825260228152602001806118a86022913960400191505060405180910390fd5b60008460000184815481106111b157fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816112725760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561123757818101518382015260200161121f565b50505050905090810190601f1680156112645780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061128557fe5b9060005260206000209060020201600101549150509392505050565b60006112b5846001600160a01b03166115c8565b6112c157506001610dfa565b60606113cf630a85bd0160e11b6112d6610ce1565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561133d578181015183820152602001611325565b50505050905090810190601f16801561136a5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505060405180606001604052806032815260200161179b603291396001600160a01b0388169190611601565b905060008180602001905160208110156113e857600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156114dd578354600019808301919081019060009087908390811061145457fe5b906000526020600020015490508087600001848154811061147157fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806114a157fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610713565b6000915050610713565b60006114f38383611409565b61152957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610713565b506000610713565b600082815260018401602052604081205480611596575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610f86565b828560000160018303815481106115a957fe5b9060005260206000209060020201600101819055506000915050610f86565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610dfa575050151592915050565b6060610f8384846000856060611616856115c8565b611667576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116a65780518252601f199092019160209182019101611687565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611708576040519150601f19603f3d011682016040523d82523d6000602084013e61170d565b606091505b50915091508115611721579150610dfa9050565b8051156117315780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561123757818101518382015260200161121f56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220b50a40d058929859f7695cf9daec980d18852deb8e4f7729b58639d085fc937364736f6c634300060c0033"},"devdoc":{"details":"see https://eips.ethereum.org/EIPS/eip-721","kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"constructor":{"details":"Initializes the contract by setting a `name` and a `symbol` to the token collection."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"title":"ERC721 Non-Fungible Token Standard basic implementation","version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80634f6ccce7116100a257806395d89b411161007157806395d89b4114610349578063a22cb46514610351578063b88d4fde1461037f578063c87b56dd14610445578063e985e9c5146104625761010b565b80634f6ccce7146102e15780636352211e146102fe5780636c0360eb1461031b57806370a08231146103235761010b565b806318160ddd116100de57806318160ddd1461022f57806323b872dd146102495780632f745c591461027f57806342842e0e146102ab5761010b565b806301ffc9a71461011057806306fdde031461014b578063081812fc146101c8578063095ea7b314610201575b600080fd5b6101376004803603602081101561012657600080fd5b50356001600160e01b031916610490565b604080519115158252519081900360200190f35b6101536104b3565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561018d578181015183820152602001610175565b50505050905090810190601f1680156101ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101e5600480360360208110156101de57600080fd5b5035610549565b604080516001600160a01b039092168252519081900360200190f35b61022d6004803603604081101561021757600080fd5b506001600160a01b0381351690602001356105ab565b005b610237610686565b60408051918252519081900360200190f35b61022d6004803603606081101561025f57600080fd5b506001600160a01b03813581169160208101359091169060400135610697565b6102376004803603604081101561029557600080fd5b506001600160a01b0381351690602001356106ee565b61022d600480360360608110156102c157600080fd5b506001600160a01b03813581169160208101359091169060400135610719565b610237600480360360208110156102f757600080fd5b5035610734565b6101e56004803603602081101561031457600080fd5b503561074a565b610153610772565b6102376004803603602081101561033957600080fd5b50356001600160a01b03166107d3565b61015361083b565b61022d6004803603604081101561036757600080fd5b506001600160a01b038135169060200135151561089c565b61022d6004803603608081101561039557600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156103d057600080fd5b8201836020820111156103e257600080fd5b8035906020019184600183028401116401000000008311171561040457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506109a1945050505050565b6101536004803603602081101561045b57600080fd5b50356109ff565b6101376004803603604081101561047857600080fd5b506001600160a01b0381358116916020013516610ca6565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b820191906000526020600020905b81548152906001019060200180831161052257829003601f168201915b5050505050905090565b600061055482610cd4565b61058f5760405162461bcd60e51b815260040180806020018281038252602c8152602001806118ca602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105b68261074a565b9050806001600160a01b0316836001600160a01b031614156106095760405162461bcd60e51b815260040180806020018281038252602181526020018061194e6021913960400191505060405180910390fd5b806001600160a01b031661061b610ce1565b6001600160a01b0316148061063c575061063c81610637610ce1565b610ca6565b6106775760405162461bcd60e51b815260040180806020018281038252603881526020018061181d6038913960400191505060405180910390fd5b6106818383610ce5565b505050565b60006106926002610d53565b905090565b6106a86106a2610ce1565b82610d5e565b6106e35760405162461bcd60e51b815260040180806020018281038252603181526020018061196f6031913960400191505060405180910390fd5b610681838383610e02565b6001600160a01b03821660009081526001602052604081206107109083610f4e565b90505b92915050565b610681838383604051806020016040528060008152506109a1565b600080610742600284610f5a565b509392505050565b60006107138260405180606001604052806029815260200161187f6029913960029190610f76565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b60006001600160a01b03821661081a5760405162461bcd60e51b815260040180806020018281038252602a815260200180611855602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061071390610d53565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561053f5780601f106105145761010080835404028352916020019161053f565b6108a4610ce1565b6001600160a01b0316826001600160a01b0316141561090a576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610917610ce1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561095b610ce1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6109b26109ac610ce1565b83610d5e565b6109ed5760405162461bcd60e51b815260040180806020018281038252603181526020018061196f6031913960400191505060405180910390fd5b6109f984848484610f8d565b50505050565b6060610a0a82610cd4565b610a455760405162461bcd60e51b815260040180806020018281038252602f81526020018061191f602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610ada5780601f10610aaf57610100808354040283529160200191610ada565b820191906000526020600020905b815481529060010190602001808311610abd57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610b035790506104ae565b805115610bd4576009816040516020018083805460018160011615610100020316600290048015610b6b5780601f10610b49576101008083540402835291820191610b6b565b820191906000526020600020905b815481529060010190602001808311610b57575b5050825160208401908083835b60208310610b975780518252601f199092019160209182019101610b78565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150506104ae565b6009610bdf84610fdf565b6040516020018083805460018160011615610100020316600290048015610c3d5780601f10610c1b576101008083540402835291820191610c3d565b820191906000526020600020905b815481529060010190602001808311610c29575b5050825160208401908083835b60208310610c695780518252601f199092019160209182019101610c4a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006107136002836110ba565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d1a8261074a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610713826110c6565b6000610d6982610cd4565b610da45760405162461bcd60e51b815260040180806020018281038252602c8152602001806117f1602c913960400191505060405180910390fd5b6000610daf8361074a565b9050806001600160a01b0316846001600160a01b03161480610dea5750836001600160a01b0316610ddf84610549565b6001600160a01b0316145b80610dfa5750610dfa8185610ca6565b949350505050565b826001600160a01b0316610e158261074a565b6001600160a01b031614610e5a5760405162461bcd60e51b81526004018080602001828103825260298152602001806118f66029913960400191505060405180910390fd5b6001600160a01b038216610e9f5760405162461bcd60e51b81526004018080602001828103825260248152602001806117cd6024913960400191505060405180910390fd5b610eaa838383610681565b610eb5600082610ce5565b6001600160a01b0383166000908152600160205260409020610ed790826110ca565b506001600160a01b0382166000908152600160205260409020610efa90826110d6565b50610f07600282846110e2565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061071083836110f8565b6000808080610f69868661115c565b9097909650945050505050565b6000610f838484846111d7565b90505b9392505050565b610f98848484610e02565b610fa4848484846112a1565b6109f95760405162461bcd60e51b815260040180806020018281038252603281526020018061179b6032913960400191505060405180910390fd5b60608161100457506040805180820190915260018152600360fc1b60208201526104ae565b8160005b811561101c57600101600a82049150611008565b60608167ffffffffffffffff8111801561103557600080fd5b506040519080825280601f01601f191660200182016040528015611060576020820181803683370190505b50859350905060001982015b83156110b157600a840660300160f81b8282806001900393508151811061108f57fe5b60200101906001600160f81b031916908160001a905350600a8404935061106c565b50949350505050565b60006107108383611409565b5490565b60006107108383611421565b600061071083836114e7565b6000610f8384846001600160a01b038516611531565b8154600090821061113a5760405162461bcd60e51b81526004018080602001828103825260228152602001806117796022913960400191505060405180910390fd5b82600001828154811061114957fe5b9060005260206000200154905092915050565b8154600090819083106111a05760405162461bcd60e51b81526004018080602001828103825260228152602001806118a86022913960400191505060405180910390fd5b60008460000184815481106111b157fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816112725760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561123757818101518382015260200161121f565b50505050905090810190601f1680156112645780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061128557fe5b9060005260206000209060020201600101549150509392505050565b60006112b5846001600160a01b03166115c8565b6112c157506001610dfa565b60606113cf630a85bd0160e11b6112d6610ce1565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561133d578181015183820152602001611325565b50505050905090810190601f16801561136a5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505060405180606001604052806032815260200161179b603291396001600160a01b0388169190611601565b905060008180602001905160208110156113e857600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156114dd578354600019808301919081019060009087908390811061145457fe5b906000526020600020015490508087600001848154811061147157fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806114a157fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610713565b6000915050610713565b60006114f38383611409565b61152957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610713565b506000610713565b600082815260018401602052604081205480611596575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610f86565b828560000160018303815481106115a957fe5b9060005260206000209060020201600101819055506000915050610f86565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610dfa575050151592915050565b6060610f8384846000856060611616856115c8565b611667576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116a65780518252601f199092019160209182019101611687565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611708576040519150601f19603f3d011682016040523d82523d6000602084013e61170d565b606091505b50915091508115611721579150610dfa9050565b8051156117315780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561123757818101518382015260200161121f56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220b50a40d058929859f7695cf9daec980d18852deb8e4f7729b58639d085fc937364736f6c634300060c0033"},"sourceId":"contracts/token/ERC721/ERC721.sol","sourcemap":"561:16178:92:-:0;;;3565:365;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3565:365:92;;;;;;;;;;-1:-1:-1;3565:365:92;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3565:365:92;;;;;;;;;;-1:-1:-1;3565:365:92;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3565:365:92;;-1:-1:-1;751:40:10;;-1:-1:-1;;;;770:20:10;-1:-1:-1;751:18:10;:40::i;:::-;3637:12:92;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;3659:16:92;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;3763:40:92;-1:-1:-1;;;3763:18:92;:40::i;:::-;3813:49;-1:-1:-1;;;3813:18:92;:49::i;:::-;3872:51;-1:-1:-1;;;3872:18:92;:51::i;:::-;3565:365;;561:16178;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;561:16178:92:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;561:16178:92;;;-1:-1:-1;561:16178:92;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721Burnable":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721Burnable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"ERC721 Token that can be irreversibly burned (destroyed).","kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"burn(uint256)":{"details":"Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"title":"ERC721 Burnable Token","version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","burn(uint256)":"0x42966c68","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC721/ERC721Burnable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721BurnableMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721BurnableMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200214938038062002149833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250839150829050620001b56301ffc9a760e01b62000221565b8151620001ca906006906020850190620002a6565b508051620001e0906007906020840190620002a6565b50620001f36380ac58cd60e01b62000221565b62000205635b5e139f60e01b62000221565b6200021763780e9d6360e01b62000221565b5050505062000342565b6001600160e01b0319808216141562000281576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002e957805160ff191683800117855562000319565b8280016001018555821562000319579182015b8281111562000319578251825591602001919060010190620002fc565b50620003279291506200032b565b5090565b5b808211156200032757600081556001016200032c565b611df780620003526000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806342966c68116100ad57806395d89b411161007157806395d89b41146103a8578063a22cb465146103b0578063b88d4fde146103de578063c87b56dd146104a4578063e985e9c5146104c157610121565b806342966c68146103235780634f6ccce7146103405780636352211e1461035d5780636c0360eb1461037a57806370a082311461038257610121565b806318160ddd116100f457806318160ddd1461024557806323b872dd1461025f5780632f745c591461029557806340c10f19146102c157806342842e0e146102ed57610121565b806301ffc9a71461012657806306fdde0314610161578063081812fc146101de578063095ea7b314610217575b600080fd5b61014d6004803603602081101561013c57600080fd5b50356001600160e01b0319166104ef565b604080519115158252519081900360200190f35b610169610512565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a357818101518382015260200161018b565b50505050905090810190601f1680156101d05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101fb600480360360208110156101f457600080fd5b50356105a8565b604080516001600160a01b039092168252519081900360200190f35b6102436004803603604081101561022d57600080fd5b506001600160a01b03813516906020013561060a565b005b61024d6106e5565b60408051918252519081900360200190f35b6102436004803603606081101561027557600080fd5b506001600160a01b038135811691602081013590911690604001356106f6565b61024d600480360360408110156102ab57600080fd5b506001600160a01b03813516906020013561074d565b610243600480360360408110156102d757600080fd5b506001600160a01b038135169060200135610778565b6102436004803603606081101561030357600080fd5b506001600160a01b03813581169160208101359091169060400135610786565b6102436004803603602081101561033957600080fd5b50356107a1565b61024d6004803603602081101561035657600080fd5b50356107f3565b6101fb6004803603602081101561037357600080fd5b5035610809565b610169610831565b61024d6004803603602081101561039857600080fd5b50356001600160a01b0316610892565b6101696108fa565b610243600480360360408110156103c657600080fd5b506001600160a01b038135169060200135151561095b565b610243600480360360808110156103f457600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561042f57600080fd5b82018360208201111561044157600080fd5b8035906020019184600183028401116401000000008311171561046357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a60945050505050565b610169600480360360208110156104ba57600080fd5b5035610abe565b61014d600480360360408110156104d757600080fd5b506001600160a01b0381358116916020013516610d65565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b820191906000526020600020905b81548152906001019060200180831161058157829003601f168201915b5050505050905090565b60006105b382610d93565b6105ee5760405162461bcd60e51b815260040180806020018281038252602c815260200180611cbc602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061061582610809565b9050806001600160a01b0316836001600160a01b031614156106685760405162461bcd60e51b8152600401808060200182810382526021815260200180611d406021913960400191505060405180910390fd5b806001600160a01b031661067a610da0565b6001600160a01b0316148061069b575061069b81610696610da0565b610d65565b6106d65760405162461bcd60e51b8152600401808060200182810382526038815260200180611c0f6038913960400191505060405180910390fd5b6106e08383610da4565b505050565b60006106f16002610e12565b905090565b610707610701610da0565b82610e1d565b6107425760405162461bcd60e51b8152600401808060200182810382526031815260200180611d616031913960400191505060405180910390fd5b6106e0838383610ec1565b6001600160a01b038216600090815260016020526040812061076f908361100d565b90505b92915050565b6107828282611019565b5050565b6106e083838360405180602001604052806000815250610a60565b6107ac610701610da0565b6107e75760405162461bcd60e51b8152600401808060200182810382526030815260200180611d926030913960400191505060405180910390fd5b6107f081611147565b50565b600080610801600284611214565b509392505050565b600061077282604051806060016040528060298152602001611c716029913960029190611230565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b60006001600160a01b0382166108d95760405162461bcd60e51b815260040180806020018281038252602a815260200180611c47602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061077290610e12565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b610963610da0565b6001600160a01b0316826001600160a01b031614156109c9576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b80600560006109d6610da0565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a1a610da0565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610a71610a6b610da0565b83610e1d565b610aac5760405162461bcd60e51b8152600401808060200182810382526031815260200180611d616031913960400191505060405180910390fd5b610ab884848484611247565b50505050565b6060610ac982610d93565b610b045760405162461bcd60e51b815260040180806020018281038252602f815260200180611d11602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610b995780601f10610b6e57610100808354040283529160200191610b99565b820191906000526020600020905b815481529060010190602001808311610b7c57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610bc257905061050d565b805115610c93576009816040516020018083805460018160011615610100020316600290048015610c2a5780601f10610c08576101008083540402835291820191610c2a565b820191906000526020600020905b815481529060010190602001808311610c16575b5050825160208401908083835b60208310610c565780518252601f199092019160209182019101610c37565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061050d565b6009610c9e84611299565b6040516020018083805460018160011615610100020316600290048015610cfc5780601f10610cda576101008083540402835291820191610cfc565b820191906000526020600020905b815481529060010190602001808311610ce8575b5050825160208401908083835b60208310610d285780518252601f199092019160209182019101610d09565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610772600283611374565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610dd982610809565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061077282611380565b6000610e2882610d93565b610e635760405162461bcd60e51b815260040180806020018281038252602c815260200180611be3602c913960400191505060405180910390fd5b6000610e6e83610809565b9050806001600160a01b0316846001600160a01b03161480610ea95750836001600160a01b0316610e9e846105a8565b6001600160a01b0316145b80610eb95750610eb98185610d65565b949350505050565b826001600160a01b0316610ed482610809565b6001600160a01b031614610f195760405162461bcd60e51b8152600401808060200182810382526029815260200180611ce86029913960400191505060405180910390fd5b6001600160a01b038216610f5e5760405162461bcd60e51b8152600401808060200182810382526024815260200180611bbf6024913960400191505060405180910390fd5b610f698383836106e0565b610f74600082610da4565b6001600160a01b0383166000908152600160205260409020610f969082611384565b506001600160a01b0382166000908152600160205260409020610fb99082611390565b50610fc66002828461139c565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061076f83836113b2565b6001600160a01b038216611074576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61107d81610d93565b156110cf576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6110db600083836106e0565b6001600160a01b03821660009081526001602052604090206110fd9082611390565b5061110a6002828461139c565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061115282610809565b9050611160816000846106e0565b61116b600083610da4565b60008281526008602052604090205460026000196101006001841615020190911604156111a95760008281526008602052604081206111a991611b12565b6001600160a01b03811660009081526001602052604090206111cb9083611384565b506111d7600283611416565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806112238686611422565b9097909650945050505050565b600061123d84848461149d565b90505b9392505050565b611252848484610ec1565b61125e84848484611567565b610ab85760405162461bcd60e51b8152600401808060200182810382526032815260200180611b8d6032913960400191505060405180910390fd5b6060816112be57506040805180820190915260018152600360fc1b602082015261050d565b8160005b81156112d657600101600a820491506112c2565b60608167ffffffffffffffff811180156112ef57600080fd5b506040519080825280601f01601f19166020018201604052801561131a576020820181803683370190505b50859350905060001982015b831561136b57600a840660300160f81b8282806001900393508151811061134957fe5b60200101906001600160f81b031916908160001a905350600a84049350611326565b50949350505050565b600061076f83836116cf565b5490565b600061076f83836116e7565b600061076f83836117ad565b600061123d84846001600160a01b0385166117f7565b815460009082106113f45760405162461bcd60e51b8152600401808060200182810382526022815260200180611b6b6022913960400191505060405180910390fd5b82600001828154811061140357fe5b9060005260206000200154905092915050565b600061076f838361188e565b8154600090819083106114665760405162461bcd60e51b8152600401808060200182810382526022815260200180611c9a6022913960400191505060405180910390fd5b600084600001848154811061147757fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816115385760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114fd5781810151838201526020016114e5565b50505050905090810190601f16801561152a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061154b57fe5b9060005260206000209060020201600101549150509392505050565b600061157b846001600160a01b0316611962565b61158757506001610eb9565b6060611695630a85bd0160e11b61159c610da0565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156116035781810151838201526020016115eb565b50505050905090810190601f1680156116305780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611b8d603291396001600160a01b038816919061199b565b905060008180602001905160208110156116ae57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156117a3578354600019808301919081019060009087908390811061171a57fe5b906000526020600020015490508087600001848154811061173757fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061176757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610772565b6000915050610772565b60006117b983836116cf565b6117ef57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610772565b506000610772565b60008281526001840160205260408120548061185c575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611240565b8285600001600183038154811061186f57fe5b9060005260206000209060020201600101819055506000915050611240565b600081815260018301602052604081205480156117a357835460001980830191908101906000908790839081106118c157fe5b90600052602060002090600202019050808760000184815481106118e157fe5b60009182526020808320845460029093020191825560019384015491840191909155835482528983019052604090209084019055865487908061192057fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506107729350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610eb9575050151592915050565b606061123d848460008560606119b085611962565b611a01576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611a405780518252601f199092019160209182019101611a21565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611aa2576040519150601f19603f3d011682016040523d82523d6000602084013e611aa7565b606091505b50915091508115611abb579150610eb99050565b805115611acb5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156114fd5781810151838201526020016114e5565b50805460018160011615610100020316600290046000825580601f10611b3857506107f0565b601f0160209004906000526020600020908101906107f091905b80821115611b665760008155600101611b52565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732314275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a264697066735822122088463d8d9094af9900e333d6f59433ea72dffa879e16b6c4a06b56cdfbdfdcca64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"burn(uint256)":{"details":"Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","burn(uint256)":"0x42966c68","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101215760003560e01c806342966c68116100ad57806395d89b411161007157806395d89b41146103a8578063a22cb465146103b0578063b88d4fde146103de578063c87b56dd146104a4578063e985e9c5146104c157610121565b806342966c68146103235780634f6ccce7146103405780636352211e1461035d5780636c0360eb1461037a57806370a082311461038257610121565b806318160ddd116100f457806318160ddd1461024557806323b872dd1461025f5780632f745c591461029557806340c10f19146102c157806342842e0e146102ed57610121565b806301ffc9a71461012657806306fdde0314610161578063081812fc146101de578063095ea7b314610217575b600080fd5b61014d6004803603602081101561013c57600080fd5b50356001600160e01b0319166104ef565b604080519115158252519081900360200190f35b610169610512565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a357818101518382015260200161018b565b50505050905090810190601f1680156101d05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101fb600480360360208110156101f457600080fd5b50356105a8565b604080516001600160a01b039092168252519081900360200190f35b6102436004803603604081101561022d57600080fd5b506001600160a01b03813516906020013561060a565b005b61024d6106e5565b60408051918252519081900360200190f35b6102436004803603606081101561027557600080fd5b506001600160a01b038135811691602081013590911690604001356106f6565b61024d600480360360408110156102ab57600080fd5b506001600160a01b03813516906020013561074d565b610243600480360360408110156102d757600080fd5b506001600160a01b038135169060200135610778565b6102436004803603606081101561030357600080fd5b506001600160a01b03813581169160208101359091169060400135610786565b6102436004803603602081101561033957600080fd5b50356107a1565b61024d6004803603602081101561035657600080fd5b50356107f3565b6101fb6004803603602081101561037357600080fd5b5035610809565b610169610831565b61024d6004803603602081101561039857600080fd5b50356001600160a01b0316610892565b6101696108fa565b610243600480360360408110156103c657600080fd5b506001600160a01b038135169060200135151561095b565b610243600480360360808110156103f457600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561042f57600080fd5b82018360208201111561044157600080fd5b8035906020019184600183028401116401000000008311171561046357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a60945050505050565b610169600480360360208110156104ba57600080fd5b5035610abe565b61014d600480360360408110156104d757600080fd5b506001600160a01b0381358116916020013516610d65565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b820191906000526020600020905b81548152906001019060200180831161058157829003601f168201915b5050505050905090565b60006105b382610d93565b6105ee5760405162461bcd60e51b815260040180806020018281038252602c815260200180611cbc602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061061582610809565b9050806001600160a01b0316836001600160a01b031614156106685760405162461bcd60e51b8152600401808060200182810382526021815260200180611d406021913960400191505060405180910390fd5b806001600160a01b031661067a610da0565b6001600160a01b0316148061069b575061069b81610696610da0565b610d65565b6106d65760405162461bcd60e51b8152600401808060200182810382526038815260200180611c0f6038913960400191505060405180910390fd5b6106e08383610da4565b505050565b60006106f16002610e12565b905090565b610707610701610da0565b82610e1d565b6107425760405162461bcd60e51b8152600401808060200182810382526031815260200180611d616031913960400191505060405180910390fd5b6106e0838383610ec1565b6001600160a01b038216600090815260016020526040812061076f908361100d565b90505b92915050565b6107828282611019565b5050565b6106e083838360405180602001604052806000815250610a60565b6107ac610701610da0565b6107e75760405162461bcd60e51b8152600401808060200182810382526030815260200180611d926030913960400191505060405180910390fd5b6107f081611147565b50565b600080610801600284611214565b509392505050565b600061077282604051806060016040528060298152602001611c716029913960029190611230565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b60006001600160a01b0382166108d95760405162461bcd60e51b815260040180806020018281038252602a815260200180611c47602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061077290610e12565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561059e5780601f106105735761010080835404028352916020019161059e565b610963610da0565b6001600160a01b0316826001600160a01b031614156109c9576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b80600560006109d6610da0565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a1a610da0565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610a71610a6b610da0565b83610e1d565b610aac5760405162461bcd60e51b8152600401808060200182810382526031815260200180611d616031913960400191505060405180910390fd5b610ab884848484611247565b50505050565b6060610ac982610d93565b610b045760405162461bcd60e51b815260040180806020018281038252602f815260200180611d11602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610b995780601f10610b6e57610100808354040283529160200191610b99565b820191906000526020600020905b815481529060010190602001808311610b7c57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610bc257905061050d565b805115610c93576009816040516020018083805460018160011615610100020316600290048015610c2a5780601f10610c08576101008083540402835291820191610c2a565b820191906000526020600020905b815481529060010190602001808311610c16575b5050825160208401908083835b60208310610c565780518252601f199092019160209182019101610c37565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061050d565b6009610c9e84611299565b6040516020018083805460018160011615610100020316600290048015610cfc5780601f10610cda576101008083540402835291820191610cfc565b820191906000526020600020905b815481529060010190602001808311610ce8575b5050825160208401908083835b60208310610d285780518252601f199092019160209182019101610d09565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610772600283611374565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610dd982610809565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061077282611380565b6000610e2882610d93565b610e635760405162461bcd60e51b815260040180806020018281038252602c815260200180611be3602c913960400191505060405180910390fd5b6000610e6e83610809565b9050806001600160a01b0316846001600160a01b03161480610ea95750836001600160a01b0316610e9e846105a8565b6001600160a01b0316145b80610eb95750610eb98185610d65565b949350505050565b826001600160a01b0316610ed482610809565b6001600160a01b031614610f195760405162461bcd60e51b8152600401808060200182810382526029815260200180611ce86029913960400191505060405180910390fd5b6001600160a01b038216610f5e5760405162461bcd60e51b8152600401808060200182810382526024815260200180611bbf6024913960400191505060405180910390fd5b610f698383836106e0565b610f74600082610da4565b6001600160a01b0383166000908152600160205260409020610f969082611384565b506001600160a01b0382166000908152600160205260409020610fb99082611390565b50610fc66002828461139c565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061076f83836113b2565b6001600160a01b038216611074576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61107d81610d93565b156110cf576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6110db600083836106e0565b6001600160a01b03821660009081526001602052604090206110fd9082611390565b5061110a6002828461139c565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061115282610809565b9050611160816000846106e0565b61116b600083610da4565b60008281526008602052604090205460026000196101006001841615020190911604156111a95760008281526008602052604081206111a991611b12565b6001600160a01b03811660009081526001602052604090206111cb9083611384565b506111d7600283611416565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806112238686611422565b9097909650945050505050565b600061123d84848461149d565b90505b9392505050565b611252848484610ec1565b61125e84848484611567565b610ab85760405162461bcd60e51b8152600401808060200182810382526032815260200180611b8d6032913960400191505060405180910390fd5b6060816112be57506040805180820190915260018152600360fc1b602082015261050d565b8160005b81156112d657600101600a820491506112c2565b60608167ffffffffffffffff811180156112ef57600080fd5b506040519080825280601f01601f19166020018201604052801561131a576020820181803683370190505b50859350905060001982015b831561136b57600a840660300160f81b8282806001900393508151811061134957fe5b60200101906001600160f81b031916908160001a905350600a84049350611326565b50949350505050565b600061076f83836116cf565b5490565b600061076f83836116e7565b600061076f83836117ad565b600061123d84846001600160a01b0385166117f7565b815460009082106113f45760405162461bcd60e51b8152600401808060200182810382526022815260200180611b6b6022913960400191505060405180910390fd5b82600001828154811061140357fe5b9060005260206000200154905092915050565b600061076f838361188e565b8154600090819083106114665760405162461bcd60e51b8152600401808060200182810382526022815260200180611c9a6022913960400191505060405180910390fd5b600084600001848154811061147757fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816115385760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114fd5781810151838201526020016114e5565b50505050905090810190601f16801561152a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061154b57fe5b9060005260206000209060020201600101549150509392505050565b600061157b846001600160a01b0316611962565b61158757506001610eb9565b6060611695630a85bd0160e11b61159c610da0565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156116035781810151838201526020016115eb565b50505050905090810190601f1680156116305780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611b8d603291396001600160a01b038816919061199b565b905060008180602001905160208110156116ae57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156117a3578354600019808301919081019060009087908390811061171a57fe5b906000526020600020015490508087600001848154811061173757fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061176757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610772565b6000915050610772565b60006117b983836116cf565b6117ef57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610772565b506000610772565b60008281526001840160205260408120548061185c575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611240565b8285600001600183038154811061186f57fe5b9060005260206000209060020201600101819055506000915050611240565b600081815260018301602052604081205480156117a357835460001980830191908101906000908790839081106118c157fe5b90600052602060002090600202019050808760000184815481106118e157fe5b60009182526020808320845460029093020191825560019384015491840191909155835482528983019052604090209084019055865487908061192057fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506107729350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610eb9575050151592915050565b606061123d848460008560606119b085611962565b611a01576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611a405780518252601f199092019160209182019101611a21565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611aa2576040519150601f19603f3d011682016040523d82523d6000602084013e611aa7565b606091505b50915091508115611abb579150610eb99050565b805115611acb5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156114fd5781810151838201526020016114e5565b50805460018160011615610100020316600290046000825580601f10611b3857506107f0565b601f0160209004906000526020600020908101906107f091905b80821115611b665760008155600101611b52565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732314275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a264697066735822122088463d8d9094af9900e333d6f59433ea72dffa879e16b6c4a06b56cdfbdfdcca64736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC721BurnableMock.sol","sourcemap":"104:230:43:-:0;;;156:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;156:85:43;;;;;;;;;;-1:-1:-1;156:85:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;156:85:43;;;;;;;;;;-1:-1:-1;156:85:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;156:85:43;;-1:-1:-1;224:4:43;;-1:-1:-1;230:6:43;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;3637:12:92;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;3659:16:92;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;3763:40:92;-1:-1:-1;;;3763:18:92;:40::i;:::-;3813:49;-1:-1:-1;;;3813:18:92;:49::i;:::-;3872:51;-1:-1:-1;;;3872:18:92;:51::i;:::-;3565:365;;156:85:43;;104:230;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;104:230:43:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;104:230:43;;;-1:-1:-1;104:230:43;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721GSNRecipientMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"trustedSigner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"relay","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"approvalData","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721GSNRecipientMock","deploymentBytecode":{"bytecode":"0x6080604052600a80546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f4941790553480156200003757600080fd5b506040516200287138038062002871833981810160405260608110156200005d57600080fd5b81019080805160405193929190846401000000008211156200007e57600080fd5b9083019060208201858111156200009457600080fd5b8251640100000000811182820188101715620000af57600080fd5b82525081516020918201929091019080838360005b83811015620000de578181015183820152602001620000c4565b50505050905090810190601f1680156200010c5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200013057600080fd5b9083019060208201858111156200014657600080fd5b82516401000000008111828201881017156200016157600080fd5b82525081516020918201929091019080838360005b838110156200019057818101518382015260200162000176565b50505050905090810190601f168015620001be5780820380516001836020036101000a031916815260200191505b506040526020015191508190508383620001df6301ffc9a760e01b620002b4565b8151620001f490600690602085019062000339565b5080516200020a90600790602084019062000339565b506200021d6380ac58cd60e01b620002b4565b6200022f635b5e139f60e01b620002b4565b6200024163780e9d6360e01b620002b4565b50506001600160a01b0381166200028a5760405162461bcd60e51b8152600401808060200182810382526039815260200180620028386039913960400191505060405180910390fd5b600b80546001600160a01b0319166001600160a01b039290921691909117905550620003d5915050565b6001600160e01b0319808216141562000314576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200037c57805160ff1916838001178555620003ac565b82800160010185558215620003ac579182015b82811115620003ac5782518255916020019190600101906200038f565b50620003ba929150620003be565b5090565b5b80821115620003ba5760008155600101620003bf565b61245380620003e56000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c806370a08231116100c3578063a22cb4651161007c578063a22cb46514610638578063ad61ccd514610666578063b88d4fde1461066e578063c87b56dd14610732578063e06e0e221461074f578063e985e9c5146108005761014d565b806370a082311461036557806374e861d61461038b57806380274db71461039357806383947ea01461043757806395d89b4114610613578063a0712d681461061b5761014d565b806323b872dd1161011557806323b872dd1461028b5780632f745c59146102c157806342842e0e146102ed5780634f6ccce7146103235780636352211e146103405780636c0360eb1461035d5761014d565b806301ffc9a71461015257806306fdde031461018d578063081812fc1461020a578063095ea7b31461024357806318160ddd14610271575b600080fd5b6101796004803603602081101561016857600080fd5b50356001600160e01b03191661082e565b604080519115158252519081900360200190f35b610195610851565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cf5781810151838201526020016101b7565b50505050905090810190601f1680156101fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102276004803603602081101561022057600080fd5b50356108e8565b604080516001600160a01b039092168252519081900360200190f35b61026f6004803603604081101561025957600080fd5b506001600160a01b03813516906020013561094a565b005b610279610a25565b60408051918252519081900360200190f35b61026f600480360360608110156102a157600080fd5b506001600160a01b03813581169160208101359091169060400135610a36565b610279600480360360408110156102d757600080fd5b506001600160a01b038135169060200135610a8d565b61026f6004803603606081101561030357600080fd5b506001600160a01b03813581169160208101359091169060400135610ab8565b6102796004803603602081101561033957600080fd5b5035610ad3565b6102276004803603602081101561035657600080fd5b5035610ae9565b610195610b11565b6102796004803603602081101561037b57600080fd5b50356001600160a01b0316610b72565b610227610bda565b610279600480360360208110156103a957600080fd5b810190602081018135600160201b8111156103c357600080fd5b8201836020820111156103d557600080fd5b803590602001918460018302840111600160201b831117156103f657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610be9945050505050565b610594600480360361012081101561044e57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561048157600080fd5b82018360208201111561049357600080fd5b803590602001918460018302840111600160201b831117156104b457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561051e57600080fd5b82018360208201111561053057600080fd5b803590602001918460018302840111600160201b8311171561055157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250610c4b915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156105d75781810151838201526020016105bf565b50505050905090810190601f1680156106045780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610195610d8c565b61026f6004803603602081101561063157600080fd5b5035610ded565b61026f6004803603604081101561064e57600080fd5b506001600160a01b0381351690602001351515610e01565b610195610f06565b61026f6004803603608081101561068457600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156106be57600080fd5b8201836020820111156106d057600080fd5b803590602001918460018302840111600160201b831117156106f157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f25945050505050565b6101956004803603602081101561074857600080fd5b5035610f83565b61026f6004803603608081101561076557600080fd5b810190602081018135600160201b81111561077f57600080fd5b82018360208201111561079157600080fd5b803590602001918460018302840111600160201b831117156107b257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050508035151591506020810135906040013561122a565b6101796004803603604081101561081657600080fd5b506001600160a01b038135811691602001351661128d565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b820191906000526020600020905b8154815290600101906020018083116108c057829003601f168201915b505050505090505b90565b60006108f3826112bb565b61092e5760405162461bcd60e51b815260040180806020018281038252602c815260200180612324602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061095582610ae9565b9050806001600160a01b0316836001600160a01b031614156109a85760405162461bcd60e51b81526004018080602001828103825260218152602001806123a86021913960400191505060405180910390fd5b806001600160a01b03166109ba6112c8565b6001600160a01b031614806109db57506109db816109d66112c8565b61128d565b610a165760405162461bcd60e51b81526004018080602001828103825260388152602001806122556038913960400191505060405180910390fd5b610a2083836112d2565b505050565b6000610a316002611340565b905090565b610a47610a416112c8565b8261134b565b610a825760405162461bcd60e51b81526004018080602001828103825260318152602001806123ed6031913960400191505060405180910390fd5b610a208383836113ef565b6001600160a01b0382166000908152600160205260408120610aaf908361153b565b90505b92915050565b610a2083838360405180602001604052806000815250610f25565b600080610ae1600284611547565b509392505050565b6000610ab2826040518060600160405280602981526020016122b76029913960029190611563565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b60006001600160a01b038216610bb95760405162461bcd60e51b815260040180806020018281038252602a81526020018061228d602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610ab290611340565b600a546001600160a01b031690565b6000610bf3610bda565b6001600160a01b0316336001600160a01b031614610c425760405162461bcd60e51b81526004018080602001828103825260248152602001806123c96024913960400191505060405180910390fd5b610ab28261157a565b60006060808b8b8b8b8b8b8b610c5f610bda565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b60208310610cb65780518252601f199092019160209182019101610c97565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a89093019052600b548251918301919091209195506001600160a01b03169350610d539250889150610d4d90611580565b906115d1565b6001600160a01b03161415610d7457610d6a6117bc565b9250925050610d7e565b610d6a60006117e0565b995099975050505050505050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b610dfe610df86112c8565b826117f8565b50565b610e096112c8565b6001600160a01b0316826001600160a01b03161415610e6f576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610e7c6112c8565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ec06112c8565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610f36610f306112c8565b8361134b565b610f715760405162461bcd60e51b81526004018080602001828103825260318152602001806123ed6031913960400191505060405180910390fd5b610f7d84848484611926565b50505050565b6060610f8e826112bb565b610fc95760405162461bcd60e51b815260040180806020018281038252602f815260200180612379602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561105e5780601f106110335761010080835404028352916020019161105e565b820191906000526020600020905b81548152906001019060200180831161104157829003601f168201915b50506009549394505050506002600019610100600184161502019091160461108757905061084c565b8051156111585760098160405160200180838054600181600116156101000203166002900480156110ef5780601f106110cd5761010080835404028352918201916110ef565b820191906000526020600020905b8154815290600101906020018083116110db575b5050825160208401908083835b6020831061111b5780518252601f1990920191602091820191016110fc565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061084c565b600961116384611978565b60405160200180838054600181600116156101000203166002900480156111c15780601f1061119f5761010080835404028352918201916111c1565b820191906000526020600020905b8154815290600101906020018083116111ad575b5050825160208401908083835b602083106111ed5780518252601f1990920191602091820191016111ce565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b611232610bda565b6001600160a01b0316336001600160a01b0316146112815760405162461bcd60e51b81526004018080602001828103825260248152602001806123c96024913960400191505060405180910390fd5b610f7d84848484610f7d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610ab2600283611a53565b6000610a31611a5f565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061130782610ae9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610ab282611a8a565b6000611356826112bb565b6113915760405162461bcd60e51b815260040180806020018281038252602c815260200180612229602c913960400191505060405180910390fd5b600061139c83610ae9565b9050806001600160a01b0316846001600160a01b031614806113d75750836001600160a01b03166113cc846108e8565b6001600160a01b0316145b806113e757506113e7818561128d565b949350505050565b826001600160a01b031661140282610ae9565b6001600160a01b0316146114475760405162461bcd60e51b81526004018080602001828103825260298152602001806123506029913960400191505060405180910390fd5b6001600160a01b03821661148c5760405162461bcd60e51b81526004018080602001828103825260248152602001806121e36024913960400191505060405180910390fd5b611497838383610a20565b6114a26000826112d2565b6001600160a01b03831660009081526001602052604090206114c49082611a8e565b506001600160a01b03821660009081526001602052604090206114e79082611a9a565b506114f460028284611aa6565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610aaf8383611abc565b60008080806115568686611b20565b9097909650945050505050565b6000611570848484611b9b565b90505b9392505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b60008151604114611629576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561169a5760405162461bcd60e51b81526004018080602001828103825260228152602001806122076022913960400191505060405180910390fd5b8060ff16601b141580156116b257508060ff16601c14155b156116ee5760405162461bcd60e51b81526004018080602001828103825260228152602001806122e06022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561174a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117b2576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600060606117d860405180602001604052806000815250611c65565b915091509091565b604080516020810190915260008152600b9190910191565b6001600160a01b038216611853576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61185c816112bb565b156118ae576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6118ba60008383610a20565b6001600160a01b03821660009081526001602052604090206118dc9082611a9a565b506118e960028284611aa6565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6119318484846113ef565b61193d84848484611c6a565b610f7d5760405162461bcd60e51b81526004018080602001828103825260328152602001806121b16032913960400191505060405180910390fd5b60608161199d57506040805180820190915260018152600360fc1b602082015261084c565b8160005b81156119b557600101600a820491506119a1565b60608167ffffffffffffffff811180156119ce57600080fd5b506040519080825280601f01601f1916602001820160405280156119f9576020820181803683370190505b50859350905060001982015b8315611a4a57600a840660300160f81b82828060019003935081518110611a2857fe5b60200101906001600160f81b031916908160001a905350600a84049350611a05565b50949350505050565b6000610aaf8383611dd2565b600a546000906001600160a01b03163314611a7b5750336108e5565b611a83611dea565b90506108e5565b5490565b6000610aaf8383611e37565b6000610aaf8383611efd565b600061157084846001600160a01b038516611f47565b81546000908210611afe5760405162461bcd60e51b815260040180806020018281038252602281526020018061218f6022913960400191505060405180910390fd5b826000018281548110611b0d57fe5b9060005260206000200154905092915050565b815460009081908310611b645760405162461bcd60e51b81526004018080602001828103825260228152602001806123026022913960400191505060405180910390fd5b6000846000018481548110611b7557fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611c365760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611bfb578181015183820152602001611be3565b50505050905090810190601f168015611c285780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611c4957fe5b9060005260206000209060020201600101549150509392505050565b600091565b6000611c7e846001600160a01b0316611fde565b611c8a575060016113e7565b6060611d98630a85bd0160e11b611c9f6112c8565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611d06578181015183820152602001611cee565b50505050905090810190601f168015611d335780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060600160405280603281526020016121b1603291396001600160a01b0388169190612017565b90506000818060200190516020811015611db157600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b60008181526001830160205260408120548015611ef35783546000198083019190810190600090879083908110611e6a57fe5b9060005260206000200154905080876000018481548110611e8757fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611eb757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610ab2565b6000915050610ab2565b6000611f098383611dd2565b611f3f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610ab2565b506000610ab2565b600082815260018401602052604081205480611fac575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611573565b82856000016001830381548110611fbf57fe5b9060005260206000209060020201600101819055506000915050611573565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906113e7575050151592915050565b60606115708484600085606061202c85611fde565b61207d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106120bc5780518252601f19909201916020918201910161209d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461211e576040519150601f19603f3d011682016040523d82523d6000602084013e612123565b606091505b509150915081156121375791506113e79050565b8051156121475780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611bfb578181015183820152602001611be356fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f206164647265737345434453413a20696e76616c6964207369676e6174757265202773272076616c75654552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e45434453413a20696e76616c6964207369676e6174757265202776272076616c7565456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e657247534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875624552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a264697066735822122078b8bb57b3d14c3736d2a537b91c26f4975e82443a147f6290e7865262c42a9664736f6c634300060c003347534e526563697069656e745369676e61747572653a2074727573746564207369676e657220697320746865207a65726f2061646472657373"},"devdoc":{"kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Ensures that only transactions with a trusted signature can be relayed through the GSN."},"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"title":"ERC721GSNRecipientMock A simple ERC721 mock that has GSN support enabled","version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","getApproved(uint256)":"0x081812fc","getHubAddr()":"0x74e861d6","isApprovedForAll(address,address)":"0xe985e9c5","mint(uint256)":"0xa0712d68","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061014d5760003560e01c806370a08231116100c3578063a22cb4651161007c578063a22cb46514610638578063ad61ccd514610666578063b88d4fde1461066e578063c87b56dd14610732578063e06e0e221461074f578063e985e9c5146108005761014d565b806370a082311461036557806374e861d61461038b57806380274db71461039357806383947ea01461043757806395d89b4114610613578063a0712d681461061b5761014d565b806323b872dd1161011557806323b872dd1461028b5780632f745c59146102c157806342842e0e146102ed5780634f6ccce7146103235780636352211e146103405780636c0360eb1461035d5761014d565b806301ffc9a71461015257806306fdde031461018d578063081812fc1461020a578063095ea7b31461024357806318160ddd14610271575b600080fd5b6101796004803603602081101561016857600080fd5b50356001600160e01b03191661082e565b604080519115158252519081900360200190f35b610195610851565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cf5781810151838201526020016101b7565b50505050905090810190601f1680156101fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102276004803603602081101561022057600080fd5b50356108e8565b604080516001600160a01b039092168252519081900360200190f35b61026f6004803603604081101561025957600080fd5b506001600160a01b03813516906020013561094a565b005b610279610a25565b60408051918252519081900360200190f35b61026f600480360360608110156102a157600080fd5b506001600160a01b03813581169160208101359091169060400135610a36565b610279600480360360408110156102d757600080fd5b506001600160a01b038135169060200135610a8d565b61026f6004803603606081101561030357600080fd5b506001600160a01b03813581169160208101359091169060400135610ab8565b6102796004803603602081101561033957600080fd5b5035610ad3565b6102276004803603602081101561035657600080fd5b5035610ae9565b610195610b11565b6102796004803603602081101561037b57600080fd5b50356001600160a01b0316610b72565b610227610bda565b610279600480360360208110156103a957600080fd5b810190602081018135600160201b8111156103c357600080fd5b8201836020820111156103d557600080fd5b803590602001918460018302840111600160201b831117156103f657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610be9945050505050565b610594600480360361012081101561044e57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561048157600080fd5b82018360208201111561049357600080fd5b803590602001918460018302840111600160201b831117156104b457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561051e57600080fd5b82018360208201111561053057600080fd5b803590602001918460018302840111600160201b8311171561055157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250610c4b915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156105d75781810151838201526020016105bf565b50505050905090810190601f1680156106045780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610195610d8c565b61026f6004803603602081101561063157600080fd5b5035610ded565b61026f6004803603604081101561064e57600080fd5b506001600160a01b0381351690602001351515610e01565b610195610f06565b61026f6004803603608081101561068457600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156106be57600080fd5b8201836020820111156106d057600080fd5b803590602001918460018302840111600160201b831117156106f157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f25945050505050565b6101956004803603602081101561074857600080fd5b5035610f83565b61026f6004803603608081101561076557600080fd5b810190602081018135600160201b81111561077f57600080fd5b82018360208201111561079157600080fd5b803590602001918460018302840111600160201b831117156107b257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050508035151591506020810135906040013561122a565b6101796004803603604081101561081657600080fd5b506001600160a01b038135811691602001351661128d565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b820191906000526020600020905b8154815290600101906020018083116108c057829003601f168201915b505050505090505b90565b60006108f3826112bb565b61092e5760405162461bcd60e51b815260040180806020018281038252602c815260200180612324602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061095582610ae9565b9050806001600160a01b0316836001600160a01b031614156109a85760405162461bcd60e51b81526004018080602001828103825260218152602001806123a86021913960400191505060405180910390fd5b806001600160a01b03166109ba6112c8565b6001600160a01b031614806109db57506109db816109d66112c8565b61128d565b610a165760405162461bcd60e51b81526004018080602001828103825260388152602001806122556038913960400191505060405180910390fd5b610a2083836112d2565b505050565b6000610a316002611340565b905090565b610a47610a416112c8565b8261134b565b610a825760405162461bcd60e51b81526004018080602001828103825260318152602001806123ed6031913960400191505060405180910390fd5b610a208383836113ef565b6001600160a01b0382166000908152600160205260408120610aaf908361153b565b90505b92915050565b610a2083838360405180602001604052806000815250610f25565b600080610ae1600284611547565b509392505050565b6000610ab2826040518060600160405280602981526020016122b76029913960029190611563565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b60006001600160a01b038216610bb95760405162461bcd60e51b815260040180806020018281038252602a81526020018061228d602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610ab290611340565b600a546001600160a01b031690565b6000610bf3610bda565b6001600160a01b0316336001600160a01b031614610c425760405162461bcd60e51b81526004018080602001828103825260248152602001806123c96024913960400191505060405180910390fd5b610ab28261157a565b60006060808b8b8b8b8b8b8b610c5f610bda565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b60208310610cb65780518252601f199092019160209182019101610c97565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a89093019052600b548251918301919091209195506001600160a01b03169350610d539250889150610d4d90611580565b906115d1565b6001600160a01b03161415610d7457610d6a6117bc565b9250925050610d7e565b610d6a60006117e0565b995099975050505050505050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108dd5780601f106108b2576101008083540402835291602001916108dd565b610dfe610df86112c8565b826117f8565b50565b610e096112c8565b6001600160a01b0316826001600160a01b03161415610e6f576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610e7c6112c8565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ec06112c8565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610f36610f306112c8565b8361134b565b610f715760405162461bcd60e51b81526004018080602001828103825260318152602001806123ed6031913960400191505060405180910390fd5b610f7d84848484611926565b50505050565b6060610f8e826112bb565b610fc95760405162461bcd60e51b815260040180806020018281038252602f815260200180612379602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561105e5780601f106110335761010080835404028352916020019161105e565b820191906000526020600020905b81548152906001019060200180831161104157829003601f168201915b50506009549394505050506002600019610100600184161502019091160461108757905061084c565b8051156111585760098160405160200180838054600181600116156101000203166002900480156110ef5780601f106110cd5761010080835404028352918201916110ef565b820191906000526020600020905b8154815290600101906020018083116110db575b5050825160208401908083835b6020831061111b5780518252601f1990920191602091820191016110fc565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061084c565b600961116384611978565b60405160200180838054600181600116156101000203166002900480156111c15780601f1061119f5761010080835404028352918201916111c1565b820191906000526020600020905b8154815290600101906020018083116111ad575b5050825160208401908083835b602083106111ed5780518252601f1990920191602091820191016111ce565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b611232610bda565b6001600160a01b0316336001600160a01b0316146112815760405162461bcd60e51b81526004018080602001828103825260248152602001806123c96024913960400191505060405180910390fd5b610f7d84848484610f7d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610ab2600283611a53565b6000610a31611a5f565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061130782610ae9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610ab282611a8a565b6000611356826112bb565b6113915760405162461bcd60e51b815260040180806020018281038252602c815260200180612229602c913960400191505060405180910390fd5b600061139c83610ae9565b9050806001600160a01b0316846001600160a01b031614806113d75750836001600160a01b03166113cc846108e8565b6001600160a01b0316145b806113e757506113e7818561128d565b949350505050565b826001600160a01b031661140282610ae9565b6001600160a01b0316146114475760405162461bcd60e51b81526004018080602001828103825260298152602001806123506029913960400191505060405180910390fd5b6001600160a01b03821661148c5760405162461bcd60e51b81526004018080602001828103825260248152602001806121e36024913960400191505060405180910390fd5b611497838383610a20565b6114a26000826112d2565b6001600160a01b03831660009081526001602052604090206114c49082611a8e565b506001600160a01b03821660009081526001602052604090206114e79082611a9a565b506114f460028284611aa6565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610aaf8383611abc565b60008080806115568686611b20565b9097909650945050505050565b6000611570848484611b9b565b90505b9392505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b60008151604114611629576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561169a5760405162461bcd60e51b81526004018080602001828103825260228152602001806122076022913960400191505060405180910390fd5b8060ff16601b141580156116b257508060ff16601c14155b156116ee5760405162461bcd60e51b81526004018080602001828103825260228152602001806122e06022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561174a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117b2576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600060606117d860405180602001604052806000815250611c65565b915091509091565b604080516020810190915260008152600b9190910191565b6001600160a01b038216611853576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61185c816112bb565b156118ae576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6118ba60008383610a20565b6001600160a01b03821660009081526001602052604090206118dc9082611a9a565b506118e960028284611aa6565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6119318484846113ef565b61193d84848484611c6a565b610f7d5760405162461bcd60e51b81526004018080602001828103825260328152602001806121b16032913960400191505060405180910390fd5b60608161199d57506040805180820190915260018152600360fc1b602082015261084c565b8160005b81156119b557600101600a820491506119a1565b60608167ffffffffffffffff811180156119ce57600080fd5b506040519080825280601f01601f1916602001820160405280156119f9576020820181803683370190505b50859350905060001982015b8315611a4a57600a840660300160f81b82828060019003935081518110611a2857fe5b60200101906001600160f81b031916908160001a905350600a84049350611a05565b50949350505050565b6000610aaf8383611dd2565b600a546000906001600160a01b03163314611a7b5750336108e5565b611a83611dea565b90506108e5565b5490565b6000610aaf8383611e37565b6000610aaf8383611efd565b600061157084846001600160a01b038516611f47565b81546000908210611afe5760405162461bcd60e51b815260040180806020018281038252602281526020018061218f6022913960400191505060405180910390fd5b826000018281548110611b0d57fe5b9060005260206000200154905092915050565b815460009081908310611b645760405162461bcd60e51b81526004018080602001828103825260228152602001806123026022913960400191505060405180910390fd5b6000846000018481548110611b7557fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611c365760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611bfb578181015183820152602001611be3565b50505050905090810190601f168015611c285780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611c4957fe5b9060005260206000209060020201600101549150509392505050565b600091565b6000611c7e846001600160a01b0316611fde565b611c8a575060016113e7565b6060611d98630a85bd0160e11b611c9f6112c8565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611d06578181015183820152602001611cee565b50505050905090810190601f168015611d335780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060600160405280603281526020016121b1603291396001600160a01b0388169190612017565b90506000818060200190516020811015611db157600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b60008181526001830160205260408120548015611ef35783546000198083019190810190600090879083908110611e6a57fe5b9060005260206000200154905080876000018481548110611e8757fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611eb757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610ab2565b6000915050610ab2565b6000611f098383611dd2565b611f3f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610ab2565b506000610ab2565b600082815260018401602052604081205480611fac575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611573565b82856000016001830381548110611fbf57fe5b9060005260206000209060020201600101819055506000915050611573565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906113e7575050151592915050565b60606115708484600085606061202c85611fde565b61207d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106120bc5780518252601f19909201916020918201910161209d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461211e576040519150601f19603f3d011682016040523d82523d6000602084013e612123565b606091505b509150915081156121375791506113e79050565b8051156121475780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611bfb578181015183820152602001611be356fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f206164647265737345434453413a20696e76616c6964207369676e6174757265202773272076616c75654552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e45434453413a20696e76616c6964207369676e6174757265202776272076616c7565456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e657247534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875624552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a264697066735822122078b8bb57b3d14c3736d2a537b91c26f4975e82443a147f6290e7865262c42a9664736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC721GSNRecipientMock.sol","sourcemap":"267:640:44:-:0;;;857:70:1;;;-1:-1:-1;;;;;;857:70:1;885:42;857:70;;;352:173:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;352:173:44;;;;;;;;;;-1:-1:-1;352:173:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;352:173:44;;;;;;;;;;-1:-1:-1;352:173:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;352:173:44;;;;;;-1:-1:-1;352:173:44;;-1:-1:-1;459:4:44;465:6;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;3637:12:92;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;3659:16:92;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;3763:40:92;-1:-1:-1;;;3763:18:92;:40::i;:::-;3813:49;-1:-1:-1;;;3813:18:92;:49::i;:::-;3872:51;-1:-1:-1;;;3872:18:92;:51::i;:::-;-1:-1:-1;;;;;;;932:27:3;;924:97;;;;-1:-1:-1;;;924:97:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1031:14;:30;;-1:-1:-1;;;;;;1031:30:3;-1:-1:-1;;;;;1031:30:3;;;;;;;;;;-1:-1:-1;267:640:44;;-1:-1:-1;;267:640:44;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;267:640:44:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;267:640:44;;;-1:-1:-1;267:640:44;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721Holder":{"abi":[{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721Holder","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610159806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b6100f66004803603608081101561004657600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561008157600080fd5b82018360208201111561009357600080fd5b803590602001918460018302840111640100000000831117156100b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610113945050505050565b604080516001600160e01b03199092168252519081900360200190f35b630a85bd0160e11b94935050505056fea2646970667358221220fbe55c7cb4bb858059530b147b5120aacf2caa7540da04ebdad0736e7d14fd9864736f6c634300060c0033"},"devdoc":{"details":"Implementation of the {IERC721Receiver} interface. Accepts all token transfers. Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.","kind":"dev","methods":{"onERC721Received(address,address,uint256,bytes)":{"details":"See {IERC721Receiver-onERC721Received}. Always returns `IERC721Receiver.onERC721Received.selector`."}},"version":1},"methodIdentifiers":{"onERC721Received(address,address,uint256,bytes)":"0x150b7a02"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b6100f66004803603608081101561004657600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561008157600080fd5b82018360208201111561009357600080fd5b803590602001918460018302840111640100000000831117156100b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610113945050505050565b604080516001600160e01b03199092168252519081900360200190f35b630a85bd0160e11b94935050505056fea2646970667358221220fbe55c7cb4bb858059530b147b5120aacf2caa7540da04ebdad0736e7d14fd9864736f6c634300060c0033"},"sourceId":"contracts/token/ERC721/ERC721Holder.sol","sourcemap":"340:354:94:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721Mock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setTokenURI","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721Mock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b506040516200251538038062002515833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250839150829050620001b56301ffc9a760e01b62000221565b8151620001ca906006906020850190620002a6565b508051620001e0906007906020840190620002a6565b50620001f36380ac58cd60e01b62000221565b62000205635b5e139f60e01b62000221565b6200021763780e9d6360e01b62000221565b5050505062000342565b6001600160e01b0319808216141562000281576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002e957805160ff191683800117855562000319565b8280016001018555821562000319579182015b8281111562000319578251825591602001919060010190620002fc565b50620003279291506200032b565b5090565b5b808211156200032757600081556001016200032c565b6121c380620003526000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80634f6ccce7116100c357806395d89b411161007c57806395d89b4114610604578063a14481941461060c578063a22cb46514610638578063b88d4fde14610666578063c87b56dd1461072a578063e985e9c51461074757610158565b80634f6ccce71461043f57806355f804b31461045c5780636352211e146105005780636c0360eb1461051d57806370a08231146105255780638832e6e31461054b57610158565b806323b872dd1161011557806323b872dd146103415780632f745c591461037757806340c10f19146103a357806342842e0e146103cf57806342966c68146104055780634f558e791461042257610158565b806301ffc9a71461015d57806306fdde0314610198578063081812fc14610215578063095ea7b31461024e578063162094c41461027c57806318160ddd14610327575b600080fd5b6101846004803603602081101561017357600080fd5b50356001600160e01b031916610775565b604080519115158252519081900360200190f35b6101a0610798565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101da5781810151838201526020016101c2565b50505050905090810190601f1680156102075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603602081101561022b57600080fd5b503561082e565b604080516001600160a01b039092168252519081900360200190f35b61027a6004803603604081101561026457600080fd5b506001600160a01b038135169060200135610890565b005b61027a6004803603604081101561029257600080fd5b81359190810190604081016020820135600160201b8111156102b357600080fd5b8201836020820111156102c557600080fd5b803590602001918460018302840111600160201b831117156102e657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061096b945050505050565b61032f610979565b60408051918252519081900360200190f35b61027a6004803603606081101561035757600080fd5b506001600160a01b0381358116916020810135909116906040013561098a565b61032f6004803603604081101561038d57600080fd5b506001600160a01b0381351690602001356109e1565b61027a600480360360408110156103b957600080fd5b506001600160a01b038135169060200135610a0c565b61027a600480360360608110156103e557600080fd5b506001600160a01b03813581169160208101359091169060400135610a16565b61027a6004803603602081101561041b57600080fd5b5035610a31565b6101846004803603602081101561043857600080fd5b5035610a3d565b61032f6004803603602081101561045557600080fd5b5035610a48565b61027a6004803603602081101561047257600080fd5b810190602081018135600160201b81111561048c57600080fd5b82018360208201111561049e57600080fd5b803590602001918460018302840111600160201b831117156104bf57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a5e945050505050565b6102326004803603602081101561051657600080fd5b5035610a67565b6101a0610a8f565b61032f6004803603602081101561053b57600080fd5b50356001600160a01b0316610af0565b61027a6004803603606081101561056157600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561059057600080fd5b8201836020820111156105a257600080fd5b803590602001918460018302840111600160201b831117156105c357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b58945050505050565b6101a0610b63565b61027a6004803603604081101561062257600080fd5b506001600160a01b038135169060200135610bc4565b61027a6004803603604081101561064e57600080fd5b506001600160a01b0381351690602001351515610bce565b61027a6004803603608081101561067c57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156106b657600080fd5b8201836020820111156106c857600080fd5b803590602001918460018302840111600160201b831117156106e957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610cd3945050505050565b6101a06004803603602081101561074057600080fd5b5035610d31565b6101846004803603604081101561075d57600080fd5b506001600160a01b0381358116916020013516610fd8565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b820191906000526020600020905b81548152906001019060200180831161080757829003601f168201915b5050505050905090565b600061083982611006565b6108745760405162461bcd60e51b815260040180806020018281038252602c81526020018061208c602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061089b82610a67565b9050806001600160a01b0316836001600160a01b031614156108ee5760405162461bcd60e51b815260040180806020018281038252602181526020018061213c6021913960400191505060405180910390fd5b806001600160a01b0316610900611013565b6001600160a01b0316148061092157506109218161091c611013565b610fd8565b61095c5760405162461bcd60e51b8152600401808060200182810382526038815260200180611fdf6038913960400191505060405180910390fd5b6109668383611017565b505050565b6109758282611085565b5050565b600061098560026110e8565b905090565b61099b610995611013565b826110f3565b6109d65760405162461bcd60e51b815260040180806020018281038252603181526020018061215d6031913960400191505060405180910390fd5b610966838383611197565b6001600160a01b0382166000908152600160205260408120610a0390836112e3565b90505b92915050565b61097582826112ef565b61096683838360405180602001604052806000815250610cd3565b610a3a8161141d565b50565b6000610a0682611006565b600080610a566002846114ea565b509392505050565b610a3a81611506565b6000610a06826040518060600160405280602981526020016120416029913960029190611519565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b60006001600160a01b038216610b375760405162461bcd60e51b815260040180806020018281038252602a815260200180612017602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610a06906110e8565b610966838383611530565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b6109758282611582565b610bd6611013565b6001600160a01b0316826001600160a01b03161415610c3c576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610c49611013565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c8d611013565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610ce4610cde611013565b836110f3565b610d1f5760405162461bcd60e51b815260040180806020018281038252603181526020018061215d6031913960400191505060405180910390fd5b610d2b8484848461159c565b50505050565b6060610d3c82611006565b610d775760405162461bcd60e51b815260040180806020018281038252602f81526020018061210d602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610e0c5780601f10610de157610100808354040283529160200191610e0c565b820191906000526020600020905b815481529060010190602001808311610def57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610e35579050610793565b805115610f06576009816040516020018083805460018160011615610100020316600290048015610e9d5780601f10610e7b576101008083540402835291820191610e9d565b820191906000526020600020905b815481529060010190602001808311610e89575b5050825160208401908083835b60208310610ec95780518252601f199092019160209182019101610eaa565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610793565b6009610f11846115ee565b6040516020018083805460018160011615610100020316600290048015610f6f5780601f10610f4d576101008083540402835291820191610f6f565b820191906000526020600020905b815481529060010190602001808311610f5b575b5050825160208401908083835b60208310610f9b5780518252601f199092019160209182019101610f7c565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610a066002836116c9565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061104c82610a67565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61108e82611006565b6110c95760405162461bcd60e51b815260040180806020018281038252602c8152602001806120b8602c913960400191505060405180910390fd5b6000828152600860209081526040909120825161096692840190611e67565b6000610a06826116d5565b60006110fe82611006565b6111395760405162461bcd60e51b815260040180806020018281038252602c815260200180611fb3602c913960400191505060405180910390fd5b600061114483610a67565b9050806001600160a01b0316846001600160a01b0316148061117f5750836001600160a01b03166111748461082e565b6001600160a01b0316145b8061118f575061118f8185610fd8565b949350505050565b826001600160a01b03166111aa82610a67565b6001600160a01b0316146111ef5760405162461bcd60e51b81526004018080602001828103825260298152602001806120e46029913960400191505060405180910390fd5b6001600160a01b0382166112345760405162461bcd60e51b8152600401808060200182810382526024815260200180611f8f6024913960400191505060405180910390fd5b61123f838383610966565b61124a600082611017565b6001600160a01b038316600090815260016020526040902061126c90826116d9565b506001600160a01b038216600090815260016020526040902061128f90826116e5565b5061129c600282846116f1565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610a038383611707565b6001600160a01b03821661134a576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61135381611006565b156113a5576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6113b160008383610966565b6001600160a01b03821660009081526001602052604090206113d390826116e5565b506113e0600282846116f1565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061142882610a67565b905061143681600084610966565b611441600083611017565b600082815260086020526040902054600260001961010060018416150201909116041561147f57600082815260086020526040812061147f91611ee5565b6001600160a01b03811660009081526001602052604090206114a190836116d9565b506114ad60028361176b565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806114f98686611777565b9097909650945050505050565b8051610975906009906020840190611e67565b60006115268484846117f2565b90505b9392505050565b61153a83836112ef565b61154760008484846118bc565b6109665760405162461bcd60e51b8152600401808060200182810382526032815260200180611f5d6032913960400191505060405180910390fd5b610975828260405180602001604052806000815250611530565b6115a7848484611197565b6115b3848484846118bc565b610d2b5760405162461bcd60e51b8152600401808060200182810382526032815260200180611f5d6032913960400191505060405180910390fd5b60608161161357506040805180820190915260018152600360fc1b6020820152610793565b8160005b811561162b57600101600a82049150611617565b60608167ffffffffffffffff8111801561164457600080fd5b506040519080825280601f01601f19166020018201604052801561166f576020820181803683370190505b50859350905060001982015b83156116c057600a840660300160f81b8282806001900393508151811061169e57fe5b60200101906001600160f81b031916908160001a905350600a8404935061167b565b50949350505050565b6000610a038383611a24565b5490565b6000610a038383611a3c565b6000610a038383611b02565b600061152684846001600160a01b038516611b4c565b815460009082106117495760405162461bcd60e51b8152600401808060200182810382526022815260200180611f3b6022913960400191505060405180910390fd5b82600001828154811061175857fe5b9060005260206000200154905092915050565b6000610a038383611be3565b8154600090819083106117bb5760405162461bcd60e51b815260040180806020018281038252602281526020018061206a6022913960400191505060405180910390fd5b60008460000184815481106117cc57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b6000828152600184016020526040812054828161188d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561185257818101518382015260200161183a565b50505050905090810190601f16801561187f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106118a057fe5b9060005260206000209060020201600101549150509392505050565b60006118d0846001600160a01b0316611cb7565b6118dc5750600161118f565b60606119ea630a85bd0160e11b6118f1611013565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611958578181015183820152602001611940565b50505050905090810190601f1680156119855780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611f5d603291396001600160a01b0388169190611cf0565b90506000818060200190516020811015611a0357600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b60008181526001830160205260408120548015611af85783546000198083019190810190600090879083908110611a6f57fe5b9060005260206000200154905080876000018481548110611a8c57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611abc57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610a06565b6000915050610a06565b6000611b0e8383611a24565b611b4457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a06565b506000610a06565b600082815260018401602052604081205480611bb1575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611529565b82856000016001830381548110611bc457fe5b9060005260206000209060020201600101819055506000915050611529565b60008181526001830160205260408120548015611af85783546000198083019190810190600090879083908110611c1657fe5b9060005260206000209060020201905080876000018481548110611c3657fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611c7557fe5b6000828152602080822060026000199094019384020182815560019081018390559290935588815289820190925260408220919091559450610a069350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061118f575050151592915050565b606061152684846000856060611d0585611cb7565b611d56576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611d955780518252601f199092019160209182019101611d76565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611df7576040519150601f19603f3d011682016040523d82523d6000602084013e611dfc565b606091505b50915091508115611e1057915061118f9050565b805115611e205780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561185257818101518382015260200161183a565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611ea857805160ff1916838001178555611ed5565b82800160010185558215611ed5579182015b82811115611ed5578251825591602001919060010190611eba565b50611ee1929150611f25565b5090565b50805460018160011615610100020316600290046000825580601f10611f0b5750610a3a565b601f016020900490600052602060002090810190610a3a91905b5b80821115611ee15760008155600101611f2656fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220efff093671fb82c5bf8902a70092f465a4448a11d7f5de00277c645233565cf464736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"title":"ERC721Mock This mock just provides a public safeMint, mint, and burn functions for testing purposes","version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","burn(uint256)":"0x42966c68","exists(uint256)":"0x4f558e79","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","safeMint(address,uint256)":"0xa1448194","safeMint(address,uint256,bytes)":"0x8832e6e3","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","setBaseURI(string)":"0x55f804b3","setTokenURI(uint256,string)":"0x162094c4","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101585760003560e01c80634f6ccce7116100c357806395d89b411161007c57806395d89b4114610604578063a14481941461060c578063a22cb46514610638578063b88d4fde14610666578063c87b56dd1461072a578063e985e9c51461074757610158565b80634f6ccce71461043f57806355f804b31461045c5780636352211e146105005780636c0360eb1461051d57806370a08231146105255780638832e6e31461054b57610158565b806323b872dd1161011557806323b872dd146103415780632f745c591461037757806340c10f19146103a357806342842e0e146103cf57806342966c68146104055780634f558e791461042257610158565b806301ffc9a71461015d57806306fdde0314610198578063081812fc14610215578063095ea7b31461024e578063162094c41461027c57806318160ddd14610327575b600080fd5b6101846004803603602081101561017357600080fd5b50356001600160e01b031916610775565b604080519115158252519081900360200190f35b6101a0610798565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101da5781810151838201526020016101c2565b50505050905090810190601f1680156102075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603602081101561022b57600080fd5b503561082e565b604080516001600160a01b039092168252519081900360200190f35b61027a6004803603604081101561026457600080fd5b506001600160a01b038135169060200135610890565b005b61027a6004803603604081101561029257600080fd5b81359190810190604081016020820135600160201b8111156102b357600080fd5b8201836020820111156102c557600080fd5b803590602001918460018302840111600160201b831117156102e657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061096b945050505050565b61032f610979565b60408051918252519081900360200190f35b61027a6004803603606081101561035757600080fd5b506001600160a01b0381358116916020810135909116906040013561098a565b61032f6004803603604081101561038d57600080fd5b506001600160a01b0381351690602001356109e1565b61027a600480360360408110156103b957600080fd5b506001600160a01b038135169060200135610a0c565b61027a600480360360608110156103e557600080fd5b506001600160a01b03813581169160208101359091169060400135610a16565b61027a6004803603602081101561041b57600080fd5b5035610a31565b6101846004803603602081101561043857600080fd5b5035610a3d565b61032f6004803603602081101561045557600080fd5b5035610a48565b61027a6004803603602081101561047257600080fd5b810190602081018135600160201b81111561048c57600080fd5b82018360208201111561049e57600080fd5b803590602001918460018302840111600160201b831117156104bf57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a5e945050505050565b6102326004803603602081101561051657600080fd5b5035610a67565b6101a0610a8f565b61032f6004803603602081101561053b57600080fd5b50356001600160a01b0316610af0565b61027a6004803603606081101561056157600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561059057600080fd5b8201836020820111156105a257600080fd5b803590602001918460018302840111600160201b831117156105c357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b58945050505050565b6101a0610b63565b61027a6004803603604081101561062257600080fd5b506001600160a01b038135169060200135610bc4565b61027a6004803603604081101561064e57600080fd5b506001600160a01b0381351690602001351515610bce565b61027a6004803603608081101561067c57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156106b657600080fd5b8201836020820111156106c857600080fd5b803590602001918460018302840111600160201b831117156106e957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610cd3945050505050565b6101a06004803603602081101561074057600080fd5b5035610d31565b6101846004803603604081101561075d57600080fd5b506001600160a01b0381358116916020013516610fd8565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b820191906000526020600020905b81548152906001019060200180831161080757829003601f168201915b5050505050905090565b600061083982611006565b6108745760405162461bcd60e51b815260040180806020018281038252602c81526020018061208c602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061089b82610a67565b9050806001600160a01b0316836001600160a01b031614156108ee5760405162461bcd60e51b815260040180806020018281038252602181526020018061213c6021913960400191505060405180910390fd5b806001600160a01b0316610900611013565b6001600160a01b0316148061092157506109218161091c611013565b610fd8565b61095c5760405162461bcd60e51b8152600401808060200182810382526038815260200180611fdf6038913960400191505060405180910390fd5b6109668383611017565b505050565b6109758282611085565b5050565b600061098560026110e8565b905090565b61099b610995611013565b826110f3565b6109d65760405162461bcd60e51b815260040180806020018281038252603181526020018061215d6031913960400191505060405180910390fd5b610966838383611197565b6001600160a01b0382166000908152600160205260408120610a0390836112e3565b90505b92915050565b61097582826112ef565b61096683838360405180602001604052806000815250610cd3565b610a3a8161141d565b50565b6000610a0682611006565b600080610a566002846114ea565b509392505050565b610a3a81611506565b6000610a06826040518060600160405280602981526020016120416029913960029190611519565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b60006001600160a01b038216610b375760405162461bcd60e51b815260040180806020018281038252602a815260200180612017602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610a06906110e8565b610966838383611530565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108245780601f106107f957610100808354040283529160200191610824565b6109758282611582565b610bd6611013565b6001600160a01b0316826001600160a01b03161415610c3c576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610c49611013565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c8d611013565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610ce4610cde611013565b836110f3565b610d1f5760405162461bcd60e51b815260040180806020018281038252603181526020018061215d6031913960400191505060405180910390fd5b610d2b8484848461159c565b50505050565b6060610d3c82611006565b610d775760405162461bcd60e51b815260040180806020018281038252602f81526020018061210d602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610e0c5780601f10610de157610100808354040283529160200191610e0c565b820191906000526020600020905b815481529060010190602001808311610def57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610e35579050610793565b805115610f06576009816040516020018083805460018160011615610100020316600290048015610e9d5780601f10610e7b576101008083540402835291820191610e9d565b820191906000526020600020905b815481529060010190602001808311610e89575b5050825160208401908083835b60208310610ec95780518252601f199092019160209182019101610eaa565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610793565b6009610f11846115ee565b6040516020018083805460018160011615610100020316600290048015610f6f5780601f10610f4d576101008083540402835291820191610f6f565b820191906000526020600020905b815481529060010190602001808311610f5b575b5050825160208401908083835b60208310610f9b5780518252601f199092019160209182019101610f7c565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610a066002836116c9565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061104c82610a67565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61108e82611006565b6110c95760405162461bcd60e51b815260040180806020018281038252602c8152602001806120b8602c913960400191505060405180910390fd5b6000828152600860209081526040909120825161096692840190611e67565b6000610a06826116d5565b60006110fe82611006565b6111395760405162461bcd60e51b815260040180806020018281038252602c815260200180611fb3602c913960400191505060405180910390fd5b600061114483610a67565b9050806001600160a01b0316846001600160a01b0316148061117f5750836001600160a01b03166111748461082e565b6001600160a01b0316145b8061118f575061118f8185610fd8565b949350505050565b826001600160a01b03166111aa82610a67565b6001600160a01b0316146111ef5760405162461bcd60e51b81526004018080602001828103825260298152602001806120e46029913960400191505060405180910390fd5b6001600160a01b0382166112345760405162461bcd60e51b8152600401808060200182810382526024815260200180611f8f6024913960400191505060405180910390fd5b61123f838383610966565b61124a600082611017565b6001600160a01b038316600090815260016020526040902061126c90826116d9565b506001600160a01b038216600090815260016020526040902061128f90826116e5565b5061129c600282846116f1565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610a038383611707565b6001600160a01b03821661134a576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61135381611006565b156113a5576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6113b160008383610966565b6001600160a01b03821660009081526001602052604090206113d390826116e5565b506113e0600282846116f1565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061142882610a67565b905061143681600084610966565b611441600083611017565b600082815260086020526040902054600260001961010060018416150201909116041561147f57600082815260086020526040812061147f91611ee5565b6001600160a01b03811660009081526001602052604090206114a190836116d9565b506114ad60028361176b565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806114f98686611777565b9097909650945050505050565b8051610975906009906020840190611e67565b60006115268484846117f2565b90505b9392505050565b61153a83836112ef565b61154760008484846118bc565b6109665760405162461bcd60e51b8152600401808060200182810382526032815260200180611f5d6032913960400191505060405180910390fd5b610975828260405180602001604052806000815250611530565b6115a7848484611197565b6115b3848484846118bc565b610d2b5760405162461bcd60e51b8152600401808060200182810382526032815260200180611f5d6032913960400191505060405180910390fd5b60608161161357506040805180820190915260018152600360fc1b6020820152610793565b8160005b811561162b57600101600a82049150611617565b60608167ffffffffffffffff8111801561164457600080fd5b506040519080825280601f01601f19166020018201604052801561166f576020820181803683370190505b50859350905060001982015b83156116c057600a840660300160f81b8282806001900393508151811061169e57fe5b60200101906001600160f81b031916908160001a905350600a8404935061167b565b50949350505050565b6000610a038383611a24565b5490565b6000610a038383611a3c565b6000610a038383611b02565b600061152684846001600160a01b038516611b4c565b815460009082106117495760405162461bcd60e51b8152600401808060200182810382526022815260200180611f3b6022913960400191505060405180910390fd5b82600001828154811061175857fe5b9060005260206000200154905092915050565b6000610a038383611be3565b8154600090819083106117bb5760405162461bcd60e51b815260040180806020018281038252602281526020018061206a6022913960400191505060405180910390fd5b60008460000184815481106117cc57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b6000828152600184016020526040812054828161188d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561185257818101518382015260200161183a565b50505050905090810190601f16801561187f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106118a057fe5b9060005260206000209060020201600101549150509392505050565b60006118d0846001600160a01b0316611cb7565b6118dc5750600161118f565b60606119ea630a85bd0160e11b6118f1611013565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611958578181015183820152602001611940565b50505050905090810190601f1680156119855780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611f5d603291396001600160a01b0388169190611cf0565b90506000818060200190516020811015611a0357600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b60008181526001830160205260408120548015611af85783546000198083019190810190600090879083908110611a6f57fe5b9060005260206000200154905080876000018481548110611a8c57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611abc57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610a06565b6000915050610a06565b6000611b0e8383611a24565b611b4457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a06565b506000610a06565b600082815260018401602052604081205480611bb1575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611529565b82856000016001830381548110611bc457fe5b9060005260206000209060020201600101819055506000915050611529565b60008181526001830160205260408120548015611af85783546000198083019190810190600090879083908110611c1657fe5b9060005260206000209060020201905080876000018481548110611c3657fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611c7557fe5b6000828152602080822060026000199094019384020182815560019081018390559290935588815289820190925260408220919091559450610a069350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061118f575050151592915050565b606061152684846000856060611d0585611cb7565b611d56576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611d955780518252601f199092019160209182019101611d76565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611df7576040519150601f19603f3d011682016040523d82523d6000602084013e611dfc565b606091505b50915091508115611e1057915061118f9050565b805115611e205780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561185257818101518382015260200161183a565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611ea857805160ff1916838001178555611ed5565b82800160010185558215611ed5579182015b82811115611ed5578251825591602001919060010190611eba565b50611ee1929150611f25565b5090565b50805460018160011615610100020316600290046000825580601f10611f0b5750610a3a565b601f016020900490600052602060002090810190610a3a91905b5b80821115611ee15760008155600101611f2656fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220efff093671fb82c5bf8902a70092f465a4448a11d7f5de00277c645233565cf464736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC721Mock.sol","sourcemap":"217:827:45:-:0;;;253:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;253:86:45;;;;;;;;;;-1:-1:-1;253:86:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;253:86:45;;;;;;;;;;-1:-1:-1;253:86:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;253:86:45;;-1:-1:-1;322:4:45;;-1:-1:-1;328:6:45;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;3637:12:92;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;3659:16:92;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;3763:40:92;-1:-1:-1;;;3763:18:92;:40::i;:::-;3813:49;-1:-1:-1;;;3813:18:92;:49::i;:::-;3872:51;-1:-1:-1;;;3872:18:92;:51::i;:::-;3565:365;;253:86:45;;217:827;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;217:827:45:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;217:827:45;;;-1:-1:-1;217:827:45;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721Pausable":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721Pausable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"ERC721 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug.","kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","paused()":"0x5c975abb","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC721/ERC721Pausable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721PausableMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721PausableMock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b50604051620022fe380380620022fe833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250839150829050620001b56301ffc9a760e01b6200022c565b8151620001ca906006906020850190620002b1565b508051620001e0906007906020840190620002b1565b50620001f36380ac58cd60e01b6200022c565b62000205635b5e139f60e01b6200022c565b6200021763780e9d6360e01b6200022c565b5050600a805460ff19169055506200034d9050565b6001600160e01b031980821614156200028c576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002f457805160ff191683800117855562000324565b8280016001018555821562000324579182015b828111156200032457825182559160200191906001019062000307565b506200033292915062000336565b5090565b5b8082111562000332576000815560010162000337565b611fa1806200035d6000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80634f558e79116100c35780638456cb591161007c5780638456cb591461040157806395d89b4114610409578063a22cb46514610411578063b88d4fde1461043f578063c87b56dd14610505578063e985e9c5146105225761014d565b80634f558e79146103745780634f6ccce7146103915780635c975abb146103ae5780636352211e146103b65780636c0360eb146103d357806370a08231146103db5761014d565b806323b872dd1161011557806323b872dd1461028b5780632f745c59146102c15780633f4ba83a146102ed57806340c10f19146102f557806342842e0e1461032157806342966c68146103575761014d565b806301ffc9a71461015257806306fdde031461018d578063081812fc1461020a578063095ea7b31461024357806318160ddd14610271575b600080fd5b6101796004803603602081101561016857600080fd5b50356001600160e01b031916610550565b604080519115158252519081900360200190f35b610195610573565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cf5781810151838201526020016101b7565b50505050905090810190601f1680156101fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102276004803603602081101561022057600080fd5b5035610609565b604080516001600160a01b039092168252519081900360200190f35b61026f6004803603604081101561025957600080fd5b506001600160a01b03813516906020013561066b565b005b610279610746565b60408051918252519081900360200190f35b61026f600480360360608110156102a157600080fd5b506001600160a01b03813581169160208101359091169060400135610757565b610279600480360360408110156102d757600080fd5b506001600160a01b0381351690602001356107ae565b61026f6107d9565b61026f6004803603604081101561030b57600080fd5b506001600160a01b0381351690602001356107e3565b61026f6004803603606081101561033757600080fd5b506001600160a01b038135811691602081013590911690604001356107f1565b61026f6004803603602081101561036d57600080fd5b503561080c565b6101796004803603602081101561038a57600080fd5b5035610818565b610279600480360360208110156103a757600080fd5b5035610823565b610179610839565b610227600480360360208110156103cc57600080fd5b5035610842565b61019561086a565b610279600480360360208110156103f157600080fd5b50356001600160a01b03166108cb565b61026f610933565b61019561093b565b61026f6004803603604081101561042757600080fd5b506001600160a01b038135169060200135151561099c565b61026f6004803603608081101561045557600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561049057600080fd5b8201836020820111156104a257600080fd5b803590602001918460018302840111640100000000831117156104c457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610aa1945050505050565b6101956004803603602081101561051b57600080fd5b5035610aff565b6101796004803603604081101561053857600080fd5b506001600160a01b0381358116916020013516610da6565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b820191906000526020600020905b8154815290600101906020018083116105e257829003601f168201915b5050505050905090565b600061061482610dd4565b61064f5760405162461bcd60e51b815260040180806020018281038252602c815260200180611e96602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061067682610842565b9050806001600160a01b0316836001600160a01b031614156106c95760405162461bcd60e51b8152600401808060200182810382526021815260200180611f1a6021913960400191505060405180910390fd5b806001600160a01b03166106db610de1565b6001600160a01b031614806106fc57506106fc816106f7610de1565b610da6565b6107375760405162461bcd60e51b8152600401808060200182810382526038815260200180611de96038913960400191505060405180910390fd5b6107418383610de5565b505050565b60006107526002610e53565b905090565b610768610762610de1565b82610e5e565b6107a35760405162461bcd60e51b8152600401808060200182810382526031815260200180611f3b6031913960400191505060405180910390fd5b610741838383610f02565b6001600160a01b03821660009081526001602052604081206107d0908361104e565b90505b92915050565b6107e161105a565b565b6107ed82826110f8565b5050565b61074183838360405180602001604052806000815250610aa1565b61081581611226565b50565b60006107d382610dd4565b6000806108316002846112f3565b509392505050565b600a5460ff1690565b60006107d382604051806060016040528060298152602001611e4b602991396002919061130f565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b60006001600160a01b0382166109125760405162461bcd60e51b815260040180806020018281038252602a815260200180611e21602a913960400191505060405180910390fd5b6001600160a01b03821660009081526001602052604090206107d390610e53565b6107e1611326565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b6109a4610de1565b6001600160a01b0316826001600160a01b03161415610a0a576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610a17610de1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a5b610de1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610ab2610aac610de1565b83610e5e565b610aed5760405162461bcd60e51b8152600401808060200182810382526031815260200180611f3b6031913960400191505060405180910390fd5b610af9848484846113a7565b50505050565b6060610b0a82610dd4565b610b455760405162461bcd60e51b815260040180806020018281038252602f815260200180611eeb602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610bda5780601f10610baf57610100808354040283529160200191610bda565b820191906000526020600020905b815481529060010190602001808311610bbd57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610c0357905061056e565b805115610cd4576009816040516020018083805460018160011615610100020316600290048015610c6b5780601f10610c49576101008083540402835291820191610c6b565b820191906000526020600020905b815481529060010190602001808311610c57575b5050825160208401908083835b60208310610c975780518252601f199092019160209182019101610c78565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061056e565b6009610cdf846113f9565b6040516020018083805460018160011615610100020316600290048015610d3d5780601f10610d1b576101008083540402835291820191610d3d565b820191906000526020600020905b815481529060010190602001808311610d29575b5050825160208401908083835b60208310610d695780518252601f199092019160209182019101610d4a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006107d36002836114d4565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610e1a82610842565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006107d3826114e0565b6000610e6982610dd4565b610ea45760405162461bcd60e51b815260040180806020018281038252602c815260200180611dbd602c913960400191505060405180910390fd5b6000610eaf83610842565b9050806001600160a01b0316846001600160a01b03161480610eea5750836001600160a01b0316610edf84610609565b6001600160a01b0316145b80610efa5750610efa8185610da6565b949350505050565b826001600160a01b0316610f1582610842565b6001600160a01b031614610f5a5760405162461bcd60e51b8152600401808060200182810382526029815260200180611ec26029913960400191505060405180910390fd5b6001600160a01b038216610f9f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d996024913960400191505060405180910390fd5b610faa8383836114e4565b610fb5600082610de5565b6001600160a01b0383166000908152600160205260409020610fd79082611533565b506001600160a01b0382166000908152600160205260409020610ffa908261153f565b506110076002828461154b565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006107d08383611561565b600a5460ff166110a8576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6110db610de1565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216611153576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61115c81610dd4565b156111ae576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6111ba600083836114e4565b6001600160a01b03821660009081526001602052604090206111dc908261153f565b506111e96002828461154b565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061123182610842565b905061123f816000846114e4565b61124a600083610de5565b600082815260086020526040902054600260001961010060018416150201909116041561128857600082815260086020526040812061128891611cc1565b6001600160a01b03811660009081526001602052604090206112aa9083611533565b506112b66002836115c5565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080808061130286866115d1565b9097909650945050505050565b600061131c84848461164c565b90505b9392505050565b600a5460ff1615611371576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110db610de1565b6113b2848484610f02565b6113be84848484611716565b610af95760405162461bcd60e51b8152600401808060200182810382526032815260200180611d676032913960400191505060405180910390fd5b60608161141e57506040805180820190915260018152600360fc1b602082015261056e565b8160005b811561143657600101600a82049150611422565b60608167ffffffffffffffff8111801561144f57600080fd5b506040519080825280601f01601f19166020018201604052801561147a576020820181803683370190505b50859350905060001982015b83156114cb57600a840660300160f81b828280600190039350815181106114a957fe5b60200101906001600160f81b031916908160001a905350600a84049350611486565b50949350505050565b60006107d0838361187e565b5490565b6114ef838383610741565b6114f7610839565b156107415760405162461bcd60e51b815260040180806020018281038252602b815260200180611d3c602b913960400191505060405180910390fd5b60006107d08383611896565b60006107d0838361195c565b600061131c84846001600160a01b0385166119a6565b815460009082106115a35760405162461bcd60e51b8152600401808060200182810382526022815260200180611d1a6022913960400191505060405180910390fd5b8260000182815481106115b257fe5b9060005260206000200154905092915050565b60006107d08383611a3d565b8154600090819083106116155760405162461bcd60e51b8152600401808060200182810382526022815260200180611e746022913960400191505060405180910390fd5b600084600001848154811061162657fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816116e75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116ac578181015183820152602001611694565b50505050905090810190601f1680156116d95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106116fa57fe5b9060005260206000209060020201600101549150509392505050565b600061172a846001600160a01b0316611b11565b61173657506001610efa565b6060611844630a85bd0160e11b61174b610de1565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156117b257818101518382015260200161179a565b50505050905090810190601f1680156117df5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611d67603291396001600160a01b0388169190611b4a565b9050600081806020019051602081101561185d57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561195257835460001980830191908101906000908790839081106118c957fe5b90600052602060002001549050808760000184815481106118e657fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061191657fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506107d3565b60009150506107d3565b6000611968838361187e565b61199e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107d3565b5060006107d3565b600082815260018401602052604081205480611a0b57505060408051808201825283815260208082018481528654600181810189556000898152848120955160029093029095019182559151908201558654868452818801909252929091205561131f565b82856000016001830381548110611a1e57fe5b906000526020600020906002020160010181905550600091505061131f565b600081815260018301602052604081205480156119525783546000198083019190810190600090879083908110611a7057fe5b9060005260206000209060020201905080876000018481548110611a9057fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611acf57fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506107d39350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610efa575050151592915050565b606061131c84846000856060611b5f85611b11565b611bb0576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611bef5780518252601f199092019160209182019101611bd0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611c51576040519150601f19603f3d011682016040523d82523d6000602084013e611c56565b606091505b50915091508115611c6a579150610efa9050565b805115611c7a5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156116ac578181015183820152602001611694565b50805460018160011615610100020316600290046000825580601f10611ce75750610815565b601f01602090049060005260206000209081019061081591905b80821115611d155760008155600101611d01565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732315061757361626c653a20746f6b656e207472616e73666572207768696c65207061757365644552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220dd03dadf5890d03212738e12a53e62ede9b778c9bab83b0f379f0f7ae9a1637164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."}},"title":"ERC721PausableMock This mock just provides a public mint, burn and exists functions for testing purposes","version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","burn(uint256)":"0x42966c68","exists(uint256)":"0x4f558e79","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","pause()":"0x8456cb59","paused()":"0x5c975abb","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd","unpause()":"0x3f4ba83a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80634f558e79116100c35780638456cb591161007c5780638456cb591461040157806395d89b4114610409578063a22cb46514610411578063b88d4fde1461043f578063c87b56dd14610505578063e985e9c5146105225761014d565b80634f558e79146103745780634f6ccce7146103915780635c975abb146103ae5780636352211e146103b65780636c0360eb146103d357806370a08231146103db5761014d565b806323b872dd1161011557806323b872dd1461028b5780632f745c59146102c15780633f4ba83a146102ed57806340c10f19146102f557806342842e0e1461032157806342966c68146103575761014d565b806301ffc9a71461015257806306fdde031461018d578063081812fc1461020a578063095ea7b31461024357806318160ddd14610271575b600080fd5b6101796004803603602081101561016857600080fd5b50356001600160e01b031916610550565b604080519115158252519081900360200190f35b610195610573565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cf5781810151838201526020016101b7565b50505050905090810190601f1680156101fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102276004803603602081101561022057600080fd5b5035610609565b604080516001600160a01b039092168252519081900360200190f35b61026f6004803603604081101561025957600080fd5b506001600160a01b03813516906020013561066b565b005b610279610746565b60408051918252519081900360200190f35b61026f600480360360608110156102a157600080fd5b506001600160a01b03813581169160208101359091169060400135610757565b610279600480360360408110156102d757600080fd5b506001600160a01b0381351690602001356107ae565b61026f6107d9565b61026f6004803603604081101561030b57600080fd5b506001600160a01b0381351690602001356107e3565b61026f6004803603606081101561033757600080fd5b506001600160a01b038135811691602081013590911690604001356107f1565b61026f6004803603602081101561036d57600080fd5b503561080c565b6101796004803603602081101561038a57600080fd5b5035610818565b610279600480360360208110156103a757600080fd5b5035610823565b610179610839565b610227600480360360208110156103cc57600080fd5b5035610842565b61019561086a565b610279600480360360208110156103f157600080fd5b50356001600160a01b03166108cb565b61026f610933565b61019561093b565b61026f6004803603604081101561042757600080fd5b506001600160a01b038135169060200135151561099c565b61026f6004803603608081101561045557600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561049057600080fd5b8201836020820111156104a257600080fd5b803590602001918460018302840111640100000000831117156104c457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610aa1945050505050565b6101956004803603602081101561051b57600080fd5b5035610aff565b6101796004803603604081101561053857600080fd5b506001600160a01b0381358116916020013516610da6565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b820191906000526020600020905b8154815290600101906020018083116105e257829003601f168201915b5050505050905090565b600061061482610dd4565b61064f5760405162461bcd60e51b815260040180806020018281038252602c815260200180611e96602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061067682610842565b9050806001600160a01b0316836001600160a01b031614156106c95760405162461bcd60e51b8152600401808060200182810382526021815260200180611f1a6021913960400191505060405180910390fd5b806001600160a01b03166106db610de1565b6001600160a01b031614806106fc57506106fc816106f7610de1565b610da6565b6107375760405162461bcd60e51b8152600401808060200182810382526038815260200180611de96038913960400191505060405180910390fd5b6107418383610de5565b505050565b60006107526002610e53565b905090565b610768610762610de1565b82610e5e565b6107a35760405162461bcd60e51b8152600401808060200182810382526031815260200180611f3b6031913960400191505060405180910390fd5b610741838383610f02565b6001600160a01b03821660009081526001602052604081206107d0908361104e565b90505b92915050565b6107e161105a565b565b6107ed82826110f8565b5050565b61074183838360405180602001604052806000815250610aa1565b61081581611226565b50565b60006107d382610dd4565b6000806108316002846112f3565b509392505050565b600a5460ff1690565b60006107d382604051806060016040528060298152602001611e4b602991396002919061130f565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b60006001600160a01b0382166109125760405162461bcd60e51b815260040180806020018281038252602a815260200180611e21602a913960400191505060405180910390fd5b6001600160a01b03821660009081526001602052604090206107d390610e53565b6107e1611326565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ff5780601f106105d4576101008083540402835291602001916105ff565b6109a4610de1565b6001600160a01b0316826001600160a01b03161415610a0a576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000610a17610de1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a5b610de1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610ab2610aac610de1565b83610e5e565b610aed5760405162461bcd60e51b8152600401808060200182810382526031815260200180611f3b6031913960400191505060405180910390fd5b610af9848484846113a7565b50505050565b6060610b0a82610dd4565b610b455760405162461bcd60e51b815260040180806020018281038252602f815260200180611eeb602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610bda5780601f10610baf57610100808354040283529160200191610bda565b820191906000526020600020905b815481529060010190602001808311610bbd57829003601f168201915b505060095493945050505060026000196101006001841615020190911604610c0357905061056e565b805115610cd4576009816040516020018083805460018160011615610100020316600290048015610c6b5780601f10610c49576101008083540402835291820191610c6b565b820191906000526020600020905b815481529060010190602001808311610c57575b5050825160208401908083835b60208310610c975780518252601f199092019160209182019101610c78565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405291505061056e565b6009610cdf846113f9565b6040516020018083805460018160011615610100020316600290048015610d3d5780601f10610d1b576101008083540402835291820191610d3d565b820191906000526020600020905b815481529060010190602001808311610d29575b5050825160208401908083835b60208310610d695780518252601f199092019160209182019101610d4a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006107d36002836114d4565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610e1a82610842565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006107d3826114e0565b6000610e6982610dd4565b610ea45760405162461bcd60e51b815260040180806020018281038252602c815260200180611dbd602c913960400191505060405180910390fd5b6000610eaf83610842565b9050806001600160a01b0316846001600160a01b03161480610eea5750836001600160a01b0316610edf84610609565b6001600160a01b0316145b80610efa5750610efa8185610da6565b949350505050565b826001600160a01b0316610f1582610842565b6001600160a01b031614610f5a5760405162461bcd60e51b8152600401808060200182810382526029815260200180611ec26029913960400191505060405180910390fd5b6001600160a01b038216610f9f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d996024913960400191505060405180910390fd5b610faa8383836114e4565b610fb5600082610de5565b6001600160a01b0383166000908152600160205260409020610fd79082611533565b506001600160a01b0382166000908152600160205260409020610ffa908261153f565b506110076002828461154b565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006107d08383611561565b600a5460ff166110a8576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6110db610de1565b604080516001600160a01b039092168252519081900360200190a1565b6001600160a01b038216611153576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61115c81610dd4565b156111ae576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6111ba600083836114e4565b6001600160a01b03821660009081526001602052604090206111dc908261153f565b506111e96002828461154b565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061123182610842565b905061123f816000846114e4565b61124a600083610de5565b600082815260086020526040902054600260001961010060018416150201909116041561128857600082815260086020526040812061128891611cc1565b6001600160a01b03811660009081526001602052604090206112aa9083611533565b506112b66002836115c5565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080808061130286866115d1565b9097909650945050505050565b600061131c84848461164c565b90505b9392505050565b600a5460ff1615611371576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110db610de1565b6113b2848484610f02565b6113be84848484611716565b610af95760405162461bcd60e51b8152600401808060200182810382526032815260200180611d676032913960400191505060405180910390fd5b60608161141e57506040805180820190915260018152600360fc1b602082015261056e565b8160005b811561143657600101600a82049150611422565b60608167ffffffffffffffff8111801561144f57600080fd5b506040519080825280601f01601f19166020018201604052801561147a576020820181803683370190505b50859350905060001982015b83156114cb57600a840660300160f81b828280600190039350815181106114a957fe5b60200101906001600160f81b031916908160001a905350600a84049350611486565b50949350505050565b60006107d0838361187e565b5490565b6114ef838383610741565b6114f7610839565b156107415760405162461bcd60e51b815260040180806020018281038252602b815260200180611d3c602b913960400191505060405180910390fd5b60006107d08383611896565b60006107d0838361195c565b600061131c84846001600160a01b0385166119a6565b815460009082106115a35760405162461bcd60e51b8152600401808060200182810382526022815260200180611d1a6022913960400191505060405180910390fd5b8260000182815481106115b257fe5b9060005260206000200154905092915050565b60006107d08383611a3d565b8154600090819083106116155760405162461bcd60e51b8152600401808060200182810382526022815260200180611e746022913960400191505060405180910390fd5b600084600001848154811061162657fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816116e75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116ac578181015183820152602001611694565b50505050905090810190601f1680156116d95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106116fa57fe5b9060005260206000209060020201600101549150509392505050565b600061172a846001600160a01b0316611b11565b61173657506001610efa565b6060611844630a85bd0160e11b61174b610de1565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156117b257818101518382015260200161179a565b50505050905090810190601f1680156117df5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001611d67603291396001600160a01b0388169190611b4a565b9050600081806020019051602081101561185d57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561195257835460001980830191908101906000908790839081106118c957fe5b90600052602060002001549050808760000184815481106118e657fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061191657fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506107d3565b60009150506107d3565b6000611968838361187e565b61199e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107d3565b5060006107d3565b600082815260018401602052604081205480611a0b57505060408051808201825283815260208082018481528654600181810189556000898152848120955160029093029095019182559151908201558654868452818801909252929091205561131f565b82856000016001830381548110611a1e57fe5b906000526020600020906002020160010181905550600091505061131f565b600081815260018301602052604081205480156119525783546000198083019190810190600090879083908110611a7057fe5b9060005260206000209060020201905080876000018481548110611a9057fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080611acf57fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506107d39350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610efa575050151592915050565b606061131c84846000856060611b5f85611b11565b611bb0576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611bef5780518252601f199092019160209182019101611bd0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611c51576040519150601f19603f3d011682016040523d82523d6000602084013e611c56565b606091505b50915091508115611c6a579150610efa9050565b805115611c7a5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156116ac578181015183820152602001611694565b50805460018160011615610100020316600290046000825580601f10611ce75750610815565b601f01602090049060005260206000209081019061081591905b80821115611d155760008155600101611d01565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732315061757361626c653a20746f6b656e207472616e73666572207768696c65207061757365644552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220dd03dadf5890d03212738e12a53e62ede9b778c9bab83b0f379f0f7ae9a1637164736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC721PausableMock.sol","sourcemap":"230:548:46:-:0;;;282:86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;282:86:46;;;;;;;;;;-1:-1:-1;282:86:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;282:86:46;;;;;;;;;;-1:-1:-1;282:86:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;282:86:46;;-1:-1:-1;351:4:46;;-1:-1:-1;357:6:46;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;3637:12:92;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;3659:16:92;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;3763:40:92;-1:-1:-1;;;3763:18:92;:40::i;:::-;3813:49;-1:-1:-1;;;3813:18:92;:49::i;:::-;3872:51;-1:-1:-1;;;3872:18:92;:51::i;:::-;-1:-1:-1;;923:7:110;:15;;-1:-1:-1;;923:15:110;;;-1:-1:-1;230:548:46;;-1:-1:-1;230:548:46;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1633:40:10;1669:4;1633:40;;;1482:198::o;230:548:46:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;230:548:46;;;-1:-1:-1;230:548:46;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721PresetMinterPauserAutoId":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","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":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_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":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721PresetMinterPauserAutoId","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b5060405162002cec38038062002cec833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620001bc57600080fd5b908301906020820185811115620001d257600080fd5b8251640100000000811182820188101715620001ed57600080fd5b82525081516020918201929091019080838360005b838110156200021c57818101518382015260200162000202565b50505050905090810190601f1680156200024a5780820380516001836020036101000a031916815260200191505b5060405250849150839050620002676301ffc9a760e01b6200035d565b81516200027c9060079060208501906200050e565b508051620002929060089060208401906200050e565b50620002a56380ac58cd60e01b6200035d565b620002b7635b5e139f60e01b6200035d565b620002c963780e9d6360e01b6200035d565b5050600b805460ff19169055620002eb6000620002e5620003e5565b620003e9565b6200031a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6620002e5620003e5565b620003497f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a620002e5620003e5565b6200035481620003f9565b505050620005aa565b6001600160e01b03198082161415620003bd576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b3390565b620003f582826200040e565b5050565b8051620003f590600a9060208401906200050e565b60008281526020818152604090912062000433918390620012c762000487821b17901c565b15620003f55762000443620003e5565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006200049e836001600160a01b038416620004a7565b90505b92915050565b6000620004b58383620004f6565b620004ed57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620004a1565b506000620004a1565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200055157805160ff191683800117855562000581565b8280016001018555821562000581579182015b828111156200058157825182559160200191906001019062000564565b506200058f92915062000593565b5090565b5b808211156200058f576000815560010162000594565b61273280620005ba6000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80636a6278421161010f578063a22cb465116100a2578063d539139311610071578063d53913931461068b578063d547741f14610693578063e63ab1e9146106bf578063e985e9c5146106c7576101f0565b8063a22cb4651461055d578063b88d4fde1461058b578063c87b56dd14610651578063ca15c8731461066e576101f0565b80639010d07c116100de5780639010d07c146104fe57806391d148541461052157806395d89b411461054d578063a217fddf14610555576101f0565b80636a627842146104a25780636c0360eb146104c857806370a08231146104d05780638456cb59146104f6576101f0565b80632f745c591161018757806342966c681161015657806342966c68146104435780634f6ccce7146104605780635c975abb1461047d5780636352211e14610485576101f0565b80632f745c59146103ad57806336568abe146103d95780633f4ba83a1461040557806342842e0e1461040d576101f0565b806318160ddd116101c357806318160ddd1461031457806323b872dd1461032e578063248a9ca3146103645780632f2ff15d14610381576101f0565b806301ffc9a7146101f557806306fdde0314610230578063081812fc146102ad578063095ea7b3146102e6575b600080fd5b61021c6004803603602081101561020b57600080fd5b50356001600160e01b0319166106f5565b604080519115158252519081900360200190f35b610238610718565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027257818101518382015260200161025a565b50505050905090810190601f16801561029f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102ca600480360360208110156102c357600080fd5b50356107ae565b604080516001600160a01b039092168252519081900360200190f35b610312600480360360408110156102fc57600080fd5b506001600160a01b038135169060200135610810565b005b61031c6108eb565b60408051918252519081900360200190f35b6103126004803603606081101561034457600080fd5b506001600160a01b038135811691602081013590911690604001356108fc565b61031c6004803603602081101561037a57600080fd5b5035610953565b6103126004803603604081101561039757600080fd5b50803590602001356001600160a01b0316610968565b61031c600480360360408110156103c357600080fd5b506001600160a01b0381351690602001356109d4565b610312600480360360408110156103ef57600080fd5b50803590602001356001600160a01b03166109ff565b610312610a60565b6103126004803603606081101561042357600080fd5b506001600160a01b03813581169160208101359091169060400135610ad1565b6103126004803603602081101561045957600080fd5b5035610aec565b61031c6004803603602081101561047657600080fd5b5035610b3e565b61021c610b54565b6102ca6004803603602081101561049b57600080fd5b5035610b5d565b610312600480360360208110156104b857600080fd5b50356001600160a01b0316610b85565b610238610c09565b61031c600480360360208110156104e657600080fd5b50356001600160a01b0316610c6a565b610312610cd2565b6102ca6004803603604081101561051457600080fd5b5080359060200135610d41565b61021c6004803603604081101561053757600080fd5b50803590602001356001600160a01b0316610d59565b610238610d71565b61031c610dd2565b6103126004803603604081101561057357600080fd5b506001600160a01b0381351690602001351515610dd7565b610312600480360360808110156105a157600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156105dc57600080fd5b8201836020820111156105ee57600080fd5b8035906020019184600183028401116401000000008311171561061057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610edc945050505050565b6102386004803603602081101561066757600080fd5b5035610f3a565b61031c6004803603602081101561068457600080fd5b50356111e1565b61031c6111f8565b610312600480360360408110156106a957600080fd5b50803590602001356001600160a01b031661121c565b61031c611275565b61021c600480360360408110156106dd57600080fd5b506001600160a01b0381358116916020013516611299565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b820191906000526020600020905b81548152906001019060200180831161078757829003601f168201915b5050505050905090565b60006107b9826112dc565b6107f45760405162461bcd60e51b815260040180806020018281038252602c81526020018061254b602c913960400191505060405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061081b82610b5d565b9050806001600160a01b0316836001600160a01b0316141561086e5760405162461bcd60e51b81526004018080602001828103825260218152602001806125cf6021913960400191505060405180910390fd5b806001600160a01b03166108806112e9565b6001600160a01b031614806108a157506108a18161089c6112e9565b611299565b6108dc5760405162461bcd60e51b815260040180806020018281038252603881526020018061249e6038913960400191505060405180910390fd5b6108e683836112ed565b505050565b60006108f7600361135b565b905090565b61090d6109076112e9565b82611366565b6109485760405162461bcd60e51b81526004018080602001828103825260318152602001806125f06031913960400191505060405180910390fd5b6108e683838361140a565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461098b906109866112e9565b610d59565b6109c65760405162461bcd60e51b815260040180806020018281038252602f81526020018061237f602f913960400191505060405180910390fd5b6109d08282611556565b5050565b6001600160a01b03821660009081526002602052604081206109f690836115bf565b90505b92915050565b610a076112e9565b6001600160a01b0316816001600160a01b031614610a565760405162461bcd60e51b815260040180806020018281038252602f8152602001806126ce602f913960400191505060405180910390fd5b6109d082826115cb565b610a8c7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109866112e9565b610ac75760405162461bcd60e51b815260040180806020018281038252604081526020018061268e6040913960400191505060405180910390fd5b610acf611634565b565b6108e683838360405180602001604052806000815250610edc565b610af76109076112e9565b610b325760405162461bcd60e51b815260040180806020018281038252603081526020018061265e6030913960400191505060405180910390fd5b610b3b816116d2565b50565b600080610b4c60038461179f565b509392505050565b600b5460ff1690565b60006109f98260405180606001604052806029815260200161250060299139600391906117bb565b610bb17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109866112e9565b610bec5760405162461bcd60e51b815260040180806020018281038252603d815260200180612621603d913960400191505060405180910390fd5b610bff81610bfa600c6117d2565b6117d6565b610b3b600c611904565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b60006001600160a01b038216610cb15760405162461bcd60e51b815260040180806020018281038252602a8152602001806124d6602a913960400191505060405180910390fd5b6001600160a01b03821660009081526002602052604090206109f99061135b565b610cfe7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109866112e9565b610d395760405162461bcd60e51b815260040180806020018281038252603e8152602001806123e0603e913960400191505060405180910390fd5b610acf61190d565b60008281526020819052604081206109f690836115bf565b60008281526020819052604081206109f6908361198e565b60088054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b600081565b610ddf6112e9565b6001600160a01b0316826001600160a01b03161415610e45576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060066000610e526112e9565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610e966112e9565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610eed610ee76112e9565b83611366565b610f285760405162461bcd60e51b81526004018080602001828103825260318152602001806125f06031913960400191505060405180910390fd5b610f34848484846119a3565b50505050565b6060610f45826112dc565b610f805760405162461bcd60e51b815260040180806020018281038252602f8152602001806125a0602f913960400191505060405180910390fd5b60008281526009602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156110155780601f10610fea57610100808354040283529160200191611015565b820191906000526020600020905b815481529060010190602001808311610ff857829003601f168201915b5050600a549394505050506002600019610100600184161502019091160461103e579050610713565b80511561110f57600a8160405160200180838054600181600116156101000203166002900480156110a65780601f106110845761010080835404028352918201916110a6565b820191906000526020600020905b815481529060010190602001808311611092575b5050825160208401908083835b602083106110d25780518252601f1990920191602091820191016110b3565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610713565b600a61111a846119f5565b60405160200180838054600181600116156101000203166002900480156111785780601f10611156576101008083540402835291820191611178565b820191906000526020600020905b815481529060010190602001808311611164575b5050825160208401908083835b602083106111a45780518252601f199092019160209182019101611185565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b60008181526020819052604081206109f99061135b565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461123a906109866112e9565b610a565760405162461bcd60e51b815260040180806020018281038252603081526020018061246e6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b60006109f6836001600160a01b038416611ad0565b60006109f9600383611b1a565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061132282610b5d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006109f9826117d2565b6000611371826112dc565b6113ac5760405162461bcd60e51b815260040180806020018281038252602c815260200180612442602c913960400191505060405180910390fd5b60006113b783610b5d565b9050806001600160a01b0316846001600160a01b031614806113f25750836001600160a01b03166113e7846107ae565b6001600160a01b0316145b8061140257506114028185611299565b949350505050565b826001600160a01b031661141d82610b5d565b6001600160a01b0316146114625760405162461bcd60e51b81526004018080602001828103825260298152602001806125776029913960400191505060405180910390fd5b6001600160a01b0382166114a75760405162461bcd60e51b815260040180806020018281038252602481526020018061241e6024913960400191505060405180910390fd5b6114b2838383611b26565b6114bd6000826112ed565b6001600160a01b03831660009081526002602052604090206114df9082611b31565b506001600160a01b03821660009081526002602052604090206115029082611b3d565b5061150f60038284611b49565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600082815260208190526040902061156e90826112c7565b156109d05761157b6112e9565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006109f68383611b5f565b60008281526020819052604090206115e39082611bc3565b156109d0576115f06112e9565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600b5460ff16611682576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116b56112e9565b604080516001600160a01b039092168252519081900360200190a1565b60006116dd82610b5d565b90506116eb81600084611b26565b6116f66000836112ed565b6000828152600960205260409020546002600019610100600184161502019091160415611734576000828152600960205260408120611734916122d9565b6001600160a01b03811660009081526002602052604090206117569083611b31565b50611762600383611bd8565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806117ae8686611be4565b9097909650945050505050565b60006117c8848484611c5f565b90505b9392505050565b5490565b6001600160a01b038216611831576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61183a816112dc565b1561188c576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b61189860008383611b26565b6001600160a01b03821660009081526002602052604090206118ba9082611b3d565b506118c760038284611b49565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80546001019055565b600b5460ff1615611958576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116b56112e9565b60006109f6836001600160a01b038416611d29565b6119ae84848461140a565b6119ba84848484611d41565b610f345760405162461bcd60e51b81526004018080602001828103825260328152602001806123ae6032913960400191505060405180910390fd5b606081611a1a57506040805180820190915260018152600360fc1b6020820152610713565b8160005b8115611a3257600101600a82049150611a1e565b60608167ffffffffffffffff81118015611a4b57600080fd5b506040519080825280601f01601f191660200182016040528015611a76576020820181803683370190505b50859350905060001982015b8315611ac757600a840660300160f81b82828060019003935081518110611aa557fe5b60200101906001600160f81b031916908160001a905350600a84049350611a82565b50949350505050565b6000611adc8383611d29565b611b12575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109f9565b5060006109f9565b60006109f68383611d29565b6108e6838383611ea9565b60006109f68383611ef8565b60006109f68383611ad0565b60006117c884846001600160a01b038516611fbe565b81546000908210611ba15760405162461bcd60e51b81526004018080602001828103825260228152602001806123326022913960400191505060405180910390fd5b826000018281548110611bb057fe5b9060005260206000200154905092915050565b60006109f6836001600160a01b038416611ef8565b60006109f68383612055565b815460009081908310611c285760405162461bcd60e51b81526004018080602001828103825260228152602001806125296022913960400191505060405180910390fd5b6000846000018481548110611c3957fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611cfa5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611cbf578181015183820152602001611ca7565b50505050905090810190601f168015611cec5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611d0d57fe5b9060005260206000209060020201600101549150509392505050565b60009081526001919091016020526040902054151590565b6000611d55846001600160a01b0316612129565b611d6157506001611402565b6060611e6f630a85bd0160e11b611d766112e9565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611ddd578181015183820152602001611dc5565b50505050905090810190601f168015611e0a5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060600160405280603281526020016123ae603291396001600160a01b0388169190612162565b90506000818060200190516020811015611e8857600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b611eb48383836108e6565b611ebc610b54565b156108e65760405162461bcd60e51b815260040180806020018281038252602b815260200180612354602b913960400191505060405180910390fd5b60008181526001830160205260408120548015611fb45783546000198083019190810190600090879083908110611f2b57fe5b9060005260206000200154905080876000018481548110611f4857fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611f7857fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506109f9565b60009150506109f9565b6000828152600184016020526040812054806120235750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556117cb565b8285600001600183038154811061203657fe5b90600052602060002090600202016001018190555060009150506117cb565b60008181526001830160205260408120548015611fb4578354600019808301919081019060009087908390811061208857fe5b90600052602060002090600202019050808760000184815481106120a857fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806120e757fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506109f99350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611402575050151592915050565b60606117c88484600085606061217785612129565b6121c8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106122075780518252601f1990920191602091820191016121e8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612269576040519150601f19603f3d011682016040523d82523d6000602084013e61226e565b606091505b509150915081156122825791506114029050565b8051156122925780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611cbf578181015183820152602001611ca7565b50805460018160011615610100020316600290046000825580601f106122ff5750610b3b565b601f016020900490600052602060002090810190610b3b91905b8082111561232d5760008155600101612319565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732315061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732315072657365744d696e7465725061757365724175746f49643a206d75737420686176652070617573657220726f6c6520746f2070617573654552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732315072657365744d696e7465725061757365724175746f49643a206d7573742068617665206d696e74657220726f6c6520746f206d696e744552433732314275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732315072657365744d696e7465725061757365724175746f49643a206d75737420686176652070617573657220726f6c6520746f20756e7061757365416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122082b1c9d736ac3ef0779c90a09d33793e70aa254dddd11e391018687f3378d20f64736f6c634300060c0033"},"devdoc":{"details":"{ERC721} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers - token ID and URI autogeneration This contract uses {AccessControl} to lock permissioned functions using the different roles - head to its documentation for details. The account that deploys the contract will be granted the minter and pauser roles, as well as the default admin role, which will let it grant both minter and pauser roles to other accounts.","kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC721-approve}."},"balanceOf(address)":{"details":"See {IERC721-balanceOf}."},"baseURI()":{"details":"Returns the base URI set via {_setBaseURI}. This will be automatically added as a prefix in {tokenURI} to each token's URI, or to the token ID if no specific URI is set for that token ID."},"burn(uint256)":{"details":"Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator."},"constructor":{"details":"Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the account that deploys the contract. Token URIs will be autogenerated based on `baseURI` and their token IDs. See {ERC721-tokenURI}."},"getApproved(uint256)":{"details":"See {IERC721-getApproved}."},"getRoleAdmin(bytes32)":{"details":"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."},"getRoleMember(bytes32,uint256)":{"details":"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information."},"getRoleMemberCount(bytes32)":{"details":"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role."},"grantRole(bytes32,address)":{"details":"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."},"hasRole(bytes32,address)":{"details":"Returns `true` if `account` has been granted `role`."},"isApprovedForAll(address,address)":{"details":"See {IERC721-isApprovedForAll}."},"mint(address)":{"details":"Creates a new token for `to`. Its token ID will be automatically assigned (and available on the emitted {IERC721-Transfer} event), and the token URI autogenerated based on the base URI passed at construction. See {ERC721-_mint}. Requirements: - the caller must have the `MINTER_ROLE`."},"name()":{"details":"See {IERC721Metadata-name}."},"ownerOf(uint256)":{"details":"See {IERC721-ownerOf}."},"pause()":{"details":"Pauses all token transfers. See {ERC721Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."},"renounceRole(bytes32,address)":{"details":"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."},"revokeRole(bytes32,address)":{"details":"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."},"safeTransferFrom(address,address,uint256)":{"details":"See {IERC721-safeTransferFrom}."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"See {IERC721-safeTransferFrom}."},"setApprovalForAll(address,bool)":{"details":"See {IERC721-setApprovalForAll}."},"supportsInterface(bytes4)":{"details":"See {IERC165-supportsInterface}. Time complexity O(1), guaranteed to always use less than 30 000 gas."},"symbol()":{"details":"See {IERC721Metadata-symbol}."},"tokenByIndex(uint256)":{"details":"See {IERC721Enumerable-tokenByIndex}."},"tokenOfOwnerByIndex(address,uint256)":{"details":"See {IERC721Enumerable-tokenOfOwnerByIndex}."},"tokenURI(uint256)":{"details":"See {IERC721Metadata-tokenURI}."},"totalSupply()":{"details":"See {IERC721Enumerable-totalSupply}."},"transferFrom(address,address,uint256)":{"details":"See {IERC721-transferFrom}."},"unpause()":{"details":"Unpauses all token transfers. See {ERC721Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`."}},"version":1},"methodIdentifiers":{"DEFAULT_ADMIN_ROLE()":"0xa217fddf","MINTER_ROLE()":"0xd5391393","PAUSER_ROLE()":"0xe63ab1e9","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","baseURI()":"0x6c0360eb","burn(uint256)":"0x42966c68","getApproved(uint256)":"0x081812fc","getRoleAdmin(bytes32)":"0x248a9ca3","getRoleMember(bytes32,uint256)":"0x9010d07c","getRoleMemberCount(bytes32)":"0xca15c873","grantRole(bytes32,address)":"0x2f2ff15d","hasRole(bytes32,address)":"0x91d14854","isApprovedForAll(address,address)":"0xe985e9c5","mint(address)":"0x6a627842","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","pause()":"0x8456cb59","paused()":"0x5c975abb","renounceRole(bytes32,address)":"0x36568abe","revokeRole(bytes32,address)":"0xd547741f","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","tokenURI(uint256)":"0xc87b56dd","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd","unpause()":"0x3f4ba83a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101f05760003560e01c80636a6278421161010f578063a22cb465116100a2578063d539139311610071578063d53913931461068b578063d547741f14610693578063e63ab1e9146106bf578063e985e9c5146106c7576101f0565b8063a22cb4651461055d578063b88d4fde1461058b578063c87b56dd14610651578063ca15c8731461066e576101f0565b80639010d07c116100de5780639010d07c146104fe57806391d148541461052157806395d89b411461054d578063a217fddf14610555576101f0565b80636a627842146104a25780636c0360eb146104c857806370a08231146104d05780638456cb59146104f6576101f0565b80632f745c591161018757806342966c681161015657806342966c68146104435780634f6ccce7146104605780635c975abb1461047d5780636352211e14610485576101f0565b80632f745c59146103ad57806336568abe146103d95780633f4ba83a1461040557806342842e0e1461040d576101f0565b806318160ddd116101c357806318160ddd1461031457806323b872dd1461032e578063248a9ca3146103645780632f2ff15d14610381576101f0565b806301ffc9a7146101f557806306fdde0314610230578063081812fc146102ad578063095ea7b3146102e6575b600080fd5b61021c6004803603602081101561020b57600080fd5b50356001600160e01b0319166106f5565b604080519115158252519081900360200190f35b610238610718565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027257818101518382015260200161025a565b50505050905090810190601f16801561029f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102ca600480360360208110156102c357600080fd5b50356107ae565b604080516001600160a01b039092168252519081900360200190f35b610312600480360360408110156102fc57600080fd5b506001600160a01b038135169060200135610810565b005b61031c6108eb565b60408051918252519081900360200190f35b6103126004803603606081101561034457600080fd5b506001600160a01b038135811691602081013590911690604001356108fc565b61031c6004803603602081101561037a57600080fd5b5035610953565b6103126004803603604081101561039757600080fd5b50803590602001356001600160a01b0316610968565b61031c600480360360408110156103c357600080fd5b506001600160a01b0381351690602001356109d4565b610312600480360360408110156103ef57600080fd5b50803590602001356001600160a01b03166109ff565b610312610a60565b6103126004803603606081101561042357600080fd5b506001600160a01b03813581169160208101359091169060400135610ad1565b6103126004803603602081101561045957600080fd5b5035610aec565b61031c6004803603602081101561047657600080fd5b5035610b3e565b61021c610b54565b6102ca6004803603602081101561049b57600080fd5b5035610b5d565b610312600480360360208110156104b857600080fd5b50356001600160a01b0316610b85565b610238610c09565b61031c600480360360208110156104e657600080fd5b50356001600160a01b0316610c6a565b610312610cd2565b6102ca6004803603604081101561051457600080fd5b5080359060200135610d41565b61021c6004803603604081101561053757600080fd5b50803590602001356001600160a01b0316610d59565b610238610d71565b61031c610dd2565b6103126004803603604081101561057357600080fd5b506001600160a01b0381351690602001351515610dd7565b610312600480360360808110156105a157600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156105dc57600080fd5b8201836020820111156105ee57600080fd5b8035906020019184600183028401116401000000008311171561061057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610edc945050505050565b6102386004803603602081101561066757600080fd5b5035610f3a565b61031c6004803603602081101561068457600080fd5b50356111e1565b61031c6111f8565b610312600480360360408110156106a957600080fd5b50803590602001356001600160a01b031661121c565b61031c611275565b61021c600480360360408110156106dd57600080fd5b506001600160a01b0381358116916020013516611299565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b820191906000526020600020905b81548152906001019060200180831161078757829003601f168201915b5050505050905090565b60006107b9826112dc565b6107f45760405162461bcd60e51b815260040180806020018281038252602c81526020018061254b602c913960400191505060405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061081b82610b5d565b9050806001600160a01b0316836001600160a01b0316141561086e5760405162461bcd60e51b81526004018080602001828103825260218152602001806125cf6021913960400191505060405180910390fd5b806001600160a01b03166108806112e9565b6001600160a01b031614806108a157506108a18161089c6112e9565b611299565b6108dc5760405162461bcd60e51b815260040180806020018281038252603881526020018061249e6038913960400191505060405180910390fd5b6108e683836112ed565b505050565b60006108f7600361135b565b905090565b61090d6109076112e9565b82611366565b6109485760405162461bcd60e51b81526004018080602001828103825260318152602001806125f06031913960400191505060405180910390fd5b6108e683838361140a565b60009081526020819052604090206002015490565b60008281526020819052604090206002015461098b906109866112e9565b610d59565b6109c65760405162461bcd60e51b815260040180806020018281038252602f81526020018061237f602f913960400191505060405180910390fd5b6109d08282611556565b5050565b6001600160a01b03821660009081526002602052604081206109f690836115bf565b90505b92915050565b610a076112e9565b6001600160a01b0316816001600160a01b031614610a565760405162461bcd60e51b815260040180806020018281038252602f8152602001806126ce602f913960400191505060405180910390fd5b6109d082826115cb565b610a8c7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109866112e9565b610ac75760405162461bcd60e51b815260040180806020018281038252604081526020018061268e6040913960400191505060405180910390fd5b610acf611634565b565b6108e683838360405180602001604052806000815250610edc565b610af76109076112e9565b610b325760405162461bcd60e51b815260040180806020018281038252603081526020018061265e6030913960400191505060405180910390fd5b610b3b816116d2565b50565b600080610b4c60038461179f565b509392505050565b600b5460ff1690565b60006109f98260405180606001604052806029815260200161250060299139600391906117bb565b610bb17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109866112e9565b610bec5760405162461bcd60e51b815260040180806020018281038252603d815260200180612621603d913960400191505060405180910390fd5b610bff81610bfa600c6117d2565b6117d6565b610b3b600c611904565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b60006001600160a01b038216610cb15760405162461bcd60e51b815260040180806020018281038252602a8152602001806124d6602a913960400191505060405180910390fd5b6001600160a01b03821660009081526002602052604090206109f99061135b565b610cfe7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109866112e9565b610d395760405162461bcd60e51b815260040180806020018281038252603e8152602001806123e0603e913960400191505060405180910390fd5b610acf61190d565b60008281526020819052604081206109f690836115bf565b60008281526020819052604081206109f6908361198e565b60088054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107a45780601f10610779576101008083540402835291602001916107a4565b600081565b610ddf6112e9565b6001600160a01b0316826001600160a01b03161415610e45576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060066000610e526112e9565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610e966112e9565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610eed610ee76112e9565b83611366565b610f285760405162461bcd60e51b81526004018080602001828103825260318152602001806125f06031913960400191505060405180910390fd5b610f34848484846119a3565b50505050565b6060610f45826112dc565b610f805760405162461bcd60e51b815260040180806020018281038252602f8152602001806125a0602f913960400191505060405180910390fd5b60008281526009602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156110155780601f10610fea57610100808354040283529160200191611015565b820191906000526020600020905b815481529060010190602001808311610ff857829003601f168201915b5050600a549394505050506002600019610100600184161502019091160461103e579050610713565b80511561110f57600a8160405160200180838054600181600116156101000203166002900480156110a65780601f106110845761010080835404028352918201916110a6565b820191906000526020600020905b815481529060010190602001808311611092575b5050825160208401908083835b602083106110d25780518252601f1990920191602091820191016110b3565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610713565b600a61111a846119f5565b60405160200180838054600181600116156101000203166002900480156111785780601f10611156576101008083540402835291820191611178565b820191906000526020600020905b815481529060010190602001808311611164575b5050825160208401908083835b602083106111a45780518252601f199092019160209182019101611185565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b60008181526020819052604081206109f99061135b565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b60008281526020819052604090206002015461123a906109866112e9565b610a565760405162461bcd60e51b815260040180806020018281038252603081526020018061246e6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b60006109f6836001600160a01b038416611ad0565b60006109f9600383611b1a565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061132282610b5d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006109f9826117d2565b6000611371826112dc565b6113ac5760405162461bcd60e51b815260040180806020018281038252602c815260200180612442602c913960400191505060405180910390fd5b60006113b783610b5d565b9050806001600160a01b0316846001600160a01b031614806113f25750836001600160a01b03166113e7846107ae565b6001600160a01b0316145b8061140257506114028185611299565b949350505050565b826001600160a01b031661141d82610b5d565b6001600160a01b0316146114625760405162461bcd60e51b81526004018080602001828103825260298152602001806125776029913960400191505060405180910390fd5b6001600160a01b0382166114a75760405162461bcd60e51b815260040180806020018281038252602481526020018061241e6024913960400191505060405180910390fd5b6114b2838383611b26565b6114bd6000826112ed565b6001600160a01b03831660009081526002602052604090206114df9082611b31565b506001600160a01b03821660009081526002602052604090206115029082611b3d565b5061150f60038284611b49565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600082815260208190526040902061156e90826112c7565b156109d05761157b6112e9565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006109f68383611b5f565b60008281526020819052604090206115e39082611bc3565b156109d0576115f06112e9565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600b5460ff16611682576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116b56112e9565b604080516001600160a01b039092168252519081900360200190a1565b60006116dd82610b5d565b90506116eb81600084611b26565b6116f66000836112ed565b6000828152600960205260409020546002600019610100600184161502019091160415611734576000828152600960205260408120611734916122d9565b6001600160a01b03811660009081526002602052604090206117569083611b31565b50611762600383611bd8565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806117ae8686611be4565b9097909650945050505050565b60006117c8848484611c5f565b90505b9392505050565b5490565b6001600160a01b038216611831576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61183a816112dc565b1561188c576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b61189860008383611b26565b6001600160a01b03821660009081526002602052604090206118ba9082611b3d565b506118c760038284611b49565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80546001019055565b600b5460ff1615611958576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116b56112e9565b60006109f6836001600160a01b038416611d29565b6119ae84848461140a565b6119ba84848484611d41565b610f345760405162461bcd60e51b81526004018080602001828103825260328152602001806123ae6032913960400191505060405180910390fd5b606081611a1a57506040805180820190915260018152600360fc1b6020820152610713565b8160005b8115611a3257600101600a82049150611a1e565b60608167ffffffffffffffff81118015611a4b57600080fd5b506040519080825280601f01601f191660200182016040528015611a76576020820181803683370190505b50859350905060001982015b8315611ac757600a840660300160f81b82828060019003935081518110611aa557fe5b60200101906001600160f81b031916908160001a905350600a84049350611a82565b50949350505050565b6000611adc8383611d29565b611b12575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109f9565b5060006109f9565b60006109f68383611d29565b6108e6838383611ea9565b60006109f68383611ef8565b60006109f68383611ad0565b60006117c884846001600160a01b038516611fbe565b81546000908210611ba15760405162461bcd60e51b81526004018080602001828103825260228152602001806123326022913960400191505060405180910390fd5b826000018281548110611bb057fe5b9060005260206000200154905092915050565b60006109f6836001600160a01b038416611ef8565b60006109f68383612055565b815460009081908310611c285760405162461bcd60e51b81526004018080602001828103825260228152602001806125296022913960400191505060405180910390fd5b6000846000018481548110611c3957fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281611cfa5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611cbf578181015183820152602001611ca7565b50505050905090810190601f168015611cec5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110611d0d57fe5b9060005260206000209060020201600101549150509392505050565b60009081526001919091016020526040902054151590565b6000611d55846001600160a01b0316612129565b611d6157506001611402565b6060611e6f630a85bd0160e11b611d766112e9565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611ddd578181015183820152602001611dc5565b50505050905090810190601f168015611e0a5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060600160405280603281526020016123ae603291396001600160a01b0388169190612162565b90506000818060200190516020811015611e8857600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b611eb48383836108e6565b611ebc610b54565b156108e65760405162461bcd60e51b815260040180806020018281038252602b815260200180612354602b913960400191505060405180910390fd5b60008181526001830160205260408120548015611fb45783546000198083019190810190600090879083908110611f2b57fe5b9060005260206000200154905080876000018481548110611f4857fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611f7857fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506109f9565b60009150506109f9565b6000828152600184016020526040812054806120235750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556117cb565b8285600001600183038154811061203657fe5b90600052602060002090600202016001018190555060009150506117cb565b60008181526001830160205260408120548015611fb4578354600019808301919081019060009087908390811061208857fe5b90600052602060002090600202019050808760000184815481106120a857fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806120e757fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506109f99350505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611402575050151592915050565b60606117c88484600085606061217785612129565b6121c8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106122075780518252601f1990920191602091820191016121e8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612269576040519150601f19603f3d011682016040523d82523d6000602084013e61226e565b606091505b509150915081156122825791506114029050565b8051156122925780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611cbf578181015183820152602001611ca7565b50805460018160011615610100020316600290046000825580601f106122ff5750610b3b565b601f016020900490600052602060002090810190610b3b91905b8082111561232d5760008155600101612319565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732315061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732315072657365744d696e7465725061757365724175746f49643a206d75737420686176652070617573657220726f6c6520746f2070617573654552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732315072657365744d696e7465725061757365724175746f49643a206d7573742068617665206d696e74657220726f6c6520746f206d696e744552433732314275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644552433732315072657365744d696e7465725061757365724175746f49643a206d75737420686176652070617573657220726f6c6520746f20756e7061757365416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122082b1c9d736ac3ef0779c90a09d33793e70aa254dddd11e391018687f3378d20f64736f6c634300060c0033"},"sourceId":"contracts/presets/ERC721PresetMinterPauserAutoId.sol","sourcemap":"891:2612:75:-:0;;;1476:292;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1476:292:75;;;;;;;;;;-1:-1:-1;1476:292:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1476:292:75;;;;;;;;;;-1:-1:-1;1476:292:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1476:292:75;;;;;;;;;;-1:-1:-1;1476:292:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1476:292:75;;-1:-1:-1;1567:4:75;;-1:-1:-1;1573:6:75;;-1:-1:-1;751:40:10;-1:-1:-1;;;751:18:10;:40::i;:::-;3637:12:92;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;3659:16:92;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;3763:40:92;-1:-1:-1;;;3763:18:92;:40::i;:::-;3813:49;-1:-1:-1;;;3813:18:92;:49::i;:::-;3872:51;-1:-1:-1;;;3872:18:92;:51::i;:::-;-1:-1:-1;;923:7:110;:15;;-1:-1:-1;;923:15:110;;;1591:44:75::1;933:5:110::0;1622:12:75::1;:10;:12::i;:::-;1591:10;:44::i;:::-;1646:37;1075:24;1670:12;:10;:12::i;1646:37::-;1693;1143:24;1717:12;:10;:12::i;1693:37::-;1741:20;1753:7:::0;1741:11:::1;:20::i;:::-;1476:292:::0;;;891:2612;;1482:198:10;-1:-1:-1;;;;;;1565:25:10;;;;;1557:66;;;;;-1:-1:-1;;;1557:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1633:33:10;;;;;1669:4;1633:33;;;;;;;;:40;;-1:-1:-1;;1633:40:10;;;;;;1482:198::o;590:104:0:-;677:10;590:104;:::o;6578:110:6:-;6656:25;6667:4;6673:7;6656:10;:25::i;:::-;6578:110;;:::o;14647:98:92:-;14719:19;;;;:8;;:19;;;;;:::i;7015:184:6:-;7088:6;:12;;;;;;;;;;;:33;;7113:7;;7088:24;;;;;:33;;:::i;:::-;7084:109;;;7169:12;:10;:12::i;:::-;-1:-1:-1;;;;;7142:40:6;7160:7;-1:-1:-1;;;;;7142:40:6;7154:4;7142:40;;;;;;;;;;7015:184;;:::o;4864:141:109:-;4934:4;4957:41;4962:3;-1:-1:-1;;;;;4982:14:109;;4957:4;:41::i;:::-;4950:48;;4864:141;;;;;:::o;1611:404::-;1674:4;1695:21;1705:3;1710:5;1695:9;:21::i;:::-;1690:319;;-1:-1:-1;1732:23:109;;;;;;;;:11;:23;;;;;;;;;;;;;1912:18;;1890:19;;;:12;;;:19;;;;;;:40;;;;1944:11;;1690:319;-1:-1:-1;1993:5:109;1986:12;;3776:127;3849:4;3872:19;;;:12;;;;;:19;;;;;;:24;;;3776:127::o;891:2612:75:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;891:2612:75;;;-1:-1:-1;891:2612:75;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC721ReceiverMock":{"abi":[{"inputs":[{"internalType":"bytes4","name":"retval","type":"bytes4"},{"internalType":"bool","name":"reverts","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"gas","type":"uint256"}],"name":"Received","type":"event"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC721ReceiverMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506040516102fd3803806102fd8339818101604052604081101561003357600080fd5b508051602090910151600080549115156401000000000260ff60201b1960e09490941c63ffffffff199093169290921792909216179055610284806100796000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b6100f66004803603608081101561004657600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561008157600080fd5b82018360208201111561009357600080fd5b803590602001918460018302840111640100000000831117156100b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610113945050505050565b604080516001600160e01b03199092168252519081900360200190f35b60008054640100000000900460ff1615610174576040805162461bcd60e51b815260206004820152601d60248201527f45524337323152656365697665724d6f636b3a20726576657274696e67000000604482015290519081900360640190fd5b7f28fa6e16458f9c24aa59ddd4085264573006dbe30304837873c7deafc702b038858585855a60405180866001600160a01b03168152602001856001600160a01b0316815260200184815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b838110156102015781810151838201526020016101e9565b50505050905090810190601f16801561022e5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a15060005460e01b94935050505056fea2646970667358221220685611dc93864a7eb15b22e46c9e25c3678974152b3694c751a8546cb2e4d3a764736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"onERC721Received(address,address,uint256,bytes)":{"details":"Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} by `operator` from `from`, this function is called. It must return its Solidity selector to confirm the token transfer. If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`."}},"version":1},"methodIdentifiers":{"onERC721Received(address,address,uint256,bytes)":"0x150b7a02"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063150b7a0214610030575b600080fd5b6100f66004803603608081101561004657600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561008157600080fd5b82018360208201111561009357600080fd5b803590602001918460018302840111640100000000831117156100b557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610113945050505050565b604080516001600160e01b03199092168252519081900360200190f35b60008054640100000000900460ff1615610174576040805162461bcd60e51b815260206004820152601d60248201527f45524337323152656365697665724d6f636b3a20726576657274696e67000000604482015290519081900360640190fd5b7f28fa6e16458f9c24aa59ddd4085264573006dbe30304837873c7deafc702b038858585855a60405180866001600160a01b03168152602001856001600160a01b0316815260200184815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b838110156102015781810151838201526020016101e9565b50505050905090810190601f16801561022e5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a15060005460e01b94935050505056fea2646970667358221220685611dc93864a7eb15b22e46c9e25c3678974152b3694c751a8546cb2e4d3a764736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC721ReceiverMock.sol","sourcemap":"105:618:47:-:0;;;309:110;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;309:110:47;;;;;;;368:7;:16;;394:18;;;;;-1:-1:-1;;;;368:16:47;;;;;-1:-1:-1;;368:16:47;;;;;;;394:18;;;;;;;105:618;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC777":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address[]","name":"defaultOperators","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"AuthorizedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"RevokedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Sent","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"},{"inputs":[{"internalType":"address","name":"holder","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"authorizeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"defaultOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"granularity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"isOperatorFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"revokeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","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"}],"contractName":"ERC777","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b50604051620023b0380380620023b0833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620001bc57600080fd5b908301906020820185811115620001d257600080fd5b8251866020820283011164010000000082111715620001f057600080fd5b82525081516020918201928201910280838360005b838110156200021f57818101518382015260200162000205565b5050505091909101604052505084516200024392506002915060208601906200040b565b508151620002599060039060208501906200040b565b5080516200026f90600490602084019062000490565b5060005b600454811015620002cf57600160056000600484815481106200029257fe5b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560010162000273565b50604080516329965a1d60e01b815230600482018190527fac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce2177054602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad24916329965a1d91606480830192600092919082900301818387803b1580156200035057600080fd5b505af115801562000365573d6000803e3d6000fd5b5050604080516329965a1d60e01b815230600482018190527faea199e31a596269b42cdafd93407f14436db6e4cad65417994c2eb37381e05a602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad2493506329965a1d9250606480830192600092919082900301818387803b158015620003e957600080fd5b505af1158015620003fe573d6000803e3d6000fd5b505050505050506200052e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200044e57805160ff19168380011785556200047e565b828001600101855582156200047e579182015b828111156200047e57825182559160200191906001019062000461565b506200048c929150620004f6565b5090565b828054828255906000526020600020908101928215620004e8579160200282015b82811115620004e857825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620004b1565b506200048c9291506200050d565b5b808211156200048c5760008155600101620004f7565b5b808211156200048c5780546001600160a01b03191681556001016200050e565b611e72806200053e6000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063959b8c3f116100a2578063d95b637111610071578063d95b63711461052a578063dd62ed3e14610558578063fad8b32a14610586578063fc673c4f146105ac578063fe9d9303146106ea57610116565b8063959b8c3f1461041757806395d89b411461043d5780639bd9bbc614610445578063a9059cbb146104fe57610116565b806323b872dd116100e957806323b872dd1461024a578063313ce56714610280578063556f0dc71461029e57806362ad1b83146102a657806370a08231146103f157610116565b806306e485381461011b57806306fdde0314610173578063095ea7b3146101f057806318160ddd14610230575b600080fd5b610123610795565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561015f578181015183820152602001610147565b505050509050019250505060405180910390f35b61017b6107f7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b557818101518382015260200161019d565b50505050905090810190601f1680156101e25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61021c6004803603604081101561020657600080fd5b506001600160a01b038135169060200135610881565b604080519115158252519081900360200190f35b6102386108a3565b60408051918252519081900360200190f35b61021c6004803603606081101561026057600080fd5b506001600160a01b038135811691602081013590911690604001356108a9565b610288610a26565b6040805160ff9092168252519081900360200190f35b610238610a2b565b6103ef600480360360a08110156102bc57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156102f657600080fd5b82018360208201111561030857600080fd5b803590602001918460018302840111600160201b8311171561032957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561037b57600080fd5b82018360208201111561038d57600080fd5b803590602001918460018302840111600160201b831117156103ae57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a30945050505050565b005b6102386004803603602081101561040757600080fd5b50356001600160a01b0316610a92565b6103ef6004803603602081101561042d57600080fd5b50356001600160a01b0316610aad565b61017b610bf9565b6103ef6004803603606081101561045b57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561048a57600080fd5b82018360208201111561049c57600080fd5b803590602001918460018302840111600160201b831117156104bd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c5a945050505050565b61021c6004803603604081101561051457600080fd5b506001600160a01b038135169060200135610c84565b61021c6004803603604081101561054057600080fd5b506001600160a01b0381358116916020013516610d5d565b6102386004803603604081101561056e57600080fd5b506001600160a01b0381358116916020013516610dff565b6103ef6004803603602081101561059c57600080fd5b50356001600160a01b0316610e2a565b6103ef600480360360808110156105c257600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156105f157600080fd5b82018360208201111561060357600080fd5b803590602001918460018302840111600160201b8311171561062457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561067657600080fd5b82018360208201111561068857600080fd5b803590602001918460018302840111600160201b831117156106a957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f76945050505050565b6103ef6004803603604081101561070057600080fd5b81359190810190604081016020820135600160201b81111561072157600080fd5b82018360208201111561073357600080fd5b803590602001918460018302840111600160201b8311171561075457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610fd4945050505050565b606060048054806020026020016040519081016040528092919081815260200182805480156107ed57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107cf575b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156107ed5780601f10610855576101008083540402835291602001916107ed565b820191906000526020600020905b81548152906001019060200180831161086357509395945050505050565b60008061088c610ffa565b9050610899818585610ffe565b5060019392505050565b60015490565b60006001600160a01b0383166108f05760405162461bcd60e51b8152600401808060200182810382526024815260200180611d586024913960400191505060405180910390fd5b6001600160a01b0384166109355760405162461bcd60e51b8152600401808060200182810382526026815260200180611dd16026913960400191505060405180910390fd5b600061093f610ffa565b905061096d8186868660405180602001604052806000815250604051806020016040528060008152506110ea565b610999818686866040518060200160405280600081525060405180602001604052806000815250611317565b6109ed85826109e886604051806060016040528060298152602001611da8602991396001600160a01b03808c166000908152600860209081526040808320938b16835292905220549190611530565b610ffe565b610a1b81868686604051806020016040528060008152506040518060200160405280600081525060006115c7565b506001949350505050565b601290565b600190565b610a41610a3b610ffa565b86610d5d565b610a7c5760405162461bcd60e51b815260040180806020018281038252602c815260200180611d7c602c913960400191505060405180910390fd5b610a8b8585858585600161184c565b5050505050565b6001600160a01b031660009081526020819052604090205490565b806001600160a01b0316610abf610ffa565b6001600160a01b03161415610b055760405162461bcd60e51b8152600401808060200182810382526024815260200180611cc66024913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610b685760076000610b32610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff19169055610baf565b600160066000610b76610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790555b610bb7610ffa565b6001600160a01b0316816001600160a01b03167ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f960405160405180910390a350565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107ed5780601f10610855576101008083540402835291602001916107ed565b610c7f610c65610ffa565b84848460405180602001604052806000815250600161184c565b505050565b60006001600160a01b038316610ccb5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d586024913960400191505060405180910390fd5b6000610cd5610ffa565b9050610d038182868660405180602001604052806000815250604051806020016040528060008152506110ea565b610d2f818286866040518060200160405280600081525060405180602001604052806000815250611317565b61089981828686604051806020016040528060008152506040518060200160405280600081525060006115c7565b6000816001600160a01b0316836001600160a01b03161480610dc857506001600160a01b03831660009081526005602052604090205460ff168015610dc857506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b80610df857506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610e32610ffa565b6001600160a01b0316816001600160a01b03161415610e825760405162461bcd60e51b8152600401808060200182810382526021815260200180611cea6021913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610eee57600160076000610eb1610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff1916911515919091179055610f2c565b60066000610efa610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff191690555b610f34610ffa565b6001600160a01b0316816001600160a01b03167f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa160405160405180910390a350565b610f87610f81610ffa565b85610d5d565b610fc25760405162461bcd60e51b815260040180806020018281038252602c815260200180611d7c602c913960400191505060405180910390fd5b610fce84848484611923565b50505050565b610ff6610fdf610ffa565b838360405180602001604052806000815250611923565b5050565b3390565b6001600160a01b0383166110435760405162461bcd60e51b8152600401808060200182810382526025815260200180611c366025913960400191505060405180910390fd5b6001600160a01b0382166110885760405162461bcd60e51b8152600401808060200182810382526023815260200180611e1a6023913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561116e57600080fd5b505afa158015611182573d6000803e3d6000fd5b505050506040513d602081101561119857600080fd5b505190506001600160a01b0381161561130e57806001600160a01b03166375ab97828888888888886040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561124357818101518382015260200161122b565b50505050905090810190601f1680156112705780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156112a357818101518382015260200161128b565b50505050905090810190601f1680156112d05780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156112f557600080fd5b505af1158015611309573d6000803e3d6000fd5b505050505b50505050505050565b61132386868686610fce565b61136083604051806060016040528060278152602001611c7d602791396001600160a01b0388166000908152602081905260409020549190611530565b6001600160a01b03808716600090815260208190526040808220939093559086168152205461138f9084611b5d565b600080866001600160a01b03166001600160a01b0316815260200190815260200160002081905550836001600160a01b0316856001600160a01b0316876001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611440578181015183820152602001611428565b50505050905090810190601f16801561146d5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156114a0578181015183820152602001611488565b50505050905090810190601f1680156114cd5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050565b600081848411156115bf5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561158457818101518382015260200161156c565b50505050905090810190601f1680156115b15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561164b57600080fd5b505afa15801561165f573d6000803e3d6000fd5b505050506040513d602081101561167557600080fd5b505190506001600160a01b038116156117ee57806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561171f578181015183820152602001611707565b50505050905090810190601f16801561174c5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b8381101561177f578181015183820152602001611767565b50505050905090810190601f1680156117ac5780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156117d157600080fd5b505af11580156117e5573d6000803e3d6000fd5b50505050611842565b811561184257611806866001600160a01b0316611bb7565b156118425760405162461bcd60e51b815260040180806020018281038252604d815260200180611d0b604d913960600191505060405180910390fd5b5050505050505050565b6001600160a01b0386166118915760405162461bcd60e51b8152600401808060200182810382526022815260200180611c5b6022913960400191505060405180910390fd5b6001600160a01b0385166118ec576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b60006118f6610ffa565b90506119068188888888886110ea565b611914818888888888611317565b61130e818888888888886115c7565b6001600160a01b0384166119685760405162461bcd60e51b8152600401808060200182810382526022815260200180611ca46022913960400191505060405180910390fd5b6000611972610ffa565b90506119818186600087610fce565b611990818660008787876110ea565b6119cd84604051806060016040528060238152602001611df7602391396001600160a01b0388166000908152602081905260409020549190611530565b6001600160a01b0386166000908152602081905260409020556001546119f39085611bf3565b600181905550846001600160a01b0316816001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611a78578181015183820152602001611a60565b50505050905090810190601f168015611aa55780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611ad8578181015183820152602001611ac0565b50505050905090810190601f168015611b055780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516000916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b600082820183811015610df8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611beb57508115155b949350505050565b6000610df883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061153056fe4552433737373a20617070726f76652066726f6d20746865207a65726f20616464726573734552433737373a2073656e642066726f6d20746865207a65726f20616464726573734552433737373a207472616e7366657220616d6f756e7420657863656564732062616c616e63654552433737373a206275726e2066726f6d20746865207a65726f20616464726573734552433737373a20617574686f72697a696e672073656c66206173206f70657261746f724552433737373a207265766f6b696e672073656c66206173206f70657261746f724552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e744552433737373a207472616e7366657220746f20746865207a65726f20616464726573734552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f7220666f7220686f6c6465724552433737373a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654552433737373a207472616e736665722066726f6d20746865207a65726f20616464726573734552433737373a206275726e20616d6f756e7420657863656564732062616c616e63654552433737373a20617070726f766520746f20746865207a65726f2061646472657373a2646970667358221220db7f9bdf4aabd02a9da23e4b332acc97837dc81c9a8e54f8e5830b3584c21f2864736f6c634300060c0033"},"devdoc":{"details":"Implementation of the {IERC777} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. Support for ERC20 is included in this contract, as specified by the EIP: both the ERC777 and ERC20 interfaces can be safely used when interacting with it. Both {IERC777-Sent} and {IERC20-Transfer} events are emitted on token movements. Additionally, the {IERC777-granularity} value is hard-coded to `1`, meaning that there are no special restrictions in the amount of tokens that created, moved, or destroyed. This makes integration with ERC20 applications seamless.","kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}. Note that operator and allowance concepts are orthogonal: operators may not have allowance, and accounts with allowance may not be operators themselves."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Note that accounts cannot have allowance issued by their operators."},"authorizeOperator(address)":{"details":"See {IERC777-authorizeOperator}."},"balanceOf(address)":{"details":"Returns the amount of tokens owned by an account (`tokenHolder`)."},"burn(uint256,bytes)":{"details":"See {IERC777-burn}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."},"constructor":{"details":"`defaultOperators` may be an empty array."},"decimals()":{"details":"See {ERC20-decimals}. Always returns 18, as per the [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility)."},"defaultOperators()":{"details":"See {IERC777-defaultOperators}."},"granularity()":{"details":"See {IERC777-granularity}. This implementation always returns `1`."},"isOperatorFor(address,address)":{"details":"See {IERC777-isOperatorFor}."},"name()":{"details":"See {IERC777-name}."},"operatorBurn(address,uint256,bytes,bytes)":{"details":"See {IERC777-operatorBurn}. Emits {Burned} and {IERC20-Transfer} events."},"operatorSend(address,address,uint256,bytes,bytes)":{"details":"See {IERC777-operatorSend}. Emits {Sent} and {IERC20-Transfer} events."},"revokeOperator(address)":{"details":"See {IERC777-revokeOperator}."},"send(address,uint256,bytes)":{"details":"See {IERC777-send}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."},"symbol()":{"details":"See {IERC777-symbol}."},"totalSupply()":{"details":"See {IERC777-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient} interface if it is a contract. Also emits a {Sent} event."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Note that operator and allowance concepts are orthogonal: operators cannot call `transferFrom` (unless they have allowance), and accounts with allowance cannot call `operatorSend` (unless they are operators). Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","authorizeOperator(address)":"0x959b8c3f","balanceOf(address)":"0x70a08231","burn(uint256,bytes)":"0xfe9d9303","decimals()":"0x313ce567","defaultOperators()":"0x06e48538","granularity()":"0x556f0dc7","isOperatorFor(address,address)":"0xd95b6371","name()":"0x06fdde03","operatorBurn(address,uint256,bytes,bytes)":"0xfc673c4f","operatorSend(address,address,uint256,bytes,bytes)":"0x62ad1b83","revokeOperator(address)":"0xfad8b32a","send(address,uint256,bytes)":"0x9bd9bbc6","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063959b8c3f116100a2578063d95b637111610071578063d95b63711461052a578063dd62ed3e14610558578063fad8b32a14610586578063fc673c4f146105ac578063fe9d9303146106ea57610116565b8063959b8c3f1461041757806395d89b411461043d5780639bd9bbc614610445578063a9059cbb146104fe57610116565b806323b872dd116100e957806323b872dd1461024a578063313ce56714610280578063556f0dc71461029e57806362ad1b83146102a657806370a08231146103f157610116565b806306e485381461011b57806306fdde0314610173578063095ea7b3146101f057806318160ddd14610230575b600080fd5b610123610795565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561015f578181015183820152602001610147565b505050509050019250505060405180910390f35b61017b6107f7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b557818101518382015260200161019d565b50505050905090810190601f1680156101e25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61021c6004803603604081101561020657600080fd5b506001600160a01b038135169060200135610881565b604080519115158252519081900360200190f35b6102386108a3565b60408051918252519081900360200190f35b61021c6004803603606081101561026057600080fd5b506001600160a01b038135811691602081013590911690604001356108a9565b610288610a26565b6040805160ff9092168252519081900360200190f35b610238610a2b565b6103ef600480360360a08110156102bc57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156102f657600080fd5b82018360208201111561030857600080fd5b803590602001918460018302840111600160201b8311171561032957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561037b57600080fd5b82018360208201111561038d57600080fd5b803590602001918460018302840111600160201b831117156103ae57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a30945050505050565b005b6102386004803603602081101561040757600080fd5b50356001600160a01b0316610a92565b6103ef6004803603602081101561042d57600080fd5b50356001600160a01b0316610aad565b61017b610bf9565b6103ef6004803603606081101561045b57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561048a57600080fd5b82018360208201111561049c57600080fd5b803590602001918460018302840111600160201b831117156104bd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610c5a945050505050565b61021c6004803603604081101561051457600080fd5b506001600160a01b038135169060200135610c84565b61021c6004803603604081101561054057600080fd5b506001600160a01b0381358116916020013516610d5d565b6102386004803603604081101561056e57600080fd5b506001600160a01b0381358116916020013516610dff565b6103ef6004803603602081101561059c57600080fd5b50356001600160a01b0316610e2a565b6103ef600480360360808110156105c257600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156105f157600080fd5b82018360208201111561060357600080fd5b803590602001918460018302840111600160201b8311171561062457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561067657600080fd5b82018360208201111561068857600080fd5b803590602001918460018302840111600160201b831117156106a957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f76945050505050565b6103ef6004803603604081101561070057600080fd5b81359190810190604081016020820135600160201b81111561072157600080fd5b82018360208201111561073357600080fd5b803590602001918460018302840111600160201b8311171561075457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610fd4945050505050565b606060048054806020026020016040519081016040528092919081815260200182805480156107ed57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107cf575b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156107ed5780601f10610855576101008083540402835291602001916107ed565b820191906000526020600020905b81548152906001019060200180831161086357509395945050505050565b60008061088c610ffa565b9050610899818585610ffe565b5060019392505050565b60015490565b60006001600160a01b0383166108f05760405162461bcd60e51b8152600401808060200182810382526024815260200180611d586024913960400191505060405180910390fd5b6001600160a01b0384166109355760405162461bcd60e51b8152600401808060200182810382526026815260200180611dd16026913960400191505060405180910390fd5b600061093f610ffa565b905061096d8186868660405180602001604052806000815250604051806020016040528060008152506110ea565b610999818686866040518060200160405280600081525060405180602001604052806000815250611317565b6109ed85826109e886604051806060016040528060298152602001611da8602991396001600160a01b03808c166000908152600860209081526040808320938b16835292905220549190611530565b610ffe565b610a1b81868686604051806020016040528060008152506040518060200160405280600081525060006115c7565b506001949350505050565b601290565b600190565b610a41610a3b610ffa565b86610d5d565b610a7c5760405162461bcd60e51b815260040180806020018281038252602c815260200180611d7c602c913960400191505060405180910390fd5b610a8b8585858585600161184c565b5050505050565b6001600160a01b031660009081526020819052604090205490565b806001600160a01b0316610abf610ffa565b6001600160a01b03161415610b055760405162461bcd60e51b8152600401808060200182810382526024815260200180611cc66024913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610b685760076000610b32610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff19169055610baf565b600160066000610b76610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790555b610bb7610ffa565b6001600160a01b0316816001600160a01b03167ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f960405160405180910390a350565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107ed5780601f10610855576101008083540402835291602001916107ed565b610c7f610c65610ffa565b84848460405180602001604052806000815250600161184c565b505050565b60006001600160a01b038316610ccb5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d586024913960400191505060405180910390fd5b6000610cd5610ffa565b9050610d038182868660405180602001604052806000815250604051806020016040528060008152506110ea565b610d2f818286866040518060200160405280600081525060405180602001604052806000815250611317565b61089981828686604051806020016040528060008152506040518060200160405280600081525060006115c7565b6000816001600160a01b0316836001600160a01b03161480610dc857506001600160a01b03831660009081526005602052604090205460ff168015610dc857506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b80610df857506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610e32610ffa565b6001600160a01b0316816001600160a01b03161415610e825760405162461bcd60e51b8152600401808060200182810382526021815260200180611cea6021913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610eee57600160076000610eb1610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff1916911515919091179055610f2c565b60066000610efa610ffa565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff191690555b610f34610ffa565b6001600160a01b0316816001600160a01b03167f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa160405160405180910390a350565b610f87610f81610ffa565b85610d5d565b610fc25760405162461bcd60e51b815260040180806020018281038252602c815260200180611d7c602c913960400191505060405180910390fd5b610fce84848484611923565b50505050565b610ff6610fdf610ffa565b838360405180602001604052806000815250611923565b5050565b3390565b6001600160a01b0383166110435760405162461bcd60e51b8152600401808060200182810382526025815260200180611c366025913960400191505060405180910390fd5b6001600160a01b0382166110885760405162461bcd60e51b8152600401808060200182810382526023815260200180611e1a6023913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561116e57600080fd5b505afa158015611182573d6000803e3d6000fd5b505050506040513d602081101561119857600080fd5b505190506001600160a01b0381161561130e57806001600160a01b03166375ab97828888888888886040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561124357818101518382015260200161122b565b50505050905090810190601f1680156112705780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156112a357818101518382015260200161128b565b50505050905090810190601f1680156112d05780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156112f557600080fd5b505af1158015611309573d6000803e3d6000fd5b505050505b50505050505050565b61132386868686610fce565b61136083604051806060016040528060278152602001611c7d602791396001600160a01b0388166000908152602081905260409020549190611530565b6001600160a01b03808716600090815260208190526040808220939093559086168152205461138f9084611b5d565b600080866001600160a01b03166001600160a01b0316815260200190815260200160002081905550836001600160a01b0316856001600160a01b0316876001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611440578181015183820152602001611428565b50505050905090810190601f16801561146d5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156114a0578181015183820152602001611488565b50505050905090810190601f1680156114cd5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050565b600081848411156115bf5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561158457818101518382015260200161156c565b50505050905090810190601f1680156115b15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561164b57600080fd5b505afa15801561165f573d6000803e3d6000fd5b505050506040513d602081101561167557600080fd5b505190506001600160a01b038116156117ee57806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561171f578181015183820152602001611707565b50505050905090810190601f16801561174c5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b8381101561177f578181015183820152602001611767565b50505050905090810190601f1680156117ac5780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156117d157600080fd5b505af11580156117e5573d6000803e3d6000fd5b50505050611842565b811561184257611806866001600160a01b0316611bb7565b156118425760405162461bcd60e51b815260040180806020018281038252604d815260200180611d0b604d913960600191505060405180910390fd5b5050505050505050565b6001600160a01b0386166118915760405162461bcd60e51b8152600401808060200182810382526022815260200180611c5b6022913960400191505060405180910390fd5b6001600160a01b0385166118ec576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b60006118f6610ffa565b90506119068188888888886110ea565b611914818888888888611317565b61130e818888888888886115c7565b6001600160a01b0384166119685760405162461bcd60e51b8152600401808060200182810382526022815260200180611ca46022913960400191505060405180910390fd5b6000611972610ffa565b90506119818186600087610fce565b611990818660008787876110ea565b6119cd84604051806060016040528060238152602001611df7602391396001600160a01b0388166000908152602081905260409020549190611530565b6001600160a01b0386166000908152602081905260409020556001546119f39085611bf3565b600181905550846001600160a01b0316816001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611a78578181015183820152602001611a60565b50505050905090810190601f168015611aa55780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611ad8578181015183820152602001611ac0565b50505050905090810190601f168015611b055780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516000916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b600082820183811015610df8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611beb57508115155b949350505050565b6000610df883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061153056fe4552433737373a20617070726f76652066726f6d20746865207a65726f20616464726573734552433737373a2073656e642066726f6d20746865207a65726f20616464726573734552433737373a207472616e7366657220616d6f756e7420657863656564732062616c616e63654552433737373a206275726e2066726f6d20746865207a65726f20616464726573734552433737373a20617574686f72697a696e672073656c66206173206f70657261746f724552433737373a207265766f6b696e672073656c66206173206f70657261746f724552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e744552433737373a207472616e7366657220746f20746865207a65726f20616464726573734552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f7220666f7220686f6c6465724552433737373a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654552433737373a207472616e736665722066726f6d20746865207a65726f20616464726573734552433737373a206275726e20616d6f756e7420657863656564732062616c616e63654552433737373a20617070726f766520746f20746865207a65726f2061646472657373a2646970667358221220db7f9bdf4aabd02a9da23e4b332acc97837dc81c9a8e54f8e5830b3584c21f2864736f6c634300060c0033"},"sourceId":"contracts/token/ERC777/ERC777.sol","sourcemap":"1049:16252:100:-:0;;;2645:623;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2645:623:100;;;;;;;;;;-1:-1:-1;2645:623:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2645:623:100;;;;;;;;;;-1:-1:-1;2645:623:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2645:623:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;2645:623:100;;;;;;-1:-1:-1;;2781:12:100;;;;-1:-1:-1;2781:5:100;;-1:-1:-1;2781:12:100;;;;;:::i;:::-;-1:-1:-1;2803:16:100;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;2830:41:100;;;;:22;;:41;;;;;:::i;:::-;;2886:9;2881:136;2905:22;:29;2901:33;;2881:136;;;3002:4;2955:17;:44;2973:22;2996:1;2973:25;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2973:25:100;2955:44;;;;;;;;;;;;:51;;-1:-1:-1;;2955:51:100;;;;;;;;;;-1:-1:-1;2936:3:100;2881:136;;;-1:-1:-1;3058:97:100;;;-1:-1:-1;;;3058:97:100;;3108:4;3058:97;;;;;;3115:24;3058:97;;;;;;;;;;1235:42;;3058:41;;:97;;;;;-1:-1:-1;;3058:97:100;;;;;;;-1:-1:-1;1235:42:100;3058:97;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3165:96:100;;;-1:-1:-1;;;3165:96:100;;3215:4;3165:96;;;;;;3222:23;3165:96;;;;;;;;;;1235:42;;-1:-1:-1;3165:41:100;;-1:-1:-1;3165:96:100;;;;;-1:-1:-1;;3165:96:100;;;;;;;-1:-1:-1;1235:42:100;3165:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2645:623;;;1049:16252;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1049:16252:100;;;-1:-1:-1;1049:16252:100;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1049:16252:100;-1:-1:-1;;;;;1049:16252:100;;;;;;;;;;;-1:-1:-1;1049:16252:100;;;;;;;-1:-1:-1;1049:16252:100;;;-1:-1:-1;1049:16252:100;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1049:16252:100;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC777Mock":{"abi":[{"inputs":[{"internalType":"address","name":"initialHolder","type":"address"},{"internalType":"uint256","name":"initialBalance","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address[]","name":"defaultOperators","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"AuthorizedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"RevokedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Sent","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"},{"inputs":[{"internalType":"address","name":"holder","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approveInternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"authorizeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"defaultOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"granularity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"isOperatorFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"mintInternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"revokeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","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"}],"contractName":"ERC777Mock","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b5060405162002dc838038062002dc8833981810160405260a08110156200003757600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200006357600080fd5b9083019060208201858111156200007957600080fd5b82516401000000008111828201881017156200009457600080fd5b82525081516020918201929091019080838360005b83811015620000c3578181015183820152602001620000a9565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011557600080fd5b9083019060208201858111156200012b57600080fd5b82516401000000008111828201881017156200014657600080fd5b82525081516020918201929091019080838360005b83811015620001755781810151838201526020016200015b565b50505050905090810190601f168015620001a35780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620001c757600080fd5b908301906020820185811115620001dd57600080fd5b8251866020820283011164010000000082111715620001fb57600080fd5b82525081516020918201928201910280838360005b838110156200022a57818101518382015260200162000210565b50505050905001604052505050828282826002908051906020019062000252929190620009fd565b50815162000268906003906020850190620009fd565b5080516200027e90600490602084019062000a82565b5060005b600454811015620002de5760016005600060048481548110620002a157fe5b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560010162000282565b50604080516329965a1d60e01b815230600482018190527fac7fbab5f54a3ca8194167523c6753bfeb96a445279294b6125b68cce2177054602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad24916329965a1d91606480830192600092919082900301818387803b1580156200035f57600080fd5b505af115801562000374573d6000803e3d6000fd5b5050604080516329965a1d60e01b815230600482018190527faea199e31a596269b42cdafd93407f14436db6e4cad65417994c2eb37381e05a602483015260448201529051731820a4b7618bde71dce8cdc73aab6c95905fad2493506329965a1d9250606480830192600092919082900301818387803b158015620003f857600080fd5b505af11580156200040d573d6000803e3d6000fd5b5050505050505062000446858560405180602001604052806000815250604051806020016040528060008152506200045160201b60201c565b505050505062000b20565b6001600160a01b038416620004ad576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000620004b9620006b2565b9050620004ca8160008787620006b6565b620004e684600154620006bc60201b6200119b1790919060201c565b6001556001600160a01b03851660009081526020818152604090912054620005199186906200119b620006bc821b17901c565b6001600160a01b038616600090815260208190526040812091909155620005489082908787878760016200071e565b846001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015620005c9578181015183820152602001620005af565b50505050905090810190601f168015620005f75780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156200062c57818101518382015260200162000612565b50505050905090810190601f1680156200065a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516001600160a01b038716916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b3390565b50505050565b60008282018381101562000717576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b158015620007a357600080fd5b505afa158015620007b8573d6000803e3d6000fd5b505050506040513d6020811015620007cf57600080fd5b505190506001600160a01b038116156200095257806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b838110156200087c57818101518382015260200162000862565b50505050905090810190601f168015620008aa5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015620008df578181015183820152602001620008c5565b50505050905090810190601f1680156200090d5780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b1580156200093357600080fd5b505af115801562000948573d6000803e3d6000fd5b50505050620009b6565b8115620009b65762000978866001600160a01b0316620009c060201b620011f51760201c565b15620009b65760405162461bcd60e51b815260040180806020018281038252604d81526020018062002d7b604d913960600191505060405180910390fd5b5050505050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590620009f557508115155b949350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1062000a4057805160ff191683800117855562000a70565b8280016001018555821562000a70579182015b8281111562000a7057825182559160200191906001019062000a53565b5062000a7e92915062000ae8565b5090565b82805482825590600052602060002090810192821562000ada579160200282015b8281111562000ada57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000aa3565b5062000a7e92915062000aff565b5b8082111562000a7e576000815560010162000ae9565b5b8082111562000a7e5780546001600160a01b031916815560010162000b00565b61224b8062000b306000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063959b8c3f116100ad578063d95b637111610071578063d95b6371146106b4578063dd62ed3e146106e2578063fad8b32a14610710578063fc673c4f14610736578063fe9d9303146108745761012c565b8063959b8c3f1461046357806395d89b41146104895780639bd9bbc614610491578063a9059cbb1461054a578063b1f0b5be146105765761012c565b8063313ce567116100f4578063313ce56714610296578063556f0dc7146102b457806356189cb4146102bc57806362ad1b83146102f457806370a082311461043d5761012c565b806306e485381461013157806306fdde0314610189578063095ea7b31461020657806318160ddd1461024657806323b872dd14610260575b600080fd5b61013961091f565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561017557818101518382015260200161015d565b505050509050019250505060405180910390f35b610191610981565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cb5781810151838201526020016101b3565b50505050905090810190601f1680156101f85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603604081101561021c57600080fd5b506001600160a01b038135169060200135610a0b565b604080519115158252519081900360200190f35b61024e610a2d565b60408051918252519081900360200190f35b6102326004803603606081101561027657600080fd5b506001600160a01b03813581169160208101359091169060400135610a33565b61029e610bb0565b6040805160ff9092168252519081900360200190f35b61024e610bb5565b6102f2600480360360608110156102d257600080fd5b506001600160a01b03813581169160208101359091169060400135610bba565b005b6102f2600480360360a081101561030a57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460018302840111600160201b8311171561037757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156103c957600080fd5b8201836020820111156103db57600080fd5b803590602001918460018302840111600160201b831117156103fc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bca945050505050565b61024e6004803603602081101561045357600080fd5b50356001600160a01b0316610c2c565b6102f26004803603602081101561047957600080fd5b50356001600160a01b0316610c47565b610191610d93565b6102f2600480360360608110156104a757600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156104d657600080fd5b8201836020820111156104e857600080fd5b803590602001918460018302840111600160201b8311171561050957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610df4945050505050565b6102326004803603604081101561056057600080fd5b506001600160a01b038135169060200135610e19565b6102f26004803603608081101561058c57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156105bb57600080fd5b8201836020820111156105cd57600080fd5b803590602001918460018302840111600160201b831117156105ee57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561064057600080fd5b82018360208201111561065257600080fd5b803590602001918460018302840111600160201b8311171561067357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610ef2945050505050565b610232600480360360408110156106ca57600080fd5b506001600160a01b0381358116916020013516610f04565b61024e600480360360408110156106f857600080fd5b506001600160a01b0381358116916020013516610fa6565b6102f26004803603602081101561072657600080fd5b50356001600160a01b0316610fd1565b6102f26004803603608081101561074c57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561077b57600080fd5b82018360208201111561078d57600080fd5b803590602001918460018302840111600160201b831117156107ae57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561080057600080fd5b82018360208201111561081257600080fd5b803590602001918460018302840111600160201b8311171561083357600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061111d945050505050565b6102f26004803603604081101561088a57600080fd5b81359190810190604081016020820135600160201b8111156108ab57600080fd5b8201836020820111156108bd57600080fd5b803590602001918460018302840111600160201b831117156108de57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611175945050505050565b6060600480548060200260200160405190810160405280929190818152602001828054801561097757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610959575b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156109775780601f106109df57610100808354040283529160200191610977565b820191906000526020600020905b8154815290600101906020018083116109ed57509395945050505050565b600080610a16611231565b9050610a23818585611235565b5060019392505050565b60015490565b60006001600160a01b038316610a7a5760405162461bcd60e51b81526004018080602001828103825260248152602001806121316024913960400191505060405180910390fd5b6001600160a01b038416610abf5760405162461bcd60e51b81526004018080602001828103825260268152602001806121aa6026913960400191505060405180910390fd5b6000610ac9611231565b9050610af7818686866040518060200160405280600081525060405180602001604052806000815250611321565b610b2381868686604051806020016040528060008152506040518060200160405280600081525061154e565b610b778582610b7286604051806060016040528060298152602001612181602991396001600160a01b03808c166000908152600860209081526040808320938b16835292905220549190611767565b611235565b610ba581868686604051806020016040528060008152506040518060200160405280600081525060006117fe565b506001949350505050565b601290565b600190565b610bc5838383611235565b505050565b610bdb610bd5611231565b86610f04565b610c165760405162461bcd60e51b815260040180806020018281038252602c815260200180612155602c913960400191505060405180910390fd5b610c2585858585856001611a83565b5050505050565b6001600160a01b031660009081526020819052604090205490565b806001600160a01b0316610c59611231565b6001600160a01b03161415610c9f5760405162461bcd60e51b815260040180806020018281038252602481526020018061209f6024913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610d025760076000610ccc611231565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff19169055610d49565b600160066000610d10611231565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790555b610d51611231565b6001600160a01b0316816001600160a01b03167ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f960405160405180910390a350565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109775780601f106109df57610100808354040283529160200191610977565b610bc5610dff611231565b848484604051806020016040528060008152506001611a83565b60006001600160a01b038316610e605760405162461bcd60e51b81526004018080602001828103825260248152602001806121316024913960400191505060405180910390fd5b6000610e6a611231565b9050610e98818286866040518060200160405280600081525060405180602001604052806000815250611321565b610ec481828686604051806020016040528060008152506040518060200160405280600081525061154e565b610a2381828686604051806020016040528060008152506040518060200160405280600081525060006117fe565b610efe84848484611b5a565b50505050565b6000816001600160a01b0316836001600160a01b03161480610f6f57506001600160a01b03831660009081526005602052604090205460ff168015610f6f57506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b80610f9f57506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610fd9611231565b6001600160a01b0316816001600160a01b031614156110295760405162461bcd60e51b81526004018080602001828103825260218152602001806120c36021913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff161561109557600160076000611058611231565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790556110d3565b600660006110a1611231565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff191690555b6110db611231565b6001600160a01b0316816001600160a01b03167f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa160405160405180910390a350565b61112e611128611231565b85610f04565b6111695760405162461bcd60e51b815260040180806020018281038252602c815260200180612155602c913960400191505060405180910390fd5b610efe84848484611d92565b611197611180611231565b838360405180602001604052806000815250611d92565b5050565b600082820183811015610f9f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061122957508115155b949350505050565b3390565b6001600160a01b03831661127a5760405162461bcd60e51b815260040180806020018281038252602581526020018061200f6025913960400191505060405180910390fd5b6001600160a01b0382166112bf5760405162461bcd60e51b81526004018080602001828103825260238152602001806121f36023913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b1580156113a557600080fd5b505afa1580156113b9573d6000803e3d6000fd5b505050506040513d60208110156113cf57600080fd5b505190506001600160a01b0381161561154557806001600160a01b03166375ab97828888888888886040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561147a578181015183820152602001611462565b50505050905090810190601f1680156114a75780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156114da5781810151838201526020016114c2565b50505050905090810190601f1680156115075780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b15801561152c57600080fd5b505af1158015611540573d6000803e3d6000fd5b505050505b50505050505050565b61155a86868686610efe565b61159783604051806060016040528060278152602001612056602791396001600160a01b0388166000908152602081905260409020549190611767565b6001600160a01b0380871660009081526020819052604080822093909355908616815220546115c6908461119b565b600080866001600160a01b03166001600160a01b0316815260200190815260200160002081905550836001600160a01b0316856001600160a01b0316876001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561167757818101518382015260200161165f565b50505050905090810190601f1680156116a45780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156116d75781810151838201526020016116bf565b50505050905090810190601f1680156117045780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050565b600081848411156117f65760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117bb5781810151838201526020016117a3565b50505050905090810190601f1680156117e85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561188257600080fd5b505afa158015611896573d6000803e3d6000fd5b505050506040513d60208110156118ac57600080fd5b505190506001600160a01b03811615611a2557806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561195657818101518382015260200161193e565b50505050905090810190601f1680156119835780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156119b657818101518382015260200161199e565b50505050905090810190601f1680156119e35780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b158015611a0857600080fd5b505af1158015611a1c573d6000803e3d6000fd5b50505050611a79565b8115611a7957611a3d866001600160a01b03166111f5565b15611a795760405162461bcd60e51b815260040180806020018281038252604d8152602001806120e4604d913960600191505060405180910390fd5b5050505050505050565b6001600160a01b038616611ac85760405162461bcd60e51b81526004018080602001828103825260228152602001806120346022913960400191505060405180910390fd5b6001600160a01b038516611b23576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000611b2d611231565b9050611b3d818888888888611321565b611b4b81888888888861154e565b611545818888888888886117fe565b6001600160a01b038416611bb5576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000611bbf611231565b9050611bce8160008787610efe565b600154611bdb908561119b565b6001556001600160a01b038516600090815260208190526040902054611c01908561119b565b6001600160a01b038616600090815260208190526040812091909155611c2e9082908787878760016117fe565b846001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611cad578181015183820152602001611c95565b50505050905090810190601f168015611cda5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611d0d578181015183820152602001611cf5565b50505050905090810190601f168015611d3a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516001600160a01b038716916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6001600160a01b038416611dd75760405162461bcd60e51b815260040180806020018281038252602281526020018061207d6022913960400191505060405180910390fd5b6000611de1611231565b9050611df08186600087610efe565b611dff81866000878787611321565b611e3c846040518060600160405280602381526020016121d0602391396001600160a01b0388166000908152602081905260409020549190611767565b6001600160a01b038616600090815260208190526040902055600154611e629085611fcc565b600181905550846001600160a01b0316816001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611ee7578181015183820152602001611ecf565b50505050905090810190601f168015611f145780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611f47578181015183820152602001611f2f565b50505050905090810190601f168015611f745780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516000916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6000610f9f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061176756fe4552433737373a20617070726f76652066726f6d20746865207a65726f20616464726573734552433737373a2073656e642066726f6d20746865207a65726f20616464726573734552433737373a207472616e7366657220616d6f756e7420657863656564732062616c616e63654552433737373a206275726e2066726f6d20746865207a65726f20616464726573734552433737373a20617574686f72697a696e672073656c66206173206f70657261746f724552433737373a207265766f6b696e672073656c66206173206f70657261746f724552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e744552433737373a207472616e7366657220746f20746865207a65726f20616464726573734552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f7220666f7220686f6c6465724552433737373a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654552433737373a207472616e736665722066726f6d20746865207a65726f20616464726573734552433737373a206275726e20616d6f756e7420657863656564732062616c616e63654552433737373a20617070726f766520746f20746865207a65726f2061646472657373a26469706673582212203f2081b78b3e2c86cdb7119fa5b1a6abc51d4c602d0c37ee687db578d601d09064736f6c634300060c00334552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e74"},"devdoc":{"kind":"dev","methods":{"allowance(address,address)":{"details":"See {IERC20-allowance}. Note that operator and allowance concepts are orthogonal: operators may not have allowance, and accounts with allowance may not be operators themselves."},"approve(address,uint256)":{"details":"See {IERC20-approve}. Note that accounts cannot have allowance issued by their operators."},"authorizeOperator(address)":{"details":"See {IERC777-authorizeOperator}."},"balanceOf(address)":{"details":"Returns the amount of tokens owned by an account (`tokenHolder`)."},"burn(uint256,bytes)":{"details":"See {IERC777-burn}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."},"decimals()":{"details":"See {ERC20-decimals}. Always returns 18, as per the [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility)."},"defaultOperators()":{"details":"See {IERC777-defaultOperators}."},"granularity()":{"details":"See {IERC777-granularity}. This implementation always returns `1`."},"isOperatorFor(address,address)":{"details":"See {IERC777-isOperatorFor}."},"name()":{"details":"See {IERC777-name}."},"operatorBurn(address,uint256,bytes,bytes)":{"details":"See {IERC777-operatorBurn}. Emits {Burned} and {IERC20-Transfer} events."},"operatorSend(address,address,uint256,bytes,bytes)":{"details":"See {IERC777-operatorSend}. Emits {Sent} and {IERC20-Transfer} events."},"revokeOperator(address)":{"details":"See {IERC777-revokeOperator}."},"send(address,uint256,bytes)":{"details":"See {IERC777-send}. Also emits a {IERC20-Transfer} event for ERC20 compatibility."},"symbol()":{"details":"See {IERC777-symbol}."},"totalSupply()":{"details":"See {IERC777-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient} interface if it is a contract. Also emits a {Sent} event."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Note that operator and allowance concepts are orthogonal: operators cannot call `transferFrom` (unless they have allowance), and accounts with allowance cannot call `operatorSend` (unless they are operators). Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","approveInternal(address,address,uint256)":"0x56189cb4","authorizeOperator(address)":"0x959b8c3f","balanceOf(address)":"0x70a08231","burn(uint256,bytes)":"0xfe9d9303","decimals()":"0x313ce567","defaultOperators()":"0x06e48538","granularity()":"0x556f0dc7","isOperatorFor(address,address)":"0xd95b6371","mintInternal(address,uint256,bytes,bytes)":"0xb1f0b5be","name()":"0x06fdde03","operatorBurn(address,uint256,bytes,bytes)":"0xfc673c4f","operatorSend(address,address,uint256,bytes,bytes)":"0x62ad1b83","revokeOperator(address)":"0xfad8b32a","send(address,uint256,bytes)":"0x9bd9bbc6","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063959b8c3f116100ad578063d95b637111610071578063d95b6371146106b4578063dd62ed3e146106e2578063fad8b32a14610710578063fc673c4f14610736578063fe9d9303146108745761012c565b8063959b8c3f1461046357806395d89b41146104895780639bd9bbc614610491578063a9059cbb1461054a578063b1f0b5be146105765761012c565b8063313ce567116100f4578063313ce56714610296578063556f0dc7146102b457806356189cb4146102bc57806362ad1b83146102f457806370a082311461043d5761012c565b806306e485381461013157806306fdde0314610189578063095ea7b31461020657806318160ddd1461024657806323b872dd14610260575b600080fd5b61013961091f565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561017557818101518382015260200161015d565b505050509050019250505060405180910390f35b610191610981565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101cb5781810151838201526020016101b3565b50505050905090810190601f1680156101f85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102326004803603604081101561021c57600080fd5b506001600160a01b038135169060200135610a0b565b604080519115158252519081900360200190f35b61024e610a2d565b60408051918252519081900360200190f35b6102326004803603606081101561027657600080fd5b506001600160a01b03813581169160208101359091169060400135610a33565b61029e610bb0565b6040805160ff9092168252519081900360200190f35b61024e610bb5565b6102f2600480360360608110156102d257600080fd5b506001600160a01b03813581169160208101359091169060400135610bba565b005b6102f2600480360360a081101561030a57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561034457600080fd5b82018360208201111561035657600080fd5b803590602001918460018302840111600160201b8311171561037757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156103c957600080fd5b8201836020820111156103db57600080fd5b803590602001918460018302840111600160201b831117156103fc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bca945050505050565b61024e6004803603602081101561045357600080fd5b50356001600160a01b0316610c2c565b6102f26004803603602081101561047957600080fd5b50356001600160a01b0316610c47565b610191610d93565b6102f2600480360360608110156104a757600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156104d657600080fd5b8201836020820111156104e857600080fd5b803590602001918460018302840111600160201b8311171561050957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610df4945050505050565b6102326004803603604081101561056057600080fd5b506001600160a01b038135169060200135610e19565b6102f26004803603608081101561058c57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156105bb57600080fd5b8201836020820111156105cd57600080fd5b803590602001918460018302840111600160201b831117156105ee57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561064057600080fd5b82018360208201111561065257600080fd5b803590602001918460018302840111600160201b8311171561067357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610ef2945050505050565b610232600480360360408110156106ca57600080fd5b506001600160a01b0381358116916020013516610f04565b61024e600480360360408110156106f857600080fd5b506001600160a01b0381358116916020013516610fa6565b6102f26004803603602081101561072657600080fd5b50356001600160a01b0316610fd1565b6102f26004803603608081101561074c57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b81111561077b57600080fd5b82018360208201111561078d57600080fd5b803590602001918460018302840111600160201b831117156107ae57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561080057600080fd5b82018360208201111561081257600080fd5b803590602001918460018302840111600160201b8311171561083357600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061111d945050505050565b6102f26004803603604081101561088a57600080fd5b81359190810190604081016020820135600160201b8111156108ab57600080fd5b8201836020820111156108bd57600080fd5b803590602001918460018302840111600160201b831117156108de57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611175945050505050565b6060600480548060200260200160405190810160405280929190818152602001828054801561097757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610959575b5050505050905090565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156109775780601f106109df57610100808354040283529160200191610977565b820191906000526020600020905b8154815290600101906020018083116109ed57509395945050505050565b600080610a16611231565b9050610a23818585611235565b5060019392505050565b60015490565b60006001600160a01b038316610a7a5760405162461bcd60e51b81526004018080602001828103825260248152602001806121316024913960400191505060405180910390fd5b6001600160a01b038416610abf5760405162461bcd60e51b81526004018080602001828103825260268152602001806121aa6026913960400191505060405180910390fd5b6000610ac9611231565b9050610af7818686866040518060200160405280600081525060405180602001604052806000815250611321565b610b2381868686604051806020016040528060008152506040518060200160405280600081525061154e565b610b778582610b7286604051806060016040528060298152602001612181602991396001600160a01b03808c166000908152600860209081526040808320938b16835292905220549190611767565b611235565b610ba581868686604051806020016040528060008152506040518060200160405280600081525060006117fe565b506001949350505050565b601290565b600190565b610bc5838383611235565b505050565b610bdb610bd5611231565b86610f04565b610c165760405162461bcd60e51b815260040180806020018281038252602c815260200180612155602c913960400191505060405180910390fd5b610c2585858585856001611a83565b5050505050565b6001600160a01b031660009081526020819052604090205490565b806001600160a01b0316610c59611231565b6001600160a01b03161415610c9f5760405162461bcd60e51b815260040180806020018281038252602481526020018061209f6024913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff1615610d025760076000610ccc611231565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff19169055610d49565b600160066000610d10611231565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790555b610d51611231565b6001600160a01b0316816001600160a01b03167ff4caeb2d6ca8932a215a353d0703c326ec2d81fc68170f320eb2ab49e9df61f960405160405180910390a350565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109775780601f106109df57610100808354040283529160200191610977565b610bc5610dff611231565b848484604051806020016040528060008152506001611a83565b60006001600160a01b038316610e605760405162461bcd60e51b81526004018080602001828103825260248152602001806121316024913960400191505060405180910390fd5b6000610e6a611231565b9050610e98818286866040518060200160405280600081525060405180602001604052806000815250611321565b610ec481828686604051806020016040528060008152506040518060200160405280600081525061154e565b610a2381828686604051806020016040528060008152506040518060200160405280600081525060006117fe565b610efe84848484611b5a565b50505050565b6000816001600160a01b0316836001600160a01b03161480610f6f57506001600160a01b03831660009081526005602052604090205460ff168015610f6f57506001600160a01b0380831660009081526007602090815260408083209387168352929052205460ff16155b80610f9f57506001600160a01b0380831660009081526006602090815260408083209387168352929052205460ff165b9392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b610fd9611231565b6001600160a01b0316816001600160a01b031614156110295760405162461bcd60e51b81526004018080602001828103825260218152602001806120c36021913960400191505060405180910390fd5b6001600160a01b03811660009081526005602052604090205460ff161561109557600160076000611058611231565b6001600160a01b03908116825260208083019390935260409182016000908120918616815292529020805460ff19169115159190911790556110d3565b600660006110a1611231565b6001600160a01b03908116825260208083019390935260409182016000908120918516815292529020805460ff191690555b6110db611231565b6001600160a01b0316816001600160a01b03167f50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa160405160405180910390a350565b61112e611128611231565b85610f04565b6111695760405162461bcd60e51b815260040180806020018281038252602c815260200180612155602c913960400191505060405180910390fd5b610efe84848484611d92565b611197611180611231565b838360405180602001604052806000815250611d92565b5050565b600082820183811015610f9f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061122957508115155b949350505050565b3390565b6001600160a01b03831661127a5760405162461bcd60e51b815260040180806020018281038252602581526020018061200f6025913960400191505060405180910390fd5b6001600160a01b0382166112bf5760405162461bcd60e51b81526004018080602001828103825260238152602001806121f36023913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040805163555ddc6560e11b81526001600160a01b03871660048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b1580156113a557600080fd5b505afa1580156113b9573d6000803e3d6000fd5b505050506040513d60208110156113cf57600080fd5b505190506001600160a01b0381161561154557806001600160a01b03166375ab97828888888888886040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561147a578181015183820152602001611462565b50505050905090810190601f1680156114a75780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156114da5781810151838201526020016114c2565b50505050905090810190601f1680156115075780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b15801561152c57600080fd5b505af1158015611540573d6000803e3d6000fd5b505050505b50505050505050565b61155a86868686610efe565b61159783604051806060016040528060278152602001612056602791396001600160a01b0388166000908152602081905260409020549190611767565b6001600160a01b0380871660009081526020819052604080822093909355908616815220546115c6908461119b565b600080866001600160a01b03166001600160a01b0316815260200190815260200160002081905550836001600160a01b0316856001600160a01b0316876001600160a01b03167f06b541ddaa720db2b10a4d0cdac39b8d360425fc073085fac19bc82614677987868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561167757818101518382015260200161165f565b50505050905090810190601f1680156116a45780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156116d75781810151838201526020016116bf565b50505050905090810190601f1680156117045780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a4836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050565b600081848411156117f65760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117bb5781810151838201526020016117a3565b50505050905090810190601f1680156117e85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6040805163555ddc6560e11b81526001600160a01b03871660048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201529051600091731820a4b7618bde71dce8cdc73aab6c95905fad249163aabbb8ca91604480820192602092909190829003018186803b15801561188257600080fd5b505afa158015611896573d6000803e3d6000fd5b505050506040513d60208110156118ac57600080fd5b505190506001600160a01b03811615611a2557806001600160a01b03166223de298989898989896040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b03168152602001856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561195657818101518382015260200161193e565b50505050905090810190601f1680156119835780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156119b657818101518382015260200161199e565b50505050905090810190601f1680156119e35780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b158015611a0857600080fd5b505af1158015611a1c573d6000803e3d6000fd5b50505050611a79565b8115611a7957611a3d866001600160a01b03166111f5565b15611a795760405162461bcd60e51b815260040180806020018281038252604d8152602001806120e4604d913960600191505060405180910390fd5b5050505050505050565b6001600160a01b038616611ac85760405162461bcd60e51b81526004018080602001828103825260228152602001806120346022913960400191505060405180910390fd5b6001600160a01b038516611b23576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a2073656e6420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000611b2d611231565b9050611b3d818888888888611321565b611b4b81888888888861154e565b611545818888888888886117fe565b6001600160a01b038416611bb5576040805162461bcd60e51b815260206004820181905260248201527f4552433737373a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6000611bbf611231565b9050611bce8160008787610efe565b600154611bdb908561119b565b6001556001600160a01b038516600090815260208190526040902054611c01908561119b565b6001600160a01b038616600090815260208190526040812091909155611c2e9082908787878760016117fe565b846001600160a01b0316816001600160a01b03167f2fe5be0146f74c5bce36c0b80911af6c7d86ff27e89d5cfa61fc681327954e5d868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611cad578181015183820152602001611c95565b50505050905090810190601f168015611cda5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611d0d578181015183820152602001611cf5565b50505050905090810190601f168015611d3a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516001600160a01b038716916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6001600160a01b038416611dd75760405162461bcd60e51b815260040180806020018281038252602281526020018061207d6022913960400191505060405180910390fd5b6000611de1611231565b9050611df08186600087610efe565b611dff81866000878787611321565b611e3c846040518060600160405280602381526020016121d0602391396001600160a01b0388166000908152602081905260409020549190611767565b6001600160a01b038616600090815260208190526040902055600154611e629085611fcc565b600181905550846001600160a01b0316816001600160a01b03167fa78a9be3a7b862d26933ad85fb11d80ef66b8f972d7cbba06621d583943a4098868686604051808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611ee7578181015183820152602001611ecf565b50505050905090810190601f168015611f145780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611f47578181015183820152602001611f2f565b50505050905090810190601f168015611f745780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a36040805185815290516000916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505050565b6000610f9f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061176756fe4552433737373a20617070726f76652066726f6d20746865207a65726f20616464726573734552433737373a2073656e642066726f6d20746865207a65726f20616464726573734552433737373a207472616e7366657220616d6f756e7420657863656564732062616c616e63654552433737373a206275726e2066726f6d20746865207a65726f20616464726573734552433737373a20617574686f72697a696e672073656c66206173206f70657261746f724552433737373a207265766f6b696e672073656c66206173206f70657261746f724552433737373a20746f6b656e20726563697069656e7420636f6e747261637420686173206e6f20696d706c656d656e74657220666f7220455243373737546f6b656e73526563697069656e744552433737373a207472616e7366657220746f20746865207a65726f20616464726573734552433737373a2063616c6c6572206973206e6f7420616e206f70657261746f7220666f7220686f6c6465724552433737373a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654552433737373a207472616e736665722066726f6d20746865207a65726f20616464726573734552433737373a206275726e20616d6f756e7420657863656564732062616c616e63654552433737373a20617070726f766520746f20746865207a65726f2061646472657373a26469706673582212203f2081b78b3e2c86cdb7119fa5b1a6abc51d4c602d0c37ee687db578d601d09064736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC777Mock.sol","sourcemap":"125:681:48:-:0;;;170:289;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;170:289:48;;;;;;;;;;-1:-1:-1;170:289:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;170:289:48;;;;;;;;;;-1:-1:-1;170:289:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;170:289:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;366:4;372:6;380:16;2789:4:100;2781:5;:12;;;;;;;;;;;;:::i;:::-;-1:-1:-1;2803:16:100;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;2830:41:100;;;;:22;;:41;;;;;:::i;:::-;;2886:9;2881:136;2905:22;:29;2901:33;;2881:136;;;3002:4;2955:17;:44;2973:22;2996:1;2973:25;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2973:25:100;2955:44;;;;;;;;;;;;:51;;-1:-1:-1;;2955:51:100;;;;;;;;;;-1:-1:-1;2936:3:100;2881:136;;;-1:-1:-1;3058:97:100;;;-1:-1:-1;;;3058:97:100;;3108:4;3058:97;;;;;;3115:24;3058:97;;;;;;;;;;1235:42;;3058:41;;:97;;;;;-1:-1:-1;;3058:97:100;;;;;;;-1:-1:-1;1235:42:100;3058:97;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3165:96:100;;;-1:-1:-1;;;3165:96:100;;3215:4;3165:96;;;;;;3222:23;3165:96;;;;;;;;;;1235:42;;-1:-1:-1;3165:41:100;;-1:-1:-1;3165:96:100;;;;;-1:-1:-1;;3165:96:100;;;;;;;-1:-1:-1;1235:42:100;3165:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2645:623;;;408:44:48::1;414:13;429:14;408:44;;;;;;;;;;;::::0;::::1;;;;;;;;;;;::::0;:5:::1;;;:44;;:::i;:::-;170:289:::0;;;;;125:681;;10335:725:100;-1:-1:-1;;;;;10514:21:100;;10506:66;;;;;-1:-1:-1;;;10506:66:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10583:16;10602:12;:10;:12::i;:::-;10583:31;-1:-1:-1;10625:59:100;10583:31;10664:1;10668:7;10677:6;10625:20;:59::i;:::-;10744:24;10761:6;10744:12;;:16;;;;;;:24;;;;:::i;:::-;10729:12;:39;-1:-1:-1;;;;;10799:18:100;;:9;:18;;;;;;;;;;;;:30;;10822:6;;10799:22;;;;;:30;;:::i;:::-;-1:-1:-1;;;;;10778:18:100;;:9;:18;;;;;;;;;;:51;;;;10840:88;;10860:8;;10788:7;10891:6;10899:8;10909:12;10923:4;10840:19;:88::i;:::-;10961:7;-1:-1:-1;;;;;10944:57:100;10951:8;-1:-1:-1;;;;;10944:57:100;;10970:6;10978:8;10988:12;10944:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10944:57:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11016:37;;;;;;;;-1:-1:-1;;;;;11016:37:100;;;11033:1;;11016:37;;;;;;;;;10335:725;;;;;:::o;590:104:0:-;677:10;590:104;:::o;17189:110:100:-;;;;;:::o;874:176:17:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:17:o;15873:688:100:-;16152:79;;;-1:-1:-1;;;16152:79:100;;-1:-1:-1;;;;;16152:79:100;;;;;;1883:66;16152:79;;;;;;16130:19;;1235:42;;16152:41;;:79;;;;;;;;;;;;;;;1235:42;16152:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16152:79:100;;-1:-1:-1;;;;;;16245:25:100;;;16241:314;;16303:11;-1:-1:-1;;;;;16286:44:100;;16331:8;16341:4;16347:2;16351:6;16359:8;16369:12;16286:96;;;;;;;;;;;;;-1:-1:-1;;;;;16286:96:100;;;;;;-1:-1:-1;;;;;16286:96:100;;;;;;-1:-1:-1;;;;;16286:96:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16286:96:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16241:314;;;16403:19;16399:156;;;16447:15;:2;-1:-1:-1;;;;;16447:13:100;;;;;;:15;;:::i;:::-;16446:16;16438:106;;;;-1:-1:-1;;;16438:106:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15873:688;;;;;;;;:::o;718:610:104:-;778:4;1239:20;;1084:66;1278:23;;;;;;:42;;-1:-1:-1;1305:15:104;;;1278:42;1270:51;718:610;-1:-1:-1;;;;718:610:104:o;125:681:48:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;125:681:48;;;-1:-1:-1;125:681:48;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;125:681:48;-1:-1:-1;;;;;125:681:48;;;;;;;;;;;-1:-1:-1;125:681:48;;;;;;;-1:-1:-1;125:681:48;;;-1:-1:-1;125:681:48;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;125:681:48;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ERC777SenderRecipientMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"fromBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toBalance","type":"uint256"}],"name":"TokensReceivedCalled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"fromBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toBalance","type":"uint256"}],"name":"TokensToSendCalled","type":"event"},{"inputs":[{"internalType":"contract IERC777","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"canImplementInterfaceForAddress","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"recipientFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"registerRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"registerSender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC777","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"senderFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"shouldRevert","type":"bool"}],"name":"setShouldRevertReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"shouldRevert","type":"bool"}],"name":"setShouldRevertSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"tokensReceived","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"tokensToSend","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ERC777SenderRecipientMock","deploymentBytecode":{"bytecode":"0x60806040526001805462010000600160b01b031916751820a4b7618bde71dce8cdc73aab6c95905fad24000017905534801561003a57600080fd5b50610da58061004a6000396000f3fe608060405234801561001057600080fd5b50600436106100a85760003560e01c806375ab97821161007157806375ab97821461036f578063a8badaa514610455578063c97e18fc1461047b578063d2de64741461049a578063e0eb2180146104c0578063e1ecbd30146104e6576100a8565b806223de29146100ad578063249cb3fa146101955780633836ef89146101d357806344d17187146102975780634e4ae5a514610350575b600080fd5b610193600480360360c08110156100c357600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b81111561010557600080fd5b82018360208201111561011757600080fd5b803590602001918460018302840111600160201b8311171561013857600080fd5b919390929091602081019035600160201b81111561015557600080fd5b82018360208201111561016757600080fd5b803590602001918460018302840111600160201b8311171561018857600080fd5b50909250905061050c565b005b6101c1600480360360408110156101ab57600080fd5b50803590602001356001600160a01b031661072a565b60408051918252519081900360200190f35b610193600480360360808110156101e957600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561022357600080fd5b82018360208201111561023557600080fd5b803590602001918460018302840111600160201b8311171561025657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061079f945050505050565b610193600480360360608110156102ad57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156102dc57600080fd5b8201836020820111156102ee57600080fd5b803590602001918460018302840111600160201b8311171561030f57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061087e945050505050565b6101936004803603602081101561036657600080fd5b5035151561094c565b610193600480360360c081101561038557600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b8111156103c757600080fd5b8201836020820111156103d957600080fd5b803590602001918460018302840111600160201b831117156103fa57600080fd5b919390929091602081019035600160201b81111561041757600080fd5b82018360208201111561042957600080fd5b803590602001918460018302840111600160201b8311171561044a57600080fd5b50909250905061095f565b6101936004803603602081101561046b57600080fd5b50356001600160a01b0316610b78565b6101936004803603602081101561049157600080fd5b50351515610c14565b610193600480360360208110156104b057600080fd5b50356001600160a01b0316610c2e565b610193600480360360208110156104d657600080fd5b50356001600160a01b0316610c77565b610193600480360360208110156104fc57600080fd5b50356001600160a01b0316610cbc565b600154610100900460ff161561052157600080fd5b600061052b610d3d565b90506000816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561057c57600080fd5b505afa158015610590573d6000803e3d6000fd5b505050506040513d60208110156105a657600080fd5b5051604080516370a0823160e01b81526001600160a01b038b811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b1580156105f857600080fd5b505afa15801561060c573d6000803e3d6000fd5b505050506040513d602081101561062257600080fd5b810190808051906020019092919050505090507f47e915878c47f3ec4d7ff646a2becb229f64fd2abe4d2b5e2bb4275b0cf50d4e8b8b8b8b8b8b8b8b8b8b8b604051808c6001600160a01b031681526020018b6001600160a01b031681526020018a6001600160a01b031681526020018981526020018060200180602001866001600160a01b0316815260200185815260200184815260200183810383528a8a82818152602001925080828437600083820152601f01601f191690910184810383528881526020019050888880828437600083820152604051601f909101601f19169092018290039f50909d5050505050505050505050505050a15050505050505050505050565b6000828152602081815260408083206001600160a01b038516845290915281205460ff16610759576000610798565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b9392505050565b836001600160a01b0316639bd9bbc68484846040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b15801561086057600080fd5b505af1158015610874573d6000803e3d6000fd5b5050505050505050565b6040805163fe9d930360e01b815260048101848152602482019283528351604483015283516001600160a01b0387169363fe9d9303938793879390929160640190602085019080838360005b838110156108e25781810151838201526020016108ca565b50505050905090810190601f16801561090f5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b15801561092f57600080fd5b505af1158015610943573d6000803e3d6000fd5b50505050505050565b6001805460ff1916911515919091179055565b60015460ff161561096f57600080fd5b6000610979610d3d565b90506000816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156109ca57600080fd5b505afa1580156109de573d6000803e3d6000fd5b505050506040513d60208110156109f457600080fd5b5051604080516370a0823160e01b81526001600160a01b038b811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b158015610a4657600080fd5b505afa158015610a5a573d6000803e3d6000fd5b505050506040513d6020811015610a7057600080fd5b810190808051906020019092919050505090507faa3e88aca472e90221daf7d3d601abafb62b120319089d7a2c2f63588da855298b8b8b8b8b8b8b8b8b8b8b604051808c6001600160a01b031681526020018b6001600160a01b031681526020018a6001600160a01b031681526020018981526020018060200180602001866001600160a01b0316815260200185815260200184815260200183810383528a8a82818152602001925080828437600083820152601f01601f191690910184810383528881526020019050888880828437600083820152604051601f909101601f19169092018290039f50909d5050505050505050505050505050a15050505050505050505050565b600154604080516329965a1d60e01b81523060048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201526001600160a01b038481166044830152915162010000909304909116916329965a1d9160648082019260009290919082900301818387803b158015610bf957600080fd5b505af1158015610c0d573d6000803e3d6000fd5b5050505050565b600180549115156101000261ff0019909216919091179055565b610c587f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89582610d41565b306001600160a01b038216811415610c7357610c7381610cbc565b5050565b610ca17fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b82610d41565b306001600160a01b038216811415610c7357610c7381610b78565b600154604080516329965a1d60e01b81523060048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201526001600160a01b038481166044830152915162010000909304909116916329965a1d9160648082019260009290919082900301818387803b158015610bf957600080fd5b3390565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff1916600117905556fea26469706673582212208290ff76653273b55c49b16adbb08944deb115fc3add8f46e096a76207c36f0e64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"tokensReceived(address,address,address,uint256,bytes,bytes)":{"details":"Called by an {IERC777} token contract whenever tokens are being moved or created into a registered account (`to`). The type of operation is conveyed by `from` being the zero address or not. This call occurs _after_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the post-operation state. This function may revert to prevent the operation from being executed."},"tokensToSend(address,address,address,uint256,bytes,bytes)":{"details":"Called by an {IERC777} token contract whenever a registered holder's (`from`) tokens are about to be moved or destroyed. The type of operation is conveyed by `to` being the zero address or not. This call occurs _before_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the pre-operation state. This function may revert to prevent the operation from being executed."}},"version":1},"methodIdentifiers":{"burn(address,uint256,bytes)":"0x44d17187","canImplementInterfaceForAddress(bytes32,address)":"0x249cb3fa","recipientFor(address)":"0xe0eb2180","registerRecipient(address)":"0xa8badaa5","registerSender(address)":"0xe1ecbd30","send(address,address,uint256,bytes)":"0x3836ef89","senderFor(address)":"0xd2de6474","setShouldRevertReceive(bool)":"0xc97e18fc","setShouldRevertSend(bool)":"0x4e4ae5a5","tokensReceived(address,address,address,uint256,bytes,bytes)":"0x0023de29","tokensToSend(address,address,address,uint256,bytes,bytes)":"0x75ab9782"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100a85760003560e01c806375ab97821161007157806375ab97821461036f578063a8badaa514610455578063c97e18fc1461047b578063d2de64741461049a578063e0eb2180146104c0578063e1ecbd30146104e6576100a8565b806223de29146100ad578063249cb3fa146101955780633836ef89146101d357806344d17187146102975780634e4ae5a514610350575b600080fd5b610193600480360360c08110156100c357600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b81111561010557600080fd5b82018360208201111561011757600080fd5b803590602001918460018302840111600160201b8311171561013857600080fd5b919390929091602081019035600160201b81111561015557600080fd5b82018360208201111561016757600080fd5b803590602001918460018302840111600160201b8311171561018857600080fd5b50909250905061050c565b005b6101c1600480360360408110156101ab57600080fd5b50803590602001356001600160a01b031661072a565b60408051918252519081900360200190f35b610193600480360360808110156101e957600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561022357600080fd5b82018360208201111561023557600080fd5b803590602001918460018302840111600160201b8311171561025657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061079f945050505050565b610193600480360360608110156102ad57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156102dc57600080fd5b8201836020820111156102ee57600080fd5b803590602001918460018302840111600160201b8311171561030f57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061087e945050505050565b6101936004803603602081101561036657600080fd5b5035151561094c565b610193600480360360c081101561038557600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b8111156103c757600080fd5b8201836020820111156103d957600080fd5b803590602001918460018302840111600160201b831117156103fa57600080fd5b919390929091602081019035600160201b81111561041757600080fd5b82018360208201111561042957600080fd5b803590602001918460018302840111600160201b8311171561044a57600080fd5b50909250905061095f565b6101936004803603602081101561046b57600080fd5b50356001600160a01b0316610b78565b6101936004803603602081101561049157600080fd5b50351515610c14565b610193600480360360208110156104b057600080fd5b50356001600160a01b0316610c2e565b610193600480360360208110156104d657600080fd5b50356001600160a01b0316610c77565b610193600480360360208110156104fc57600080fd5b50356001600160a01b0316610cbc565b600154610100900460ff161561052157600080fd5b600061052b610d3d565b90506000816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561057c57600080fd5b505afa158015610590573d6000803e3d6000fd5b505050506040513d60208110156105a657600080fd5b5051604080516370a0823160e01b81526001600160a01b038b811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b1580156105f857600080fd5b505afa15801561060c573d6000803e3d6000fd5b505050506040513d602081101561062257600080fd5b810190808051906020019092919050505090507f47e915878c47f3ec4d7ff646a2becb229f64fd2abe4d2b5e2bb4275b0cf50d4e8b8b8b8b8b8b8b8b8b8b8b604051808c6001600160a01b031681526020018b6001600160a01b031681526020018a6001600160a01b031681526020018981526020018060200180602001866001600160a01b0316815260200185815260200184815260200183810383528a8a82818152602001925080828437600083820152601f01601f191690910184810383528881526020019050888880828437600083820152604051601f909101601f19169092018290039f50909d5050505050505050505050505050a15050505050505050505050565b6000828152602081815260408083206001600160a01b038516845290915281205460ff16610759576000610798565b604051602001808073455243313832305f4143434550545f4d4147494360601b8152506014019050604051602081830303815290604052805190602001205b9392505050565b836001600160a01b0316639bd9bbc68484846040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156108125781810151838201526020016107fa565b50505050905090810190601f16801561083f5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b15801561086057600080fd5b505af1158015610874573d6000803e3d6000fd5b5050505050505050565b6040805163fe9d930360e01b815260048101848152602482019283528351604483015283516001600160a01b0387169363fe9d9303938793879390929160640190602085019080838360005b838110156108e25781810151838201526020016108ca565b50505050905090810190601f16801561090f5780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b15801561092f57600080fd5b505af1158015610943573d6000803e3d6000fd5b50505050505050565b6001805460ff1916911515919091179055565b60015460ff161561096f57600080fd5b6000610979610d3d565b90506000816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156109ca57600080fd5b505afa1580156109de573d6000803e3d6000fd5b505050506040513d60208110156109f457600080fd5b5051604080516370a0823160e01b81526001600160a01b038b811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b158015610a4657600080fd5b505afa158015610a5a573d6000803e3d6000fd5b505050506040513d6020811015610a7057600080fd5b810190808051906020019092919050505090507faa3e88aca472e90221daf7d3d601abafb62b120319089d7a2c2f63588da855298b8b8b8b8b8b8b8b8b8b8b604051808c6001600160a01b031681526020018b6001600160a01b031681526020018a6001600160a01b031681526020018981526020018060200180602001866001600160a01b0316815260200185815260200184815260200183810383528a8a82818152602001925080828437600083820152601f01601f191690910184810383528881526020019050888880828437600083820152604051601f909101601f19169092018290039f50909d5050505050505050505050505050a15050505050505050505050565b600154604080516329965a1d60e01b81523060048201527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248201526001600160a01b038481166044830152915162010000909304909116916329965a1d9160648082019260009290919082900301818387803b158015610bf957600080fd5b505af1158015610c0d573d6000803e3d6000fd5b5050505050565b600180549115156101000261ff0019909216919091179055565b610c587f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89582610d41565b306001600160a01b038216811415610c7357610c7381610cbc565b5050565b610ca17fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b82610d41565b306001600160a01b038216811415610c7357610c7381610b78565b600154604080516329965a1d60e01b81523060048201527f29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe89560248201526001600160a01b038481166044830152915162010000909304909116916329965a1d9160648082019260009290919082900301818387803b158015610bf957600080fd5b3390565b6000918252602082815260408084206001600160a01b0390931684529190529020805460ff1916600117905556fea26469706673582212208290ff76653273b55c49b16adbb08944deb115fc3add8f46e096a76207c36f0e64736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC777SenderRecipientMock.sol","sourcemap":"315:3970:49:-:0;;;1010:96;;;-1:-1:-1;;;;;;1010:96:49;;;;;315:3970;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{"canImplementInterfaceForAddress(bytes32,address)":{"notice":"See {IERC1820Implementer-canImplementInterfaceForAddress}."}},"version":1}},"EnumerableAddressSetMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"result","type":"bool"}],"name":"OperationResult","type":"event"},{"inputs":[{"internalType":"address","name":"value","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"at","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"value","type":"address"}],"name":"contains","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"value","type":"address"}],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"EnumerableAddressSetMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610400806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630a3b0a4f1461005c5780631f7b6d321461008457806329092d0e1461009e5780635dbe47e8146100c4578063e0886f90146100fe575b600080fd5b6100826004803603602081101561007257600080fd5b50356001600160a01b0316610137565b005b61008c610180565b60408051918252519081900360200190f35b610082600480360360208110156100b457600080fd5b50356001600160a01b0316610191565b6100ea600480360360208110156100da57600080fd5b50356001600160a01b031661019d565b604080519115158252519081900360200190f35b61011b6004803603602081101561011457600080fd5b50356101af565b604080516001600160a01b039092168252519081900360200190f35b600061014381836101bb565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b600061018c60006101d7565b905090565b600061014381836101e2565b60006101a981836101f7565b92915050565b60006101a9818361020c565b60006101d0836001600160a01b038416610218565b9392505050565b60006101a982610262565b60006101d0836001600160a01b038416610266565b60006101d0836001600160a01b03841661032c565b60006101d08383610344565b6000610224838361032c565b61025a575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556101a9565b5060006101a9565b5490565b60008181526001830160205260408120548015610322578354600019808301919081019060009087908390811061029957fe5b90600052602060002001549050808760000184815481106102b657fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806102e657fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506101a9565b60009150506101a9565b60009081526001919091016020526040902054151590565b815460009082106103865760405162461bcd60e51b81526004018080602001828103825260228152602001806103a96022913960400191505060405180910390fd5b82600001828154811061039557fe5b906000526020600020015490509291505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473a2646970667358221220fcd3e24b2caee3d1d60a2b1ff49bb9c78c41c5e9ef2b4c7b7a2c36d6f2a97aa064736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"add(address)":"0x0a3b0a4f","at(uint256)":"0xe0886f90","contains(address)":"0x5dbe47e8","length()":"0x1f7b6d32","remove(address)":"0x29092d0e"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c80630a3b0a4f1461005c5780631f7b6d321461008457806329092d0e1461009e5780635dbe47e8146100c4578063e0886f90146100fe575b600080fd5b6100826004803603602081101561007257600080fd5b50356001600160a01b0316610137565b005b61008c610180565b60408051918252519081900360200190f35b610082600480360360208110156100b457600080fd5b50356001600160a01b0316610191565b6100ea600480360360208110156100da57600080fd5b50356001600160a01b031661019d565b604080519115158252519081900360200190f35b61011b6004803603602081101561011457600080fd5b50356101af565b604080516001600160a01b039092168252519081900360200190f35b600061014381836101bb565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b600061018c60006101d7565b905090565b600061014381836101e2565b60006101a981836101f7565b92915050565b60006101a9818361020c565b60006101d0836001600160a01b038416610218565b9392505050565b60006101a982610262565b60006101d0836001600160a01b038416610266565b60006101d0836001600160a01b03841661032c565b60006101d08383610344565b6000610224838361032c565b61025a575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556101a9565b5060006101a9565b5490565b60008181526001830160205260408120548015610322578354600019808301919081019060009087908390811061029957fe5b90600052602060002001549050808760000184815481106102b657fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806102e657fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506101a9565b60009150506101a9565b60009081526001919091016020526040902054151590565b815460009082106103865760405162461bcd60e51b81526004018080602001828103825260228152602001806103a96022913960400191505060405180910390fd5b82600001828154811061039557fe5b906000526020600020015490509291505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473a2646970667358221220fcd3e24b2caee3d1d60a2b1ff49bb9c78c41c5e9ef2b4c7b7a2c36d6f2a97aa064736f6c634300060c0033"},"sourceId":"contracts/mocks/EnumerableSetMock.sol","sourcemap":"110:734:51:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"EnumerableMap":{"abi":[],"contractName":"EnumerableMap","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122034bf4db534ebffad11f274170d852d4dbbd16a9161b07cfd2eb7014fc3ea750a64736f6c634300060c0033"},"devdoc":{"details":"Library for managing an enumerable variant of Solidity's https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] type. Maps have the following properties: - Entries are added, removed, and checked for existence in constant time (O(1)). - Entries are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { // Add the library methods using EnumerableMap for EnumerableMap.UintToAddressMap; // Declare a set state variable EnumerableMap.UintToAddressMap private myMap; } ``` As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are supported.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122034bf4db534ebffad11f274170d852d4dbbd16a9161b07cfd2eb7014fc3ea750a64736f6c634300060c0033"},"sourceId":"contracts/utils/EnumerableMap.sol","sourcemap":"764:7555:108:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"EnumerableMapMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"result","type":"bool"}],"name":"OperationResult","type":"event"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"at","outputs":[{"internalType":"uint256","name":"key","type":"uint256"},{"internalType":"address","name":"value","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"key","type":"uint256"}],"name":"contains","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"key","type":"uint256"}],"name":"get","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"key","type":"uint256"}],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"key","type":"uint256"},{"internalType":"address","name":"value","type":"address"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"EnumerableMapMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610628806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631f7b6d32146100675780632f30c6f6146100815780634cc82215146100af5780639507d39a146100cc578063c34052e014610105578063e0886f9014610136575b600080fd5b61006f610174565b60408051918252519081900360200190f35b6100ad6004803603604081101561009757600080fd5b50803590602001356001600160a01b0316610185565b005b6100ad600480360360208110156100c557600080fd5b50356101d0565b6100e9600480360360208110156100e257600080fd5b5035610219565b604080516001600160a01b039092168252519081900360200190f35b6101226004803603602081101561011b57600080fd5b503561022b565b604080519115158252519081900360200190f35b6101536004803603602081101561014c57600080fd5b5035610237565b604080519283526001600160a01b0390911660208301528051918290030190f35b6000610180600061024d565b905090565b6000610192818484610258565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a1505050565b60006101dc8183610278565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b60006102258183610284565b92915050565b60006102258183610290565b600080610244818461029c565b91509150915091565b6000610225826102b8565b600061026e84846001600160a01b0385166102bc565b90505b9392505050565b60006102718383610353565b60006102718383610431565b60006102718383610473565b60008080806102ab868661048b565b9097909650945050505050565b5490565b600082815260018401602052604081205480610321575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610271565b8285600001600183038154811061033457fe5b9060005260206000209060020201600101819055506000915050610271565b60008181526001830160205260408120548015610427578354600019808301919081019060009087908390811061038657fe5b90600052602060002090600202019050808760000184815481106103a657fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806103e557fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506102259350505050565b6000915050610225565b600061027183836040518060400160405280601e81526020017f456e756d657261626c654d61703a206e6f6e6578697374656e74206b65790000815250610506565b60009081526001919091016020526040902054151590565b8154600090819083106104cf5760405162461bcd60e51b81526004018080602001828103825260228152602001806105d16022913960400191505060405180910390fd5b60008460000184815481106104e057fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816105a15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561056657818101518382015260200161054e565b50505050905090810190601f1680156105935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106105b457fe5b906000526020600020906002020160010154915050939250505056fe456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473a264697066735822122045fd6370e299b1d78c4d1a864a1ff025f988a993a245e1429a1db51a2931678764736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"at(uint256)":"0xe0886f90","contains(uint256)":"0xc34052e0","get(uint256)":"0x9507d39a","length()":"0x1f7b6d32","remove(uint256)":"0x4cc82215","set(uint256,address)":"0x2f30c6f6"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100625760003560e01c80631f7b6d32146100675780632f30c6f6146100815780634cc82215146100af5780639507d39a146100cc578063c34052e014610105578063e0886f9014610136575b600080fd5b61006f610174565b60408051918252519081900360200190f35b6100ad6004803603604081101561009757600080fd5b50803590602001356001600160a01b0316610185565b005b6100ad600480360360208110156100c557600080fd5b50356101d0565b6100e9600480360360208110156100e257600080fd5b5035610219565b604080516001600160a01b039092168252519081900360200190f35b6101226004803603602081101561011b57600080fd5b503561022b565b604080519115158252519081900360200190f35b6101536004803603602081101561014c57600080fd5b5035610237565b604080519283526001600160a01b0390911660208301528051918290030190f35b6000610180600061024d565b905090565b6000610192818484610258565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a1505050565b60006101dc8183610278565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b60006102258183610284565b92915050565b60006102258183610290565b600080610244818461029c565b91509150915091565b6000610225826102b8565b600061026e84846001600160a01b0385166102bc565b90505b9392505050565b60006102718383610353565b60006102718383610431565b60006102718383610473565b60008080806102ab868661048b565b9097909650945050505050565b5490565b600082815260018401602052604081205480610321575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610271565b8285600001600183038154811061033457fe5b9060005260206000209060020201600101819055506000915050610271565b60008181526001830160205260408120548015610427578354600019808301919081019060009087908390811061038657fe5b90600052602060002090600202019050808760000184815481106103a657fe5b6000918252602080832084546002909302019182556001938401549184019190915583548252898301905260409020908401905586548790806103e557fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506102259350505050565b6000915050610225565b600061027183836040518060400160405280601e81526020017f456e756d657261626c654d61703a206e6f6e6578697374656e74206b65790000815250610506565b60009081526001919091016020526040902054151590565b8154600090819083106104cf5760405162461bcd60e51b81526004018080602001828103825260228152602001806105d16022913960400191505060405180910390fd5b60008460000184815481106104e057fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816105a15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561056657818101518382015260200161054e565b50505050905090810190601f1680156105935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106105b457fe5b906000526020600020906002020160010154915050939250505056fe456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473a264697066735822122045fd6370e299b1d78c4d1a864a1ff025f988a993a245e1429a1db51a2931678764736f6c634300060c0033"},"sourceId":"contracts/mocks/EnumerableMapMock.sol","sourcemap":"96:868:50:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"EnumerableSet":{"abi":[],"contractName":"EnumerableSet","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202e7ad94af614e248d9cd4fde67d294bb7a5b1a801bda47d6b4241eb916bb421464736f6c634300060c0033"},"devdoc":{"details":"Library for managing https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive types. Sets have the following properties: - Elements are added, removed, and checked for existence in constant time (O(1)). - Elements are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { // Add the library methods using EnumerableSet for EnumerableSet.AddressSet; // Declare a set state variable EnumerableSet.AddressSet private mySet; } ``` As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256` (`UintSet`) are supported.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202e7ad94af614e248d9cd4fde67d294bb7a5b1a801bda47d6b4241eb916bb421464736f6c634300060c0033"},"sourceId":"contracts/utils/EnumerableSet.sol","sourcemap":"724:7062:109:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"EnumerableUintSetMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"result","type":"bool"}],"name":"OperationResult","type":"event"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"at","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"contains","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"EnumerableUintSetMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506103ae806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80631003e2d21461005c5780631f7b6d321461007b5780634cc8221514610095578063c34052e0146100b2578063e0886f90146100e3575b600080fd5b6100796004803603602081101561007257600080fd5b5035610100565b005b610083610149565b60408051918252519081900360200190f35b610079600480360360208110156100ab57600080fd5b503561015a565b6100cf600480360360208110156100c857600080fd5b5035610166565b604080519115158252519081900360200190f35b610083600480360360208110156100f957600080fd5b5035610178565b600061010c8183610184565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b60006101556000610197565b905090565b600061010c81836101a2565b600061017281836101ae565b92915050565b600061017281836101ba565b600061019083836101c6565b9392505050565b600061017282610210565b60006101908383610214565b600061019083836102da565b600061019083836102f2565b60006101d283836102da565b61020857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610172565b506000610172565b5490565b600081815260018301602052604081205480156102d0578354600019808301919081019060009087908390811061024757fe5b906000526020600020015490508087600001848154811061026457fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061029457fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610172565b6000915050610172565b60009081526001919091016020526040902054151590565b815460009082106103345760405162461bcd60e51b81526004018080602001828103825260228152602001806103576022913960400191505060405180910390fd5b82600001828154811061034357fe5b906000526020600020015490509291505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473a2646970667358221220629bba601814509aec845d3fd15c5a6834018155e7ce71abfa242a87683c211164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"add(uint256)":"0x1003e2d2","at(uint256)":"0xe0886f90","contains(uint256)":"0xc34052e0","length()":"0x1f7b6d32","remove(uint256)":"0x4cc82215"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c80631003e2d21461005c5780631f7b6d321461007b5780634cc8221514610095578063c34052e0146100b2578063e0886f90146100e3575b600080fd5b6100796004803603602081101561007257600080fd5b5035610100565b005b610083610149565b60408051918252519081900360200190f35b610079600480360360208110156100ab57600080fd5b503561015a565b6100cf600480360360208110156100c857600080fd5b5035610166565b604080519115158252519081900360200190f35b610083600480360360208110156100f957600080fd5b5035610178565b600061010c8183610184565b60408051821515815290519192507fed9840e0775590557ad736875d96c95cf1458b766335f74339951a32c82a9e33919081900360200190a15050565b60006101556000610197565b905090565b600061010c81836101a2565b600061017281836101ae565b92915050565b600061017281836101ba565b600061019083836101c6565b9392505050565b600061017282610210565b60006101908383610214565b600061019083836102da565b600061019083836102f2565b60006101d283836102da565b61020857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610172565b506000610172565b5490565b600081815260018301602052604081205480156102d0578354600019808301919081019060009087908390811061024757fe5b906000526020600020015490508087600001848154811061026457fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061029457fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610172565b6000915050610172565b60009081526001919091016020526040902054151590565b815460009082106103345760405162461bcd60e51b81526004018080602001828103825260228152602001806103576022913960400191505060405180910390fd5b82600001828154811061034357fe5b906000526020600020015490509291505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473a2646970667358221220629bba601814509aec845d3fd15c5a6834018155e7ce71abfa242a87683c211164736f6c634300060c0033"},"sourceId":"contracts/mocks/EnumerableSetMock.sol","sourcemap":"857:725:51:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Escrow":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"Escrow","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6106d28061007d6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461008f5780638da5cb5b146100a4578063e3a9db1a146100d5578063f2fde38b1461011a578063f340fa011461014d575b600080fd5b34801561006657600080fd5b5061008d6004803603602081101561007d57600080fd5b50356001600160a01b0316610173565b005b34801561009b57600080fd5b5061008d610236565b3480156100b057600080fd5b506100b96102d8565b604080516001600160a01b039092168252519081900360200190f35b3480156100e157600080fd5b50610108600480360360208110156100f857600080fd5b50356001600160a01b03166102e7565b60408051918252519081900360200190f35b34801561012657600080fd5b5061008d6004803603602081101561013d57600080fd5b50356001600160a01b0316610302565b61008d6004803603602081101561016357600080fd5b50356001600160a01b03166103fa565b61017b6104cd565b6000546001600160a01b039081169116146101cb576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906101f390826104d1565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b61023e6104cd565b6000546001600160a01b0390811691161461028e576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61030a6104cd565b6000546001600160a01b0390811691161461035a576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811661039f5760405162461bcd60e51b815260040180806020018281038252602681526020018061061d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6104026104cd565b6000546001600160a01b03908116911614610452576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b038116600090815260016020526040902054349061047790826105bb565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b3390565b80471015610526576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610571576040519150601f19603f3d011682016040523d82523d6000602084013e610576565b606091505b50509050806105b65760405162461bcd60e51b815260040180806020018281038252603a815260200180610643603a913960400191505060405180910390fd5b505050565b600082820183811015610615576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d617920686176652072657665727465644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122046931f8d6f12dcd2899e1f16aa783bb68e4fd7a715103b5b09f2c99959d1cdd064736f6c634300060c0033"},"devdoc":{"details":"Base escrow contract, holds funds designated for a payee until they withdraw them. Intended usage: This contract (and derived escrow contracts) should be a standalone contract, that only interacts with the contract that instantiated it. That way, it is guaranteed that all Ether will be handled according to the `Escrow` rules, and there is no need to check for payable functions or transfers in the inheritance tree. The contract that uses the escrow as its payment method should be its owner, and provide public methods redirecting to the escrow's deposit and withdraw.","kind":"dev","methods":{"deposit(address)":{"details":"Stores the sent amount as credit to be withdrawn.","params":{"payee":"The destination address of the funds."}},"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."},"withdraw(address)":{"details":"Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.","params":{"payee":"The address whose funds will be withdrawn and transferred to."}}},"title":"Escrow","version":1},"methodIdentifiers":{"deposit(address)":"0xf340fa01","depositsOf(address)":"0xe3a9db1a","owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","transferOwnership(address)":"0xf2fde38b","withdraw(address)":"0x51cff8d9"},"runtimeBytecode":{"bytecode":"0x6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461008f5780638da5cb5b146100a4578063e3a9db1a146100d5578063f2fde38b1461011a578063f340fa011461014d575b600080fd5b34801561006657600080fd5b5061008d6004803603602081101561007d57600080fd5b50356001600160a01b0316610173565b005b34801561009b57600080fd5b5061008d610236565b3480156100b057600080fd5b506100b96102d8565b604080516001600160a01b039092168252519081900360200190f35b3480156100e157600080fd5b50610108600480360360208110156100f857600080fd5b50356001600160a01b03166102e7565b60408051918252519081900360200190f35b34801561012657600080fd5b5061008d6004803603602081101561013d57600080fd5b50356001600160a01b0316610302565b61008d6004803603602081101561016357600080fd5b50356001600160a01b03166103fa565b61017b6104cd565b6000546001600160a01b039081169116146101cb576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906101f390826104d1565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b61023e6104cd565b6000546001600160a01b0390811691161461028e576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61030a6104cd565b6000546001600160a01b0390811691161461035a576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811661039f5760405162461bcd60e51b815260040180806020018281038252602681526020018061061d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6104026104cd565b6000546001600160a01b03908116911614610452576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b038116600090815260016020526040902054349061047790826105bb565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b3390565b80471015610526576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610571576040519150601f19603f3d011682016040523d82523d6000602084013e610576565b606091505b50509050806105b65760405162461bcd60e51b815260040180806020018281038252603a815260200180610643603a913960400191505060405180910390fd5b505050565b600082820183811015610615576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d617920686176652072657665727465644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122046931f8d6f12dcd2899e1f16aa783bb68e4fd7a715103b5b09f2c99959d1cdd064736f6c634300060c0033"},"sourceId":"contracts/payment/escrow/Escrow.sol","sourcemap":"807:1400:71:-:0;;;;;;;;;;;;-1:-1:-1;865:17:7;885:12;:10;:12::i;:::-;907:6;:18;;-1:-1:-1;;;;;;907:18:7;-1:-1:-1;;;;;907:18:7;;;;;;;940:43;;907:18;;-1:-1:-1;907:18:7;940:43;;907:6;;940:43;831:159;807:1400:71;;590:104:0;677:10;590:104;:::o;807:1400:71:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"EtherReceiverMock":{"abi":[{"inputs":[{"internalType":"bool","name":"acceptEther","type":"bool"}],"name":"setAcceptEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}],"contractName":"EtherReceiverMock","deploymentBytecode":{"bytecode":"0x6080604052348015600f57600080fd5b5060a38061001e6000396000f3fe608060405260043610601f5760003560e01c80634fea120c146038576033565b3660335760005460ff16603157600080fd5b005b600080fd5b348015604357600080fd5b50603160048036036020811015605857600080fd5b506000805460ff19169135151591909117905556fea26469706673582212206ef7832c3908826dc34fd9e59af2b317a980c6641e6d3cf623a527f936a5cc7a64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"setAcceptEther(bool)":"0x4fea120c"},"runtimeBytecode":{"bytecode":"0x608060405260043610601f5760003560e01c80634fea120c146038576033565b3660335760005460ff16603157600080fd5b005b600080fd5b348015604357600080fd5b50603160048036036020811015605857600080fd5b506000805460ff19169135151591909117905556fea26469706673582212206ef7832c3908826dc34fd9e59af2b317a980c6641e6d3cf623a527f936a5cc7a64736f6c634300060c0033"},"sourceId":"contracts/mocks/EtherReceiverMock.sol","sourcemap":"58:261:52:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"GSNRecipient":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"inputs":[{"internalType":"address","name":"relay","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"approvalData","type":"bytes"},{"internalType":"uint256","name":"maxPossibleCharge","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"GSNRecipient","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Base GSN recipient contract: includes the {IRelayRecipient} interface and enables GSN support on all contracts in the inheritance tree. TIP: This contract is abstract. The functions {IRelayRecipient-acceptRelayedCall}, {_preRelayedCall}, and {_postRelayedCall} are not implemented and must be provided by derived contracts. See the xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategies] for more information on how to use the pre-built {GSNRecipientSignature} and {GSNRecipientERC20Fee}, or how to write your own.","events":{"RelayHubChanged(address,address)":{"details":"Emitted when a contract changes its {IRelayHub} contract to a new one."}},"kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Called by {IRelayHub} to validate if this recipient accepts being charged for a relayed call. Note that the recipient will be charged regardless of the execution result of the relayed call (i.e. if it reverts or not). The relay request was originated by `from` and will be served by `relay`. `encodedFunction` is the relayed call calldata, so its first four bytes are the function selector. The relayed call will be forwarded `gasLimit` gas, and the transaction executed with a gas price of at least `gasPrice`. ``relay``'s fee is `transactionFee`, and the recipient will be charged at most `maxPossibleCharge` (in wei). `nonce` is the sender's (`from`) nonce for replay attack protection in {IRelayHub}, and `approvalData` is a optional parameter that can be used to hold a signature over all or some of the previous values. Returns a tuple, where the first value is used to indicate approval (0) or rejection (custom non-zero error code, values 1 to 10 are reserved) and the second one is data to be passed to the other {IRelayRecipient} functions. {acceptRelayedCall} is called with 50k gas: if it runs out during execution, the request will be considered rejected. A regular revert will also trigger a rejection."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/GSN/GSNRecipient.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"GSNRecipientERC20Fee":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"maxPossibleCharge","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"contractName":"GSNRecipientERC20Fee","deploymentBytecode":{"bytecode":"0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f4941790553480156200003757600080fd5b50604051620020cd380380620020cd833981810160405260408110156200005d57600080fd5b81019080805160405193929190846401000000008211156200007e57600080fd5b9083019060208201858111156200009457600080fd5b8251640100000000811182820188101715620000af57600080fd5b82525081516020918201929091019080838360005b83811015620000de578181015183820152602001620000c4565b50505050905090810190601f1680156200010c5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200013057600080fd5b9083019060208201858111156200014657600080fd5b82516401000000008111828201881017156200016157600080fd5b82525081516020918201929091019080838360005b838110156200019057818101518382015260200162000176565b50505050905090810190601f168015620001be5780820380516001836020036101000a031916815260200191505b506040525050508181604051620001d590620002f1565b604080825283519082015282518190602080830191606084019187019080838360005b8381101562000212578181015183820152602001620001f8565b50505050905090810190601f168015620002405780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015620002755781810151838201526020016200025b565b50505050905090810190601f168015620002a35780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f080158015620002c7573d6000803e3d6000fd5b50600180546001600160a01b0319166001600160a01b039290921691909117905550620002ff9050565b6111ea8062000ee383390190565b610bd4806200030f6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806374e861d61461006757806380274db71461008b57806383947ea014610141578063ad61ccd51461031d578063e06e0e221461039a578063fc0c546a1461044d575b600080fd5b61006f610455565b604080516001600160a01b039092168252519081900360200190f35b61012f600480360360208110156100a157600080fd5b810190602081018135600160201b8111156100bb57600080fd5b8201836020820111156100cd57600080fd5b803590602001918460018302840111600160201b831117156100ee57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610464945050505050565b60408051918252519081900360200190f35b61029e600480360361012081101561015857600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561018b57600080fd5b82018360208201111561019d57600080fd5b803590602001918460018302840111600160201b831117156101be57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561022857600080fd5b82018360208201111561023a57600080fd5b803590602001918460018302840111600160201b8311171561025b57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104cc915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102e15781810151838201526020016102c9565b50505050905090810190601f16801561030e5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103256105bb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035f578181015183820152602001610347565b50505050905090810190601f16801561038c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61044b600480360360808110156103b057600080fd5b810190602081018135600160201b8111156103ca57600080fd5b8201836020820111156103dc57600080fd5b803590602001918460018302840111600160201b831117156103fd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050803515159150602081013590604001356105da565b005b61006f610643565b6000546001600160a01b031690565b600061046e610455565b6001600160a01b0316336001600160a01b0316146104bd5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b516024913960400191505060405180910390fd5b6104c682610652565b92915050565b600154604080516370a0823160e01b81526001600160a01b038b81166004830152915160009360609386939116916370a0823191602480820192602092909190829003018186803b15801561052057600080fd5b505afa158015610534573d6000803e3d6000fd5b505050506040513d602081101561054a57600080fd5b505110156105655761055c6000610699565b915091506105ad565b604080516001600160a01b038c166020820152808201859052606081018a905260808082018a90528251808303909101815260a09091019091526105a8906106b1565b915091505b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b6105e2610455565b6001600160a01b0316336001600160a01b0316146106315760405162461bcd60e51b8152600401808060200182810382526024815260200180610b516024913960400191505060405180910390fd5b61063d848484846106b6565b50505050565b6001546001600160a01b031690565b600080600083806020019051604081101561066c57600080fd5b5080516020909101516001549193509150610692906001600160a01b0316833084610743565b5050919050565b604080516020810190915260008152600b9190910191565b600091565b6000806000808780602001905160808110156106d157600080fd5b50805160208201516040830151606090930151919650945090925090506000610709610702620186a061271061079d565b83856107e6565b9050610715878261079d565b965061073885610725868a61079d565b6001546001600160a01b031691906107f4565b505050505050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261063d90859061084b565b60006107df83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108fc565b9392505050565b606490810191909202020490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261084690849061084b565b505050565b60606108a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109939092919063ffffffff16565b805190915015610846578080602001905160208110156108bf57600080fd5b50516108465760405162461bcd60e51b815260040180806020018281038252602a815260200180610b75602a913960400191505060405180910390fd5b6000818484111561098b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610950578181015183820152602001610938565b50505050905090810190601f16801561097d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606109a284846000856109aa565b949350505050565b60606109b585610b17565b610a06576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610a455780518252601f199092019160209182019101610a26565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610aa7576040519150601f19603f3d011682016040523d82523d6000602084013e610aac565b606091505b50915091508115610ac05791506109a29050565b805115610ad05780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315610950578181015183820152602001610938565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906109a257505015159291505056fe47534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875625361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220e1cc2d9b5034123b36b2cb7317bd1a56db61d1e56f7651cc5f2d4d8c81aae7a564736f6c634300060c003360806040523480156200001157600080fd5b50604051620011ea380380620011ea833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001b89060039060208501906200024c565b508051620001ce9060049060208401906200024c565b50506005805460ff19166012179055506000620001ea62000248565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505050620002e8565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028f57805160ff1916838001178555620002bf565b82800160010185558215620002bf579182015b82811115620002bf578251825591602001919060010190620002a2565b50620002cd929150620002d1565b5090565b5b80821115620002cd5760008155600101620002d2565b610ef280620002f86000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d7146102d9578063a9059cbb14610305578063dd62ed3e14610331578063f2fde38b1461035f576100f5565b806370a082311461027f578063715018a6146102a55780638da5cb5b146102ad57806395d89b41146102d1576100f5565b806323b872dd116100d357806323b872dd146101d1578063313ce56714610207578063395093511461022557806340c10f1914610251576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b610102610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b03813516906020013561041b565b604080519115158252519081900360200190f35b6101bf610439565b60408051918252519081900360200190f35b6101a3600480360360608110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040013561043f565b61020f61048a565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561023b57600080fd5b506001600160a01b038135169060200135610493565b61027d6004803603604081101561026757600080fd5b506001600160a01b0381351690602001356104e6565b005b6101bf6004803603602081101561029557600080fd5b50356001600160a01b0316610563565b61027d61057e565b6102b561063d565b604080516001600160a01b039092168252519081900360200190f35b610102610651565b6101a3600480360360408110156102ef57600080fd5b506001600160a01b0381351690602001356106b2565b6101a36004803603604081101561031b57600080fd5b506001600160a01b03813516906020013561071a565b6101bf6004803603604081101561034757600080fd5b506001600160a01b038135811691602001351661072e565b61027d6004803603602081101561037557600080fd5b50356001600160a01b031661076b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b820191906000526020600020905b8154815290600101906020018083116103f457829003601f168201915b5050505050905090565b600061042f610428610886565b848461088a565b5060015b92915050565b60025490565b600061044961063d565b6001600160a01b0316836001600160a01b031614156104755761046d8484846108c0565b506001610483565b610480848484610a1b565b90505b9392505050565b60055460ff1690565b600061042f6104a0610886565b846104e185600160006104b1610886565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610a9d565b61088a565b6104ee610886565b60055461010090046001600160a01b03908116911614610555576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61055f8282610af7565b5050565b6001600160a01b031660009081526020819052604090205490565b610586610886565b60055461010090046001600160a01b039081169116146105ed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b600061042f6106bf610886565b846104e185604051806060016040528060258152602001610e9860259139600160006106e9610886565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610be7565b600061042f610727610886565b84846108c0565b600061073861063d565b6001600160a01b0316826001600160a01b0316141561075a5750600019610433565b6107648383610c7e565b9050610433565b610773610886565b60055461010090046001600160a01b039081169116146107da576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661081f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610db96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b61089261063d565b6001600160a01b0316826001600160a01b031614156108b0576108bb565b6108bb838383610ca9565b505050565b6001600160a01b0383166109055760405162461bcd60e51b8152600401808060200182810382526025815260200180610e4f6025913960400191505060405180910390fd5b6001600160a01b03821661094a5760405162461bcd60e51b8152600401808060200182810382526023815260200180610d966023913960400191505060405180910390fd5b6109558383836108bb565b61099281604051806060016040528060268152602001610e01602691396001600160a01b0386166000908152602081905260409020549190610be7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546109c19082610a9d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000610a288484846108c0565b610a9384610a34610886565b6104e185604051806060016040528060288152602001610e27602891396001600160a01b038a16600090815260016020526040812090610a72610886565b6001600160a01b031681526020810191909152604001600020549190610be7565b5060019392505050565b600082820183811015610483576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610b52576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610b5e600083836108bb565b600254610b6b9082610a9d565b6002556001600160a01b038216600090815260208190526040902054610b919082610a9d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115610c765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c3b578181015183820152602001610c23565b50505050905090810190601f168015610c685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610cee5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e746024913960400191505060405180910390fd5b6001600160a01b038216610d335760405162461bcd60e51b8152600401808060200182810382526022815260200180610ddf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209f7e4d528c2f5e0178238b471a63b49a19c70b02b5d8e226290a430d9cae242164736f6c634300060c0033"},"devdoc":{"details":"A xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategy] that charges transaction fees in a special purpose ERC20 token, which we refer to as the gas payment token. The amount charged is exactly the amount of Ether charged to the recipient. This means that the token is essentially pegged to the value of Ether. The distribution strategy of the gas payment token to users is not defined by this contract. It's a mintable token whose only minter is the recipient, so the strategy must be implemented in a derived contract, making use of the internal {_mint} function.","kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Ensures that only users with enough gas payment token balance can have transactions relayed through the GSN."},"constructor":{"details":"The arguments to the constructor are the details that the gas payment token will have: `name` and `symbol`. `decimals` is hard-coded to 18."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."},"token()":{"details":"Returns the gas payment token."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5","token()":"0xfc0c546a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100625760003560e01c806374e861d61461006757806380274db71461008b57806383947ea014610141578063ad61ccd51461031d578063e06e0e221461039a578063fc0c546a1461044d575b600080fd5b61006f610455565b604080516001600160a01b039092168252519081900360200190f35b61012f600480360360208110156100a157600080fd5b810190602081018135600160201b8111156100bb57600080fd5b8201836020820111156100cd57600080fd5b803590602001918460018302840111600160201b831117156100ee57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610464945050505050565b60408051918252519081900360200190f35b61029e600480360361012081101561015857600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561018b57600080fd5b82018360208201111561019d57600080fd5b803590602001918460018302840111600160201b831117156101be57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561022857600080fd5b82018360208201111561023a57600080fd5b803590602001918460018302840111600160201b8311171561025b57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104cc915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102e15781810151838201526020016102c9565b50505050905090810190601f16801561030e5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103256105bb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035f578181015183820152602001610347565b50505050905090810190601f16801561038c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61044b600480360360808110156103b057600080fd5b810190602081018135600160201b8111156103ca57600080fd5b8201836020820111156103dc57600080fd5b803590602001918460018302840111600160201b831117156103fd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050803515159150602081013590604001356105da565b005b61006f610643565b6000546001600160a01b031690565b600061046e610455565b6001600160a01b0316336001600160a01b0316146104bd5760405162461bcd60e51b8152600401808060200182810382526024815260200180610b516024913960400191505060405180910390fd5b6104c682610652565b92915050565b600154604080516370a0823160e01b81526001600160a01b038b81166004830152915160009360609386939116916370a0823191602480820192602092909190829003018186803b15801561052057600080fd5b505afa158015610534573d6000803e3d6000fd5b505050506040513d602081101561054a57600080fd5b505110156105655761055c6000610699565b915091506105ad565b604080516001600160a01b038c166020820152808201859052606081018a905260808082018a90528251808303909101815260a09091019091526105a8906106b1565b915091505b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b6105e2610455565b6001600160a01b0316336001600160a01b0316146106315760405162461bcd60e51b8152600401808060200182810382526024815260200180610b516024913960400191505060405180910390fd5b61063d848484846106b6565b50505050565b6001546001600160a01b031690565b600080600083806020019051604081101561066c57600080fd5b5080516020909101516001549193509150610692906001600160a01b0316833084610743565b5050919050565b604080516020810190915260008152600b9190910191565b600091565b6000806000808780602001905160808110156106d157600080fd5b50805160208201516040830151606090930151919650945090925090506000610709610702620186a061271061079d565b83856107e6565b9050610715878261079d565b965061073885610725868a61079d565b6001546001600160a01b031691906107f4565b505050505050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261063d90859061084b565b60006107df83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108fc565b9392505050565b606490810191909202020490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261084690849061084b565b505050565b60606108a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109939092919063ffffffff16565b805190915015610846578080602001905160208110156108bf57600080fd5b50516108465760405162461bcd60e51b815260040180806020018281038252602a815260200180610b75602a913960400191505060405180910390fd5b6000818484111561098b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610950578181015183820152602001610938565b50505050905090810190601f16801561097d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606109a284846000856109aa565b949350505050565b60606109b585610b17565b610a06576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610a455780518252601f199092019160209182019101610a26565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610aa7576040519150601f19603f3d011682016040523d82523d6000602084013e610aac565b606091505b50915091508115610ac05791506109a29050565b805115610ad05780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315610950578181015183820152602001610938565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906109a257505015159291505056fe47534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875625361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220e1cc2d9b5034123b36b2cb7317bd1a56db61d1e56f7651cc5f2d4d8c81aae7a564736f6c634300060c0033"},"sourceId":"contracts/GSN/GSNRecipientERC20Fee.sol","sourcemap":"830:3567:2:-:0;;;857:70:1;;;-1:-1:-1;;;;;;857:70:1;885:42;857:70;;;1253:127:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1253:127:2;;;;;;;;;;-1:-1:-1;1253:127:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1253:127:2;;;;;;;;;;-1:-1:-1;1253:127:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1360:4;1366:6;1333:40;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1333:40:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1324:6:2;:49;;-1:-1:-1;;;;;;1324:49:2;-1:-1:-1;;;;;1324:49:2;;;;;;;;;;-1:-1:-1;830:3567:2;;-1:-1:-1;830:3567:2;;;;;;;;;:::o;:::-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"GSNRecipientERC20FeeMock":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"senderBalance","type":"uint256"}],"name":"MockFunctionCalled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"maxPossibleCharge","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mockFunction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"contractName":"GSNRecipientERC20FeeMock","deploymentBytecode":{"bytecode":"0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f4941790553480156200003757600080fd5b50604051620022dc380380620022dc833981810160405260408110156200005d57600080fd5b81019080805160405193929190846401000000008211156200007e57600080fd5b9083019060208201858111156200009457600080fd5b8251640100000000811182820188101715620000af57600080fd5b82525081516020918201929091019080838360005b83811015620000de578181015183820152602001620000c4565b50505050905090810190601f1680156200010c5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200013057600080fd5b9083019060208201858111156200014657600080fd5b82516401000000008111828201881017156200016157600080fd5b82525081516020918201929091019080838360005b838110156200019057818101518382015260200162000176565b50505050905090810190601f168015620001be5780820380516001836020036101000a031916815260200191505b5060405250505081818181604051620001d790620002f5565b604080825283519082015282518190602080830191606084019187019080838360005b8381101562000214578181015183820152602001620001fa565b50505050905090810190601f168015620002425780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015620002775781810151838201526020016200025d565b50505050905090810190601f168015620002a55780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f080158015620002c9573d6000803e3d6000fd5b50600180546001600160a01b0319166001600160a01b0392909216919091179055506200030392505050565b6111ea80620010f283390190565b610ddf80620003136000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806383947ea01161005b57806383947ea01461019d578063ad61ccd514610379578063e06e0e22146103f6578063fc0c546a146104a757610088565b80633e6fec041461008d57806340c10f191461009757806374e861d6146100c357806380274db7146100e7575b600080fd5b6100956104af565b005b610095600480360360408110156100ad57600080fd5b506001600160a01b03813516906020013561056a565b6100cb610578565b604080516001600160a01b039092168252519081900360200190f35b61018b600480360360208110156100fd57600080fd5b810190602081018135600160201b81111561011757600080fd5b82018360208201111561012957600080fd5b803590602001918460018302840111600160201b8311171561014a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610588945050505050565b60408051918252519081900360200190f35b6102fa60048036036101208110156101b457600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156101e757600080fd5b8201836020820111156101f957600080fd5b803590602001918460018302840111600160201b8311171561021a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561028457600080fd5b82018360208201111561029657600080fd5b803590602001918460018302840111600160201b831117156102b757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506105f0915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561033d578181015183820152602001610325565b50505050905090810190601f16801561036a5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103816106df565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103bb5781810151838201526020016103a3565b50505050905090810190601f1680156103e85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100956004803603608081101561040c57600080fd5b810190602081018135600160201b81111561042657600080fd5b82018360208201111561043857600080fd5b803590602001918460018302840111600160201b8311171561045957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050803515159150602081013590604001356106fe565b6100cb610767565b7fde4813f7525e49908b98ef6c9c80c5bc8c7d0842981a49420eb45ef36a60e0c06104d8610767565b6001600160a01b03166370a082316104ee610776565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561052b57600080fd5b505afa15801561053f573d6000803e3d6000fd5b505050506040513d602081101561055557600080fd5b505160408051918252519081900360200190a1565b610574828261079f565b5050565b6000546001600160a01b03165b90565b6000610592610578565b6001600160a01b0316336001600160a01b0316146105e15760405162461bcd60e51b8152600401808060200182810382526024815260200180610d5c6024913960400191505060405180910390fd5b6105ea82610810565b92915050565b600154604080516370a0823160e01b81526001600160a01b038b81166004830152915160009360609386939116916370a0823191602480820192602092909190829003018186803b15801561064457600080fd5b505afa158015610658573d6000803e3d6000fd5b505050506040513d602081101561066e57600080fd5b50511015610689576106806000610857565b915091506106d1565b604080516001600160a01b038c166020820152808201859052606081018a905260808082018a90528251808303909101815260a09091019091526106cc9061086f565b915091505b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610706610578565b6001600160a01b0316336001600160a01b0316146107555760405162461bcd60e51b8152600401808060200182810382526024815260200180610d5c6024913960400191505060405180910390fd5b61076184848484610874565b50505050565b6001546001600160a01b031690565b600080546001600160a01b03163314610790575033610585565b610798610901565b9050610585565b600154604080516340c10f1960e01b81526001600160a01b03858116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b1580156107f457600080fd5b505af1158015610808573d6000803e3d6000fd5b505050505050565b600080600083806020019051604081101561082a57600080fd5b5080516020909101516001549193509150610850906001600160a01b031683308461094e565b5050919050565b604080516020810190915260008152600b9190910191565b600091565b60008060008087806020019051608081101561088f57600080fd5b508051602082015160408301516060909301519196509450909250905060006108c76108c0620186a06127106109a8565b83856109f1565b90506108d387826109a8565b96506108f6856108e3868a6109a8565b6001546001600160a01b031691906109ff565b505050505050505050565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610761908590610a56565b60006109ea83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b07565b9392505050565b606490810191909202020490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a51908490610a56565b505050565b6060610aab826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b9e9092919063ffffffff16565b805190915015610a5157808060200190516020811015610aca57600080fd5b5051610a515760405162461bcd60e51b815260040180806020018281038252602a815260200180610d80602a913960400191505060405180910390fd5b60008184841115610b965760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b5b578181015183820152602001610b43565b50505050905090810190601f168015610b885780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060610bad8484600085610bb5565b949350505050565b6060610bc085610d22565b610c11576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610c505780518252601f199092019160209182019101610c31565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610cb2576040519150601f19603f3d011682016040523d82523d6000602084013e610cb7565b606091505b50915091508115610ccb579150610bad9050565b805115610cdb5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315610b5b578181015183820152602001610b43565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610bad57505015159291505056fe47534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875625361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212209ef828d342b281c37e84305a1cd65601999dcf55035c7b17082dfa9a4525f28664736f6c634300060c003360806040523480156200001157600080fd5b50604051620011ea380380620011ea833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001b89060039060208501906200024c565b508051620001ce9060049060208401906200024c565b50506005805460ff19166012179055506000620001ea62000248565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505050620002e8565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028f57805160ff1916838001178555620002bf565b82800160010185558215620002bf579182015b82811115620002bf578251825591602001919060010190620002a2565b50620002cd929150620002d1565b5090565b5b80821115620002cd5760008155600101620002d2565b610ef280620002f86000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d7146102d9578063a9059cbb14610305578063dd62ed3e14610331578063f2fde38b1461035f576100f5565b806370a082311461027f578063715018a6146102a55780638da5cb5b146102ad57806395d89b41146102d1576100f5565b806323b872dd116100d357806323b872dd146101d1578063313ce56714610207578063395093511461022557806340c10f1914610251576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b610102610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b03813516906020013561041b565b604080519115158252519081900360200190f35b6101bf610439565b60408051918252519081900360200190f35b6101a3600480360360608110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040013561043f565b61020f61048a565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561023b57600080fd5b506001600160a01b038135169060200135610493565b61027d6004803603604081101561026757600080fd5b506001600160a01b0381351690602001356104e6565b005b6101bf6004803603602081101561029557600080fd5b50356001600160a01b0316610563565b61027d61057e565b6102b561063d565b604080516001600160a01b039092168252519081900360200190f35b610102610651565b6101a3600480360360408110156102ef57600080fd5b506001600160a01b0381351690602001356106b2565b6101a36004803603604081101561031b57600080fd5b506001600160a01b03813516906020013561071a565b6101bf6004803603604081101561034757600080fd5b506001600160a01b038135811691602001351661072e565b61027d6004803603602081101561037557600080fd5b50356001600160a01b031661076b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b820191906000526020600020905b8154815290600101906020018083116103f457829003601f168201915b5050505050905090565b600061042f610428610886565b848461088a565b5060015b92915050565b60025490565b600061044961063d565b6001600160a01b0316836001600160a01b031614156104755761046d8484846108c0565b506001610483565b610480848484610a1b565b90505b9392505050565b60055460ff1690565b600061042f6104a0610886565b846104e185600160006104b1610886565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610a9d565b61088a565b6104ee610886565b60055461010090046001600160a01b03908116911614610555576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61055f8282610af7565b5050565b6001600160a01b031660009081526020819052604090205490565b610586610886565b60055461010090046001600160a01b039081169116146105ed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b600061042f6106bf610886565b846104e185604051806060016040528060258152602001610e9860259139600160006106e9610886565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610be7565b600061042f610727610886565b84846108c0565b600061073861063d565b6001600160a01b0316826001600160a01b0316141561075a5750600019610433565b6107648383610c7e565b9050610433565b610773610886565b60055461010090046001600160a01b039081169116146107da576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661081f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610db96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b61089261063d565b6001600160a01b0316826001600160a01b031614156108b0576108bb565b6108bb838383610ca9565b505050565b6001600160a01b0383166109055760405162461bcd60e51b8152600401808060200182810382526025815260200180610e4f6025913960400191505060405180910390fd5b6001600160a01b03821661094a5760405162461bcd60e51b8152600401808060200182810382526023815260200180610d966023913960400191505060405180910390fd5b6109558383836108bb565b61099281604051806060016040528060268152602001610e01602691396001600160a01b0386166000908152602081905260409020549190610be7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546109c19082610a9d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000610a288484846108c0565b610a9384610a34610886565b6104e185604051806060016040528060288152602001610e27602891396001600160a01b038a16600090815260016020526040812090610a72610886565b6001600160a01b031681526020810191909152604001600020549190610be7565b5060019392505050565b600082820183811015610483576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610b52576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610b5e600083836108bb565b600254610b6b9082610a9d565b6002556001600160a01b038216600090815260208190526040902054610b919082610a9d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115610c765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c3b578181015183820152602001610c23565b50505050905090810190601f168015610c685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610cee5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e746024913960400191505060405180910390fd5b6001600160a01b038216610d335760405162461bcd60e51b8152600401808060200182810382526022815260200180610ddf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209f7e4d528c2f5e0178238b471a63b49a19c70b02b5d8e226290a430d9cae242164736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Ensures that only users with enough gas payment token balance can have transactions relayed through the GSN."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."},"token()":{"details":"Returns the gas payment token."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","mint(address,uint256)":"0x40c10f19","mockFunction()":"0x3e6fec04","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5","token()":"0xfc0c546a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100885760003560e01c806383947ea01161005b57806383947ea01461019d578063ad61ccd514610379578063e06e0e22146103f6578063fc0c546a146104a757610088565b80633e6fec041461008d57806340c10f191461009757806374e861d6146100c357806380274db7146100e7575b600080fd5b6100956104af565b005b610095600480360360408110156100ad57600080fd5b506001600160a01b03813516906020013561056a565b6100cb610578565b604080516001600160a01b039092168252519081900360200190f35b61018b600480360360208110156100fd57600080fd5b810190602081018135600160201b81111561011757600080fd5b82018360208201111561012957600080fd5b803590602001918460018302840111600160201b8311171561014a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610588945050505050565b60408051918252519081900360200190f35b6102fa60048036036101208110156101b457600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156101e757600080fd5b8201836020820111156101f957600080fd5b803590602001918460018302840111600160201b8311171561021a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561028457600080fd5b82018360208201111561029657600080fd5b803590602001918460018302840111600160201b831117156102b757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506105f0915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561033d578181015183820152602001610325565b50505050905090810190601f16801561036a5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6103816106df565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103bb5781810151838201526020016103a3565b50505050905090810190601f1680156103e85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100956004803603608081101561040c57600080fd5b810190602081018135600160201b81111561042657600080fd5b82018360208201111561043857600080fd5b803590602001918460018302840111600160201b8311171561045957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050803515159150602081013590604001356106fe565b6100cb610767565b7fde4813f7525e49908b98ef6c9c80c5bc8c7d0842981a49420eb45ef36a60e0c06104d8610767565b6001600160a01b03166370a082316104ee610776565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561052b57600080fd5b505afa15801561053f573d6000803e3d6000fd5b505050506040513d602081101561055557600080fd5b505160408051918252519081900360200190a1565b610574828261079f565b5050565b6000546001600160a01b03165b90565b6000610592610578565b6001600160a01b0316336001600160a01b0316146105e15760405162461bcd60e51b8152600401808060200182810382526024815260200180610d5c6024913960400191505060405180910390fd5b6105ea82610810565b92915050565b600154604080516370a0823160e01b81526001600160a01b038b81166004830152915160009360609386939116916370a0823191602480820192602092909190829003018186803b15801561064457600080fd5b505afa158015610658573d6000803e3d6000fd5b505050506040513d602081101561066e57600080fd5b50511015610689576106806000610857565b915091506106d1565b604080516001600160a01b038c166020820152808201859052606081018a905260808082018a90528251808303909101815260a09091019091526106cc9061086f565b915091505b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610706610578565b6001600160a01b0316336001600160a01b0316146107555760405162461bcd60e51b8152600401808060200182810382526024815260200180610d5c6024913960400191505060405180910390fd5b61076184848484610874565b50505050565b6001546001600160a01b031690565b600080546001600160a01b03163314610790575033610585565b610798610901565b9050610585565b600154604080516340c10f1960e01b81526001600160a01b03858116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b1580156107f457600080fd5b505af1158015610808573d6000803e3d6000fd5b505050505050565b600080600083806020019051604081101561082a57600080fd5b5080516020909101516001549193509150610850906001600160a01b031683308461094e565b5050919050565b604080516020810190915260008152600b9190910191565b600091565b60008060008087806020019051608081101561088f57600080fd5b508051602082015160408301516060909301519196509450909250905060006108c76108c0620186a06127106109a8565b83856109f1565b90506108d387826109a8565b96506108f6856108e3868a6109a8565b6001546001600160a01b031691906109ff565b505050505050505050565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031692915050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610761908590610a56565b60006109ea83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b07565b9392505050565b606490810191909202020490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a51908490610a56565b505050565b6060610aab826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b9e9092919063ffffffff16565b805190915015610a5157808060200190516020811015610aca57600080fd5b5051610a515760405162461bcd60e51b815260040180806020018281038252602a815260200180610d80602a913960400191505060405180910390fd5b60008184841115610b965760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b5b578181015183820152602001610b43565b50505050905090810190601f168015610b885780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060610bad8484600085610bb5565b949350505050565b6060610bc085610d22565b610c11576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610c505780518252601f199092019160209182019101610c31565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610cb2576040519150601f19603f3d011682016040523d82523d6000602084013e610cb7565b606091505b50915091508115610ccb579150610bad9050565b805115610cdb5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315610b5b578181015183820152602001610b43565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610bad57505015159291505056fe47534e526563697069656e743a2063616c6c6572206973206e6f742052656c61794875625361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212209ef828d342b281c37e84305a1cd65601999dcf55035c7b17082dfa9a4525f28664736f6c634300060c0033"},"sourceId":"contracts/mocks/GSNRecipientERC20FeeMock.sol","sourcemap":"135:442:53:-:0;;;857:70:1;;;-1:-1:-1;;;;;;857:70:1;885:42;857:70;;;213:99:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;213:99:53;;;;;;;;;;-1:-1:-1;213:99:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;213:99:53;;;;;;;;;;-1:-1:-1;213:99:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;295:4;301:6;1360:4:2;1366:6;1333:40;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1333:40:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1324:6:2;:49;;-1:-1:-1;;;;;;1324:49:2;-1:-1:-1;;;;;1324:49:2;;;;;;;;;;-1:-1:-1;135:442:53;;-1:-1:-1;;;135:442:53;;;;;;;;;:::o;:::-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"GSNRecipientMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"integerValue","type":"uint256"},{"indexed":false,"internalType":"string","name":"stringValue","type":"string"}],"name":"Data","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"Sender","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"integerValue","type":"uint256"},{"internalType":"string","name":"stringValue","type":"string"}],"name":"msgData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"msgSender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newRelayHub","type":"address"}],"name":"upgradeRelayHub","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"GSNRecipientMock","deploymentBytecode":{"bytecode":"0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f49417905534801561003657600080fd5b50610b58806100466000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80639e30a590116100665780639e30a5901461038c578063ad61ccd5146103b2578063c2db1abe1461042f578063d737d0c71461045b578063e06e0e221461046357610093565b8063376bf2621461009857806374e861d61461014557806380274db71461016957806383947ea01461021f575b600080fd5b610143600480360360408110156100ae57600080fd5b81359190810190604081016020820135600160201b8111156100cf57600080fd5b8201836020820111156100e157600080fd5b803590602001918460018302840111600160201b8311171561010257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610514945050505050565b005b61014d610627565b604080516001600160a01b039092168252519081900360200190f35b61020d6004803603602081101561017f57600080fd5b810190602081018135600160201b81111561019957600080fd5b8201836020820111156101ab57600080fd5b803590602001918460018302840111600160201b831117156101cc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610637945050505050565b60408051918252519081900360200190f35b61030d600480360361012081101561023657600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561026957600080fd5b82018360208201111561027b57600080fd5b803590602001918460018302840111600160201b8311171561029c57600080fd5b9193909282359260208101359260408201359260608301359260a081019060800135600160201b8111156102cf57600080fd5b8201836020820111156102e157600080fd5b803590602001918460018302840111600160201b8311171561030257600080fd5b91935091503561069f565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610350578181015183820152602001610338565b50505050905090810190601f16801561037d5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610143600480360360208110156103a257600080fd5b50356001600160a01b03166106c0565b6103ba6106cc565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103f45781810151838201526020016103dc565b50505050905090810190601f1680156104215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101436004803603604081101561044557600080fd5b50803590602001356001600160a01b03166106eb565b6101436106f9565b6101436004803603608081101561047957600080fd5b810190602081018135600160201b81111561049357600080fd5b8201836020820111156104a557600080fd5b803590602001918460018302840111600160201b831117156104c657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050508035151591506020810135906040013561073f565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea061053d6107a4565b8383604051808060200184815260200180602001838103835286818151815260200191508051906020019080838360005b8381101561058657818101518382015260200161056e565b50505050905090810190601f1680156105b35780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156105e65781810151838201526020016105ce565b50505050905090810190601f1680156106135780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15050565b6000546001600160a01b03165b90565b6000610641610627565b6001600160a01b0316336001600160a01b0316146106905760405162461bcd60e51b8152600401808060200182810382526024815260200180610aff6024913960400191505060405180910390fd5b610699826107b3565b92915050565b60408051602081019091526000808252909b509b9950505050505050505050565b6106c9816107b9565b50565b6040805180820190915260058152640312e302e360dc1b602082015290565b6106f582826108b9565b5050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc610722610925565b604080516001600160a01b039092168252519081900360200190a1565b610747610627565b6001600160a01b0316336001600160a01b0316146107965760405162461bcd60e51b8152600401808060200182810382526024815260200180610aff6024913960400191505060405180910390fd5b61079e848484845b50505050565b60606107ae61092f565b905090565b50600090565b6000546001600160a01b039081169082166108055760405162461bcd60e51b815260040180806020018281038252602e815260200180610aa4602e913960400191505060405180910390fd5b806001600160a01b0316826001600160a01b031614156108565760405162461bcd60e51b815260040180806020018281038252602d815260200180610ad2602d913960400191505060405180910390fd5b816001600160a01b0316816001600160a01b03167fb9f84b8e65164b14439ae3620df0a4d8786d896996c0282b683f9d8c08f046e860405160405180910390a350600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000805460408051627b8a6760e11b8152600481018690526001600160a01b0385811660248301529151919092169262f714ce926044808201939182900301818387803b15801561090957600080fd5b505af115801561091d573d6000803e3d6000fd5b505050505050565b60006107ae610993565b6000546060906001600160a01b03163314610984576000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935061063492505050565b61098c6109b5565b9050610634565b600080546001600160a01b031633146109ad575033610634565b61098c610a56565b60606013193601818167ffffffffffffffff811180156109d457600080fd5b506040519080825280601f01601f1916602001820160405280156109ff576020820181803683370190505b50905060005b82811015610a4f5760003682818110610a1a57fe5b9050013560f81c60f81b828281518110610a3057fe5b60200101906001600160f81b031916908160001a905350600101610a05565b5091505090565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169291505056fe47534e526563697069656e743a206e65772052656c617948756220697320746865207a65726f206164647265737347534e526563697069656e743a206e65772052656c6179487562206973207468652063757272656e74206f6e6547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220313ca331630388ad10834835a83c5e501f2659c409769bdf4f708f546bd0305064736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","msgData(uint256,string)":"0x376bf262","msgSender()":"0xd737d0c7","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5","upgradeRelayHub(address)":"0x9e30a590","withdrawDeposits(uint256,address)":"0xc2db1abe"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100935760003560e01c80639e30a590116100665780639e30a5901461038c578063ad61ccd5146103b2578063c2db1abe1461042f578063d737d0c71461045b578063e06e0e221461046357610093565b8063376bf2621461009857806374e861d61461014557806380274db71461016957806383947ea01461021f575b600080fd5b610143600480360360408110156100ae57600080fd5b81359190810190604081016020820135600160201b8111156100cf57600080fd5b8201836020820111156100e157600080fd5b803590602001918460018302840111600160201b8311171561010257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610514945050505050565b005b61014d610627565b604080516001600160a01b039092168252519081900360200190f35b61020d6004803603602081101561017f57600080fd5b810190602081018135600160201b81111561019957600080fd5b8201836020820111156101ab57600080fd5b803590602001918460018302840111600160201b831117156101cc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610637945050505050565b60408051918252519081900360200190f35b61030d600480360361012081101561023657600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561026957600080fd5b82018360208201111561027b57600080fd5b803590602001918460018302840111600160201b8311171561029c57600080fd5b9193909282359260208101359260408201359260608301359260a081019060800135600160201b8111156102cf57600080fd5b8201836020820111156102e157600080fd5b803590602001918460018302840111600160201b8311171561030257600080fd5b91935091503561069f565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610350578181015183820152602001610338565b50505050905090810190601f16801561037d5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610143600480360360208110156103a257600080fd5b50356001600160a01b03166106c0565b6103ba6106cc565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103f45781810151838201526020016103dc565b50505050905090810190601f1680156104215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101436004803603604081101561044557600080fd5b50803590602001356001600160a01b03166106eb565b6101436106f9565b6101436004803603608081101561047957600080fd5b810190602081018135600160201b81111561049357600080fd5b8201836020820111156104a557600080fd5b803590602001918460018302840111600160201b831117156104c657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050508035151591506020810135906040013561073f565b7faf235354a0a47c91ee171961326335cb2d1a8e55b8a89859b0e61eb049e50ea061053d6107a4565b8383604051808060200184815260200180602001838103835286818151815260200191508051906020019080838360005b8381101561058657818101518382015260200161056e565b50505050905090810190601f1680156105b35780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156105e65781810151838201526020016105ce565b50505050905090810190601f1680156106135780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15050565b6000546001600160a01b03165b90565b6000610641610627565b6001600160a01b0316336001600160a01b0316146106905760405162461bcd60e51b8152600401808060200182810382526024815260200180610aff6024913960400191505060405180910390fd5b610699826107b3565b92915050565b60408051602081019091526000808252909b509b9950505050505050505050565b6106c9816107b9565b50565b6040805180820190915260058152640312e302e360dc1b602082015290565b6106f582826108b9565b5050565b7fd6558c3ed910d959271054471fd1c326679d9fece99c5091b00ed89627cf2bfc610722610925565b604080516001600160a01b039092168252519081900360200190a1565b610747610627565b6001600160a01b0316336001600160a01b0316146107965760405162461bcd60e51b8152600401808060200182810382526024815260200180610aff6024913960400191505060405180910390fd5b61079e848484845b50505050565b60606107ae61092f565b905090565b50600090565b6000546001600160a01b039081169082166108055760405162461bcd60e51b815260040180806020018281038252602e815260200180610aa4602e913960400191505060405180910390fd5b806001600160a01b0316826001600160a01b031614156108565760405162461bcd60e51b815260040180806020018281038252602d815260200180610ad2602d913960400191505060405180910390fd5b816001600160a01b0316816001600160a01b03167fb9f84b8e65164b14439ae3620df0a4d8786d896996c0282b683f9d8c08f046e860405160405180910390a350600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000805460408051627b8a6760e11b8152600481018690526001600160a01b0385811660248301529151919092169262f714ce926044808201939182900301818387803b15801561090957600080fd5b505af115801561091d573d6000803e3d6000fd5b505050505050565b60006107ae610993565b6000546060906001600160a01b03163314610984576000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935061063492505050565b61098c6109b5565b9050610634565b600080546001600160a01b031633146109ad575033610634565b61098c610a56565b60606013193601818167ffffffffffffffff811180156109d457600080fd5b506040519080825280601f01601f1916602001820160405280156109ff576020820181803683370190505b50905060005b82811015610a4f5760003682818110610a1a57fe5b9050013560f81c60f81b828281518110610a3057fe5b60200101906001600160f81b031916908160001a905350600101610a05565b5091505090565b600060606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169291505056fe47534e526563697069656e743a206e65772052656c617948756220697320746865207a65726f206164647265737347534e526563697069656e743a206e65772052656c6179487562206973207468652063757272656e74206f6e6547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220313ca331630388ad10834835a83c5e501f2659c409769bdf4f708f546bd0305064736f6c634300060c0033"},"sourceId":"contracts/mocks/GSNRecipientMock.sol","sourcemap":"215:1028:54:-:0;;;857:70:1;;;-1:-1:-1;;;;;;857:70:1;885:42;857:70;;;215:1028:54;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"GSNRecipientSignature":{"abi":[{"inputs":[{"internalType":"address","name":"trustedSigner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"inputs":[{"internalType":"address","name":"relay","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"approvalData","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"GSNRecipientSignature","deploymentBytecode":{"bytecode":"0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f49417905534801561003657600080fd5b50604051610aa7380380610aa78339818101604052602081101561005957600080fd5b50516001600160a01b0381166100a05760405162461bcd60e51b8152600401808060200182810382526039815260200180610a6e6039913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b039290921691909117905561099f806100cf6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806374e861d61461005c57806380274db71461008057806383947ea014610136578063ad61ccd514610312578063e06e0e221461038f575b600080fd5b610064610442565b604080516001600160a01b039092168252519081900360200190f35b6101246004803603602081101561009657600080fd5b810190602081018135600160201b8111156100b057600080fd5b8201836020820111156100c257600080fd5b803590602001918460018302840111600160201b831117156100e357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610451945050505050565b60408051918252519081900360200190f35b610293600480360361012081101561014d57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561018057600080fd5b82018360208201111561019257600080fd5b803590602001918460018302840111600160201b831117156101b357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561021d57600080fd5b82018360208201111561022f57600080fd5b803590602001918460018302840111600160201b8311171561025057600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104b9915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102d65781810151838201526020016102be565b50505050905090810190601f1680156103035780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b61031a6105fa565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035457818101518382015260200161033c565b50505050905090810190601f1680156103815780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610440600480360360808110156103a557600080fd5b810190602081018135600160201b8111156103bf57600080fd5b8201836020820111156103d157600080fd5b803590602001918460018302840111600160201b831117156103f257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505080351515915060208101359060400135610619565b005b6000546001600160a01b031690565b600061045b610442565b6001600160a01b0316336001600160a01b0316146104aa5760405162461bcd60e51b81526004018080602001828103825260248152602001806109466024913960400191505060405180910390fd5b6104b38261067e565b92915050565b60006060808b8b8b8b8b8b8b6104cd610442565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b602083106105245780518252601f199092019160209182019101610505565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a890930190526001548251918301919091209195506001600160a01b031693506105c192508891506105bb90610684565b906106d5565b6001600160a01b031614156105e2576105d86108c0565b92509250506105ec565b6105d860006108e4565b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610621610442565b6001600160a01b0316336001600160a01b0316146106705760405162461bcd60e51b81526004018080602001828103825260248152602001806109466024913960400191505060405180910390fd5b610678848484845b50505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461072d576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561079e5760405162461bcd60e51b81526004018080602001828103825260228152602001806109026022913960400191505060405180910390fd5b8060ff16601b141580156107b657508060ff16601c14155b156107f25760405162461bcd60e51b81526004018080602001828103825260228152602001806109246022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561084e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108b6576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600060606108dc604051806020016040528060008152506108fc565b915091509091565b604080516020810190915260008152600b9190910191565b60009156fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220abd4e09a626639362d3aab27376c3bc6e0b995aabe2e5576cad3d9533651d82264736f6c634300060c003347534e526563697069656e745369676e61747572653a2074727573746564207369676e657220697320746865207a65726f2061646472657373"},"devdoc":{"details":"A xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategy] that allows relayed transactions through when they are accompanied by the signature of a trusted signer. The intent is for this signature to be generated by a server that performs validations off-chain. Note that nothing is charged to the user in this scheme. Thus, the server should make sure to account for this in their economic and threat model.","kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Ensures that only transactions with a trusted signature can be relayed through the GSN."},"constructor":{"details":"Sets the trusted signer that is going to be producing signatures to approve relayed calls."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c806374e861d61461005c57806380274db71461008057806383947ea014610136578063ad61ccd514610312578063e06e0e221461038f575b600080fd5b610064610442565b604080516001600160a01b039092168252519081900360200190f35b6101246004803603602081101561009657600080fd5b810190602081018135600160201b8111156100b057600080fd5b8201836020820111156100c257600080fd5b803590602001918460018302840111600160201b831117156100e357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610451945050505050565b60408051918252519081900360200190f35b610293600480360361012081101561014d57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561018057600080fd5b82018360208201111561019257600080fd5b803590602001918460018302840111600160201b831117156101b357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561021d57600080fd5b82018360208201111561022f57600080fd5b803590602001918460018302840111600160201b8311171561025057600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104b9915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102d65781810151838201526020016102be565b50505050905090810190601f1680156103035780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b61031a6105fa565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561035457818101518382015260200161033c565b50505050905090810190601f1680156103815780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610440600480360360808110156103a557600080fd5b810190602081018135600160201b8111156103bf57600080fd5b8201836020820111156103d157600080fd5b803590602001918460018302840111600160201b831117156103f257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505080351515915060208101359060400135610619565b005b6000546001600160a01b031690565b600061045b610442565b6001600160a01b0316336001600160a01b0316146104aa5760405162461bcd60e51b81526004018080602001828103825260248152602001806109466024913960400191505060405180910390fd5b6104b38261067e565b92915050565b60006060808b8b8b8b8b8b8b6104cd610442565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b602083106105245780518252601f199092019160209182019101610505565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a890930190526001548251918301919091209195506001600160a01b031693506105c192508891506105bb90610684565b906106d5565b6001600160a01b031614156105e2576105d86108c0565b92509250506105ec565b6105d860006108e4565b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b610621610442565b6001600160a01b0316336001600160a01b0316146106705760405162461bcd60e51b81526004018080602001828103825260248152602001806109466024913960400191505060405180910390fd5b610678848484845b50505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461072d576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561079e5760405162461bcd60e51b81526004018080602001828103825260228152602001806109026022913960400191505060405180910390fd5b8060ff16601b141580156107b657508060ff16601c14155b156107f25760405162461bcd60e51b81526004018080602001828103825260228152602001806109246022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561084e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108b6576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600060606108dc604051806020016040528060008152506108fc565b915091509091565b604080516020810190915260008152600b9190910191565b60009156fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220abd4e09a626639362d3aab27376c3bc6e0b995aabe2e5576cad3d9533651d82264736f6c634300060c0033"},"sourceId":"contracts/GSN/GSNRecipientSignature.sol","sourcemap":"560:1854:3:-:0;;;857:70:1;;;-1:-1:-1;;;;;;857:70:1;885:42;857:70;;;872:196:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;872:196:3;-1:-1:-1;;;;;932:27:3;;924:97;;;;-1:-1:-1;;;924:97:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1031:14;:30;;-1:-1:-1;;;;;;1031:30:3;-1:-1:-1;;;;;1031:30:3;;;;;;;;;;560:1854;;;-1:-1:-1;560:1854:3;;","userdoc":{"kind":"user","methods":{},"version":1}},"GSNRecipientSignatureMock":{"abi":[{"inputs":[{"internalType":"address","name":"trustedSigner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"MockFunctionCalled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRelayHub","type":"address"},{"indexed":true,"internalType":"address","name":"newRelayHub","type":"address"}],"name":"RelayHubChanged","type":"event"},{"inputs":[{"internalType":"address","name":"relay","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"approvalData","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mockFunction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relayHubVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"GSNRecipientSignatureMock","deploymentBytecode":{"bytecode":"0x6080604052600080546001600160a01b03191673d216153c06e857cd7f72665e0af1d7d82172f49417905534801561003657600080fd5b50604051610ae7380380610ae78339818101604052602081101561005957600080fd5b5051806001600160a01b0381166100a15760405162461bcd60e51b8152600401808060200182810382526039815260200180610aae6039913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055506109dd806100d16000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80633e6fec041461006757806374e861d61461007157806380274db71461009557806383947ea01461014b578063ad61ccd514610327578063e06e0e22146103a4575b600080fd5b61006f610455565b005b610079610480565b604080516001600160a01b039092168252519081900360200190f35b610139600480360360208110156100ab57600080fd5b810190602081018135600160201b8111156100c557600080fd5b8201836020820111156100d757600080fd5b803590602001918460018302840111600160201b831117156100f857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061048f945050505050565b60408051918252519081900360200190f35b6102a8600480360361012081101561016257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561019557600080fd5b8201836020820111156101a757600080fd5b803590602001918460018302840111600160201b831117156101c857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561023257600080fd5b82018360208201111561024457600080fd5b803590602001918460018302840111600160201b8311171561026557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104f7915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102eb5781810151838201526020016102d3565b50505050905090810190601f1680156103185780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b61032f610638565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610369578181015183820152602001610351565b50505050905090810190601f1680156103965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006f600480360360808110156103ba57600080fd5b810190602081018135600160201b8111156103d457600080fd5b8201836020820111156103e657600080fd5b803590602001918460018302840111600160201b8311171561040757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505080351515915060208101359060400135610657565b6040517f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1565b6000546001600160a01b031690565b6000610499610480565b6001600160a01b0316336001600160a01b0316146104e85760405162461bcd60e51b81526004018080602001828103825260248152602001806109846024913960400191505060405180910390fd5b6104f1826106bc565b92915050565b60006060808b8b8b8b8b8b8b61050b610480565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b602083106105625780518252601f199092019160209182019101610543565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a890930190526001548251918301919091209195506001600160a01b031693506105ff92508891506105f9906106c2565b90610713565b6001600160a01b03161415610620576106166108fe565b925092505061062a565b6106166000610922565b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b61065f610480565b6001600160a01b0316336001600160a01b0316146106ae5760405162461bcd60e51b81526004018080602001828103825260248152602001806109846024913960400191505060405180910390fd5b6106b6848484845b50505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461076b576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156107dc5760405162461bcd60e51b81526004018080602001828103825260228152602001806109406022913960400191505060405180910390fd5b8060ff16601b141580156107f457508060ff16601c14155b156108305760405162461bcd60e51b81526004018080602001828103825260228152602001806109626022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561088c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108f4576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b6000606061091a6040518060200160405280600081525061093a565b915091509091565b604080516020810190915260008152600b9190910191565b60009156fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220708429f0e21ae65d764e412fa5892f60478a6f3c69bcd6dd56284a0f1956fd1364736f6c634300060c003347534e526563697069656e745369676e61747572653a2074727573746564207369676e657220697320746865207a65726f2061646472657373"},"devdoc":{"kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Ensures that only transactions with a trusted signature can be relayed through the GSN."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} contract for this recipient."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"See `IRelayRecipient.postRelayedCall`. This function should not be overriden directly, use `_postRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"preRelayedCall(bytes)":{"details":"See `IRelayRecipient.preRelayedCall`. This function should not be overriden directly, use `_preRelayedCall` instead. * Requirements: - the caller must be the `RelayHub` contract."},"relayHubVersion()":{"details":"Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","mockFunction()":"0x3e6fec04","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7","relayHubVersion()":"0xad61ccd5"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100625760003560e01c80633e6fec041461006757806374e861d61461007157806380274db71461009557806383947ea01461014b578063ad61ccd514610327578063e06e0e22146103a4575b600080fd5b61006f610455565b005b610079610480565b604080516001600160a01b039092168252519081900360200190f35b610139600480360360208110156100ab57600080fd5b810190602081018135600160201b8111156100c557600080fd5b8201836020820111156100d757600080fd5b803590602001918460018302840111600160201b831117156100f857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061048f945050505050565b60408051918252519081900360200190f35b6102a8600480360361012081101561016257600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b81111561019557600080fd5b8201836020820111156101a757600080fd5b803590602001918460018302840111600160201b831117156101c857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929584359560208601359560408101359550606081013594509192509060a081019060800135600160201b81111561023257600080fd5b82018360208201111561024457600080fd5b803590602001918460018302840111600160201b8311171561026557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506104f7915050565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102eb5781810151838201526020016102d3565b50505050905090810190601f1680156103185780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b61032f610638565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610369578181015183820152602001610351565b50505050905090810190601f1680156103965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006f600480360360808110156103ba57600080fd5b810190602081018135600160201b8111156103d457600080fd5b8201836020820111156103e657600080fd5b803590602001918460018302840111600160201b8311171561040757600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505080351515915060208101359060400135610657565b6040517f52c66ed6ec9ca819cba26fe2b2650059270d8981b295af300187a964f54a8c2390600090a1565b6000546001600160a01b031690565b6000610499610480565b6001600160a01b0316336001600160a01b0316146104e85760405162461bcd60e51b81526004018080602001828103825260248152602001806109846024913960400191505060405180910390fd5b6104f1826106bc565b92915050565b60006060808b8b8b8b8b8b8b61050b610480565b30604051602001808a6001600160a01b031660601b8152601401896001600160a01b031660601b815260140188805190602001908083835b602083106105625780518252601f199092019160209182019101610543565b51815160209384036101000a6000190180199092169116179052920198895250878101969096525060408087019490945260608087019390935290821b6bffffffffffffffffffffffff199081166080870152911b1660948401528051808403608801815260a890930190526001548251918301919091209195506001600160a01b031693506105ff92508891506105f9906106c2565b90610713565b6001600160a01b03161415610620576106166108fe565b925092505061062a565b6106166000610922565b995099975050505050505050565b6040805180820190915260058152640312e302e360dc1b602082015290565b61065f610480565b6001600160a01b0316336001600160a01b0316146106ae5760405162461bcd60e51b81526004018080602001828103825260248152602001806109846024913960400191505060405180910390fd5b6106b6848484845b50505050565b50600090565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461076b576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156107dc5760405162461bcd60e51b81526004018080602001828103825260228152602001806109406022913960400191505060405180910390fd5b8060ff16601b141580156107f457508060ff16601c14155b156108305760405162461bcd60e51b81526004018080602001828103825260228152602001806109626022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561088c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108f4576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b6000606061091a6040518060200160405280600081525061093a565b915091509091565b604080516020810190915260008152600b9190910191565b60009156fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c756547534e526563697069656e743a2063616c6c6572206973206e6f742052656c6179487562a2646970667358221220708429f0e21ae65d764e412fa5892f60478a6f3c69bcd6dd56284a0f1956fd1364736f6c634300060c0033"},"sourceId":"contracts/mocks/GSNRecipientSignatureMock.sol","sourcemap":"136:276:55:-:0;;;857:70:1;;;-1:-1:-1;;;;;;857:70:1;885:42;857:70;;;216:82:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;216:82:55;;-1:-1:-1;;;;;932:27:3;;924:97;;;;-1:-1:-1;;;924:97:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1031:14;:30;;-1:-1:-1;;;;;;1031:30:3;-1:-1:-1;;;;;1031:30:3;;;;;;;;;;-1:-1:-1;136:276:55;;;-1:-1:-1;136:276:55;;","userdoc":{"kind":"user","methods":{},"version":1}},"IERC1155":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"IERC1155","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Required interface of an ERC1155 compliant contract, as defined in the https://eips.ethereum.org/EIPS/eip-1155[EIP]. _Available since v3.1._","events":{"ApprovalForAll(address,address,bool)":{"details":"Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to `approved`."},"TransferBatch(address,address,address,uint256[],uint256[])":{"details":"Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all transfers."},"TransferSingle(address,address,address,uint256,uint256)":{"details":"Emitted when `value` tokens of token type `id` are transfered from `from` to `to` by `operator`."},"URI(string,uint256)":{"details":"Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. If an {URI} event was emitted for `id`, the standard https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value returned by {IERC1155MetadataURI-uri}."}},"kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. Emits a {TransferBatch} event. Requirements: - `ids` and `amounts` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"Transfers `amount` tokens of token type `id` from `from` to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `amount`. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value."},"setApprovalForAll(address,bool)":{"details":"Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller."},"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","isApprovedForAll(address,address)":"0xe985e9c5","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC1155/IERC1155.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC1155MetadataURI":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"contractName":"IERC1155MetadataURI","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the optional ERC1155MetadataExtension interface, as defined in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. _Available since v3.1._","kind":"dev","methods":{"balanceOf(address,uint256)":{"details":"Returns the amount of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address."},"balanceOfBatch(address[],uint256[])":{"details":"xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length."},"isApprovedForAll(address,address)":{"details":"Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}."},"safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":{"details":"xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. Emits a {TransferBatch} event. Requirements: - `ids` and `amounts` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value."},"safeTransferFrom(address,address,uint256,uint256,bytes)":{"details":"Transfers `amount` tokens of token type `id` from `from` to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `amount`. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value."},"setApprovalForAll(address,bool)":{"details":"Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller."},"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."},"uri(uint256)":{"details":"Returns the URI for token type `id`. If the `\\{id\\}` substring is present in the URI, it must be replaced by clients with the actual token type ID."}},"version":1},"methodIdentifiers":{"balanceOf(address,uint256)":"0x00fdd58e","balanceOfBatch(address[],uint256[])":"0x4e1273f4","isApprovedForAll(address,address)":"0xe985e9c5","safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)":"0x2eb2c2d6","safeTransferFrom(address,address,uint256,uint256,bytes)":"0xf242432a","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","uri(uint256)":"0x0e89341c"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC1155/IERC1155MetadataURI.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC1155Receiver":{"abi":[{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"IERC1155Receiver","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"kind":"dev","methods":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":{"details":"Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` (i.e. 0xbc197c81, or its own function selector).","params":{"data":"Additional data with no specified format","from":"The address which previously owned the token","ids":"An array containing ids of each token being transferred (order and length must match values array)","operator":"The address which initiated the batch transfer (i.e. msg.sender)","values":"An array containing amounts of each token being transferred (order and length must match ids array)"},"returns":{"_0":"`bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed"}},"onERC1155Received(address,address,uint256,uint256,bytes)":{"details":"Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` (i.e. 0xf23a6e61, or its own function selector).","params":{"data":"Additional data with no specified format","from":"The address which previously owned the token","id":"The ID of the token being transferred","operator":"The address which initiated the transfer (i.e. msg.sender)","value":"The amount of tokens being transferred"},"returns":{"_0":"`bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed"}},"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)":"0xbc197c81","onERC1155Received(address,address,uint256,uint256,bytes)":"0xf23a6e61","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC1155/IERC1155Receiver.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"notice":"_Available since v3.1._","version":1}},"IERC165":{"abi":[{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"IERC165","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the ERC165 standard, as defined in the https://eips.ethereum.org/EIPS/eip-165[EIP]. Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}.","kind":"dev","methods":{"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."}},"version":1},"methodIdentifiers":{"supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/introspection/IERC165.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC1820Implementer":{"abi":[{"inputs":[{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"canImplementInterfaceForAddress","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}],"contractName":"IERC1820Implementer","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface for an ERC1820 implementer, as defined in the https://eips.ethereum.org/EIPS/eip-1820#interface-implementation-erc1820implementerinterface[EIP]. Used by contracts that will be registered as implementers in the {IERC1820Registry}.","kind":"dev","methods":{"canImplementInterfaceForAddress(bytes32,address)":{"details":"Returns a special value (`ERC1820_ACCEPT_MAGIC`) if this contract implements `interfaceHash` for `account`. See {IERC1820Registry-setInterfaceImplementer}."}},"version":1},"methodIdentifiers":{"canImplementInterfaceForAddress(bytes32,address)":"0x249cb3fa"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/introspection/IERC1820Implementer.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC1820Registry":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"implementer","type":"address"}],"name":"InterfaceImplementerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"newManager","type":"address"}],"name":"ManagerChanged","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"}],"name":"getInterfaceImplementer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"implementsERC165Interface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"implementsERC165InterfaceNoCache","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"interfaceName","type":"string"}],"name":"interfaceHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"interfaceHash","type":"bytes32"},{"internalType":"address","name":"implementer","type":"address"}],"name":"setInterfaceImplementer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"newManager","type":"address"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"updateERC165Cache","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC1820Registry","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the global ERC1820 Registry, as defined in the https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register implementers for interfaces in this registry, as well as query support. Implementers may be shared by multiple accounts, and can also implement more than a single interface for each account. Contracts can implement interfaces for themselves, but externally-owned accounts (EOA) must delegate this to a contract. {IERC165} interfaces can also be queried via the registry. For an in-depth explanation and source code analysis, see the EIP text.","kind":"dev","methods":{"getInterfaceImplementer(address,bytes32)":{"details":"Returns the implementer of `interfaceHash` for `account`. If no such implementer is registered, returns the zero address. If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28 zeroes), `account` will be queried for support of it. `account` being the zero address is an alias for the caller's address."},"getManager(address)":{"details":"Returns the manager for `account`. See {setManager}."},"implementsERC165Interface(address,bytes4)":{"params":{"account":"Address of the contract to check.","interfaceId":"ERC165 interface to check."},"returns":{"_0":"True if `account` implements `interfaceId`, false otherwise."}},"implementsERC165InterfaceNoCache(address,bytes4)":{"params":{"account":"Address of the contract to check.","interfaceId":"ERC165 interface to check."},"returns":{"_0":"True if `account` implements `interfaceId`, false otherwise."}},"interfaceHash(string)":{"details":"Returns the interface hash for an `interfaceName`, as defined in the corresponding https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP]."},"setInterfaceImplementer(address,bytes32,address)":{"details":"Sets the `implementer` contract as ``account``'s implementer for `interfaceHash`. `account` being the zero address is an alias for the caller's address. The zero address can also be used in `implementer` to remove an old one. See {interfaceHash} to learn how these are created. Emits an {InterfaceImplementerSet} event. Requirements: - the caller must be the current manager for `account`. - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not end in 28 zeroes). - `implementer` must implement {IERC1820Implementer} and return true when queried for support, unless `implementer` is the caller. See {IERC1820Implementer-canImplementInterfaceForAddress}."},"setManager(address,address)":{"details":"Sets `newManager` as the manager for `account`. A manager of an account is able to set interface implementers for it. By default, each account is its own manager. Passing a value of `0x0` in `newManager` will reset the manager to this initial state. Emits a {ManagerChanged} event. Requirements: - the caller must be the current manager for `account`."},"updateERC165Cache(address,bytes4)":{"params":{"account":"Address of the contract for which to update the cache.","interfaceId":"ERC165 interface for which to update the cache."}}},"version":1},"methodIdentifiers":{"getInterfaceImplementer(address,bytes32)":"0xaabbb8ca","getManager(address)":"0x3d584063","implementsERC165Interface(address,bytes4)":"0xf712f3e8","implementsERC165InterfaceNoCache(address,bytes4)":"0xb7056765","interfaceHash(string)":"0x65ba36c1","setInterfaceImplementer(address,bytes32,address)":"0x29965a1d","setManager(address,address)":"0x5df8122f","updateERC165Cache(address,bytes4)":"0xa41e7d51"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/introspection/IERC1820Registry.sol","sourcemap":"","userdoc":{"kind":"user","methods":{"implementsERC165Interface(address,bytes4)":{"notice":"Checks whether a contract implements an ERC165 interface or not. If the result is not cached a direct lookup on the contract address is performed. If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling {updateERC165Cache} with the contract address."},"implementsERC165InterfaceNoCache(address,bytes4)":{"notice":"Checks whether a contract implements an ERC165 interface or not without using nor updating the cache."},"updateERC165Cache(address,bytes4)":{"notice":"Updates the cache with whether the contract implements an ERC165 interface or not."}},"version":1}},"IERC20":{"abi":[{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","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"}],"contractName":"IERC20","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the ERC20 standard as defined in the EIP.","events":{"Approval(address,address,uint256)":{"details":"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."},"Transfer(address,address,uint256)":{"details":"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."}},"kind":"dev","methods":{"allowance(address,address)":{"details":"Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called."},"approve(address,uint256)":{"details":"Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event."},"balanceOf(address)":{"details":"Returns the amount of tokens owned by `account`."},"totalSupply()":{"details":"Returns the amount of tokens in existence."},"transfer(address,uint256)":{"details":"Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."},"transferFrom(address,address,uint256)":{"details":"Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."}},"version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC20/IERC20.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC721":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC721","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Required interface of an ERC721 compliant contract.","events":{"Approval(address,address,uint256)":{"details":"Emitted when `owner` enables `approved` to manage the `tokenId` token."},"ApprovalForAll(address,address,bool)":{"details":"Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets."},"Transfer(address,address,uint256)":{"details":"Emitted when `tokenId` token is transfered from `from` to `to`."}},"kind":"dev","methods":{"approve(address,uint256)":{"details":"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."},"balanceOf(address)":{"details":"Returns the number of tokens in ``owner``'s account."},"getApproved(uint256)":{"details":"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."},"isApprovedForAll(address,address)":{"details":"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"},"ownerOf(uint256)":{"details":"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."},"safeTransferFrom(address,address,uint256)":{"details":"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."},"setApprovalForAll(address,bool)":{"details":"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event."},"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."},"transferFrom(address,address,uint256)":{"details":"Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."}},"version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","ownerOf(uint256)":"0x6352211e","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC721/IERC721.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC721Enumerable":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC721Enumerable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"See https://eips.ethereum.org/EIPS/eip-721","kind":"dev","methods":{"approve(address,uint256)":{"details":"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."},"balanceOf(address)":{"details":"Returns the number of tokens in ``owner``'s account."},"getApproved(uint256)":{"details":"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."},"isApprovedForAll(address,address)":{"details":"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"},"ownerOf(uint256)":{"details":"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."},"safeTransferFrom(address,address,uint256)":{"details":"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."},"setApprovalForAll(address,bool)":{"details":"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event."},"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."},"tokenByIndex(uint256)":{"details":"Returns a token ID at a given `index` of all the tokens stored by the contract. Use along with {totalSupply} to enumerate all tokens."},"tokenOfOwnerByIndex(address,uint256)":{"details":"Returns a token ID owned by `owner` at a given `index` of its token list. Use along with {balanceOf} to enumerate all of ``owner``'s tokens."},"totalSupply()":{"details":"Returns the total amount of tokens stored by the contract."},"transferFrom(address,address,uint256)":{"details":"Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."}},"title":"ERC-721 Non-Fungible Token Standard, optional enumeration extension","version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","ownerOf(uint256)":"0x6352211e","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","tokenByIndex(uint256)":"0x4f6ccce7","tokenOfOwnerByIndex(address,uint256)":"0x2f745c59","totalSupply()":"0x18160ddd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC721/IERC721Enumerable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC721Metadata":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC721Metadata","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"See https://eips.ethereum.org/EIPS/eip-721","kind":"dev","methods":{"approve(address,uint256)":{"details":"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."},"balanceOf(address)":{"details":"Returns the number of tokens in ``owner``'s account."},"getApproved(uint256)":{"details":"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."},"isApprovedForAll(address,address)":{"details":"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"},"name()":{"details":"Returns the token collection name."},"ownerOf(uint256)":{"details":"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."},"safeTransferFrom(address,address,uint256)":{"details":"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."},"setApprovalForAll(address,bool)":{"details":"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event."},"supportsInterface(bytes4)":{"details":"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."},"symbol()":{"details":"Returns the token collection symbol."},"tokenURI(uint256)":{"details":"Returns the Uniform Resource Identifier (URI) for `tokenId` token."},"transferFrom(address,address,uint256)":{"details":"Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."}},"title":"ERC-721 Non-Fungible Token Standard, optional metadata extension","version":1},"methodIdentifiers":{"approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","getApproved(uint256)":"0x081812fc","isApprovedForAll(address,address)":"0xe985e9c5","name()":"0x06fdde03","ownerOf(uint256)":"0x6352211e","safeTransferFrom(address,address,uint256)":"0x42842e0e","safeTransferFrom(address,address,uint256,bytes)":"0xb88d4fde","setApprovalForAll(address,bool)":"0xa22cb465","supportsInterface(bytes4)":"0x01ffc9a7","symbol()":"0x95d89b41","tokenURI(uint256)":"0xc87b56dd","transferFrom(address,address,uint256)":"0x23b872dd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC721/IERC721Metadata.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC721Receiver":{"abi":[{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC721Receiver","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface for any contract that wants to support safeTransfers from ERC721 asset contracts.","kind":"dev","methods":{"onERC721Received(address,address,uint256,bytes)":{"details":"Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} by `operator` from `from`, this function is called. It must return its Solidity selector to confirm the token transfer. If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`."}},"title":"ERC721 token receiver interface","version":1},"methodIdentifiers":{"onERC721Received(address,address,uint256,bytes)":"0x150b7a02"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC721/IERC721Receiver.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC777":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"AuthorizedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"tokenHolder","type":"address"}],"name":"RevokedOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"Sent","type":"event"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"authorizeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"granularity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"isOperatorFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"operatorSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"revokeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"contractName":"IERC777","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the ERC777Token standard as defined in the EIP. This contract uses the https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let token holders and recipients react to token movements by using setting implementers for the associated interfaces in said registry. See {IERC1820Registry} and {ERC1820Implementer}.","kind":"dev","methods":{"authorizeOperator(address)":{"details":"Make an account an operator of the caller. See {isOperatorFor}. Emits an {AuthorizedOperator} event. Requirements - `operator` cannot be calling address."},"balanceOf(address)":{"details":"Returns the amount of tokens owned by an account (`owner`)."},"burn(uint256,bytes)":{"details":"Destroys `amount` tokens from the caller's account, reducing the total supply. If a send hook is registered for the caller, the corresponding function will be called with `data` and empty `operatorData`. See {IERC777Sender}. Emits a {Burned} event. Requirements - the caller must have at least `amount` tokens."},"defaultOperators()":{"details":"Returns the list of default operators. These accounts are operators for all token holders, even if {authorizeOperator} was never called on them. This list is immutable, but individual holders may revoke these via {revokeOperator}, in which case {isOperatorFor} will return false."},"granularity()":{"details":"Returns the smallest part of the token that is not divisible. This means all token operations (creation, movement and destruction) must have amounts that are a multiple of this number. For most token contracts, this value will equal 1."},"isOperatorFor(address,address)":{"details":"Returns true if an account is an operator of `tokenHolder`. Operators can send and burn tokens on behalf of their owners. All accounts are their own operator. See {operatorSend} and {operatorBurn}."},"name()":{"details":"Returns the name of the token."},"operatorBurn(address,uint256,bytes,bytes)":{"details":"Destroys `amount` tokens from `account`, reducing the total supply. The caller must be an operator of `account`. If a send hook is registered for `account`, the corresponding function will be called with `data` and `operatorData`. See {IERC777Sender}. Emits a {Burned} event. Requirements - `account` cannot be the zero address. - `account` must have at least `amount` tokens. - the caller must be an operator for `account`."},"operatorSend(address,address,uint256,bytes,bytes)":{"details":"Moves `amount` tokens from `sender` to `recipient`. The caller must be an operator of `sender`. If send or receive hooks are registered for `sender` and `recipient`, the corresponding functions will be called with `data` and `operatorData`. See {IERC777Sender} and {IERC777Recipient}. Emits a {Sent} event. Requirements - `sender` cannot be the zero address. - `sender` must have at least `amount` tokens. - the caller must be an operator for `sender`. - `recipient` cannot be the zero address. - if `recipient` is a contract, it must implement the {IERC777Recipient} interface."},"revokeOperator(address)":{"details":"Revoke an account's operator status for the caller. See {isOperatorFor} and {defaultOperators}. Emits a {RevokedOperator} event. Requirements - `operator` cannot be calling address."},"send(address,uint256,bytes)":{"details":"Moves `amount` tokens from the caller's account to `recipient`. If send or receive hooks are registered for the caller and `recipient`, the corresponding functions will be called with `data` and empty `operatorData`. See {IERC777Sender} and {IERC777Recipient}. Emits a {Sent} event. Requirements - the caller must have at least `amount` tokens. - `recipient` cannot be the zero address. - if `recipient` is a contract, it must implement the {IERC777Recipient} interface."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"Returns the amount of tokens in existence."}},"version":1},"methodIdentifiers":{"authorizeOperator(address)":"0x959b8c3f","balanceOf(address)":"0x70a08231","burn(uint256,bytes)":"0xfe9d9303","defaultOperators()":"0x06e48538","granularity()":"0x556f0dc7","isOperatorFor(address,address)":"0xd95b6371","name()":"0x06fdde03","operatorBurn(address,uint256,bytes,bytes)":"0xfc673c4f","operatorSend(address,address,uint256,bytes,bytes)":"0x62ad1b83","revokeOperator(address)":"0xfad8b32a","send(address,uint256,bytes)":"0x9bd9bbc6","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC777/IERC777.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC777Recipient":{"abi":[{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"tokensReceived","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC777Recipient","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the ERC777TokensRecipient standard as defined in the EIP. Accounts can be notified of {IERC777} tokens being sent to them by having a contract implement this interface (contract holders can be their own implementer) and registering it on the https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry]. See {IERC1820Registry} and {ERC1820Implementer}.","kind":"dev","methods":{"tokensReceived(address,address,address,uint256,bytes,bytes)":{"details":"Called by an {IERC777} token contract whenever tokens are being moved or created into a registered account (`to`). The type of operation is conveyed by `from` being the zero address or not. This call occurs _after_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the post-operation state. This function may revert to prevent the operation from being executed."}},"version":1},"methodIdentifiers":{"tokensReceived(address,address,address,uint256,bytes,bytes)":"0x0023de29"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC777/IERC777Recipient.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IERC777Sender":{"abi":[{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"},{"internalType":"bytes","name":"operatorData","type":"bytes"}],"name":"tokensToSend","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IERC777Sender","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface of the ERC777TokensSender standard as defined in the EIP. {IERC777} Token holders can be notified of operations performed on their tokens by having a contract implement this interface (contract holders can be their own implementer) and registering it on the https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry]. See {IERC1820Registry} and {ERC1820Implementer}.","kind":"dev","methods":{"tokensToSend(address,address,address,uint256,bytes,bytes)":{"details":"Called by an {IERC777} token contract whenever a registered holder's (`from`) tokens are about to be moved or destroyed. The type of operation is conveyed by `to` being the zero address or not. This call occurs _before_ the token contract's state is updated, so {IERC777-balanceOf}, etc., can be used to query the pre-operation state. This function may revert to prevent the operation from being executed."}},"version":1},"methodIdentifiers":{"tokensToSend(address,address,address,uint256,bytes,bytes)":"0x75ab9782"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/token/ERC777/IERC777Sender.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"IRelayHub":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"bytes4","name":"selector","type":"bytes4"},{"indexed":false,"internalType":"uint256","name":"reason","type":"uint256"}],"name":"CanRelayFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Penalized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"transactionFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stake","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unstakeDelay","type":"uint256"},{"indexed":false,"internalType":"string","name":"url","type":"string"}],"name":"RelayAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":false,"internalType":"uint256","name":"unstakeTime","type":"uint256"}],"name":"RelayRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":false,"internalType":"uint256","name":"stake","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unstakeDelay","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"bytes4","name":"selector","type":"bytes4"},{"indexed":false,"internalType":"enum IRelayHub.RelayCallStatus","name":"status","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"charge","type":"uint256"}],"name":"TransactionRelayed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"relay","type":"address"},{"indexed":false,"internalType":"uint256","name":"stake","type":"uint256"}],"name":"Unstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"dest","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"relay","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"approvalData","type":"bytes"}],"name":"canRelay","outputs":[{"internalType":"uint256","name":"status","type":"uint256"},{"internalType":"bytes","name":"recipientContext","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"depositFor","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"relay","type":"address"}],"name":"getRelay","outputs":[{"internalType":"uint256","name":"totalStake","type":"uint256"},{"internalType":"uint256","name":"unstakeDelay","type":"uint256"},{"internalType":"uint256","name":"unstakeTime","type":"uint256"},{"internalType":"address payable","name":"owner","type":"address"},{"internalType":"enum IRelayHub.RelayState","name":"state","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"relayedCallStipend","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"transactionFee","type":"uint256"}],"name":"maxPossibleCharge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"unsignedTx","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"penalizeIllegalTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"unsignedTx1","type":"bytes"},{"internalType":"bytes","name":"signature1","type":"bytes"},{"internalType":"bytes","name":"unsignedTx2","type":"bytes"},{"internalType":"bytes","name":"signature2","type":"bytes"}],"name":"penalizeRepeatedNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"string","name":"url","type":"string"}],"name":"registerRelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"approvalData","type":"bytes"}],"name":"relayCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"relay","type":"address"}],"name":"removeRelayByOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"relayedCallStipend","type":"uint256"}],"name":"requiredGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"relayaddr","type":"address"},{"internalType":"uint256","name":"unstakeDelay","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"relay","type":"address"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"dest","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"IRelayHub","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Interface for `RelayHub`, the core contract of the GSN. Users should not need to interact with this contract directly. See the https://github.com/OpenZeppelin/openzeppelin-gsn-helpers[OpenZeppelin GSN helpers] for more information on how to deploy an instance of `RelayHub` on your local test network.","events":{"CanRelayFailed(address,address,address,bytes4,uint256)":{"details":"Emitted when an attempt to relay a call failed. This can happen due to incorrect {relayCall} arguments, or the recipient not accepting the relayed call. The actual relayed call was not executed, and the recipient not charged. The `reason` parameter contains an error code: values 1-10 correspond to `PreconditionCheck` entries, and values over 10 are custom recipient error codes returned from {acceptRelayedCall}."},"Deposited(address,address,uint256)":{"details":"Emitted when {depositFor} is called, including the amount and account that was funded."},"Penalized(address,address,uint256)":{"details":"Emitted when a relay is penalized."},"RelayAdded(address,address,uint256,uint256,uint256,string)":{"details":"Emitted when a relay is registered or re-registerd. Looking at these events (and filtering out {RelayRemoved} events) lets a client discover the list of available relays."},"RelayRemoved(address,uint256)":{"details":"Emitted when a relay is removed (deregistered). `unstakeTime` is the time when unstake will be callable."},"Staked(address,uint256,uint256)":{"details":"Emitted when a relay's stake or unstakeDelay are increased"},"TransactionRelayed(address,address,address,bytes4,uint8,uint256)":{"details":"Emitted when a transaction is relayed. Useful when monitoring a relay's operation and relayed calls to a contract Note that the actual encoded function might be reverted: this is indicated in the `status` parameter. `charge` is the Ether value deducted from the recipient's balance, paid to the relay's owner."},"Unstaked(address,uint256)":{"details":"Emitted when a relay is unstaked for, including the returned stake."},"Withdrawn(address,address,uint256)":{"details":"Emitted when an account withdraws funds from `RelayHub`."}},"kind":"dev","methods":{"balanceOf(address)":{"details":"Returns an account's deposits. These can be either a contracts's funds, or a relay owner's revenue."},"canRelay(address,address,address,bytes,uint256,uint256,uint256,uint256,bytes,bytes)":{"details":"Checks if the `RelayHub` will accept a relayed operation. Multiple things must be true for this to happen: - all arguments must be signed for by the sender (`from`) - the sender's nonce must be the current one - the recipient must accept this transaction (via {acceptRelayedCall}) Returns a `PreconditionCheck` value (`OK` when the transaction can be relayed), or a recipient-specific error code if it returns one in {acceptRelayedCall}."},"depositFor(address)":{"details":"Deposits Ether for a contract, so that it can receive (and pay for) relayed transactions. Unused balance can only be withdrawn by the contract itself, by calling {withdraw}. Emits a {Deposited} event."},"getNonce(address)":{"details":"Returns an account's nonce in `RelayHub`."},"getRelay(address)":{"details":"Returns a relay's status. Note that relays can be deleted when unstaked or penalized, causing this function to return an empty entry."},"maxPossibleCharge(uint256,uint256,uint256)":{"details":"Returns the maximum recipient charge, given the amount of gas forwarded, gas price and relay fee."},"penalizeIllegalTransaction(bytes,bytes)":{"details":"Penalize a relay that sent a transaction that didn't target ``RelayHub``'s {registerRelay} or {relayCall}."},"penalizeRepeatedNonce(bytes,bytes,bytes,bytes)":{"details":"Penalize a relay that signed two transactions using the same nonce (making only the first one valid) and different data (gas price, gas limit, etc. may be different). The (unsigned) transaction data and signature for both transactions must be provided."},"registerRelay(uint256,string)":{"details":"Registers the caller as a relay. The relay must be staked for, and not be a contract (i.e. this function must be called directly from an EOA). This function can be called multiple times, emitting new {RelayAdded} events. Note that the received `transactionFee` is not enforced by {relayCall}. Emits a {RelayAdded} event."},"relayCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,bytes)":{"details":"Relays a transaction. For this to succeed, multiple conditions must be met: - {canRelay} must `return PreconditionCheck.OK` - the sender must be a registered relay - the transaction's gas price must be larger or equal to the one that was requested by the sender - the transaction must have enough gas to not run out of gas if all internal transactions (calls to the recipient) use all gas available to them - the recipient must have enough balance to pay the relay for the worst-case scenario (i.e. when all gas is spent) If all conditions are met, the call will be relayed and the recipient charged. {preRelayedCall}, the encoded function and {postRelayedCall} will be called in that order. Parameters: - `from`: the client originating the request - `to`: the target {IRelayRecipient} contract - `encodedFunction`: the function call to relay, including data - `transactionFee`: fee (%) the relay takes over actual gas cost - `gasPrice`: gas price the client is willing to pay - `gasLimit`: gas to forward when calling the encoded function - `nonce`: client's nonce - `signature`: client's signature over all previous params, plus the relay and RelayHub addresses - `approvalData`: dapp-specific data forwared to {acceptRelayedCall}. This value is *not* verified by the `RelayHub`, but it still can be used for e.g. a signature. Emits a {TransactionRelayed} event."},"removeRelayByOwner(address)":{"details":"Removes (deregisters) a relay. Unregistered (but staked for) relays can also be removed. Can only be called by the owner of the relay. After the relay's `unstakeDelay` has elapsed, {unstake} will be callable. Emits a {RelayRemoved} event."},"requiredGas(uint256)":{"details":"Returns how much gas should be forwarded to a call to {relayCall}, in order to relay a transaction that will spend up to `relayedCallStipend` gas."},"stake(address,uint256)":{"details":"Adds stake to a relay and sets its `unstakeDelay`. If the relay does not exist, it is created, and the caller of this function becomes its owner. If the relay already exists, only the owner can call this function. A relay cannot be its own owner. All Ether in this function call will be added to the relay's stake. Its unstake delay will be assigned to `unstakeDelay`, but the new value must be greater or equal to the current one. Emits a {Staked} event."}},"version":1},"methodIdentifiers":{"balanceOf(address)":"0x70a08231","canRelay(address,address,address,bytes,uint256,uint256,uint256,uint256,bytes,bytes)":"0x2b601747","depositFor(address)":"0xaa67c919","getNonce(address)":"0x2d0335ab","getRelay(address)":"0x8d851460","maxPossibleCharge(uint256,uint256,uint256)":"0xa863f8f9","penalizeIllegalTransaction(bytes,bytes)":"0x39002432","penalizeRepeatedNonce(bytes,bytes,bytes,bytes)":"0xa8cd9572","registerRelay(uint256,string)":"0x1166073a","relayCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,bytes)":"0x405cec67","removeRelayByOwner(address)":"0xc3e712f2","requiredGas(uint256)":"0x6a7d84a4","stake(address,uint256)":"0xadc9772e","unstake(address)":"0xf2888dbb","withdraw(uint256,address)":"0x00f714ce"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/GSN/IRelayHub.sol","sourcemap":"","userdoc":{"kind":"user","methods":{"unstake(address)":{"notice":"Deletes the relay from the system, and gives back its stake to the owner. Can only be called by the relay owner, after `unstakeDelay` has elapsed since {removeRelayByOwner} was called. Emits an {Unstaked} event."},"withdraw(uint256,address)":{"notice":"Withdraws from an account's balance, sending it back to it. Relay owners call this to retrieve their revenue, and contracts can use it to reduce their funding. Emits a {Withdrawn} event."}},"version":1}},"IRelayRecipient":{"abi":[{"inputs":[{"internalType":"address","name":"relay","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"bytes","name":"encodedFunction","type":"bytes"},{"internalType":"uint256","name":"transactionFee","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"approvalData","type":"bytes"},{"internalType":"uint256","name":"maxPossibleCharge","type":"uint256"}],"name":"acceptRelayedCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHubAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"},{"internalType":"bool","name":"success","type":"bool"},{"internalType":"uint256","name":"actualCharge","type":"uint256"},{"internalType":"bytes32","name":"preRetVal","type":"bytes32"}],"name":"postRelayedCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"context","type":"bytes"}],"name":"preRelayedCall","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"}],"contractName":"IRelayRecipient","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Base interface for a contract that will be called via the GSN from {IRelayHub}. TIP: You don't need to write an implementation yourself! Inherit from {GSNRecipient} instead.","kind":"dev","methods":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":{"details":"Called by {IRelayHub} to validate if this recipient accepts being charged for a relayed call. Note that the recipient will be charged regardless of the execution result of the relayed call (i.e. if it reverts or not). The relay request was originated by `from` and will be served by `relay`. `encodedFunction` is the relayed call calldata, so its first four bytes are the function selector. The relayed call will be forwarded `gasLimit` gas, and the transaction executed with a gas price of at least `gasPrice`. ``relay``'s fee is `transactionFee`, and the recipient will be charged at most `maxPossibleCharge` (in wei). `nonce` is the sender's (`from`) nonce for replay attack protection in {IRelayHub}, and `approvalData` is a optional parameter that can be used to hold a signature over all or some of the previous values. Returns a tuple, where the first value is used to indicate approval (0) or rejection (custom non-zero error code, values 1 to 10 are reserved) and the second one is data to be passed to the other {IRelayRecipient} functions. {acceptRelayedCall} is called with 50k gas: if it runs out during execution, the request will be considered rejected. A regular revert will also trigger a rejection."},"getHubAddr()":{"details":"Returns the address of the {IRelayHub} instance this recipient interacts with."},"postRelayedCall(bytes,bool,uint256,bytes32)":{"details":"Called by {IRelayHub} on approved relay call requests, after the relayed call is executed. This allows to e.g. charge the user for the relayed call costs, return any overcharges from {preRelayedCall}, or perform contract-specific bookkeeping. `context` is the second value returned in the tuple by {acceptRelayedCall}. `success` is the execution status of the relayed call. `actualCharge` is an estimate of how much the recipient will be charged for the transaction, not including any gas used by {postRelayedCall} itself. `preRetVal` is {preRelayedCall}'s return value. {postRelayedCall} is called with 100k gas: if it runs out during execution or otherwise reverts, the relayed call and the call to {preRelayedCall} will be reverted retroactively, but the recipient will still be charged for the transaction's cost."},"preRelayedCall(bytes)":{"details":"Called by {IRelayHub} on approved relay call requests, before the relayed call is executed. This allows to e.g. pre-charge the sender of the transaction. `context` is the second value returned in the tuple by {acceptRelayedCall}. Returns a value to be passed to {postRelayedCall}. {preRelayedCall} is called with 100k gas: if it runs out during exection or otherwise reverts, the relayed call will not be executed, but the recipient will still be charged for the transaction's cost."}},"version":1},"methodIdentifiers":{"acceptRelayedCall(address,address,bytes,uint256,uint256,uint256,uint256,bytes,uint256)":"0x83947ea0","getHubAddr()":"0x74e861d6","postRelayedCall(bytes,bool,uint256,bytes32)":"0xe06e0e22","preRelayedCall(bytes)":"0x80274db7"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/GSN/IRelayRecipient.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"Math":{"abi":[],"contractName":"Math","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122043f88c1505a690eb185e1b99fffdee7d42198361953a9a61056efaaba2985c2c64736f6c634300060c0033"},"devdoc":{"details":"Standard math utilities missing in the Solidity language.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122043f88c1505a690eb185e1b99fffdee7d42198361953a9a61056efaaba2985c2c64736f6c634300060c0033"},"sourceId":"contracts/math/Math.sol","sourcemap":"132:668:16:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"MathMock":{"abi":[{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"average","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"min","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}],"contractName":"MathMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5061016d806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80632b7423ab146100465780636d5433e61461007b5780637ae2b5c71461009e575b600080fd5b6100696004803603604081101561005c57600080fd5b50803590602001356100c1565b60408051918252519081900360200190f35b6100696004803603604081101561009157600080fd5b50803590602001356100d4565b610069600480360360408110156100b457600080fd5b50803590602001356100e0565b60006100cd83836100ec565b9392505050565b60006100cd8383610111565b60006100cd8383610128565b600060028083066002850601816100ff57fe5b04600283046002850401019392505050565b60008183101561012157816100cd565b5090919050565b600081831061012157816100cd56fea26469706673582212202084c4cd1da87b0c73cb397ca59c754047e89fd14236c9dee23b239008199e3964736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"average(uint256,uint256)":"0x2b7423ab","max(uint256,uint256)":"0x6d5433e6","min(uint256,uint256)":"0x7ae2b5c7"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100415760003560e01c80632b7423ab146100465780636d5433e61461007b5780637ae2b5c71461009e575b600080fd5b6100696004803603604081101561005c57600080fd5b50803590602001356100c1565b60408051918252519081900360200190f35b6100696004803603604081101561009157600080fd5b50803590602001356100d4565b610069600480360360408110156100b457600080fd5b50803590602001356100e0565b60006100cd83836100ec565b9392505050565b60006100cd8383610111565b60006100cd8383610128565b600060028083066002850601816100ff57fe5b04600283046002850401019392505050565b60008183101561012157816100cd565b5090919050565b600081831061012157816100cd56fea26469706673582212202084c4cd1da87b0c73cb397ca59c754047e89fd14236c9dee23b239008199e3964736f6c634300060c0033"},"sourceId":"contracts/mocks/MathMock.sol","sourcemap":"86:355:56:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"MerkleProof":{"abi":[],"contractName":"MerkleProof","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209d1333d3eabc9b29c414180d846a4ff6e48f2dab06dc5fa3808fe9a6775465d464736f6c634300060c0033"},"devdoc":{"details":"These functions deal with verification of Merkle trees (hash trees),","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209d1333d3eabc9b29c414180d846a4ff6e48f2dab06dc5fa3808fe9a6775465d464736f6c634300060c0033"},"sourceId":"contracts/cryptography/MerkleProof.sol","sourcemap":"143:1135:9:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"MerkleProofWrapper":{"abi":[{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"}],"contractName":"MerkleProofWrapper","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506101e0806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80635a9a49c714610030575b600080fd5b6100d86004803603606081101561004657600080fd5b81019060208101813564010000000081111561006157600080fd5b82018360208201111561007357600080fd5b8035906020019184602083028401116401000000008311171561009557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050823593505050602001356100ec565b604080519115158252519081900360200190f35b60006100f9848484610101565b949350505050565b600081815b855181101561019f57600086828151811061011d57fe5b602002602001015190508083116101645782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610196565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b50600101610106565b50909214939250505056fea264697066735822122005fe461496240b4db8d6fbff409738c271c767a466bd773fea0c0f43e2c41e5d64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"verify(bytes32[],bytes32,bytes32)":"0x5a9a49c7"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80635a9a49c714610030575b600080fd5b6100d86004803603606081101561004657600080fd5b81019060208101813564010000000081111561006157600080fd5b82018360208201111561007357600080fd5b8035906020019184602083028401116401000000008311171561009557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050823593505050602001356100ec565b604080519115158252519081900360200190f35b60006100f9848484610101565b949350505050565b600081815b855181101561019f57600086828151811061011d57fe5b602002602001015190508083116101645782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610196565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b50600101610106565b50909214939250505056fea264697066735822122005fe461496240b4db8d6fbff409738c271c767a466bd773fea0c0f43e2c41e5d64736f6c634300060c0033"},"sourceId":"contracts/mocks/MerkleProofWrapper.sol","sourcemap":"122:192:57:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Ownable":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"Ownable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.","kind":"dev","methods":{"constructor":{"details":"Initializes the contract setting the deployer as the initial owner."},"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}},"version":1},"methodIdentifiers":{"owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","transferOwnership(address)":"0xf2fde38b"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/access/Ownable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"OwnableMock":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"OwnableMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6102c78061007d6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063715018a6146100465780638da5cb5b14610050578063f2fde38b14610074575b600080fd5b61004e61009a565b005b61005861014e565b604080516001600160a01b039092168252519081900360200190f35b61004e6004803603602081101561008a57600080fd5b50356001600160a01b031661015d565b6100a2610267565b6000546001600160a01b03908116911614610104576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b610165610267565b6000546001600160a01b039081169116146101c7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661020c5760405162461bcd60e51b815260040180806020018281038252602681526020018061026c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220103a69764d0eedfc0a828838094042156b99902924678eb05893cde7328e76c264736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}},"version":1},"methodIdentifiers":{"owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","transferOwnership(address)":"0xf2fde38b"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063715018a6146100465780638da5cb5b14610050578063f2fde38b14610074575b600080fd5b61004e61009a565b005b61005861014e565b604080516001600160a01b039092168252519081900360200190f35b61004e6004803603602081101561008a57600080fd5b50356001600160a01b031661015d565b6100a2610267565b6000546001600160a01b03908116911614610104576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b610165610267565b6000546001600160a01b039081169116146101c7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661020c5760405162461bcd60e51b815260040180806020018281038252602681526020018061026c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220103a69764d0eedfc0a828838094042156b99902924678eb05893cde7328e76c264736f6c634300060c0033"},"sourceId":"contracts/mocks/OwnableMock.sol","sourcemap":"91:35:58:-:0;;;;;;;;;;;;-1:-1:-1;865:17:7;885:12;:10;:12::i;:::-;907:6;:18;;-1:-1:-1;;;;;;907:18:7;-1:-1:-1;;;;;907:18:7;;;;;;;940:43;;907:18;;-1:-1:-1;907:18:7;940:43;;907:6;;940:43;831:159;91:35:58;;590:104:0;677:10;590:104;:::o;91:35:58:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Pausable":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"Pausable","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Contract module which allows children to implement an emergency stop mechanism that can be triggered by an authorized account. This module is used through inheritance. It will make available the modifiers `whenNotPaused` and `whenPaused`, which can be applied to the functions of your contract. Note that they will not be pausable by simply including this module, only once the modifiers are put in place.","events":{"Paused(address)":{"details":"Emitted when the pause is triggered by `account`."},"Unpaused(address)":{"details":"Emitted when the pause is lifted by `account`."}},"kind":"dev","methods":{"constructor":{"details":"Initializes the contract in unpaused state."},"paused()":{"details":"Returns true if the contract is paused, and false otherwise."}},"version":1},"methodIdentifiers":{"paused()":"0x5c975abb"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/utils/Pausable.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"PausableMock":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"count","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"drasticMeasure","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"drasticMeasureTaken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"normalProcess","outputs":[],"stateMutability":"nonpayable","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"PausableMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506000805461ffff1916815560015561031a8061002e6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806376657b8e1161005b57806376657b8e146100c25780638456cb59146100ca5780639958f045146100d2578063e7651d7a146100da5761007d565b806306661abd146100825780633f4ba83a1461009c5780635c975abb146100a6575b600080fd5b61008a6100e2565b60408051918252519081900360200190f35b6100a46100e8565b005b6100ae6100f2565b604080519115158252519081900360200190f35b6100ae6100fb565b6100a4610109565b6100a4610111565b6100a4610170565b60015481565b6100f06101c5565b565b60005460ff1690565b600054610100900460ff1681565b6100f0610263565b60005460ff1661015f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805461ff001916610100179055565b60005460ff16156101bb576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001805481019055565b60005460ff16610213576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6102466102e0565b604080516001600160a01b039092168252519081900360200190a1565b60005460ff16156102ae576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586102465b339056fea2646970667358221220160f129dc9b6264b1f8a9d5296501c5b0662a94fb458d63e3ee0b6dedf8c41c364736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"paused()":{"details":"Returns true if the contract is paused, and false otherwise."}},"version":1},"methodIdentifiers":{"count()":"0x06661abd","drasticMeasure()":"0x9958f045","drasticMeasureTaken()":"0x76657b8e","normalProcess()":"0xe7651d7a","pause()":"0x8456cb59","paused()":"0x5c975abb","unpause()":"0x3f4ba83a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061007d5760003560e01c806376657b8e1161005b57806376657b8e146100c25780638456cb59146100ca5780639958f045146100d2578063e7651d7a146100da5761007d565b806306661abd146100825780633f4ba83a1461009c5780635c975abb146100a6575b600080fd5b61008a6100e2565b60408051918252519081900360200190f35b6100a46100e8565b005b6100ae6100f2565b604080519115158252519081900360200190f35b6100ae6100fb565b6100a4610109565b6100a4610111565b6100a4610170565b60015481565b6100f06101c5565b565b60005460ff1690565b600054610100900460ff1681565b6100f0610263565b60005460ff1661015f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805461ff001916610100179055565b60005460ff16156101bb576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001805481019055565b60005460ff16610213576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6102466102e0565b604080516001600160a01b039092168252519081900360200190a1565b60005460ff16156102ae576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586102465b339056fea2646970667358221220160f129dc9b6264b1f8a9d5296501c5b0662a94fb458d63e3ee0b6dedf8c41c364736f6c634300060c0033"},"sourceId":"contracts/mocks/PausableMock.sol","sourcemap":"91:482:59:-:0;;;195:85;;;;;;;;;-1:-1:-1;933:5:110;923:15;;-1:-1:-1;;227:27:59;;;923:15:110;264:9:59;91:482;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"PaymentSplitter":{"abi":[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}],"contractName":"PaymentSplitter","deploymentBytecode":{"bytecode":"0x6080604052604051610ba6380380610ba68339818101604052604081101561002657600080fd5b810190808051604051939291908464010000000082111561004657600080fd5b90830190602082018581111561005b57600080fd5b825186602082028301116401000000008211171561007857600080fd5b82525081516020918201928201910280838360005b838110156100a557818101518382015260200161008d565b50505050905001604052602001805160405193929190846401000000008211156100ce57600080fd5b9083019060208201858111156100e357600080fd5b825186602082028301116401000000008211171561010057600080fd5b82525081516020918201928201910280838360005b8381101561012d578181015183820152602001610115565b50505050905001604052505050805182511461017a5760405162461bcd60e51b8152600401808060200182810382526032815260200180610b496032913960400191505060405180910390fd5b60008251116101d0576040805162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015290519081900360640190fd5b60005b825181101561021a576102128382815181106101eb57fe5b60200260200101518383815181106101ff57fe5b602002602001015161022260201b60201c565b6001016101d3565b50505061042e565b6001600160a01b0382166102675760405162461bcd60e51b815260040180806020018281038252602c815260200180610b1d602c913960400191505060405180910390fd5b600081116102bc576040805162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015290519081900360640190fd5b6001600160a01b038216600090815260026020526040902054156103115760405162461bcd60e51b815260040180806020018281038252602b815260200180610b7b602b913960400191505060405180910390fd5b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260209081526040822083905590546103829183906103cd811b6103fc17901c565b600055604080516001600160a01b03841681526020810183905281517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac929181900390910190a15050565b600082820183811015610427576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6106e08061043d6000396000f3fe6080604052600436106100595760003560e01c806319165587146100ae5780633a98ef39146100e35780638b83209b1461010a5780639852595c14610150578063ce7c2ac214610183578063e33b7de3146101b6576100a9565b366100a9577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100876101cb565b604080516001600160a01b0390921682523460208301528051918290030190a1005b600080fd5b3480156100ba57600080fd5b506100e1600480360360208110156100d157600080fd5b50356001600160a01b03166101cf565b005b3480156100ef57600080fd5b506100f8610390565b60408051918252519081900360200190f35b34801561011657600080fd5b506101346004803603602081101561012d57600080fd5b5035610396565b604080516001600160a01b039092168252519081900360200190f35b34801561015c57600080fd5b506100f86004803603602081101561017357600080fd5b50356001600160a01b03166103c0565b34801561018f57600080fd5b506100f8600480360360208110156101a657600080fd5b50356001600160a01b03166103db565b3480156101c257600080fd5b506100f86103f6565b3390565b6001600160a01b0381166000908152600260205260409020546102235760405162461bcd60e51b81526004018080602001828103825260268152602001806106396026913960400191505060405180910390fd5b600061023a600154476103fc90919063ffffffff16565b6001600160a01b0383166000908152600360209081526040808320548354600290935290832054939450919261028692916102809161027a90879061045f565b906104b8565b906104fa565b9050806102c45760405162461bcd60e51b815260040180806020018281038252602b81526020018061065f602b913960400191505060405180910390fd5b6001600160a01b0383166000908152600360205260409020546102e790826103fc565b6001600160a01b03841660009081526003602052604090205560015461030d90826103fc565b6001556040516001600160a01b0384169082156108fc029083906000818181858888f19350505050158015610346573d6000803e3d6000fd5b50604080516001600160a01b03851681526020810183905281517fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056929181900390910190a1505050565b60005490565b6000600482815481106103a557fe5b6000918252602090912001546001600160a01b031692915050565b6001600160a01b031660009081526003602052604090205490565b6001600160a01b031660009081526002602052604090205490565b60015490565b600082820183811015610456576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b60008261046e57506000610459565b8282028284828161047b57fe5b04146104565760405162461bcd60e51b815260040180806020018281038252602181526020018061068a6021913960400191505060405180910390fd5b600061045683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061053c565b600061045683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506105de565b600081836105c85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561058d578181015183820152602001610575565b50505050905090810190601f1680156105ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816105d457fe5b0495945050505050565b600081848411156106305760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561058d578181015183820152602001610575565b50505090039056fe5061796d656e7453706c69747465723a206163636f756e7420686173206e6f207368617265735061796d656e7453706c69747465723a206163636f756e74206973206e6f7420647565207061796d656e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122017a1a95ff6ae23404eb87d822ca79300749ab42c65521e441dc6881075d0cd7664736f6c634300060c00335061796d656e7453706c69747465723a206163636f756e7420697320746865207a65726f20616464726573735061796d656e7453706c69747465723a2070617965657320616e6420736861726573206c656e677468206d69736d617463685061796d656e7453706c69747465723a206163636f756e7420616c72656164792068617320736861726573"},"devdoc":{"details":"This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware that the Ether will be split in this way, since it is handled transparently by the contract. The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim an amount proportional to the percentage of total shares they were assigned. `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} function.","kind":"dev","methods":{"constructor":{"details":"Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at the matching position in the `shares` array. All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no duplicates in `payees`."},"payee(uint256)":{"details":"Getter for the address of the payee number `index`."},"release(address)":{"details":"Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the total shares and their previous withdrawals."},"released(address)":{"details":"Getter for the amount of Ether already released to a payee."},"shares(address)":{"details":"Getter for the amount of shares held by an account."},"totalReleased()":{"details":"Getter for the total amount of Ether already released."},"totalShares()":{"details":"Getter for the total shares held by payees."}},"title":"PaymentSplitter","version":1},"methodIdentifiers":{"payee(uint256)":"0x8b83209b","release(address)":"0x19165587","released(address)":"0x9852595c","shares(address)":"0xce7c2ac2","totalReleased()":"0xe33b7de3","totalShares()":"0x3a98ef39"},"runtimeBytecode":{"bytecode":"0x6080604052600436106100595760003560e01c806319165587146100ae5780633a98ef39146100e35780638b83209b1461010a5780639852595c14610150578063ce7c2ac214610183578063e33b7de3146101b6576100a9565b366100a9577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100876101cb565b604080516001600160a01b0390921682523460208301528051918290030190a1005b600080fd5b3480156100ba57600080fd5b506100e1600480360360208110156100d157600080fd5b50356001600160a01b03166101cf565b005b3480156100ef57600080fd5b506100f8610390565b60408051918252519081900360200190f35b34801561011657600080fd5b506101346004803603602081101561012d57600080fd5b5035610396565b604080516001600160a01b039092168252519081900360200190f35b34801561015c57600080fd5b506100f86004803603602081101561017357600080fd5b50356001600160a01b03166103c0565b34801561018f57600080fd5b506100f8600480360360208110156101a657600080fd5b50356001600160a01b03166103db565b3480156101c257600080fd5b506100f86103f6565b3390565b6001600160a01b0381166000908152600260205260409020546102235760405162461bcd60e51b81526004018080602001828103825260268152602001806106396026913960400191505060405180910390fd5b600061023a600154476103fc90919063ffffffff16565b6001600160a01b0383166000908152600360209081526040808320548354600290935290832054939450919261028692916102809161027a90879061045f565b906104b8565b906104fa565b9050806102c45760405162461bcd60e51b815260040180806020018281038252602b81526020018061065f602b913960400191505060405180910390fd5b6001600160a01b0383166000908152600360205260409020546102e790826103fc565b6001600160a01b03841660009081526003602052604090205560015461030d90826103fc565b6001556040516001600160a01b0384169082156108fc029083906000818181858888f19350505050158015610346573d6000803e3d6000fd5b50604080516001600160a01b03851681526020810183905281517fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056929181900390910190a1505050565b60005490565b6000600482815481106103a557fe5b6000918252602090912001546001600160a01b031692915050565b6001600160a01b031660009081526003602052604090205490565b6001600160a01b031660009081526002602052604090205490565b60015490565b600082820183811015610456576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b60008261046e57506000610459565b8282028284828161047b57fe5b04146104565760405162461bcd60e51b815260040180806020018281038252602181526020018061068a6021913960400191505060405180910390fd5b600061045683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061053c565b600061045683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506105de565b600081836105c85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561058d578181015183820152602001610575565b50505050905090810190601f1680156105ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816105d457fe5b0495945050505050565b600081848411156106305760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561058d578181015183820152602001610575565b50505090039056fe5061796d656e7453706c69747465723a206163636f756e7420686173206e6f207368617265735061796d656e7453706c69747465723a206163636f756e74206973206e6f7420647565207061796d656e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122017a1a95ff6ae23404eb87d822ca79300749ab42c65521e441dc6881075d0cd7664736f6c634300060c0033"},"sourceId":"contracts/payment/PaymentSplitter.sol","sourcemap":"942:4196:68:-:0;;;1734:417;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1734:417:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1734:417:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1900:6;:13;1883:6;:13;:30;1875:93;;;;-1:-1:-1;;;1875:93:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2002:1;1986:6;:13;:17;1978:56;;;;;-1:-1:-1;;;1978:56:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;2050:9;2045:100;2069:6;:13;2065:1;:17;2045:100;;;2103:31;2113:6;2120:1;2113:9;;;;;;;;;;;;;;2124:6;2131:1;2124:9;;;;;;;;;;;;;;2103;;;:31;;:::i;:::-;2084:3;;2045:100;;;;1734:417;;942:4196;;4669:467;-1:-1:-1;;;;;4748:21:68;;4740:78;;;;-1:-1:-1;;;4740:78:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4846:1;4836:7;:11;4828:53;;;;;-1:-1:-1;;;4828:53:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4899:16:68;;;;;;:7;:16;;;;;;:21;4891:77;;;;-1:-1:-1;;;4891:77:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4979:7;:21;;;;;;;;;;;;-1:-1:-1;;;;;;4979:21:68;-1:-1:-1;;;;;4979:21:68;;;;;;;;-1:-1:-1;5010:16:68;;;:7;4979:21;5010:16;;;;;;:26;;;5061:12;;:25;;5010:26;;5061:16;;;;;:25;;:::i;:::-;5046:12;:40;5101:28;;;-1:-1:-1;;;;;5101:28:68;;;;;;;;;;;;;;;;;;;;;;;4669:467;;:::o;874:176:17:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:17:o;942:4196:68:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"PullPayment":{"abi":[{"inputs":[{"internalType":"address","name":"dest","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"PullPayment","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Simple implementation of a https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment] strategy, where the paying contract doesn't interact directly with the receiver account, which must withdraw its payments itself. Pull-payments are often considered the best practice when it comes to sending Ether, security-wise. It prevents recipients from blocking execution, and eliminates reentrancy concerns. TIP: If you would like to learn more about reentrancy and alternative ways to protect against it, check out our blog post https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. To use, derive from the `PullPayment` contract, and use {_asyncTransfer} instead of Solidity's `transfer` function. Payees can query their due payments with {payments}, and retrieve them with {withdrawPayments}.","kind":"dev","methods":{"payments(address)":{"details":"Returns the payments owed to an address.","params":{"dest":"The creditor's address."}},"withdrawPayments(address)":{"details":"Withdraw accumulated payments, forwarding all gas to the recipient. Note that _any_ account can call this function, not just the `payee`. This means that contracts unaware of the `PullPayment` protocol can still receive funds this way, by having a separate account call {withdrawPayments}. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.","params":{"payee":"Whose payments will be withdrawn."}}},"version":1},"methodIdentifiers":{"payments(address)":"0xe2982c21","withdrawPayments(address)":"0x31b3eb94"},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/payment/PullPayment.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"PullPaymentMock":{"abi":[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"inputs":[{"internalType":"address","name":"dest","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"callTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"dest","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"PullPaymentMock","deploymentBytecode":{"bytecode":"0x608060405260405161001090610052565b604051809103906000f08015801561002c573d6000803e3d6000fd5b50600080546001600160a01b0319166001600160a01b039290921691909117905561005f565b61074f806102d483390190565b6102668061006e6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806331b3eb9414610046578063d44409911461006e578063e2982c211461009a575b600080fd5b61006c6004803603602081101561005c57600080fd5b50356001600160a01b03166100d2565b005b61006c6004803603604081101561008457600080fd5b506001600160a01b038135169060200135610138565b6100c0600480360360208110156100b057600080fd5b50356001600160a01b0316610146565b60408051918252519081900360200190f35b60008054604080516351cff8d960e01b81526001600160a01b038581166004830152915191909216926351cff8d9926024808201939182900301818387803b15801561011d57600080fd5b505af1158015610131573d6000803e3d6000fd5b5050505050565b61014282826101c6565b5050565b60008054604080516371d4ed8d60e11b81526001600160a01b0385811660048301529151919092169163e3a9db1a916024808301926020929190829003018186803b15801561019457600080fd5b505afa1580156101a8573d6000803e3d6000fd5b505050506040513d60208110156101be57600080fd5b505192915050565b600080546040805163f340fa0160e01b81526001600160a01b0386811660048301529151919092169263f340fa019285926024808301939282900301818588803b15801561021357600080fd5b505af1158015610227573d6000803e3d6000fd5b5050505050505056fea264697066735822122055a85881a0d0392fdbaa46e9c7637fd87bc5804354d0ea415830c8610f9e2ad864736f6c634300060c0033608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6106d28061007d6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461008f5780638da5cb5b146100a4578063e3a9db1a146100d5578063f2fde38b1461011a578063f340fa011461014d575b600080fd5b34801561006657600080fd5b5061008d6004803603602081101561007d57600080fd5b50356001600160a01b0316610173565b005b34801561009b57600080fd5b5061008d610236565b3480156100b057600080fd5b506100b96102d8565b604080516001600160a01b039092168252519081900360200190f35b3480156100e157600080fd5b50610108600480360360208110156100f857600080fd5b50356001600160a01b03166102e7565b60408051918252519081900360200190f35b34801561012657600080fd5b5061008d6004803603602081101561013d57600080fd5b50356001600160a01b0316610302565b61008d6004803603602081101561016357600080fd5b50356001600160a01b03166103fa565b61017b6104cd565b6000546001600160a01b039081169116146101cb576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811660008181526001602052604081208054919055906101f390826104d1565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b61023e6104cd565b6000546001600160a01b0390811691161461028e576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526001602052604090205490565b61030a6104cd565b6000546001600160a01b0390811691161461035a576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b03811661039f5760405162461bcd60e51b815260040180806020018281038252602681526020018061061d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6104026104cd565b6000546001600160a01b03908116911614610452576040805162461bcd60e51b8152602060048201819052602482015260008051602061067d833981519152604482015290519081900360640190fd5b6001600160a01b038116600090815260016020526040902054349061047790826105bb565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b3390565b80471015610526576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114610571576040519150601f19603f3d011682016040523d82523d6000602084013e610576565b606091505b50509050806105b65760405162461bcd60e51b815260040180806020018281038252603a815260200180610643603a913960400191505060405180910390fd5b505050565b600082820183811015610615576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d617920686176652072657665727465644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122046931f8d6f12dcd2899e1f16aa783bb68e4fd7a715103b5b09f2c99959d1cdd064736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{"payments(address)":{"details":"Returns the payments owed to an address.","params":{"dest":"The creditor's address."}},"withdrawPayments(address)":{"details":"Withdraw accumulated payments, forwarding all gas to the recipient. Note that _any_ account can call this function, not just the `payee`. This means that contracts unaware of the `PullPayment` protocol can still receive funds this way, by having a separate account call {withdrawPayments}. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.","params":{"payee":"Whose payments will be withdrawn."}}},"version":1},"methodIdentifiers":{"callTransfer(address,uint256)":"0xd4440991","payments(address)":"0xe2982c21","withdrawPayments(address)":"0x31b3eb94"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100415760003560e01c806331b3eb9414610046578063d44409911461006e578063e2982c211461009a575b600080fd5b61006c6004803603602081101561005c57600080fd5b50356001600160a01b03166100d2565b005b61006c6004803603604081101561008457600080fd5b506001600160a01b038135169060200135610138565b6100c0600480360360208110156100b057600080fd5b50356001600160a01b0316610146565b60408051918252519081900360200190f35b60008054604080516351cff8d960e01b81526001600160a01b038581166004830152915191909216926351cff8d9926024808201939182900301818387803b15801561011d57600080fd5b505af1158015610131573d6000803e3d6000fd5b5050505050565b61014282826101c6565b5050565b60008054604080516371d4ed8d60e11b81526001600160a01b0385811660048301529151919092169163e3a9db1a916024808301926020929190829003018186803b15801561019457600080fd5b505afa1580156101a8573d6000803e3d6000fd5b505050506040513d60208110156101be57600080fd5b505192915050565b600080546040805163f340fa0160e01b81526001600160a01b0386811660048301529151919092169263f340fa019285926024808301939282900301818588803b15801561021357600080fd5b505af1158015610227573d6000803e3d6000fd5b5050505050505056fea264697066735822122055a85881a0d0392fdbaa46e9c7637fd87bc5804354d0ea415830c8610f9e2ad864736f6c634300060c0033"},"sourceId":"contracts/mocks/PullPaymentMock.sol","sourcemap":"128:241:60:-:0;;;1139:12:69;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1129:7:69;:22;;-1:-1:-1;;;;;;1129:22:69;-1:-1:-1;;;;;1129:22:69;;;;;;;;;;128:241:60;;;;;;;;;;:::o;:::-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ReentrancyAttack":{"abi":[{"inputs":[{"internalType":"bytes4","name":"data","type":"bytes4"}],"name":"callSender","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"ReentrancyAttack","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506101c4806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80630a2df1ed14610030575b600080fd5b6100576004803603602081101561004657600080fd5b50356001600160e01b031916610059565b005b600061006361018a565b60408051600481526024810182526020810180516001600160e01b03166001600160e01b03198716178152915181516001600160a01b039490941693919290918291908083835b602083106100c95780518252601f1990920191602091820191016100aa565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461012b576040519150601f19603f3d011682016040523d82523d6000602084013e610130565b606091505b5050905080610186576040805162461bcd60e51b815260206004820152601d60248201527f5265656e7472616e637941747461636b3a206661696c65642063616c6c000000604482015290519081900360640190fd5b5050565b339056fea26469706673582212206f3ef92a872ff5c30933c51aa17e4225775e97b900de5500164ba00d538a195364736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"callSender(bytes4)":"0x0a2df1ed"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80630a2df1ed14610030575b600080fd5b6100576004803603602081101561004657600080fd5b50356001600160e01b031916610059565b005b600061006361018a565b60408051600481526024810182526020810180516001600160e01b03166001600160e01b03198716178152915181516001600160a01b039490941693919290918291908083835b602083106100c95780518252601f1990920191602091820191016100aa565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461012b576040519150601f19603f3d011682016040523d82523d6000602084013e610130565b606091505b5050905080610186576040805162461bcd60e51b815260206004820152601d60248201527f5265656e7472616e637941747461636b3a206661696c65642063616c6c000000604482015290519081900360640190fd5b5050565b339056fea26469706673582212206f3ef92a872ff5c30933c51aa17e4225775e97b900de5500164ba00d538a195364736f6c634300060c0033"},"sourceId":"contracts/mocks/ReentrancyAttack.sol","sourcemap":"87:285:61:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"ReentrancyGuard":{"abi":[],"contractName":"ReentrancyGuard","deploymentBytecode":{"bytecode":"0x"},"devdoc":{"details":"Contract module that helps prevent reentrant calls to a function. Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier available, which can be applied to functions to make sure there are no nested (reentrant) calls to them. Note that because there is a single `nonReentrant` guard, functions marked as `nonReentrant` may not call one another. This can be worked around by making those functions `private`, and then adding `external` `nonReentrant` entry points to them. TIP: If you would like to learn more about reentrancy and alternative ways to protect against it, check out our blog post https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x"},"sourceId":"contracts/utils/ReentrancyGuard.sol","sourcemap":"","userdoc":{"kind":"user","methods":{},"version":1}},"ReentrancyMock":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"callback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ReentrancyAttack","name":"attacker","type":"address"}],"name":"countAndCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"countLocalRecursive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"countThisRecursive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"counter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"contractName":"ReentrancyMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600160008181559055610478806100296000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063083b27321461005c57806361bc221a146100665780638c5344fa1461008057806396ffa6901461009d578063b672ad8b146100ba575b600080fd5b6100646100e0565b005b61006e61013a565b60408051918252519081900360200190f35b6100646004803603602081101561009657600080fd5b5035610140565b610064600480360360208110156100b357600080fd5b50356102ce565b610064600480360360208110156100d057600080fd5b50356001600160a01b0316610333565b60026000541415610126576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b6002600055610133610418565b6001600055565b60015481565b60026000541415610186576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b600260005580156102c657610199610418565b60408051600019830160248083019190915282518083039091018152604490910182526020810180516001600160e01b0316634629a27d60e11b17815291518151600093309392918291908083835b602083106102075780518252601f1990920191602091820191016101e8565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610269576040519150601f19603f3d011682016040523d82523d6000602084013e61026e565b606091505b50509050806102c4576040805162461bcd60e51b815260206004820152601b60248201527f5265656e7472616e63794d6f636b3a206661696c65642063616c6c0000000000604482015290519081900360640190fd5b505b506001600055565b60026000541415610314576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b600260005580156102c657610327610418565b6102c6600182036102ce565b60026000541415610379576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b6002600055610386610418565b60408051630a2df1ed60e01b815263041d939960e11b600482015290517f083b2732f78169bfaad6b407fa338cc97d697ed69d3915a18239cc111d51a402916001600160a01b03841691630a2df1ed9160248082019260009290919082900301818387803b1580156103f757600080fd5b505af115801561040b573d6000803e3d6000fd5b5050600160005550505050565b600180548101905556fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00a2646970667358221220df6d0c816b87cc3e7981e0e961177ace657aa72d5f19682eed6ac4cc1067c9c864736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"callback()":"0x083b2732","countAndCall(address)":"0xb672ad8b","countLocalRecursive(uint256)":"0x96ffa690","countThisRecursive(uint256)":"0x8c5344fa","counter()":"0x61bc221a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063083b27321461005c57806361bc221a146100665780638c5344fa1461008057806396ffa6901461009d578063b672ad8b146100ba575b600080fd5b6100646100e0565b005b61006e61013a565b60408051918252519081900360200190f35b6100646004803603602081101561009657600080fd5b5035610140565b610064600480360360208110156100b357600080fd5b50356102ce565b610064600480360360208110156100d057600080fd5b50356001600160a01b0316610333565b60026000541415610126576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b6002600055610133610418565b6001600055565b60015481565b60026000541415610186576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b600260005580156102c657610199610418565b60408051600019830160248083019190915282518083039091018152604490910182526020810180516001600160e01b0316634629a27d60e11b17815291518151600093309392918291908083835b602083106102075780518252601f1990920191602091820191016101e8565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610269576040519150601f19603f3d011682016040523d82523d6000602084013e61026e565b606091505b50509050806102c4576040805162461bcd60e51b815260206004820152601b60248201527f5265656e7472616e63794d6f636b3a206661696c65642063616c6c0000000000604482015290519081900360640190fd5b505b506001600055565b60026000541415610314576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b600260005580156102c657610327610418565b6102c6600182036102ce565b60026000541415610379576040805162461bcd60e51b815260206004820152601f6024820152600080516020610423833981519152604482015290519081900360640190fd5b6002600055610386610418565b60408051630a2df1ed60e01b815263041d939960e11b600482015290517f083b2732f78169bfaad6b407fa338cc97d697ed69d3915a18239cc111d51a402916001600160a01b03841691630a2df1ed9160248082019260009290919082900301818387803b1580156103f757600080fd5b505af115801561040b573d6000803e3d6000fd5b5050600160005550505050565b600180548101905556fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00a2646970667358221220df6d0c816b87cc3e7981e0e961177ace657aa72d5f19682eed6ac4cc1067c9c864736f6c634300060c0033"},"sourceId":"contracts/mocks/ReentrancyMock.sol","sourcemap":"131:982:62:-:0;;;209:50;;;;;;;;;-1:-1:-1;1628:1:111;1743:7;:22;;;241:11:62;;131:982;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"RefundEscrow":{"abi":[{"inputs":[{"internalType":"address payable","name":"beneficiary","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"RefundsClosed","type":"event"},{"anonymous":false,"inputs":[],"name":"RefundsEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiaryWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"close","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"refundee","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"payee","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableRefunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"state","outputs":[{"internalType":"enum RefundEscrow.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawalAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"RefundEscrow","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50604051610d4f380380610d4f8339818101604052602081101561003357600080fd5b5051600061003f6100fe565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0381166100ce5760405162461bcd60e51b815260040180806020018281038252602d815260200180610d22602d913960400191505060405180910390fd5b6002805460ff196001600160a01b039390931661010002610100600160a81b031990911617919091169055610102565b3390565b610c11806101116000396000f3fe6080604052600436106100a75760003560e01c80638da5cb5b116100645780638da5cb5b146101985780639af6549a146101ad578063c19d93fb146101c2578063e3a9db1a146101f8578063f2fde38b1461023d578063f340fa0114610270576100a7565b806338af3eed146100ac57806343d726d6146100dd57806351cff8d9146100f4578063685ca19414610127578063715018a61461016e5780638c52dc4114610183575b600080fd5b3480156100b857600080fd5b506100c1610296565b604080516001600160a01b039092168252519081900360200190f35b3480156100e957600080fd5b506100f26102aa565b005b34801561010057600080fd5b506100f26004803603602081101561011757600080fd5b50356001600160a01b0316610388565b34801561013357600080fd5b5061015a6004803603602081101561014a57600080fd5b50356001600160a01b03166103d8565b604080519115158252519081900360200190f35b34801561017a57600080fd5b506100f26103f4565b34801561018f57600080fd5b506100f2610496565b3480156101a457600080fd5b506100c1610575565b3480156101b957600080fd5b506100f2610584565b3480156101ce57600080fd5b506101d7610611565b604051808260028111156101e757fe5b815260200191505060405180910390f35b34801561020457600080fd5b5061022b6004803603602081101561021b57600080fd5b50356001600160a01b031661061a565b60408051918252519081900360200190f35b34801561024957600080fd5b506100f26004803603602081101561026057600080fd5b50356001600160a01b0316610635565b6100f26004803603602081101561028657600080fd5b50356001600160a01b031661072d565b60025461010090046001600160a01b031690565b6102b2610785565b6000546001600160a01b03908116911614610302576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b60006002805460ff169081111561031557fe5b146103515760405162461bcd60e51b8152600401808060200182810382526029815260200180610b616029913960400191505060405180910390fd5b6002805460ff1916811790556040517f088672c3a6e342f7cd94a65ba63b79df24a8973927b4d05d803c44bbf787d12f90600090a1565b610391816103d8565b6103cc5760405162461bcd60e51b8152600401808060200182810382526033815260200180610b2e6033913960400191505060405180910390fd5b6103d581610789565b50565b600060016002805460ff16908111156103ed57fe5b1492915050565b6103fc610785565b6000546001600160a01b0390811691161461044c576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61049e610785565b6000546001600160a01b039081169116146104ee576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b60006002805460ff169081111561050157fe5b1461053d5760405162461bcd60e51b8152600401808060200182810382526032815260200180610baa6032913960400191505060405180910390fd5b6002805460ff191660011790556040517f599d8e5a83cffb867d051598c4d70e805d59802d8081c1c7d6dffc5b6aca2b8990600090a1565b6000546001600160a01b031690565b6002805460ff168181111561059557fe5b146105d15760405162461bcd60e51b8152600401808060200182810382526038815260200180610a6b6038913960400191505060405180910390fd5b6002546040516001600160a01b0361010090920491909116904780156108fc02916000818181858888f193505050501580156103d5573d6000803e3d6000fd5b60025460ff1690565b6001600160a01b031660009081526001602052604090205490565b61063d610785565b6000546001600160a01b0390811691161461068d576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b0381166106d25760405162461bcd60e51b8152600401808060200182810382526026815260200180610aa36026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006002805460ff169081111561074057fe5b1461077c5760405162461bcd60e51b815260040180806020018281038252602b815260200180610b03602b913960400191505060405180910390fd5b6103d58161084c565b3390565b610791610785565b6000546001600160a01b039081169116146107e1576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b0381166000818152600160205260408120805491905590610809908261091f565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b610854610785565b6000546001600160a01b039081169116146108a4576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205434906108c99082610a09565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b80471015610974576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d80600081146109bf576040519150601f19603f3d011682016040523d82523d6000602084013e6109c4565b606091505b5050905080610a045760405162461bcd60e51b815260040180806020018281038252603a815260200180610ac9603a913960400191505060405180910390fd5b505050565b600082820183811015610a63576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe526566756e64457363726f773a2062656e65666963696172792063616e206f6e6c79207769746864726177207768696c6520636c6f7365644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564526566756e64457363726f773a2063616e206f6e6c79206465706f736974207768696c6520616374697665436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420616c6c6f77656420746f207769746864726177526566756e64457363726f773a2063616e206f6e6c7920636c6f7365207768696c65206163746976654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526566756e64457363726f773a2063616e206f6e6c7920656e61626c6520726566756e6473207768696c6520616374697665a2646970667358221220258f742f1c7b702749260ebfad658367df321839174c58c67ece804508d173b564736f6c634300060c0033526566756e64457363726f773a2062656e656669636961727920697320746865207a65726f2061646472657373"},"devdoc":{"details":"Escrow that holds funds for a beneficiary, deposited from multiple parties.Intended usage: See {Escrow}. Same usage guidelines apply here.The owner account (that is, the contract that instantiates this contract) may deposit, close the deposit period, and allow for either withdrawal by the beneficiary, or refunds to the depositors. All interactions with `RefundEscrow` will be made through the owner contract.","kind":"dev","methods":{"beneficiary()":{"returns":{"_0":"The beneficiary of the escrow."}},"beneficiaryWithdraw()":{"details":"Withdraws the beneficiary's funds."},"close()":{"details":"Allows for the beneficiary to withdraw their funds, rejecting further deposits."},"constructor":{"details":"Constructor.","params":{"beneficiary":"The beneficiary of the deposits."}},"deposit(address)":{"details":"Stores funds that may later be refunded.","params":{"refundee":"The address funds will be sent to if a refund occurs."}},"enableRefunds()":{"details":"Allows for refunds to take place, rejecting further deposits."},"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"state()":{"returns":{"_0":"The current state of the escrow."}},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."},"withdraw(address)":{"details":"Withdraw accumulated balance for a payee, forwarding all gas to the recipient. WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities. Make sure you trust the recipient, or are either following the checks-effects-interactions pattern or using {ReentrancyGuard}.","params":{"payee":"The address whose funds will be withdrawn and transferred to."}},"withdrawalAllowed(address)":{"details":"Returns whether refundees can withdraw their deposits (be refunded). The overridden function receives a 'payee' argument, but we ignore it here since the condition is global, not per-payee."}},"title":"RefundEscrow","version":1},"methodIdentifiers":{"beneficiary()":"0x38af3eed","beneficiaryWithdraw()":"0x9af6549a","close()":"0x43d726d6","deposit(address)":"0xf340fa01","depositsOf(address)":"0xe3a9db1a","enableRefunds()":"0x8c52dc41","owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","state()":"0xc19d93fb","transferOwnership(address)":"0xf2fde38b","withdraw(address)":"0x51cff8d9","withdrawalAllowed(address)":"0x685ca194"},"runtimeBytecode":{"bytecode":"0x6080604052600436106100a75760003560e01c80638da5cb5b116100645780638da5cb5b146101985780639af6549a146101ad578063c19d93fb146101c2578063e3a9db1a146101f8578063f2fde38b1461023d578063f340fa0114610270576100a7565b806338af3eed146100ac57806343d726d6146100dd57806351cff8d9146100f4578063685ca19414610127578063715018a61461016e5780638c52dc4114610183575b600080fd5b3480156100b857600080fd5b506100c1610296565b604080516001600160a01b039092168252519081900360200190f35b3480156100e957600080fd5b506100f26102aa565b005b34801561010057600080fd5b506100f26004803603602081101561011757600080fd5b50356001600160a01b0316610388565b34801561013357600080fd5b5061015a6004803603602081101561014a57600080fd5b50356001600160a01b03166103d8565b604080519115158252519081900360200190f35b34801561017a57600080fd5b506100f26103f4565b34801561018f57600080fd5b506100f2610496565b3480156101a457600080fd5b506100c1610575565b3480156101b957600080fd5b506100f2610584565b3480156101ce57600080fd5b506101d7610611565b604051808260028111156101e757fe5b815260200191505060405180910390f35b34801561020457600080fd5b5061022b6004803603602081101561021b57600080fd5b50356001600160a01b031661061a565b60408051918252519081900360200190f35b34801561024957600080fd5b506100f26004803603602081101561026057600080fd5b50356001600160a01b0316610635565b6100f26004803603602081101561028657600080fd5b50356001600160a01b031661072d565b60025461010090046001600160a01b031690565b6102b2610785565b6000546001600160a01b03908116911614610302576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b60006002805460ff169081111561031557fe5b146103515760405162461bcd60e51b8152600401808060200182810382526029815260200180610b616029913960400191505060405180910390fd5b6002805460ff1916811790556040517f088672c3a6e342f7cd94a65ba63b79df24a8973927b4d05d803c44bbf787d12f90600090a1565b610391816103d8565b6103cc5760405162461bcd60e51b8152600401808060200182810382526033815260200180610b2e6033913960400191505060405180910390fd5b6103d581610789565b50565b600060016002805460ff16908111156103ed57fe5b1492915050565b6103fc610785565b6000546001600160a01b0390811691161461044c576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61049e610785565b6000546001600160a01b039081169116146104ee576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b60006002805460ff169081111561050157fe5b1461053d5760405162461bcd60e51b8152600401808060200182810382526032815260200180610baa6032913960400191505060405180910390fd5b6002805460ff191660011790556040517f599d8e5a83cffb867d051598c4d70e805d59802d8081c1c7d6dffc5b6aca2b8990600090a1565b6000546001600160a01b031690565b6002805460ff168181111561059557fe5b146105d15760405162461bcd60e51b8152600401808060200182810382526038815260200180610a6b6038913960400191505060405180910390fd5b6002546040516001600160a01b0361010090920491909116904780156108fc02916000818181858888f193505050501580156103d5573d6000803e3d6000fd5b60025460ff1690565b6001600160a01b031660009081526001602052604090205490565b61063d610785565b6000546001600160a01b0390811691161461068d576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b0381166106d25760405162461bcd60e51b8152600401808060200182810382526026815260200180610aa36026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006002805460ff169081111561074057fe5b1461077c5760405162461bcd60e51b815260040180806020018281038252602b815260200180610b03602b913960400191505060405180910390fd5b6103d58161084c565b3390565b610791610785565b6000546001600160a01b039081169116146107e1576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b0381166000818152600160205260408120805491905590610809908261091f565b6040805182815290516001600160a01b038416917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b610854610785565b6000546001600160a01b039081169116146108a4576040805162461bcd60e51b81526020600482018190526024820152600080516020610b8a833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205434906108c99082610a09565b6001600160a01b038316600081815260016020908152604091829020939093558051848152905191927f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c492918290030190a25050565b80471015610974576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d80600081146109bf576040519150601f19603f3d011682016040523d82523d6000602084013e6109c4565b606091505b5050905080610a045760405162461bcd60e51b815260040180806020018281038252603a815260200180610ac9603a913960400191505060405180910390fd5b505050565b600082820183811015610a63576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe526566756e64457363726f773a2062656e65666963696172792063616e206f6e6c79207769746864726177207768696c6520636c6f7365644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564526566756e64457363726f773a2063616e206f6e6c79206465706f736974207768696c6520616374697665436f6e646974696f6e616c457363726f773a207061796565206973206e6f7420616c6c6f77656420746f207769746864726177526566756e64457363726f773a2063616e206f6e6c7920636c6f7365207768696c65206163746976654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526566756e64457363726f773a2063616e206f6e6c7920656e61626c6520726566756e6473207768696c6520616374697665a2646970667358221220258f742f1c7b702749260ebfad658367df321839174c58c67ece804508d173b564736f6c634300060c0033"},"sourceId":"contracts/payment/escrow/RefundEscrow.sol","sourcemap":"573:2446:72:-:0;;;893:216;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;893:216:72;865:17:7;885:12;:10;:12::i;:::-;907:6;:18;;-1:-1:-1;;;;;;907:18:7;-1:-1:-1;;;;;907:18:7;;;;;;;940:43;;907:18;;-1:-1:-1;907:18:7;940:43;;907:6;;940:43;-1:-1:-1;;;;;;960:25:72;;952:83;;;;-1:-1:-1;;;952:83:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1045:12;:26;;-1:-1:-1;;;;;;;1045:26:72;;;;;;-1:-1:-1;;;;;;1045:26:72;;;;1081:21;;;;;;573:2446;;590:104:0;677:10;590:104;:::o;573:2446:72:-;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SafeCast":{"abi":[],"contractName":"SafeCast","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220865232395114f6230d9a919dd8c76d3a5c8ebe5a7226fe8dc98ec98d010fa34364736f6c634300060c0033"},"devdoc":{"details":"Wrappers over Solidity's uintXX/intXX casting operators with added overflow checks. Downcasting from uint256/int256 in Solidity does not revert on overflow. This can easily result in undesired exploitation or bugs, since developers usually assume that overflows raise errors. `SafeCast` restores this intuition by reverting the transaction when such an operation overflows. Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always. Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing all math on `uint256` and `int256` and then downcasting.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220865232395114f6230d9a919dd8c76d3a5c8ebe5a7226fe8dc98ec98d010fa34364736f6c634300060c0033"},"sourceId":"contracts/utils/SafeCast.sol","sourcemap":"769:5765:112:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SafeCastMock":{"abi":[{"inputs":[{"internalType":"int256","name":"a","type":"int256"}],"name":"toInt128","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"}],"name":"toInt16","outputs":[{"internalType":"int16","name":"","type":"int16"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"}],"name":"toInt256","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"}],"name":"toInt32","outputs":[{"internalType":"int32","name":"","type":"int32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"}],"name":"toInt64","outputs":[{"internalType":"int64","name":"","type":"int64"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"}],"name":"toInt8","outputs":[{"internalType":"int8","name":"","type":"int8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"}],"name":"toUint128","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"}],"name":"toUint16","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"}],"name":"toUint256","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"}],"name":"toUint32","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"}],"name":"toUint64","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"}],"name":"toUint8","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"}],"contractName":"SafeCastMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610871806100206000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063cf65b4d311610071578063cf65b4d314610206578063d6bd32aa1461023a578063dd2a03161461026e578063dfbe873b146102a2578063f136dc02146102d1578063fdcf791b14610305576100b4565b80630cc4681e146100b95780632665fad0146100ec578063809fdd33146101265780639374068f146101685780639c6f59be1461019c578063c8193255146101d0575b600080fd5b6100d6600480360360208110156100cf57600080fd5b5035610322565b6040805160ff9092168252519081900360200190f35b6101096004803603602081101561010257600080fd5b5035610333565b6040805167ffffffffffffffff9092168252519081900360200190f35b6101436004803603602081101561013c57600080fd5b503561033e565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101856004803603602081101561017e57600080fd5b5035610349565b6040805161ffff9092168252519081900360200190f35b6101b9600480360360208110156101b257600080fd5b5035610354565b6040805160039290920b8252519081900360200190f35b6101ed600480360360208110156101e657600080fd5b503561035f565b6040805163ffffffff9092168252519081900360200190f35b6102236004803603602081101561021c57600080fd5b503561036a565b6040805160019290920b8252519081900360200190f35b6102576004803603602081101561025057600080fd5b5035610375565b6040805160079290920b8252519081900360200190f35b61028b6004803603602081101561028457600080fd5b5035610380565b60408051600f9290920b8252519081900360200190f35b6102bf600480360360208110156102b857600080fd5b503561038b565b60408051918252519081900360200190f35b6102ee600480360360208110156102e757600080fd5b5035610396565b6040805160009290920b8252519081900360200190f35b6102bf6004803603602081101561031b57600080fd5b50356103a1565b600061032d826103ac565b92915050565b600061032d826103f2565b600061032d8261043b565b600061032d8261047f565b600061032d826104c2565b600061032d82610517565b600061032d8261055c565b600061032d826105ad565b600061032d8261060a565b600061032d8261066b565b600061032d826106af565b600061032d826106fe565b600061010082106103ee5760405162461bcd60e51b815260040180806020018281038252602581526020018061077c6025913960400191505060405180910390fd5b5090565b60006801000000000000000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107c86026913960400191505060405180910390fd5b6000600160801b82106103ee5760405162461bcd60e51b81526004018080602001828103825260278152602001806107a16027913960400191505060405180910390fd5b60006201000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107566026913960400191505060405180910390fd5b6000637fffffff1982121580156104dc5750638000000082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107ee6026913960400191505060405180910390fd5b600064010000000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107ee6026913960400191505060405180910390fd5b6000617fff198212158015610572575061800082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107566026913960400191505060405180910390fd5b6000677fffffffffffffff1982121580156105cf575067800000000000000082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107c86026913960400191505060405180910390fd5b60006f7fffffffffffffffffffffffffffffff19821215801561063057506001607f1b82125b6103ee5760405162461bcd60e51b81526004018080602001828103825260278152602001806107a16027913960400191505060405180910390fd5b6000600160ff1b82106103ee5760405162461bcd60e51b81526004018080602001828103825260288152602001806108146028913960400191505060405180910390fd5b6000607f1982121580156106c35750608082125b6103ee5760405162461bcd60e51b815260040180806020018281038252602581526020018061077c6025913960400191505060405180910390fd5b6000808212156103ee576040805162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015290519081900360640190fdfe53616665436173743a2076616c756520646f65736e27742066697420696e203136206269747353616665436173743a2076616c756520646f65736e27742066697420696e2038206269747353616665436173743a2076616c756520646f65736e27742066697420696e20313238206269747353616665436173743a2076616c756520646f65736e27742066697420696e203634206269747353616665436173743a2076616c756520646f65736e27742066697420696e203332206269747353616665436173743a2076616c756520646f65736e27742066697420696e20616e20696e74323536a26469706673582212207d240da711601fd6fe201c2d88718dffb4b1f985be6d38dab1e48733af56d55c64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"toInt128(int256)":"0xdd2a0316","toInt16(int256)":"0xcf65b4d3","toInt256(uint256)":"0xdfbe873b","toInt32(int256)":"0x9c6f59be","toInt64(int256)":"0xd6bd32aa","toInt8(int256)":"0xf136dc02","toUint128(uint256)":"0x809fdd33","toUint16(uint256)":"0x9374068f","toUint256(int256)":"0xfdcf791b","toUint32(uint256)":"0xc8193255","toUint64(uint256)":"0x2665fad0","toUint8(uint256)":"0x0cc4681e"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063cf65b4d311610071578063cf65b4d314610206578063d6bd32aa1461023a578063dd2a03161461026e578063dfbe873b146102a2578063f136dc02146102d1578063fdcf791b14610305576100b4565b80630cc4681e146100b95780632665fad0146100ec578063809fdd33146101265780639374068f146101685780639c6f59be1461019c578063c8193255146101d0575b600080fd5b6100d6600480360360208110156100cf57600080fd5b5035610322565b6040805160ff9092168252519081900360200190f35b6101096004803603602081101561010257600080fd5b5035610333565b6040805167ffffffffffffffff9092168252519081900360200190f35b6101436004803603602081101561013c57600080fd5b503561033e565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101856004803603602081101561017e57600080fd5b5035610349565b6040805161ffff9092168252519081900360200190f35b6101b9600480360360208110156101b257600080fd5b5035610354565b6040805160039290920b8252519081900360200190f35b6101ed600480360360208110156101e657600080fd5b503561035f565b6040805163ffffffff9092168252519081900360200190f35b6102236004803603602081101561021c57600080fd5b503561036a565b6040805160019290920b8252519081900360200190f35b6102576004803603602081101561025057600080fd5b5035610375565b6040805160079290920b8252519081900360200190f35b61028b6004803603602081101561028457600080fd5b5035610380565b60408051600f9290920b8252519081900360200190f35b6102bf600480360360208110156102b857600080fd5b503561038b565b60408051918252519081900360200190f35b6102ee600480360360208110156102e757600080fd5b5035610396565b6040805160009290920b8252519081900360200190f35b6102bf6004803603602081101561031b57600080fd5b50356103a1565b600061032d826103ac565b92915050565b600061032d826103f2565b600061032d8261043b565b600061032d8261047f565b600061032d826104c2565b600061032d82610517565b600061032d8261055c565b600061032d826105ad565b600061032d8261060a565b600061032d8261066b565b600061032d826106af565b600061032d826106fe565b600061010082106103ee5760405162461bcd60e51b815260040180806020018281038252602581526020018061077c6025913960400191505060405180910390fd5b5090565b60006801000000000000000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107c86026913960400191505060405180910390fd5b6000600160801b82106103ee5760405162461bcd60e51b81526004018080602001828103825260278152602001806107a16027913960400191505060405180910390fd5b60006201000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107566026913960400191505060405180910390fd5b6000637fffffff1982121580156104dc5750638000000082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107ee6026913960400191505060405180910390fd5b600064010000000082106103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107ee6026913960400191505060405180910390fd5b6000617fff198212158015610572575061800082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107566026913960400191505060405180910390fd5b6000677fffffffffffffff1982121580156105cf575067800000000000000082125b6103ee5760405162461bcd60e51b81526004018080602001828103825260268152602001806107c86026913960400191505060405180910390fd5b60006f7fffffffffffffffffffffffffffffff19821215801561063057506001607f1b82125b6103ee5760405162461bcd60e51b81526004018080602001828103825260278152602001806107a16027913960400191505060405180910390fd5b6000600160ff1b82106103ee5760405162461bcd60e51b81526004018080602001828103825260288152602001806108146028913960400191505060405180910390fd5b6000607f1982121580156106c35750608082125b6103ee5760405162461bcd60e51b815260040180806020018281038252602581526020018061077c6025913960400191505060405180910390fd5b6000808212156103ee576040805162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f736974697665604482015290519081900360640190fdfe53616665436173743a2076616c756520646f65736e27742066697420696e203136206269747353616665436173743a2076616c756520646f65736e27742066697420696e2038206269747353616665436173743a2076616c756520646f65736e27742066697420696e20313238206269747353616665436173743a2076616c756520646f65736e27742066697420696e203634206269747353616665436173743a2076616c756520646f65736e27742066697420696e203332206269747353616665436173743a2076616c756520646f65736e27742066697420696e20616e20696e74323536a26469706673582212207d240da711601fd6fe201c2d88718dffb4b1f985be6d38dab1e48733af56d55c64736f6c634300060c0033"},"sourceId":"contracts/mocks/SafeCastMock.sol","sourcemap":"91:1228:63:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SafeERC20":{"abi":[],"contractName":"SafeERC20","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122005cffbceed689ab59b14f381e77a1ab4df09bde8f68f0b9b6f9a8d86610f4e4264736f6c634300060c0033"},"devdoc":{"details":"Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, which allows you to call the safe operations as `token.safeTransfer(...)`, etc.","kind":"dev","methods":{},"title":"SafeERC20","version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122005cffbceed689ab59b14f381e77a1ab4df09bde8f68f0b9b6f9a8d86610f4e4264736f6c634300060c0033"},"sourceId":"contracts/token/ERC20/SafeERC20.sol","sourcemap":"608:3104:90:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SafeERC20Wrapper":{"abi":[{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"decreaseAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"increaseAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"allowance_","type":"uint256"}],"name":"setAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"SafeERC20Wrapper","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50604051610a73380380610a738339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b0319909216919091179055610a0e806100656000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063811c34d31161005b578063811c34d3146100db5780638a4068dd146100e3578063b759f954146100eb578063de242ff4146101085761007d565b806310bad4cf1461008257806311e330b2146100a15780633ba93f26146100be575b600080fd5b61009f6004803603602081101561009857600080fd5b5035610122565b005b61009f600480360360208110156100b757600080fd5b503561013f565b61009f600480360360208110156100d457600080fd5b5035610159565b61009f6101bc565b61009f6101d9565b61009f6004803603602081101561010157600080fd5b50356101f3565b61011061020d565b60408051918252519081900360200190f35b6000805461013c916001600160a01b039091169083610292565b50565b6000805461013c916001600160a01b03909116908361038f565b6000805460408051631dd49f9360e11b81526004810185905290516001600160a01b0390921692633ba93f269260248084019382900301818387803b1580156101a157600080fd5b505af11580156101b5573d6000803e3d6000fd5b5050505050565b600080546101d7916001600160a01b03909116908080610425565b565b600080546101d7916001600160a01b03909116908061047f565b6000805461013c916001600160a01b0390911690836104d6565b6000805460408051636eb1769f60e11b8152600481018490526024810184905290516001600160a01b039092169163dd62ed3e91604480820192602092909190829003018186803b15801561026157600080fd5b505afa158015610275573d6000803e3d6000fd5b505050506040513d602081101561028b57600080fd5b5051905090565b6000610334826040518060600160405280602981526020016109506029913960408051636eb1769f60e11b81523060048201526001600160a01b03888116602483015291519189169163dd62ed3e91604480820192602092909190829003018186803b15801561030157600080fd5b505afa158015610315573d6000803e3d6000fd5b505050506040513d602081101561032b57600080fd5b505191906105e9565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052909150610389908590610680565b50505050565b600061033482856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156103f357600080fd5b505afa158015610407573d6000803e3d6000fd5b505050506040513d602081101561041d57600080fd5b505190610731565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610389908590610680565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526104d1908490610680565b505050565b80158061055c575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561052e57600080fd5b505afa158015610542573d6000803e3d6000fd5b505050506040513d602081101561055857600080fd5b5051155b6105975760405162461bcd60e51b81526004018080602001828103825260368152602001806109a36036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526104d1908490610680565b600081848411156106785760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561063d578181015183820152602001610625565b50505050905090810190601f16801561066a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606106d5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107929092919063ffffffff16565b8051909150156104d1578080602001905160208110156106f457600080fd5b50516104d15760405162461bcd60e51b815260040180806020018281038252602a815260200180610979602a913960400191505060405180910390fd5b60008282018381101561078b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60606107a184846000856107a9565b949350505050565b60606107b485610916565b610805576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106108445780518252601f199092019160209182019101610825565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146108a6576040519150601f19603f3d011682016040523d82523d6000602084013e6108ab565b606091505b509150915081156108bf5791506107a19050565b8051156108cf5780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561063d578181015183820152602001610625565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906107a157505015159291505056fe5361666545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212206efd3d5793413ccdf3ee7fcc997b1aa28697a1e6eb2295a220e12c83c7a7788764736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"allowance()":"0xde242ff4","approve(uint256)":"0xb759f954","decreaseAllowance(uint256)":"0x10bad4cf","increaseAllowance(uint256)":"0x11e330b2","setAllowance(uint256)":"0x3ba93f26","transfer()":"0x8a4068dd","transferFrom()":"0x811c34d3"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063811c34d31161005b578063811c34d3146100db5780638a4068dd146100e3578063b759f954146100eb578063de242ff4146101085761007d565b806310bad4cf1461008257806311e330b2146100a15780633ba93f26146100be575b600080fd5b61009f6004803603602081101561009857600080fd5b5035610122565b005b61009f600480360360208110156100b757600080fd5b503561013f565b61009f600480360360208110156100d457600080fd5b5035610159565b61009f6101bc565b61009f6101d9565b61009f6004803603602081101561010157600080fd5b50356101f3565b61011061020d565b60408051918252519081900360200190f35b6000805461013c916001600160a01b039091169083610292565b50565b6000805461013c916001600160a01b03909116908361038f565b6000805460408051631dd49f9360e11b81526004810185905290516001600160a01b0390921692633ba93f269260248084019382900301818387803b1580156101a157600080fd5b505af11580156101b5573d6000803e3d6000fd5b5050505050565b600080546101d7916001600160a01b03909116908080610425565b565b600080546101d7916001600160a01b03909116908061047f565b6000805461013c916001600160a01b0390911690836104d6565b6000805460408051636eb1769f60e11b8152600481018490526024810184905290516001600160a01b039092169163dd62ed3e91604480820192602092909190829003018186803b15801561026157600080fd5b505afa158015610275573d6000803e3d6000fd5b505050506040513d602081101561028b57600080fd5b5051905090565b6000610334826040518060600160405280602981526020016109506029913960408051636eb1769f60e11b81523060048201526001600160a01b03888116602483015291519189169163dd62ed3e91604480820192602092909190829003018186803b15801561030157600080fd5b505afa158015610315573d6000803e3d6000fd5b505050506040513d602081101561032b57600080fd5b505191906105e9565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052909150610389908590610680565b50505050565b600061033482856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156103f357600080fd5b505afa158015610407573d6000803e3d6000fd5b505050506040513d602081101561041d57600080fd5b505190610731565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610389908590610680565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526104d1908490610680565b505050565b80158061055c575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561052e57600080fd5b505afa158015610542573d6000803e3d6000fd5b505050506040513d602081101561055857600080fd5b5051155b6105975760405162461bcd60e51b81526004018080602001828103825260368152602001806109a36036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526104d1908490610680565b600081848411156106785760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561063d578181015183820152602001610625565b50505050905090810190601f16801561066a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606106d5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107929092919063ffffffff16565b8051909150156104d1578080602001905160208110156106f457600080fd5b50516104d15760405162461bcd60e51b815260040180806020018281038252602a815260200180610979602a913960400191505060405180910390fd5b60008282018381101561078b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60606107a184846000856107a9565b949350505050565b60606107b485610916565b610805576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106108445780518252601f199092019160209182019101610825565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146108a6576040519150601f19603f3d011682016040523d82523d6000602084013e6108ab565b606091505b509150915081156108bf5791506107a19050565b8051156108cf5780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561063d578181015183820152602001610625565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906107a157505015159291505056fe5361666545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212206efd3d5793413ccdf3ee7fcc997b1aa28697a1e6eb2295a220e12c83c7a7788764736f6c634300060c0033"},"sourceId":"contracts/mocks/SafeERC20Helper.sol","sourcemap":"2605:956:64:-:0;;;2709:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2709:65:64;2753:6;:14;;-1:-1:-1;;;;;2753:14:64;;;-1:-1:-1;;;;;;2753:14:64;;;;;;;;;2605:956;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SafeMath":{"abi":[],"contractName":"SafeMath","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207fba369605e72cb427851ff8ad9e7f251ebae41b09bc298939e6bbbf361d3e5364736f6c634300060c0033"},"devdoc":{"details":"Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restores this intuition by reverting the transaction when an operation overflows. Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207fba369605e72cb427851ff8ad9e7f251ebae41b09bc298939e6bbbf361d3e5364736f6c634300060c0033"},"sourceId":"contracts/math/SafeMath.sol","sourcemap":"622:4578:17:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SafeMathMock":{"abi":[{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"add","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"div","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"mod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"mul","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"sub","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}],"contractName":"SafeMathMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610490806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063771602f71461005c578063a391c15b14610091578063b67d77c5146100b4578063c8a4ac9c146100d7578063f43f523a146100fa575b600080fd5b61007f6004803603604081101561007257600080fd5b508035906020013561011d565b60408051918252519081900360200190f35b61007f600480360360408110156100a757600080fd5b5080359060200135610132565b61007f600480360360408110156100ca57600080fd5b508035906020013561013e565b61007f600480360360408110156100ed57600080fd5b508035906020013561014a565b61007f6004803603604081101561011057600080fd5b5080359060200135610156565b60006101298383610162565b90505b92915050565b600061012983836101bc565b600061012983836101fe565b60006101298383610240565b60006101298383610299565b600082820183811015610129576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061012983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506102db565b600061012983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061037d565b60008261024f5750600061012c565b8282028284828161025c57fe5b04146101295760405162461bcd60e51b815260040180806020018281038252602181526020018061043a6021913960400191505060405180910390fd5b600061012983836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f00000000000000008152506103d7565b600081836103675760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561032c578181015183820152602001610314565b50505050905090810190601f1680156103595780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161037357fe5b0495945050505050565b600081848411156103cf5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561032c578181015183820152602001610314565b505050900390565b600081836104265760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561032c578181015183820152602001610314565b5082848161043057fe5b0694935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212205969458e322f472fb82618222cda9043561141ded7c53c182eb64d094aca534864736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"add(uint256,uint256)":"0x771602f7","div(uint256,uint256)":"0xa391c15b","mod(uint256,uint256)":"0xf43f523a","mul(uint256,uint256)":"0xc8a4ac9c","sub(uint256,uint256)":"0xb67d77c5"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063771602f71461005c578063a391c15b14610091578063b67d77c5146100b4578063c8a4ac9c146100d7578063f43f523a146100fa575b600080fd5b61007f6004803603604081101561007257600080fd5b508035906020013561011d565b60408051918252519081900360200190f35b61007f600480360360408110156100a757600080fd5b5080359060200135610132565b61007f600480360360408110156100ca57600080fd5b508035906020013561013e565b61007f600480360360408110156100ed57600080fd5b508035906020013561014a565b61007f6004803603604081101561011057600080fd5b5080359060200135610156565b60006101298383610162565b90505b92915050565b600061012983836101bc565b600061012983836101fe565b60006101298383610240565b60006101298383610299565b600082820183811015610129576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061012983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506102db565b600061012983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061037d565b60008261024f5750600061012c565b8282028284828161025c57fe5b04146101295760405162461bcd60e51b815260040180806020018281038252602181526020018061043a6021913960400191505060405180910390fd5b600061012983836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f00000000000000008152506103d7565b600081836103675760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561032c578181015183820152602001610314565b50505050905090810190601f1680156103595780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161037357fe5b0495945050505050565b600081848411156103cf5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561032c578181015183820152602001610314565b505050900390565b600081836104265760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561032c578181015183820152602001610314565b5082848161043057fe5b0694935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212205969458e322f472fb82618222cda9043561141ded7c53c182eb64d094aca534864736f6c634300060c0033"},"sourceId":"contracts/mocks/SafeMathMock.sol","sourcemap":"90:589:65:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SignedSafeMath":{"abi":[],"contractName":"SignedSafeMath","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b478f454298524f5395e4ae2c86d2cc769b528631919b9f1e528103792d5804c64736f6c634300060c0033"},"devdoc":{"details":"Signed math operations with safety checks that revert on error.","kind":"dev","methods":{},"title":"SignedSafeMath","version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b478f454298524f5395e4ae2c86d2cc769b528631919b9f1e528103792d5804c64736f6c634300060c0033"},"sourceId":"contracts/math/SignedSafeMath.sol","sourcemap":"163:2499:18:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SignedSafeMathMock":{"abi":[{"inputs":[{"internalType":"int256","name":"a","type":"int256"},{"internalType":"int256","name":"b","type":"int256"}],"name":"add","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"},{"internalType":"int256","name":"b","type":"int256"}],"name":"div","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"},{"internalType":"int256","name":"b","type":"int256"}],"name":"mul","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"a","type":"int256"},{"internalType":"int256","name":"b","type":"int256"}],"name":"sub","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"}],"contractName":"SignedSafeMathMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50610416806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80634350913814610051578063a5f3c23b14610086578063adefc37b146100a9578063bbe93d91146100cc575b600080fd5b6100746004803603604081101561006757600080fd5b50803590602001356100ef565b60408051918252519081900360200190f35b6100746004803603604081101561009c57600080fd5b5080359060200135610104565b610074600480360360408110156100bf57600080fd5b5080359060200135610110565b610074600480360360408110156100e257600080fd5b508035906020013561011c565b60006100fb8383610128565b90505b92915050565b60006100fb83836101e0565b60006100fb8383610245565b60006100fb83836102aa565b60008161017c576040805162461bcd60e51b815260206004820181905260248201527f5369676e6564536166654d6174683a206469766973696f6e206279207a65726f604482015290519081900360640190fd5b816000191480156101905750600160ff1b83145b156101cc5760405162461bcd60e51b81526004018080602001828103825260218152602001806103756021913960400191505060405180910390fd5b60008284816101d757fe5b05949350505050565b60008282018183128015906101f55750838112155b8061020a575060008312801561020a57508381125b6100fb5760405162461bcd60e51b81526004018080602001828103825260218152602001806103546021913960400191505060405180910390fd5b600081830381831280159061025a5750838113155b8061026f575060008312801561026f57508381135b6100fb5760405162461bcd60e51b81526004018080602001828103825260248152602001806103bd6024913960400191505060405180910390fd5b6000826102b9575060006100fe565b826000191480156102cd5750600160ff1b82145b156103095760405162461bcd60e51b81526004018080602001828103825260278152602001806103966027913960400191505060405180910390fd5b8282028284828161031657fe5b05146100fb5760405162461bcd60e51b81526004018080602001828103825260278152602001806103966027913960400191505060405180910390fdfe5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f775369676e6564536166654d6174683a206469766973696f6e206f766572666c6f775369676e6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775369676e6564536166654d6174683a207375627472616374696f6e206f766572666c6f77a26469706673582212200c87c8e6ec612152c42618fb37668e9ce52a300c58dc7dbc8a2ec628ca71fdca64736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"add(int256,int256)":"0xa5f3c23b","div(int256,int256)":"0x43509138","mul(int256,int256)":"0xbbe93d91","sub(int256,int256)":"0xadefc37b"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80634350913814610051578063a5f3c23b14610086578063adefc37b146100a9578063bbe93d91146100cc575b600080fd5b6100746004803603604081101561006757600080fd5b50803590602001356100ef565b60408051918252519081900360200190f35b6100746004803603604081101561009c57600080fd5b5080359060200135610104565b610074600480360360408110156100bf57600080fd5b5080359060200135610110565b610074600480360360408110156100e257600080fd5b508035906020013561011c565b60006100fb8383610128565b90505b92915050565b60006100fb83836101e0565b60006100fb8383610245565b60006100fb83836102aa565b60008161017c576040805162461bcd60e51b815260206004820181905260248201527f5369676e6564536166654d6174683a206469766973696f6e206279207a65726f604482015290519081900360640190fd5b816000191480156101905750600160ff1b83145b156101cc5760405162461bcd60e51b81526004018080602001828103825260218152602001806103756021913960400191505060405180910390fd5b60008284816101d757fe5b05949350505050565b60008282018183128015906101f55750838112155b8061020a575060008312801561020a57508381125b6100fb5760405162461bcd60e51b81526004018080602001828103825260218152602001806103546021913960400191505060405180910390fd5b600081830381831280159061025a5750838113155b8061026f575060008312801561026f57508381135b6100fb5760405162461bcd60e51b81526004018080602001828103825260248152602001806103bd6024913960400191505060405180910390fd5b6000826102b9575060006100fe565b826000191480156102cd5750600160ff1b82145b156103095760405162461bcd60e51b81526004018080602001828103825260278152602001806103966027913960400191505060405180910390fd5b8282028284828161031657fe5b05146100fb5760405162461bcd60e51b81526004018080602001828103825260278152602001806103966027913960400191505060405180910390fdfe5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f775369676e6564536166654d6174683a206469766973696f6e206f766572666c6f775369676e6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775369676e6564536166654d6174683a207375627472616374696f6e206f766572666c6f77a26469706673582212200c87c8e6ec612152c42618fb37668e9ce52a300c58dc7dbc8a2ec628ca71fdca64736f6c634300060c0033"},"sourceId":"contracts/mocks/SignedSafeMathMock.sol","sourcemap":"96:494:66:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"Strings":{"abi":[],"contractName":"Strings","deploymentBytecode":{"bytecode":"0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220dccbe01ba3a01385181b4b2545e3dc389fdc3ab2d11f45559a7ee852975a5f0664736f6c634300060c0033"},"devdoc":{"details":"String operations.","kind":"dev","methods":{},"version":1},"methodIdentifiers":{},"runtimeBytecode":{"bytecode":"0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220dccbe01ba3a01385181b4b2545e3dc389fdc3ab2d11f45559a7ee852975a5f0664736f6c634300060c0033"},"sourceId":"contracts/utils/Strings.sol","sourcemap":"93:834:113:-:0;;;;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"StringsMock":{"abi":[{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"fromUint256","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}],"contractName":"StringsMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506101e6806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063a2bd364414610030575b600080fd5b61004d6004803603602081101561004657600080fd5b50356100c2565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561008757818101518382015260200161006f565b50505050905090810190601f1680156100b45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60606100cd826100d5565b90505b919050565b6060816100fa57506040805180820190915260018152600360fc1b60208201526100d0565b8160005b811561011257600101600a820491506100fe565b60608167ffffffffffffffff8111801561012b57600080fd5b506040519080825280601f01601f191660200182016040528015610156576020820181803683370190505b50859350905060001982015b83156101a757600a840660300160f81b8282806001900393508151811061018557fe5b60200101906001600160f81b031916908160001a905350600a84049350610162565b5094935050505056fea2646970667358221220b3fae198e8616bfc87bc66e8d7c6135f6f577fa15c77ff44f726260ee2b4827864736f6c634300060c0033"},"devdoc":{"kind":"dev","methods":{},"version":1},"methodIdentifiers":{"fromUint256(uint256)":"0xa2bd3644"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063a2bd364414610030575b600080fd5b61004d6004803603602081101561004657600080fd5b50356100c2565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561008757818101518382015260200161006f565b50505050905090810190601f1680156100b45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60606100cd826100d5565b90505b919050565b6060816100fa57506040805180820190915260018152600360fc1b60208201526100d0565b8160005b811561011257600101600a820491506100fe565b60608167ffffffffffffffff8111801561012b57600080fd5b506040519080825280601f01601f191660200182016040528015610156576020820181803683370190505b50859350905060001982015b83156101a757600a840660300160f81b8282806001900393508151811061018557fe5b60200101906001600160f81b031916908160001a905350600a84049350610162565b5094935050505056fea2646970667358221220b3fae198e8616bfc87bc66e8d7c6135f6f577fa15c77ff44f726260ee2b4827864736f6c634300060c0033"},"sourceId":"contracts/mocks/StringsMock.sol","sourcemap":"90:148:67:-:0;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}},"SupportsInterfaceWithLookupMock":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"INTERFACE_ID_ERC165","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}],"contractName":"SupportsInterfaceWithLookupMock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506100216301ffc9a760e01b610026565b610094565b6001600160e01b0319808216141561006f5760405162461bcd60e51b815260040180806020018281038252602f815260200180610194602f913960400191505060405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b60f2806100a26000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c14606f575b600080fd5b605b60048036036020811015604b57600080fd5b50356001600160e01b0319166092565b604080519115158252519081900360200190f35b607560b1565b604080516001600160e01b03199092168252519081900360200190f35b6001600160e01b03191660009081526020819052604090205460ff1690565b6301ffc9a760e01b8156fea26469706673582212205d8229dcef87407727046a393c05132666aef2088e6a4db8cb225c0b54ade1d564736f6c634300060c0033455243313635496e7465726661636573537570706f727465643a20696e76616c696420696e74657266616365206964"},"devdoc":{"kind":"dev","methods":{"constructor":{"details":"A contract implementing SupportsInterfaceWithLookup implement ERC165 itself."},"supportsInterface(bytes4)":{"details":"Implement supportsInterface(bytes4) using a lookup table."}},"stateVariables":{"_supportedInterfaces":{"details":"A mapping of interface id to whether or not it's supported."}},"version":1},"methodIdentifiers":{"INTERFACE_ID_ERC165()":"0x34d7006c","supportsInterface(bytes4)":"0x01ffc9a7"},"runtimeBytecode":{"bytecode":"0x6080604052348015600f57600080fd5b506004361060325760003560e01c806301ffc9a714603757806334d7006c14606f575b600080fd5b605b60048036036020811015604b57600080fd5b50356001600160e01b0319166092565b604080519115158252519081900360200190f35b607560b1565b604080516001600160e01b03199092168252519081900360200190f35b6001600160e01b03191660009081526020819052604090205460ff1690565b6301ffc9a760e01b8156fea26469706673582212205d8229dcef87407727046a393c05132666aef2088e6a4db8cb225c0b54ade1d564736f6c634300060c0033"},"sourceId":"contracts/mocks/ERC165/ERC165InterfacesSupported.sol","sourcemap":"629:1062:32:-:0;;;1091:78;;;;;;;;;-1:-1:-1;1123:39:32;-1:-1:-1;;;1123:18:32;:39::i;:::-;629:1062;;1480:209;-1:-1:-1;;;;;;1555:25:32;;;;;1547:85;;;;-1:-1:-1;;;1547:85:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1642:33:32;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1642:40:32;1678:4;1642:40;;;1480:209::o;629:1062::-;;;;;;;","userdoc":{"kind":"user","methods":{},"notice":"https://eips.ethereum.org/EIPS/eip-214#specification From the specification: > Any attempts to make state-changing operations inside an execution instance with STATIC set to true will instead throw an exception. > These operations include [...], LOG0, LOG1, LOG2, [...] therefore, because this contract is staticcall'd we need to not emit events (which is how solidity-coverage works) solidity-coverage ignores the /mocks folder, so we duplicate its implementation here to avoid instrumenting it","version":1}},"TokenTimelock":{"abi":[{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"releaseTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"contractName":"TokenTimelock","deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b5060405161068a38038061068a8339818101604052606081101561003357600080fd5b50805160208201516040909201519091904281116100825760405162461bcd60e51b81526004018080602001828103825260328152602001806106586032913960400191505060405180910390fd5b600080546001600160a01b039485166001600160a01b0319918216179091556001805493909416921691909117909155600255610594806100c46000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806338af3eed1461005157806386d1a69f14610075578063b91d40011461007f578063fc0c546a14610099575b600080fd5b6100596100a1565b604080516001600160a01b039092168252519081900360200190f35b61007d6100b0565b005b6100876101c7565b60408051918252519081900360200190f35b6100596101cd565b6001546001600160a01b031690565b6002544210156100f15760405162461bcd60e51b81526004018080602001828103825260328152602001806104e06032913960400191505060405180910390fd5b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561013d57600080fd5b505afa158015610151573d6000803e3d6000fd5b505050506040513d602081101561016757600080fd5b50519050806101a75760405162461bcd60e51b815260040180806020018281038252602381526020018061053c6023913960400191505060405180910390fd5b6001546000546101c4916001600160a01b039182169116836101dc565b50565b60025490565b6000546001600160a01b031690565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261022e908490610233565b505050565b6060610288826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166102e49092919063ffffffff16565b80519091501561022e578080602001905160208110156102a757600080fd5b505161022e5760405162461bcd60e51b815260040180806020018281038252602a815260200180610512602a913960400191505060405180910390fd5b60606102f384846000856102fb565b949350505050565b6060610306856104a6565b610357576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106103965780518252601f199092019160209182019101610377565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146103f8576040519150601f19603f3d011682016040523d82523d6000602084013e6103fd565b606091505b509150915081156104115791506102f39050565b8051156104215780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561046b578181015183820152602001610453565b50505050905090810190601f1680156104985780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906102f357505015159291505056fe546f6b656e54696d656c6f636b3a2063757272656e742074696d65206973206265666f72652072656c656173652074696d655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e54696d656c6f636b3a206e6f20746f6b656e7320746f2072656c65617365a26469706673582212209556424ea791b59882eff435f5403b04b9940949c346c431cc08b8b4e04fdddc64736f6c634300060c0033546f6b656e54696d656c6f636b3a2072656c656173652074696d65206973206265666f72652063757272656e742074696d65"},"devdoc":{"details":"A token holder contract that will allow a beneficiary to extract the tokens after a given release time. Useful for simple vesting schedules like \"advisors get all of their tokens after 1 year\".","kind":"dev","methods":{"beneficiary()":{"returns":{"_0":"the beneficiary of the tokens."}},"releaseTime()":{"returns":{"_0":"the time when the tokens are released."}},"token()":{"returns":{"_0":"the token being held."}}},"version":1},"methodIdentifiers":{"beneficiary()":"0x38af3eed","release()":"0x86d1a69f","releaseTime()":"0xb91d4001","token()":"0xfc0c546a"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806338af3eed1461005157806386d1a69f14610075578063b91d40011461007f578063fc0c546a14610099575b600080fd5b6100596100a1565b604080516001600160a01b039092168252519081900360200190f35b61007d6100b0565b005b6100876101c7565b60408051918252519081900360200190f35b6100596101cd565b6001546001600160a01b031690565b6002544210156100f15760405162461bcd60e51b81526004018080602001828103825260328152602001806104e06032913960400191505060405180910390fd5b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561013d57600080fd5b505afa158015610151573d6000803e3d6000fd5b505050506040513d602081101561016757600080fd5b50519050806101a75760405162461bcd60e51b815260040180806020018281038252602381526020018061053c6023913960400191505060405180910390fd5b6001546000546101c4916001600160a01b039182169116836101dc565b50565b60025490565b6000546001600160a01b031690565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261022e908490610233565b505050565b6060610288826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166102e49092919063ffffffff16565b80519091501561022e578080602001905160208110156102a757600080fd5b505161022e5760405162461bcd60e51b815260040180806020018281038252602a815260200180610512602a913960400191505060405180910390fd5b60606102f384846000856102fb565b949350505050565b6060610306856104a6565b610357576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106103965780518252601f199092019160209182019101610377565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146103f8576040519150601f19603f3d011682016040523d82523d6000602084013e6103fd565b606091505b509150915081156104115791506102f39050565b8051156104215780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561046b578181015183820152602001610453565b50505050905090810190601f1680156104985780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906102f357505015159291505056fe546f6b656e54696d656c6f636b3a2063757272656e742074696d65206973206265666f72652072656c656173652074696d655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e54696d656c6f636b3a206e6f20746f6b656e7320746f2072656c65617365a26469706673582212209556424ea791b59882eff435f5403b04b9940949c346c431cc08b8b4e04fdddc64736f6c634300060c0033"},"sourceId":"contracts/token/ERC20/TokenTimelock.sol","sourcemap":"307:1564:91:-:0;;;612:335;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;612:335:91;;;;;;;;;;;;;;774:15;760:29;;752:92;;;;-1:-1:-1;;;752:92:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;854:6;:14;;-1:-1:-1;;;;;854:14:91;;;-1:-1:-1;;;;;;854:14:91;;;;;;;;878:26;;;;;;;;;;;;;;;914:12;:26;307:1564;;;;;;","userdoc":{"kind":"user","methods":{"release()":{"notice":"Transfers tokens held by timelock to beneficiary."}},"version":1}},"__unstable__ERC20Owned":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"inputs":[{"internalType":"address","name":"tokenOwner","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":"account","type":"address"}],"name":"balanceOf","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}],"contractName":"__unstable__ERC20Owned","deploymentBytecode":{"bytecode":"0x60806040523480156200001157600080fd5b50604051620011ea380380620011ea833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001b89060039060208501906200024c565b508051620001ce9060049060208401906200024c565b50506005805460ff19166012179055506000620001ea62000248565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505050620002e8565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028f57805160ff1916838001178555620002bf565b82800160010185558215620002bf579182015b82811115620002bf578251825591602001919060010190620002a2565b50620002cd929150620002d1565b5090565b5b80821115620002cd5760008155600101620002d2565b610ef280620002f86000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d7146102d9578063a9059cbb14610305578063dd62ed3e14610331578063f2fde38b1461035f576100f5565b806370a082311461027f578063715018a6146102a55780638da5cb5b146102ad57806395d89b41146102d1576100f5565b806323b872dd116100d357806323b872dd146101d1578063313ce56714610207578063395093511461022557806340c10f1914610251576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b610102610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b03813516906020013561041b565b604080519115158252519081900360200190f35b6101bf610439565b60408051918252519081900360200190f35b6101a3600480360360608110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040013561043f565b61020f61048a565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561023b57600080fd5b506001600160a01b038135169060200135610493565b61027d6004803603604081101561026757600080fd5b506001600160a01b0381351690602001356104e6565b005b6101bf6004803603602081101561029557600080fd5b50356001600160a01b0316610563565b61027d61057e565b6102b561063d565b604080516001600160a01b039092168252519081900360200190f35b610102610651565b6101a3600480360360408110156102ef57600080fd5b506001600160a01b0381351690602001356106b2565b6101a36004803603604081101561031b57600080fd5b506001600160a01b03813516906020013561071a565b6101bf6004803603604081101561034757600080fd5b506001600160a01b038135811691602001351661072e565b61027d6004803603602081101561037557600080fd5b50356001600160a01b031661076b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b820191906000526020600020905b8154815290600101906020018083116103f457829003601f168201915b5050505050905090565b600061042f610428610886565b848461088a565b5060015b92915050565b60025490565b600061044961063d565b6001600160a01b0316836001600160a01b031614156104755761046d8484846108c0565b506001610483565b610480848484610a1b565b90505b9392505050565b60055460ff1690565b600061042f6104a0610886565b846104e185600160006104b1610886565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610a9d565b61088a565b6104ee610886565b60055461010090046001600160a01b03908116911614610555576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61055f8282610af7565b5050565b6001600160a01b031660009081526020819052604090205490565b610586610886565b60055461010090046001600160a01b039081169116146105ed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b600061042f6106bf610886565b846104e185604051806060016040528060258152602001610e9860259139600160006106e9610886565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610be7565b600061042f610727610886565b84846108c0565b600061073861063d565b6001600160a01b0316826001600160a01b0316141561075a5750600019610433565b6107648383610c7e565b9050610433565b610773610886565b60055461010090046001600160a01b039081169116146107da576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661081f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610db96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b61089261063d565b6001600160a01b0316826001600160a01b031614156108b0576108bb565b6108bb838383610ca9565b505050565b6001600160a01b0383166109055760405162461bcd60e51b8152600401808060200182810382526025815260200180610e4f6025913960400191505060405180910390fd5b6001600160a01b03821661094a5760405162461bcd60e51b8152600401808060200182810382526023815260200180610d966023913960400191505060405180910390fd5b6109558383836108bb565b61099281604051806060016040528060268152602001610e01602691396001600160a01b0386166000908152602081905260409020549190610be7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546109c19082610a9d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000610a288484846108c0565b610a9384610a34610886565b6104e185604051806060016040528060288152602001610e27602891396001600160a01b038a16600090815260016020526040812090610a72610886565b6001600160a01b031681526020810191909152604001600020549190610be7565b5060019392505050565b600082820183811015610483576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610b52576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610b5e600083836108bb565b600254610b6b9082610a9d565b6002556001600160a01b038216600090815260208190526040902054610b919082610a9d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115610c765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c3b578181015183820152602001610c23565b50505050905090810190601f168015610c685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610cee5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e746024913960400191505060405180910390fd5b6001600160a01b038216610d335760405162461bcd60e51b8152600401808060200182810382526022815260200180610ddf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209f7e4d528c2f5e0178238b471a63b49a19c70b02b5d8e226290a430d9cae242164736f6c634300060c0033"},"devdoc":{"details":"An ERC20 token owned by another contract, which has minting permissions and can use transferFrom to receive anyone's tokens. This contract is an internal helper for GSNRecipientERC20Fee, and should not be used outside of this context.","kind":"dev","methods":{"approve(address,uint256)":{"details":"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address."},"balanceOf(address)":{"details":"See {IERC20-balanceOf}."},"decimals()":{"details":"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."},"decreaseAllowance(address,uint256)":{"details":"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."},"increaseAllowance(address,uint256)":{"details":"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."},"name()":{"details":"Returns the name of the token."},"owner()":{"details":"Returns the address of the current owner."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."},"symbol()":{"details":"Returns the symbol of the token, usually a shorter version of the name."},"totalSupply()":{"details":"See {IERC20-totalSupply}."},"transfer(address,uint256)":{"details":"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."},"transferFrom(address,address,uint256)":{"details":"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}},"title":"__unstable__ERC20Owned","version":1},"methodIdentifiers":{"allowance(address,address)":"0xdd62ed3e","approve(address,uint256)":"0x095ea7b3","balanceOf(address)":"0x70a08231","decimals()":"0x313ce567","decreaseAllowance(address,uint256)":"0xa457c2d7","increaseAllowance(address,uint256)":"0x39509351","mint(address,uint256)":"0x40c10f19","name()":"0x06fdde03","owner()":"0x8da5cb5b","renounceOwnership()":"0x715018a6","symbol()":"0x95d89b41","totalSupply()":"0x18160ddd","transfer(address,uint256)":"0xa9059cbb","transferFrom(address,address,uint256)":"0x23b872dd","transferOwnership(address)":"0xf2fde38b"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d7146102d9578063a9059cbb14610305578063dd62ed3e14610331578063f2fde38b1461035f576100f5565b806370a082311461027f578063715018a6146102a55780638da5cb5b146102ad57806395d89b41146102d1576100f5565b806323b872dd116100d357806323b872dd146101d1578063313ce56714610207578063395093511461022557806340c10f1914610251576100f5565b806306fdde03146100fa578063095ea7b31461017757806318160ddd146101b7575b600080fd5b610102610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a36004803603604081101561018d57600080fd5b506001600160a01b03813516906020013561041b565b604080519115158252519081900360200190f35b6101bf610439565b60408051918252519081900360200190f35b6101a3600480360360608110156101e757600080fd5b506001600160a01b0381358116916020810135909116906040013561043f565b61020f61048a565b6040805160ff9092168252519081900360200190f35b6101a36004803603604081101561023b57600080fd5b506001600160a01b038135169060200135610493565b61027d6004803603604081101561026757600080fd5b506001600160a01b0381351690602001356104e6565b005b6101bf6004803603602081101561029557600080fd5b50356001600160a01b0316610563565b61027d61057e565b6102b561063d565b604080516001600160a01b039092168252519081900360200190f35b610102610651565b6101a3600480360360408110156102ef57600080fd5b506001600160a01b0381351690602001356106b2565b6101a36004803603604081101561031b57600080fd5b506001600160a01b03813516906020013561071a565b6101bf6004803603604081101561034757600080fd5b506001600160a01b038135811691602001351661072e565b61027d6004803603602081101561037557600080fd5b50356001600160a01b031661076b565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b820191906000526020600020905b8154815290600101906020018083116103f457829003601f168201915b5050505050905090565b600061042f610428610886565b848461088a565b5060015b92915050565b60025490565b600061044961063d565b6001600160a01b0316836001600160a01b031614156104755761046d8484846108c0565b506001610483565b610480848484610a1b565b90505b9392505050565b60055460ff1690565b600061042f6104a0610886565b846104e185600160006104b1610886565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610a9d565b61088a565b6104ee610886565b60055461010090046001600160a01b03908116911614610555576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61055f8282610af7565b5050565b6001600160a01b031660009081526020819052604090205490565b610586610886565b60055461010090046001600160a01b039081169116146105ed576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104115780601f106103e657610100808354040283529160200191610411565b600061042f6106bf610886565b846104e185604051806060016040528060258152602001610e9860259139600160006106e9610886565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610be7565b600061042f610727610886565b84846108c0565b600061073861063d565b6001600160a01b0316826001600160a01b0316141561075a5750600019610433565b6107648383610c7e565b9050610433565b610773610886565b60055461010090046001600160a01b039081169116146107da576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661081f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610db96026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b61089261063d565b6001600160a01b0316826001600160a01b031614156108b0576108bb565b6108bb838383610ca9565b505050565b6001600160a01b0383166109055760405162461bcd60e51b8152600401808060200182810382526025815260200180610e4f6025913960400191505060405180910390fd5b6001600160a01b03821661094a5760405162461bcd60e51b8152600401808060200182810382526023815260200180610d966023913960400191505060405180910390fd5b6109558383836108bb565b61099281604051806060016040528060268152602001610e01602691396001600160a01b0386166000908152602081905260409020549190610be7565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546109c19082610a9d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000610a288484846108c0565b610a9384610a34610886565b6104e185604051806060016040528060288152602001610e27602891396001600160a01b038a16600090815260016020526040812090610a72610886565b6001600160a01b031681526020810191909152604001600020549190610be7565b5060019392505050565b600082820183811015610483576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610b52576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610b5e600083836108bb565b600254610b6b9082610a9d565b6002556001600160a01b038216600090815260208190526040902054610b919082610a9d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115610c765760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c3b578181015183820152602001610c23565b50505050905090810190601f168015610c685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610cee5760405162461bcd60e51b8152600401808060200182810382526024815260200180610e746024913960400191505060405180910390fd5b6001600160a01b038216610d335760405162461bcd60e51b8152600401808060200182810382526022815260200180610ddf6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209f7e4d528c2f5e0178238b471a63b49a19c70b02b5d8e226290a430d9cae242164736f6c634300060c0033"},"sourceId":"contracts/GSN/GSNRecipientERC20Fee.sol","sourcemap":"4742:1321:2:-:0;;;4855:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4855:84:2;;;;;;;;;;-1:-1:-1;4855:84:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4855:84:2;;;;;;;;;;-1:-1:-1;4855:84:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4855:84:2;;-1:-1:-1;;2085:12:84;;4922:4:2;;-1:-1:-1;4928:6:2;;2085:12:84;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;2107:16:84;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;;2133:9:84;:14;;-1:-1:-1;;2133:14:84;2145:2;2133:14;;;-1:-1:-1;2133:9:84;885:12:7;:10;:12::i;:::-;907:6;:18;;-1:-1:-1;;;;;;907:18:7;-1:-1:-1;;;;;;907:18:7;;;;;;;;;;;;940:43;;907:18;;-1:-1:-1;907:18:7;-1:-1:-1;;940:43:7;;-1:-1:-1;;940:43:7;831:159;4855:84:2;;4742:1321;;590:104:0;677:10;590:104;:::o;4742:1321:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4742:1321:2;;;-1:-1:-1;4742:1321:2;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;","userdoc":{"kind":"user","methods":{},"version":1}}},"manifest":"ethpm/3","sources":{"contracts/GSN/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\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 GSN 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 Context {\n function _msgSender() internal view virtual returns (address payable) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes memory) {\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\n return msg.data;\n }\n}\n","urls":[]},"contracts/GSN/GSNRecipient.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IRelayRecipient.sol\";\nimport \"./IRelayHub.sol\";\nimport \"./Context.sol\";\n\n/**\n * @dev Base GSN recipient contract: includes the {IRelayRecipient} interface\n * and enables GSN support on all contracts in the inheritance tree.\n *\n * TIP: This contract is abstract. The functions {IRelayRecipient-acceptRelayedCall},\n * {_preRelayedCall}, and {_postRelayedCall} are not implemented and must be\n * provided by derived contracts. See the\n * xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategies] for more\n * information on how to use the pre-built {GSNRecipientSignature} and\n * {GSNRecipientERC20Fee}, or how to write your own.\n */\nabstract contract GSNRecipient is IRelayRecipient, Context {\n // Default RelayHub address, deployed on mainnet and all testnets at the same address\n address private _relayHub = 0xD216153c06E857cD7f72665E0aF1d7D82172F494;\n\n uint256 constant private _RELAYED_CALL_ACCEPTED = 0;\n uint256 constant private _RELAYED_CALL_REJECTED = 11;\n\n // How much gas is forwarded to postRelayedCall\n uint256 constant internal _POST_RELAYED_CALL_MAX_GAS = 100000;\n\n /**\n * @dev Emitted when a contract changes its {IRelayHub} contract to a new one.\n */\n event RelayHubChanged(address indexed oldRelayHub, address indexed newRelayHub);\n\n /**\n * @dev Returns the address of the {IRelayHub} contract for this recipient.\n */\n function getHubAddr() public view override returns (address) {\n return _relayHub;\n }\n\n /**\n * @dev Switches to a new {IRelayHub} instance. This method is added for future-proofing: there's no reason to not\n * use the default instance.\n *\n * IMPORTANT: After upgrading, the {GSNRecipient} will no longer be able to receive relayed calls from the old\n * {IRelayHub} instance. Additionally, all funds should be previously withdrawn via {_withdrawDeposits}.\n */\n function _upgradeRelayHub(address newRelayHub) internal virtual {\n address currentRelayHub = _relayHub;\n require(newRelayHub != address(0), \"GSNRecipient: new RelayHub is the zero address\");\n require(newRelayHub != currentRelayHub, \"GSNRecipient: new RelayHub is the current one\");\n\n emit RelayHubChanged(currentRelayHub, newRelayHub);\n\n _relayHub = newRelayHub;\n }\n\n /**\n * @dev Returns the version string of the {IRelayHub} for which this recipient implementation was built. If\n * {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version.\n */\n // This function is view for future-proofing, it may require reading from\n // storage in the future.\n function relayHubVersion() public view returns (string memory) {\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\n return \"1.0.0\";\n }\n\n /**\n * @dev Withdraws the recipient's deposits in `RelayHub`.\n *\n * Derived contracts should expose this in an external interface with proper access control.\n */\n function _withdrawDeposits(uint256 amount, address payable payee) internal virtual {\n IRelayHub(_relayHub).withdraw(amount, payee);\n }\n\n // Overrides for Context's functions: when called from RelayHub, sender and\n // data require some pre-processing: the actual sender is stored at the end\n // of the call data, which in turns means it needs to be removed from it\n // when handling said data.\n\n /**\n * @dev Replacement for msg.sender. Returns the actual sender of a transaction: msg.sender for regular transactions,\n * and the end-user for GSN relayed calls (where msg.sender is actually `RelayHub`).\n *\n * IMPORTANT: Contracts derived from {GSNRecipient} should never use `msg.sender`, and use {_msgSender} instead.\n */\n function _msgSender() internal view virtual override returns (address payable) {\n if (msg.sender != _relayHub) {\n return msg.sender;\n } else {\n return _getRelayedCallSender();\n }\n }\n\n /**\n * @dev Replacement for msg.data. Returns the actual calldata of a transaction: msg.data for regular transactions,\n * and a reduced version for GSN relayed calls (where msg.data contains additional information).\n *\n * IMPORTANT: Contracts derived from {GSNRecipient} should never use `msg.data`, and use {_msgData} instead.\n */\n function _msgData() internal view virtual override returns (bytes memory) {\n if (msg.sender != _relayHub) {\n return msg.data;\n } else {\n return _getRelayedCallData();\n }\n }\n\n // Base implementations for pre and post relayedCall: only RelayHub can invoke them, and data is forwarded to the\n // internal hook.\n\n /**\n * @dev See `IRelayRecipient.preRelayedCall`.\n *\n * This function should not be overriden directly, use `_preRelayedCall` instead.\n *\n * * Requirements:\n *\n * - the caller must be the `RelayHub` contract.\n */\n function preRelayedCall(bytes memory context) public virtual override returns (bytes32) {\n require(msg.sender == getHubAddr(), \"GSNRecipient: caller is not RelayHub\");\n return _preRelayedCall(context);\n }\n\n /**\n * @dev See `IRelayRecipient.preRelayedCall`.\n *\n * Called by `GSNRecipient.preRelayedCall`, which asserts the caller is the `RelayHub` contract. Derived contracts\n * must implement this function with any relayed-call preprocessing they may wish to do.\n *\n */\n function _preRelayedCall(bytes memory context) internal virtual returns (bytes32);\n\n /**\n * @dev See `IRelayRecipient.postRelayedCall`.\n *\n * This function should not be overriden directly, use `_postRelayedCall` instead.\n *\n * * Requirements:\n *\n * - the caller must be the `RelayHub` contract.\n */\n function postRelayedCall(bytes memory context, bool success, uint256 actualCharge, bytes32 preRetVal) public virtual override {\n require(msg.sender == getHubAddr(), \"GSNRecipient: caller is not RelayHub\");\n _postRelayedCall(context, success, actualCharge, preRetVal);\n }\n\n /**\n * @dev See `IRelayRecipient.postRelayedCall`.\n *\n * Called by `GSNRecipient.postRelayedCall`, which asserts the caller is the `RelayHub` contract. Derived contracts\n * must implement this function with any relayed-call postprocessing they may wish to do.\n *\n */\n function _postRelayedCall(bytes memory context, bool success, uint256 actualCharge, bytes32 preRetVal) internal virtual;\n\n /**\n * @dev Return this in acceptRelayedCall to proceed with the execution of a relayed call. Note that this contract\n * will be charged a fee by RelayHub\n */\n function _approveRelayedCall() internal pure returns (uint256, bytes memory) {\n return _approveRelayedCall(\"\");\n }\n\n /**\n * @dev See `GSNRecipient._approveRelayedCall`.\n *\n * This overload forwards `context` to _preRelayedCall and _postRelayedCall.\n */\n function _approveRelayedCall(bytes memory context) internal pure returns (uint256, bytes memory) {\n return (_RELAYED_CALL_ACCEPTED, context);\n }\n\n /**\n * @dev Return this in acceptRelayedCall to impede execution of a relayed call. No fees will be charged.\n */\n function _rejectRelayedCall(uint256 errorCode) internal pure returns (uint256, bytes memory) {\n return (_RELAYED_CALL_REJECTED + errorCode, \"\");\n }\n\n /*\n * @dev Calculates how much RelayHub will charge a recipient for using `gas` at a `gasPrice`, given a relayer's\n * `serviceFee`.\n */\n function _computeCharge(uint256 gas, uint256 gasPrice, uint256 serviceFee) internal pure returns (uint256) {\n // The fee is expressed as a percentage. E.g. a value of 40 stands for a 40% fee, so the recipient will be\n // charged for 1.4 times the spent amount.\n return (gas * gasPrice * (100 + serviceFee)) / 100;\n }\n\n function _getRelayedCallSender() private pure returns (address payable result) {\n // We need to read 20 bytes (an address) located at array index msg.data.length - 20. In memory, the array\n // is prefixed with a 32-byte length value, so we first add 32 to get the memory read index. However, doing\n // so would leave the address in the upper 20 bytes of the 32-byte word, which is inconvenient and would\n // require bit shifting. We therefore subtract 12 from the read index so the address lands on the lower 20\n // bytes. This can always be done due to the 32-byte prefix.\n\n // The final memory read index is msg.data.length - 20 + 32 - 12 = msg.data.length. Using inline assembly is the\n // easiest/most-efficient way to perform this operation.\n\n // These fields are not accessible from assembly\n bytes memory array = msg.data;\n uint256 index = msg.data.length;\n\n // solhint-disable-next-line no-inline-assembly\n assembly {\n // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.\n result := and(mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff)\n }\n return result;\n }\n\n function _getRelayedCallData() private pure returns (bytes memory) {\n // RelayHub appends the sender address at the end of the calldata, so in order to retrieve the actual msg.data,\n // we must strip the last 20 bytes (length of an address type) from it.\n\n uint256 actualDataLength = msg.data.length - 20;\n bytes memory actualData = new bytes(actualDataLength);\n\n for (uint256 i = 0; i < actualDataLength; ++i) {\n actualData[i] = msg.data[i];\n }\n\n return actualData;\n }\n}\n","urls":[]},"contracts/GSN/GSNRecipientERC20Fee.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./GSNRecipient.sol\";\nimport \"../math/SafeMath.sol\";\nimport \"../access/Ownable.sol\";\nimport \"../token/ERC20/SafeERC20.sol\";\nimport \"../token/ERC20/ERC20.sol\";\n\n/**\n * @dev A xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategy] that charges transaction fees in a special purpose ERC20\n * token, which we refer to as the gas payment token. The amount charged is exactly the amount of Ether charged to the\n * recipient. This means that the token is essentially pegged to the value of Ether.\n *\n * The distribution strategy of the gas payment token to users is not defined by this contract. It's a mintable token\n * whose only minter is the recipient, so the strategy must be implemented in a derived contract, making use of the\n * internal {_mint} function.\n */\ncontract GSNRecipientERC20Fee is GSNRecipient {\n using SafeERC20 for __unstable__ERC20Owned;\n using SafeMath for uint256;\n\n enum GSNRecipientERC20FeeErrorCodes {\n INSUFFICIENT_BALANCE\n }\n\n __unstable__ERC20Owned private _token;\n\n /**\n * @dev The arguments to the constructor are the details that the gas payment token will have: `name` and `symbol`. `decimals` is hard-coded to 18.\n */\n constructor(string memory name, string memory symbol) public {\n _token = new __unstable__ERC20Owned(name, symbol);\n }\n\n /**\n * @dev Returns the gas payment token.\n */\n function token() public view returns (IERC20) {\n return IERC20(_token);\n }\n\n /**\n * @dev Internal function that mints the gas payment token. Derived contracts should expose this function in their public API, with proper access control mechanisms.\n */\n function _mint(address account, uint256 amount) internal virtual {\n _token.mint(account, amount);\n }\n\n /**\n * @dev Ensures that only users with enough gas payment token balance can have transactions relayed through the GSN.\n */\n function acceptRelayedCall(\n address,\n address from,\n bytes memory,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256,\n uint256,\n bytes memory,\n uint256 maxPossibleCharge\n )\n public\n view\n virtual\n override\n returns (uint256, bytes memory)\n {\n if (_token.balanceOf(from) < maxPossibleCharge) {\n return _rejectRelayedCall(uint256(GSNRecipientERC20FeeErrorCodes.INSUFFICIENT_BALANCE));\n }\n\n return _approveRelayedCall(abi.encode(from, maxPossibleCharge, transactionFee, gasPrice));\n }\n\n /**\n * @dev Implements the precharge to the user. The maximum possible charge (depending on gas limit, gas price, and\n * fee) will be deducted from the user balance of gas payment token. Note that this is an overestimation of the\n * actual charge, necessary because we cannot predict how much gas the execution will actually need. The remainder\n * is returned to the user in {_postRelayedCall}.\n */\n function _preRelayedCall(bytes memory context) internal virtual override returns (bytes32) {\n (address from, uint256 maxPossibleCharge) = abi.decode(context, (address, uint256));\n\n // The maximum token charge is pre-charged from the user\n _token.safeTransferFrom(from, address(this), maxPossibleCharge);\n }\n\n /**\n * @dev Returns to the user the extra amount that was previously charged, once the actual execution cost is known.\n */\n function _postRelayedCall(bytes memory context, bool, uint256 actualCharge, bytes32) internal virtual override {\n (address from, uint256 maxPossibleCharge, uint256 transactionFee, uint256 gasPrice) =\n abi.decode(context, (address, uint256, uint256, uint256));\n\n // actualCharge is an _estimated_ charge, which assumes postRelayedCall will use all available gas.\n // This implementation's gas cost can be roughly estimated as 10k gas, for the two SSTORE operations in an\n // ERC20 transfer.\n uint256 overestimation = _computeCharge(_POST_RELAYED_CALL_MAX_GAS.sub(10000), gasPrice, transactionFee);\n actualCharge = actualCharge.sub(overestimation);\n\n // After the relayed call has been executed and the actual charge estimated, the excess pre-charge is returned\n _token.safeTransfer(from, maxPossibleCharge.sub(actualCharge));\n }\n}\n\n/**\n * @title __unstable__ERC20Owned\n * @dev An ERC20 token owned by another contract, which has minting permissions and can use transferFrom to receive\n * anyone's tokens. This contract is an internal helper for GSNRecipientERC20Fee, and should not be used\n * outside of this context.\n */\n// solhint-disable-next-line contract-name-camelcase\ncontract __unstable__ERC20Owned is ERC20, Ownable {\n uint256 private constant _UINT256_MAX = 2**256 - 1;\n\n constructor(string memory name, string memory symbol) public ERC20(name, symbol) { }\n\n // The owner (GSNRecipientERC20Fee) can mint tokens\n function mint(address account, uint256 amount) public onlyOwner {\n _mint(account, amount);\n }\n\n // The owner has 'infinite' allowance for all token holders\n function allowance(address tokenOwner, address spender) public view override returns (uint256) {\n if (spender == owner()) {\n return _UINT256_MAX;\n } else {\n return super.allowance(tokenOwner, spender);\n }\n }\n\n // Allowance for the owner cannot be changed (it is always 'infinite')\n function _approve(address tokenOwner, address spender, uint256 value) internal override {\n if (spender == owner()) {\n return;\n } else {\n super._approve(tokenOwner, spender, value);\n }\n }\n\n function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {\n if (recipient == owner()) {\n _transfer(sender, recipient, amount);\n return true;\n } else {\n return super.transferFrom(sender, recipient, amount);\n }\n }\n}\n","urls":[]},"contracts/GSN/GSNRecipientSignature.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./GSNRecipient.sol\";\nimport \"../cryptography/ECDSA.sol\";\n\n/**\n * @dev A xref:ROOT:gsn-strategies.adoc#gsn-strategies[GSN strategy] that allows relayed transactions through when they are\n * accompanied by the signature of a trusted signer. The intent is for this signature to be generated by a server that\n * performs validations off-chain. Note that nothing is charged to the user in this scheme. Thus, the server should make\n * sure to account for this in their economic and threat model.\n */\ncontract GSNRecipientSignature is GSNRecipient {\n using ECDSA for bytes32;\n\n address private _trustedSigner;\n\n enum GSNRecipientSignatureErrorCodes {\n INVALID_SIGNER\n }\n\n /**\n * @dev Sets the trusted signer that is going to be producing signatures to approve relayed calls.\n */\n constructor(address trustedSigner) public {\n require(trustedSigner != address(0), \"GSNRecipientSignature: trusted signer is the zero address\");\n _trustedSigner = trustedSigner;\n }\n\n /**\n * @dev Ensures that only transactions with a trusted signature can be relayed through the GSN.\n */\n function acceptRelayedCall(\n address relay,\n address from,\n bytes memory encodedFunction,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256 gasLimit,\n uint256 nonce,\n bytes memory approvalData,\n uint256\n )\n public\n view\n virtual\n override\n returns (uint256, bytes memory)\n {\n bytes memory blob = abi.encodePacked(\n relay,\n from,\n encodedFunction,\n transactionFee,\n gasPrice,\n gasLimit,\n nonce, // Prevents replays on RelayHub\n getHubAddr(), // Prevents replays in multiple RelayHubs\n address(this) // Prevents replays in multiple recipients\n );\n if (keccak256(blob).toEthSignedMessageHash().recover(approvalData) == _trustedSigner) {\n return _approveRelayedCall();\n } else {\n return _rejectRelayedCall(uint256(GSNRecipientSignatureErrorCodes.INVALID_SIGNER));\n }\n }\n\n function _preRelayedCall(bytes memory) internal virtual override returns (bytes32) { }\n\n function _postRelayedCall(bytes memory, bool, uint256, bytes32) internal virtual override { }\n}\n","urls":[]},"contracts/GSN/IRelayHub.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface for `RelayHub`, the core contract of the GSN. Users should not need to interact with this contract\n * directly.\n *\n * See the https://github.com/OpenZeppelin/openzeppelin-gsn-helpers[OpenZeppelin GSN helpers] for more information on\n * how to deploy an instance of `RelayHub` on your local test network.\n */\ninterface IRelayHub {\n // Relay management\n\n /**\n * @dev Adds stake to a relay and sets its `unstakeDelay`. If the relay does not exist, it is created, and the caller\n * of this function becomes its owner. If the relay already exists, only the owner can call this function. A relay\n * cannot be its own owner.\n *\n * All Ether in this function call will be added to the relay's stake.\n * Its unstake delay will be assigned to `unstakeDelay`, but the new value must be greater or equal to the current one.\n *\n * Emits a {Staked} event.\n */\n function stake(address relayaddr, uint256 unstakeDelay) external payable;\n\n /**\n * @dev Emitted when a relay's stake or unstakeDelay are increased\n */\n event Staked(address indexed relay, uint256 stake, uint256 unstakeDelay);\n\n /**\n * @dev Registers the caller as a relay.\n * The relay must be staked for, and not be a contract (i.e. this function must be called directly from an EOA).\n *\n * This function can be called multiple times, emitting new {RelayAdded} events. Note that the received\n * `transactionFee` is not enforced by {relayCall}.\n *\n * Emits a {RelayAdded} event.\n */\n function registerRelay(uint256 transactionFee, string calldata url) external;\n\n /**\n * @dev Emitted when a relay is registered or re-registerd. Looking at these events (and filtering out\n * {RelayRemoved} events) lets a client discover the list of available relays.\n */\n event RelayAdded(address indexed relay, address indexed owner, uint256 transactionFee, uint256 stake, uint256 unstakeDelay, string url);\n\n /**\n * @dev Removes (deregisters) a relay. Unregistered (but staked for) relays can also be removed.\n *\n * Can only be called by the owner of the relay. After the relay's `unstakeDelay` has elapsed, {unstake} will be\n * callable.\n *\n * Emits a {RelayRemoved} event.\n */\n function removeRelayByOwner(address relay) external;\n\n /**\n * @dev Emitted when a relay is removed (deregistered). `unstakeTime` is the time when unstake will be callable.\n */\n event RelayRemoved(address indexed relay, uint256 unstakeTime);\n\n /** Deletes the relay from the system, and gives back its stake to the owner.\n *\n * Can only be called by the relay owner, after `unstakeDelay` has elapsed since {removeRelayByOwner} was called.\n *\n * Emits an {Unstaked} event.\n */\n function unstake(address relay) external;\n\n /**\n * @dev Emitted when a relay is unstaked for, including the returned stake.\n */\n event Unstaked(address indexed relay, uint256 stake);\n\n // States a relay can be in\n enum RelayState {\n Unknown, // The relay is unknown to the system: it has never been staked for\n Staked, // The relay has been staked for, but it is not yet active\n Registered, // The relay has registered itself, and is active (can relay calls)\n Removed // The relay has been removed by its owner and can no longer relay calls. It must wait for its unstakeDelay to elapse before it can unstake\n }\n\n /**\n * @dev Returns a relay's status. Note that relays can be deleted when unstaked or penalized, causing this function\n * to return an empty entry.\n */\n function getRelay(address relay) external view returns (uint256 totalStake, uint256 unstakeDelay, uint256 unstakeTime, address payable owner, RelayState state);\n\n // Balance management\n\n /**\n * @dev Deposits Ether for a contract, so that it can receive (and pay for) relayed transactions.\n *\n * Unused balance can only be withdrawn by the contract itself, by calling {withdraw}.\n *\n * Emits a {Deposited} event.\n */\n function depositFor(address target) external payable;\n\n /**\n * @dev Emitted when {depositFor} is called, including the amount and account that was funded.\n */\n event Deposited(address indexed recipient, address indexed from, uint256 amount);\n\n /**\n * @dev Returns an account's deposits. These can be either a contracts's funds, or a relay owner's revenue.\n */\n function balanceOf(address target) external view returns (uint256);\n\n /**\n * Withdraws from an account's balance, sending it back to it. Relay owners call this to retrieve their revenue, and\n * contracts can use it to reduce their funding.\n *\n * Emits a {Withdrawn} event.\n */\n function withdraw(uint256 amount, address payable dest) external;\n\n /**\n * @dev Emitted when an account withdraws funds from `RelayHub`.\n */\n event Withdrawn(address indexed account, address indexed dest, uint256 amount);\n\n // Relaying\n\n /**\n * @dev Checks if the `RelayHub` will accept a relayed operation.\n * Multiple things must be true for this to happen:\n * - all arguments must be signed for by the sender (`from`)\n * - the sender's nonce must be the current one\n * - the recipient must accept this transaction (via {acceptRelayedCall})\n *\n * Returns a `PreconditionCheck` value (`OK` when the transaction can be relayed), or a recipient-specific error\n * code if it returns one in {acceptRelayedCall}.\n */\n function canRelay(\n address relay,\n address from,\n address to,\n bytes calldata encodedFunction,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256 gasLimit,\n uint256 nonce,\n bytes calldata signature,\n bytes calldata approvalData\n ) external view returns (uint256 status, bytes memory recipientContext);\n\n // Preconditions for relaying, checked by canRelay and returned as the corresponding numeric values.\n enum PreconditionCheck {\n OK, // All checks passed, the call can be relayed\n WrongSignature, // The transaction to relay is not signed by requested sender\n WrongNonce, // The provided nonce has already been used by the sender\n AcceptRelayedCallReverted, // The recipient rejected this call via acceptRelayedCall\n InvalidRecipientStatusCode // The recipient returned an invalid (reserved) status code\n }\n\n /**\n * @dev Relays a transaction.\n *\n * For this to succeed, multiple conditions must be met:\n * - {canRelay} must `return PreconditionCheck.OK`\n * - the sender must be a registered relay\n * - the transaction's gas price must be larger or equal to the one that was requested by the sender\n * - the transaction must have enough gas to not run out of gas if all internal transactions (calls to the\n * recipient) use all gas available to them\n * - the recipient must have enough balance to pay the relay for the worst-case scenario (i.e. when all gas is\n * spent)\n *\n * If all conditions are met, the call will be relayed and the recipient charged. {preRelayedCall}, the encoded\n * function and {postRelayedCall} will be called in that order.\n *\n * Parameters:\n * - `from`: the client originating the request\n * - `to`: the target {IRelayRecipient} contract\n * - `encodedFunction`: the function call to relay, including data\n * - `transactionFee`: fee (%) the relay takes over actual gas cost\n * - `gasPrice`: gas price the client is willing to pay\n * - `gasLimit`: gas to forward when calling the encoded function\n * - `nonce`: client's nonce\n * - `signature`: client's signature over all previous params, plus the relay and RelayHub addresses\n * - `approvalData`: dapp-specific data forwared to {acceptRelayedCall}. This value is *not* verified by the\n * `RelayHub`, but it still can be used for e.g. a signature.\n *\n * Emits a {TransactionRelayed} event.\n */\n function relayCall(\n address from,\n address to,\n bytes calldata encodedFunction,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256 gasLimit,\n uint256 nonce,\n bytes calldata signature,\n bytes calldata approvalData\n ) external;\n\n /**\n * @dev Emitted when an attempt to relay a call failed.\n *\n * This can happen due to incorrect {relayCall} arguments, or the recipient not accepting the relayed call. The\n * actual relayed call was not executed, and the recipient not charged.\n *\n * The `reason` parameter contains an error code: values 1-10 correspond to `PreconditionCheck` entries, and values\n * over 10 are custom recipient error codes returned from {acceptRelayedCall}.\n */\n event CanRelayFailed(address indexed relay, address indexed from, address indexed to, bytes4 selector, uint256 reason);\n\n /**\n * @dev Emitted when a transaction is relayed.\n * Useful when monitoring a relay's operation and relayed calls to a contract\n *\n * Note that the actual encoded function might be reverted: this is indicated in the `status` parameter.\n *\n * `charge` is the Ether value deducted from the recipient's balance, paid to the relay's owner.\n */\n event TransactionRelayed(address indexed relay, address indexed from, address indexed to, bytes4 selector, RelayCallStatus status, uint256 charge);\n\n // Reason error codes for the TransactionRelayed event\n enum RelayCallStatus {\n OK, // The transaction was successfully relayed and execution successful - never included in the event\n RelayedCallFailed, // The transaction was relayed, but the relayed call failed\n PreRelayedFailed, // The transaction was not relayed due to preRelatedCall reverting\n PostRelayedFailed, // The transaction was relayed and reverted due to postRelatedCall reverting\n RecipientBalanceChanged // The transaction was relayed and reverted due to the recipient's balance changing\n }\n\n /**\n * @dev Returns how much gas should be forwarded to a call to {relayCall}, in order to relay a transaction that will\n * spend up to `relayedCallStipend` gas.\n */\n function requiredGas(uint256 relayedCallStipend) external view returns (uint256);\n\n /**\n * @dev Returns the maximum recipient charge, given the amount of gas forwarded, gas price and relay fee.\n */\n function maxPossibleCharge(uint256 relayedCallStipend, uint256 gasPrice, uint256 transactionFee) external view returns (uint256);\n\n // Relay penalization.\n // Any account can penalize relays, removing them from the system immediately, and rewarding the\n // reporter with half of the relay's stake. The other half is burned so that, even if the relay penalizes itself, it\n // still loses half of its stake.\n\n /**\n * @dev Penalize a relay that signed two transactions using the same nonce (making only the first one valid) and\n * different data (gas price, gas limit, etc. may be different).\n *\n * The (unsigned) transaction data and signature for both transactions must be provided.\n */\n function penalizeRepeatedNonce(bytes calldata unsignedTx1, bytes calldata signature1, bytes calldata unsignedTx2, bytes calldata signature2) external;\n\n /**\n * @dev Penalize a relay that sent a transaction that didn't target ``RelayHub``'s {registerRelay} or {relayCall}.\n */\n function penalizeIllegalTransaction(bytes calldata unsignedTx, bytes calldata signature) external;\n\n /**\n * @dev Emitted when a relay is penalized.\n */\n event Penalized(address indexed relay, address sender, uint256 amount);\n\n /**\n * @dev Returns an account's nonce in `RelayHub`.\n */\n function getNonce(address from) external view returns (uint256);\n}\n","urls":[]},"contracts/GSN/IRelayRecipient.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Base interface for a contract that will be called via the GSN from {IRelayHub}.\n *\n * TIP: You don't need to write an implementation yourself! Inherit from {GSNRecipient} instead.\n */\ninterface IRelayRecipient {\n /**\n * @dev Returns the address of the {IRelayHub} instance this recipient interacts with.\n */\n function getHubAddr() external view returns (address);\n\n /**\n * @dev Called by {IRelayHub} to validate if this recipient accepts being charged for a relayed call. Note that the\n * recipient will be charged regardless of the execution result of the relayed call (i.e. if it reverts or not).\n *\n * The relay request was originated by `from` and will be served by `relay`. `encodedFunction` is the relayed call\n * calldata, so its first four bytes are the function selector. The relayed call will be forwarded `gasLimit` gas,\n * and the transaction executed with a gas price of at least `gasPrice`. ``relay``'s fee is `transactionFee`, and the\n * recipient will be charged at most `maxPossibleCharge` (in wei). `nonce` is the sender's (`from`) nonce for\n * replay attack protection in {IRelayHub}, and `approvalData` is a optional parameter that can be used to hold a signature\n * over all or some of the previous values.\n *\n * Returns a tuple, where the first value is used to indicate approval (0) or rejection (custom non-zero error code,\n * values 1 to 10 are reserved) and the second one is data to be passed to the other {IRelayRecipient} functions.\n *\n * {acceptRelayedCall} is called with 50k gas: if it runs out during execution, the request will be considered\n * rejected. A regular revert will also trigger a rejection.\n */\n function acceptRelayedCall(\n address relay,\n address from,\n bytes calldata encodedFunction,\n uint256 transactionFee,\n uint256 gasPrice,\n uint256 gasLimit,\n uint256 nonce,\n bytes calldata approvalData,\n uint256 maxPossibleCharge\n )\n external\n view\n returns (uint256, bytes memory);\n\n /**\n * @dev Called by {IRelayHub} on approved relay call requests, before the relayed call is executed. This allows to e.g.\n * pre-charge the sender of the transaction.\n *\n * `context` is the second value returned in the tuple by {acceptRelayedCall}.\n *\n * Returns a value to be passed to {postRelayedCall}.\n *\n * {preRelayedCall} is called with 100k gas: if it runs out during exection or otherwise reverts, the relayed call\n * will not be executed, but the recipient will still be charged for the transaction's cost.\n */\n function preRelayedCall(bytes calldata context) external returns (bytes32);\n\n /**\n * @dev Called by {IRelayHub} on approved relay call requests, after the relayed call is executed. This allows to e.g.\n * charge the user for the relayed call costs, return any overcharges from {preRelayedCall}, or perform\n * contract-specific bookkeeping.\n *\n * `context` is the second value returned in the tuple by {acceptRelayedCall}. `success` is the execution status of\n * the relayed call. `actualCharge` is an estimate of how much the recipient will be charged for the transaction,\n * not including any gas used by {postRelayedCall} itself. `preRetVal` is {preRelayedCall}'s return value.\n *\n *\n * {postRelayedCall} is called with 100k gas: if it runs out during execution or otherwise reverts, the relayed call\n * and the call to {preRelayedCall} will be reverted retroactively, but the recipient will still be charged for the\n * transaction's cost.\n */\n function postRelayedCall(bytes calldata context, bool success, uint256 actualCharge, bytes32 preRetVal) external;\n}\n","urls":[]},"contracts/access/AccessControl.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/EnumerableSet.sol\";\nimport \"../utils/Address.sol\";\nimport \"../GSN/Context.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms.\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 AccessControl is Context {\n using EnumerableSet for EnumerableSet.AddressSet;\n using Address for address;\n\n struct RoleData {\n EnumerableSet.AddressSet 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 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 {_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) public view returns (bool) {\n return _roles[role].members.contains(account);\n }\n\n /**\n * @dev Returns the number of accounts that have `role`. Can be used\n * together with {getRoleMember} to enumerate all bearers of a role.\n */\n function getRoleMemberCount(bytes32 role) public view returns (uint256) {\n return _roles[role].members.length();\n }\n\n /**\n * @dev Returns one of the accounts that have `role`. `index` must be a\n * value between 0 and {getRoleMemberCount}, non-inclusive.\n *\n * Role bearers are not sorted in any particular way, and their ordering may\n * change at any point.\n *\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\n * you perform all queries on the same block. See the following\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\n * for more information.\n */\n function getRoleMember(bytes32 role, uint256 index) public view returns (address) {\n return _roles[role].members.at(index);\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 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 function grantRole(bytes32 role, address account) public virtual {\n require(hasRole(_roles[role].adminRole, _msgSender()), \"AccessControl: sender must be an admin to grant\");\n\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 function revokeRole(bytes32 role, address account) public virtual {\n require(hasRole(_roles[role].adminRole, _msgSender()), \"AccessControl: sender must be an admin to revoke\");\n\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 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) public virtual {\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 * [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 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 emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);\n _roles[role].adminRole = adminRole;\n }\n\n function _grantRole(bytes32 role, address account) private {\n if (_roles[role].members.add(account)) {\n emit RoleGranted(role, account, _msgSender());\n }\n }\n\n function _revokeRole(bytes32 role, address account) private {\n if (_roles[role].members.remove(account)) {\n emit RoleRevoked(role, account, _msgSender());\n }\n }\n}\n","urls":[]},"contracts/access/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\ncontract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n constructor () internal {\n address msgSender = _msgSender();\n _owner = msgSender;\n emit OwnershipTransferred(address(0), msgSender);\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(_owner == _msgSender(), \"Ownable: caller is not the owner\");\n _;\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions anymore. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby removing any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n emit OwnershipTransferred(_owner, address(0));\n _owner = address(0);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n emit OwnershipTransferred(_owner, newOwner);\n _owner = newOwner;\n }\n}\n","urls":[]},"contracts/cryptography/ECDSA.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\n *\n * These functions can be used to verify that a message was signed by the holder\n * of the private keys of a given address.\n */\nlibrary ECDSA {\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with\n * `signature`. This address can then be used for verification purposes.\n *\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n * this function rejects them by requiring the `s` value to be in the lower\n * half order, and the `v` value to be either 27 or 28.\n *\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n * verification to be secure: it is possible to craft signatures that\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n * this is by receiving a hash of the original message (which may otherwise\n * be too long), and then calling {toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n // Check the signature length\n if (signature.length != 65) {\n revert(\"ECDSA: invalid signature length\");\n }\n\n // Divide the signature in r, s and v variables\n bytes32 r;\n bytes32 s;\n uint8 v;\n\n // ecrecover takes the signature parameters, and the only way to get them\n // currently is to use assembly.\n // solhint-disable-next-line no-inline-assembly\n assembly {\n r := mload(add(signature, 0x20))\n s := mload(add(signature, 0x40))\n v := byte(0, mload(add(signature, 0x60)))\n }\n\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\n // the valid range for s in (281): 0 < s < secp256k1n \u00f7 2 + 1, and for v in (282): v \u2208 {27, 28}. Most\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\n //\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\n // these malleable signatures as well.\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\n revert(\"ECDSA: invalid signature 's' value\");\n }\n\n if (v != 27 && v != 28) {\n revert(\"ECDSA: invalid signature 'v' value\");\n }\n\n // If the signature is valid (and not malleable), return the signer address\n address signer = ecrecover(hash, v, r, s);\n require(signer != address(0), \"ECDSA: invalid signature\");\n\n return signer;\n }\n\n /**\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\n * replicates the behavior of the\n * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]\n * JSON-RPC method.\n *\n * See {recover}.\n */\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\n // 32 is the length in bytes of hash,\n // enforced by the type signature above\n return keccak256(abi.encodePacked(\"\\x19Ethereum Signed Message:\\n32\", hash));\n }\n}\n","urls":[]},"contracts/cryptography/MerkleProof.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev These functions deal with verification of Merkle trees (hash trees),\n */\nlibrary MerkleProof {\n /**\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\n * defined by `root`. For this, a `proof` must be provided, containing\n * sibling hashes on the branch from the leaf to the root of the tree. Each\n * pair of leaves and each pair of pre-images are assumed to be sorted.\n */\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\n bytes32 computedHash = leaf;\n\n for (uint256 i = 0; i < proof.length; i++) {\n bytes32 proofElement = proof[i];\n\n if (computedHash <= proofElement) {\n // Hash(current computed hash + current element of the proof)\n computedHash = keccak256(abi.encodePacked(computedHash, proofElement));\n } else {\n // Hash(current element of the proof + current computed hash)\n computedHash = keccak256(abi.encodePacked(proofElement, computedHash));\n }\n }\n\n // Check if the computed hash (root) is equal to the provided root\n return computedHash == root;\n }\n}\n","urls":[]},"contracts/introspection/ERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts may inherit from this and call {_registerInterface} to declare\n * their support of an interface.\n */\ncontract ERC165 is IERC165 {\n /*\n * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7\n */\n bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;\n\n /**\n * @dev Mapping of interface ids to whether or not it's supported.\n */\n mapping(bytes4 => bool) private _supportedInterfaces;\n\n constructor () internal {\n // Derived contracts need only register support for their own interfaces,\n // we register support for ERC165 itself here\n _registerInterface(_INTERFACE_ID_ERC165);\n }\n\n /**\n * @dev See {IERC165-supportsInterface}.\n *\n * Time complexity O(1), guaranteed to always use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) public view override returns (bool) {\n return _supportedInterfaces[interfaceId];\n }\n\n /**\n * @dev Registers the contract as an implementer of the interface defined by\n * `interfaceId`. Support of the actual ERC165 interface is automatic and\n * registering its interface id is not required.\n *\n * See {IERC165-supportsInterface}.\n *\n * Requirements:\n *\n * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).\n */\n function _registerInterface(bytes4 interfaceId) internal virtual {\n require(interfaceId != 0xffffffff, \"ERC165: invalid interface id\");\n _supportedInterfaces[interfaceId] = true;\n }\n}\n","urls":[]},"contracts/introspection/ERC165Checker.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\n/**\n * @dev Library used to query support of an interface declared via {IERC165}.\n *\n * Note that these functions return the actual result of the query: they do not\n * `revert` if an interface is not supported. It is up to the caller to decide\n * what to do in these cases.\n */\nlibrary ERC165Checker {\n // As per the EIP-165 spec, no interface should ever match 0xffffffff\n bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;\n\n /*\n * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7\n */\n bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;\n\n /**\n * @dev Returns true if `account` supports the {IERC165} interface,\n */\n function supportsERC165(address account) internal view returns (bool) {\n // Any contract that implements ERC165 must explicitly indicate support of\n // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid\n return _supportsERC165Interface(account, _INTERFACE_ID_ERC165) &&\n !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);\n }\n\n /**\n * @dev Returns true if `account` supports the interface defined by\n * `interfaceId`. Support for {IERC165} itself is queried automatically.\n *\n * See {IERC165-supportsInterface}.\n */\n function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {\n // query support of both ERC165 as per the spec and support of _interfaceId\n return supportsERC165(account) &&\n _supportsERC165Interface(account, interfaceId);\n }\n\n /**\n * @dev Returns true if `account` supports all the interfaces defined in\n * `interfaceIds`. Support for {IERC165} itself is queried automatically.\n *\n * Batch-querying can lead to gas savings by skipping repeated checks for\n * {IERC165} support.\n *\n * See {IERC165-supportsInterface}.\n */\n function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {\n // query support of ERC165 itself\n if (!supportsERC165(account)) {\n return false;\n }\n\n // query support of each interface in _interfaceIds\n for (uint256 i = 0; i < interfaceIds.length; i++) {\n if (!_supportsERC165Interface(account, interfaceIds[i])) {\n return false;\n }\n }\n\n // all interfaces supported\n return true;\n }\n\n /**\n * @notice Query if a contract implements an interface, does not check ERC165 support\n * @param account The address of the contract to query for support of an interface\n * @param interfaceId The interface identifier, as specified in ERC-165\n * @return true if the contract at account indicates support of the interface with\n * identifier interfaceId, false otherwise\n * @dev Assumes that account contains a contract that supports ERC165, otherwise\n * the behavior of this method is undefined. This precondition can be checked\n * with {supportsERC165}.\n * Interface identification is specified in ERC-165.\n */\n function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {\n // success determines whether the staticcall succeeded and result determines\n // whether the contract at account indicates support of _interfaceId\n (bool success, bool result) = _callERC165SupportsInterface(account, interfaceId);\n\n return (success && result);\n }\n\n /**\n * @notice Calls the function with selector 0x01ffc9a7 (ERC165) and suppresses throw\n * @param account The address of the contract to query for support of an interface\n * @param interfaceId The interface identifier, as specified in ERC-165\n * @return success true if the STATICCALL succeeded, false otherwise\n * @return result true if the STATICCALL succeeded and the contract at account\n * indicates support of the interface with identifier interfaceId, false otherwise\n */\n function _callERC165SupportsInterface(address account, bytes4 interfaceId)\n private\n view\n returns (bool, bool)\n {\n bytes memory encodedParams = abi.encodeWithSelector(_INTERFACE_ID_ERC165, interfaceId);\n (bool success, bytes memory result) = account.staticcall{ gas: 30000 }(encodedParams);\n if (result.length < 32) return (false, false);\n return (success, abi.decode(result, (bool)));\n }\n}\n","urls":[]},"contracts/introspection/ERC1820Implementer.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC1820Implementer.sol\";\n\n/**\n * @dev Implementation of the {IERC1820Implementer} interface.\n *\n * Contracts may inherit from this and call {_registerInterfaceForAddress} to\n * declare their willingness to be implementers.\n * {IERC1820Registry-setInterfaceImplementer} should then be called for the\n * registration to be complete.\n */\ncontract ERC1820Implementer is IERC1820Implementer {\n bytes32 constant private _ERC1820_ACCEPT_MAGIC = keccak256(abi.encodePacked(\"ERC1820_ACCEPT_MAGIC\"));\n\n mapping(bytes32 => mapping(address => bool)) private _supportedInterfaces;\n\n /**\n * See {IERC1820Implementer-canImplementInterfaceForAddress}.\n */\n function canImplementInterfaceForAddress(bytes32 interfaceHash, address account) public view override returns (bytes32) {\n return _supportedInterfaces[interfaceHash][account] ? _ERC1820_ACCEPT_MAGIC : bytes32(0x00);\n }\n\n /**\n * @dev Declares the contract as willing to be an implementer of\n * `interfaceHash` for `account`.\n *\n * See {IERC1820Registry-setInterfaceImplementer} and\n * {IERC1820Registry-interfaceHash}.\n */\n function _registerInterfaceForAddress(bytes32 interfaceHash, address account) internal virtual {\n _supportedInterfaces[interfaceHash][account] = true;\n }\n}\n","urls":[]},"contracts/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.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 IERC165 {\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","urls":[]},"contracts/introspection/IERC1820Implementer.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface for an ERC1820 implementer, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1820#interface-implementation-erc1820implementerinterface[EIP].\n * Used by contracts that will be registered as implementers in the\n * {IERC1820Registry}.\n */\ninterface IERC1820Implementer {\n /**\n * @dev Returns a special value (`ERC1820_ACCEPT_MAGIC`) if this contract\n * implements `interfaceHash` for `account`.\n *\n * See {IERC1820Registry-setInterfaceImplementer}.\n */\n function canImplementInterfaceForAddress(bytes32 interfaceHash, address account) external view returns (bytes32);\n}\n","urls":[]},"contracts/introspection/IERC1820Registry.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the global ERC1820 Registry, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register\n * implementers for interfaces in this registry, as well as query support.\n *\n * Implementers may be shared by multiple accounts, and can also implement more\n * than a single interface for each account. Contracts can implement interfaces\n * for themselves, but externally-owned accounts (EOA) must delegate this to a\n * contract.\n *\n * {IERC165} interfaces can also be queried via the registry.\n *\n * For an in-depth explanation and source code analysis, see the EIP text.\n */\ninterface IERC1820Registry {\n /**\n * @dev Sets `newManager` as the manager for `account`. A manager of an\n * account is able to set interface implementers for it.\n *\n * By default, each account is its own manager. Passing a value of `0x0` in\n * `newManager` will reset the manager to this initial state.\n *\n * Emits a {ManagerChanged} event.\n *\n * Requirements:\n *\n * - the caller must be the current manager for `account`.\n */\n function setManager(address account, address newManager) external;\n\n /**\n * @dev Returns the manager for `account`.\n *\n * See {setManager}.\n */\n function getManager(address account) external view returns (address);\n\n /**\n * @dev Sets the `implementer` contract as ``account``'s implementer for\n * `interfaceHash`.\n *\n * `account` being the zero address is an alias for the caller's address.\n * The zero address can also be used in `implementer` to remove an old one.\n *\n * See {interfaceHash} to learn how these are created.\n *\n * Emits an {InterfaceImplementerSet} event.\n *\n * Requirements:\n *\n * - the caller must be the current manager for `account`.\n * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not\n * end in 28 zeroes).\n * - `implementer` must implement {IERC1820Implementer} and return true when\n * queried for support, unless `implementer` is the caller. See\n * {IERC1820Implementer-canImplementInterfaceForAddress}.\n */\n function setInterfaceImplementer(address account, bytes32 interfaceHash, address implementer) external;\n\n /**\n * @dev Returns the implementer of `interfaceHash` for `account`. If no such\n * implementer is registered, returns the zero address.\n *\n * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28\n * zeroes), `account` will be queried for support of it.\n *\n * `account` being the zero address is an alias for the caller's address.\n */\n function getInterfaceImplementer(address account, bytes32 interfaceHash) external view returns (address);\n\n /**\n * @dev Returns the interface hash for an `interfaceName`, as defined in the\n * corresponding\n * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP].\n */\n function interfaceHash(string calldata interfaceName) external pure returns (bytes32);\n\n /**\n * @notice Updates the cache with whether the contract implements an ERC165 interface or not.\n * @param account Address of the contract for which to update the cache.\n * @param interfaceId ERC165 interface for which to update the cache.\n */\n function updateERC165Cache(address account, bytes4 interfaceId) external;\n\n /**\n * @notice Checks whether a contract implements an ERC165 interface or not.\n * If the result is not cached a direct lookup on the contract address is performed.\n * If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling\n * {updateERC165Cache} with the contract address.\n * @param account Address of the contract to check.\n * @param interfaceId ERC165 interface to check.\n * @return True if `account` implements `interfaceId`, false otherwise.\n */\n function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool);\n\n /**\n * @notice Checks whether a contract implements an ERC165 interface or not without using nor updating the cache.\n * @param account Address of the contract to check.\n * @param interfaceId ERC165 interface to check.\n * @return True if `account` implements `interfaceId`, false otherwise.\n */\n function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool);\n\n event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer);\n\n event ManagerChanged(address indexed account, address indexed newManager);\n}\n","urls":[]},"contracts/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\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, so we distribute\n return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);\n }\n}\n","urls":[]},"contracts/math/SafeMath.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\n * checks.\n *\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\n * in bugs, because programmers usually assume that an overflow raises an\n * error, which is the standard behavior in high level programming languages.\n * `SafeMath` restores this intuition by reverting the transaction when an\n * operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeMath {\n /**\n * @dev Returns the addition of two unsigned integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `+` operator.\n *\n * Requirements:\n *\n * - Addition cannot overflow.\n */\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n require(c >= a, \"SafeMath: addition overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting on\n * overflow (when the result is negative).\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n return sub(a, b, \"SafeMath: subtraction overflow\");\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\n * overflow (when the result is negative).\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b <= a, errorMessage);\n uint256 c = a - b;\n\n return c;\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `*` operator.\n *\n * Requirements:\n *\n * - Multiplication cannot overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n // benefit is lost if 'b' is also tested.\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n if (a == 0) {\n return 0;\n }\n\n uint256 c = a * b;\n require(c / a == b, \"SafeMath: multiplication overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the integer division of two unsigned integers. Reverts on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n return div(a, b, \"SafeMath: division by zero\");\n }\n\n /**\n * @dev Returns the integer division of two unsigned integers. Reverts with custom message on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b > 0, errorMessage);\n uint256 c = a / b;\n // assert(a == b * c + a % b); // There is no case in which this doesn't hold\n\n return c;\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n * Reverts when dividing by zero.\n *\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\n * opcode (which leaves remaining gas untouched) while Solidity uses an\n * invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\n return mod(a, b, \"SafeMath: modulo by zero\");\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n * Reverts with custom message when dividing by zero.\n *\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\n * opcode (which leaves remaining gas untouched) while Solidity uses an\n * invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b != 0, errorMessage);\n return a % b;\n }\n}\n","urls":[]},"contracts/math/SignedSafeMath.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @title SignedSafeMath\n * @dev Signed math operations with safety checks that revert on error.\n */\nlibrary SignedSafeMath {\n int256 constant private _INT256_MIN = -2**255;\n\n /**\n * @dev Returns the multiplication of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `*` operator.\n *\n * Requirements:\n *\n * - Multiplication cannot overflow.\n */\n function mul(int256 a, int256 b) internal pure returns (int256) {\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n // benefit is lost if 'b' is also tested.\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n if (a == 0) {\n return 0;\n }\n\n require(!(a == -1 && b == _INT256_MIN), \"SignedSafeMath: multiplication overflow\");\n\n int256 c = a * b;\n require(c / a == b, \"SignedSafeMath: multiplication overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the integer division of two signed integers. Reverts on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(int256 a, int256 b) internal pure returns (int256) {\n require(b != 0, \"SignedSafeMath: division by zero\");\n require(!(b == -1 && a == _INT256_MIN), \"SignedSafeMath: division overflow\");\n\n int256 c = a / b;\n\n return c;\n }\n\n /**\n * @dev Returns the subtraction of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(int256 a, int256 b) internal pure returns (int256) {\n int256 c = a - b;\n require((b >= 0 && c <= a) || (b < 0 && c > a), \"SignedSafeMath: subtraction overflow\");\n\n return c;\n }\n\n /**\n * @dev Returns the addition of two signed integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `+` operator.\n *\n * Requirements:\n *\n * - Addition cannot overflow.\n */\n function add(int256 a, int256 b) internal pure returns (int256) {\n int256 c = a + b;\n require((b >= 0 && c >= a) || (b < 0 && c < a), \"SignedSafeMath: addition overflow\");\n\n return c;\n }\n}\n","urls":[]},"contracts/mocks/AccessControlMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/AccessControl.sol\";\n\ncontract AccessControlMock is AccessControl {\n constructor() public {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n }\n\n function setRoleAdmin(bytes32 roleId, bytes32 adminRoleId) public {\n _setRoleAdmin(roleId, adminRoleId);\n }\n}\n","urls":[]},"contracts/mocks/AddressImpl.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Address.sol\";\n\ncontract AddressImpl {\n event CallReturnValue(string data);\n\n function isContract(address account) external view returns (bool) {\n return Address.isContract(account);\n }\n\n function sendValue(address payable receiver, uint256 amount) external {\n Address.sendValue(receiver, amount);\n }\n\n function functionCall(address target, bytes calldata data) external {\n bytes memory returnData = Address.functionCall(target, data);\n\n emit CallReturnValue(abi.decode(returnData, (string)));\n }\n\n function functionCallWithValue(address target, bytes calldata data, uint256 value) external payable {\n bytes memory returnData = Address.functionCallWithValue(target, data, value);\n\n emit CallReturnValue(abi.decode(returnData, (string)));\n }\n\n // sendValue's tests require the contract to hold Ether\n receive () external payable { }\n}\n","urls":[]},"contracts/mocks/ArraysImpl.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Arrays.sol\";\n\ncontract ArraysImpl {\n using Arrays for uint256[];\n\n uint256[] private _array;\n\n constructor (uint256[] memory array) public {\n _array = array;\n }\n\n function findUpperBound(uint256 element) external view returns (uint256) {\n return _array.findUpperBound(element);\n }\n}\n","urls":[]},"contracts/mocks/CallReceiverMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\ncontract CallReceiverMock {\n\n event MockFunctionCalled();\n\n uint256[] private _array;\n\n function mockFunction() public payable returns (string memory) {\n emit MockFunctionCalled();\n\n return \"0x1234\";\n }\n\n function mockFunctionNonPayable() public returns (string memory) {\n emit MockFunctionCalled();\n\n return \"0x1234\";\n }\n\n function mockFunctionRevertsNoReason() public payable {\n revert();\n }\n\n function mockFunctionRevertsReason() public payable {\n revert(\"CallReceiverMock: reverting\");\n }\n\n function mockFunctionThrows() public payable {\n assert(false);\n }\n\n function mockFunctionOutOfGas() public payable {\n for (uint256 i = 0; ; ++i) {\n _array.push(i);\n }\n }\n}\n","urls":[]},"contracts/mocks/ConditionalEscrowMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../payment/escrow/ConditionalEscrow.sol\";\n\n// mock class using ConditionalEscrow\ncontract ConditionalEscrowMock is ConditionalEscrow {\n mapping(address => bool) private _allowed;\n\n function setAllowed(address payee, bool allowed) public {\n _allowed[payee] = allowed;\n }\n\n function withdrawalAllowed(address payee) public view override returns (bool) {\n return _allowed[payee];\n }\n}\n","urls":[]},"contracts/mocks/ContextMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\n\ncontract ContextMock is Context {\n event Sender(address sender);\n\n function msgSender() public {\n emit Sender(_msgSender());\n }\n\n event Data(bytes data, uint256 integerValue, string stringValue);\n\n function msgData(uint256 integerValue, string memory stringValue) public {\n emit Data(_msgData(), integerValue, stringValue);\n }\n}\n\ncontract ContextMockCaller {\n function callSender(ContextMock context) public {\n context.msgSender();\n }\n\n function callData(ContextMock context, uint256 integerValue, string memory stringValue) public {\n context.msgData(integerValue, stringValue);\n }\n}\n","urls":[]},"contracts/mocks/CountersImpl.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Counters.sol\";\n\ncontract CountersImpl {\n using Counters for Counters.Counter;\n\n Counters.Counter private _counter;\n\n function current() public view returns (uint256) {\n return _counter.current();\n }\n\n function increment() public {\n _counter.increment();\n }\n\n function decrement() public {\n _counter.decrement();\n }\n}\n","urls":[]},"contracts/mocks/Create2Impl.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Create2.sol\";\nimport \"../introspection/ERC1820Implementer.sol\";\n\ncontract Create2Impl {\n function deploy(uint256 value, bytes32 salt, bytes memory code) public {\n Create2.deploy(value, salt, code);\n }\n\n function deployERC1820Implementer(uint256 value, bytes32 salt) public {\n // solhint-disable-next-line indent\n Create2.deploy(value, salt, type(ERC1820Implementer).creationCode);\n }\n\n function computeAddress(bytes32 salt, bytes32 codeHash) public view returns (address) {\n return Create2.computeAddress(salt, codeHash);\n }\n\n function computeAddressWithDeployer(bytes32 salt, bytes32 codeHash, address deployer) public pure returns (address) {\n return Create2.computeAddress(salt, codeHash, deployer);\n }\n\n receive() payable external {}\n}\n","urls":[]},"contracts/mocks/ECDSAMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../cryptography/ECDSA.sol\";\n\ncontract ECDSAMock {\n using ECDSA for bytes32;\n\n function recover(bytes32 hash, bytes memory signature) public pure returns (address) {\n return hash.recover(signature);\n }\n\n function toEthSignedMessageHash(bytes32 hash) public pure returns (bytes32) {\n return hash.toEthSignedMessageHash();\n }\n}\n","urls":[]},"contracts/mocks/ERC1155BurnableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC1155/ERC1155Burnable.sol\";\n\ncontract ERC1155BurnableMock is ERC1155Burnable {\n constructor(string memory uri) public ERC1155(uri) { }\n\n function mint(address to, uint256 id, uint256 value, bytes memory data) public {\n _mint(to, id, value, data);\n }\n}\n","urls":[]},"contracts/mocks/ERC1155Mock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC1155/ERC1155.sol\";\n\n/**\n * @title ERC1155Mock\n * This mock just publicizes internal functions for testing purposes\n */\ncontract ERC1155Mock is ERC1155 {\n constructor (string memory uri) public ERC1155(uri) {\n // solhint-disable-previous-line no-empty-blocks\n }\n\n function setURI(string memory newuri) public {\n _setURI(newuri);\n }\n\n function mint(address to, uint256 id, uint256 value, bytes memory data) public {\n _mint(to, id, value, data);\n }\n\n function mintBatch(address to, uint256[] memory ids, uint256[] memory values, bytes memory data) public {\n _mintBatch(to, ids, values, data);\n }\n\n function burn(address owner, uint256 id, uint256 value) public {\n _burn(owner, id, value);\n }\n\n function burnBatch(address owner, uint256[] memory ids, uint256[] memory values) public {\n _burnBatch(owner, ids, values);\n }\n}\n","urls":[]},"contracts/mocks/ERC1155PausableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC1155Mock.sol\";\nimport \"../token/ERC1155/ERC1155Pausable.sol\";\n\ncontract ERC1155PausableMock is ERC1155Mock, ERC1155Pausable {\n constructor(string memory uri) public ERC1155Mock(uri) { }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n internal virtual override(ERC1155, ERC1155Pausable)\n {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n }\n}\n","urls":[]},"contracts/mocks/ERC1155ReceiverMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC1155/IERC1155Receiver.sol\";\nimport \"./ERC165Mock.sol\";\n\ncontract ERC1155ReceiverMock is IERC1155Receiver, ERC165Mock {\n bytes4 private _recRetval;\n bool private _recReverts;\n bytes4 private _batRetval;\n bool private _batReverts;\n\n event Received(address operator, address from, uint256 id, uint256 value, bytes data, uint256 gas);\n event BatchReceived(address operator, address from, uint256[] ids, uint256[] values, bytes data, uint256 gas);\n\n constructor (\n bytes4 recRetval,\n bool recReverts,\n bytes4 batRetval,\n bool batReverts\n )\n public\n {\n _recRetval = recRetval;\n _recReverts = recReverts;\n _batRetval = batRetval;\n _batReverts = batReverts;\n }\n\n function onERC1155Received(\n address operator,\n address from,\n uint256 id,\n uint256 value,\n bytes calldata data\n )\n external\n override\n returns(bytes4)\n {\n require(!_recReverts, \"ERC1155ReceiverMock: reverting on receive\");\n emit Received(operator, from, id, value, data, gasleft());\n return _recRetval;\n }\n\n function onERC1155BatchReceived(\n address operator,\n address from,\n uint256[] calldata ids,\n uint256[] calldata values,\n bytes calldata data\n )\n external\n override\n returns(bytes4)\n {\n require(!_batReverts, \"ERC1155ReceiverMock: reverting on batch receive\");\n emit BatchReceived(operator, from, ids, values, data, gasleft());\n return _batRetval;\n }\n}\n","urls":[]},"contracts/mocks/ERC165/ERC165InterfacesSupported.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../introspection/IERC165.sol\";\n\n/**\n * https://eips.ethereum.org/EIPS/eip-214#specification\n * From the specification:\n * > Any attempts to make state-changing operations inside an execution instance with STATIC set to true will instead\n * throw an exception.\n * > These operations include [...], LOG0, LOG1, LOG2, [...]\n *\n * therefore, because this contract is staticcall'd we need to not emit events (which is how solidity-coverage works)\n * solidity-coverage ignores the /mocks folder, so we duplicate its implementation here to avoid instrumenting it\n */\ncontract SupportsInterfaceWithLookupMock is IERC165 {\n /*\n * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7\n */\n bytes4 public constant INTERFACE_ID_ERC165 = 0x01ffc9a7;\n\n /**\n * @dev A mapping of interface id to whether or not it's supported.\n */\n mapping(bytes4 => bool) private _supportedInterfaces;\n\n /**\n * @dev A contract implementing SupportsInterfaceWithLookup\n * implement ERC165 itself.\n */\n constructor () public {\n _registerInterface(INTERFACE_ID_ERC165);\n }\n\n /**\n * @dev Implement supportsInterface(bytes4) using a lookup table.\n */\n function supportsInterface(bytes4 interfaceId) public view override returns (bool) {\n return _supportedInterfaces[interfaceId];\n }\n\n /**\n * @dev Private method for registering an interface.\n */\n function _registerInterface(bytes4 interfaceId) internal {\n require(interfaceId != 0xffffffff, \"ERC165InterfacesSupported: invalid interface id\");\n _supportedInterfaces[interfaceId] = true;\n }\n}\n\ncontract ERC165InterfacesSupported is SupportsInterfaceWithLookupMock {\n constructor (bytes4[] memory interfaceIds) public {\n for (uint256 i = 0; i < interfaceIds.length; i++) {\n _registerInterface(interfaceIds[i]);\n }\n }\n}\n","urls":[]},"contracts/mocks/ERC165/ERC165NotSupported.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\ncontract ERC165NotSupported { }\n","urls":[]},"contracts/mocks/ERC165CheckerMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../introspection/ERC165Checker.sol\";\n\ncontract ERC165CheckerMock {\n using ERC165Checker for address;\n\n function supportsERC165(address account) public view returns (bool) {\n return account.supportsERC165();\n }\n\n function supportsInterface(address account, bytes4 interfaceId) public view returns (bool) {\n return account.supportsInterface(interfaceId);\n }\n\n function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) public view returns (bool) {\n return account.supportsAllInterfaces(interfaceIds);\n }\n}\n","urls":[]},"contracts/mocks/ERC165Mock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../introspection/ERC165.sol\";\n\ncontract ERC165Mock is ERC165 {\n function registerInterface(bytes4 interfaceId) public {\n _registerInterface(interfaceId);\n }\n}\n","urls":[]},"contracts/mocks/ERC1820ImplementerMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../introspection/ERC1820Implementer.sol\";\n\ncontract ERC1820ImplementerMock is ERC1820Implementer {\n function registerInterfaceForAddress(bytes32 interfaceHash, address account) public {\n _registerInterfaceForAddress(interfaceHash, account);\n }\n}\n","urls":[]},"contracts/mocks/ERC20BurnableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20Burnable.sol\";\n\ncontract ERC20BurnableMock is ERC20Burnable {\n constructor (\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) public ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n}\n","urls":[]},"contracts/mocks/ERC20CappedMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20Capped.sol\";\n\ncontract ERC20CappedMock is ERC20Capped {\n constructor (string memory name, string memory symbol, uint256 cap)\n public ERC20(name, symbol) ERC20Capped(cap)\n { }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n}\n","urls":[]},"contracts/mocks/ERC20DecimalsMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20.sol\";\n\ncontract ERC20DecimalsMock is ERC20 {\n constructor (string memory name, string memory symbol, uint8 decimals) public ERC20(name, symbol) {\n _setupDecimals(decimals);\n }\n}\n","urls":[]},"contracts/mocks/ERC20Mock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20.sol\";\n\n// mock class using ERC20\ncontract ERC20Mock is ERC20 {\n constructor (\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) public payable ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n\n function mint(address account, uint256 amount) public {\n _mint(account, amount);\n }\n\n function burn(address account, uint256 amount) public {\n _burn(account, amount);\n }\n\n function transferInternal(address from, address to, uint256 value) public {\n _transfer(from, to, value);\n }\n\n function approveInternal(address owner, address spender, uint256 value) public {\n _approve(owner, spender, value);\n }\n}\n","urls":[]},"contracts/mocks/ERC20PausableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20Pausable.sol\";\n\n// mock class using ERC20Pausable\ncontract ERC20PausableMock is ERC20Pausable {\n constructor (\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) public ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n\n function mint(address to, uint256 amount) public {\n _mint(to, amount);\n }\n\n function burn(address from, uint256 amount) public {\n _burn(from, amount);\n }\n}\n","urls":[]},"contracts/mocks/ERC20SnapshotMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC20/ERC20Snapshot.sol\";\n\n\ncontract ERC20SnapshotMock is ERC20Snapshot {\n constructor(\n string memory name,\n string memory symbol,\n address initialAccount,\n uint256 initialBalance\n ) public ERC20(name, symbol) {\n _mint(initialAccount, initialBalance);\n }\n\n function snapshot() public {\n _snapshot();\n }\n\n function mint(address account, uint256 amount) public {\n _mint(account, amount);\n }\n\n function burn(address account, uint256 amount) public {\n _burn(account, amount);\n }\n}\n","urls":[]},"contracts/mocks/ERC721BurnableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/ERC721Burnable.sol\";\n\ncontract ERC721BurnableMock is ERC721Burnable {\n constructor(string memory name, string memory symbol) public ERC721(name, symbol) { }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n}\n","urls":[]},"contracts/mocks/ERC721GSNRecipientMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/ERC721.sol\";\nimport \"../GSN/GSNRecipient.sol\";\nimport \"../GSN/GSNRecipientSignature.sol\";\n\n/**\n * @title ERC721GSNRecipientMock\n * A simple ERC721 mock that has GSN support enabled\n */\ncontract ERC721GSNRecipientMock is ERC721, GSNRecipient, GSNRecipientSignature {\n constructor(string memory name, string memory symbol, address trustedSigner)\n public\n ERC721(name, symbol)\n GSNRecipientSignature(trustedSigner)\n { }\n\n function mint(uint256 tokenId) public {\n _mint(_msgSender(), tokenId);\n }\n\n function _msgSender() internal view override(Context, GSNRecipient) returns (address payable) {\n return GSNRecipient._msgSender();\n }\n\n function _msgData() internal view override(Context, GSNRecipient) returns (bytes memory) {\n return GSNRecipient._msgData();\n }\n}\n","urls":[]},"contracts/mocks/ERC721Mock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/ERC721.sol\";\n\n/**\n * @title ERC721Mock\n * This mock just provides a public safeMint, mint, and burn functions for testing purposes\n */\ncontract ERC721Mock is ERC721 {\n constructor (string memory name, string memory symbol) public ERC721(name, symbol) { }\n\n function exists(uint256 tokenId) public view returns (bool) {\n return _exists(tokenId);\n }\n\n function setTokenURI(uint256 tokenId, string memory uri) public {\n _setTokenURI(tokenId, uri);\n }\n\n function setBaseURI(string memory baseURI) public {\n _setBaseURI(baseURI);\n }\n\n function mint(address to, uint256 tokenId) public {\n _mint(to, tokenId);\n }\n\n function safeMint(address to, uint256 tokenId) public {\n _safeMint(to, tokenId);\n }\n\n function safeMint(address to, uint256 tokenId, bytes memory _data) public {\n _safeMint(to, tokenId, _data);\n }\n\n function burn(uint256 tokenId) public {\n _burn(tokenId);\n }\n}\n","urls":[]},"contracts/mocks/ERC721PausableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/ERC721Pausable.sol\";\n\n/**\n * @title ERC721PausableMock\n * This mock just provides a public mint, burn and exists functions for testing purposes\n */\ncontract ERC721PausableMock is ERC721Pausable {\n constructor (string memory name, string memory symbol) public ERC721(name, symbol) { }\n\n function mint(address to, uint256 tokenId) public {\n super._mint(to, tokenId);\n }\n\n function burn(uint256 tokenId) public {\n super._burn(tokenId);\n }\n\n function exists(uint256 tokenId) public view returns (bool) {\n return super._exists(tokenId);\n }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n}\n","urls":[]},"contracts/mocks/ERC721ReceiverMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../token/ERC721/IERC721Receiver.sol\";\n\ncontract ERC721ReceiverMock is IERC721Receiver {\n bytes4 private _retval;\n bool private _reverts;\n\n event Received(address operator, address from, uint256 tokenId, bytes data, uint256 gas);\n\n constructor (bytes4 retval, bool reverts) public {\n _retval = retval;\n _reverts = reverts;\n }\n\n function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data)\n public override returns (bytes4)\n {\n require(!_reverts, \"ERC721ReceiverMock: reverting\");\n emit Received(operator, from, tokenId, data, gasleft());\n return _retval;\n }\n}\n","urls":[]},"contracts/mocks/ERC777Mock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC777/ERC777.sol\";\n\ncontract ERC777Mock is Context, ERC777 {\n constructor(\n address initialHolder,\n uint256 initialBalance,\n string memory name,\n string memory symbol,\n address[] memory defaultOperators\n ) public ERC777(name, symbol, defaultOperators) {\n _mint(initialHolder, initialBalance, \"\", \"\");\n }\n\n function mintInternal (\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n ) public {\n _mint(to, amount, userData, operatorData);\n }\n\n function approveInternal(address holder, address spender, uint256 value) public {\n _approve(holder, spender, value);\n }\n}\n","urls":[]},"contracts/mocks/ERC777SenderRecipientMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC777/IERC777.sol\";\nimport \"../token/ERC777/IERC777Sender.sol\";\nimport \"../token/ERC777/IERC777Recipient.sol\";\nimport \"../introspection/IERC1820Registry.sol\";\nimport \"../introspection/ERC1820Implementer.sol\";\n\ncontract ERC777SenderRecipientMock is Context, IERC777Sender, IERC777Recipient, ERC1820Implementer {\n event TokensToSendCalled(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes data,\n bytes operatorData,\n address token,\n uint256 fromBalance,\n uint256 toBalance\n );\n\n event TokensReceivedCalled(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes data,\n bytes operatorData,\n address token,\n uint256 fromBalance,\n uint256 toBalance\n );\n\n bool private _shouldRevertSend;\n bool private _shouldRevertReceive;\n\n IERC1820Registry private _erc1820 = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);\n\n bytes32 constant private _TOKENS_SENDER_INTERFACE_HASH = keccak256(\"ERC777TokensSender\");\n bytes32 constant private _TOKENS_RECIPIENT_INTERFACE_HASH = keccak256(\"ERC777TokensRecipient\");\n\n function tokensToSend(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external override {\n if (_shouldRevertSend) {\n revert();\n }\n\n IERC777 token = IERC777(_msgSender());\n\n uint256 fromBalance = token.balanceOf(from);\n // when called due to burn, to will be the zero address, which will have a balance of 0\n uint256 toBalance = token.balanceOf(to);\n\n emit TokensToSendCalled(\n operator,\n from,\n to,\n amount,\n userData,\n operatorData,\n address(token),\n fromBalance,\n toBalance\n );\n }\n\n function tokensReceived(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external override {\n if (_shouldRevertReceive) {\n revert();\n }\n\n IERC777 token = IERC777(_msgSender());\n\n uint256 fromBalance = token.balanceOf(from);\n // when called due to burn, to will be the zero address, which will have a balance of 0\n uint256 toBalance = token.balanceOf(to);\n\n emit TokensReceivedCalled(\n operator,\n from,\n to,\n amount,\n userData,\n operatorData,\n address(token),\n fromBalance,\n toBalance\n );\n }\n\n function senderFor(address account) public {\n _registerInterfaceForAddress(_TOKENS_SENDER_INTERFACE_HASH, account);\n\n address self = address(this);\n if (account == self) {\n registerSender(self);\n }\n }\n\n function registerSender(address sender) public {\n _erc1820.setInterfaceImplementer(address(this), _TOKENS_SENDER_INTERFACE_HASH, sender);\n }\n\n function recipientFor(address account) public {\n _registerInterfaceForAddress(_TOKENS_RECIPIENT_INTERFACE_HASH, account);\n\n address self = address(this);\n if (account == self) {\n registerRecipient(self);\n }\n }\n\n function registerRecipient(address recipient) public {\n _erc1820.setInterfaceImplementer(address(this), _TOKENS_RECIPIENT_INTERFACE_HASH, recipient);\n }\n\n function setShouldRevertSend(bool shouldRevert) public {\n _shouldRevertSend = shouldRevert;\n }\n\n function setShouldRevertReceive(bool shouldRevert) public {\n _shouldRevertReceive = shouldRevert;\n }\n\n function send(IERC777 token, address to, uint256 amount, bytes memory data) public {\n // This is 777's send function, not the Solidity send function\n token.send(to, amount, data); // solhint-disable-line check-send-result\n }\n\n function burn(IERC777 token, uint256 amount, bytes memory data) public {\n token.burn(amount, data);\n }\n}\n","urls":[]},"contracts/mocks/EnumerableMapMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/EnumerableMap.sol\";\n\ncontract EnumerableMapMock {\n using EnumerableMap for EnumerableMap.UintToAddressMap;\n\n event OperationResult(bool result);\n\n EnumerableMap.UintToAddressMap private _map;\n\n function contains(uint256 key) public view returns (bool) {\n return _map.contains(key);\n }\n\n function set(uint256 key, address value) public {\n bool result = _map.set(key, value);\n emit OperationResult(result);\n }\n\n function remove(uint256 key) public {\n bool result = _map.remove(key);\n emit OperationResult(result);\n }\n\n function length() public view returns (uint256) {\n return _map.length();\n }\n\n function at(uint256 index) public view returns (uint256 key, address value) {\n return _map.at(index);\n }\n\n\n function get(uint256 key) public view returns (address) {\n return _map.get(key);\n }\n}\n","urls":[]},"contracts/mocks/EnumerableSetMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/EnumerableSet.sol\";\n\n// AddressSet\ncontract EnumerableAddressSetMock {\n using EnumerableSet for EnumerableSet.AddressSet;\n\n event OperationResult(bool result);\n\n EnumerableSet.AddressSet private _set;\n\n function contains(address value) public view returns (bool) {\n return _set.contains(value);\n }\n\n function add(address value) public {\n bool result = _set.add(value);\n emit OperationResult(result);\n }\n\n function remove(address value) public {\n bool result = _set.remove(value);\n emit OperationResult(result);\n }\n\n function length() public view returns (uint256) {\n return _set.length();\n }\n\n function at(uint256 index) public view returns (address) {\n return _set.at(index);\n }\n}\n\n// UintSet\ncontract EnumerableUintSetMock {\n using EnumerableSet for EnumerableSet.UintSet;\n\n event OperationResult(bool result);\n\n EnumerableSet.UintSet private _set;\n\n function contains(uint256 value) public view returns (bool) {\n return _set.contains(value);\n }\n\n function add(uint256 value) public {\n bool result = _set.add(value);\n emit OperationResult(result);\n }\n\n function remove(uint256 value) public {\n bool result = _set.remove(value);\n emit OperationResult(result);\n }\n\n function length() public view returns (uint256) {\n return _set.length();\n }\n\n function at(uint256 index) public view returns (uint256) {\n return _set.at(index);\n }\n}\n","urls":[]},"contracts/mocks/EtherReceiverMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\ncontract EtherReceiverMock {\n bool private _acceptEther;\n\n function setAcceptEther(bool acceptEther) public {\n _acceptEther = acceptEther;\n }\n\n receive () external payable {\n if (!_acceptEther) {\n revert();\n }\n }\n}\n","urls":[]},"contracts/mocks/GSNRecipientERC20FeeMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/GSNRecipient.sol\";\nimport \"../GSN/GSNRecipientERC20Fee.sol\";\n\ncontract GSNRecipientERC20FeeMock is GSNRecipient, GSNRecipientERC20Fee {\n constructor(string memory name, string memory symbol) public GSNRecipientERC20Fee(name, symbol) { }\n\n function mint(address account, uint256 amount) public {\n _mint(account, amount);\n }\n\n event MockFunctionCalled(uint256 senderBalance);\n\n function mockFunction() public {\n emit MockFunctionCalled(token().balanceOf(_msgSender()));\n }\n}\n","urls":[]},"contracts/mocks/GSNRecipientMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ContextMock.sol\";\nimport \"../GSN/GSNRecipient.sol\";\n\n// By inheriting from GSNRecipient, Context's internal functions are overridden automatically\ncontract GSNRecipientMock is ContextMock, GSNRecipient {\n function withdrawDeposits(uint256 amount, address payable payee) public {\n _withdrawDeposits(amount, payee);\n }\n\n function acceptRelayedCall(address, address, bytes calldata, uint256, uint256, uint256, uint256, bytes calldata, uint256)\n external\n view\n override\n returns (uint256, bytes memory)\n {\n return (0, \"\");\n }\n\n function _preRelayedCall(bytes memory) internal override returns (bytes32) { }\n\n function _postRelayedCall(bytes memory, bool, uint256, bytes32) internal override { }\n\n function upgradeRelayHub(address newRelayHub) public {\n return _upgradeRelayHub(newRelayHub);\n }\n\n function _msgSender() internal override(Context, GSNRecipient) view virtual returns (address payable) {\n return GSNRecipient._msgSender();\n }\n\n function _msgData() internal override(Context, GSNRecipient) view virtual returns (bytes memory) {\n return GSNRecipient._msgData();\n }\n}\n","urls":[]},"contracts/mocks/GSNRecipientSignatureMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/GSNRecipient.sol\";\nimport \"../GSN/GSNRecipientSignature.sol\";\n\ncontract GSNRecipientSignatureMock is GSNRecipient, GSNRecipientSignature {\n constructor(address trustedSigner) public GSNRecipientSignature(trustedSigner) { }\n\n event MockFunctionCalled();\n\n function mockFunction() public {\n emit MockFunctionCalled();\n }\n}\n","urls":[]},"contracts/mocks/MathMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/Math.sol\";\n\ncontract MathMock {\n function max(uint256 a, uint256 b) public pure returns (uint256) {\n return Math.max(a, b);\n }\n\n function min(uint256 a, uint256 b) public pure returns (uint256) {\n return Math.min(a, b);\n }\n\n function average(uint256 a, uint256 b) public pure returns (uint256) {\n return Math.average(a, b);\n }\n}\n","urls":[]},"contracts/mocks/MerkleProofWrapper.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport { MerkleProof } from \"../cryptography/MerkleProof.sol\";\n\ncontract MerkleProofWrapper {\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) public pure returns (bool) {\n return MerkleProof.verify(proof, root, leaf);\n }\n}\n","urls":[]},"contracts/mocks/OwnableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/Ownable.sol\";\n\ncontract OwnableMock is Ownable { }\n","urls":[]},"contracts/mocks/PausableMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Pausable.sol\";\n\ncontract PausableMock is Pausable {\n bool public drasticMeasureTaken;\n uint256 public count;\n\n constructor () public {\n drasticMeasureTaken = false;\n count = 0;\n }\n\n function normalProcess() external whenNotPaused {\n count++;\n }\n\n function drasticMeasure() external whenPaused {\n drasticMeasureTaken = true;\n }\n\n function pause() external {\n _pause();\n }\n\n function unpause() external {\n _unpause();\n }\n}\n","urls":[]},"contracts/mocks/PullPaymentMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../payment/PullPayment.sol\";\n\n// mock class using PullPayment\ncontract PullPaymentMock is PullPayment {\n constructor () public payable { }\n\n // test helper function to call asyncTransfer\n function callTransfer(address dest, uint256 amount) public {\n _asyncTransfer(dest, amount);\n }\n}\n","urls":[]},"contracts/mocks/ReentrancyAttack.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\ncontract ReentrancyAttack is Context {\n function callSender(bytes4 data) public {\n // solhint-disable-next-line avoid-low-level-calls\n (bool success,) = _msgSender().call(abi.encodeWithSelector(data));\n require(success, \"ReentrancyAttack: failed call\");\n }\n}\n","urls":[]},"contracts/mocks/ReentrancyMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/ReentrancyGuard.sol\";\nimport \"./ReentrancyAttack.sol\";\n\ncontract ReentrancyMock is ReentrancyGuard {\n uint256 public counter;\n\n constructor () public {\n counter = 0;\n }\n\n function callback() external nonReentrant {\n _count();\n }\n\n function countLocalRecursive(uint256 n) public nonReentrant {\n if (n > 0) {\n _count();\n countLocalRecursive(n - 1);\n }\n }\n\n function countThisRecursive(uint256 n) public nonReentrant {\n if (n > 0) {\n _count();\n // solhint-disable-next-line avoid-low-level-calls\n (bool success,) = address(this).call(abi.encodeWithSignature(\"countThisRecursive(uint256)\", n - 1));\n require(success, \"ReentrancyMock: failed call\");\n }\n }\n\n function countAndCall(ReentrancyAttack attacker) public nonReentrant {\n _count();\n bytes4 func = bytes4(keccak256(\"callback()\"));\n attacker.callSender(func);\n }\n\n function _count() private {\n counter += 1;\n }\n}\n","urls":[]},"contracts/mocks/SafeCastMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/SafeCast.sol\";\n\ncontract SafeCastMock {\n using SafeCast for uint;\n using SafeCast for int;\n\n function toUint256(int a) public pure returns (uint256) {\n return a.toUint256();\n }\n\n function toInt256(uint a) public pure returns (int256) {\n return a.toInt256();\n }\n\n function toUint128(uint a) public pure returns (uint128) {\n return a.toUint128();\n }\n\n function toUint64(uint a) public pure returns (uint64) {\n return a.toUint64();\n }\n\n function toUint32(uint a) public pure returns (uint32) {\n return a.toUint32();\n }\n\n function toUint16(uint a) public pure returns (uint16) {\n return a.toUint16();\n }\n\n function toUint8(uint a) public pure returns (uint8) {\n return a.toUint8();\n }\n\n function toInt128(int a) public pure returns (int128) {\n return a.toInt128();\n }\n\n function toInt64(int a) public pure returns (int64) {\n return a.toInt64();\n }\n\n function toInt32(int a) public pure returns (int32) {\n return a.toInt32();\n }\n\n function toInt16(int a) public pure returns (int16) {\n return a.toInt16();\n }\n\n function toInt8(int a) public pure returns (int8) {\n return a.toInt8();\n }\n}\n","urls":[]},"contracts/mocks/SafeERC20Helper.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC20/IERC20.sol\";\nimport \"../token/ERC20/SafeERC20.sol\";\n\ncontract ERC20ReturnFalseMock is Context {\n uint256 private _allowance;\n\n // IERC20's functions are not pure, but these mock implementations are: to prevent Solidity from issuing warnings,\n // we write to a dummy state variable.\n uint256 private _dummy;\n\n function transfer(address, uint256) public returns (bool) {\n _dummy = 0;\n return false;\n }\n\n function transferFrom(address, address, uint256) public returns (bool) {\n _dummy = 0;\n return false;\n }\n\n function approve(address, uint256) public returns (bool) {\n _dummy = 0;\n return false;\n }\n\n function allowance(address, address) public view returns (uint256) {\n require(_dummy == 0); // Duummy read from a state variable so that the function is view\n return 0;\n }\n}\n\ncontract ERC20ReturnTrueMock is Context {\n mapping (address => uint256) private _allowances;\n\n // IERC20's functions are not pure, but these mock implementations are: to prevent Solidity from issuing warnings,\n // we write to a dummy state variable.\n uint256 private _dummy;\n\n function transfer(address, uint256) public returns (bool) {\n _dummy = 0;\n return true;\n }\n\n function transferFrom(address, address, uint256) public returns (bool) {\n _dummy = 0;\n return true;\n }\n\n function approve(address, uint256) public returns (bool) {\n _dummy = 0;\n return true;\n }\n\n function setAllowance(uint256 allowance_) public {\n _allowances[_msgSender()] = allowance_;\n }\n\n function allowance(address owner, address) public view returns (uint256) {\n return _allowances[owner];\n }\n}\n\ncontract ERC20NoReturnMock is Context {\n mapping (address => uint256) private _allowances;\n\n // IERC20's functions are not pure, but these mock implementations are: to prevent Solidity from issuing warnings,\n // we write to a dummy state variable.\n uint256 private _dummy;\n\n function transfer(address, uint256) public {\n _dummy = 0;\n }\n\n function transferFrom(address, address, uint256) public {\n _dummy = 0;\n }\n\n function approve(address, uint256) public {\n _dummy = 0;\n }\n\n function setAllowance(uint256 allowance_) public {\n _allowances[_msgSender()] = allowance_;\n }\n\n function allowance(address owner, address) public view returns (uint256) {\n return _allowances[owner];\n }\n}\n\ncontract SafeERC20Wrapper is Context {\n using SafeERC20 for IERC20;\n\n IERC20 private _token;\n\n constructor (IERC20 token) public {\n _token = token;\n }\n\n function transfer() public {\n _token.safeTransfer(address(0), 0);\n }\n\n function transferFrom() public {\n _token.safeTransferFrom(address(0), address(0), 0);\n }\n\n function approve(uint256 amount) public {\n _token.safeApprove(address(0), amount);\n }\n\n function increaseAllowance(uint256 amount) public {\n _token.safeIncreaseAllowance(address(0), amount);\n }\n\n function decreaseAllowance(uint256 amount) public {\n _token.safeDecreaseAllowance(address(0), amount);\n }\n\n function setAllowance(uint256 allowance_) public {\n ERC20ReturnTrueMock(address(_token)).setAllowance(allowance_);\n }\n\n function allowance() public view returns (uint256) {\n return _token.allowance(address(0), address(0));\n }\n}\n","urls":[]},"contracts/mocks/SafeMathMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/SafeMath.sol\";\n\ncontract SafeMathMock {\n function mul(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.mul(a, b);\n }\n\n function div(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.div(a, b);\n }\n\n function sub(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.sub(a, b);\n }\n\n function add(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.add(a, b);\n }\n\n function mod(uint256 a, uint256 b) public pure returns (uint256) {\n return SafeMath.mod(a, b);\n }\n}\n","urls":[]},"contracts/mocks/SignedSafeMathMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/SignedSafeMath.sol\";\n\ncontract SignedSafeMathMock {\n function mul(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.mul(a, b);\n }\n\n function div(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.div(a, b);\n }\n\n function sub(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.sub(a, b);\n }\n\n function add(int256 a, int256 b) public pure returns (int256) {\n return SignedSafeMath.add(a, b);\n }\n}\n","urls":[]},"contracts/mocks/StringsMock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../utils/Strings.sol\";\n\ncontract StringsMock {\n function fromUint256(uint256 value) public pure returns (string memory) {\n return Strings.toString(value);\n }\n}\n","urls":[]},"contracts/payment/PaymentSplitter.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.sol\";\nimport \"../math/SafeMath.sol\";\n\n/**\n * @title PaymentSplitter\n * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware\n * that the Ether will be split in this way, since it is handled transparently by the contract.\n *\n * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each\n * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim\n * an amount proportional to the percentage of total shares they were assigned.\n *\n * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the\n * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}\n * function.\n */\ncontract PaymentSplitter is Context {\n using SafeMath for uint256;\n\n event PayeeAdded(address account, uint256 shares);\n event PaymentReleased(address to, uint256 amount);\n event PaymentReceived(address from, uint256 amount);\n\n uint256 private _totalShares;\n uint256 private _totalReleased;\n\n mapping(address => uint256) private _shares;\n mapping(address => uint256) private _released;\n address[] private _payees;\n\n /**\n * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at\n * the matching position in the `shares` array.\n *\n * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no\n * duplicates in `payees`.\n */\n constructor (address[] memory payees, uint256[] memory shares) public payable {\n // solhint-disable-next-line max-line-length\n require(payees.length == shares.length, \"PaymentSplitter: payees and shares length mismatch\");\n require(payees.length > 0, \"PaymentSplitter: no payees\");\n\n for (uint256 i = 0; i < payees.length; i++) {\n _addPayee(payees[i], shares[i]);\n }\n }\n\n /**\n * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully\n * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the\n * reliability of the events, and not the actual splitting of Ether.\n *\n * To learn more about this see the Solidity documentation for\n * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback\n * functions].\n */\n receive () external payable virtual {\n emit PaymentReceived(_msgSender(), msg.value);\n }\n\n /**\n * @dev Getter for the total shares held by payees.\n */\n function totalShares() public view returns (uint256) {\n return _totalShares;\n }\n\n /**\n * @dev Getter for the total amount of Ether already released.\n */\n function totalReleased() public view returns (uint256) {\n return _totalReleased;\n }\n\n /**\n * @dev Getter for the amount of shares held by an account.\n */\n function shares(address account) public view returns (uint256) {\n return _shares[account];\n }\n\n /**\n * @dev Getter for the amount of Ether already released to a payee.\n */\n function released(address account) public view returns (uint256) {\n return _released[account];\n }\n\n /**\n * @dev Getter for the address of the payee number `index`.\n */\n function payee(uint256 index) public view returns (address) {\n return _payees[index];\n }\n\n /**\n * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the\n * total shares and their previous withdrawals.\n */\n function release(address payable account) public virtual {\n require(_shares[account] > 0, \"PaymentSplitter: account has no shares\");\n\n uint256 totalReceived = address(this).balance.add(_totalReleased);\n uint256 payment = totalReceived.mul(_shares[account]).div(_totalShares).sub(_released[account]);\n\n require(payment != 0, \"PaymentSplitter: account is not due payment\");\n\n _released[account] = _released[account].add(payment);\n _totalReleased = _totalReleased.add(payment);\n\n account.transfer(payment);\n emit PaymentReleased(account, payment);\n }\n\n /**\n * @dev Add a new payee to the contract.\n * @param account The address of the payee to add.\n * @param shares_ The number of shares owned by the payee.\n */\n function _addPayee(address account, uint256 shares_) private {\n require(account != address(0), \"PaymentSplitter: account is the zero address\");\n require(shares_ > 0, \"PaymentSplitter: shares are 0\");\n require(_shares[account] == 0, \"PaymentSplitter: account already has shares\");\n\n _payees.push(account);\n _shares[account] = shares_;\n _totalShares = _totalShares.add(shares_);\n emit PayeeAdded(account, shares_);\n }\n}\n","urls":[]},"contracts/payment/PullPayment.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"./escrow/Escrow.sol\";\n\n/**\n * @dev Simple implementation of a\n * https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment]\n * strategy, where the paying contract doesn't interact directly with the\n * receiver account, which must withdraw its payments itself.\n *\n * Pull-payments are often considered the best practice when it comes to sending\n * Ether, security-wise. It prevents recipients from blocking execution, and\n * eliminates reentrancy concerns.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n *\n * To use, derive from the `PullPayment` contract, and use {_asyncTransfer}\n * instead of Solidity's `transfer` function. Payees can query their due\n * payments with {payments}, and retrieve them with {withdrawPayments}.\n */\ncontract PullPayment {\n Escrow private _escrow;\n\n constructor () internal {\n _escrow = new Escrow();\n }\n\n /**\n * @dev Withdraw accumulated payments, forwarding all gas to the recipient.\n *\n * Note that _any_ account can call this function, not just the `payee`.\n * This means that contracts unaware of the `PullPayment` protocol can still\n * receive funds this way, by having a separate account call\n * {withdrawPayments}.\n *\n * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.\n * Make sure you trust the recipient, or are either following the\n * checks-effects-interactions pattern or using {ReentrancyGuard}.\n *\n * @param payee Whose payments will be withdrawn.\n */\n function withdrawPayments(address payable payee) public virtual {\n _escrow.withdraw(payee);\n }\n\n /**\n * @dev Returns the payments owed to an address.\n * @param dest The creditor's address.\n */\n function payments(address dest) public view returns (uint256) {\n return _escrow.depositsOf(dest);\n }\n\n /**\n * @dev Called by the payer to store the sent amount as credit to be pulled.\n * Funds sent in this way are stored in an intermediate {Escrow} contract, so\n * there is no danger of them being spent before withdrawal.\n *\n * @param dest The destination address of the funds.\n * @param amount The amount to transfer.\n */\n function _asyncTransfer(address dest, uint256 amount) internal virtual {\n _escrow.deposit{ value: amount }(dest);\n }\n}\n","urls":[]},"contracts/payment/escrow/ConditionalEscrow.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./Escrow.sol\";\n\n/**\n * @title ConditionalEscrow\n * @dev Base abstract escrow to only allow withdrawal if a condition is met.\n * @dev Intended usage: See {Escrow}. Same usage guidelines apply here.\n */\nabstract contract ConditionalEscrow is Escrow {\n /**\n * @dev Returns whether an address is allowed to withdraw their funds. To be\n * implemented by derived contracts.\n * @param payee The destination address of the funds.\n */\n function withdrawalAllowed(address payee) public view virtual returns (bool);\n\n function withdraw(address payable payee) public virtual override {\n require(withdrawalAllowed(payee), \"ConditionalEscrow: payee is not allowed to withdraw\");\n super.withdraw(payee);\n }\n}\n","urls":[]},"contracts/payment/escrow/Escrow.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../math/SafeMath.sol\";\nimport \"../../access/Ownable.sol\";\nimport \"../../utils/Address.sol\";\n\n /**\n * @title Escrow\n * @dev Base escrow contract, holds funds designated for a payee until they\n * withdraw them.\n *\n * Intended usage: This contract (and derived escrow contracts) should be a\n * standalone contract, that only interacts with the contract that instantiated\n * it. That way, it is guaranteed that all Ether will be handled according to\n * the `Escrow` rules, and there is no need to check for payable functions or\n * transfers in the inheritance tree. The contract that uses the escrow as its\n * payment method should be its owner, and provide public methods redirecting\n * to the escrow's deposit and withdraw.\n */\ncontract Escrow is Ownable {\n using SafeMath for uint256;\n using Address for address payable;\n\n event Deposited(address indexed payee, uint256 weiAmount);\n event Withdrawn(address indexed payee, uint256 weiAmount);\n\n mapping(address => uint256) private _deposits;\n\n function depositsOf(address payee) public view returns (uint256) {\n return _deposits[payee];\n }\n\n /**\n * @dev Stores the sent amount as credit to be withdrawn.\n * @param payee The destination address of the funds.\n */\n function deposit(address payee) public virtual payable onlyOwner {\n uint256 amount = msg.value;\n _deposits[payee] = _deposits[payee].add(amount);\n\n emit Deposited(payee, amount);\n }\n\n /**\n * @dev Withdraw accumulated balance for a payee, forwarding all gas to the\n * recipient.\n *\n * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.\n * Make sure you trust the recipient, or are either following the\n * checks-effects-interactions pattern or using {ReentrancyGuard}.\n *\n * @param payee The address whose funds will be withdrawn and transferred to.\n */\n function withdraw(address payable payee) public virtual onlyOwner {\n uint256 payment = _deposits[payee];\n\n _deposits[payee] = 0;\n\n payee.sendValue(payment);\n\n emit Withdrawn(payee, payment);\n }\n}\n","urls":[]},"contracts/payment/escrow/RefundEscrow.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ConditionalEscrow.sol\";\n\n/**\n * @title RefundEscrow\n * @dev Escrow that holds funds for a beneficiary, deposited from multiple\n * parties.\n * @dev Intended usage: See {Escrow}. Same usage guidelines apply here.\n * @dev The owner account (that is, the contract that instantiates this\n * contract) may deposit, close the deposit period, and allow for either\n * withdrawal by the beneficiary, or refunds to the depositors. All interactions\n * with `RefundEscrow` will be made through the owner contract.\n */\ncontract RefundEscrow is ConditionalEscrow {\n enum State { Active, Refunding, Closed }\n\n event RefundsClosed();\n event RefundsEnabled();\n\n State private _state;\n address payable private _beneficiary;\n\n /**\n * @dev Constructor.\n * @param beneficiary The beneficiary of the deposits.\n */\n constructor (address payable beneficiary) public {\n require(beneficiary != address(0), \"RefundEscrow: beneficiary is the zero address\");\n _beneficiary = beneficiary;\n _state = State.Active;\n }\n\n /**\n * @return The current state of the escrow.\n */\n function state() public view returns (State) {\n return _state;\n }\n\n /**\n * @return The beneficiary of the escrow.\n */\n function beneficiary() public view returns (address) {\n return _beneficiary;\n }\n\n /**\n * @dev Stores funds that may later be refunded.\n * @param refundee The address funds will be sent to if a refund occurs.\n */\n function deposit(address refundee) public payable virtual override {\n require(_state == State.Active, \"RefundEscrow: can only deposit while active\");\n super.deposit(refundee);\n }\n\n /**\n * @dev Allows for the beneficiary to withdraw their funds, rejecting\n * further deposits.\n */\n function close() public onlyOwner virtual {\n require(_state == State.Active, \"RefundEscrow: can only close while active\");\n _state = State.Closed;\n emit RefundsClosed();\n }\n\n /**\n * @dev Allows for refunds to take place, rejecting further deposits.\n */\n function enableRefunds() public onlyOwner virtual {\n require(_state == State.Active, \"RefundEscrow: can only enable refunds while active\");\n _state = State.Refunding;\n emit RefundsEnabled();\n }\n\n /**\n * @dev Withdraws the beneficiary's funds.\n */\n function beneficiaryWithdraw() public virtual {\n require(_state == State.Closed, \"RefundEscrow: beneficiary can only withdraw while closed\");\n _beneficiary.transfer(address(this).balance);\n }\n\n /**\n * @dev Returns whether refundees can withdraw their deposits (be refunded). The overridden function receives a\n * 'payee' argument, but we ignore it here since the condition is global, not per-payee.\n */\n function withdrawalAllowed(address) public view override returns (bool) {\n return _state == State.Refunding;\n }\n}\n","urls":[]},"contracts/presets/ERC1155PresetMinterPauser.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/AccessControl.sol\";\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC1155/ERC1155.sol\";\nimport \"../token/ERC1155/ERC1155Burnable.sol\";\nimport \"../token/ERC1155/ERC1155Pausable.sol\";\n\n/**\n * @dev {ERC1155} token, including:\n *\n * - ability for holders to burn (destroy) their tokens\n * - a minter role that allows for token minting (creation)\n * - a pauser role that allows to stop all token transfers\n *\n * This contract uses {AccessControl} to lock permissioned functions using the\n * different roles - head to its documentation for details.\n *\n * The account that deploys the contract will be granted the minter and pauser\n * roles, as well as the default admin role, which will let it grant both minter\n * and pauser roles to other accounts.\n */\ncontract ERC1155PresetMinterPauser is Context, AccessControl, ERC1155Burnable, ERC1155Pausable {\n bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n\n /**\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, and `PAUSER_ROLE` to the account that\n * deploys the contract.\n */\n constructor(string memory uri) public ERC1155(uri) {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n\n _setupRole(MINTER_ROLE, _msgSender());\n _setupRole(PAUSER_ROLE, _msgSender());\n }\n\n /**\n * @dev Creates `amount` new tokens for `to`, of token type `id`.\n *\n * See {ERC1155-_mint}.\n *\n * Requirements:\n *\n * - the caller must have the `MINTER_ROLE`.\n */\n function mint(address to, uint256 id, uint256 amount, bytes memory data) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have minter role to mint\");\n\n _mint(to, id, amount, data);\n }\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}.\n */\n function mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have minter role to mint\");\n\n _mintBatch(to, ids, amounts, data);\n }\n\n /**\n * @dev Pauses all token transfers.\n *\n * See {ERC1155Pausable} and {Pausable-_pause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function pause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have pauser role to pause\");\n _pause();\n }\n\n /**\n * @dev Unpauses all token transfers.\n *\n * See {ERC1155Pausable} and {Pausable-_unpause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function unpause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC1155PresetMinterPauser: must have pauser role to unpause\");\n _unpause();\n }\n\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n internal virtual override(ERC1155, ERC1155Pausable)\n {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n }\n}\n","urls":[]},"contracts/presets/ERC20PresetMinterPauser.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/AccessControl.sol\";\nimport \"../GSN/Context.sol\";\nimport \"../token/ERC20/ERC20.sol\";\nimport \"../token/ERC20/ERC20Burnable.sol\";\nimport \"../token/ERC20/ERC20Pausable.sol\";\n\n/**\n * @dev {ERC20} token, including:\n *\n * - ability for holders to burn (destroy) their tokens\n * - a minter role that allows for token minting (creation)\n * - a pauser role that allows to stop all token transfers\n *\n * This contract uses {AccessControl} to lock permissioned functions using the\n * different roles - head to its documentation for details.\n *\n * The account that deploys the contract will be granted the minter and pauser\n * roles, as well as the default admin role, which will let it grant both minter\n * and pauser roles to other accounts.\n */\ncontract ERC20PresetMinterPauser is Context, AccessControl, ERC20Burnable, ERC20Pausable {\n bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n\n /**\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the\n * account that deploys the contract.\n *\n * See {ERC20-constructor}.\n */\n constructor(string memory name, string memory symbol) public ERC20(name, symbol) {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n\n _setupRole(MINTER_ROLE, _msgSender());\n _setupRole(PAUSER_ROLE, _msgSender());\n }\n\n /**\n * @dev Creates `amount` new tokens for `to`.\n *\n * See {ERC20-_mint}.\n *\n * Requirements:\n *\n * - the caller must have the `MINTER_ROLE`.\n */\n function mint(address to, uint256 amount) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have minter role to mint\");\n _mint(to, amount);\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 virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have pauser role to pause\");\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 virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have pauser role to unpause\");\n _unpause();\n }\n\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20, ERC20Pausable) {\n super._beforeTokenTransfer(from, to, amount);\n }\n}\n","urls":[]},"contracts/presets/ERC721PresetMinterPauserAutoId.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../access/AccessControl.sol\";\nimport \"../GSN/Context.sol\";\nimport \"../utils/Counters.sol\";\nimport \"../token/ERC721/ERC721.sol\";\nimport \"../token/ERC721/ERC721Burnable.sol\";\nimport \"../token/ERC721/ERC721Pausable.sol\";\n\n/**\n * @dev {ERC721} token, including:\n *\n * - ability for holders to burn (destroy) their tokens\n * - a minter role that allows for token minting (creation)\n * - a pauser role that allows to stop all token transfers\n * - token ID and URI autogeneration\n *\n * This contract uses {AccessControl} to lock permissioned functions using the\n * different roles - head to its documentation for details.\n *\n * The account that deploys the contract will be granted the minter and pauser\n * roles, as well as the default admin role, which will let it grant both minter\n * and pauser roles to other accounts.\n */\ncontract ERC721PresetMinterPauserAutoId is Context, AccessControl, ERC721Burnable, ERC721Pausable {\n using Counters for Counters.Counter;\n\n bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n\n Counters.Counter private _tokenIdTracker;\n\n /**\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the\n * account that deploys the contract.\n *\n * Token URIs will be autogenerated based on `baseURI` and their token IDs.\n * See {ERC721-tokenURI}.\n */\n constructor(string memory name, string memory symbol, string memory baseURI) public ERC721(name, symbol) {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n\n _setupRole(MINTER_ROLE, _msgSender());\n _setupRole(PAUSER_ROLE, _msgSender());\n\n _setBaseURI(baseURI);\n }\n\n /**\n * @dev Creates a new token for `to`. Its token ID will be automatically\n * assigned (and available on the emitted {IERC721-Transfer} event), and the token\n * URI autogenerated based on the base URI passed at construction.\n *\n * See {ERC721-_mint}.\n *\n * Requirements:\n *\n * - the caller must have the `MINTER_ROLE`.\n */\n function mint(address to) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC721PresetMinterPauserAutoId: must have minter role to mint\");\n\n // We can just use balanceOf to create the new tokenId because tokens\n // can be burned (destroyed), so we need a separate counter.\n _mint(to, _tokenIdTracker.current());\n _tokenIdTracker.increment();\n }\n\n /**\n * @dev Pauses all token transfers.\n *\n * See {ERC721Pausable} and {Pausable-_pause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function pause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC721PresetMinterPauserAutoId: must have pauser role to pause\");\n _pause();\n }\n\n /**\n * @dev Unpauses all token transfers.\n *\n * See {ERC721Pausable} and {Pausable-_unpause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function unpause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC721PresetMinterPauserAutoId: must have pauser role to unpause\");\n _unpause();\n }\n\n function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Pausable) {\n super._beforeTokenTransfer(from, to, tokenId);\n }\n}\n","urls":[]},"contracts/token/ERC1155/ERC1155.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC1155.sol\";\nimport \"./IERC1155MetadataURI.sol\";\nimport \"./IERC1155Receiver.sol\";\nimport \"../../GSN/Context.sol\";\nimport \"../../introspection/ERC165.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.sol\";\n\n/**\n *\n * @dev Implementation of the basic standard multi-token.\n * See https://eips.ethereum.org/EIPS/eip-1155\n * Originally based on code by Enjin: https://github.com/enjin/erc-1155\n *\n * _Available since v3.1._\n */\ncontract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {\n using SafeMath for uint256;\n using Address for address;\n\n // Mapping from token ID to account balances\n mapping (uint256 => mapping(address => uint256)) private _balances;\n\n // Mapping from account to operator approvals\n mapping (address => mapping(address => bool)) private _operatorApprovals;\n\n // Used as the URI for all token types by relying on ID substition, e.g. https://token-cdn-domain/{id}.json\n string private _uri;\n\n /*\n * bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e\n * bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4\n * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465\n * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5\n * bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a\n * bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6\n *\n * => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^\n * 0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26\n */\n bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26;\n\n /*\n * bytes4(keccak256('uri(uint256)')) == 0x0e89341c\n */\n bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c;\n\n /**\n * @dev See {_setURI}.\n */\n constructor (string memory uri) public {\n _setURI(uri);\n\n // register the supported interfaces to conform to ERC1155 via ERC165\n _registerInterface(_INTERFACE_ID_ERC1155);\n\n // register the supported interfaces to conform to ERC1155MetadataURI via ERC165\n _registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI);\n }\n\n /**\n * @dev See {IERC1155MetadataURI-uri}.\n *\n * This implementation returns the same URI for *all* token types. It relies\n * on the token type ID substituion mechanism\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\n *\n * Clients calling this function must replace the `\\{id\\}` substring with the\n * actual token type ID.\n */\n function uri(uint256) external view override returns (string memory) {\n return _uri;\n }\n\n /**\n * @dev See {IERC1155-balanceOf}.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function balanceOf(address account, uint256 id) public view override returns (uint256) {\n require(account != address(0), \"ERC1155: balance query for the zero address\");\n return _balances[id][account];\n }\n\n /**\n * @dev See {IERC1155-balanceOfBatch}.\n *\n * Requirements:\n *\n * - `accounts` and `ids` must have the same length.\n */\n function balanceOfBatch(\n address[] memory accounts,\n uint256[] memory ids\n )\n public\n view\n override\n returns (uint256[] memory)\n {\n require(accounts.length == ids.length, \"ERC1155: accounts and ids length mismatch\");\n\n uint256[] memory batchBalances = new uint256[](accounts.length);\n\n for (uint256 i = 0; i < accounts.length; ++i) {\n require(accounts[i] != address(0), \"ERC1155: batch balance query for the zero address\");\n batchBalances[i] = _balances[ids[i]][accounts[i]];\n }\n\n return batchBalances;\n }\n\n /**\n * @dev See {IERC1155-setApprovalForAll}.\n */\n function setApprovalForAll(address operator, bool approved) public virtual override {\n require(_msgSender() != operator, \"ERC1155: setting approval status for self\");\n\n _operatorApprovals[_msgSender()][operator] = approved;\n emit ApprovalForAll(_msgSender(), operator, approved);\n }\n\n /**\n * @dev See {IERC1155-isApprovedForAll}.\n */\n function isApprovedForAll(address account, address operator) public view override returns (bool) {\n return _operatorApprovals[account][operator];\n }\n\n /**\n * @dev See {IERC1155-safeTransferFrom}.\n */\n function safeTransferFrom(\n address from,\n address to,\n uint256 id,\n uint256 amount,\n bytes memory data\n )\n public\n virtual\n override\n {\n require(to != address(0), \"ERC1155: transfer to the zero address\");\n require(\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\n \"ERC1155: caller is not owner nor approved\"\n );\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);\n\n _balances[id][from] = _balances[id][from].sub(amount, \"ERC1155: insufficient balance for transfer\");\n _balances[id][to] = _balances[id][to].add(amount);\n\n emit TransferSingle(operator, from, to, id, amount);\n\n _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);\n }\n\n /**\n * @dev See {IERC1155-safeBatchTransferFrom}.\n */\n function safeBatchTransferFrom(\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n public\n virtual\n override\n {\n require(ids.length == amounts.length, \"ERC1155: ids and amounts length mismatch\");\n require(to != address(0), \"ERC1155: transfer to the zero address\");\n require(\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\n \"ERC1155: transfer caller is not owner nor approved\"\n );\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, from, to, ids, amounts, data);\n\n for (uint256 i = 0; i < ids.length; ++i) {\n uint256 id = ids[i];\n uint256 amount = amounts[i];\n\n _balances[id][from] = _balances[id][from].sub(\n amount,\n \"ERC1155: insufficient balance for transfer\"\n );\n _balances[id][to] = _balances[id][to].add(amount);\n }\n\n emit TransferBatch(operator, from, to, ids, amounts);\n\n _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);\n }\n\n /**\n * @dev Sets a new URI for all token types, by relying on the token type ID\n * substituion mechanism\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\n *\n * By this mechanism, any occurence of the `\\{id\\}` substring in either the\n * URI or any of the amounts in the JSON file at said URI will be replaced by\n * clients with the token type ID.\n *\n * For example, the `https://token-cdn-domain/\\{id\\}.json` URI would be\n * interpreted by clients as\n * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`\n * for token type ID 0x4cce0.\n *\n * See {uri}.\n *\n * Because these URIs cannot be meaningfully represented by the {URI} event,\n * this function emits no events.\n */\n function _setURI(string memory newuri) internal virtual {\n _uri = newuri;\n }\n\n /**\n * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.\n *\n * Emits a {TransferSingle} event.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\n * acceptance magic value.\n */\n function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal virtual {\n require(account != address(0), \"ERC1155: mint to the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);\n\n _balances[id][account] = _balances[id][account].add(amount);\n emit TransferSingle(operator, address(0), account, id, amount);\n\n _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);\n }\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\n * acceptance magic value.\n */\n function _mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual {\n require(to != address(0), \"ERC1155: mint to the zero address\");\n require(ids.length == amounts.length, \"ERC1155: ids and amounts length mismatch\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);\n\n for (uint i = 0; i < ids.length; i++) {\n _balances[ids[i]][to] = amounts[i].add(_balances[ids[i]][to]);\n }\n\n emit TransferBatch(operator, address(0), to, ids, amounts);\n\n _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);\n }\n\n /**\n * @dev Destroys `amount` tokens of token type `id` from `account`\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens of token type `id`.\n */\n function _burn(address account, uint256 id, uint256 amount) internal virtual {\n require(account != address(0), \"ERC1155: burn from the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), \"\");\n\n _balances[id][account] = _balances[id][account].sub(\n amount,\n \"ERC1155: burn amount exceeds balance\"\n );\n\n emit TransferSingle(operator, account, address(0), id, amount);\n }\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n */\n function _burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) internal virtual {\n require(account != address(0), \"ERC1155: burn from the zero address\");\n require(ids.length == amounts.length, \"ERC1155: ids and amounts length mismatch\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, account, address(0), ids, amounts, \"\");\n\n for (uint i = 0; i < ids.length; i++) {\n _balances[ids[i]][account] = _balances[ids[i]][account].sub(\n amounts[i],\n \"ERC1155: burn amount exceeds balance\"\n );\n }\n\n emit TransferBatch(operator, account, address(0), ids, amounts);\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes minting\n * and burning, as well as batched variants.\n *\n * The same hook is called on both single and batched variants. For single\n * transfers, the length of the `id` and `amount` arrays will be 1.\n *\n * Calling conditions (for each `id` and `amount` pair):\n *\n * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * of token type `id` will be transferred to `to`.\n * - When `from` is zero, `amount` tokens of token type `id` will be minted\n * for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`\n * will be burned.\n * - `from` and `to` are never both zero.\n * - `ids` and `amounts` have the same, non-zero length.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n internal virtual\n { }\n\n function _doSafeTransferAcceptanceCheck(\n address operator,\n address from,\n address to,\n uint256 id,\n uint256 amount,\n bytes memory data\n )\n private\n {\n if (to.isContract()) {\n try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {\n if (response != IERC1155Receiver(to).onERC1155Received.selector) {\n revert(\"ERC1155: ERC1155Receiver rejected tokens\");\n }\n } catch Error(string memory reason) {\n revert(reason);\n } catch {\n revert(\"ERC1155: transfer to non ERC1155Receiver implementer\");\n }\n }\n }\n\n function _doSafeBatchTransferAcceptanceCheck(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n private\n {\n if (to.isContract()) {\n try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (bytes4 response) {\n if (response != IERC1155Receiver(to).onERC1155BatchReceived.selector) {\n revert(\"ERC1155: ERC1155Receiver rejected tokens\");\n }\n } catch Error(string memory reason) {\n revert(reason);\n } catch {\n revert(\"ERC1155: transfer to non ERC1155Receiver implementer\");\n }\n }\n }\n\n function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {\n uint256[] memory array = new uint256[](1);\n array[0] = element;\n\n return array;\n }\n}\n","urls":[]},"contracts/token/ERC1155/ERC1155Burnable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC1155.sol\";\n\n/**\n * @dev Extension of {ERC1155} that allows token holders to destroy both their\n * own tokens and those that they have been approved to use.\n *\n * _Available since v3.1._\n */\nabstract contract ERC1155Burnable is ERC1155 {\n function burn(address account, uint256 id, uint256 value) public virtual {\n require(\n account == _msgSender() || isApprovedForAll(account, _msgSender()),\n \"ERC1155: caller is not owner nor approved\"\n );\n\n _burn(account, id, value);\n }\n\n function burnBatch(address account, uint256[] memory ids, uint256[] memory values) public virtual {\n require(\n account == _msgSender() || isApprovedForAll(account, _msgSender()),\n \"ERC1155: caller is not owner nor approved\"\n );\n\n _burnBatch(account, ids, values);\n }\n}\n","urls":[]},"contracts/token/ERC1155/ERC1155Holder.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC1155Receiver.sol\";\n\n/**\n * @dev _Available since v3.1._\n */\ncontract ERC1155Holder is ERC1155Receiver {\n function onERC1155Received(address, address, uint256, uint256, bytes memory) public virtual override returns (bytes4) {\n return this.onERC1155Received.selector;\n }\n\n function onERC1155BatchReceived(address, address, uint256[] memory, uint256[] memory, bytes memory) public virtual override returns (bytes4) {\n return this.onERC1155BatchReceived.selector;\n }\n}\n","urls":[]},"contracts/token/ERC1155/ERC1155Pausable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC1155.sol\";\nimport \"../../utils/Pausable.sol\";\n\n/**\n * @dev ERC1155 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 *\n * _Available since v3.1._\n */\nabstract contract ERC1155Pausable is ERC1155, Pausable {\n /**\n * @dev See {ERC1155-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(\n address operator,\n address from,\n address to,\n uint256[] memory ids,\n uint256[] memory amounts,\n bytes memory data\n )\n internal virtual override\n {\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\n\n require(!paused(), \"ERC1155Pausable: token transfer while paused\");\n }\n}\n","urls":[]},"contracts/token/ERC1155/ERC1155Receiver.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC1155Receiver.sol\";\nimport \"../../introspection/ERC165.sol\";\n\n/**\n * @dev _Available since v3.1._\n */\nabstract contract ERC1155Receiver is ERC165, IERC1155Receiver {\n constructor() public {\n _registerInterface(\n ERC1155Receiver(0).onERC1155Received.selector ^\n ERC1155Receiver(0).onERC1155BatchReceived.selector\n );\n }\n}\n","urls":[]},"contracts/token/ERC1155/IERC1155.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"../../introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC1155 compliant contract, as defined in the\n * https://eips.ethereum.org/EIPS/eip-1155[EIP].\n *\n * _Available since v3.1._\n */\ninterface IERC1155 is IERC165 {\n /**\n * @dev Emitted when `value` tokens of token type `id` are transfered from `from` to `to` by `operator`.\n */\n event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);\n\n /**\n * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all\n * transfers.\n */\n event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);\n\n /**\n * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to\n * `approved`.\n */\n event ApprovalForAll(address indexed account, address indexed operator, bool approved);\n\n /**\n * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.\n *\n * If an {URI} event was emitted for `id`, the standard\n * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value\n * returned by {IERC1155MetadataURI-uri}.\n */\n event URI(string value, uint256 indexed id);\n\n /**\n * @dev Returns the amount of tokens of token type `id` owned by `account`.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function balanceOf(address account, uint256 id) external view returns (uint256);\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.\n *\n * Requirements:\n *\n * - `accounts` and `ids` must have the same length.\n */\n function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);\n\n /**\n * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,\n *\n * Emits an {ApprovalForAll} event.\n *\n * Requirements:\n *\n * - `operator` cannot be the caller.\n */\n function setApprovalForAll(address operator, bool approved) external;\n\n /**\n * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.\n *\n * See {setApprovalForAll}.\n */\n function isApprovedForAll(address account, address operator) external view returns (bool);\n\n /**\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\n *\n * Emits a {TransferSingle} event.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\n * acceptance magic value.\n */\n function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;\n\n /**\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.\n *\n * Emits a {TransferBatch} event.\n *\n * Requirements:\n *\n * - `ids` and `amounts` must have the same length.\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\n * acceptance magic value.\n */\n function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;\n}\n","urls":[]},"contracts/token/ERC1155/IERC1155MetadataURI.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"./IERC1155.sol\";\n\n/**\n * @dev Interface of the optional ERC1155MetadataExtension interface, as defined\n * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].\n *\n * _Available since v3.1._\n */\ninterface IERC1155MetadataURI is IERC1155 {\n /**\n * @dev Returns the URI for token type `id`.\n *\n * If the `\\{id\\}` substring is present in the URI, it must be replaced by\n * clients with the actual token type ID.\n */\n function uri(uint256 id) external view returns (string memory);\n}\n","urls":[]},"contracts/token/ERC1155/IERC1155Receiver.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../introspection/IERC165.sol\";\n\n/**\n * _Available since v3.1._\n */\ninterface IERC1155Receiver is IERC165 {\n\n /**\n @dev Handles the receipt of a single ERC1155 token type. This function is\n called at the end of a `safeTransferFrom` after the balance has been updated.\n To accept the transfer, this must return\n `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))`\n (i.e. 0xf23a6e61, or its own function selector).\n @param operator The address which initiated the transfer (i.e. msg.sender)\n @param from The address which previously owned the token\n @param id The ID of the token being transferred\n @param value The amount of tokens being transferred\n @param data Additional data with no specified format\n @return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed\n */\n function onERC1155Received(\n address operator,\n address from,\n uint256 id,\n uint256 value,\n bytes calldata data\n )\n external\n returns(bytes4);\n\n /**\n @dev Handles the receipt of a multiple ERC1155 token types. This function\n is called at the end of a `safeBatchTransferFrom` after the balances have\n been updated. To accept the transfer(s), this must return\n `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))`\n (i.e. 0xbc197c81, or its own function selector).\n @param operator The address which initiated the batch transfer (i.e. msg.sender)\n @param from The address which previously owned the token\n @param ids An array containing ids of each token being transferred (order and length must match values array)\n @param values An array containing amounts of each token being transferred (order and length must match ids array)\n @param data Additional data with no specified format\n @return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed\n */\n function onERC1155BatchReceived(\n address operator,\n address from,\n uint256[] calldata ids,\n uint256[] calldata values,\n bytes calldata data\n )\n external\n returns(bytes4);\n}\n","urls":[]},"contracts/token/ERC20/ERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./IERC20.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * We have followed general OpenZeppelin guidelines: functions revert instead\n * of returning `false` on failure. This behavior is nonetheless conventional\n * and does not conflict with the expectations of ERC20 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 ERC20 is Context, IERC20 {\n using SafeMath for uint256;\n using Address for address;\n\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 uint8 private _decimals;\n\n /**\n * @dev Sets the values for {name} and {symbol}, initializes {decimals} with\n * a default value of 18.\n *\n * To select a different value for {decimals}, use {_setupDecimals}.\n *\n * All three of these values are immutable: they can only be set once during\n * construction.\n */\n constructor (string memory name, string memory symbol) public {\n _name = name;\n _symbol = symbol;\n _decimals = 18;\n }\n\n /**\n * @dev Returns the name of the token.\n */\n function name() public view 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 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 {_setupDecimals} is\n * called.\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 returns (uint8) {\n return _decimals;\n }\n\n /**\n * @dev See {IERC20-totalSupply}.\n */\n function totalSupply() public view override returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev See {IERC20-balanceOf}.\n */\n function balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Requirements:\n *\n * - `recipient` cannot be the zero address.\n * - the caller must have a balance of at least `amount`.\n */\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, 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 * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\n _approve(_msgSender(), 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 * Requirements:\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(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\n _transfer(sender, recipient, amount);\n _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, \"ERC20: transfer amount exceeds allowance\"));\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 _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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 _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, \"ERC20: decreased allowance below zero\"));\n return true;\n }\n\n /**\n * @dev Moves tokens `amount` from `sender` to `recipient`.\n *\n * This is 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 * - `sender` cannot be the zero address.\n * - `recipient` cannot be the zero address.\n * - `sender` must have a balance of at least `amount`.\n */\n function _transfer(address sender, address recipient, uint256 amount) internal virtual {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(sender, recipient, amount);\n\n _balances[sender] = _balances[sender].sub(amount, \"ERC20: transfer amount exceeds balance\");\n _balances[recipient] = _balances[recipient].add(amount);\n emit Transfer(sender, recipient, 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 * - `to` 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 = _totalSupply.add(amount);\n _balances[account] = _balances[account].add(amount);\n emit Transfer(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 _balances[account] = _balances[account].sub(amount, \"ERC20: burn amount exceeds balance\");\n _totalSupply = _totalSupply.sub(amount);\n emit Transfer(account, address(0), amount);\n }\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.\n *\n * This is 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(address owner, address spender, uint256 amount) 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 Sets {decimals} to a value other than the default one of 18.\n *\n * WARNING: This function should only be called from the constructor. Most\n * applications that interact with token contracts will not expect\n * {decimals} to ever change, and may work incorrectly if it does.\n */\n function _setupDecimals(uint8 decimals_) internal {\n _decimals = decimals_;\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 to 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(address from, address to, uint256 amount) internal virtual { }\n}\n","urls":[]},"contracts/token/ERC20/ERC20Burnable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./ERC20.sol\";\n\n/**\n * @dev Extension of {ERC20} that allows token holders to destroy both their own\n * tokens and those that they have an allowance for, in a way that can be\n * recognized off-chain (via event analysis).\n */\nabstract contract ERC20Burnable is Context, ERC20 {\n /**\n * @dev Destroys `amount` tokens from the caller.\n *\n * See {ERC20-_burn}.\n */\n function burn(uint256 amount) public virtual {\n _burn(_msgSender(), amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`, deducting from the caller's\n * allowance.\n *\n * See {ERC20-_burn} and {ERC20-allowance}.\n *\n * Requirements:\n *\n * - the caller must have allowance for ``accounts``'s tokens of at least\n * `amount`.\n */\n function burnFrom(address account, uint256 amount) public virtual {\n uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, \"ERC20: burn amount exceeds allowance\");\n\n _approve(account, _msgSender(), decreasedAllowance);\n _burn(account, amount);\n }\n}\n","urls":[]},"contracts/token/ERC20/ERC20Capped.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC20.sol\";\n\n/**\n * @dev Extension of {ERC20} that adds a cap to the supply of tokens.\n */\nabstract contract ERC20Capped is ERC20 {\n uint256 private _cap;\n\n /**\n * @dev Sets the value of the `cap`. This value is immutable, it can only be\n * set once during construction.\n */\n constructor (uint256 cap) public {\n require(cap > 0, \"ERC20Capped: cap is 0\");\n _cap = cap;\n }\n\n /**\n * @dev Returns the cap on the token's total supply.\n */\n function cap() public view returns (uint256) {\n return _cap;\n }\n\n /**\n * @dev See {ERC20-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - minted tokens must not cause the total supply to go over the cap.\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\n super._beforeTokenTransfer(from, to, amount);\n\n if (from == address(0)) { // When minting tokens\n require(totalSupply().add(amount) <= _cap, \"ERC20Capped: cap exceeded\");\n }\n }\n}\n","urls":[]},"contracts/token/ERC20/ERC20Pausable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC20.sol\";\nimport \"../../utils/Pausable.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 ERC20Pausable is ERC20, Pausable {\n /**\n * @dev See {ERC20-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\n super._beforeTokenTransfer(from, to, amount);\n\n require(!paused(), \"ERC20Pausable: token transfer while paused\");\n }\n}\n","urls":[]},"contracts/token/ERC20/ERC20Snapshot.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Arrays.sol\";\nimport \"../../utils/Counters.sol\";\nimport \"./ERC20.sol\";\n\n/**\n * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and\n * total supply at the time are recorded for later access.\n *\n * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting.\n * In naive implementations it's possible to perform a \"double spend\" attack by reusing the same balance from different\n * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be\n * used to create an efficient ERC20 forking mechanism.\n *\n * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a\n * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot\n * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id\n * and the account address.\n *\n * ==== Gas Costs\n *\n * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log\n * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much\n * smaller since identical balances in subsequent snapshots are stored as a single entry.\n *\n * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is\n * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent\n * transfers will have normal cost until the next snapshot, and so on.\n */\nabstract contract ERC20Snapshot is ERC20 {\n // Inspired by Jordi Baylina's MiniMeToken to record historical balances:\n // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol\n\n using SafeMath for uint256;\n using Arrays for uint256[];\n using Counters for Counters.Counter;\n\n // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a\n // Snapshot struct, but that would impede usage of functions that work on an array.\n struct Snapshots {\n uint256[] ids;\n uint256[] values;\n }\n\n mapping (address => Snapshots) private _accountBalanceSnapshots;\n Snapshots private _totalSupplySnapshots;\n\n // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid.\n Counters.Counter private _currentSnapshotId;\n\n /**\n * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created.\n */\n event Snapshot(uint256 id);\n\n /**\n * @dev Creates a new snapshot and returns its snapshot id.\n *\n * Emits a {Snapshot} event that contains the same id.\n *\n * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a\n * set of accounts, for example using {AccessControl}, or it may be open to the public.\n *\n * [WARNING]\n * ====\n * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking,\n * you must consider that it can potentially be used by attackers in two ways.\n *\n * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow\n * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target\n * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs\n * section above.\n *\n * We haven't measured the actual numbers; if this is something you're interested in please reach out to us.\n * ====\n */\n function _snapshot() internal virtual returns (uint256) {\n _currentSnapshotId.increment();\n\n uint256 currentId = _currentSnapshotId.current();\n emit Snapshot(currentId);\n return currentId;\n }\n\n /**\n * @dev Retrieves the balance of `account` at the time `snapshotId` was created.\n */\n function balanceOfAt(address account, uint256 snapshotId) public view returns (uint256) {\n (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]);\n\n return snapshotted ? value : balanceOf(account);\n }\n\n /**\n * @dev Retrieves the total supply at the time `snapshotId` was created.\n */\n function totalSupplyAt(uint256 snapshotId) public view returns(uint256) {\n (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots);\n\n return snapshotted ? value : totalSupply();\n }\n\n // _transfer, _mint and _burn are the only functions where the balances are modified, so it is there that the\n // snapshots are updated. Note that the update happens _before_ the balance change, with the pre-modified value.\n // The same is true for the total supply and _mint and _burn.\n function _transfer(address from, address to, uint256 value) internal virtual override {\n _updateAccountSnapshot(from);\n _updateAccountSnapshot(to);\n\n super._transfer(from, to, value);\n }\n\n function _mint(address account, uint256 value) internal virtual override {\n _updateAccountSnapshot(account);\n _updateTotalSupplySnapshot();\n\n super._mint(account, value);\n }\n\n function _burn(address account, uint256 value) internal virtual override {\n _updateAccountSnapshot(account);\n _updateTotalSupplySnapshot();\n\n super._burn(account, value);\n }\n\n function _valueAt(uint256 snapshotId, Snapshots storage snapshots)\n private view returns (bool, uint256)\n {\n require(snapshotId > 0, \"ERC20Snapshot: id is 0\");\n // solhint-disable-next-line max-line-length\n require(snapshotId <= _currentSnapshotId.current(), \"ERC20Snapshot: nonexistent id\");\n\n // When a valid snapshot is queried, there are three possibilities:\n // a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never\n // created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds\n // to this id is the current one.\n // b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the\n // requested id, and its value is the one to return.\n // c) More snapshots were created after the requested one, and the queried value was later modified. There will be\n // no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is\n // larger than the requested one.\n //\n // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if\n // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does\n // exactly this.\n\n uint256 index = snapshots.ids.findUpperBound(snapshotId);\n\n if (index == snapshots.ids.length) {\n return (false, 0);\n } else {\n return (true, snapshots.values[index]);\n }\n }\n\n function _updateAccountSnapshot(address account) private {\n _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account));\n }\n\n function _updateTotalSupplySnapshot() private {\n _updateSnapshot(_totalSupplySnapshots, totalSupply());\n }\n\n function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private {\n uint256 currentId = _currentSnapshotId.current();\n if (_lastSnapshotId(snapshots.ids) < currentId) {\n snapshots.ids.push(currentId);\n snapshots.values.push(currentValue);\n }\n }\n\n function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) {\n if (ids.length == 0) {\n return 0;\n } else {\n return ids[ids.length - 1];\n }\n }\n}\n","urls":[]},"contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\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 `recipient`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address recipient, 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 `sender` to `recipient` 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(address sender, address recipient, uint256 amount) external returns (bool);\n\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","urls":[]},"contracts/token/ERC20/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC20.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n using SafeMath for uint256;\n using Address for address;\n\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n }\n\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n }\n\n /**\n * @dev Deprecated. This function has issues similar to the ones found in\n * {IERC20-approve}, and its usage is discouraged.\n *\n * Whenever possible, use {safeIncreaseAllowance} and\n * {safeDecreaseAllowance} instead.\n */\n function safeApprove(IERC20 token, address spender, uint256 value) internal {\n // safeApprove should only be called when setting an initial allowance,\n // or when resetting it to zero. To increase and decrease it, use\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n // solhint-disable-next-line max-line-length\n require((value == 0) || (token.allowance(address(this), spender) == 0),\n \"SafeERC20: approve from non-zero to non-zero allowance\"\n );\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n }\n\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 newAllowance = token.allowance(address(this), spender).add(value);\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 newAllowance = token.allowance(address(this), spender).sub(value, \"SafeERC20: decreased allowance below zero\");\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\n // the target address contains contract code and also asserts for success in the low-level call.\n\n bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n if (returndata.length > 0) { // Return data is optional\n // solhint-disable-next-line max-line-length\n require(abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n }\n }\n}\n","urls":[]},"contracts/token/ERC20/TokenTimelock.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./SafeERC20.sol\";\n\n/**\n * @dev A token holder contract that will allow a beneficiary to extract the\n * tokens after a given release time.\n *\n * Useful for simple vesting schedules like \"advisors get all of their tokens\n * after 1 year\".\n */\ncontract TokenTimelock {\n using SafeERC20 for IERC20;\n\n // ERC20 basic token contract being held\n IERC20 private _token;\n\n // beneficiary of tokens after they are released\n address private _beneficiary;\n\n // timestamp when token release is enabled\n uint256 private _releaseTime;\n\n constructor (IERC20 token, address beneficiary, uint256 releaseTime) public {\n // solhint-disable-next-line not-rely-on-time\n require(releaseTime > block.timestamp, \"TokenTimelock: release time is before current time\");\n _token = token;\n _beneficiary = beneficiary;\n _releaseTime = releaseTime;\n }\n\n /**\n * @return the token being held.\n */\n function token() public view returns (IERC20) {\n return _token;\n }\n\n /**\n * @return the beneficiary of the tokens.\n */\n function beneficiary() public view returns (address) {\n return _beneficiary;\n }\n\n /**\n * @return the time when the tokens are released.\n */\n function releaseTime() public view returns (uint256) {\n return _releaseTime;\n }\n\n /**\n * @notice Transfers tokens held by timelock to beneficiary.\n */\n function release() public virtual {\n // solhint-disable-next-line not-rely-on-time\n require(block.timestamp >= _releaseTime, \"TokenTimelock: current time is before release time\");\n\n uint256 amount = _token.balanceOf(address(this));\n require(amount > 0, \"TokenTimelock: no tokens to release\");\n\n _token.safeTransfer(_beneficiary, amount);\n }\n}\n","urls":[]},"contracts/token/ERC721/ERC721.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./IERC721.sol\";\nimport \"./IERC721Metadata.sol\";\nimport \"./IERC721Enumerable.sol\";\nimport \"./IERC721Receiver.sol\";\nimport \"../../introspection/ERC165.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.sol\";\nimport \"../../utils/EnumerableSet.sol\";\nimport \"../../utils/EnumerableMap.sol\";\nimport \"../../utils/Strings.sol\";\n\n/**\n * @title ERC721 Non-Fungible Token Standard basic implementation\n * @dev see https://eips.ethereum.org/EIPS/eip-721\n */\ncontract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {\n using SafeMath for uint256;\n using Address for address;\n using EnumerableSet for EnumerableSet.UintSet;\n using EnumerableMap for EnumerableMap.UintToAddressMap;\n using Strings for uint256;\n\n // Equals to `bytes4(keccak256(\"onERC721Received(address,address,uint256,bytes)\"))`\n // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`\n bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;\n\n // Mapping from holder address to their (enumerable) set of owned tokens\n mapping (address => EnumerableSet.UintSet) private _holderTokens;\n\n // Enumerable mapping from token ids to their owners\n EnumerableMap.UintToAddressMap private _tokenOwners;\n\n // Mapping from token ID to approved address\n mapping (uint256 => address) private _tokenApprovals;\n\n // Mapping from owner to operator approvals\n mapping (address => mapping (address => bool)) private _operatorApprovals;\n\n // Token name\n string private _name;\n\n // Token symbol\n string private _symbol;\n\n // Optional mapping for token URIs\n mapping(uint256 => string) private _tokenURIs;\n\n // Base URI\n string private _baseURI;\n\n /*\n * bytes4(keccak256('balanceOf(address)')) == 0x70a08231\n * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e\n * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3\n * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc\n * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465\n * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5\n * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd\n * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e\n * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde\n *\n * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^\n * 0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd\n */\n bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;\n\n /*\n * bytes4(keccak256('name()')) == 0x06fdde03\n * bytes4(keccak256('symbol()')) == 0x95d89b41\n * bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd\n *\n * => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f\n */\n bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;\n\n /*\n * bytes4(keccak256('totalSupply()')) == 0x18160ddd\n * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59\n * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7\n *\n * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63\n */\n bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;\n\n /**\n * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.\n */\n constructor (string memory name, string memory symbol) public {\n _name = name;\n _symbol = symbol;\n\n // register the supported interfaces to conform to ERC721 via ERC165\n _registerInterface(_INTERFACE_ID_ERC721);\n _registerInterface(_INTERFACE_ID_ERC721_METADATA);\n _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);\n }\n\n /**\n * @dev See {IERC721-balanceOf}.\n */\n function balanceOf(address owner) public view override returns (uint256) {\n require(owner != address(0), \"ERC721: balance query for the zero address\");\n\n return _holderTokens[owner].length();\n }\n\n /**\n * @dev See {IERC721-ownerOf}.\n */\n function ownerOf(uint256 tokenId) public view override returns (address) {\n return _tokenOwners.get(tokenId, \"ERC721: owner query for nonexistent token\");\n }\n\n /**\n * @dev See {IERC721Metadata-name}.\n */\n function name() public view override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev See {IERC721Metadata-symbol}.\n */\n function symbol() public view override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev See {IERC721Metadata-tokenURI}.\n */\n function tokenURI(uint256 tokenId) public view override returns (string memory) {\n require(_exists(tokenId), \"ERC721Metadata: URI query for nonexistent token\");\n\n string memory _tokenURI = _tokenURIs[tokenId];\n\n // If there is no base URI, return the token URI.\n if (bytes(_baseURI).length == 0) {\n return _tokenURI;\n }\n // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).\n if (bytes(_tokenURI).length > 0) {\n return string(abi.encodePacked(_baseURI, _tokenURI));\n }\n // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.\n return string(abi.encodePacked(_baseURI, tokenId.toString()));\n }\n\n /**\n * @dev Returns the base URI set via {_setBaseURI}. This will be\n * automatically added as a prefix in {tokenURI} to each token's URI, or\n * to the token ID if no specific URI is set for that token ID.\n */\n function baseURI() public view returns (string memory) {\n return _baseURI;\n }\n\n /**\n * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.\n */\n function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {\n return _holderTokens[owner].at(index);\n }\n\n /**\n * @dev See {IERC721Enumerable-totalSupply}.\n */\n function totalSupply() public view override returns (uint256) {\n // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds\n return _tokenOwners.length();\n }\n\n /**\n * @dev See {IERC721Enumerable-tokenByIndex}.\n */\n function tokenByIndex(uint256 index) public view override returns (uint256) {\n (uint256 tokenId, ) = _tokenOwners.at(index);\n return tokenId;\n }\n\n /**\n * @dev See {IERC721-approve}.\n */\n function approve(address to, uint256 tokenId) public virtual override {\n address owner = ownerOf(tokenId);\n require(to != owner, \"ERC721: approval to current owner\");\n\n require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()),\n \"ERC721: approve caller is not owner nor approved for all\"\n );\n\n _approve(to, tokenId);\n }\n\n /**\n * @dev See {IERC721-getApproved}.\n */\n function getApproved(uint256 tokenId) public view override returns (address) {\n require(_exists(tokenId), \"ERC721: approved query for nonexistent token\");\n\n return _tokenApprovals[tokenId];\n }\n\n /**\n * @dev See {IERC721-setApprovalForAll}.\n */\n function setApprovalForAll(address operator, bool approved) public virtual override {\n require(operator != _msgSender(), \"ERC721: approve to caller\");\n\n _operatorApprovals[_msgSender()][operator] = approved;\n emit ApprovalForAll(_msgSender(), operator, approved);\n }\n\n /**\n * @dev See {IERC721-isApprovedForAll}.\n */\n function isApprovedForAll(address owner, address operator) public view override returns (bool) {\n return _operatorApprovals[owner][operator];\n }\n\n /**\n * @dev See {IERC721-transferFrom}.\n */\n function transferFrom(address from, address to, uint256 tokenId) public virtual override {\n //solhint-disable-next-line max-line-length\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721: transfer caller is not owner nor approved\");\n\n _transfer(from, to, tokenId);\n }\n\n /**\n * @dev See {IERC721-safeTransferFrom}.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {\n safeTransferFrom(from, to, tokenId, \"\");\n }\n\n /**\n * @dev See {IERC721-safeTransferFrom}.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721: transfer caller is not owner nor approved\");\n _safeTransfer(from, to, tokenId, _data);\n }\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * `_data` is additional data, it has no specified format and it is sent in call to `to`.\n *\n * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.\n * implement alternative mecanisms to perform token transfer, such as signature-based.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {\n _transfer(from, to, tokenId);\n require(_checkOnERC721Received(from, to, tokenId, _data), \"ERC721: transfer to non ERC721Receiver implementer\");\n }\n\n /**\n * @dev Returns whether `tokenId` exists.\n *\n * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.\n *\n * Tokens start existing when they are minted (`_mint`),\n * and stop existing when they are burned (`_burn`).\n */\n function _exists(uint256 tokenId) internal view returns (bool) {\n return _tokenOwners.contains(tokenId);\n }\n\n /**\n * @dev Returns whether `spender` is allowed to manage `tokenId`.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {\n require(_exists(tokenId), \"ERC721: operator query for nonexistent token\");\n address owner = ownerOf(tokenId);\n return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));\n }\n\n /**\n * @dev Safely mints `tokenId` and transfers it to `to`.\n *\n * Requirements:\n d*\n * - `tokenId` must not exist.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function _safeMint(address to, uint256 tokenId) internal virtual {\n _safeMint(to, tokenId, \"\");\n }\n\n /**\n * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is\n * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n */\n function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {\n _mint(to, tokenId);\n require(_checkOnERC721Received(address(0), to, tokenId, _data), \"ERC721: transfer to non ERC721Receiver implementer\");\n }\n\n /**\n * @dev Mints `tokenId` and transfers it to `to`.\n *\n * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible\n *\n * Requirements:\n *\n * - `tokenId` must not exist.\n * - `to` cannot be the zero address.\n *\n * Emits a {Transfer} event.\n */\n function _mint(address to, uint256 tokenId) internal virtual {\n require(to != address(0), \"ERC721: mint to the zero address\");\n require(!_exists(tokenId), \"ERC721: token already minted\");\n\n _beforeTokenTransfer(address(0), to, tokenId);\n\n _holderTokens[to].add(tokenId);\n\n _tokenOwners.set(tokenId, to);\n\n emit Transfer(address(0), to, tokenId);\n }\n\n /**\n * @dev Destroys `tokenId`.\n * The approval is cleared when the token is burned.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n *\n * Emits a {Transfer} event.\n */\n function _burn(uint256 tokenId) internal virtual {\n address owner = ownerOf(tokenId);\n\n _beforeTokenTransfer(owner, address(0), tokenId);\n\n // Clear approvals\n _approve(address(0), tokenId);\n\n // Clear metadata (if any)\n if (bytes(_tokenURIs[tokenId]).length != 0) {\n delete _tokenURIs[tokenId];\n }\n\n _holderTokens[owner].remove(tokenId);\n\n _tokenOwners.remove(tokenId);\n\n emit Transfer(owner, address(0), tokenId);\n }\n\n /**\n * @dev Transfers `tokenId` from `from` to `to`.\n * As opposed to {transferFrom}, this imposes no restrictions on msg.sender.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n *\n * Emits a {Transfer} event.\n */\n function _transfer(address from, address to, uint256 tokenId) internal virtual {\n require(ownerOf(tokenId) == from, \"ERC721: transfer of token that is not own\");\n require(to != address(0), \"ERC721: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, tokenId);\n\n // Clear approvals from the previous owner\n _approve(address(0), tokenId);\n\n _holderTokens[from].remove(tokenId);\n _holderTokens[to].add(tokenId);\n\n _tokenOwners.set(tokenId, to);\n\n emit Transfer(from, to, tokenId);\n }\n\n /**\n * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {\n require(_exists(tokenId), \"ERC721Metadata: URI set of nonexistent token\");\n _tokenURIs[tokenId] = _tokenURI;\n }\n\n /**\n * @dev Internal function to set the base URI for all token IDs. It is\n * automatically added as a prefix to the value returned in {tokenURI},\n * or to the token ID if {tokenURI} is empty.\n */\n function _setBaseURI(string memory baseURI_) internal virtual {\n _baseURI = baseURI_;\n }\n\n /**\n * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.\n * The call is not executed if the target address is not a contract.\n *\n * @param from address representing the previous owner of the given token ID\n * @param to target address that will receive the tokens\n * @param tokenId uint256 ID of the token to be transferred\n * @param _data bytes optional data to send along with the call\n * @return bool whether the call correctly returned the expected magic value\n */\n function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)\n private returns (bool)\n {\n if (!to.isContract()) {\n return true;\n }\n bytes memory returndata = to.functionCall(abi.encodeWithSelector(\n IERC721Receiver(to).onERC721Received.selector,\n _msgSender(),\n from,\n tokenId,\n _data\n ), \"ERC721: transfer to non ERC721Receiver implementer\");\n bytes4 retval = abi.decode(returndata, (bytes4));\n return (retval == _ERC721_RECEIVED);\n }\n\n function _approve(address to, uint256 tokenId) private {\n _tokenApprovals[tokenId] = to;\n emit Approval(ownerOf(tokenId), to, tokenId);\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes minting\n * and burning.\n *\n * Calling conditions:\n *\n * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be\n * transferred to `to`.\n * - When `from` is zero, `tokenId` will be minted for `to`.\n * - When `to` is zero, ``from``'s `tokenId` will be burned.\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }\n}\n","urls":[]},"contracts/token/ERC721/ERC721Burnable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./ERC721.sol\";\n\n/**\n * @title ERC721 Burnable Token\n * @dev ERC721 Token that can be irreversibly burned (destroyed).\n */\nabstract contract ERC721Burnable is Context, ERC721 {\n /**\n * @dev Burns `tokenId`. See {ERC721-_burn}.\n *\n * Requirements:\n *\n * - The caller must own `tokenId` or be an approved operator.\n */\n function burn(uint256 tokenId) public virtual {\n //solhint-disable-next-line max-line-length\n require(_isApprovedOrOwner(_msgSender(), tokenId), \"ERC721Burnable: caller is not owner nor approved\");\n _burn(tokenId);\n }\n}\n","urls":[]},"contracts/token/ERC721/ERC721Holder.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./IERC721Receiver.sol\";\n\n /**\n * @dev Implementation of the {IERC721Receiver} interface.\n *\n * Accepts all token transfers. \n * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.\n */\ncontract ERC721Holder is IERC721Receiver {\n\n /**\n * @dev See {IERC721Receiver-onERC721Received}.\n *\n * Always returns `IERC721Receiver.onERC721Received.selector`.\n */\n function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) {\n return this.onERC721Received.selector;\n }\n}\n","urls":[]},"contracts/token/ERC721/ERC721Pausable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"./ERC721.sol\";\nimport \"../../utils/Pausable.sol\";\n\n/**\n * @dev ERC721 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 ERC721Pausable is ERC721, Pausable {\n /**\n * @dev See {ERC721-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {\n super._beforeTokenTransfer(from, to, tokenId);\n\n require(!paused(), \"ERC721Pausable: token transfer while paused\");\n }\n}\n","urls":[]},"contracts/token/ERC721/IERC721.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"../../introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC721 compliant contract.\n */\ninterface IERC721 is IERC165 {\n /**\n * @dev Emitted when `tokenId` token is transfered from `from` to `to`.\n */\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n */\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n */\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n /**\n * @dev Returns the number of tokens in ``owner``'s account.\n */\n function balanceOf(address owner) external view returns (uint256 balance);\n\n /**\n * @dev Returns the owner of the `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function ownerOf(uint256 tokenId) external view returns (address owner);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId) external;\n\n /**\n * @dev Transfers `tokenId` token from `from` to `to`.\n *\n * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address from, address to, uint256 tokenId) external;\n\n /**\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n * The approval is cleared when the token is transferred.\n *\n * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n *\n * Requirements:\n *\n * - The caller must own the token or be an approved operator.\n * - `tokenId` must exist.\n *\n * Emits an {Approval} event.\n */\n function approve(address to, uint256 tokenId) external;\n\n /**\n * @dev Returns the account approved for `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function getApproved(uint256 tokenId) external view returns (address operator);\n\n /**\n * @dev Approve or remove `operator` as an operator for the caller.\n * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n *\n * Requirements:\n *\n * - The `operator` cannot be the caller.\n *\n * Emits an {ApprovalForAll} event.\n */\n function setApprovalForAll(address operator, bool _approved) external;\n\n /**\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n *\n * See {setApprovalForAll}\n */\n function isApprovedForAll(address owner, address operator) external view returns (bool);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;\n}\n","urls":[]},"contracts/token/ERC721/IERC721Enumerable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"./IERC721.sol\";\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721Enumerable is IERC721 {\n\n /**\n * @dev Returns the total amount of tokens stored by the contract.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns a token ID owned by `owner` at a given `index` of its token list.\n * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.\n */\n function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);\n\n /**\n * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.\n * Use along with {totalSupply} to enumerate all tokens.\n */\n function tokenByIndex(uint256 index) external view returns (uint256);\n}\n","urls":[]},"contracts/token/ERC721/IERC721Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\nimport \"./IERC721.sol\";\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional metadata extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721Metadata is IERC721 {\n\n /**\n * @dev Returns the token collection name.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the token collection symbol.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.\n */\n function tokenURI(uint256 tokenId) external view returns (string memory);\n}\n","urls":[]},"contracts/token/ERC721/IERC721Receiver.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @title ERC721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC721 asset contracts.\n */\ninterface IERC721Receiver {\n /**\n * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n * by `operator` from `from`, this function is called.\n *\n * It must return its Solidity selector to confirm the token transfer.\n * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\n *\n * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.\n */\n function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data)\n external returns (bytes4);\n}\n","urls":[]},"contracts/token/ERC777/ERC777.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../../GSN/Context.sol\";\nimport \"./IERC777.sol\";\nimport \"./IERC777Recipient.sol\";\nimport \"./IERC777Sender.sol\";\nimport \"../../token/ERC20/IERC20.sol\";\nimport \"../../math/SafeMath.sol\";\nimport \"../../utils/Address.sol\";\nimport \"../../introspection/IERC1820Registry.sol\";\n\n/**\n * @dev Implementation of the {IERC777} 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 *\n * Support for ERC20 is included in this contract, as specified by the EIP: both\n * the ERC777 and ERC20 interfaces can be safely used when interacting with it.\n * Both {IERC777-Sent} and {IERC20-Transfer} events are emitted on token\n * movements.\n *\n * Additionally, the {IERC777-granularity} value is hard-coded to `1`, meaning that there\n * are no special restrictions in the amount of tokens that created, moved, or\n * destroyed. This makes integration with ERC20 applications seamless.\n */\ncontract ERC777 is Context, IERC777, IERC20 {\n using SafeMath for uint256;\n using Address for address;\n\n IERC1820Registry constant internal _ERC1820_REGISTRY = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);\n\n mapping(address => uint256) private _balances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n\n // We inline the result of the following hashes because Solidity doesn't resolve them at compile time.\n // See https://github.com/ethereum/solidity/issues/4024.\n\n // keccak256(\"ERC777TokensSender\")\n bytes32 constant private _TOKENS_SENDER_INTERFACE_HASH =\n 0x29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe895;\n\n // keccak256(\"ERC777TokensRecipient\")\n bytes32 constant private _TOKENS_RECIPIENT_INTERFACE_HASH =\n 0xb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b;\n\n // This isn't ever read from - it's only used to respond to the defaultOperators query.\n address[] private _defaultOperatorsArray;\n\n // Immutable, but accounts may revoke them (tracked in __revokedDefaultOperators).\n mapping(address => bool) private _defaultOperators;\n\n // For each account, a mapping of its operators and revoked default operators.\n mapping(address => mapping(address => bool)) private _operators;\n mapping(address => mapping(address => bool)) private _revokedDefaultOperators;\n\n // ERC20-allowances\n mapping (address => mapping (address => uint256)) private _allowances;\n\n /**\n * @dev `defaultOperators` may be an empty array.\n */\n constructor(\n string memory name,\n string memory symbol,\n address[] memory defaultOperators\n ) public {\n _name = name;\n _symbol = symbol;\n\n _defaultOperatorsArray = defaultOperators;\n for (uint256 i = 0; i < _defaultOperatorsArray.length; i++) {\n _defaultOperators[_defaultOperatorsArray[i]] = true;\n }\n\n // register interfaces\n _ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256(\"ERC777Token\"), address(this));\n _ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256(\"ERC20Token\"), address(this));\n }\n\n /**\n * @dev See {IERC777-name}.\n */\n function name() public view override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev See {IERC777-symbol}.\n */\n function symbol() public view override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev See {ERC20-decimals}.\n *\n * Always returns 18, as per the\n * [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility).\n */\n function decimals() public pure returns (uint8) {\n return 18;\n }\n\n /**\n * @dev See {IERC777-granularity}.\n *\n * This implementation always returns `1`.\n */\n function granularity() public view override returns (uint256) {\n return 1;\n }\n\n /**\n * @dev See {IERC777-totalSupply}.\n */\n function totalSupply() public view override(IERC20, IERC777) returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev Returns the amount of tokens owned by an account (`tokenHolder`).\n */\n function balanceOf(address tokenHolder) public view override(IERC20, IERC777) returns (uint256) {\n return _balances[tokenHolder];\n }\n\n /**\n * @dev See {IERC777-send}.\n *\n * Also emits a {IERC20-Transfer} event for ERC20 compatibility.\n */\n function send(address recipient, uint256 amount, bytes memory data) public override {\n _send(_msgSender(), recipient, amount, data, \"\", true);\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient}\n * interface if it is a contract.\n *\n * Also emits a {Sent} event.\n */\n function transfer(address recipient, uint256 amount) public override returns (bool) {\n require(recipient != address(0), \"ERC777: transfer to the zero address\");\n\n address from = _msgSender();\n\n _callTokensToSend(from, from, recipient, amount, \"\", \"\");\n\n _move(from, from, recipient, amount, \"\", \"\");\n\n _callTokensReceived(from, from, recipient, amount, \"\", \"\", false);\n\n return true;\n }\n\n /**\n * @dev See {IERC777-burn}.\n *\n * Also emits a {IERC20-Transfer} event for ERC20 compatibility.\n */\n function burn(uint256 amount, bytes memory data) public override {\n _burn(_msgSender(), amount, data, \"\");\n }\n\n /**\n * @dev See {IERC777-isOperatorFor}.\n */\n function isOperatorFor(\n address operator,\n address tokenHolder\n ) public view override returns (bool) {\n return operator == tokenHolder ||\n (_defaultOperators[operator] && !_revokedDefaultOperators[tokenHolder][operator]) ||\n _operators[tokenHolder][operator];\n }\n\n /**\n * @dev See {IERC777-authorizeOperator}.\n */\n function authorizeOperator(address operator) public override {\n require(_msgSender() != operator, \"ERC777: authorizing self as operator\");\n\n if (_defaultOperators[operator]) {\n delete _revokedDefaultOperators[_msgSender()][operator];\n } else {\n _operators[_msgSender()][operator] = true;\n }\n\n emit AuthorizedOperator(operator, _msgSender());\n }\n\n /**\n * @dev See {IERC777-revokeOperator}.\n */\n function revokeOperator(address operator) public override {\n require(operator != _msgSender(), \"ERC777: revoking self as operator\");\n\n if (_defaultOperators[operator]) {\n _revokedDefaultOperators[_msgSender()][operator] = true;\n } else {\n delete _operators[_msgSender()][operator];\n }\n\n emit RevokedOperator(operator, _msgSender());\n }\n\n /**\n * @dev See {IERC777-defaultOperators}.\n */\n function defaultOperators() public view override returns (address[] memory) {\n return _defaultOperatorsArray;\n }\n\n /**\n * @dev See {IERC777-operatorSend}.\n *\n * Emits {Sent} and {IERC20-Transfer} events.\n */\n function operatorSend(\n address sender,\n address recipient,\n uint256 amount,\n bytes memory data,\n bytes memory operatorData\n )\n public override\n {\n require(isOperatorFor(_msgSender(), sender), \"ERC777: caller is not an operator for holder\");\n _send(sender, recipient, amount, data, operatorData, true);\n }\n\n /**\n * @dev See {IERC777-operatorBurn}.\n *\n * Emits {Burned} and {IERC20-Transfer} events.\n */\n function operatorBurn(address account, uint256 amount, bytes memory data, bytes memory operatorData) public override {\n require(isOperatorFor(_msgSender(), account), \"ERC777: caller is not an operator for holder\");\n _burn(account, amount, data, operatorData);\n }\n\n /**\n * @dev See {IERC20-allowance}.\n *\n * Note that operator and allowance concepts are orthogonal: operators may\n * not have allowance, and accounts with allowance may not be operators\n * themselves.\n */\n function allowance(address holder, address spender) public view override returns (uint256) {\n return _allowances[holder][spender];\n }\n\n /**\n * @dev See {IERC20-approve}.\n *\n * Note that accounts cannot have allowance issued by their operators.\n */\n function approve(address spender, uint256 value) public override returns (bool) {\n address holder = _msgSender();\n _approve(holder, spender, value);\n return true;\n }\n\n /**\n * @dev See {IERC20-transferFrom}.\n *\n * Note that operator and allowance concepts are orthogonal: operators cannot\n * call `transferFrom` (unless they have allowance), and accounts with\n * allowance cannot call `operatorSend` (unless they are operators).\n *\n * Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events.\n */\n function transferFrom(address holder, address recipient, uint256 amount) public override returns (bool) {\n require(recipient != address(0), \"ERC777: transfer to the zero address\");\n require(holder != address(0), \"ERC777: transfer from the zero address\");\n\n address spender = _msgSender();\n\n _callTokensToSend(spender, holder, recipient, amount, \"\", \"\");\n\n _move(spender, holder, recipient, amount, \"\", \"\");\n _approve(holder, spender, _allowances[holder][spender].sub(amount, \"ERC777: transfer amount exceeds allowance\"));\n\n _callTokensReceived(spender, holder, recipient, amount, \"\", \"\", false);\n\n return true;\n }\n\n /**\n * @dev Creates `amount` tokens and assigns them to `account`, increasing\n * the total supply.\n *\n * If a send hook is registered for `account`, the corresponding function\n * will be called with `operator`, `data` and `operatorData`.\n *\n * See {IERC777Sender} and {IERC777Recipient}.\n *\n * Emits {Minted} and {IERC20-Transfer} events.\n *\n * Requirements\n *\n * - `account` cannot be the zero address.\n * - if `account` is a contract, it must implement the {IERC777Recipient}\n * interface.\n */\n function _mint(\n address account,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n )\n internal virtual\n {\n require(account != address(0), \"ERC777: mint to the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, address(0), account, amount);\n\n // Update state variables\n _totalSupply = _totalSupply.add(amount);\n _balances[account] = _balances[account].add(amount);\n\n _callTokensReceived(operator, address(0), account, amount, userData, operatorData, true);\n\n emit Minted(operator, account, amount, userData, operatorData);\n emit Transfer(address(0), account, amount);\n }\n\n /**\n * @dev Send tokens\n * @param from address token holder address\n * @param to address recipient address\n * @param amount uint256 amount of tokens to transfer\n * @param userData bytes extra information provided by the token holder (if any)\n * @param operatorData bytes extra information provided by the operator (if any)\n * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient\n */\n function _send(\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData,\n bool requireReceptionAck\n )\n internal\n {\n require(from != address(0), \"ERC777: send from the zero address\");\n require(to != address(0), \"ERC777: send to the zero address\");\n\n address operator = _msgSender();\n\n _callTokensToSend(operator, from, to, amount, userData, operatorData);\n\n _move(operator, from, to, amount, userData, operatorData);\n\n _callTokensReceived(operator, from, to, amount, userData, operatorData, requireReceptionAck);\n }\n\n /**\n * @dev Burn tokens\n * @param from address token holder address\n * @param amount uint256 amount of tokens to burn\n * @param data bytes extra information provided by the token holder\n * @param operatorData bytes extra information provided by the operator (if any)\n */\n function _burn(\n address from,\n uint256 amount,\n bytes memory data,\n bytes memory operatorData\n )\n internal virtual\n {\n require(from != address(0), \"ERC777: burn from the zero address\");\n\n address operator = _msgSender();\n\n _beforeTokenTransfer(operator, from, address(0), amount);\n\n _callTokensToSend(operator, from, address(0), amount, data, operatorData);\n\n // Update state variables\n _balances[from] = _balances[from].sub(amount, \"ERC777: burn amount exceeds balance\");\n _totalSupply = _totalSupply.sub(amount);\n\n emit Burned(operator, from, amount, data, operatorData);\n emit Transfer(from, address(0), amount);\n }\n\n function _move(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n )\n private\n {\n _beforeTokenTransfer(operator, from, to, amount);\n\n _balances[from] = _balances[from].sub(amount, \"ERC777: transfer amount exceeds balance\");\n _balances[to] = _balances[to].add(amount);\n\n emit Sent(operator, from, to, amount, userData, operatorData);\n emit Transfer(from, to, amount);\n }\n\n /**\n * @dev See {ERC20-_approve}.\n *\n * Note that accounts cannot have allowance issued by their operators.\n */\n function _approve(address holder, address spender, uint256 value) internal {\n require(holder != address(0), \"ERC777: approve from the zero address\");\n require(spender != address(0), \"ERC777: approve to the zero address\");\n\n _allowances[holder][spender] = value;\n emit Approval(holder, spender, value);\n }\n\n /**\n * @dev Call from.tokensToSend() if the interface is registered\n * @param operator address operator requesting the transfer\n * @param from address token holder address\n * @param to address recipient address\n * @param amount uint256 amount of tokens to transfer\n * @param userData bytes extra information provided by the token holder (if any)\n * @param operatorData bytes extra information provided by the operator (if any)\n */\n function _callTokensToSend(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData\n )\n private\n {\n address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(from, _TOKENS_SENDER_INTERFACE_HASH);\n if (implementer != address(0)) {\n IERC777Sender(implementer).tokensToSend(operator, from, to, amount, userData, operatorData);\n }\n }\n\n /**\n * @dev Call to.tokensReceived() if the interface is registered. Reverts if the recipient is a contract but\n * tokensReceived() was not registered for the recipient\n * @param operator address operator requesting the transfer\n * @param from address token holder address\n * @param to address recipient address\n * @param amount uint256 amount of tokens to transfer\n * @param userData bytes extra information provided by the token holder (if any)\n * @param operatorData bytes extra information provided by the operator (if any)\n * @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient\n */\n function _callTokensReceived(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes memory userData,\n bytes memory operatorData,\n bool requireReceptionAck\n )\n private\n {\n address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(to, _TOKENS_RECIPIENT_INTERFACE_HASH);\n if (implementer != address(0)) {\n IERC777Recipient(implementer).tokensReceived(operator, from, to, amount, userData, operatorData);\n } else if (requireReceptionAck) {\n require(!to.isContract(), \"ERC777: token recipient contract has no implementer for ERC777TokensRecipient\");\n }\n }\n\n /**\n * @dev Hook that is called before any token transfer. This includes\n * calls to {send}, {transfer}, {operatorSend}, 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 to 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(address operator, address from, address to, uint256 amount) internal virtual { }\n}\n","urls":[]},"contracts/token/ERC777/IERC777.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the ERC777Token standard as defined in the EIP.\n *\n * This contract uses the\n * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let\n * token holders and recipients react to token movements by using setting implementers\n * for the associated interfaces in said registry. See {IERC1820Registry} and\n * {ERC1820Implementer}.\n */\ninterface IERC777 {\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, usually a shorter version of the\n * name.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the smallest part of the token that is not divisible. This\n * means all token operations (creation, movement and destruction) must have\n * amounts that are a multiple of this number.\n *\n * For most token contracts, this value will equal 1.\n */\n function granularity() external view returns (uint256);\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 an account (`owner`).\n */\n function balanceOf(address owner) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `recipient`.\n *\n * If send or receive hooks are registered for the caller and `recipient`,\n * the corresponding functions will be called with `data` and empty\n * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.\n *\n * Emits a {Sent} event.\n *\n * Requirements\n *\n * - the caller must have at least `amount` tokens.\n * - `recipient` cannot be the zero address.\n * - if `recipient` is a contract, it must implement the {IERC777Recipient}\n * interface.\n */\n function send(address recipient, uint256 amount, bytes calldata data) external;\n\n /**\n * @dev Destroys `amount` tokens from the caller's account, reducing the\n * total supply.\n *\n * If a send hook is registered for the caller, the corresponding function\n * will be called with `data` and empty `operatorData`. See {IERC777Sender}.\n *\n * Emits a {Burned} event.\n *\n * Requirements\n *\n * - the caller must have at least `amount` tokens.\n */\n function burn(uint256 amount, bytes calldata data) external;\n\n /**\n * @dev Returns true if an account is an operator of `tokenHolder`.\n * Operators can send and burn tokens on behalf of their owners. All\n * accounts are their own operator.\n *\n * See {operatorSend} and {operatorBurn}.\n */\n function isOperatorFor(address operator, address tokenHolder) external view returns (bool);\n\n /**\n * @dev Make an account an operator of the caller.\n *\n * See {isOperatorFor}.\n *\n * Emits an {AuthorizedOperator} event.\n *\n * Requirements\n *\n * - `operator` cannot be calling address.\n */\n function authorizeOperator(address operator) external;\n\n /**\n * @dev Revoke an account's operator status for the caller.\n *\n * See {isOperatorFor} and {defaultOperators}.\n *\n * Emits a {RevokedOperator} event.\n *\n * Requirements\n *\n * - `operator` cannot be calling address.\n */\n function revokeOperator(address operator) external;\n\n /**\n * @dev Returns the list of default operators. These accounts are operators\n * for all token holders, even if {authorizeOperator} was never called on\n * them.\n *\n * This list is immutable, but individual holders may revoke these via\n * {revokeOperator}, in which case {isOperatorFor} will return false.\n */\n function defaultOperators() external view returns (address[] memory);\n\n /**\n * @dev Moves `amount` tokens from `sender` to `recipient`. The caller must\n * be an operator of `sender`.\n *\n * If send or receive hooks are registered for `sender` and `recipient`,\n * the corresponding functions will be called with `data` and\n * `operatorData`. See {IERC777Sender} and {IERC777Recipient}.\n *\n * Emits a {Sent} event.\n *\n * Requirements\n *\n * - `sender` cannot be the zero address.\n * - `sender` must have at least `amount` tokens.\n * - the caller must be an operator for `sender`.\n * - `recipient` cannot be the zero address.\n * - if `recipient` is a contract, it must implement the {IERC777Recipient}\n * interface.\n */\n function operatorSend(\n address sender,\n address recipient,\n uint256 amount,\n bytes calldata data,\n bytes calldata operatorData\n ) external;\n\n /**\n * @dev Destroys `amount` tokens from `account`, reducing the total supply.\n * The caller must be an operator of `account`.\n *\n * If a send hook is registered for `account`, the corresponding function\n * will be called with `data` and `operatorData`. See {IERC777Sender}.\n *\n * Emits a {Burned} event.\n *\n * Requirements\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens.\n * - the caller must be an operator for `account`.\n */\n function operatorBurn(\n address account,\n uint256 amount,\n bytes calldata data,\n bytes calldata operatorData\n ) external;\n\n event Sent(\n address indexed operator,\n address indexed from,\n address indexed to,\n uint256 amount,\n bytes data,\n bytes operatorData\n );\n\n event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData);\n\n event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData);\n\n event AuthorizedOperator(address indexed operator, address indexed tokenHolder);\n\n event RevokedOperator(address indexed operator, address indexed tokenHolder);\n}\n","urls":[]},"contracts/token/ERC777/IERC777Recipient.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the ERC777TokensRecipient standard as defined in the EIP.\n *\n * Accounts can be notified of {IERC777} tokens being sent to them by having a\n * contract implement this interface (contract holders can be their own\n * implementer) and registering it on the\n * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].\n *\n * See {IERC1820Registry} and {ERC1820Implementer}.\n */\ninterface IERC777Recipient {\n /**\n * @dev Called by an {IERC777} token contract whenever tokens are being\n * moved or created into a registered account (`to`). The type of operation\n * is conveyed by `from` being the zero address or not.\n *\n * This call occurs _after_ the token contract's state is updated, so\n * {IERC777-balanceOf}, etc., can be used to query the post-operation state.\n *\n * This function may revert to prevent the operation from being executed.\n */\n function tokensReceived(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external;\n}\n","urls":[]},"contracts/token/ERC777/IERC777Sender.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Interface of the ERC777TokensSender standard as defined in the EIP.\n *\n * {IERC777} Token holders can be notified of operations performed on their\n * tokens by having a contract implement this interface (contract holders can be\n * their own implementer) and registering it on the\n * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].\n *\n * See {IERC1820Registry} and {ERC1820Implementer}.\n */\ninterface IERC777Sender {\n /**\n * @dev Called by an {IERC777} token contract whenever a registered holder's\n * (`from`) tokens are about to be moved or destroyed. The type of operation\n * is conveyed by `to` being the zero address or not.\n *\n * This call occurs _before_ the token contract's state is updated, so\n * {IERC777-balanceOf}, etc., can be used to query the pre-operation state.\n *\n * This function may revert to prevent the operation from being executed.\n */\n function tokensToSend(\n address operator,\n address from,\n address to,\n uint256 amount,\n bytes calldata userData,\n bytes calldata operatorData\n ) external;\n}\n","urls":[]},"contracts/utils/Address.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.2;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\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 function isContract(address account) internal view returns (bool) {\n // According to EIP-1052, 0x0 is the value returned for not-yet created accounts\n // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned\n // for accounts without code, i.e. `keccak256('')`\n bytes32 codehash;\n bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;\n // solhint-disable-next-line no-inline-assembly\n assembly { codehash := extcodehash(account) }\n return (codehash != accountHash && codehash != 0x0);\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 // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\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 functionCall(target, data, \"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(address target, bytes memory data, string memory errorMessage) 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(address target, bytes memory data, uint256 value) 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(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n return _functionCallWithValue(target, data, value, errorMessage);\n }\n\n function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {\n require(isContract(target), \"Address: call to non-contract\");\n\n // solhint-disable-next-line avoid-low-level-calls\n (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);\n if (success) {\n return returndata;\n } else {\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\n // solhint-disable-next-line no-inline-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}\n","urls":[]},"contracts/utils/Arrays.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/Math.sol\";\n\n/**\n * @dev Collection of functions related to array types.\n */\nlibrary Arrays {\n /**\n * @dev Searches a sorted `array` and returns the first index that contains\n * a value greater or equal to `element`. If no such index exists (i.e. all\n * values in the array are strictly less than `element`), the array length is\n * returned. Time complexity O(log n).\n *\n * `array` is expected to be sorted in ascending order, and to contain no\n * repeated elements.\n */\n function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {\n if (array.length == 0) {\n return 0;\n }\n\n uint256 low = 0;\n uint256 high = array.length;\n\n while (low < high) {\n uint256 mid = Math.average(low, high);\n\n // Note that mid will always be strictly less than high (i.e. it will be a valid array index)\n // because Math.average rounds down (it does integer division with truncation).\n if (array[mid] > element) {\n high = mid;\n } else {\n low = mid + 1;\n }\n }\n\n // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.\n if (low > 0 && array[low - 1] == element) {\n return low - 1;\n } else {\n return low;\n }\n }\n}\n","urls":[]},"contracts/utils/Counters.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../math/SafeMath.sol\";\n\n/**\n * @title Counters\n * @author Matt Condon (@shrugs)\n * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number\n * of elements in a mapping, issuing ERC721 ids, or counting request ids.\n *\n * Include with `using Counters for Counters.Counter;`\n * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}\n * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never\n * directly accessed.\n */\nlibrary Counters {\n using SafeMath for uint256;\n\n struct Counter {\n // This variable should never be directly accessed by users of the library: interactions must be restricted to\n // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add\n // this feature: see https://github.com/ethereum/solidity/issues/4637\n uint256 _value; // default: 0\n }\n\n function current(Counter storage counter) internal view returns (uint256) {\n return counter._value;\n }\n\n function increment(Counter storage counter) internal {\n // The {SafeMath} overflow check can be skipped here, see the comment at the top\n counter._value += 1;\n }\n\n function decrement(Counter storage counter) internal {\n counter._value = counter._value.sub(1);\n }\n}\n","urls":[]},"contracts/utils/Create2.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\n * `CREATE2` can be used to compute in advance the address where a smart\n * contract will be deployed, which allows for interesting new mechanisms known\n * as 'counterfactual interactions'.\n *\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\n * information.\n */\nlibrary Create2 {\n /**\n * @dev Deploys a contract using `CREATE2`. The address where the contract\n * will be deployed can be known in advance via {computeAddress}.\n *\n * The bytecode for a contract can be obtained from Solidity with\n * `type(contractName).creationCode`.\n *\n * Requirements:\n *\n * - `bytecode` must not be empty.\n * - `salt` must have not been used for `bytecode` already.\n * - the factory must have a balance of at least `amount`.\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\n */\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address) {\n address addr;\n require(address(this).balance >= amount, \"Create2: insufficient balance\");\n require(bytecode.length != 0, \"Create2: bytecode length is zero\");\n // solhint-disable-next-line no-inline-assembly\n assembly {\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\n }\n require(addr != address(0), \"Create2: Failed on deploy\");\n return addr;\n }\n\n /**\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\n * `bytecodeHash` or `salt` will result in a new destination address.\n */\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\n return computeAddress(salt, bytecodeHash, address(this));\n }\n\n /**\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\n */\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address) {\n bytes32 _data = keccak256(\n abi.encodePacked(bytes1(0xff), deployer, salt, bytecodeHash)\n );\n return address(uint256(_data));\n }\n}\n","urls":[]},"contracts/utils/EnumerableMap.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Library for managing an enumerable variant of Solidity's\n * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]\n * type.\n *\n * Maps have the following properties:\n *\n * - Entries are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Entries are enumerated in O(n). No guarantees are made on the ordering.\n *\n * ```\n * contract Example {\n * // Add the library methods\n * using EnumerableMap for EnumerableMap.UintToAddressMap;\n *\n * // Declare a set state variable\n * EnumerableMap.UintToAddressMap private myMap;\n * }\n * ```\n *\n * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are\n * supported.\n */\nlibrary EnumerableMap {\n // To implement this library for multiple types with as little code\n // repetition as possible, we write it in terms of a generic Map type with\n // bytes32 keys and values.\n // The Map implementation uses private functions, and user-facing\n // implementations (such as Uint256ToAddressMap) are just wrappers around\n // the underlying Map.\n // This means that we can only create new EnumerableMaps for types that fit\n // in bytes32.\n\n struct MapEntry {\n bytes32 _key;\n bytes32 _value;\n }\n\n struct Map {\n // Storage of map keys and values\n MapEntry[] _entries;\n\n // Position of the entry defined by a key in the `entries` array, plus 1\n // because index 0 means a key is not in the map.\n mapping (bytes32 => uint256) _indexes;\n }\n\n /**\n * @dev Adds a key-value pair to a map, or updates the value for an existing\n * key. O(1).\n *\n * Returns true if the key was added to the map, that is if it was not\n * already present.\n */\n function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {\n // We read and store the key's index to prevent multiple reads from the same storage slot\n uint256 keyIndex = map._indexes[key];\n\n if (keyIndex == 0) { // Equivalent to !contains(map, key)\n map._entries.push(MapEntry({ _key: key, _value: value }));\n // The entry is stored at length-1, but we add 1 to all indexes\n // and use 0 as a sentinel value\n map._indexes[key] = map._entries.length;\n return true;\n } else {\n map._entries[keyIndex - 1]._value = value;\n return false;\n }\n }\n\n /**\n * @dev Removes a key-value pair from a map. O(1).\n *\n * Returns true if the key was removed from the map, that is if it was present.\n */\n function _remove(Map storage map, bytes32 key) private returns (bool) {\n // We read and store the key's index to prevent multiple reads from the same storage slot\n uint256 keyIndex = map._indexes[key];\n\n if (keyIndex != 0) { // Equivalent to contains(map, key)\n // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one\n // in the array, and then remove the last entry (sometimes called as 'swap and pop').\n // This modifies the order of the array, as noted in {at}.\n\n uint256 toDeleteIndex = keyIndex - 1;\n uint256 lastIndex = map._entries.length - 1;\n\n // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs\n // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.\n\n MapEntry storage lastEntry = map._entries[lastIndex];\n\n // Move the last entry to the index where the entry to delete is\n map._entries[toDeleteIndex] = lastEntry;\n // Update the index for the moved entry\n map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based\n\n // Delete the slot where the moved entry was stored\n map._entries.pop();\n\n // Delete the index for the deleted slot\n delete map._indexes[key];\n\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @dev Returns true if the key is in the map. O(1).\n */\n function _contains(Map storage map, bytes32 key) private view returns (bool) {\n return map._indexes[key] != 0;\n }\n\n /**\n * @dev Returns the number of key-value pairs in the map. O(1).\n */\n function _length(Map storage map) private view returns (uint256) {\n return map._entries.length;\n }\n\n /**\n * @dev Returns the key-value pair stored at position `index` in the map. O(1).\n *\n * Note that there are no guarantees on the ordering of entries inside the\n * array, and it may change when more entries are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {\n require(map._entries.length > index, \"EnumerableMap: index out of bounds\");\n\n MapEntry storage entry = map._entries[index];\n return (entry._key, entry._value);\n }\n\n /**\n * @dev Returns the value associated with `key`. O(1).\n *\n * Requirements:\n *\n * - `key` must be in the map.\n */\n function _get(Map storage map, bytes32 key) private view returns (bytes32) {\n return _get(map, key, \"EnumerableMap: nonexistent key\");\n }\n\n /**\n * @dev Same as {_get}, with a custom error message when `key` is not in the map.\n */\n function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {\n uint256 keyIndex = map._indexes[key];\n require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)\n return map._entries[keyIndex - 1]._value; // All indexes are 1-based\n }\n\n // UintToAddressMap\n\n struct UintToAddressMap {\n Map _inner;\n }\n\n /**\n * @dev Adds a key-value pair to a map, or updates the value for an existing\n * key. O(1).\n *\n * Returns true if the key was added to the map, that is if it was not\n * already present.\n */\n function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {\n return _set(map._inner, bytes32(key), bytes32(uint256(value)));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the key was removed from the map, that is if it was present.\n */\n function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {\n return _remove(map._inner, bytes32(key));\n }\n\n /**\n * @dev Returns true if the key is in the map. O(1).\n */\n function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {\n return _contains(map._inner, bytes32(key));\n }\n\n /**\n * @dev Returns the number of elements in the map. O(1).\n */\n function length(UintToAddressMap storage map) internal view returns (uint256) {\n return _length(map._inner);\n }\n\n /**\n * @dev Returns the element stored at position `index` in the set. O(1).\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {\n (bytes32 key, bytes32 value) = _at(map._inner, index);\n return (uint256(key), address(uint256(value)));\n }\n\n /**\n * @dev Returns the value associated with `key`. O(1).\n *\n * Requirements:\n *\n * - `key` must be in the map.\n */\n function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {\n return address(uint256(_get(map._inner, bytes32(key))));\n }\n\n /**\n * @dev Same as {get}, with a custom error message when `key` is not in the map.\n */\n function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {\n return address(uint256(_get(map._inner, bytes32(key), errorMessage)));\n }\n}\n","urls":[]},"contracts/utils/EnumerableSet.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Library for managing\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\n * types.\n *\n * Sets have the following properties:\n *\n * - Elements are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\n *\n * ```\n * contract Example {\n * // Add the library methods\n * using EnumerableSet for EnumerableSet.AddressSet;\n *\n * // Declare a set state variable\n * EnumerableSet.AddressSet private mySet;\n * }\n * ```\n *\n * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`\n * (`UintSet`) are supported.\n */\nlibrary EnumerableSet {\n // To implement this library for multiple types with as little code\n // repetition as possible, we write it in terms of a generic Set type with\n // bytes32 values.\n // The Set implementation uses private functions, and user-facing\n // implementations (such as AddressSet) are just wrappers around the\n // underlying Set.\n // This means that we can only create new EnumerableSets for types that fit\n // in bytes32.\n\n struct Set {\n // Storage of set values\n bytes32[] _values;\n\n // Position of the value in the `values` array, plus 1 because index 0\n // means a value is not in the set.\n mapping (bytes32 => uint256) _indexes;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function _add(Set storage set, bytes32 value) private returns (bool) {\n if (!_contains(set, value)) {\n set._values.push(value);\n // The value is stored at length-1, but we add 1 to all indexes\n // and use 0 as a sentinel value\n set._indexes[value] = set._values.length;\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function _remove(Set storage set, bytes32 value) private returns (bool) {\n // We read and store the value's index to prevent multiple reads from the same storage slot\n uint256 valueIndex = set._indexes[value];\n\n if (valueIndex != 0) { // Equivalent to contains(set, value)\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n // the array, and then remove the last element (sometimes called as 'swap and pop').\n // This modifies the order of the array, as noted in {at}.\n\n uint256 toDeleteIndex = valueIndex - 1;\n uint256 lastIndex = set._values.length - 1;\n\n // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs\n // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.\n\n bytes32 lastvalue = set._values[lastIndex];\n\n // Move the last value to the index where the value to delete is\n set._values[toDeleteIndex] = lastvalue;\n // Update the index for the moved value\n set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based\n\n // Delete the slot where the moved value was stored\n set._values.pop();\n\n // Delete the index for the deleted slot\n delete set._indexes[value];\n\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\n return set._indexes[value] != 0;\n }\n\n /**\n * @dev Returns the number of values on the set. O(1).\n */\n function _length(Set storage set) private view returns (uint256) {\n return set._values.length;\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\n require(set._values.length > index, \"EnumerableSet: index out of bounds\");\n return set._values[index];\n }\n\n // AddressSet\n\n struct AddressSet {\n Set _inner;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function add(AddressSet storage set, address value) internal returns (bool) {\n return _add(set._inner, bytes32(uint256(value)));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function remove(AddressSet storage set, address value) internal returns (bool) {\n return _remove(set._inner, bytes32(uint256(value)));\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function contains(AddressSet storage set, address value) internal view returns (bool) {\n return _contains(set._inner, bytes32(uint256(value)));\n }\n\n /**\n * @dev Returns the number of values in the set. O(1).\n */\n function length(AddressSet storage set) internal view returns (uint256) {\n return _length(set._inner);\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\n return address(uint256(_at(set._inner, index)));\n }\n\n\n // UintSet\n\n struct UintSet {\n Set _inner;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function add(UintSet storage set, uint256 value) internal returns (bool) {\n return _add(set._inner, bytes32(value));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\n return _remove(set._inner, bytes32(value));\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\n return _contains(set._inner, bytes32(value));\n }\n\n /**\n * @dev Returns the number of values on the set. O(1).\n */\n function length(UintSet storage set) internal view returns (uint256) {\n return _length(set._inner);\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\n return uint256(_at(set._inner, index));\n }\n}\n","urls":[]},"contracts/utils/Pausable.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\nimport \"../GSN/Context.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 */\ncontract Pausable is Context {\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 constructor () internal {\n _paused = false;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view returns (bool) {\n return _paused;\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 require(!_paused, \"Pausable: paused\");\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 require(_paused, \"Pausable: not paused\");\n _;\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","urls":[]},"contracts/utils/ReentrancyGuard.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\ncontract ReentrancyGuard {\n // Booleans are more expensive than uint256 or any type that takes up a full\n // word because each write operation emits an extra SLOAD to first read the\n // slot's contents, replace the bits taken up by the boolean, and then write\n // back. This is the compiler's defense against contract upgrades and\n // pointer aliasing, and it cannot be disabled.\n\n // The values being non-zero value makes deployment a bit more expensive,\n // but in exchange the refund on every call to nonReentrant will be lower in\n // amount. Since refunds are capped to a percentage of the total\n // transaction's gas, it is best to keep them low in cases like this one, to\n // increase the likelihood of the full refund coming into effect.\n uint256 private constant _NOT_ENTERED = 1;\n uint256 private constant _ENTERED = 2;\n\n uint256 private _status;\n\n constructor () internal {\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Prevents a contract from calling itself, directly or indirectly.\n * Calling a `nonReentrant` function from another `nonReentrant`\n * function is not supported. It is possible to prevent this from happening\n * by making the `nonReentrant` function external, and make it call a\n * `private` function that does the actual work.\n */\n modifier nonReentrant() {\n // On the first call to nonReentrant, _notEntered will be true\n require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n // Any calls to nonReentrant after this point will fail\n _status = _ENTERED;\n\n _;\n\n // By storing the original value once again, a refund is triggered (see\n // https://eips.ethereum.org/EIPS/eip-2200)\n _status = _NOT_ENTERED;\n }\n}\n","urls":[]},"contracts/utils/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n *\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\n * all math on `uint256` and `int256` and then downcasting.\n */\nlibrary SafeCast {\n\n /**\n * @dev Returns the downcasted uint128 from uint256, reverting on\n * overflow (when the input is greater than largest uint128).\n *\n * Counterpart to Solidity's `uint128` operator.\n *\n * Requirements:\n *\n * - input must fit into 128 bits\n */\n function toUint128(uint256 value) internal pure returns (uint128) {\n require(value < 2**128, \"SafeCast: value doesn\\'t fit in 128 bits\");\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint64 from uint256, reverting on\n * overflow (when the input is greater than largest uint64).\n *\n * Counterpart to Solidity's `uint64` operator.\n *\n * Requirements:\n *\n * - input must fit into 64 bits\n */\n function toUint64(uint256 value) internal pure returns (uint64) {\n require(value < 2**64, \"SafeCast: value doesn\\'t fit in 64 bits\");\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint32 from uint256, reverting on\n * overflow (when the input is greater than largest uint32).\n *\n * Counterpart to Solidity's `uint32` operator.\n *\n * Requirements:\n *\n * - input must fit into 32 bits\n */\n function toUint32(uint256 value) internal pure returns (uint32) {\n require(value < 2**32, \"SafeCast: value doesn\\'t fit in 32 bits\");\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint16 from uint256, reverting on\n * overflow (when the input is greater than largest uint16).\n *\n * Counterpart to Solidity's `uint16` operator.\n *\n * Requirements:\n *\n * - input must fit into 16 bits\n */\n function toUint16(uint256 value) internal pure returns (uint16) {\n require(value < 2**16, \"SafeCast: value doesn\\'t fit in 16 bits\");\n return uint16(value);\n }\n\n /**\n * @dev Returns the downcasted uint8 from uint256, reverting on\n * overflow (when the input is greater than largest uint8).\n *\n * Counterpart to Solidity's `uint8` operator.\n *\n * Requirements:\n *\n * - input must fit into 8 bits.\n */\n function toUint8(uint256 value) internal pure returns (uint8) {\n require(value < 2**8, \"SafeCast: value doesn\\'t fit in 8 bits\");\n return uint8(value);\n }\n\n /**\n * @dev Converts a signed int256 into an unsigned uint256.\n *\n * Requirements:\n *\n * - input must be greater than or equal to 0.\n */\n function toUint256(int256 value) internal pure returns (uint256) {\n require(value >= 0, \"SafeCast: value must be positive\");\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int128 from int256, reverting on\n * overflow (when the input is less than smallest int128 or\n * greater than largest int128).\n *\n * Counterpart to Solidity's `int128` operator.\n *\n * Requirements:\n *\n * - input must fit into 128 bits\n *\n * _Available since v3.1._\n */\n function toInt128(int256 value) internal pure returns (int128) {\n require(value >= -2**127 && value < 2**127, \"SafeCast: value doesn\\'t fit in 128 bits\");\n return int128(value);\n }\n\n /**\n * @dev Returns the downcasted int64 from int256, reverting on\n * overflow (when the input is less than smallest int64 or\n * greater than largest int64).\n *\n * Counterpart to Solidity's `int64` operator.\n *\n * Requirements:\n *\n * - input must fit into 64 bits\n *\n * _Available since v3.1._\n */\n function toInt64(int256 value) internal pure returns (int64) {\n require(value >= -2**63 && value < 2**63, \"SafeCast: value doesn\\'t fit in 64 bits\");\n return int64(value);\n }\n\n /**\n * @dev Returns the downcasted int32 from int256, reverting on\n * overflow (when the input is less than smallest int32 or\n * greater than largest int32).\n *\n * Counterpart to Solidity's `int32` operator.\n *\n * Requirements:\n *\n * - input must fit into 32 bits\n *\n * _Available since v3.1._\n */\n function toInt32(int256 value) internal pure returns (int32) {\n require(value >= -2**31 && value < 2**31, \"SafeCast: value doesn\\'t fit in 32 bits\");\n return int32(value);\n }\n\n /**\n * @dev Returns the downcasted int16 from int256, reverting on\n * overflow (when the input is less than smallest int16 or\n * greater than largest int16).\n *\n * Counterpart to Solidity's `int16` operator.\n *\n * Requirements:\n *\n * - input must fit into 16 bits\n *\n * _Available since v3.1._\n */\n function toInt16(int256 value) internal pure returns (int16) {\n require(value >= -2**15 && value < 2**15, \"SafeCast: value doesn\\'t fit in 16 bits\");\n return int16(value);\n }\n\n /**\n * @dev Returns the downcasted int8 from int256, reverting on\n * overflow (when the input is less than smallest int8 or\n * greater than largest int8).\n *\n * Counterpart to Solidity's `int8` operator.\n *\n * Requirements:\n *\n * - input must fit into 8 bits.\n *\n * _Available since v3.1._\n */\n function toInt8(int256 value) internal pure returns (int8) {\n require(value >= -2**7 && value < 2**7, \"SafeCast: value doesn\\'t fit in 8 bits\");\n return int8(value);\n }\n\n /**\n * @dev Converts an unsigned uint256 into a signed int256.\n *\n * Requirements:\n *\n * - input must be less than or equal to maxInt256.\n */\n function toInt256(uint256 value) internal pure returns (int256) {\n require(value < 2**255, \"SafeCast: value doesn't fit in an int256\");\n return int256(value);\n }\n}\n","urls":[]},"contracts/utils/Strings.sol":{"content":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.6.0;\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n /**\n * @dev Converts a `uint256` to its ASCII `string` representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n // Inspired by OraclizeAPI's implementation - MIT licence\n // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\n\n if (value == 0) {\n return \"0\";\n }\n uint256 temp = value;\n uint256 digits;\n while (temp != 0) {\n digits++;\n temp /= 10;\n }\n bytes memory buffer = new bytes(digits);\n uint256 index = digits - 1;\n temp = value;\n while (temp != 0) {\n buffer[index--] = byte(uint8(48 + temp % 10));\n temp /= 10;\n }\n return string(buffer);\n }\n}\n","urls":[]}}} diff --git a/tests/functional/data/projects/BrownieProject/brownie-config.yaml b/tests/functional/data/projects/BrownieProject/brownie-config.yaml index ed6692c1ea..4faf44c244 100644 --- a/tests/functional/data/projects/BrownieProject/brownie-config.yaml +++ b/tests/functional/data/projects/BrownieProject/brownie-config.yaml @@ -1,3 +1,5 @@ +contracts_folder: contractsrenamed + dependencies: - OpenZeppelin/openzeppelin-contracts@3.1.0 diff --git a/tests/functional/data/projects/BrownieProject/contracts/brownie.json b/tests/functional/data/projects/BrownieProject/contractsrenamed/brownie.json similarity index 100% rename from tests/functional/data/projects/BrownieProject/contracts/brownie.json rename to tests/functional/data/projects/BrownieProject/contractsrenamed/brownie.json diff --git a/tests/functional/geth/conftest.py b/tests/functional/geth/conftest.py index 5af9c2d742..8e8cf8218a 100644 --- a/tests/functional/geth/conftest.py +++ b/tests/functional/geth/conftest.py @@ -84,7 +84,7 @@ def geth_vyper_receipt(geth_vyper_contract, owner): def custom_network_connection( geth_provider, ethereum, - temp_config, + project, custom_network_name_0, custom_networks_config_dict, networks, @@ -97,7 +97,7 @@ def custom_network_connection( **data, } actual = geth_provider.network - with temp_config(config): + with project.temp_config(**config): geth_provider.network = ethereum.apenet try: with networks.ethereum.apenet.use_provider("node"): diff --git a/tests/functional/geth/test_provider.py b/tests/functional/geth/test_provider.py index d396662a7d..6947b8e829 100644 --- a/tests/functional/geth/test_provider.py +++ b/tests/functional/geth/test_provider.py @@ -54,7 +54,7 @@ def test_uri_localhost_not_running_uses_random_default(config): @geth_process_test -def test_uri_when_configured(geth_provider, temp_config, ethereum): +def test_uri_when_configured(geth_provider, project, ethereum): settings = geth_provider.provider_settings geth_provider.provider_settings = {} value = "https://value/from/config" @@ -63,7 +63,7 @@ def test_uri_when_configured(geth_provider, temp_config, ethereum): network = ethereum.get_network("mainnet") try: - with temp_config(config): + with project.temp_config(**config): # Assert we use the config value. actual_local_uri = geth_provider.uri # Assert provider settings takes precedence. @@ -107,6 +107,15 @@ def test_repr_on_live_network_and_disconnected(networks): assert actual == expected +@geth_process_test +def test_get_logs(geth_contract, geth_account): + geth_contract.setNumber(101010, sender=geth_account) + actual = geth_contract.NumberChange[-1] + assert actual.event_name == "NumberChange" + assert actual.contract_address == geth_contract.address + assert actual.event_arguments["newNum"] == 101010 + + @geth_process_test def test_chain_id_when_connected(geth_provider): assert geth_provider.chain_id == 1337 diff --git a/tests/functional/test_accounts.py b/tests/functional/test_accounts.py index c8e433c382..042587ed63 100644 --- a/tests/functional/test_accounts.py +++ b/tests/functional/test_accounts.py @@ -371,7 +371,7 @@ def test_accounts_address_access(owner, accounts): def test_accounts_address_access_conversion_fail(accounts): with pytest.raises( - IndexError, + KeyError, match=( r"No account with ID 'FAILS'\. " r"Do you have the necessary conversion plugins installed?" @@ -382,18 +382,18 @@ def test_accounts_address_access_conversion_fail(accounts): def test_accounts_address_access_not_found(accounts): address = "0x1222262222222922222222222222222222222222" - with pytest.raises(IndexError, match=rf"No account with address '{address}'\."): + with pytest.raises(KeyError, match=rf"No account with address '{address}'\."): _ = accounts[address] def test_test_accounts_address_access_conversion_fail(test_accounts): - with pytest.raises(IndexError, match=r"No account with ID 'FAILS'"): + with pytest.raises(KeyError, match=r"No account with ID 'FAILS'"): _ = test_accounts["FAILS"] def test_test_accounts_address_access_not_found(test_accounts): address = "0x1222262222222922222222222222222222222222" - with pytest.raises(IndexError, match=rf"No account with address '{address}'\."): + with pytest.raises(KeyError, match=rf"No account with address '{address}'\."): _ = test_accounts[address] @@ -425,10 +425,10 @@ def test_autosign_transactions(runner, keyfile_account, receiver): def test_impersonate_not_implemented(accounts, address): expected_err_msg = ( - "Your provider does not support impersonating accounts:\n" - f"No account with address '{address}'." + r"Your provider does not support impersonating accounts:\\n" + rf"No account with address '{address}'\." ) - with pytest.raises(IndexError, match=expected_err_msg): + with pytest.raises(KeyError, match=expected_err_msg): _ = accounts[address] @@ -452,10 +452,10 @@ def test_impersonated_account_ignores_signature_check_on_txn(accounts, address): def test_contract_as_sender_non_fork_network(contract_instance): expected_err_msg = ( - "Your provider does not support impersonating accounts:\n" - f"No account with address '{contract_instance}'." + r"Your provider does not support impersonating accounts:\\n" + rf"No account with address '{contract_instance}'\." ) - with pytest.raises(IndexError, match=expected_err_msg): + with pytest.raises(KeyError, match=expected_err_msg): contract_instance.setNumber(5, sender=contract_instance) @@ -544,7 +544,7 @@ def test_unlock_and_reload(runner, accounts, keyfile_account, message): assert keyfile_account.check_signature(message, signature) -def test_custom_num_of_test_accounts_config(test_accounts, temp_config): +def test_custom_num_of_test_accounts_config(test_accounts, project): custom_number_of_test_accounts = 20 test_config = { "test": { @@ -554,7 +554,7 @@ def test_custom_num_of_test_accounts_config(test_accounts, temp_config): assert len(test_accounts) == DEFAULT_NUMBER_OF_TEST_ACCOUNTS - with temp_config(test_config): + with project.temp_config(**test_config): assert len(test_accounts) == custom_number_of_test_accounts @@ -604,7 +604,7 @@ def test_is_not_contract(owner, keyfile_account): assert not keyfile_account.is_contract -def test_using_different_hd_path(test_accounts, temp_config): +def test_using_different_hd_path(test_accounts, project): test_config = { "test": { "hd_path": "m/44'/60'/0'/{}", @@ -612,12 +612,12 @@ def test_using_different_hd_path(test_accounts, temp_config): } old_first_account = test_accounts[0] - with temp_config(test_config): + with project.temp_config(**test_config): new_first_account = test_accounts[0] assert old_first_account.address != new_first_account.address -def test_using_random_mnemonic(test_accounts, temp_config): +def test_using_random_mnemonic(test_accounts, project): test_config = { "test": { "mnemonic": "test_mnemonic_for_ape", @@ -625,7 +625,7 @@ def test_using_random_mnemonic(test_accounts, temp_config): } old_first_account = test_accounts[0] - with temp_config(test_config): + with project.temp_config(**test_config): new_first_account = test_accounts[0] assert old_first_account.address != new_first_account.address diff --git a/tests/functional/test_chain.py b/tests/functional/test_chain.py index 3469748979..1b2d9331f5 100644 --- a/tests/functional/test_chain.py +++ b/tests/functional/test_chain.py @@ -81,8 +81,8 @@ def test_isolate(chain, vyper_contract_instance, owner): assert vyper_contract_instance.myNumber() == 333 assert chain.blocks.height == start_head + 1 - assert vyper_contract_instance.myNumber() == number_at_start assert chain.blocks.height == start_head + assert vyper_contract_instance.myNumber() == number_at_start def test_get_receipt_uses_cache(mocker, eth_tester_provider, chain, vyper_contract_instance, owner): diff --git a/tests/functional/test_cli.py b/tests/functional/test_cli.py index 918f0331c4..4820204e05 100644 --- a/tests/functional/test_cli.py +++ b/tests/functional/test_cli.py @@ -1,5 +1,6 @@ import copy import shutil +from pathlib import Path import click import pytest @@ -15,6 +16,7 @@ existing_alias_argument, network_option, non_existing_alias_argument, + project_option, select_account, verbosity_option, ) @@ -35,13 +37,13 @@ def keyfile_swap_paths(config): @pytest.fixture -def one_keyfile_account(keyfile_swap_paths, keyfile_account, temp_config): +def one_keyfile_account(keyfile_swap_paths, keyfile_account, project): src_path, dest_path = keyfile_swap_paths existing_keyfiles = [x for x in src_path.iterdir() if x.is_file()] test_data = {"test": {"number_of_accounts": 0}} if existing_keyfiles == [keyfile_account.keyfile_path]: # Already only has the 1 account - with temp_config(test_data): + with project.temp_config(**test_data): yield keyfile_account else: @@ -55,7 +57,7 @@ def one_keyfile_account(keyfile_swap_paths, keyfile_account, temp_config): shutil.copy(keyfile, dest_path / keyfile.name) keyfile.unlink() - with temp_config(test_data): + with project.temp_config(**test_data): yield keyfile_account for file in dest_path.iterdir(): @@ -79,7 +81,9 @@ def contracts_paths_cmd(): @click.command() @contract_file_paths_argument() - def cmd(file_paths): + @project_option() + def cmd(file_paths, project): + _ = project # used in `contract_file_paths_argument` output = ", ".join(x.name for x in sorted(file_paths)) click.echo(expected.format(output)) @@ -104,18 +108,18 @@ def _teardown_numb_acct_change(accounts): @pytest.fixture -def no_accounts(accounts, empty_data_folder, temp_config): +def no_accounts(accounts, empty_data_folder, project): data = _setup_temp_acct_number_change(accounts, 0) - with temp_config(data): + with project.temp_config(**data): yield _teardown_numb_acct_change(accounts) @pytest.fixture -def one_account(accounts, empty_data_folder, temp_config, test_accounts): +def one_account(accounts, empty_data_folder, project, test_accounts): data = _setup_temp_acct_number_change(accounts, 1) - with temp_config(data): + with project.temp_config(**data): yield test_accounts[0] _teardown_numb_acct_change(accounts) @@ -294,22 +298,24 @@ def cmd(network): @pytest.mark.parametrize("network_name", ("apenet", "apenet1")) -def test_network_option_specify_custom_network(runner, custom_networks_config, network_name): +def test_network_option_specify_custom_network( + runner, project, custom_networks_config_dict, network_name +): network_part = ("--network", f"ethereum:{network_name}:node") + with project.temp_config(**custom_networks_config_dict): + # NOTE: Also testing network filter with a custom network + # But this is also required to work around LRU cache + # giving us the wrong networks because click is running + # the tester in-process after re-configuring networks, + # which shouldn't happen IRL. - # NOTE: Also testing network filter with a custom network - # But this is also required to work around LRU cache - # giving us the wrong networks because click is running - # the tester in-process after re-configuring networks, - # which shouldn't happen IRL. - - @click.command() - @network_option(network=network_name) - def cmd(network): - click.echo(f"Value is '{network.name}'") + @click.command() + @network_option(network=network_name) + def cmd(network): + click.echo(f"Value is '{network.name}'") - result = runner.invoke(cmd, network_part) - assert f"Value is '{network_name}'" in result.output + result = runner.invoke(cmd, network_part) + assert f"Value is '{network_name}'" in result.output def test_account_option(runner, keyfile_account): @@ -428,26 +434,33 @@ def test_contract_file_paths_argument_given_source_id( project_with_source_files_contract, runner, contracts_paths_cmd ): pm = project_with_source_files_contract - src_id = next(iter(pm.sources)) - result = runner.invoke(contracts_paths_cmd, src_id) - assert f"EXPECTED {src_id}" in result.output + src_id = next(x for x in pm.sources if Path(x).suffix == ".json") + arguments = (src_id, "--project", f"{pm.path}") + result = runner.invoke(contracts_paths_cmd, arguments) + + assert f"EXPECTED {src_id.split('/')[-1]}" in result.output def test_contract_file_paths_argument_given_name( project_with_source_files_contract, runner, contracts_paths_cmd ): pm = project_with_source_files_contract - src_stem = next(iter(pm.sources)).split(".")[0] - result = runner.invoke(contracts_paths_cmd, src_stem) - assert f"EXPECTED {src_stem}" in result.output + src_stem = next(x for x in pm.sources if Path(x).suffix == ".json").split(".")[0] + arguments = (src_stem, "--project", f"{pm.path}") + result = runner.invoke(contracts_paths_cmd, arguments) + + assert f"EXPECTED {src_stem.split('/')[-1]}" in result.output def test_contract_file_paths_argument_given_contracts_folder( project_with_contract, runner, contracts_paths_cmd ): pm = project_with_contract - result = runner.invoke(contracts_paths_cmd, pm.contracts_folder.as_posix()) - all_paths = ", ".join(x.name for x in sorted(pm.source_paths) if "Excl" not in x.name) + contracts_dirname = pm.contracts_folder.as_posix() + arguments = (contracts_dirname, "--project", f"{pm.path}") + result = runner.invoke(contracts_paths_cmd, arguments) + all_paths = ", ".join(x.name for x in sorted(pm.sources.paths)) + assert f"EXPECTED {all_paths}" in result.output @@ -455,13 +468,18 @@ def test_contract_file_paths_argument_given_contracts_folder_name( project_with_contract, runner, contracts_paths_cmd ): pm = project_with_contract - result = runner.invoke(contracts_paths_cmd, "contracts") - all_paths = ", ".join(x.name for x in sorted(pm.source_paths) if "Excl" not in x.name) + arguments = ("contracts", "--project", f"{pm.path}") + result = runner.invoke(contracts_paths_cmd, arguments) + all_paths = ", ".join(x.name for x in sorted(pm.sources.paths)) + assert f"EXPECTED {all_paths}" in result.output -def test_contract_file_paths_handles_exclude(project_with_contract, runner, contracts_paths_cmd): - cfg = project_with_contract.config_manager.get_config("compile") +def test_contract_file_paths_argument_handles_exclude( + project_with_contract, runner, contracts_paths_cmd +): + pm = project_with_contract + cfg = pm.config.get_config("compile") failmsg = "Setup failed - missing exclude config (set in ape-config.yaml)." assert "*Excl*" in cfg.exclude, failmsg @@ -482,12 +500,11 @@ def test_contract_file_paths_argument_given_subdir_relative_to_path( project_with_contract, runner, contracts_paths_cmd, name ): pm = project_with_contract - result = runner.invoke(contracts_paths_cmd, name) - all_paths = ", ".join( - x.name - for x in sorted(pm.source_paths) - if x.parent.name == "subdir" and "Excl" not in x.name - ) + arguments = (name, "--project", f"{pm.path}") + result = runner.invoke(contracts_paths_cmd, arguments) + paths = sorted(pm.sources.paths) + + all_paths = ", ".join(x.name for x in paths if x.parent.name == "subdir") assert f"EXPECTED {all_paths}" in result.output @@ -496,7 +513,10 @@ def test_contract_file_paths_argument_missing_vyper( project_with_source_files_contract, runner, contracts_paths_cmd ): name = "VyperContract" - result = runner.invoke(contracts_paths_cmd, name) + pm = project_with_source_files_contract + arguments = (name, "--project", f"{pm.path}") + result = runner.invoke(contracts_paths_cmd, arguments) + expected = ( "Missing compilers for the following file types: '.vy'. " "Possibly, a compiler plugin is not installed or is installed " @@ -510,7 +530,11 @@ def test_contract_file_paths_argument_missing_solidity( project_with_source_files_contract, runner, contracts_paths_cmd ): name = "SolidityContract" - result = runner.invoke(contracts_paths_cmd, name) + pm = project_with_source_files_contract + with pm.isolate_in_tempdir() as tmp_project: + arguments = (name, "--project", f"{tmp_project.path}") + result = runner.invoke(contracts_paths_cmd, arguments) + expected = ( "Missing compilers for the following file types: '.sol'. " "Possibly, a compiler plugin is not installed or is installed " @@ -519,6 +543,19 @@ def test_contract_file_paths_argument_missing_solidity( assert expected in result.output +def test_contract_file_paths_argument_contract_does_not_exist( + project_with_source_files_contract, runner, contracts_paths_cmd +): + name = "MadeUp" + pm = project_with_source_files_contract + with pm.isolate_in_tempdir() as tmp_project: + arguments = (name, "--project", f"{tmp_project.path}") + result = runner.invoke(contracts_paths_cmd, arguments) + + expected = f"Source file '{name}' not found." + assert expected in result.output + + def test_existing_alias_option(runner): @click.command() @existing_alias_argument() @@ -774,7 +811,7 @@ def test_network_choice_custom_adhoc_network(prefix): assert actual.network.name == "custom" -def test_network_choice_custom_config_network(custom_networks_config_dict, temp_config): +def test_network_choice_custom_config_network(custom_networks_config_dict, project): data = copy.deepcopy(custom_networks_config_dict) # Was a bug where couldn't have this name. @@ -783,7 +820,7 @@ def test_network_choice_custom_config_network(custom_networks_config_dict, temp_ _get_networks_sequence_from_cache.cache_clear() network_choice = NetworkChoice() - with temp_config(data): + with project.temp_config(**data): actual = network_choice.convert("ethereum:custom", None, None) assert actual.network.name == "custom" diff --git a/tests/functional/test_compilers.py b/tests/functional/test_compilers.py index ab23662160..1d41447474 100644 --- a/tests/functional/test_compilers.py +++ b/tests/functional/test_compilers.py @@ -7,40 +7,11 @@ from ape.contracts import ContractContainer from ape.exceptions import APINotImplementedError, CompilerError, ContractLogicError, CustomError from ape.types import AddressType -from tests.conftest import skip_if_plugin_installed def test_get_imports(project, compilers): # See ape-solidity for better tests - assert not compilers.get_imports(project.source_paths) - - -def test_missing_compilers_without_source_files(project): - result = project.extensions_with_missing_compilers() - assert result == set() - - -@skip_if_plugin_installed("vyper", "solidity") -def test_missing_compilers_with_source_files(project_with_source_files_contract): - result = project_with_source_files_contract.extensions_with_missing_compilers() - assert ".vy" in result - assert ".sol" in result - - -@skip_if_plugin_installed("vyper", "solidity") -def test_missing_compilers_error_message(project_with_source_files_contract, sender): - missing_exts = project_with_source_files_contract.extensions_with_missing_compilers() - expected = ( - r"ProjectManager has no attribute or contract named 'ContractA'\. " - r"However, there is a source file named 'ContractA.sol', " - r"did you mean to reference a contract name from this source file\? " - r"Else, could it be from one of the missing compilers for extensions: " - rf'{", ".join(sorted(missing_exts))}\?' - ) - with pytest.raises(AttributeError, match=expected): - project_with_source_files_contract.ContractA.deploy( - sender.address, sender.address, sender=sender - ) + assert not compilers.get_imports(project.sources.paths) def test_get_compiler(compilers): @@ -50,16 +21,18 @@ def test_get_compiler(compilers): def test_get_compiler_with_settings(compilers, mock_compiler, project_with_contract): - existing_compilers = compilers._registered_compilers_cache[project_with_contract.path] - all_compilers = {**existing_compilers, mock_compiler.ext: mock_compiler} + _ = compilers.registered_compilers # Ensures cached property is set. + + # Hack in our mock compiler. + compilers.__dict__["registered_compilers"][mock_compiler.ext] = mock_compiler try: - compilers._registered_compilers_cache[project_with_contract.path] = all_compilers compiler_0 = compilers.get_compiler("mock", settings={"bar": "foo"}) compiler_1 = compiler_0.get_compiler("mock", settings={"foo": "bar"}) finally: - compilers._registered_compilers_cache[project_with_contract.path] = existing_compilers + if mock_compiler.ext in compilers.__dict__.get("registered_compilers", {}): + del compilers.__dict__["registered_compilers"][mock_compiler.ext] assert compiler_0.compiler_settings != compiler_1.compiler_settings assert id(compiler_0) != id(compiler_1) @@ -97,47 +70,55 @@ def test_flatten_contract(compilers, project_with_contract): def test_contract_type_collision(compilers, project_with_contract, mock_compiler): - existing_compilers = compilers._registered_compilers_cache[project_with_contract.path] - all_compilers = {**existing_compilers, mock_compiler.ext: mock_compiler} - contracts_folder = project_with_contract.contracts_folder + _ = compilers.registered_compilers # Ensures cached property is set. - try: - compilers._registered_compilers_cache[project_with_contract.path] = all_compilers + # Hack in our mock compiler. + compilers.__dict__["registered_compilers"][mock_compiler.ext] = mock_compiler + try: # Make contracts of type .__mock__ with the same names. existing_contract = next(iter(project_with_contract.contracts.values())) - existing_path = contracts_folder / existing_contract.source_id - new_contract = contracts_folder / f"{existing_contract.name}{mock_compiler.ext}" + assert existing_contract.source_id, "Setup failed: Contract missing source ID!" + existing_path = project_with_contract.path / existing_contract.source_id + new_contract = project_with_contract.path / existing_contract.source_id.replace( + ".json", mock_compiler.ext + ) new_contract.write_text("foobar") + to_compile = [existing_path, new_contract] + compile = compilers.compile(to_compile, project=project_with_contract) with pytest.raises(CompilerError, match="ContractType collision.*"): # Must include existing contract in case not yet compiled. - list(compilers.compile((existing_path, new_contract))) + _ = list(compile) finally: - compilers._registered_compilers_cache[project_with_contract.path] = existing_compilers + if mock_compiler.ext in compilers.__dict__.get("registered_compilers", {}): + del compilers.__dict__["registered_compilers"][mock_compiler.ext] def test_compile_with_settings(mock_compiler, compilers, project_with_contract): - existing_compilers = compilers._registered_compilers_cache[project_with_contract.path] - all_compilers = {**existing_compilers, mock_compiler.ext: mock_compiler} new_contract = project_with_contract.path / f"AMockContract{mock_compiler.ext}" new_contract.write_text("foobar") settings = {"mock": {"foo": "bar"}} + _ = compilers.registered_compilers # Ensures cached property is set. + + # Hack in our mock compiler. + compilers.__dict__["registered_compilers"][mock_compiler.ext] = mock_compiler + try: - compilers._registered_compilers_cache[project_with_contract.path] = all_compilers - list(compilers.compile((new_contract,), settings=settings)) + list(compilers.compile([new_contract], project=project_with_contract, settings=settings)) finally: - compilers._registered_compilers_cache[project_with_contract.path] = existing_compilers + if mock_compiler.ext in compilers.__dict__.get("registered_compilers", {}): + del compilers.__dict__["registered_compilers"][mock_compiler.ext] - actual = mock_compiler.method_calls[0][2]["update"]["compiler_settings"]["mock"] + actual = mock_compiler.method_calls[0][2]["settings"] assert actual == settings["mock"] def test_compile_str_path(compilers, project_with_contract): - path = next(iter(project_with_contract.source_paths)) + path = next(iter(project_with_contract.sources.paths)) actual = compilers.compile((str(path),)) contract_name = path.stem assert contract_name in [x.name for x in actual] diff --git a/tests/functional/test_config.py b/tests/functional/test_config.py index e809ddc8c1..87efd0e0e8 100644 --- a/tests/functional/test_config.py +++ b/tests/functional/test_config.py @@ -4,76 +4,87 @@ import pytest from pydantic_settings import SettingsConfigDict -from ape.api import ConfigEnum, PluginConfig -from ape.api.networks import LOCAL_NETWORK_NAME -from ape.managers.config import ( - CONFIG_FILE_NAME, - ConfigManager, - DeploymentConfigCollection, - merge_configs, -) +from ape.api.config import ApeConfig, ConfigEnum, PluginConfig +from ape.exceptions import ConfigError +from ape.managers.config import CONFIG_FILE_NAME, merge_configs from ape.types import GasLimit -from ape.utils import create_tempdir from ape_ethereum.ecosystem import NetworkConfig from ape_networks import CustomNetwork from tests.functional.conftest import PROJECT_WITH_LONG_CONTRACTS_FOLDER -def test_deployments(networks_connected_to_tester, owner, vyper_contract_container, config): - networks = networks_connected_to_tester # Connection needs to lookup config. +def test_model_validate_empty(): + data: dict = {} + cfg = ApeConfig.model_validate(data) + assert cfg.contracts_folder is None + + +def test_model_validate(): + data = {"contracts_folder": "src"} + cfg = ApeConfig.model_validate(data) + assert cfg.contracts_folder == "src" + + +def test_model_validate_none_contracts_folder(): + data = {"contracts_folder": None} + cfg = ApeConfig.model_validate(data) + assert cfg.contracts_folder is None + + +def test_model_validate_path_contracts_folder(): + path = Path.home() / "contracts" + data = {"contracts_folder": path} + cfg = ApeConfig.model_validate(data) + assert cfg.contracts_folder == str(path) + + +def test_deployments(networks_connected_to_tester, owner, vyper_contract_container, project): + _ = networks_connected_to_tester # Connection needs to lookup config. # First, obtain a "previously-deployed" contract. instance = vyper_contract_container.deploy(1000200000, sender=owner) address = instance.address # Create a config using this new contract for a "later time". - data = { + deploys = { **_create_deployments(address=address, contract_name=instance.contract_type.name), - "valid_ecosystems": {"ethereum": networks.ethereum}, - "valid_networks": [LOCAL_NETWORK_NAME], } - deploy_config = DeploymentConfigCollection(root=data) - assert deploy_config.root["ethereum"]["local"][0]["address"] == address - - orig = config.deployments - config.deployments = deploy_config - try: - # Ensure we can reference the deployment on the contract. + with project.temp_config(**{"deployments": deploys}): + deploy_config = project.config.deployments + assert deploy_config["ethereum"]["local"][0]["address"] == address deployment = vyper_contract_container.deployments[0] - finally: - config.deployments = orig assert deployment.address == instance.address -def test_deployments_integer_type_addresses(networks): - data = { +def test_deployments_integer_type_addresses(networks, project): + deploys = { **_create_deployments(address=0x0C25212C557D00024B7CA3DF3238683A35541354), - "valid_ecosystems": {"ethereum": networks.ethereum}, - "valid_networks": [LOCAL_NETWORK_NAME], } - config = DeploymentConfigCollection(root=data) - assert ( - config.root["ethereum"]["local"][0]["address"] - == "0x0c25212c557d00024b7Ca3df3238683A35541354" - ) + with project.temp_config(**{"deployments": deploys}): + deploy_config = project.config.deployments + assert ( + deploy_config["ethereum"]["local"][0]["address"] + == "0x0c25212c557d00024b7Ca3df3238683A35541354" + ) -@pytest.mark.parametrize( - "ecosystem_names,network_names,err_part", - [(["ERRORS"], ["mainnet"], "ecosystem"), (["ethereum"], ["ERRORS"], "network")], -) -def test_deployments_bad_value( - ecosystem_names, network_names, err_part, ape_caplog, plugin_manager -): - deployments = _create_deployments() - all_ecosystems = dict(plugin_manager.ecosystems) - ecosystem_dict = {e: all_ecosystems[e] for e in ecosystem_names if e in all_ecosystems} - data = {**deployments, "valid_ecosystems": ecosystem_dict, "valid_networks": network_names} - ape_caplog.assert_last_log_with_retries( - lambda: DeploymentConfigCollection(root=data), - f"Invalid {err_part}", - ) +def test_deployments_bad_ecosystem(project): + deployments = _create_deployments(ecosystem_name="madeup") + with project.temp_config(deployments=deployments): + with pytest.raises( + ConfigError, match=r"Invalid ecosystem 'madeup' in deployments config\." + ): + _ = project.config.deployments + + +def test_deployments_bad_network(project): + deployments = _create_deployments(network_name="madeup") + with project.temp_config(deployments=deployments): + with pytest.raises( + ConfigError, match=r"Invalid network 'ethereum:madeup' in deployments config\." + ): + _ = project.config.deployments def _create_deployments( @@ -94,9 +105,9 @@ def _create_deployments( } -def test_ethereum_network_configs(config, temp_config): +def test_ethereum_network_configs(config, project): eth_config = {"ethereum": {"sepolia": {"default_provider": "test"}}} - with temp_config(eth_config): + with project.temp_config(**eth_config): actual = config.get_config("ethereum") assert actual.sepolia.default_provider == "test" @@ -123,11 +134,11 @@ def _sepolia_with_gas_limit(gas_limit: GasLimit) -> dict: @pytest.mark.parametrize("gas_limit", ("auto", "max")) -def test_network_gas_limit_string_config(gas_limit, config, temp_config): +def test_network_gas_limit_string_config(gas_limit, project): eth_config = _sepolia_with_gas_limit(gas_limit) - with temp_config(eth_config): - actual = config.get_config("ethereum") + with project.temp_config(**eth_config): + actual = project.config.get_config("ethereum") assert actual.sepolia.gas_limit == gas_limit @@ -136,34 +147,33 @@ def test_network_gas_limit_string_config(gas_limit, config, temp_config): @pytest.mark.parametrize("gas_limit", (1234, "1234", 0x4D2, "0x4D2")) -def test_network_gas_limit_numeric_config(gas_limit, config, temp_config): +def test_network_gas_limit_numeric_config(gas_limit, project): eth_config = _sepolia_with_gas_limit(gas_limit) - - with temp_config(eth_config): - actual = config.get_config("ethereum") - + with project.temp_config(**eth_config): + actual = project.config.get_config("ethereum") assert actual.sepolia.gas_limit == 1234 # Local configuration is unaffected assert actual.local.gas_limit == "max" -def test_network_gas_limit_invalid_numeric_string(config, temp_config): +def test_network_gas_limit_invalid_numeric_string(project): """ Test that using hex strings for a network's gas_limit config must be prefixed with '0x' """ eth_config = _sepolia_with_gas_limit("4D2") - with pytest.raises(ValueError, match="Gas limit hex str must include '0x' prefix."): - with temp_config(eth_config): - pass + with project.temp_config(**eth_config): + with pytest.raises(AttributeError, match="Gas limit hex str must include '0x' prefix."): + _ = project.config.ethereum -def test_dependencies(project_with_dependency_config, config): +def test_dependencies(project_with_dependency_config): + config = project_with_dependency_config.config assert len(config.dependencies) == 1 - assert config.dependencies[0].name == "testdependency" - assert config.dependencies[0].config_override["contracts_folder"] == "source/v0.1" - assert config.dependencies[0].local == str(PROJECT_WITH_LONG_CONTRACTS_FOLDER) + assert config.dependencies[0]["name"] == "testdependency" + assert config.dependencies[0]["config_override"]["contracts_folder"] == "source/v0.1" + assert config.dependencies[0]["local"] == str(PROJECT_WITH_LONG_CONTRACTS_FOLDER) def test_config_access(): @@ -210,8 +220,8 @@ def test_global_config(data_folder, config): number_of_accounts: 11 """.strip() config_file.write_text(config_content) - config.load(force_reload=True) - assert config.get_config("test").number_of_accounts == 11 + global_config = config.load_global_config() + assert global_config.get_config("test").number_of_accounts == 11 config_file.unlink(missing_ok=True) @@ -288,50 +298,11 @@ class MyConfig(PluginConfig): assert actual.my_enum == MyEnum.FOO -def test_config_manager_loads_on_init(config): - """ - This is needed or else tools may interact with the config manager - before it has processed the config file. - """ - name = "nametestvalidate" - - with create_tempdir() as path: - config = f"name: {name}" - (path / "ape-config.yaml").write_text(config) - manager = ConfigManager(REQUEST_HEADER={}, DATA_FOLDER=Path.cwd(), PROJECT_FOLDER=path) - assert manager.name == name - - -def test_load_does_not_call_project_manager(temp_config, config): - """ - It is highly critical that `load()` does not call anything from - `project_manager` as it is not loaded yet in the manager access mixin. - """ - orig = config.project_manager.path - path = Path("_should_not_be_in_parents_") - try: - with temp_config({"contracts_folder": "src"}): - config.project_manager.path = path - assert config.load(force_reload=True) - assert path.name not in [x.name for x in config.contracts_folder.parents] - finally: - config.project_manager.path = orig - - -def test_contracts_folder_with_hyphen(temp_config): - with temp_config({"contracts-folder": "src"}) as project: +def test_contracts_folder_with_hyphen(project): + with project.temp_config(**{"contracts-folder": "src"}): assert project.contracts_folder.name == "src" -def test_compiler_cache_folder(temp_config): - with temp_config( - {"contracts_folder": "smarts", "compile": {"cache_folder": ".cash"}} - ) as project: - assert project.contracts_folder.name == "smarts" - assert project.compiler_cache_folder.name == ".cash" - assert str(project.contracts_folder) not in str(project.compiler_cache_folder) - - def test_custom_network(): chain_id = 11191919191991918223773 data = { diff --git a/tests/functional/test_console.py b/tests/functional/test_console.py index 0e46495b81..a55650fea3 100644 --- a/tests/functional/test_console.py +++ b/tests/functional/test_console.py @@ -71,5 +71,5 @@ def test_custom_exception_handler_handles_non_ape_project(mocker): custom_exception_handler(session, None, err, None) # We are expecting the local project's path in the handler. - expected_path = ManagerAccessMixin.project_manager.path + expected_path = ManagerAccessMixin.local_project.path handler_patch.assert_called_once_with(err, [expected_path]) diff --git a/tests/functional/test_contract_container.py b/tests/functional/test_contract_container.py index d415591689..29fbde0252 100644 --- a/tests/functional/test_contract_container.py +++ b/tests/functional/test_contract_container.py @@ -121,11 +121,9 @@ def test_deploy_proxy( def test_source_path_in_project(project_with_contract): - contracts_folder = project_with_contract.contracts_folder contract = project_with_contract.contracts["Contract"] contract_container = project_with_contract.get_contract("Contract") - expected = contracts_folder / contract.source_id - assert contract_container.source_path is not None + expected = project_with_contract.path / contract.source_id assert contract_container.source_path.is_file() assert contract_container.source_path == expected diff --git a/tests/functional/test_contract_instance.py b/tests/functional/test_contract_instance.py index f4dc9dd4e2..7a429de9b7 100644 --- a/tests/functional/test_contract_instance.py +++ b/tests/functional/test_contract_instance.py @@ -761,14 +761,12 @@ def test_identifier_lookup(vyper_contract_instance): def test_source_path(project_with_contract, owner): - contracts_folder = project_with_contract.contracts_folder - contracts = project_with_contract.load_contracts() - contract = contracts["Contract"] - contract_instance = owner.deploy(project_with_contract.get_contract("Contract")) - expected = contracts_folder / contract.source_id - - assert contract_instance.source_path.is_file() - assert contract_instance.source_path == expected + contract = project_with_contract.get_contract("Contract") + instance = owner.deploy(contract) + expected = project_with_contract.path / contract.source_id + + assert instance.source_path.is_file() + assert instance.source_path == expected def test_fallback(fallback_contract, owner): diff --git a/tests/functional/test_contracts_cache.py b/tests/functional/test_contracts_cache.py index ad07cc45a2..c8639186d2 100644 --- a/tests/functional/test_contracts_cache.py +++ b/tests/functional/test_contracts_cache.py @@ -146,7 +146,7 @@ def test_contracts_getitem_contract_not_found(chain, eth_tester_provider): "Try installing an explorer plugin using .*ape plugins install etherscan.*, " r"or using a network with explorer support\." ) - with pytest.raises(IndexError, match=expected): + with pytest.raises(KeyError, match=expected): _ = chain.contracts[new_address] @@ -330,7 +330,7 @@ def test_delete_contract(vyper_contract_instance, chain): assert vyper_contract_instance.address not in chain.contracts # Ensure we can't access it. - with pytest.raises(IndexError): + with pytest.raises(KeyError): _ = chain.contracts[vyper_contract_instance.address] @@ -352,9 +352,9 @@ def test_delete_proxy(vyper_contract_instance, chain, ethereum, owner): assert proxy.address not in chain.contracts # Ensure we can't access it. - with pytest.raises(IndexError): + with pytest.raises(KeyError): _ = chain.contracts[proxy.address] # Ensure we can't access the target either. - with pytest.raises(IndexError): + with pytest.raises(KeyError): _ = chain.contracts[proxy_info.target] diff --git a/tests/functional/test_coverage.py b/tests/functional/test_coverage.py index b884a986ee..2bfaf191da 100644 --- a/tests/functional/test_coverage.py +++ b/tests/functional/test_coverage.py @@ -1,7 +1,10 @@ from pathlib import Path import pytest +from ethpm_types.source import ContractSource, Source +from ape.pytest.config import ConfigWrapper +from ape.pytest.coverage import CoverageData, CoverageTracker from ape.types.coverage import ( ContractCoverage, ContractSourceCoverage, @@ -156,3 +159,38 @@ def test_miss_count(self, coverage_report): def test_line_rate(self, coverage_report): assert coverage_report.line_rate == 2 / 3 + + +class TestCoverageData: + @pytest.fixture(scope="class") + def src(self): + return Source.model_validate("test") + + @pytest.fixture(scope="class") + def contract_source(self, vyper_contract_type, src): + return ContractSource(contract_type=vyper_contract_type, source=src) + + @pytest.fixture(scope="class") + def coverage_data(self, project, contract_source): + return CoverageData(project.path, (contract_source,)) + + def test_report(self, coverage_data): + actual = coverage_data.report + assert isinstance(actual, CoverageReport) + + +class TestCoverageTracker: + @pytest.fixture + def pytest_config(self, mocker): + return mocker.MagicMock() + + @pytest.fixture(scope="class") + def config_wrapper(self, pytest_config): + return ConfigWrapper(pytest_config) + + def test_data(self, pytest_config): + tracker = CoverageTracker(pytest_config) + assert tracker.data is not None + actual = tracker.data.base_path + expected = tracker.local_project.path + assert actual == expected diff --git a/tests/functional/test_dependencies.py b/tests/functional/test_dependencies.py index a70358d0d0..ad7f69e384 100644 --- a/tests/functional/test_dependencies.py +++ b/tests/functional/test_dependencies.py @@ -1,20 +1,22 @@ -import os +import json import shutil from pathlib import Path import pytest +from ethpm_types import PackageManifest from pydantic import ValidationError -from ape.exceptions import ProjectError -from ape.managers.project.dependency import GithubDependency, LocalDependency, NpmDependency +import ape +from ape.managers.project import Dependency, LocalProject, PackagesCache, Project, ProjectManager from ape.utils import create_tempdir +from ape_pm.dependency import GithubDependency, LocalDependency, NpmDependency @pytest.fixture def oz_dependencies_config(): def _create_oz_dependency(version: str) -> dict: return { - "name": "OpenZeppelin", + "name": "openzeppelin", "version": version, "github": "OpenZeppelin/openzeppelin-contracts", } @@ -23,70 +25,69 @@ def _create_oz_dependency(version: str) -> dict: @pytest.fixture -def local_dependency(project_with_dependency_config): - return project_with_dependency_config.dependencies["testdependency"]["local"] - - -@pytest.fixture -def project_with_downloaded_dependencies(temp_config, config, oz_dependencies_config): +def project_with_downloaded_dependencies(project, oz_dependencies_config): + # The path to source-test data. manifests_directory = Path(__file__).parent / "data" / "manifests" - oz_manifests = manifests_directory / "OpenZeppelin" - oz_manifests_dest = config.packages_folder / "OpenZeppelin" - - if oz_manifests_dest.is_dir(): - shutil.rmtree(oz_manifests_dest) - - shutil.copytree(oz_manifests, oz_manifests_dest) - with temp_config(oz_dependencies_config) as project: + oz_manifests = manifests_directory / "openzeppelin" + + # Copy test-data in the DATA_FOLDER, as if these were already fetched. + base = project.dependencies.packages_cache + package_id = "OpenZeppelin_openzeppelin-contracts" + oz_manifests_dest = base.manifests_folder / package_id + oz_manifests_dest.mkdir(exist_ok=True, parents=True) + + for version in ("3.1.0", "4.4.2"): + manifest_source = oz_manifests / version / "openzeppelin.json" + manifest_dest = oz_manifests_dest / f"{version.replace('.', '_')}.json" + manifest_dest.unlink(missing_ok=True) + manifest_dest.write_text(manifest_source.read_text()) + + # Also, copy in the API data + api_dest = base.api_folder / package_id / f"{version.replace('.', '_')}.json" + api_dest.unlink(missing_ok=True) + cfg = [x for x in oz_dependencies_config["dependencies"] if x["version"] == version][0] + api_dest.parent.mkdir(exist_ok=True, parents=True) + api_dest.write_text(json.dumps(cfg)) + + with project.temp_config(**oz_dependencies_config): yield project -def test_two_dependencies_with_same_name(project_with_downloaded_dependencies): - name = "OpenZeppelin" - oz_310 = project_with_downloaded_dependencies.dependencies[name]["3.1.0"] - oz_442 = project_with_downloaded_dependencies.dependencies[name]["4.4.2"] - base_uri = "https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag" +def test_repr(project): + assert isinstance(project, LocalProject), "Setup failed - expecting local project" + actual = repr(project.dependencies) + path = str(project.path).replace(str(Path.home()), "$HOME") + expected = f"" + assert actual == expected - assert oz_310.version == "3.1.0" - assert oz_310.name == name - assert str(oz_310.uri) == f"{base_uri}/v3.1.0" - assert oz_442.version == "4.4.2" - assert oz_442.name == name - assert str(oz_442.uri) == f"{base_uri}/v4.4.2" - -def test_dependency_contracts_folder(config, local_dependency): +def test_repr_manifest_project(): """ - The local dependency fixture uses a longer contracts folder path. - This test ensures that the contracts folder field is honored, specifically - In the case when it contains sub-paths. + Tests against assuming the dependency manager is related + to a local project (could be from a manifest-project). """ - actual = local_dependency.config_override["contracts_folder"] - assert actual == "source/v0.1" - - -def test_local_dependency(local_dependency, config): - assert local_dependency.name == "testdependency" - assert local_dependency.version_id == "local" - assert str(local_dependency.uri).startswith("file://") + manifest = PackageManifest() + project = Project.from_manifest(manifest, config_override={"name": "testname123"}) + dm = project.dependencies + actual = repr(dm) + expected = "" + assert actual == expected -def test_access_dependency_contracts(project_with_downloaded_dependencies): - name = "OpenZeppelin" - oz_442 = project_with_downloaded_dependencies.dependencies[name]["4.4.2"] - contract = oz_442.AccessControl - assert contract.contract_type.name == "AccessControl" +def test_len(project): + actual = len(project.dependencies) + expected = len(project.config.dependencies) + assert actual == expected @pytest.mark.parametrize("ref", ("main", "v1.0.0", "1.0.0")) -def test_dependency_using_reference(ref, recwarn, dependency_manager): +def test_decode_dependency_using_reference(ref, recwarn, project): dependency_config = { "github": "apeworx/testfoobartest", "name": "foobar", "ref": ref, } - dependency = dependency_manager.decode_dependency(dependency_config) - _ = dependency.cached_manifest + dependency = project.dependencies.decode_dependency(**dependency_config) assert dependency.version is None assert dependency.ref == ref assert str(dependency.uri) == f"https://github.com/apeworx/testfoobartest/tree/{ref}" @@ -96,91 +97,357 @@ def test_dependency_using_reference(ref, recwarn, dependency_manager): assert DeprecationWarning not in [w.category for w in recwarn.list] -def test_npm_dependency(mock_home_directory): - name = "@gnosis.pm" - package = "safe-singleton-factory" - version = "1.0.0" - dependency = NpmDependency(name=package, npm=f"{name}/{package}", version=version) - with create_tempdir() as temp_dir: - os.chdir(str(temp_dir)) - - # Test with both local and global node modules install. - for base in (temp_dir, mock_home_directory): - package_folder = base / "node_modules" / name / package - contracts_folder = package_folder / "contracts" - contracts_folder.mkdir(parents=True) - package_json = package_folder / "package.json" - package_json.write_text(f'{{"version": "{version}"}}') - file = contracts_folder / "contract.json" - source_content = '{"abi": []}' - file.write_text(source_content) - - manifest = dependency.extract_manifest(use_cache=False) - - assert manifest.sources - assert str(manifest.sources["contract.json"].content) == f"{source_content}\n" - - shutil.rmtree(package_folder) - +def test_dependency_with_multiple_versions(project_with_downloaded_dependencies): + """ + Testing the case where we have OpenZeppelin installed multiple times + with different versions. + """ + name = "openzeppelin" + dm = project_with_downloaded_dependencies.dependencies -def test_decode_with_config_override(dependency_manager, project): - settings = {".json": {"evm_version": "paris"}} - path = "__test_path__" - base_path = project.path / path - contracts_path = base_path / "contracts" - contracts_path.mkdir(parents=True) - (contracts_path / "contract.json").write_text('{"abi": []}') + # We can get both projects at once! One for each version. + oz_310 = dm.get_dependency(name, "3.1.0", allow_install=False) + oz_442 = dm.get_dependency(name, "4.4.2", allow_install=False) + base_uri = "https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag" - data = {"name": "FooBar", "local": path, "config_override": settings} - dependency = dependency_manager.decode_dependency(data) - assert dependency.config_override == settings + assert oz_310.version == "3.1.0" + assert oz_310.name == name + assert str(oz_310.uri) == f"{base_uri}/v3.1.0" + assert oz_442.version == "4.4.2" + assert oz_442.name == name + assert str(oz_442.uri) == f"{base_uri}/v4.4.2" -def test_compile(project_with_downloaded_dependencies): - name = "OpenZeppelin" - oz_442 = project_with_downloaded_dependencies.dependencies[name]["4.4.2"] - # NOTE: the test data is pre-compiled because the ape-solidity plugin is required. - actual = oz_442.compile() - assert len(actual.contract_types) > 0 +def test_decode_dependency_with_config_override(project): + with project.isolate_in_tempdir() as tmp_project: + settings = {".json": {"evm_version": "paris"}} + path = "__test_path__" + base_path = tmp_project.path / path + contracts_path = base_path / "contracts" + contracts_path.mkdir(parents=True, exist_ok=True) + (contracts_path / "contract.json").write_text('{"abi": []}') + data = {"name": "FooBar", "local": path, "config_override": settings} + dependency = tmp_project.dependencies.decode_dependency(**data) + assert dependency.config_override == settings + + +def test_uri_map(project_with_dependency_config): + actual = project_with_dependency_config.dependencies.uri_map + here = Path(__file__).parent + expected = f"file://{here}/data/projects/LongContractsFolder" + assert "testdependency" in actual + assert str(actual["testdependency"]) == expected + + +def test_get_dependency_by_package_id(project_with_downloaded_dependencies): + dm = project_with_downloaded_dependencies.dependencies + actual = dm.get_dependency("OpenZeppelin/openzeppelin-contracts", "4.4.2") + assert actual.name == "openzeppelin" + assert actual.version == "4.4.2" + assert actual.package_id == "OpenZeppelin/openzeppelin-contracts" -def test_compile_with_config_override(dependency_manager, project): - # NOTE: It is important that `contracts_folder` is present in settings - # for this test to test against a previous bug where we got multiple values. - override = {"contracts_folder": "src"} - path = "__test_path__" - contracts_path = project.path / path / "src" - contracts_path.mkdir(exist_ok=True, parents=True) - (contracts_path / "contract.json").write_text('{"abi": []}') - data = {"name": "FooBar", "local": path, "config_override": override} - dependency = dependency_manager.decode_dependency(data) - actual = dependency.compile() - assert len(actual.contract_types) > 0 +def test_get_dependency_by_name(project_with_downloaded_dependencies): + dm = project_with_downloaded_dependencies.dependencies + actual = dm.get_dependency("openzeppelin", "4.4.2") + assert actual.name == "openzeppelin" + assert actual.version == "4.4.2" + assert actual.package_id == "OpenZeppelin/openzeppelin-contracts" + +def test_get_versions(project_with_downloaded_dependencies): + dm = project_with_downloaded_dependencies.dependencies + name = "openzeppelin" + actual = list(dm.get_versions(name)) + assert len(actual) == 2 -def test_github_dependency_ref_or_version_is_required(): - expected = r"GitHub dependency must have either ref or version specified" - with pytest.raises(ValidationError, match=expected): - _ = GithubDependency(name="foo", github="asdf") +def test_add(project): + with project.isolate_in_tempdir() as tmp_project: + contracts_path = tmp_project.path / "src" + contracts_path.mkdir(exist_ok=True, parents=True) + (contracts_path / "contract.json").write_text('{"abi": []}') + data = {"name": "FooBar", "local": f"{tmp_project.path}"} -def test_dependency_missing_sources(): + dependency = project.dependencies.add(data) + assert isinstance(dependency, Dependency) + assert dependency.name == "foobar" + assert dependency.version == "local" + + # After adding, we should be able to "get" it. + dep2 = project.dependencies.get_dependency( + dependency.package_id, dependency.version, allow_install=False + ) + assert dep2 == dependency + + # Attempt to add again. + dep3 = project.dependencies.add(data) + assert dep3 == dependency + + +def test_add_dependency_with_dependencies(project, with_dependencies_project_path): + dm = project.dependencies + data = {"name": "wdep", "local": with_dependencies_project_path} + actual = dm.add(data) + assert actual.name == "wdep" + assert actual.version == "local" + + +def test_install(project): + with project.isolate_in_tempdir() as tmp_project: + contracts_path = tmp_project.path / "src" + contracts_path.mkdir(exist_ok=True, parents=True) + (contracts_path / "contract.json").write_text('{"abi": []}') + data = {"name": "FooBar", "local": f"{tmp_project.path}"} + + # Show can install from DependencyManager. + dependency = tmp_project.dependencies.install(**data) + assert isinstance(dependency, Dependency) + + # Show can install from Dependency. + project = dependency.install() + assert isinstance(project, ProjectManager) + + # Delete project path (but not manifest) and install again. + shutil.rmtree(dependency.project_path) + dependency._installation = None + project = dependency.install() + assert isinstance(project, ProjectManager) + assert dependency.project_path.is_dir() # Was re-created from manifest sources. + + +def test_install_dependencies_of_dependencies(project, with_dependencies_project_path): + dm = project.dependencies + actual = dm.install(local=with_dependencies_project_path, name="wdep") + assert actual.name == "wdep" + # TODO: Check deps of deps also installed + # deps_of_deps = [x for x in actual.project.dependencies.specified] + + +def test_uninstall(project_with_downloaded_dependencies): + name = "openzeppelin" + version = "4.4.2" + dm = project_with_downloaded_dependencies.dependencies + dependency = dm.get_dependency(name, version) + dependency.uninstall() + assert not any(d.name == name and d.version == version for d in dm.installed) + + +def test_unpack(project_with_downloaded_dependencies): + dm = project_with_downloaded_dependencies.dependencies + dep = dm.get_dependency("openzeppelin", "4.4.2") + with create_tempdir() as tempdir: + created = list(dep.unpack(tempdir)) + assert len(created) == 1 + assert created[0].package_id == "OpenZeppelin/openzeppelin-contracts" + + files = [x.name for x in (tempdir / "openzeppelin" / "4.4.2" / "contracts").iterdir()] + assert "token" in files + assert "access" in files + + +def test_unpack_dependencies_of_dependencies(project, with_dependencies_project_path): + dep = project.dependencies.install(local=with_dependencies_project_path, name="wdep") + with create_tempdir() as tempdir: + dep.unpack(tempdir) + + # TODO: Check for dependency of dependency! + + +class TestPackagesCache: + @pytest.fixture + def cache(self): + return PackagesCache() + + def test_root(self, cache, data_folder): + actual = cache.root + expected = data_folder / "packages" + assert actual == expected + + def test_api_folder(self, cache, data_folder): + actual = cache.api_folder + expected = data_folder / "packages" / "api" + assert actual == expected + + def test_get_api_path(self, cache, data_folder): + package_id = "this/is/my_package-ID" + version = "version12/5.54" + actual = cache.get_api_path(package_id, version) + expected = ( + data_folder / "packages" / "api" / "this_is_my_package-ID" / "version12_5_54.json" + ) + assert actual == expected + + def test_cache_api(self, cache): + dep = LocalDependency(name="depabc", local=Path("depabc")) + path = cache.cache_api(dep) + assert path.is_file() + assert path == cache.get_api_path("depabc", "local") + actual = json.loads(path.read_text()) + assert actual == {"name": "depabc", "local": "depabc"} + + +class TestLocalDependency: + NAME = "testlocaldep" + VERSION = "1.0.0" + PATH = Path.cwd() + + @pytest.fixture + def dependency(self): + return LocalDependency(local=self.PATH, name=self.NAME, version=self.VERSION) + + @property + def clean_path(self) -> str: + return str(self.PATH).replace(str(Path.home()), "$HOME") + + def test_repr(self, dependency): + actual = repr(dependency) + expected = f"" + assert actual == expected + + def test_name(self, dependency): + assert dependency.name == self.NAME + + def test_version(self, dependency): + assert dependency.version == self.VERSION + + def test_uri(self, dependency): + assert dependency.uri == self.PATH.as_uri() + + +class TestNpmDependency: + NAME = "@gnosis.pm" + PACKAGE = "safe-singleton-factory" + VERSION = "1.0.0" + + @pytest.fixture + def project_with_npm_dependency(self): + with create_tempdir() as temp_path: + yield ape.Project(temp_path) + + @pytest.fixture(params=("local", "global")) + def node_modules_path(self, project_with_npm_dependency, request, mock_home_directory): + pm = project_with_npm_dependency + base = pm.path if request.param == "local" else mock_home_directory + package_folder = base / "node_modules" / self.NAME / self.PACKAGE + contracts_folder = package_folder / "contracts" + contracts_folder.mkdir(parents=True) + package_json = package_folder / "package.json" + package_json.write_text(f'{{"version": "{self.VERSION}"}}') + file = contracts_folder / "contract.json" + source_content = '{"abi": []}' + file.write_text(source_content) + yield base + + def test_fetch(self, node_modules_path, project_with_npm_dependency): + pm = project_with_npm_dependency + dependency = NpmDependency( + name=self.PACKAGE, + npm=f"{self.NAME}/{self.PACKAGE}", + version=self.VERSION, + project=pm, + ) + dependency.fetch(pm.path / "foo") + assert len([x for x in (pm.path / "foo").iterdir()]) > 0 + + +class TestGitHubDependency: + def test_ref_or_version_is_required(self): + expected = r"GitHub dependency must have either ref or version specified" + with pytest.raises(ValidationError, match=expected): + _ = GithubDependency(name="foo", github="asdf") + + +class TestDependency: + @pytest.fixture + def api(self): + return LocalDependency(local=Path.cwd(), name="ooga", version="1.0.0") + + @pytest.fixture + def dependency(self, api, project): + return Dependency(api, project) + + def test_repr(self, dependency): + actual = repr(dependency) + path = str(Path.cwd()).replace(str(Path.home()), "$HOME") + expected = f"" + assert actual == expected + + def test_project_path(self, dependency, data_folder): + actual = dependency.project_path + name = dependency.api.package_id.replace("/", "_") + expected = data_folder / "packages" / "projects" / name / "1_0_0" + assert actual == expected + + def test_api_path(self, dependency, data_folder): + actual = dependency.api_path + name = dependency.api.package_id.replace("/", "_") + expected = data_folder / "packages" / "api" / name / "1_0_0.json" + assert actual == expected + + def test_manifest_path(self, dependency, data_folder): + actual = dependency.manifest_path + name = dependency.api.package_id.replace("/", "_") + expected = data_folder / "packages" / "manifests" / name / "1_0_0.json" + assert actual == expected + + +class TestProject: """ - This raises an error because most-likely the dependency - was not configured correctly. + All tests related to a dependency's project. """ - name = "depmissingsrcs" - expected = ( - rf"No source files found in dependency '{name}'\. " - r"Try adjusting its config using `config_override` to get Ape to recognize the project\. " - r"\nMore information: " - r"https://docs.apeworx.io/ape/stable/userguides/dependencies.html#config-override" - ) - with create_tempdir() as temp_dir: - dependency = LocalDependency(name=name, local=str(temp_dir)) - - # Raises because there are no source files in temp_dir. - with pytest.raises(ProjectError, match=expected): - dependency.extract_manifest() + @pytest.fixture + def project_from_dependency(self, project_with_dependency_config): + dependencies = project_with_dependency_config.dependencies + return dependencies["testdependency"]["releases/v6"] + + def test_path(self, project_from_dependency): + assert project_from_dependency.path.is_dir() + + def test_contracts_folder(self, project_from_dependency): + """ + The local dependency fixture uses a longer contracts folder path. + This test ensures that the contracts folder field is honored, specifically + In the case when it contains sub-paths. + """ + actual = project_from_dependency.contracts_folder + expected = project_from_dependency.path / "source" / "v0.1" + assert actual == expected + + def test_load_contracts(self, project_with_downloaded_dependencies): + name = "openzeppelin" + options = project_with_downloaded_dependencies.dependencies[name] + project = options["4.4.2"] + # NOTE: the test data is pre-compiled because the ape-solidity plugin is required. + actual = project.load_contracts() + assert len(actual) > 0 + + def test_load_contracts_with_config_override(self, project): + with project.isolate_in_tempdir() as tmp_project: + # NOTE: It is important that `contracts_folder` is present in settings + # for this test to test against a previous bug where we got multiple values. + override = {"contracts_folder": "src"} + contracts_path = tmp_project.path / "src" + contracts_path.mkdir(exist_ok=True, parents=True) + (contracts_path / "contract.json").write_text('{"abi": []}') + data = {"name": "FooBar", "local": f"{tmp_project.path}", "config_override": override} + tmp_project.dependencies.install(**data) + proj = tmp_project.dependencies.get("foobar", "local") + assert proj.config.contracts_folder == "src" + + assert proj.contracts_folder == proj.path / "src" + assert proj.contracts_folder.is_dir() + assert [x.name for x in proj.sources.paths] == ["contract.json"] + actual = proj.load_contracts() + assert len(actual) > 0 + + def test_getattr(self, project_with_downloaded_dependencies): + """ + Access contracts using __getattr__ from the dependency's project. + """ + name = "openzeppelin" + oz_442 = project_with_downloaded_dependencies.dependencies.get_dependency(name, "4.4.2") + contract = oz_442.project.AccessControl + assert contract.contract_type.name == "AccessControl" diff --git a/tests/functional/test_ecosystem.py b/tests/functional/test_ecosystem.py index c462e03664..618c512af1 100644 --- a/tests/functional/test_ecosystem.py +++ b/tests/functional/test_ecosystem.py @@ -7,18 +7,11 @@ from ethpm_types import ContractType, ErrorABI from ethpm_types.abi import ABIType, EventABI, MethodABI -from ape.api import PluginConfig from ape.api.networks import LOCAL_NETWORK_NAME, NetworkAPI from ape.exceptions import CustomError, DecodingError, NetworkError, NetworkNotFoundError from ape.types import AddressType from ape.utils import DEFAULT_LOCAL_TRANSACTION_ACCEPTANCE_TIMEOUT -from ape_ethereum.ecosystem import ( - BLUEPRINT_HEADER, - BaseEthereumConfig, - Block, - Ethereum, - EthereumConfig, -) +from ape_ethereum.ecosystem import BLUEPRINT_HEADER, BaseEthereumConfig, Block from ape_ethereum.transactions import ( DynamicFeeTransaction, Receipt, @@ -52,8 +45,8 @@ def event_abi(vyper_contract_instance): @pytest.fixture -def custom_ecosystem_config( - custom_networks_config_dict, temp_config, networks, custom_network_name_0 +def configured_custom_ecosystem( + custom_networks_config_dict, project, networks, custom_network_name_0 ): data = copy.deepcopy(custom_networks_config_dict) data["networks"]["custom"][0]["ecosystem"] = CUSTOM_ECOSYSTEM_NAME @@ -62,7 +55,7 @@ def custom_ecosystem_config( # it were from a plugin. data[CUSTOM_ECOSYSTEM_NAME] = {"default_network": custom_network_name_0} - with temp_config(data): + with project.temp_config(**data): yield @@ -70,7 +63,7 @@ def test_name(ethereum): assert ethereum.name == "ethereum" -def test_name_when_custom(custom_ecosystem_config, networks): +def test_name_when_custom(configured_custom_ecosystem, networks): ecosystem = networks.get_ecosystem(CUSTOM_ECOSYSTEM_NAME) actual = ecosystem.name expected = CUSTOM_ECOSYSTEM_NAME @@ -261,14 +254,14 @@ def test_block_handles_snake_case_parent_hash(eth_tester_provider, sender, recei assert redefined_block.parent_hash == latest_block.parent_hash -def test_transaction_acceptance_timeout(temp_config, config, networks): +def test_transaction_acceptance_timeout(project, networks): assert ( networks.provider.network.transaction_acceptance_timeout == DEFAULT_LOCAL_TRANSACTION_ACCEPTANCE_TIMEOUT ) new_value = DEFAULT_LOCAL_TRANSACTION_ACCEPTANCE_TIMEOUT + 1 timeout_config = {"ethereum": {"local": {"transaction_acceptance_timeout": new_value}}} - with temp_config(timeout_config): + with project.temp_config(**timeout_config): assert networks.provider.network.transaction_acceptance_timeout == new_value @@ -604,14 +597,12 @@ def test_decode_receipt_shared_blob(ethereum, blob_gas_used): assert actual.blob_gas_used == 0 -def test_default_transaction_type_not_connected_used_default_network( - temp_config, ethereum, networks -): +def test_default_transaction_type_not_connected_used_default_network(project, ethereum, networks): value = TransactionType.STATIC.value config_dict = {"ethereum": {"mainnet_fork": {"default_transaction_type": value}}} assert ethereum.default_transaction_type == TransactionType.DYNAMIC - with temp_config(config_dict): + with project.temp_config(**config_dict): ethereum._default_network = "mainnet-fork" provider = networks.active_provider @@ -626,12 +617,12 @@ def test_default_transaction_type_not_connected_used_default_network( def test_default_transaction_type_configured_from_local_network( - eth_tester_provider, ethereum, temp_config + eth_tester_provider, ethereum, project ): _ = eth_tester_provider # Connection required so 'ethereum' knows the network. value = TransactionType.STATIC.value config = {"ethereum": {LOCAL_NETWORK_NAME: {"default_transaction_type": value}}} - with temp_config(config): + with project.temp_config(**config): assert ethereum.default_transaction_type == TransactionType.STATIC @@ -640,10 +631,10 @@ def test_default_transaction_type_changed_at_class_level(ethereum): Simulates an L2 plugin changing the default at the definition-level. """ - class Subconfig(BaseEthereumConfig): + class L2NetworkConfig(BaseEthereumConfig): DEFAULT_TRANSACTION_TYPE: ClassVar[int] = TransactionType.STATIC.value - config = Subconfig() + config = L2NetworkConfig() assert config.local.default_transaction_type.value == 0 assert config.mainnet.default_transaction_type.value == 0 assert config.mainnet_fork.default_transaction_type.value == 0 @@ -880,21 +871,24 @@ def test_networks(ethereum): def test_networks_includes_custom_networks( - ethereum, custom_networks_config, custom_network_name_0, custom_network_name_1 + ethereum, custom_networks_config_dict, project, custom_network_name_0, custom_network_name_1 +): + with project.temp_config(**custom_networks_config_dict): + actual = ethereum.networks + for net in ( + "sepolia", + "mainnet", + LOCAL_NETWORK_NAME, + custom_network_name_0, + custom_network_name_1, + ): + assert net in actual + assert isinstance(actual[net], NetworkAPI) + + +def test_networks_when_custom_ecosystem( + configured_custom_ecosystem, networks, custom_network_name_0 ): - actual = ethereum.networks - for net in ( - "sepolia", - "mainnet", - LOCAL_NETWORK_NAME, - custom_network_name_0, - custom_network_name_1, - ): - assert net in actual - assert isinstance(actual[net], NetworkAPI) - - -def test_networks_when_custom_ecosystem(custom_ecosystem_config, networks, custom_network_name_0): obj = networks.custom_ecosystem actual = obj.networks assert obj.name == CUSTOM_ECOSYSTEM_NAME @@ -902,13 +896,11 @@ def test_networks_when_custom_ecosystem(custom_ecosystem_config, networks, custo assert "mainnet" not in actual -def test_networks_multiple_networks_with_same_name( - temp_config, custom_networks_config_dict, ethereum -): +def test_networks_multiple_networks_with_same_name(custom_networks_config_dict, ethereum, project): data = copy.deepcopy(custom_networks_config_dict) data["networks"]["custom"][0]["name"] = "mainnet" # There already is a mainnet in "ethereum". expected = ".*More than one network named 'mainnet' in ecosystem 'ethereum'.*" - with temp_config(data): + with project.temp_config(**data): with pytest.raises(NetworkError, match=expected): _ = ethereum.networks @@ -918,10 +910,13 @@ def test_getattr(ethereum): assert isinstance(ethereum.mainnet, NetworkAPI) -def test_getattr_custom_networks(ethereum, custom_networks_config, custom_network_name_0): - actual = getattr(ethereum, custom_network_name_0) - assert actual.name == custom_network_name_0 - assert isinstance(actual, NetworkAPI) +def test_getattr_custom_networks( + ethereum, custom_networks_config_dict, project, custom_network_name_0 +): + with project.temp_config(**custom_networks_config_dict): + actual = getattr(ethereum, custom_network_name_0) + assert actual.name == custom_network_name_0 + assert isinstance(actual, NetworkAPI) def test_default_network(ethereum): @@ -929,7 +924,7 @@ def test_default_network(ethereum): def test_default_network_when_custom_and_set_in_config( - custom_ecosystem_config, networks, custom_network_name_0 + configured_custom_ecosystem, networks, custom_network_name_0 ): ecosystem = networks.get_ecosystem(CUSTOM_ECOSYSTEM_NAME) # Force it to use config value (in case was set from previous test) @@ -943,50 +938,43 @@ def test_default_network_name_set_programmatically(ethereum): ethereum._default_network = None -def test_default_network_name_from_config(config, ethereum): - orig = config._plugin_configs["ethereum"] - data = {"default_network": "testnet"} - config._plugin_configs["ethereum"] = EthereumConfig.model_validate(data) +def test_default_network_name_from_config(project, ethereum): + cfg = {"ethereum": {"default_network": "sepolia"}} ethereum._default_network = None - assert ethereum.default_network_name == "testnet" - config._plugin_configs["ethereum"] = orig + with project.temp_config(**cfg): + assert ethereum.default_network_name == "sepolia" -def test_default_network_name_when_not_set_uses_local(config, ethereum): - orig = config._plugin_configs["ethereum"] +def test_default_network_name_when_not_set_uses_local(project, ethereum): + orig = project.config.ethereum data = orig if isinstance(orig, dict) else orig.model_dump() data = {k: v for k, v in data.items() if k not in ("default_network",)} data["default_network"] = None - config._plugin_configs["ethereum"] = data - ethereum._default_network = None - assert ethereum.default_network_name == LOCAL_NETWORK_NAME - config._plugin_configs["ethereum"] = orig + with project.temp_config(**data): + ethereum._default_network = None + assert ethereum.default_network_name == LOCAL_NETWORK_NAME -def test_default_network_name_when_not_set_and_no_local_uses_only(mocker, config, ethereum): - # Delete cache. - if "_networks_from_plugins" in ethereum.__dict__: - del ethereum.__dict__["_networks_from_plugins"] +def test_default_network_name_when_not_set_and_no_local_uses_only( + project, custom_networks_config_dict +): + """ + Tests a condition that is rare but when a default network is + not set but there is a single network. In this case, it + should use the single network by default. + """ + net = copy.deepcopy(custom_networks_config_dict["networks"]["custom"][0]) - orig_eth = config._plugin_configs["ethereum"] - orig_pm = ethereum.plugin_manager + # In a situation with an ecosystem with only a single network. + ecosystem_name = "acustomeco" + net["ecosystem"] = ecosystem_name - net_name = "onlynet" - config._plugin_configs["ethereum"] = PluginConfig() - mock_pm = mocker.MagicMock() - mock_net = mocker.MagicMock() - mock_net.name = net_name - mock_pm.networks = ((None, ("ethereum", net_name, lambda *args, **kwargs: mock_net)),) - Ethereum.plugin_manager = mock_pm - ethereum._default_network = None + only_network = "onlynet" # More obvious name for test. + net["name"] = only_network - try: - assert ethereum.default_network_name == net_name - finally: - config._plugin_configs["ethereum"] = orig_eth - Ethereum.plugin_manager = orig_pm - if "_networks_from_plugins" in ethereum.__dict__: - del ethereum.__dict__["_networks_from_plugins"] + with project.temp_config(networks={"custom": [net]}): + ecosystem = project.network_manager.get_ecosystem(ecosystem_name) + assert ecosystem.default_network_name == only_network def test_decode_custom_error(chain, ethereum): @@ -1018,7 +1006,7 @@ def test_decode_custom_error_tx_unsigned(ethereum): assert actual is None -def test_decode_custom_error_selector_not_found(mocker, chain, ethereum): +def test_decode_custom_error_selector_not_found(chain, ethereum): data = HexBytes("0x6a12f104") abi: list = [] contract_type = ContractType(abi=abi) diff --git a/tests/functional/test_network_api.py b/tests/functional/test_network_api.py index 756019fed9..1550f6e447 100644 --- a/tests/functional/test_network_api.py +++ b/tests/functional/test_network_api.py @@ -5,6 +5,7 @@ from ape.api import ProviderAPI from ape.exceptions import NetworkError, ProviderNotFoundError +from ape_ethereum import EthereumConfig from ape_ethereum.transactions import TransactionType @@ -33,31 +34,32 @@ def test_get_provider_ipc(ethereum): assert actual.network.name == "sepolia" -def test_get_provider_custom_network(custom_networks_config, ethereum): - network = ethereum.apenet - actual = network.get_provider("node") - assert isinstance(actual, ProviderAPI) - assert actual.name == "node" +def test_get_provider_custom_network(project, custom_networks_config_dict, ethereum): + with project.temp_config(**custom_networks_config_dict): + network = ethereum.apenet + actual = network.get_provider("node") + assert isinstance(actual, ProviderAPI) + assert actual.name == "node" def test_block_times(ethereum): assert ethereum.sepolia.block_time == 15 -def test_set_default_provider_not_exists(temp_config, ape_caplog, ethereum): +def test_set_default_provider_not_exists(ape_caplog, ethereum): bad_provider = "NOT_EXISTS" expected = f"Provider '{bad_provider}' not found in network 'ethereum:sepolia'." with pytest.raises(NetworkError, match=expected): ethereum.sepolia.set_default_provider(bad_provider) -def test_gas_limits(ethereum, config, project_with_source_files_contract): +def test_gas_limits(ethereum, project, custom_networks_config_dict): """ Test the default gas limit configurations for local and live networks. """ - _ = project_with_source_files_contract # Ensure use of project with default config - assert ethereum.sepolia.gas_limit == "auto" - assert ethereum.local.gas_limit == "max" + with project.temp_config(**custom_networks_config_dict): + assert ethereum.sepolia.gas_limit == "auto" + assert ethereum.local.gas_limit == "max" def test_base_fee_multiplier(ethereum): @@ -67,6 +69,7 @@ def test_base_fee_multiplier(ethereum): def test_forked_networks(ethereum): mainnet_fork = ethereum.mainnet_fork + ethereum.mainnet._default_provider = "node" # In case changed elsewhere in env. assert mainnet_fork.upstream_network.name == "mainnet" assert mainnet_fork.upstream_chain_id == 1 # Just make sure it doesn't fail when trying to access. @@ -81,12 +84,12 @@ def test_forked_networks(ethereum): assert cfg.max_receipt_retries == 20 -def test_forked_network_with_config(temp_config, ethereum): +def test_forked_network_with_config(project, ethereum): data = { "ethereum": {"mainnet_fork": {"default_transaction_type": TransactionType.STATIC.value}} } - with temp_config(data): - cfg = ethereum.mainnet_fork.ecosystem_config.mainnet_fork + with project.temp_config(**data): + cfg = ethereum.mainnet_fork.config assert cfg.default_transaction_type == TransactionType.STATIC assert cfg.block_time == 0 assert cfg.default_provider is None @@ -102,24 +105,25 @@ def test_data_folder_custom_network(custom_network, ethereum, custom_network_nam assert actual == expected -def test_config_custom_networks_default(ethereum, custom_networks_config): +def test_config_custom_networks_default(ethereum, project, custom_networks_config_dict): """ Shows you don't get AttributeError when custom network config is not present. """ - network = ethereum.apenet - cfg = network.ecosystem_config.apenet - assert cfg.default_transaction_type == TransactionType.DYNAMIC + with project.temp_config(**custom_networks_config_dict): + network = ethereum.apenet + cfg = network.config + assert cfg.default_transaction_type == TransactionType.DYNAMIC def test_config_custom_networks( - ethereum, custom_networks_config_dict, temp_config, custom_network_name_0 + ethereum, custom_networks_config_dict, project, custom_network_name_0 ): data = copy.deepcopy(custom_networks_config_dict) data["ethereum"] = { custom_network_name_0: {"default_transaction_type": TransactionType.STATIC.value} } - with temp_config(data): + with project.temp_config(**data): network = ethereum.apenet ethereum_config = network.ecosystem_config cfg_by_attr = ethereum_config.apenet @@ -132,7 +136,7 @@ def test_config_custom_networks( def test_config_networks_from_custom_ecosystem( - networks, custom_networks_config_dict, temp_config, custom_network_name_0 + networks, custom_networks_config_dict, project, custom_network_name_0 ): data = copy.deepcopy(custom_networks_config_dict) data["networks"]["custom"][0]["ecosystem"] = "custom-ecosystem" @@ -140,17 +144,30 @@ def test_config_networks_from_custom_ecosystem( data["custom-ecosystem"] = { custom_network_name_0: {"default_transaction_type": TransactionType.STATIC.value} } - with temp_config(data): + with project.temp_config(**data): custom_ecosystem = networks.get_ecosystem("custom-ecosystem") network = custom_ecosystem.get_network("apenet") - ethereum_config = network.ecosystem_config - cfg_by_attr = ethereum_config.apenet - assert cfg_by_attr.default_transaction_type == TransactionType.STATIC + ecosystem_config = network.ecosystem_config + network_by_attr = ecosystem_config.apenet + network_by_get = ecosystem_config.get("apenet") - assert "apenet" in ethereum_config - cfg_by_get = ethereum_config.get("apenet") - assert cfg_by_get is not None - assert cfg_by_get.default_transaction_type == TransactionType.STATIC + assert custom_ecosystem.name == "custom-ecosystem" + + # Show .get_network() works (raises when not found). + assert network.name == "apenet" + + # Show custom ecosystems have a config. + assert isinstance(ecosystem_config, EthereumConfig) + + # Show contains works. + assert "apenet" in ecosystem_config + + # Show dot-access works (raise AttrError when not found). + assert network_by_attr.default_transaction_type == TransactionType.STATIC + + # Show .get() works (returns None when not found). + assert network_by_get is not None + assert network_by_get.default_transaction_type == TransactionType.STATIC def test_use_provider_using_provider_instance(eth_tester_provider): diff --git a/tests/functional/test_network_manager.py b/tests/functional/test_network_manager.py index 40abb83abc..a5fa99dde1 100644 --- a/tests/functional/test_network_manager.py +++ b/tests/functional/test_network_manager.py @@ -243,11 +243,11 @@ def test_getattr_ecosystem_with_hyphenated_name(networks, ethereum): del networks.ecosystems["hyphen-in-name"] -def test_getattr_custom_ecosystem(networks, custom_networks_config_dict, temp_config): +def test_getattr_custom_ecosystem(networks, custom_networks_config_dict, project): data = copy.deepcopy(custom_networks_config_dict) data["networks"]["custom"][0]["ecosystem"] = "custom-ecosystem" - with temp_config(data): + with project.temp_config(**data): actual = getattr(networks, "custom_ecosystem") assert isinstance(actual, EcosystemAPI) @@ -279,10 +279,10 @@ def test_ecosystems(networks): assert actual["ethereum"].name == "ethereum" -def test_ecosystems_include_custom(networks, custom_networks_config_dict, temp_config): +def test_ecosystems_include_custom(networks, custom_networks_config_dict, project): data = copy.deepcopy(custom_networks_config_dict) data["networks"]["custom"][0]["ecosystem"] = "custom-ecosystem" - with temp_config(data): + with project.temp_config(**data): actual = networks.ecosystems assert "custom-ecosystem" in actual diff --git a/tests/functional/test_project.py b/tests/functional/test_project.py index 0924ec2144..c05b8b0dbf 100644 --- a/tests/functional/test_project.py +++ b/tests/functional/test_project.py @@ -1,46 +1,42 @@ -import os -import random +import json import shutil -import string from pathlib import Path import pytest -import yaml -from ethpm_types import Compiler -from ethpm_types import ContractInstance as EthPMContractInstance -from ethpm_types import ContractType, Source -from ethpm_types.manifest import PackageManifest +from ethpm_types import Compiler, ContractType, PackageManifest, Source +from ethpm_types.manifest import PackageName +from pydantic_core import Url -from ape import Contract +from ape import Project +from ape.contracts import ContractContainer from ape.exceptions import ProjectError from ape.logging import LogLevel -from ape.managers.project import BrownieProject -from ape.utils import create_tempdir - -WITH_DEPS_PROJECT = ( - Path(__file__).parent.parent / "integration" / "cli" / "projects" / "with-dependencies" -) +from ape_pm import BrownieProject +from tests.conftest import skip_if_plugin_installed @pytest.fixture -def ape_project(project): - return project.local_project +def project_with_contracts(with_dependencies_project_path): + return Project(with_dependencies_project_path) @pytest.fixture -def bip122_chain_id(eth_tester_provider): - return eth_tester_provider.get_block(0).hash.hex() +def tmp_project(with_dependencies_project_path): + real_project = Project(with_dependencies_project_path) + # Copies contracts and stuff into a temp folder + # and returns a project around the temp folder. + with real_project.isolate_in_tempdir() as tmp_project: + yield tmp_project @pytest.fixture -def base_deployments_path(project, bip122_chain_id): - return project._package_deployments_folder / bip122_chain_id +def contract_type(): + return make_contract("FooContractFromManifest") @pytest.fixture -def deployment_path(vyper_contract_instance, base_deployments_path): - file_name = f"{vyper_contract_instance.contract_type.name}.json" - return base_deployments_path / file_name +def manifest(contract_type): + return make_manifest(contract_type) @pytest.fixture @@ -50,561 +46,298 @@ def contract_block_hash(eth_tester_provider, vyper_contract_instance): @pytest.fixture -def clean_deployments(base_deployments_path): - if base_deployments_path.is_dir(): - shutil.rmtree(str(base_deployments_path)) +def project_from_manifest(manifest): + return Project.from_manifest(manifest) - yield +def make_contract(name: str = "test") -> ContractType: + return ContractType.model_validate( + { + "contractName": name, + "sourceId": f"contracts/{name}.json", + "abi": [], + } + ) -@pytest.fixture -def existing_manifest(ape_project): - return ape_project.create_manifest() +def make_manifest(*contracts: ContractType, include_contract_type: bool = True) -> PackageManifest: + sources = { + ct.source_id: Source(content=ct.model_dump_json(by_alias=True, mode="json")) + for ct in contracts + } + model: dict = {"sources": sources} + if include_contract_type: + contract_types = {c.name: c for c in contracts} + model["contractTypes"] = contract_types -@pytest.fixture(scope="session") -def contract_type_0(vyper_contract_type): - return _make_new_contract(vyper_contract_type, "NewContract_0") + return PackageManifest.model_validate(model) -@pytest.fixture(scope="session") -def contract_type_1(vyper_contract_type): - return _make_new_contract(vyper_contract_type, "NewContract_1") +def test_path(project): + assert project.path is not None -@pytest.fixture(scope="session") -def existing_source_path(vyper_contract_type, contract_type_0, contracts_folder): - source_path = contracts_folder / "NewContract_0.json" - source_path.touch() - source_path.write_text(contract_type_0.model_dump_json()) - yield source_path - if source_path.is_file(): - source_path.unlink() +def test_name(project): + assert project.name == project.path.name -@pytest.fixture -def manifest_with_non_existent_sources( - existing_manifest, existing_source_path, contract_type_0, contract_type_1 -): - manifest = existing_manifest.model_copy() - manifest.contract_types["NewContract_0"] = contract_type_0 - manifest.contract_types["NewContract_1"] = contract_type_1 - # Previous refs shouldn't interfere (bugfix related) - manifest.sources["NewContract_0.json"] = Source( - content=contract_type_0.model_dump_json(), references=["NewContract_1.json"] - ) - manifest.sources["NewContract_1.json"] = Source(content=contract_type_1.model_dump_json()) - return manifest +def test_name_from_config(project): + with project.temp_config(name="foo-bar"): + assert project.name == "foo-bar" -@pytest.fixture -def project_without_deployments(project): - if project._package_deployments_folder.is_dir(): - shutil.rmtree(project._package_deployments_folder) +def test_repr(project): + actual = repr(project) + # NOTE: tmp path is NOT relative to home. + expected_project_path = str(project.path).replace(str(Path.home()), "$HOME") + expected = f"" + assert actual == expected - return project +@pytest.mark.parametrize("name", ("contracts", "sources")) +def test_contracts_folder_from_config(project, name): + with project.temp_config(contracts_folder=name): + assert project.contracts_folder == project.path / name -def _make_new_contract(existing_contract: ContractType, name: str): - source_text = existing_contract.model_dump_json() - source_text = source_text.replace(f"{existing_contract.name}.vy", f"{name}.json") - source_text = source_text.replace(existing_contract.name or "", name) - return ContractType.model_validate_json(source_text) +def test_contracts_folder_same_as_root_path(project): + with project.temp_config(contracts_folder="."): + assert project.contracts_folder == project.path -def test_extract_manifest(project_with_dependency_config): - # NOTE: Only setting dependency_config to ensure existence of project. - manifest = project_with_dependency_config.extract_manifest() - assert type(manifest) is PackageManifest - assert type(manifest.compilers) is list - assert manifest.meta == project_with_dependency_config.meta - assert manifest.compilers == project_with_dependency_config.compiler_data - assert manifest.deployments == project_with_dependency_config.tracked_deployments +def test_contracts_folder_deduced(tmp_project): + new_project_path = tmp_project.path / "new" + new_project_path.mkdir() + contracts_folder = new_project_path / "sources" + contracts_folder.mkdir() + contract = contracts_folder / "tryme.json" + abi = [{"name": "foo", "type": "fallback", "stateMutability": "nonpayable"}] + contract.write_text(json.dumps(abi)) + new_project = Project(new_project_path) + actual = new_project.contracts_folder + assert actual == contracts_folder -def test_cached_manifest_when_sources_missing( - ape_project, manifest_with_non_existent_sources, existing_source_path, ape_caplog -): - """ - Show that if a source is missing, it is OK. This happens when changing branches - after compiling and sources are only present on one of the branches. - """ - cache_location = ape_project._cache_folder / "__local__.json" - if cache_location.is_file(): - cache_location.unlink() - - cache_location.touch() - name = "NOTEXISTS" - source_id = f"{name}.json" - contract_type = ContractType.model_validate( - {"contractName": name, "abi": [], "sourceId": source_id} - ) - path = ape_project._cache_folder / source_id - path.write_text(contract_type.model_dump_json()) - cache_location.write_text(manifest_with_non_existent_sources.model_dump_json()) - manifest = ape_project.cached_manifest +def test_reconfigure(project): + project.reconfigure(compile={"exclude": ["first", "second"]}) + assert {"first", "second"}.issubset(set(project.config.compile.exclude)) - # Show the contract type does not get added and we don't get the corrupted manifest. - assert not any(ct.name == name for ct in manifest.contract_types.values()) - assert not any("corrupted. Re-building" in msg for msg in ape_caplog.messages) +def test_isolate_in_tempdir(project): + # Purposely not using `tmp_project` fixture. + with project.isolate_in_tempdir() as tmp_project: + assert tmp_project.path != project.path + assert tmp_project.in_tempdir + # Manifest should have been created by default. + assert not tmp_project.manifest_path.is_file() + + +def test_in_tempdir(project, tmp_project): + assert not project.in_tempdir + assert tmp_project.in_tempdir -def test_create_manifest_when_file_changed_with_cached_references_that_no_longer_exist( - ape_project, manifest_with_non_existent_sources, existing_source_path -): - """ - This test is for the condition when you have a cached manifest containing references - from a source file however those references no longer exist and the source file has changes. - """ - cache_location = ape_project._cache_folder / "__local__.json" - if cache_location.is_file(): - cache_location.unlink() +def test_getattr(tmp_project): + actual = tmp_project.Other + assert type(actual) is ContractContainer - ape_project._cache_folder.mkdir(exist_ok=True) - cache_location.touch() - cache_location.write_text(manifest_with_non_existent_sources.model_dump_json()) - # Change content - source_text = existing_source_path.read_text() - existing_source_path.unlink() - source_text = source_text.replace("uint256[20]", "uint256[25]") - existing_source_path.write_text(source_text) +def test_getattr_not_exists(tmp_project): + with pytest.raises(AttributeError): + _ = tmp_project.nope + - manifest = ape_project.create_manifest() - assert manifest +def test_getattr_detects_changes(tmp_project): + source_id = tmp_project.Other.contract_type.source_id + new_abi = { + "inputs": [], + "name": "retrieve", + "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], + "stateMutability": "view", + "type": "function", + } + content = json.dumps([new_abi]) + path = tmp_project.sources.lookup(source_id) + assert path + path.unlink(missing_ok=True) + path.write_text(content) + # Should have re-compiled. + contract = tmp_project.Other + assert "retrieve" in contract.contract_type.methods -def test_create_manifest_empty_files(compilers, mock_compiler, config, ape_caplog): +def test_getattr_empty_contract(tmp_project): """ - Tests again a bug where empty contracts would infinitely compile. + Tests against a condition where would infinitely compile. """ + source_id = tmp_project.Other.contract_type.source_id + path = tmp_project.sources.lookup(source_id) + path.unlink(missing_ok=True) + path.write_text("") + # Should have re-compiled. + contract = tmp_project.Other + assert not contract.contract_type.methods - # Using a random name to prevent async conflicts. - letters = string.ascii_letters - name = "".join(random.choice(letters) for _ in range(10)) - with create_tempdir() as temp_dir: - contracts = temp_dir / "contracts" - contracts.mkdir() - file_1 = contracts / f"{name}.__mock__" - file_1.write_text("") +@skip_if_plugin_installed("vyper", "solidity") +def test_getattr_same_name_as_source_file(project_with_source_files_contract): + expected = ( + r"'LocalProject' object has no attribute 'ContractA'\. " + r"Also checked extra\(s\) 'contracts'\. " + r"However, there is a source file named 'ContractA\.sol', " + r"did you mean to reference a contract name from this source file\? " + r"Else, could it be from one of the missing compilers for extensions: ." + ) + with pytest.raises(AttributeError, match=expected): + _ = project_with_source_files_contract.ContractA - with config.using_project(temp_dir) as proj: - compilers.registered_compilers[".__mock__"] = mock_compiler - # NOTE: Set levels as close to the operation as possible - # to lessen chance of caplog race conditions. - ape_caplog.set_levels(caplog_level=LogLevel.INFO) +@pytest.mark.parametrize("iypthon_attr_name", ("_repr_mimebundle_", "_ipython_display_")) +def test_getattr_ipython(tmp_project, iypthon_attr_name): + # Remove contract types, if there for some reason is any. + tmp_project.manifest.contract_types = {} + getattr(tmp_project, iypthon_attr_name) + # Prove it did not compile looking for these names. + assert not tmp_project.manifest.contract_types - # Run twice to show use_cache=False works. - proj.local_project.create_manifest() - manifest = proj.local_project.create_manifest(use_cache=False) - assert name in manifest.contract_types - assert f"{name}.__mock__" in manifest.sources +def test_getattr_ipython_canary_check(tmp_project): + # Remove contract types, if there for some reason is any. + tmp_project.manifest.contract_types = {} + with pytest.raises(AttributeError): + getattr(tmp_project, "_ipython_canary_method_should_not_exist_") - ape_caplog.assert_last_log(f"Compiling '{name}.__mock__'.") - ape_caplog.clear() + # Prove it did not compile looking for this. + assert not tmp_project.manifest.contract_types - # Ensure is not double compiled! - proj.local_project.create_manifest() - assert f"Compiling '{name}.__mock__'." not in ape_caplog.head - -def test_create_manifest_excludes_cache(ape_project): - cachefile = ape_project.contracts_folder / ".cache" / "CacheFile.json" - cachefile2 = ape_project.contracts_folder / ".cache" / "subdir" / "Cache2.json" - cachefile2.parent.mkdir(parents=True) - cachefile.write_text("Doesn't matter") - cachefile2.write_text("Doesn't matter") - manifest = ape_project.create_manifest() - assert isinstance(manifest, PackageManifest) - assert ".cache/CacheFile.json" not in (manifest.sources or {}) - assert ".cache/subdir/CacheFile.json" not in (manifest.sources or {}) +def test_getitem(tmp_project): + actual = tmp_project["Project"] + assert type(actual) is ContractContainer -def test_meta(temp_config, project): +def test_meta(project): meta_config = { "meta": { - "authors": ["Test Testerson"], + "authors": ["Apealicious Jones"], "license": "MIT", - "description": "test", - "keywords": ["testing"], + "description": "Zoologist meme protocol", + "keywords": ["Indiana", "Knight's Templar"], "links": {"apeworx.io": "https://apeworx.io"}, } } - with temp_config(meta_config): - assert project.meta.authors == ["Test Testerson"] + with project.temp_config(**meta_config): + assert project.meta.authors == ["Apealicious Jones"] assert project.meta.license == "MIT" - assert project.meta.description == "test" - assert project.meta.keywords == ["testing"] - - link = project.meta.links["apeworx.io"] - assert link.host == "apeworx.io" - assert link.scheme == "https" + assert project.meta.description == "Zoologist meme protocol" + assert project.meta.keywords == ["Indiana", "Knight's Templar"] + assert project.meta.links == {"apeworx.io": Url("https://apeworx.io")} -def test_brownie_project_configure(config, base_projects_directory): - project_path = base_projects_directory / "BrownieProject" - expected_config_file = project_path / "ape-config.yaml" - if expected_config_file.is_file(): - # Left from previous run - expected_config_file.unlink() +def test_extract_manifest(tmp_project, mock_sepolia, vyper_contract_instance): + contract_type = vyper_contract_instance.contract_type + tmp_project.manifest.contract_types = {contract_type.name: contract_type} + tmp_project.deployments.track(vyper_contract_instance) - project = BrownieProject(path=project_path, contracts_folder=Path("contracts")) - project.process_config_file() - assert expected_config_file.is_file() - - with open(expected_config_file) as ape_config_file: - mapped_config_data = yaml.safe_load(ape_config_file) + manifest = tmp_project.extract_manifest() + assert type(manifest) is PackageManifest + assert manifest.meta == tmp_project.meta + assert PackageName("manifest-dependency") in (manifest.dependencies or {}) + bip122_chain_id = tmp_project.provider.get_block(0).hash.hex() + expected_uri = f"blockchain://{bip122_chain_id[2:]}" + for key in manifest.deployments or {}: + if key.startswith(expected_uri): + return - # Ensure Solidity and dependencies configuration mapped correctly - assert mapped_config_data["solidity"]["version"] == "0.6.12" - assert mapped_config_data["solidity"]["import_remapping"] == [ - "@openzeppelin/contracts=OpenZeppelin/3.1.0" - ] - assert mapped_config_data["dependencies"][0]["name"] == "OpenZeppelin" - assert mapped_config_data["dependencies"][0]["github"] == "OpenZeppelin/openzeppelin-contracts" - assert mapped_config_data["dependencies"][0]["version"] == "3.1.0" - - expected_config_file.unlink() - - -def test_track_deployment( - clean_deployments, - project_without_deployments, - vyper_contract_instance, - eth_tester_provider, - deployment_path, - contract_block_hash, - dummy_live_network, - bip122_chain_id, -): - contract = vyper_contract_instance - receipt = contract.creation_metadata.receipt - name = contract.contract_type.name - address = vyper_contract_instance.address - - # Even though deployments should be 0, do this to in case x-dist affects it. - num_deployments_before = len(project_without_deployments.tracked_deployments) - - project_without_deployments.track_deployment(vyper_contract_instance) - - expected_block_hash = eth_tester_provider.get_block(receipt.block_number).hash.hex() - expected_uri = f"blockchain://{bip122_chain_id}/block/{expected_block_hash}" - expected_name = contract.contract_type.name - expected_code = contract.contract_type.runtime_bytecode - actual_from_file = EthPMContractInstance.model_validate_json(deployment_path.read_text()) - actual_from_class = project_without_deployments.tracked_deployments[expected_uri][name] - - assert actual_from_file.address == actual_from_class.address == address - assert actual_from_file.contract_type == actual_from_class.contract_type == expected_name - assert actual_from_file.transaction == actual_from_class.transaction == receipt.txn_hash - assert actual_from_file.runtime_bytecode == actual_from_class.runtime_bytecode == expected_code - - # Use >= to handle xdist. - assert len(project_without_deployments.tracked_deployments) >= num_deployments_before + 1 - - -def test_track_deployment_from_previously_deployed_contract( - clean_deployments, - project_without_deployments, - vyper_contract_container, - eth_tester_provider, - dummy_live_network, - owner, - base_deployments_path, - bip122_chain_id, -): - deploy = owner.deploy(vyper_contract_container, 0, required_confirmations=0) - receipt = deploy.creation_metadata.receipt - address = receipt.contract_address - contract = Contract(address, txn_hash=receipt.txn_hash) - name = contract.contract_type.name - - # Even though deployments should be 0, do this to in case x-dist affects it. - num_deployments_before = len(project_without_deployments.tracked_deployments) - - project_without_deployments.track_deployment(contract) - - path = base_deployments_path / f"{contract.contract_type.name}.json" - expected_block_hash = eth_tester_provider.get_block(receipt.block_number).hash.hex() - expected_uri = f"blockchain://{bip122_chain_id}/block/{expected_block_hash}" - expected_name = contract.contract_type.name - expected_code = contract.contract_type.runtime_bytecode - actual_from_file = EthPMContractInstance.model_validate_json(path.read_text()) - actual_from_class = project_without_deployments.tracked_deployments[expected_uri][name] - assert actual_from_file.address == actual_from_class.address == address - assert actual_from_file.contract_type == actual_from_class.contract_type == expected_name - assert actual_from_file.transaction == actual_from_class.transaction == receipt.txn_hash - assert actual_from_file.runtime_bytecode == actual_from_class.runtime_bytecode == expected_code - - # Use >= to handle xdist. - assert len(project_without_deployments.tracked_deployments) >= num_deployments_before + 1 - - -def test_track_deployment_from_unknown_contract_missing_txn_hash( - clean_deployments, - dummy_live_network, - owner, - vyper_contract_container, - chain, - project, -): - snapshot = chain.snapshot() - contract = owner.deploy(vyper_contract_container, 0, required_confirmations=0) - chain.restore(snapshot) - - contract = Contract(contract.address) - with pytest.raises( - ProjectError, - match=f"Contract '{contract.contract_type.name}' transaction receipt is unknown.", - ): - project.track_deployment(contract) - - -def test_track_deployment_from_unknown_contract_given_txn_hash( - clean_deployments, - project, - vyper_contract_instance, - dummy_live_network, - base_deployments_path, -): - address = vyper_contract_instance.address - txn_hash = vyper_contract_instance.txn_hash - contract = Contract(address, txn_hash=txn_hash) - project.track_deployment(contract) - path = base_deployments_path / f"{contract.contract_type.name}.json" - actual = EthPMContractInstance.model_validate_json(path.read_text()) - assert actual.address == address - assert actual.contract_type == contract.contract_type.name - assert actual.transaction == txn_hash - assert actual.runtime_bytecode == contract.contract_type.runtime_bytecode - - -def test_compiler_data_and_update_cache(config, project_path, contracts_folder): - with config.using_project(project_path, contracts_folder=contracts_folder) as project: - compiler = Compiler(name="comp", version="1.0.0") - project.local_project.update_manifest(compilers=[compiler]) - assert project.local_project.manifest.compilers == [compiler] - assert project.compiler_data == [compiler] - - -def test_get_project_without_contracts_path(project): - project_path = WITH_DEPS_PROJECT / "default" - project = project.get_project(project_path) - assert project.contracts_folder == project_path / "contracts" - - -def test_get_project_with_contracts_path(project): - project_path = WITH_DEPS_PROJECT / "renamed_contracts_folder_specified_in_config" - project = project.get_project(project_path, project_path / "my_contracts") - assert project.contracts_folder == project_path / "my_contracts" - - -def test_get_project_figure_out_contracts_path(project): - """ - Tests logic where `contracts` is not the contracts folder but it still is able - to figure it out. - """ - project_path = WITH_DEPS_PROJECT / "renamed_contracts_folder" - (project_path / "ape-config.yaml").unlink(missing_ok=True) # Clean from prior. - - project = project.get_project(project_path) - assert project.contracts_folder == project_path / "sources" - - -def test_lookup_path(project_with_source_files_contract): - project = project_with_source_files_contract - actual_from_str = project.lookup_path("ContractA.sol") - actual_from_path = project.lookup_path(Path("ContractA.sol")) - expected = project.contracts_folder / "ContractA.sol" - assert actual_from_str == actual_from_path == expected - - -def test_lookup_path_closest_match(project_with_source_files_contract): - pm = project_with_source_files_contract - source_path = pm.contracts_folder / "Contract.json" - temp_dir_a = pm.contracts_folder / "temp" - temp_dir_b = temp_dir_a / "tempb" - nested_source_a = temp_dir_a / "Contract.json" - nested_source_b = temp_dir_b / "Contract.json" - - def clean(): - # NOTE: Will also delete temp_dir_b. - if temp_dir_a.is_dir(): - shutil.rmtree(temp_dir_a) - - clean() - - # NOTE: Will also make temp_dir_a. - temp_dir_b.mkdir(parents=True) - - try: - # Duplicate contract so that there are multiple with the same name. - for nested_src in (nested_source_a, nested_source_b): - nested_src.touch() - nested_src.write_text(source_path.read_text()) - - # Top-level match. - for base in (source_path, str(source_path), "Contract", "Contract.json"): - assert pm.lookup_path(base) == source_path, f"Failed to lookup {base}" - - # Nested: 1st level - for closest in ( - nested_source_a, - str(nested_source_a), - "temp/Contract", - "temp/Contract.json", - ): - assert pm.lookup_path(closest) == nested_source_a, f"Failed to lookup {closest}" - - # Nested: 2nd level - for closest in ( - nested_source_b, - str(nested_source_b), - "temp/tempb/Contract", - "temp/tempb/Contract.json", - ): - assert pm.lookup_path(closest) == nested_source_b, f"Failed to lookup {closest}" - - finally: - clean() + assert False, "Failed to find expected deployment URI" -def test_lookup_path_includes_contracts_prefix(project_with_source_files_contract): +def test_extract_manifest_when_sources_missing(tmp_project): """ - Show we can include the `contracts/` prefix. + Show that if a source is missing, it is OK. This happens when changing branches + after compiling and sources are only present on one of the branches. """ - project = project_with_source_files_contract - actual_from_str = project.lookup_path("contracts/ContractA.sol") - actual_from_path = project.lookup_path(Path("contracts/ContractA.sol")) - expected = project.contracts_folder / "ContractA.sol" - assert actual_from_str == actual_from_path == expected - assert actual_from_str.is_absolute() - assert actual_from_path.is_absolute() - - -def test_sources(project_with_source_files_contract): - project = project_with_source_files_contract - assert "ApeContract0.json" in project.sources - assert project.sources["ApeContract0.json"].content - - -def test_contracts_folder(project, config): - # Relaxed to handle xdist resource sharing. - assert project.contracts_folder.name in ("contracts", "src") + contract = make_contract("notreallyhere") + tmp_project.manifest.contract_types = {contract.name: contract} + manifest = tmp_project.extract_manifest() - # Show that even when None in the config, it won't be None here. - config.contracts_folder = None - assert config.contracts_folder is None - assert project.contracts_folder is not None + # Source is skipped because missing. + assert "notreallyhere" not in manifest.contract_types -def test_getattr_contract_not_exists(project): - expected = ( - r"ProjectManager has no attribute or contract named " - r"'ThisIsNotAContractThatExists'. However, there is a source " - r"file named 'ThisIsNotAContractThatExists\.foo', did you mean to " - r"reference a contract name from this source file\? " - r"Else, could it be from one of the missing compilers for extensions:.*\?" - ) - project.contracts_folder.mkdir(exist_ok=True) - contract = project.contracts_folder / "ThisIsNotAContractThatExists.foo" - contract.touch() - with pytest.raises(AttributeError, match=expected): - _ = project.ThisIsNotAContractThatExists - +def test_extract_manifest_excludes_cache(tmp_project): + cachefile = tmp_project.contracts_folder / ".cache" / "CacheFile.json" + cachefile2 = tmp_project.contracts_folder / ".cache" / "subdir" / "Cache2.json" + cachefile2.parent.mkdir(parents=True) + cachefile.write_text("Doesn't matter") + cachefile2.write_text("Doesn't matter") + manifest = tmp_project.extract_manifest() + assert isinstance(manifest, PackageManifest) + assert ".cache/CacheFile.json" not in (manifest.sources or {}) + assert ".cache/subdir/CacheFile.json" not in (manifest.sources or {}) -@pytest.mark.parametrize("iypthon_attr_name", ("_repr_mimebundle_", "_ipython_display_")) -def test_getattr_ipython(mocker, project, iypthon_attr_name): - spy = mocker.spy(project, "_get_contract") - getattr(project, iypthon_attr_name) - # Ensure it does not try to do anything with contracts. - assert spy.call_count == 0 +def test_exclusions(tmp_project): + exclusions = ["Other.json", "*Excl*"] + exclude_config = {"compile": {"exclude": exclusions}} + with tmp_project.temp_config(**exclude_config): + for exclusion in exclusions: + assert exclusion in tmp_project.exclusions -def test_getattr_ipython_canary_check(mocker, project): - spy = mocker.spy(project, "_get_contract") - with pytest.raises(AttributeError): - getattr(project, "_ipython_canary_method_should_not_exist_") - # Ensure it does not try to do anything with contracts. - assert spy.call_count == 0 +def test_update_manifest(tmp_project): + compiler = Compiler(name="comp", version="1.0.0", contractTypes=["foo.txt"]) + tmp_project.update_manifest(compilers=[compiler]) + actual = tmp_project.manifest.compilers + assert actual == [compiler] + tmp_project.update_manifest(name="test", version="1.0.0") + assert tmp_project.manifest.name == "test" + assert tmp_project.manifest.version == "1.0.0" -def test_build_file_only_modified_once(project_with_contract): - project = project_with_contract - artifact = project.path / ".build" / "__local__.json" - _ = project.contracts # Ensure compiled. + # The compilers should not have changed. + actual = tmp_project.manifest.compilers + assert actual == [compiler] - # NOTE: This is how re-create the bug. Delete the underscore-prefixed - # cached object and attempt to re-compile. Previously, the ProjectManager - # was relying on an internal cache rather than the external one, and thus - # caused the file to get unnecessarily re-made (modified). - project.local_project._cached_manifest = None - # Prove the file is not unnecessarily modified. - time_before = os.path.getmtime(artifact) - _ = project.contracts - time_after = os.path.getmtime(artifact) - assert time_before == time_after +def test_load_contracts(tmp_project): + contracts = tmp_project.load_contracts() + assert tmp_project.manifest_path.is_file() + assert len(contracts) > 0 + contracts_forced = tmp_project.load_contracts(use_cache=False) + assert contracts_forced == contracts -def test_source_paths_excludes_cached_dependencies(project_with_contract): - """ - Dependencies are ignored from the project's sources. - Their used sources are imported and part of the final output, - but just not the input. - """ - contracts_folder = project_with_contract.contracts_folder - cache_dir = contracts_folder / ".cache" - cache_dir.mkdir(exist_ok=True) - cache_dep_folder = cache_dir / "dep" / "1.0.0" - cache_dep_folder.mkdir(parents=True, exist_ok=True) - contract = next( - x - for x in contracts_folder.iterdir() - if x.is_file() and x.suffix == ".json" and not x.stem.startswith("_") - ) - dep_contract = cache_dep_folder / "contract.json" - shutil.copy(contract, dep_contract) - actual = project_with_contract.source_paths - assert dep_contract not in actual +def test_load_contracts_detect_change(tmp_project, ape_caplog): + path = tmp_project.contracts_folder / "Other.json" + content = path.read_text() + assert "foo" in content, "Test setup failed. Unexpected file content." + # Must be compiled first. + with ape_caplog.at_level(LogLevel.INFO): + contracts = tmp_project.load_contracts() + assert "Other" in contracts + ape_caplog.assert_last_log("Compiling") -def test_update_manifest_compilers(project): - compiler = Compiler(name="comp", version="1.0.0", contractTypes=["foo.txt"]) - project.local_project.update_manifest(compilers=[compiler]) - actual = project.local_project.manifest.compilers - assert actual == [compiler] + ape_caplog.clear() - project.local_project.update_manifest(name="test", version="1.0.0") - assert project.local_project.manifest.name == "test" - assert project.local_project.manifest.version == "1.0.0" + # No logs as it doesn't need to re-compile. + tmp_project.load_contracts() + assert not ape_caplog.head - # The compilers should not have changed. - actual = project.local_project.manifest.compilers - assert actual == [compiler] + # Make a change to the file. + new_content = content.replace("foo", "bar") + assert "bar" in new_content, "Test setup failed. Unexpected file content." + path.unlink() + path.write_text(new_content) - # Add a new one. - # NOTE: `update_cache()` will override the fields entirely. - # You must include existing fields if you want to merge. - compiler_2 = Compiler(name="test", version="2.0.0", contractTypes=["bar.txt"]) - project.local_project.update_manifest(compilers=[compiler_2]) - actual = project.local_project.manifest.compilers - assert actual == [compiler_2] + # Prove re-compiles. + contracts = tmp_project.load_contracts() + assert "Other" in contracts + ape_caplog.assert_last_log("Compiling") -def test_load_contracts(project_with_contract): - contracts = project_with_contract.load_contracts() - assert len(contracts) > 0 - assert contracts == project_with_contract.contracts - - -def test_load_contracts_after_deleting_same_named_contract(config, compilers, mock_compiler): +def test_load_contracts_after_deleting_same_named_contract(tmp_project, compilers, mock_compiler): """ Tests against a scenario where you: @@ -615,27 +348,52 @@ def test_load_contracts_after_deleting_same_named_contract(config, compilers, mo Test such that we are able to compile successfully and not get a misleading collision error from deleted files. """ + init_contract = tmp_project.contracts_folder / "foo.__mock__" + init_contract.write_text("LALA") + compilers.registered_compilers[".__mock__"] = mock_compiler + result = tmp_project.load_contracts() + assert "foo" in result + + # Goodbye. + init_contract.unlink() + + result = tmp_project.load_contracts() + assert "foo" not in result # Was deleted. + # Also ensure it is gone from paths. + assert "foo.__mock__" not in [x.name for x in tmp_project.sources.paths] + + # Create a new contract with the same name. + new_contract = tmp_project.contracts_folder / "bar.__mock__" + new_contract.write_text("BAZ") + mock_compiler.overrides = {"contractName": "foo"} + result = tmp_project.load_contracts() + assert "foo" in result + - with create_tempdir() as path: - contracts = path / "contracts" - contracts.mkdir() - init_contract = contracts / "foo.__mock__" - init_contract.write_text("LALA") - with config.using_project(path) as proj: - compilers.registered_compilers[".__mock__"] = mock_compiler - result = proj.load_contracts() - assert "foo" in result +def test_load_contracts_output_abi(tmp_project): + cfg = {"output_extra": ["ABI"]} + with tmp_project.temp_config(compile=cfg): + _ = tmp_project.load_contracts() + abi_folder = tmp_project.manifest_path.parent / "abi" + assert abi_folder.is_dir() + files = [x for x in abi_folder.iterdir()] + assert len(files) > 0 + for file in files: + assert file.suffix == ".json" - # Delete file - init_contract.unlink() - # Create new contract that yields same name as deleted one. - new_contract = contracts / "bar.__mock__" - new_contract.write_text("BAZ") - mock_compiler.overrides = {"contractName": "foo"} +def test_manifest_path(tmp_project): + assert tmp_project.manifest_path == tmp_project.path / ".build" / "__local__.json" - result = proj.load_contracts() - assert "foo" in result + +def test_clean(tmp_project): + tmp_project.load_contracts() + assert tmp_project.manifest_path.is_file() + + tmp_project.clean() + assert not tmp_project.manifest_path.is_file() + assert tmp_project._manifest.contract_types is None + assert tmp_project.sources._path_cache is None def test_add_compiler_data(project_with_dependency_config): @@ -645,7 +403,7 @@ def test_add_compiler_data(project_with_dependency_config): # Load contracts so that any compilers that may exist are present. project.load_contracts() - start_compilers = project.local_project.manifest.compilers or [] + start_compilers = project.manifest.compilers or [] # NOTE: Pre-defining things to lessen chance of race condition. compiler = Compiler( @@ -669,7 +427,6 @@ def test_add_compiler_data(project_with_dependency_config): settings={"outputSelection": {"path/to/Bar.vy": "*"}}, ) - proj = project.local_project argument = [compiler] second_arg = [compiler_2] third_arg = [compiler_3] @@ -679,53 +436,309 @@ def test_add_compiler_data(project_with_dependency_config): # Ensure types are in manifest for type-source-id lookup. bar = ContractType(contractName="bar", sourceId="path/to/Bar.vy") foo = ContractType(contractName="foo", sourceId="path/to/Foo.sol") - proj._cached_manifest = PackageManifest( + project._manifest = PackageManifest( contractTypes={"bar": bar, "foo": foo}, sources={"path/to/Bar.vy": Source(), "path/to/Foo.vy": Source()}, ) - proj._contracts = proj._cached_manifest.contract_types - assert proj.cached_manifest.contract_types, "Setup failed - need manifest contract types" + project._contracts = project._manifest.contract_types + assert project._manifest.contract_types, "Setup failed - need manifest contract types" # Add twice to show it's only added once. - proj.add_compiler_data(argument) - proj.add_compiler_data(argument) - assert proj.manifest.compilers == first_exp + project.add_compiler_data(argument) + project.add_compiler_data(argument) + assert project.manifest.compilers == first_exp # NOTE: `add_compiler_data()` will not override existing compilers. # Use `update_cache()` for that. - proj.add_compiler_data(second_arg) - assert proj.manifest.compilers == final_exp - - # `bar` has moved to a new compiler. - proj.add_compiler_data(third_arg) - comp = [c for c in proj.manifest.compilers if c.name == "test" and c.version == "2.0.0"][0] + project.add_compiler_data(second_arg) + assert project.manifest.compilers == final_exp + project.add_compiler_data(third_arg) + comp = [c for c in project.manifest.compilers if c.name == "test" and c.version == "2.0.0"][0] assert "bar" not in comp.contractTypes assert "path/to/Bar.vy" not in comp.settings["outputSelection"] - new_comp = [c for c in proj.manifest.compilers if c.name == "test" and c.version == "3.0.0"][0] + new_comp = [c for c in project.manifest.compilers if c.name == "test" and c.version == "3.0.0"][ + 0 + ] assert "bar" in new_comp.contractTypes assert "path/to/Bar.vy" in new_comp.settings["outputSelection"] # Show that compilers without contract types go away. (compiler_3.contractTypes or []).append("stay") - proj.add_compiler_data(third_arg) - comp_check = [c for c in proj.manifest.compilers if c.name == "test" and c.version == "2.0.0"] + project.add_compiler_data(third_arg) + comp_check = [ + c for c in project.manifest.compilers if c.name == "test" and c.version == "2.0.0" + ] assert not comp_check # Show error on multiple of same compiler. compiler_4 = Compiler(name="test123", version="3.0.0", contractTypes=["bar"]) compiler_5 = Compiler(name="test123", version="3.0.0", contractTypes=["baz"]) with pytest.raises(ProjectError, match=r".*was given multiple of the same compiler.*"): - proj.add_compiler_data([compiler_4, compiler_5]) + project.add_compiler_data([compiler_4, compiler_5]) # Show error when contract type collision (only happens with inputs, else latter replaces). compiler_4 = Compiler(name="test321", version="3.0.0", contractTypes=["bar"]) compiler_5 = Compiler(name="test456", version="9.0.0", contractTypes=["bar"]) with pytest.raises(ProjectError, match=r".*'bar' collision across compilers.*"): - proj.add_compiler_data([compiler_4, compiler_5]) + project.add_compiler_data([compiler_4, compiler_5]) -def test_repr(project): - actual = repr(project) - # NOTE: tmp path is NOT relative to home. - expected = f"" - assert actual == expected +class TestProject: + """ + All tests related to ``ape.Project``. + """ + + def test_init(self, with_dependencies_project_path): + # Purpose not using `project_with_contracts` fixture. + project = Project(with_dependencies_project_path) + project.manifest_path.unlink(missing_ok=True) + assert project.path == with_dependencies_project_path + # Manifest should have been created by default. + assert not project.manifest_path.is_file() + + def test_config_override(self, with_dependencies_project_path): + contracts_folder = with_dependencies_project_path / "my_contracts" + config = {"contracts_folder": contracts_folder.name} + project = Project(with_dependencies_project_path, config_override=config) + assert project.contracts_folder == contracts_folder + + def test_from_manifest(self, manifest): + # Purposely not using `project_from_manifest` fixture. + project = Project.from_manifest(manifest) + assert isinstance(project, Project) + assert project.manifest == manifest + + def test_from_manifest_contracts_iter(self, contract_type, project_from_manifest): + actual = set(iter(project_from_manifest.contracts)) + assert actual == {"FooContractFromManifest"} + + def test_from_manifest_getattr(self, contract_type, project_from_manifest): + expected = ContractContainer(contract_type) + actual = project_from_manifest.FooContractFromManifest + assert isinstance(actual, ContractContainer) + assert actual == expected + + def test_from_manifest_getitem(self, contract_type, project_from_manifest): + expected = ContractContainer(contract_type) + assert project_from_manifest["FooContractFromManifest"] == expected + + def test_from_manifest_load_contracts(self, contract_type): + """ + Show if contract-types are missing but sources set, + compiling will add contract-types. + """ + manifest = make_manifest(contract_type, include_contract_type=False) + project = Project.from_manifest(manifest) + assert not project.manifest.contract_types, "Setup failed" + + # Returns containers, not types. + actual = project.load_contracts() + assert actual[contract_type.name].contract_type == contract_type + + # Also, show it got set on the manifest. + assert project.manifest.contract_types == {contract_type.name: contract_type} + + +class TestBrownieProject: + """ + Tests related to the brownie implementation of the ProjectAPI. + """ + + @pytest.fixture + def brownie_project(self, base_projects_directory): + project_path = base_projects_directory / "BrownieProject" + return BrownieProject(path=project_path) + + def test_configure(self, config, brownie_project): + config = brownie_project.extract_config() + + # Ensure contracts_folder works. + assert config.contracts_folder == "contractsrenamed" + + # Ensure Solidity and dependencies configuration mapped correctly + assert config.solidity.version == "0.6.12" + + # NOTE: `contracts/` is not part of the import key as it is + # usually included in the import statements. + assert [str(x) for x in config.solidity.import_remapping] == [ + "@openzeppelin=openzeppelin/3.1.0" + ] + assert config.dependencies[0]["name"] == "openzeppelin" + assert config.dependencies[0]["github"] == "OpenZeppelin/openzeppelin-contracts" + assert config.dependencies[0]["version"] == "3.1.0" + + +class TestSourceManager: + def test_lookup(self, tmp_project): + source_id = tmp_project.Other.contract_type.source_id + path = tmp_project.sources.lookup(source_id) + assert path == tmp_project.path / source_id + + def test_lookup_missing_extension(self, tmp_project): + source_id = tmp_project.Other.contract_type.source_id + source_id_wo_ext = ".".join(source_id.split(".")[:-1]) + path = tmp_project.sources.lookup(source_id_wo_ext) + assert path == tmp_project.path / source_id + + def test_lookup_mismatched_extension(self, tmp_project): + source_id = tmp_project.Other.contract_type.source_id + source_id = source_id.replace(".json", ".js") + path = tmp_project.sources.lookup(source_id) + assert path is None + + def test_lookup_closest_match(self, project_with_source_files_contract): + pm = project_with_source_files_contract + source_path = pm.contracts_folder / "Contract.json" + temp_dir_a = pm.contracts_folder / "temp" + temp_dir_b = temp_dir_a / "tempb" + nested_source_a = temp_dir_a / "Contract.json" + nested_source_b = temp_dir_b / "Contract.json" + + def clean(): + # NOTE: Will also delete temp_dir_b. + if temp_dir_a.is_dir(): + shutil.rmtree(temp_dir_a) + + clean() + + # NOTE: Will also make temp_dir_a. + temp_dir_b.mkdir(parents=True) + + try: + # Duplicate contract so that there are multiple with the same name. + for nested_src in (nested_source_a, nested_source_b): + nested_src.touch() + nested_src.write_text(source_path.read_text()) + + # Top-level match. + for base in (source_path, str(source_path), "Contract", "Contract.json"): + assert pm.sources.lookup(base) == source_path, f"Failed to lookup {base}" + + # Nested: 1st level + for closest in ( + nested_source_a, + str(nested_source_a), + "temp/Contract", + "temp/Contract.json", + ): + actual = pm.sources.lookup(closest) + expected = nested_source_a + assert actual == expected, f"Failed to lookup {closest}" + + # Nested: 2nd level + for closest in ( + nested_source_b, + str(nested_source_b), + "temp/tempb/Contract", + "temp/tempb/Contract.json", + ): + actual = pm.sources.lookup(closest) + expected = nested_source_b + assert actual == expected, f"Failed to lookup {closest}" + + finally: + clean() + + def test_lookup_not_found(self, tmp_project): + assert tmp_project.sources.lookup("madeup.json") is None + + def test_lookup_missing_contracts_prefix(self, project_with_source_files_contract): + """ + Show we can exclude the `contracts/` prefix in a source ID. + """ + project = project_with_source_files_contract + actual_from_str = project.sources.lookup("ContractA.sol") + actual_from_path = project.sources.lookup(Path("ContractA.sol")) + expected = project.contracts_folder / "ContractA.sol" + assert actual_from_str == actual_from_path == expected + assert actual_from_str.is_absolute() + assert actual_from_path.is_absolute() + + def test_paths_exclude(self, tmp_project): + exclude_config = {"compile": {"exclude": ["Other.json"]}} + with tmp_project.temp_config(**exclude_config): + # Show default excludes also work, such as a .DS_Store file. + ds_store = tmp_project.contracts_folder / ".DS_Store" + ds_store.write_bytes(b"asdfasf") + + # Show anything in compiler-cache is ignored. + cache = tmp_project.contracts_folder / ".cache" + cache.mkdir(exist_ok=True) + random_file = cache / "dontmindme.json" + random_file.write_text("what, this isn't json?!") + + path_ids = { + f"{tmp_project.contracts_folder.name}/{src.name}" + for src in tmp_project.sources.paths + } + excluded = {".DS_Store", "Other.json", ".cache/dontmindme.json"} + for actual in (path_ids, tmp_project.sources): + for exclusion in excluded: + expected = f"{tmp_project.contracts_folder.name}/{exclusion}" + assert expected not in actual + + def test_is_excluded(self, project_with_contracts): + exclude_cfg = {"compile": {"exclude": ["exclude_dir/*", "Excl*.json"]}} + source_ids = ("contracts/exclude_dir/UnwantedContract.json", "contracts/Exclude.json") + with project_with_contracts.temp_config(**exclude_cfg): + for source_id in source_ids: + path = project_with_contracts.path / source_id + assert project_with_contracts.sources.is_excluded(path) + + def test_items(self, project_with_contracts): + actual = list(project_with_contracts.sources.items()) + assert len(actual) > 0 + assert isinstance(actual[0], tuple) + assert "contracts/Other.json" in [x[0] for x in actual] + assert isinstance(actual[0][1], Source) + + def test_keys(self, project_with_contracts): + actual = list(project_with_contracts.sources.keys()) + assert "contracts/Other.json" in actual + + def test_values(self, project_with_contracts): + actual = list(project_with_contracts.sources.values()) + assert all(isinstance(x, Source) for x in actual) + + +class TestContractManager: + def test_iter(self, tmp_project): + actual = set(iter(tmp_project.contracts)) + assert actual == {"Project", "Other"} + + def test_compile(self, tmp_project): + actual = list(tmp_project.contracts._compile("contracts/Project.json")) + assert len(actual) == 1 + assert actual[0].contract_type.name == "Project" + + # Show it can happen again. + actual = list(tmp_project.contracts._compile("contracts/Project.json")) + assert len(actual) == 1 + assert actual[0].contract_type.name == "Project" + + +class TestDeploymentManager: + @pytest.fixture + def project(self, tmp_project, vyper_contract_instance, mock_sepolia): + contract_type = vyper_contract_instance.contract_type + tmp_project.manifest.contract_types = {contract_type.name: contract_type} + return tmp_project + + def test_track(self, project, vyper_contract_instance, mock_sepolia): + project.deployments.track(vyper_contract_instance) + deployment = next(iter(project.deployments), None) + contract_type = vyper_contract_instance.contract_type + assert deployment is not None + assert deployment.contract_type == f"{contract_type.source_id}:{contract_type.name}" + + def test_instance_map(self, project, vyper_contract_instance, mock_sepolia): + project.deployments.track(vyper_contract_instance) + assert project.deployments.instance_map != {} + + bip122_chain_id = project.provider.get_block(0).hash.hex() + expected_uri = f"blockchain://{bip122_chain_id[2:]}/block/" + for key in project.deployments.instance_map.keys(): + if key.startswith(expected_uri): + return + + assert False, "Failed to find expected URI" diff --git a/tests/functional/test_provider.py b/tests/functional/test_provider.py index 804fd39c53..3d5aae423f 100644 --- a/tests/functional/test_provider.py +++ b/tests/functional/test_provider.py @@ -203,13 +203,18 @@ def test_provider_get_balance(project, networks, accounts): assert balance == 1000000000000000000000000 -def test_set_timestamp(eth_tester_provider): - pending_at_start = eth_tester_provider.get_block("pending").timestamp - expected = pending_at_start + 100 - eth_tester_provider.set_timestamp(expected) - eth_tester_provider.mine() - actual = eth_tester_provider.get_block("pending").timestamp - assert actual == expected + 1 # Mining adds another second. +def test_set_timestamp(ethereum): + # NOTE: Using a different eth-tester for multi-processing ease. + with ethereum.local.use_provider( + "test", provider_settings={"chain_id": 919191912828283} + ) as provider: + pending_at_start = provider.get_block("pending").timestamp + new_ts = pending_at_start + 100 + expected = new_ts + 1 # Mining adds another second. + provider.set_timestamp(new_ts) + provider.mine() + actual = provider.get_block("pending").timestamp + assert actual == expected def test_set_timestamp_to_same_time(eth_tester_provider): @@ -390,7 +395,6 @@ def test_make_request_handles_http_error_method_not_allowed(eth_tester_provider, """ real_web3 = eth_tester_provider._web3 mock_web3.eth = real_web3.eth - eth_tester_provider._web3 = mock_web3 def custom_make_request(rpc, params): if rpc == "ape_thisDoesNotExist": @@ -399,11 +403,15 @@ def custom_make_request(rpc, params): return real_web3.provider.make_request(rpc, params) mock_web3.provider.make_request.side_effect = custom_make_request - with pytest.raises( - APINotImplementedError, - match="RPC method 'ape_thisDoesNotExist' is not implemented by this node instance.", - ): - eth_tester_provider.make_request("ape_thisDoesNotExist") + eth_tester_provider._web3 = mock_web3 + try: + with pytest.raises( + APINotImplementedError, + match="RPC method 'ape_thisDoesNotExist' is not implemented by this node instance.", + ): + eth_tester_provider.make_request("ape_thisDoesNotExist") + finally: + eth_tester_provider._web3 = real_web3 def test_base_fee(eth_tester_provider): diff --git a/tests/functional/utils/test_os.py b/tests/functional/utils/test_os.py index b1aad49839..0acca31efc 100644 --- a/tests/functional/utils/test_os.py +++ b/tests/functional/utils/test_os.py @@ -68,12 +68,12 @@ def test_get_all_files_in_directory(): file.touch() all_files = get_all_files_in_directory(path) - txt_files = get_all_files_in_directory(path, pattern=r"\w+\.txt") + txt_files = get_all_files_in_directory(path, pattern=r"\w+\.txt", max_files=2) t_txt_files = get_all_files_in_directory(path, pattern=r"\w+\.t.txt") inner_txt_files = get_all_files_in_directory(path, pattern=r"\w+\.inner.txt") assert len(all_files) == 5 - assert len(txt_files) == 3 + assert len(txt_files) == 2 assert len(t_txt_files) == 1 assert len(inner_txt_files) == 1 diff --git a/tests/integration/cli/conftest.py b/tests/integration/cli/conftest.py index 3b9594abf2..731dc3eeeb 100644 --- a/tests/integration/cli/conftest.py +++ b/tests/integration/cli/conftest.py @@ -1,4 +1,3 @@ -from contextlib import contextmanager from importlib import import_module from pathlib import Path from shutil import copytree @@ -6,7 +5,7 @@ import pytest -from ape.managers.config import CONFIG_FILE_NAME +from ape import Project from tests.conftest import ApeSubprocessRunner from .test_plugins import ListResult @@ -87,7 +86,7 @@ def pytest_collection_modifyitems(session, config, items): @pytest.fixture(autouse=True) -def project_dir_map(project_folder): +def project_dir_map(): """ Ensure only copying projects once to prevent `TooManyOpenFilesError`. """ @@ -96,16 +95,17 @@ class ProjectDirCache: project_map: dict[str, Path] = {} def load(self, name: str) -> Path: + base_path = Path(__file__).parent / "projects" if name in self.project_map: # Already copied. return self.project_map[name] project_source_dir = __projects_directory__ / name - project_dest_dir = project_folder / project_source_dir.name + project_dest_dir = base_path / project_source_dir.name project_dest_dir.parent.mkdir(exist_ok=True, parents=True) if not project_dest_dir.is_dir(): - copytree(str(project_source_dir), str(project_dest_dir)) + copytree(project_source_dir, project_dest_dir) self.project_map[name] = project_dest_dir return self.project_map[name] @@ -116,8 +116,10 @@ def load(self, name: str) -> Path: @pytest.fixture(autouse=True, params=__project_names__) def project(request, config, project_dir_map): project_dir = project_dir_map.load(request.param) - with config.using_project(project_dir) as project: - yield project + root_project = Project(project_dir) + # Using tmp project so no .build folder get kept around. + with root_project.isolate_in_tempdir(name=request.param) as tmp_project: + yield tmp_project @pytest.fixture(scope="session") @@ -140,71 +142,24 @@ def clean_cache(project): Use this fixture to ensure a project does not have a cached compilation. """ - cache_file = project.local_project.manifest_cachefile - if cache_file.is_file(): - cache_file.unlink() - - project.local_project._cached_manifest = None - + project.clean() yield - - if cache_file.is_file(): - cache_file.unlink() - - project.local_project._cached_manifest = None - - -@pytest.fixture -def switch_config(config): - """ - A config-context switcher for Integration tests. - It will change the contents of the active project's config file, - reload it, yield, and change it back. Useful for testing different - config scenarios without having to create entire new projects. - """ - - def replace_config(config_file, new_content: str): - if config_file.is_file(): - config_file.unlink() - - config_file.touch() - config_file.write_text(new_content) - - @contextmanager - def switch(project, new_content: str): - config_file = project.path / CONFIG_FILE_NAME - original = config_file.read_text() if config_file.is_file() else None - - try: - replace_config(config_file, new_content) - config.load(force_reload=True) - yield - finally: - if original: - replace_config(config_file, original) - elif config_file.is_file(): - # Delete created config. - config_file.unlink() - - # Reload back - config.load(force_reload=True) - - return switch + project.clean() @pytest.fixture(scope="session") -def ape_plugins_runner(): +def ape_plugins_runner(config): """ Use subprocess runner so can manipulate site packages and see results. """ class PluginSubprocessRunner(ApeSubprocessRunner): def __init__(self): - super().__init__(["plugins"]) + super().__init__("plugins", data_folder=config.DATA_FOLDER) def invoke_list(self, arguments: Optional[list] = None): arguments = arguments or [] - result = self.invoke(["list", *arguments]) + result = self.invoke("list", *arguments) assert result.exit_code == 0, result.output return ListResult.parse_output(result.output) diff --git a/tests/integration/cli/projects/multiple-interfaces/contracts/Interface.exclude.json b/tests/integration/cli/projects/multiple-interfaces/contracts/Interface.exclude.json index 345e6aef71..edb96babdd 100644 --- a/tests/integration/cli/projects/multiple-interfaces/contracts/Interface.exclude.json +++ b/tests/integration/cli/projects/multiple-interfaces/contracts/Interface.exclude.json @@ -1 +1 @@ -Test +Test showing we only look at final part of extension diff --git a/tests/integration/cli/projects/multiple-interfaces/contracts/Interface.json b/tests/integration/cli/projects/multiple-interfaces/contracts/Interface.json index 929b853051..60ef3fdf8b 100644 --- a/tests/integration/cli/projects/multiple-interfaces/contracts/Interface.json +++ b/tests/integration/cli/projects/multiple-interfaces/contracts/Interface.json @@ -1,3 +1,3 @@ [ - {"name":"foo","type":"fallback", "stateMutability":"nonpayable"} + {"name":"bar","type":"fallback", "stateMutability":"nonpayable"} ] diff --git a/tests/integration/cli/projects/only-dependencies/__init__.py b/tests/integration/cli/projects/only-dependencies/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/integration/cli/projects/only-dependencies/ape-config.yaml b/tests/integration/cli/projects/only-dependencies/ape-config.yaml index a10d06e4f3..f1c320fdb6 100644 --- a/tests/integration/cli/projects/only-dependencies/ape-config.yaml +++ b/tests/integration/cli/projects/only-dependencies/ape-config.yaml @@ -1,3 +1,6 @@ +# Avoid it thinking the dependency is the contracts' folder. +contracts_folder: contracts + dependencies: - name: dependency-in-project-only local: ./dependency_in_project_only diff --git a/tests/integration/cli/projects/script/scripts/error_cli.py b/tests/integration/cli/projects/script/scripts/error_cli.py index e7ad3793d2..3dc4979040 100644 --- a/tests/integration/cli/projects/script/scripts/error_cli.py +++ b/tests/integration/cli/projects/script/scripts/error_cli.py @@ -6,6 +6,4 @@ @click.command(short_help="Use a subcommand") def cli(): local_variable = "test foo bar" # noqa[F841] - provider = ape.chain.provider - provider.set_timestamp(123123123123123123) raise Exception("Expected exception") # noqa: T001 diff --git a/tests/integration/cli/projects/with-contracts/ape-config.yaml b/tests/integration/cli/projects/with-contracts/ape-config.yaml index 50334e68ad..e1feb94f49 100644 --- a/tests/integration/cli/projects/with-contracts/ape-config.yaml +++ b/tests/integration/cli/projects/with-contracts/ape-config.yaml @@ -17,5 +17,5 @@ test: compile: exclude: - - exclude_dir/* + - exclude_dir - Excl*.json diff --git a/tests/integration/cli/test_accounts.py b/tests/integration/cli/test_accounts.py index 33e215c360..1c6da566d0 100644 --- a/tests/integration/cli/test_accounts.py +++ b/tests/integration/cli/test_accounts.py @@ -29,14 +29,11 @@ def extract_mnemonic(output: str) -> Optional[list[str]]: @pytest.fixture(autouse=True) -def temp_keyfile_path(temp_accounts_path): - test_keyfile_path = temp_accounts_path / f"{ALIAS}.json" - - if test_keyfile_path.is_file(): - # Corrupted from a previous test - test_keyfile_path.unlink() - - return test_keyfile_path +def temp_keyfile_path(config): + # NOTE: Is a fresh account for each use. + path = config.DATA_FOLDER / "accounts" / f"{ALIAS}.json" + path.unlink(missing_ok=True) + return path @pytest.fixture @@ -92,7 +89,7 @@ def test_import_alias_is_private_key(ape_cli, runner): ) assert result.exit_code != 0, result.output expected = "ERROR: (AccountsError) Longer aliases cannot be hex strings.\n" - assert result.output == expected + assert expected in result.output @run_once diff --git a/tests/integration/cli/test_compile.py b/tests/integration/cli/test_compile.py index 5cbda99340..0821019403 100644 --- a/tests/integration/cli/test_compile.py +++ b/tests/integration/cli/test_compile.py @@ -8,13 +8,13 @@ from .utils import skip_projects, skip_projects_except skip_non_compilable_projects = skip_projects( + "bad-contracts", "empty-config", "no-config", - "script", "only-dependencies", - "bad-contracts", + "only-script-subdirs", + "script", "test", - "geth", ) @@ -29,49 +29,24 @@ "with-contracts", ) def test_compile_missing_contracts_dir(ape_cli, runner, project): - arg_lists = [("compile",), ("compile", "--include-dependencies")] + arg_lists = [["compile"], ["compile", "--include-dependencies"]] for arg_list in arg_lists: + arg_list.extend(("--project", f"{project.path}")) result = runner.invoke(ape_cli, arg_list) assert result.exit_code == 0, result.output - assert "WARNING" in result.output, f"Detected contracts folder in '{project.path.name}'" - assert "Nothing to compile" in result.output - - -@skip_projects_except("bad-contracts") -def test_compile_skip_contracts_and_missing_compilers(ape_cli, runner, project, switch_config): - result = runner.invoke(ape_cli, ("compile", "--force")) - - # Default exclude test. - assert "INFO: Compiling 'subdir/tsconfig.json'." not in result.output - assert "INFO: Compiling 'package.json'." not in result.output - - # Ensure extensions from exclude (such as .md) don't appear in missing-compilers. - assert ( - "WARNING: Missing compilers for the following file types: '.foo, .foobar, .test'. " - "Possibly, a compiler plugin is not installed or is installed but not loading correctly." - ) in result.output - - # Show we can include custom excludes. - content = """ - compile: - exclude: - - "*Contract2.foo" - """ - with switch_config(project, content): - result = runner.invoke(ape_cli, ("compile", "--force")) - - # Show our custom exclude is not mentioned in missing compilers. - assert "pes: '.foo," not in result.output @skip_non_compilable_projects def test_compile(ape_cli, runner, project, clean_cache): - result = runner.invoke(ape_cli, "compile", catch_exceptions=False) + assert not project.manifest.contract_types, "Setup failed - expecting clean start" + cmd = ("compile", "--project", f"{project.path}") + result = runner.invoke(ape_cli, cmd, catch_exceptions=False) assert result.exit_code == 0, result.output + assert project.manifest.contract_types # First time it compiles, it compiles the files with registered compilers successfully. # Files with multiple extensions are currently not supported. - all_files = [f for f in project.path.glob("contracts/**/*")] + all_files = [f for f in project.path.glob("contracts/**/*") if f.is_file()] # Don't expect directories that may happen to have `.json` in name # as well as hidden files, such as `.gitkeep`. Both examples are present @@ -91,30 +66,41 @@ def test_compile(ape_cli, runner, project, clean_cache): and not f.name.startswith(".") and f.name not in excluded and f.suffix == ".json" + and ".cache" not in [p.name for p in f.parents] ] unexpected_files = [f for f in all_files if f not in expected_files] + # Extract manifest (note: same project is used in 2 instances here). manifest = project.extract_manifest() + non_json = [f for f in expected_files if f.suffix != ".json"] if len(non_json) > 0: assert manifest.compilers for file in expected_files: - assert file.name in manifest.sources + assert f"{project.contracts_folder.name}/{file.name}" in manifest.sources missing = [f.name for f in expected_files if f.stem not in result.output] + assert not missing, f"Missing: {', '.join(missing)}" - assert not any(f.stem in result.output for f in unexpected_files) + + for file in unexpected_files: + assert file.stem not in result.output, f"Shouldn't have compiled {file.name}" # Copy in .build to show that those file won't compile. # (Anything in a .build is ignored, even if in a contracts folder to prevent accidents). - shutil.copytree(project.path / ".build", project.contracts_folder / ".build") + build_path = project.path / ".build" + if project.path != project.contracts_folder: + shutil.copytree(build_path, project.contracts_folder / ".build") + assert build_path.is_dir() try: - result = runner.invoke(ape_cli, "compile", catch_exceptions=False) + result = runner.invoke(ape_cli, cmd, catch_exceptions=False) assert result.exit_code == 0, result.output + assert "__local__.json" not in result.output # First time it compiles, it caches for file in project.path.glob("contracts/**/*"): - assert file.stem not in result.output + if file.is_file(): + assert file.name not in result.output finally: shutil.rmtree(project.contracts_folder / ".build", ignore_errors=True) @@ -122,25 +108,36 @@ def test_compile(ape_cli, runner, project, clean_cache): @skip_projects_except("multiple-interfaces") def test_compile_when_sources_change(ape_cli, runner, project, clean_cache): - result = runner.invoke(ape_cli, "compile", catch_exceptions=False) + source_path = project.contracts_folder / "Interface.json" + content = source_path.read_text() + assert "bar" in content, "Test setup failed - unexpected content" + + result = runner.invoke( + ape_cli, ("compile", "--project", f"{project.path}"), catch_exceptions=False + ) assert result.exit_code == 0, result.output - assert "Compiling 'Interface.json'" in result.output + assert "contracts/Interface.json" in result.output + assert "SUCCESS: 'local project' compiled." in result.output - # Change the contents of a file + # Change the contents of a file. source_path = project.contracts_folder / "Interface.json" - modified_source_text = source_path.read_text().replace("foo", "bar") + modified_source_text = source_path.read_text().replace("bar", "foo") source_path.unlink() source_path.touch() source_path.write_text(modified_source_text) - - result = runner.invoke(ape_cli, "compile", catch_exceptions=False) + result = runner.invoke( + ape_cli, ("compile", "--project", f"{project.path}"), catch_exceptions=False + ) assert result.exit_code == 0, result.output - assert "Compiling 'Interface.json'" in result.output + assert "contracts/Interface.json" in result.output + assert "SUCCESS: 'local project' compiled." in result.output # Verify that the next time, it does not need to recompile (no changes) - result = runner.invoke(ape_cli, "compile", catch_exceptions=False) + result = runner.invoke( + ape_cli, ("compile", "--project", f"{project.path}"), catch_exceptions=False + ) assert result.exit_code == 0, result.output - assert "Compiling 'Interface.json'" not in result.output + assert "contracts/Interface.json" not in result.output @skip_projects_except("multiple-interfaces") @@ -155,20 +152,23 @@ def clean(): clean() source_copy = temp_dir / "Interface.json" expected = ( - r"ERROR: \(CompilerError\) ContractType collision between sources '" - r"([\w\/]+\.json)' and '([\w\/]+\.json)'\." + r"ERROR: \(CompilerError\) ContractType collision\. " + r"Contracts '(.*\.json)' and '(.*\.json)' share the name 'Interface'\." ) temp_dir.mkdir() try: source_copy.touch() source_copy.write_text(source_path.read_text()) - result = runner.invoke(ape_cli, "compile", catch_exceptions=False) + result = runner.invoke( + ape_cli, ("compile", "--project", f"{project.path}"), catch_exceptions=False + ) assert result.exit_code == 1 actual = result.output search_result = re.search(expected, actual) assert search_result, actual groups = search_result.groups() - assert {groups[0], groups[1]} == {"Interface.json", "temp/Interface.json"} + expected_group = {"contracts/Interface.json", "contracts/temp/Interface.json"} + assert set(groups) == expected_group finally: clean() @@ -187,15 +187,15 @@ def test_compile_when_source_contains_return_characters(ape_cli, runner, project source_path.unlink() source_path.touch() source_path.write_text(modified_source_text) - - result = runner.invoke(ape_cli, "compile", catch_exceptions=False) + arguments = ("compile", "--project", f"{project.path}") + result = runner.invoke(ape_cli, arguments, catch_exceptions=False) assert result.exit_code == 0, result.output - assert "Compiling 'Interface.json'" in result.output + assert "contracts/Interface.json" in result.output # Verify that the next time, it does not need to recompile (no changes) - result = runner.invoke(ape_cli, "compile", catch_exceptions=False) + result = runner.invoke(ape_cli, arguments, catch_exceptions=False) assert result.exit_code == 0, result.output - assert "Compiling 'Interface.json'" not in result.output + assert "contracts/Interface.json" not in result.output @skip_projects_except("multiple-interfaces") @@ -208,40 +208,31 @@ def test_can_access_contracts(project, clean_cache): @skip_projects_except("multiple-interfaces") @pytest.mark.parametrize( "contract_path", - ("Interface", "Interface.json", "contracts/Interface", "contracts/Interface.json"), + ("Interface.json", "Interface", "contracts/Interface.json", "contracts/Interface"), ) def test_compile_specified_contracts(ape_cli, runner, project, contract_path, clean_cache): - result = runner.invoke(ape_cli, ("compile", contract_path), catch_exceptions=False) + arguments = ("compile", contract_path, "--project", f"{project.path}") + result = runner.invoke(ape_cli, arguments, catch_exceptions=False) assert result.exit_code == 0, result.output - assert "Compiling 'Interface.json'" in result.output + assert "contracts/Interface.json" in result.output # Already compiled. - result = runner.invoke(ape_cli, ("compile", contract_path), catch_exceptions=False) + result = runner.invoke(ape_cli, arguments, catch_exceptions=False) assert result.exit_code == 0, result.output - assert "Compiling 'Interface.json'" not in result.output + assert "contracts/Interface.json" not in result.output # Force recompile. - result = runner.invoke(ape_cli, ("compile", contract_path, "--force"), catch_exceptions=False) + result = runner.invoke(ape_cli, [*arguments, "--force"], catch_exceptions=False) assert result.exit_code == 0, result.output - assert "Compiling 'Interface.json'" in result.output + assert "contracts/Interface.json" in result.output @skip_projects_except("multiple-interfaces") def test_compile_unknown_extension_does_not_compile(ape_cli, runner, project, clean_cache): - name = "Interface.js" - result = runner.invoke(ape_cli, ("compile", name), catch_exceptions=False) - expected = f"Source file '{name}' not found." + arguments = ("compile", "Interface.js", "--project", f"{project.path}") + result = runner.invoke(ape_cli, arguments, catch_exceptions=False) assert result.exit_code == 2, result.output - assert expected in result.output - - -@skip_projects_except() -def test_compile_contracts(ape_cli, runner, project): - result = runner.invoke(ape_cli, ("compile", "--size"), catch_exceptions=False) - assert result.exit_code == 0, result.output - # Still caches but displays bytecode size - for file in project.path.glob("contracts/**/*"): - assert file.stem in result.output + assert "Error: Source file 'Interface.js' not found." in result.output @skip_projects_except("with-dependencies") @@ -250,7 +241,7 @@ def test_compile_contracts(ape_cli, runner, project): (None, "contracts/", "Project", "contracts/Project.json"), ) def test_compile_with_dependency(ape_cli, runner, project, contract_path): - cmd = ["compile", "--force"] + cmd = ["compile", "--force", "--project", f"{project.path}"] if contract_path: cmd.append(contract_path) @@ -272,7 +263,8 @@ def test_compile_with_dependency(ape_cli, runner, project, contract_path): @skip_projects_except("with-dependencies") def test_compile_individual_contract_excludes_other_contract(ape_cli, runner, project): - result = runner.invoke(ape_cli, ("compile", "Project", "--force"), catch_exceptions=False) + arguments = ("compile", "Project", "--force", "--project", f"{project.path}") + result = runner.invoke(ape_cli, arguments, catch_exceptions=False) assert result.exit_code == 0, result.output assert "Other" not in result.output @@ -284,83 +276,50 @@ def test_compile_non_ape_project_deletes_ape_config_file(ape_cli, runner, projec # Corrupted from a previous test. ape_config.unlink() - result = runner.invoke(ape_cli, ("compile", "Project", "--force"), catch_exceptions=False) + arguments = ("compile", "Project", "--force", "--project", f"{project.path}") + result = runner.invoke(ape_cli, arguments, catch_exceptions=False) assert result.exit_code == 0, result.output - assert "ape-config.yaml" not in [f.name for f in (project.path / "default").iterdir()] @skip_projects_except("only-dependencies") -def test_compile_only_dependency(ape_cli, runner, project, clean_cache, caplog): - expected_log_message = "Compiling 'DependencyInProjectOnly.json'" - dependency_cache = project.path / "renamed_contracts_folder" / ".build" - if dependency_cache.is_dir(): - shutil.rmtree(str(dependency_cache)) +def test_compile_only_dependency(ape_cli, runner, project, clean_cache, ape_caplog): + expected_log_message = "Compiling sources/DependencyInProjectOnly.json" - result = runner.invoke(ape_cli, ("compile", "--force"), catch_exceptions=False) + # Compile w/o --include-dependencies flag (nothing happens but it doesn't fail). + arguments: tuple[str, ...] = ("compile", "--force", "--project", f"{project.path}") + result = runner.invoke(ape_cli, arguments, catch_exceptions=False) assert result.exit_code == 0, result.output - - # Dependencies are not compiled automatically assert expected_log_message not in result.output - # Trigger actual dependency compilation - dependency = project.dependencies["dependency-in-project-only"]["local"] - _ = dependency.DependencyInProjectOnly - - # Pop the log record off here so we can check the tail again below. - length_before = len(caplog.records) - assert expected_log_message in caplog.messages[-1] + # Now, actually compile (using --include-dependencies) + arguments = ("compile", "--force", "--project", f"{project.path}", "--include-dependencies") + result = runner.invoke(ape_cli, arguments, catch_exceptions=False) + assert expected_log_message in result.output - # It should not need to compile again. - _ = dependency.DependencyInProjectOnly - if caplog.records: - if expected_log_message in caplog.messages[-1]: - length_after = len(caplog.records) - # The only way it should be the same log is if there - # were not additional logs. - assert length_after == length_before + # It should not need to compile again (no force). + arguments = ("compile", "--project", f"{project.path}", "--include-dependencies") + result = runner.invoke(ape_cli, arguments, catch_exceptions=False) + assert expected_log_message not in result.output - else: - pytest.fail("Compiled twice!") + # Ensure config reading works. Note: have to edit file here + # because in-memory config updates only works when on the subprocess, + # and the CLI has to reload the project. + config_path = project.path / "ape-config.yaml" + project.config.compile.include_dependencies = True + project.config.write_to_disk(config_path, replace=True) - # Force a re-compile and trigger the dependency to compile via CLI - result = runner.invoke( - ape_cli, ("compile", "--force", "--include-dependencies"), catch_exceptions=False - ) + arguments = ("compile", "--force", "--project", f"{project.path}", "--include-dependencies") + result = runner.invoke(ape_cli, arguments, catch_exceptions=False) assert result.exit_code == 0, result.output assert expected_log_message in result.output - # Make sure the config option works - config_file = project.path / "ape-config.yaml" - text = config_file.read_text() - try: - text = text.replace(" include_dependencies: false", " include_dependencies: true") - config_file.unlink() - config_file.write_text(text) - project.config_manager.load(force_reload=True) - result = runner.invoke(ape_cli, ("compile", "--force"), catch_exceptions=False) - assert result.exit_code == 0, result.output - assert expected_log_message in result.output - finally: - text.replace(" include_dependencies: true", " include_dependencies: false") - project.config_manager.load(force_reload=True) - @skip_projects_except("with-contracts") -def test_raw_compiler_output_bytecode(ape_cli, runner, project): +def test_raw_compiler_output_bytecode(project): assert project.RawVyperOutput.contract_type.runtime_bytecode.bytecode assert project.RawSolidityOutput.contract_type.deployment_bytecode.bytecode -@skip_projects_except("with-contracts") -def test_compile_after_deleting_cache_file(project): - assert project.RawVyperOutput - path = project.local_project._cache_folder / "RawVyperOutput.json" - path.unlink() - - # Should still work (will have to figure it out its missing and put back). - assert project.RawVyperOutput - - @skip_projects_except("with-contracts") def test_compile_exclude(ape_cli, runner): result = runner.invoke(ape_cli, ("compile", "--force"), catch_exceptions=False) diff --git a/tests/integration/cli/test_console.py b/tests/integration/cli/test_console.py index df5161a17b..789c373ae5 100644 --- a/tests/integration/cli/test_console.py +++ b/tests/integration/cli/test_console.py @@ -1,9 +1,18 @@ +from pathlib import Path + import pytest from ape import __all__ from tests.integration.cli.utils import skip_projects, skip_projects_except -data_and_project_folders = pytest.mark.parametrize("folder", ["PROJECT_FOLDER", "DATA_FOLDER"]) + +@pytest.fixture(params=("path", "root")) +def extras_base_path(project, request): + if request.param == "path": + yield project.path + else: + yield project.config_manager.DATA_FOLDER + # Simple single namespace example EXTRAS_SCRIPT_1 = """ @@ -51,8 +60,8 @@ def no_console_error(result): ) -def write_ape_console_extras(project, folder, contents): - extras_file = getattr(project.config_manager, folder).joinpath("ape_console_extras.py") +def write_ape_console_extras(base_path, contents): + extras_file = base_path.joinpath("ape_console_extras.py") extras_file.write_text(contents) return extras_file @@ -65,7 +74,7 @@ def clean_console_rc_write(project): if global_extras.is_file(): global_extras.unlink() - project_extras = project.config_manager.PROJECT_FOLDER.joinpath("ape_console_extras.py") + project_extras = project.path.joinpath("ape_console_extras.py") if project_extras.is_file(): project_extras.unlink() @@ -73,13 +82,15 @@ def clean_console_rc_write(project): # NOTE: We export `__all__` into the IPython session that the console runs in @skip_projects("geth") @pytest.mark.parametrize("item", __all__) -def test_console(ape_cli, runner, item): - result = runner.invoke(ape_cli, "console", input=f"{item}\nexit\n", catch_exceptions=False) +def test_console(ape_cli, runner, item, project): + arguments = ["console", "--project", f"{project.path}"] + result = runner.invoke(ape_cli, arguments, input=f"{item}\nexit\n", catch_exceptions=False) assert result.exit_code == 0, result.output assert no_console_error(result), result.output + arguments.extend(("-v", "debug")) result = runner.invoke( ape_cli, - ("console", "-v", "debug"), + arguments, input=f"{item}\nexit\n", catch_exceptions=False, ) @@ -88,13 +99,13 @@ def test_console(ape_cli, runner, item): @skip_projects("geth") -@data_and_project_folders -def test_console_extras(project, folder, ape_cli, runner): - write_ape_console_extras(project, folder, EXTRAS_SCRIPT_1) +def test_console_extras(project, extras_base_path, ape_cli, runner): + write_ape_console_extras(extras_base_path, EXTRAS_SCRIPT_1) + arguments = ("console", "--project", f"{project.path}") result = runner.invoke( ape_cli, - "console", + arguments, input="\n".join(["assert A == 1", "exit"]) + "\n", catch_exceptions=False, ) @@ -103,7 +114,7 @@ def test_console_extras(project, folder, ape_cli, runner): result = runner.invoke( ape_cli, - "console", + arguments, input="\n".join(["assert a() == 1", "exit"]) + "\n", catch_exceptions=False, ) @@ -112,12 +123,12 @@ def test_console_extras(project, folder, ape_cli, runner): @skip_projects("geth") -@data_and_project_folders -def test_console_init_extras(project, folder, ape_cli, runner): - write_ape_console_extras(project, folder, EXTRAS_SCRIPT_2) +def test_console_init_extras(project, extras_base_path, ape_cli, runner): + write_ape_console_extras(extras_base_path, EXTRAS_SCRIPT_2) + arguments = ("console", "--project", f"{project.path}") result = runner.invoke( ape_cli, - "console", + arguments, input="print('a:', A)\nassert A == 2\nexit\n", catch_exceptions=False, ) @@ -126,24 +137,23 @@ def test_console_init_extras(project, folder, ape_cli, runner): @skip_projects("geth") -@data_and_project_folders -def test_console_init_extras_kwargs(project, folder, ape_cli, runner): - write_ape_console_extras(project, folder, EXTRAS_SCRIPT_3) - - result = runner.invoke(ape_cli, "console", input="exit\n", catch_exceptions=False) +def test_console_init_extras_kwargs(project, extras_base_path, ape_cli, runner): + write_ape_console_extras(extras_base_path, EXTRAS_SCRIPT_3) + arguments = ("console", "--project", f"{project.path}") + result = runner.invoke(ape_cli, arguments, input="exit\n", catch_exceptions=False) assert result.exit_code == 0, result.output assert no_console_error(result), result.output @skip_projects("geth") -@data_and_project_folders -def test_console_init_extras_return(project, folder, ape_cli, runner): - write_ape_console_extras(project, folder, EXTRAS_SCRIPT_4) +def test_console_init_extras_return(project, extras_base_path, ape_cli, runner): + write_ape_console_extras(extras_base_path, EXTRAS_SCRIPT_4) + arguments = ("console", "--project", f"{project.path}") # Test asserts returned A exists and B is not overwritten result = runner.invoke( ape_cli, - "console", + arguments, input="\n".join( [ "assert A == 1, 'unexpected A'", @@ -161,9 +171,12 @@ def test_console_init_extras_return(project, folder, ape_cli, runner): @skip_projects_except("only-dependencies") def test_console_import_local_path(project, ape_cli, runner): + # NOTE: Don't use temp-path! Temp-path projects do not copy Python modules. + path = Path(__file__).parent / "projects" / "only-dependencies" + arguments = ("console", "--project", f"{path}") result = runner.invoke( ape_cli, - "console", + arguments, input="\n".join(["from dependency_in_project_only.importme import import_me", "exit"]) + "\n", ) @@ -172,12 +185,14 @@ def test_console_import_local_path(project, ape_cli, runner): @skip_projects_except("only-dependencies") -def test_console_import_local_path_in_extras_file(project, ape_cli, runner): - write_ape_console_extras(project, "PROJECT_FOLDER", EXTRAS_SCRIPT_5) - +def test_console_import_local_path_in_extras_file(project, extras_base_path, ape_cli, runner): + # NOTE: Don't use tmp path! Temp projects do not copy Python modules. + path = Path(__file__).parent / "projects" / "only-dependencies" + write_ape_console_extras(extras_base_path, EXTRAS_SCRIPT_5) + arguments = ("console", "--project", f"{path}") result = runner.invoke( ape_cli, - "console", + arguments, input="exit\n", catch_exceptions=False, ) @@ -186,10 +201,11 @@ def test_console_import_local_path_in_extras_file(project, ape_cli, runner): @skip_projects_except("only-dependencies") -def test_console_ape_magic(ape_cli, runner): +def test_console_ape_magic(project, ape_cli, runner): + arguments = ("console", "--project", f"{project.path}") result = runner.invoke( ape_cli, - ("console",), + arguments, input="%load_ext ape_console.plugin\n%ape--help\nexit\n", catch_exceptions=False, ) @@ -198,7 +214,8 @@ def test_console_ape_magic(ape_cli, runner): @skip_projects_except("only-dependencies") -def test_console_bal_magic(ape_cli, runner, keyfile_account): +def test_console_bal_magic(project, ape_cli, runner, keyfile_account): + arguments = ("console", "--project", f"{project.path}") cases = ( "%load_ext ape_console.plugin", "%bal acct", @@ -210,7 +227,7 @@ def test_console_bal_magic(ape_cli, runner, keyfile_account): cmd_str = "\n".join(cmd_ls) result = runner.invoke( ape_cli, - ("console",), + arguments, input=f"{cmd_str}\n", catch_exceptions=False, ) @@ -219,7 +236,7 @@ def test_console_bal_magic(ape_cli, runner, keyfile_account): @skip_projects_except("with-contracts") -def test_uncaught_txn_err(ape_cli, runner, mocker): +def test_uncaught_txn_err(project, ape_cli, runner, mocker): # For some reason, not showing in result.output, so captured another way. handler = mocker.patch("ape_console.plugin.handle_ape_exception") cmd_ls = [ @@ -231,9 +248,10 @@ def test_uncaught_txn_err(ape_cli, runner, mocker): "exit", ] cmd_str = "\n".join(cmd_ls) + arguments = ("console", "--project", f"{project.path}") runner.invoke( ape_cli, - ("console",), + arguments, input=f"{cmd_str}\n", catch_exceptions=False, ) @@ -241,8 +259,7 @@ def test_uncaught_txn_err(ape_cli, runner, mocker): assert str(err) == "Transaction failed." -def test_console_none_network(ape_cli, runner): - result = runner.invoke( - ape_cli, ("console", "--network", "None"), input="exit\n", catch_exceptions=False - ) +def test_console_none_network(project, ape_cli, runner): + arguments = ("console", "--project", f"{project.path}", "--network", "None") + result = runner.invoke(ape_cli, arguments, input="exit\n", catch_exceptions=False) assert result.exit_code == 0 diff --git a/tests/integration/cli/test_init.py b/tests/integration/cli/test_init.py index 2d3cd0baa4..085425b26c 100644 --- a/tests/integration/cli/test_init.py +++ b/tests/integration/cli/test_init.py @@ -25,7 +25,7 @@ def test_init_success(ape_cli, runner, project): os.chdir(str(project_folder_path)) try: - result = runner.invoke(ape_cli, ["init"], input="\n".join(["init_success"])) + result = runner.invoke(ape_cli, ("init",), input="\n".join(["init_success"])) assert result.exit_code == 0, result.output # checks if the directory exist @@ -63,7 +63,7 @@ def test_fail_all_files_and_folders_exist(ape_cli, runner, project): if not folder.exists(): folder.mkdir(exist_ok=False) - result = runner.invoke(ape_cli, ["init"], input="\n".join(["init_fail"])) + result = runner.invoke(ape_cli, ("init",), input="\n".join(["init_fail"])) # checks if the directory existence assert result.exit_code == 0, result.output assert "contracts' exists" in result.output diff --git a/tests/integration/cli/test_networks.py b/tests/integration/cli/test_networks.py index 2fa43fa7fc..c6e99809fc 100644 --- a/tests/integration/cli/test_networks.py +++ b/tests/integration/cli/test_networks.py @@ -1,5 +1,7 @@ +import pytest + from ape.api.networks import LOCAL_NETWORK_NAME -from tests.conftest import GETH_URI, geth_process_test +from tests.conftest import ApeSubprocessRunner, geth_process_test from .utils import run_once, skip_projects_except @@ -62,15 +64,24 @@ │ └── node (default) ├── apenet1 │ └── node (default) -├── mainnet -│ └── node (default) ├── local (default) │ └── node (default) +├── mainnet +│ └── node (default) └── sepolia └── node (default) """ +@pytest.fixture +def networks_runner(config): + class NetworksSubprocessRunner(ApeSubprocessRunner): + def __init__(self): + super().__init__("networks", data_folder=config.DATA_FOLDER) + + return NetworksSubprocessRunner() + + def assert_rich_text(actual: str, expected: str): """ The output from `rich` causes a bunch of extra spaces to @@ -95,6 +106,7 @@ def assert_rich_text(actual: str, expected: str): @run_once def test_list(ape_cli, runner): result = runner.invoke(ape_cli, ("networks", "list")) + assert result.exit_code == 0 # Grab ethereum actual = "ethereum (default)\n" + "".join(result.output.split("ethereum (default)\n")[-1]) @@ -104,9 +116,7 @@ def test_list(ape_cli, runner): @run_once def test_list_yaml(ape_cli, runner): - result = runner.invoke( - ape_cli, ("networks", "list", "--format", "yaml"), catch_exceptions=False - ) + result = runner.invoke(ape_cli, ("networks", "list", "--format", "yaml")) expected_lines = _DEFAULT_NETWORKS_YAML.strip().split("\n") for expected_line in expected_lines: @@ -126,8 +136,9 @@ def test_list_yaml(ape_cli, runner): @skip_projects_except("geth") -def test_list_geth(ape_cli, runner, networks): +def test_list_geth(ape_cli, runner, networks, project): result = runner.invoke(ape_cli, ("networks", "list")) + assert result.exit_code == 0 # Grab ethereum actual = "ethereum (default)\n" + "".join(result.output.split("ethereum (default)\n")[-1]) @@ -138,12 +149,13 @@ def test_list_geth(ape_cli, runner, networks): # (was bug where one network's URI disappeared when setting different network's URI) geth_provider = networks.get_provider_from_choice(f"ethereum:{LOCAL_NETWORK_NAME}:node") actual_uri = geth_provider.uri - assert actual_uri == GETH_URI + assert actual_uri.startswith("http") @run_once -def test_list_filter_networks(ape_cli, runner): +def test_list_filter_networks(ape_cli, runner, networks): result = runner.invoke(ape_cli, ("networks", "list", "--network", "sepolia")) + assert result.exit_code == 0 # Grab ethereum actual = "ethereum (default)\n" + "".join(result.output.split("ethereum (default)\n")[-1]) @@ -152,8 +164,9 @@ def test_list_filter_networks(ape_cli, runner): @run_once -def test_list_filter_providers(ape_cli, runner): +def test_list_filter_providers(ape_cli, runner, networks): result = runner.invoke(ape_cli, ("networks", "list", "--provider", "test")) + assert result.exit_code == 0 # Grab ethereum actual = "ethereum (default)\n" + "".join(result.output.split("ethereum (default)\n")[-1]) @@ -162,38 +175,37 @@ def test_list_filter_providers(ape_cli, runner): @skip_projects_except("geth") -def test_list_custom_networks(ape_cli, runner): - result = runner.invoke(ape_cli, ("networks", "list")) +def test_list_custom_networks(project, networks_runner): + networks_runner.project = project + result = networks_runner.invoke("list") + assert result.exit_code == 0 actual = "ethereum (default)\n" + "".join(result.output.split("ethereum (default)\n")[-1]) assert_rich_text(actual, _CUSTOM_NETWORKS_TREE) @run_once -def test_run_not_subprocess_provider(ape_cli, runner): - cmd = ("networks", "run", "--network", "ethereum:local:test") - result = runner.invoke(ape_cli, cmd) +def test_run_not_subprocess_provider(networks_runner): + cmd = ("run", "--network", "ethereum:local:test") + result = networks_runner.invoke(*cmd) + expected = "`ape networks run` requires a provider that manages a process, not 'test'." assert result.exit_code != 0 - assert ( - result.output - == "ERROR: `ape networks run` requires a provider that manages a process, not 'test'.\n" - ) + assert expected in result.output @run_once def test_run_custom_network(ape_cli, runner): cmd = ("networks", "run", "--network", "ethereum:local:test") result = runner.invoke(ape_cli, cmd) + expected = "`ape networks run` requires a provider that manages a process, not 'test'" assert result.exit_code != 0 - assert ( - result.output - == "ERROR: `ape networks run` requires a provider that manages a process, not 'test'.\n" - ) + assert expected in result.output @geth_process_test @skip_projects_except("geth") -def test_run_already_running(ape_cli, runner, geth_provider): - cmd = ("networks", "run", "--network", f"ethereum:{LOCAL_NETWORK_NAME}:node") - result = runner.invoke(ape_cli, cmd) +def test_run_already_running(networks_runner, project, geth_provider): + networks_runner.project = project + cmd = ("run", "--network", f"ethereum:{LOCAL_NETWORK_NAME}:node") + result = networks_runner.invoke(*cmd) assert result.exit_code != 0 assert "ERROR: Process already running." in result.output diff --git a/tests/integration/cli/test_pm.py b/tests/integration/cli/test_pm.py index 18fc3e8226..aed56c4397 100644 --- a/tests/integration/cli/test_pm.py +++ b/tests/integration/cli/test_pm.py @@ -1,244 +1,251 @@ +import shutil from pathlib import Path +import pytest + +from tests.conftest import ApeSubprocessRunner from tests.integration.cli.utils import github_xfail, run_once, skip_projects_except EXPECTED_FAIL_MESSAGE = "Unknown package '{}'." +@pytest.fixture +def pm_runner(config): + class PMSubprocessRunner(ApeSubprocessRunner): + def __init__(self): + super().__init__("pm", data_folder=config.DATA_FOLDER) + + return PMSubprocessRunner() + + @run_once -def test_install_path_not_exists(ape_cli, runner): +def test_install_path_not_exists(pm_runner): path = "path/to/nowhere" - result = runner.invoke(ape_cli, ("pm", "install", path)) + result = pm_runner.invoke("install", path) assert result.exit_code != 0, result.output - assert EXPECTED_FAIL_MESSAGE.format(path) in result.output + assert EXPECTED_FAIL_MESSAGE.format(path) in result._completed_process.stderr @run_once -def test_install_path_to_local_package(ape_cli, runner, project): +def test_install_path_to_local_package(pm_runner, project): project_name = "with-contracts" path = Path(__file__).parent / "projects" / project_name name = path.stem - result = runner.invoke(ape_cli, ("pm", "install", path.as_posix(), "--name", project_name)) + result = pm_runner.invoke("install", path.as_posix(), "--name", project_name) assert result.exit_code == 0, result.output assert f"Package '{path.as_posix()}' installed." # Ensure was installed correctly. - assert (project.dependency_manager.DATA_FOLDER / "packages" / name).is_dir() + assert project.dependencies[name]["local"] @run_once -def test_install_path_to_local_config_file(ape_cli, runner): +def test_install_path_to_local_config_file(pm_runner): project = "with-contracts" path = Path(__file__).parent / "projects" / project / "ape-config.yaml" - result = runner.invoke( - ape_cli, ("pm", "install", path.as_posix(), "--name", project), catch_exceptions=False - ) + arguments = ("install", path.as_posix(), "--name", project) + result = pm_runner.invoke(*arguments) assert result.exit_code == 0, result.output assert f"Package '{path.parent.as_posix()}' installed." @skip_projects_except("test", "with-contracts") -def test_install_local_project_dependencies(ape_cli, runner): - result = runner.invoke(ape_cli, ("pm", "install")) +def test_install_local_project_dependencies(pm_runner): + result = pm_runner.invoke("install") assert result.exit_code == 0 assert "All project packages installed." in result.output @run_once -def test_install_force(ape_cli, runner): - result = runner.invoke(ape_cli, ("pm", "install", "--force")) +def test_install_force(pm_runner): + result = pm_runner.invoke("install", "--force") assert result.exit_code == 0 assert "All project packages installed." in result.output +@run_once @github_xfail() -def test_install_github_dependency_with_version(ape_cli, runner): - result = runner.invoke( - ape_cli, - ( - "pm", - "install", - "gh:OpenZeppelin/openzeppelin-contracts", - "--name", - "OpenZeppelin", - "--version", - "4.6.0", - ), +def test_install_github_dependency_with_version(pm_runner, project): + result = pm_runner.invoke( + "install", + "gh:OpenZeppelin/openzeppelin-contracts", + "--name", + "openzeppelin", + "--version", + "4.6.0", + timeout=300, ) assert result.exit_code == 0, result.output - assert "Package 'OpenZeppelin@4.6.0' installed." + assert "Package 'openzeppelin@4.6.0' installed." +@run_once @github_xfail() -def test_install_github_dependency_with_ref(ape_cli, runner): - result = runner.invoke( - ape_cli, - ( - "pm", - "install", - "gh:OpenZeppelin/openzeppelin-contracts", - "--name", - "OpenZeppelin", - "--ref", - "master", - ), +def test_install_github_dependency_with_ref(pm_runner): + result = pm_runner.invoke( + "install", + "gh:OpenZeppelin/openzeppelin-contracts", + "--name", + "OpenZeppelin", + "--ref", + "master", + timeout=300, ) assert result.exit_code == 0, result.output assert "Package 'OpenZeppelin@master' installed." @skip_projects_except("with-contracts") -def test_install_config_override(ape_cli, runner, project): +def test_install_config_override(pm_runner, project): + actual_dep = Path(__file__).parent / "projects" / "with-contracts" / "dep" + shutil.copytree(actual_dep, project.path / "dep") config_override = '{"contracts_folder": "src"}' dep_path = project.path / "dep" name = "foodep2" - result = runner.invoke( - ape_cli, - ( - "pm", - "install", - dep_path.as_posix(), - "--name", - name, - "--config-override", - config_override, - "--force", - ), + pm_runner.invoke( + "install", + dep_path.as_posix(), + "--name", + name, + "--config-override", + config_override, + "--force", ) - assert ( - f"No source files found in dependency '{name}'. " - "Try adjusting its config using `config_override`" - ) in result.output + actual = project.dependencies["foodep2"]["local"].config.contracts_folder + assert actual == "src" @run_once -def test_compile_package_not_exists(ape_cli, runner): +def test_compile_package_not_exists(pm_runner, project): + pm_runner.project = project name = "NOT_EXISTS" - result = runner.invoke(ape_cli, ("pm", "compile", name)) + result = pm_runner.invoke("compile", name) expected = f"Dependency '{name}' unknown. Is it installed?" assert result.exit_code != 0, result.output assert expected in result.output @skip_projects_except("with-contracts", "with-dependencies") -def test_compile(ape_cli, runner, project): - result = runner.invoke(ape_cli, ("pm", "compile", "--force")) - assert result.exit_code == 0, result.output - - if project.path.as_posix().endswith("with-contracts"): - assert "Package 'foodep' compiled." in result.output +def test_compile(pm_runner, project): + pm_runner.project = project + result = pm_runner.invoke("compile", "--force") + output = result.output or str(result._completed_process.stderr) + assert result.exit_code == 0, output + + if project.path.as_posix().endswith("contracts"): + assert "Package 'foodep@local' compiled." in output, output else: # Tests against a bug where we couldn't have hyphens in # dependency project contracts. - assert "Compiling 'hyphen-DependencyContract.json'" in result.output + assert "contracts/hyphen-DependencyContract.json" in output, output + + +@skip_projects_except("with-contracts") +def test_compile_config_override(pm_runner, project): + pm_runner.project = project + cmd = ("compile", "--force", "--config-override", '{"contracts_folder": "src"}') + result = pm_runner.invoke(*cmd) + output = result.output or str(result._completed_process.stderr) + assert result.exit_code == 0, output @skip_projects_except("with-contracts") -def test_compile_config_override(ape_cli, runner, project): +def test_compile_dependency(pm_runner, project): + pm_runner.project = project name = "foodep" - result = runner.invoke( - ape_cli, - ("pm", "compile", name, "--force", "--config-override", '{"contracts_folder": "src"}'), - ) + result = pm_runner.invoke("compile", name, "--force") assert result.exit_code == 0, result.output - assert f"Package '{name}' compiled." in result.output + assert f"Package '{name}@local' compiled." in result.output @skip_projects_except("only-dependencies") -def test_uninstall(ape_cli, runner, project): +def test_uninstall(pm_runner, project): + pm_runner.project = project package_name = "dependency-in-project-only" # Install packages - runner.invoke(ape_cli, ("pm", "install", ".", "--force")) - - result = runner.invoke(ape_cli, ("pm", "uninstall", package_name), input="y\n") - expected_message = f"Version 'local' of package '{package_name}' uninstalled." - assert result.exit_code == 0, result.output - assert expected_message in result.output + pm_runner.invoke("install", ".", "--force") + result = pm_runner.invoke("uninstall", package_name, "--yes") + expected_message = f"Uninstalled '{package_name}=local'." + assert result.exit_code == 0, result.output or result._completed_process.stderr + assert expected_message in result.output or result._completed_process.stderr @skip_projects_except("only-dependencies") -def test_uninstall_not_exists(ape_cli, runner, project): +def test_uninstall_not_exists(pm_runner, project): + pm_runner.project = project package_name = "_this_does_not_exist_" - result = runner.invoke(ape_cli, ("pm", "uninstall", package_name)) - expected_message = f"ERROR: Package '{package_name}' is not installed." - assert result.exit_code != 0, result.output + result = pm_runner.invoke("uninstall", package_name, "--yes") + expected_message = f"ERROR: Package(s) '{package_name}' not installed." + assert result.exit_code != 0, result.output or result._completed_process.stderr assert expected_message in result.output @skip_projects_except("only-dependencies") -def test_uninstall_specific_version(ape_cli, runner, project): +def test_uninstall_specific_version(pm_runner, project): + pm_runner.project = project package_name = "dependency-in-project-only" version = "local" # Install packages - runner.invoke(ape_cli, ("pm", "install", ".", "--force")) - - result = runner.invoke(ape_cli, ("pm", "uninstall", package_name), input="y\n") - expected_message = f"Version '{version}' of package '{package_name}' uninstalled." + pm_runner.invoke("install", ".", "--force") + result = pm_runner.invoke("uninstall", package_name, version, "--yes") + expected_message = f"Uninstalled '{package_name}=local'." assert result.exit_code == 0, result.output assert expected_message in result.output @skip_projects_except("only-dependencies") -def test_uninstall_all_versions_with_y(ape_cli, runner): +def test_uninstall_all_versions(pm_runner, project): + pm_runner.project = project # Install packages - runner.invoke(ape_cli, ("pm", "install", ".", "--force")) - + pm_runner.invoke("install", ".", "--force") package_name = "dependency-in-project-only" - result = runner.invoke(ape_cli, ("pm", "uninstall", package_name, "-y")) - expected_message = f"SUCCESS: Version 'local' of package '{package_name}' uninstalled." + result = pm_runner.invoke("uninstall", package_name, "--yes") + expected_message = f"Uninstalled '{package_name}=local'." assert result.exit_code == 0, result.output assert expected_message in result.output @skip_projects_except("only-dependencies") -def test_uninstall_specific_version_with_y(ape_cli, runner): - # Install packages - runner.invoke(ape_cli, ("pm", "install", ".", "--force")) - +def test_uninstall_invalid_version(pm_runner, project): + pm_runner.project = project package_name = "dependency-in-project-only" - version = "local" - result = runner.invoke(ape_cli, ("pm", "uninstall", package_name, version, "-y")) - expected_message = f"Version '{version}' of package '{package_name}' uninstalled." - assert result.exit_code == 0, result.output - assert expected_message in result.output - -@skip_projects_except("only-dependencies") -def test_uninstall_cancel(ape_cli, runner): # Install packages - runner.invoke(ape_cli, ("pm", "install", ".", "--force")) + pm_runner.invoke("install", ".", "--force") - package_name = "dependency-in-project-only" - version = "local" - result = runner.invoke(ape_cli, ["pm", "uninstall", package_name, version], input="n\n") - assert result.exit_code == 0, result.output - expected_message = f"Version '{version}' of package '{package_name}' uninstalled." - assert expected_message not in result.output + # Ensure was installed correctly. + assert package_name in project.dependencies + assert project.dependencies[package_name]["local"] + + invalid_version = "0.0.0" + result = pm_runner.invoke("uninstall", package_name, invalid_version, "--yes") + expected_message = f"ERROR: Package(s) '{package_name}={invalid_version}' not installed." + assert result.exit_code != 0, result.output + + assert expected_message in result.output @skip_projects_except("only-dependencies") -def test_uninstall_invalid_version(ape_cli, runner, project): +def test_uninstall_cancel(pm_runner, project): + pm_runner.project = project package_name = "dependency-in-project-only" + version = "local" # Install packages - runner.invoke(ape_cli, ["pm", "install", ".", "--force"]) - - # Ensure was installed correctly. - assert package_name in project.dependencies - assert (project.dependency_manager.DATA_FOLDER / "packages" / package_name).is_dir() - - invalid_version = "0.0.0" - result = runner.invoke(ape_cli, ("pm", "uninstall", package_name, invalid_version)) + pm_runner.invoke("install", ".", "--force") - expected_message = f"Version '{invalid_version}' of package '{package_name}' is not installed." - assert expected_message in result.output + result = pm_runner.invoke("uninstall", package_name, version, input="n\n") + assert result.exit_code == 0, result._completed_process.stderr + expected_message = f"Version '{version}' of package '{package_name}' uninstalled." + assert expected_message not in result.output @skip_projects_except("only-dependencies") -def test_list(ape_cli, runner): +def test_list(pm_runner, project): + pm_runner.project = project package_name = "dependency-in-project-only" - result = runner.invoke(ape_cli, ["pm", "list"]) + result = pm_runner.invoke("list") assert result.exit_code == 0, result.output assert package_name in result.output diff --git a/tests/integration/cli/test_run.py b/tests/integration/cli/test_run.py index c2367ae95a..39c9b6f644 100644 --- a/tests/integration/cli/test_run.py +++ b/tests/integration/cli/test_run.py @@ -1,20 +1,35 @@ import sys +import pytest + +from tests.conftest import ApeSubprocessRunner + from .utils import skip_projects_except BAD_COMMAND = "not-a-name" +@pytest.fixture +def scripts_runner(config): + class ScriptsSubprocessRunner(ApeSubprocessRunner): + def __init__(self): + super().__init__("run", data_folder=config.DATA_FOLDER) + + return ScriptsSubprocessRunner() + + @skip_projects_except("script") -def test_run_unknown_script(ape_cli, runner, project): - result = runner.invoke(ape_cli, ("run", BAD_COMMAND)) +def test_run_unknown_script(scripts_runner, project): + scripts_runner.project = project + result = scripts_runner.invoke(BAD_COMMAND) assert result.exit_code == 2 - assert f"No such command '{BAD_COMMAND}'." in result.output + assert f"No such command '{BAD_COMMAND}'." in result._completed_process.stderr @skip_projects_except("script") -def test_run(ape_cli, runner, project): - result = runner.invoke(ape_cli, "run") +def test_run(scripts_runner, project): + scripts_runner.project = project + result = scripts_runner.invoke() assert result.exit_code == 0, result.output # By default, no commands are run assert "Super secret script output" not in result.output @@ -26,7 +41,7 @@ def test_run(ape_cli, runner, project): if not s.name.startswith("error") and s.stem not in not_part_of_test ] for script_file in scripts: - result = runner.invoke(ape_cli, ("run", script_file.stem), catch_exceptions=False) + result = scripts_runner.invoke(script_file.stem) assert ( result.exit_code == 0 ), f"Unexpected exit code for '{script_file.name}'\n{result.output}" @@ -39,14 +54,16 @@ def test_run(ape_cli, runner, project): @skip_projects_except("script") -def test_run_with_verbosity(ape_cli, runner, project): - result = runner.invoke(ape_cli, ("run", "click", "--verbosity", "DEBUG")) - assert result.exit_code == 0, result.output +def test_run_with_verbosity(scripts_runner, project): + scripts_runner.project = project + result = scripts_runner.invoke("click", "--verbosity", "DEBUG") + assert result.exit_code == 0, result.output or result._completed_process.stderr @skip_projects_except("script") -def test_run_subdirectories(ape_cli, runner, project): - result = runner.invoke(ape_cli, "run") +def test_run_subdirectories(scripts_runner, project): + scripts_runner.project = project + result = scripts_runner.invoke() assert result.exit_code == 0, result.output # By default, no commands are run assert "Super secret script output" not in result.output @@ -56,14 +73,15 @@ def test_run_subdirectories(ape_cli, runner, project): if not s.name.startswith("error") ] for each in subdirectory_scripts: - result = runner.invoke(ape_cli, ("run", "subdirectory", each.stem)) + result = scripts_runner.invoke("subdirectory", each.stem) assert result.exit_code == 0 assert "Super secret script output" in result.output @skip_projects_except("only-script-subdirs") -def test_run_only_subdirs(ape_cli, runner, project): - result = runner.invoke(ape_cli, "run") +def test_run_only_subdirs(scripts_runner, project): + scripts_runner.project = project + result = scripts_runner.invoke() assert result.exit_code == 0, result.output # By default, no commands are run assert "Super secret script output" not in result.output @@ -73,28 +91,32 @@ def test_run_only_subdirs(ape_cli, runner, project): if not s.name.startswith("error") ] for each in subdirectory_scripts: - result = runner.invoke(ape_cli, ("run", "subdirectory", each.stem)) + result = scripts_runner.invoke("subdirectory", each.stem) assert result.exit_code == 0, f"Unexpected exit code for '{each.name}'" assert "Super secret script output" in result.output @skip_projects_except("script") -def test_run_when_script_errors(ape_cli, runner, project): +def test_run_when_script_errors(scripts_runner, project): + scripts_runner.project = project scripts = [ s for s in project.scripts_folder.glob("*.py") if s.name.startswith("error") and not s.name.endswith("forgot_click.py") ] for script_file in scripts: - result = runner.invoke(ape_cli, ("run", script_file.stem)) + result = scripts_runner.invoke( + script_file.stem, + ) assert ( result.exit_code != 0 ), f"Unexpected exit code for '{script_file.name}'.\n{result.output}" - assert str(result.exception) == "Expected exception" + assert "Expected exception" in result._completed_process.stderr @skip_projects_except("script") -def test_run_interactive(ape_cli, runner, project): +def test_run_interactive(scripts_runner, project): + scripts_runner.project = project scripts = [ project.scripts_folder / f"{s}.py" for s in ("error_main", "error_cli", "error_no_def") ] @@ -102,7 +124,7 @@ def test_run_interactive(ape_cli, runner, project): # Show that the variable namespace from the script is available in the console. user_input = "local_variable\nape.chain.provider.mine()\nape.chain.blocks.head\nexit\n" - result = runner.invoke(ape_cli, ("run", "--interactive", scripts[0].stem), input=user_input) + result = scripts_runner.invoke("--interactive", scripts[0].stem, input=user_input) assert result.exit_code == 0, result.output # From script: local_variable = "test foo bar" @@ -111,12 +133,9 @@ def test_run_interactive(ape_cli, runner, project): @skip_projects_except("script") -def test_run_custom_provider(ape_cli, runner, project): - result = runner.invoke( - ape_cli, - ("run", "deploy", "--network", "ethereum:mainnet:http://127.0.0.1:9545"), - catch_exceptions=False, - ) +def test_run_custom_provider(scripts_runner, project): + scripts_runner.project = project + result = scripts_runner.invoke("deploy", "--network", "ethereum:mainnet:http://127.0.0.1:9545") # Show that it attempts to connect assert result.exit_code == 1, result.output @@ -124,8 +143,9 @@ def test_run_custom_provider(ape_cli, runner, project): @skip_projects_except("script") -def test_run_custom_network(ape_cli, runner, project): - result = runner.invoke(ape_cli, ("run", "deploy", "--network", "http://127.0.0.1:9545")) +def test_run_custom_network(scripts_runner, project): + scripts_runner.project = project + result = scripts_runner.invoke("deploy", "--network", "http://127.0.0.1:9545") # Show that it attempts to connect assert result.exit_code == 1, result.output @@ -133,54 +153,56 @@ def test_run_custom_network(ape_cli, runner, project): @skip_projects_except("script") -def test_try_run_script_missing_cli_decorator(ape_cli, runner, project): +def test_try_run_script_missing_cli_decorator(scripts_runner, project): """ Shows that we cannot run a script defining a `cli()` method without it being a click command. The script is not recognized, so you get a usage error. """ - - result = runner.invoke(ape_cli, ("run", "error_forgot_click")) - assert "Usage: cli run" in result.output + scripts_runner.project = project + result = scripts_runner.invoke("error_forgot_click") + assert "Usage: ape run" in result._completed_process.stderr @skip_projects_except("with-contracts") -def test_uncaught_tx_err(ape_cli, runner, project): - result = runner.invoke(ape_cli, ("run", "txerr")) +def test_uncaught_tx_err(scripts_runner, project): + scripts_runner.project = project + result = scripts_runner.invoke("txerr") assert '/scripts/txerr.py", line 12, in main' in result.output assert "contract.setNumber(5, sender=account)" in result.output assert "ERROR: (ContractLogicError) Transaction failed." in result.output @skip_projects_except("script") -def test_scripts_module_already_installed(ape_cli, runner, project, mocker): +def test_scripts_module_already_installed(project, scripts_runner, mocker): """ Make sure that if there is for some reason a python module names `scripts` installed, it does not interfere with Ape's scripting mechanism. """ + scripts_runner.project = project mock_scripts = mocker.MagicMock() mock_path = mocker.MagicMock() mock_path._path = "path/to/scripts" mock_scripts.__file__ = None mock_scripts.__path__ = mock_path sys.modules["scripts"] = mock_scripts - - result = runner.invoke(ape_cli, ("run",)) + result = scripts_runner.invoke() assert result.exit_code == 0, result.output - del sys.modules["scripts"] @skip_projects_except("script") -def test_run_recompiles_if_needed(ape_cli, runner, project): +def test_run_recompiles_if_needed(runner, ape_cli, scripts_runner, project): """ Ensure that when a change is made to a contract, when we run a script, it re-compiles the script first. """ + scripts_runner.project = project + # Ensure we begin compiled. - runner.invoke(ape_cli, ("compile", "--force")) + runner.invoke(ape_cli, ("compile", "--force", "--project", f"{project.path}")) - # Make a change to the contract + # Make a change to the contract. contract = project.contracts_folder / "VyperContract.json" method_name = project.VyperContract.contract_type.view_methods[0].name new_method_name = f"f__{method_name}__" @@ -188,5 +210,5 @@ def test_run_recompiles_if_needed(ape_cli, runner, project): contract.write_text(new_contract_text) # Run the script. It better recompile first! - result = runner.invoke(ape_cli, ["run", "output_contract_view_methods"]) + result = scripts_runner.invoke("output_contract_view_methods") assert new_method_name in result.output diff --git a/tests/integration/cli/test_test.py b/tests/integration/cli/test_test.py index bc34892a54..c43a9c1366 100644 --- a/tests/integration/cli/test_test.py +++ b/tests/integration/cli/test_test.py @@ -1,4 +1,5 @@ import io +import os import re from pathlib import Path from typing import Optional @@ -56,10 +57,20 @@ def filter_expected_methods(*methods_to_remove: str) -> str: return expected +@pytest.fixture(autouse=True, scope="session") +def path_check(): + # Fix annoying issue where path cwd doesn't exist + # Something something temp path. + try: + os.getcwd() + except Exception: + os.chdir(f"{Path(__file__).parent}") + + @pytest.fixture(autouse=True) def load_dependencies(project): """Ensure these are loaded before setting up pytester.""" - project.load_dependencies() + project.dependencies.install() @pytest.fixture @@ -68,39 +79,50 @@ def setup_pytester(pytester, owner): # in the tests. owner.transfer(owner, 0) - def setup(project_name: str): - project_path = BASE_PROJECTS_PATH / project_name + def setup(project): + project_path = BASE_PROJECTS_PATH / project.path.name tests_path = project_path / "tests" # Assume all tests should pass num_passes = 0 num_failed = 0 test_files = {} - for file_path in tests_path.iterdir(): - if file_path.name.startswith("test_") and file_path.suffix == ".py": - content = file_path.read_text() - test_files[file_path.name] = content - num_passes += len( - [ - x - for x in content.split("\n") - if x.startswith("def test_") and not x.startswith("def test_fail_") - ] - ) - num_failed += len( - [x for x in content.split("\n") if x.startswith("def test_fail_")] - ) - - pytester.makepyfile(**test_files) + if tests_path.is_dir(): + for file_path in tests_path.iterdir(): + if file_path.name.startswith("test_") and file_path.suffix == ".py": + content = file_path.read_text() + test_files[file_path.name] = content + num_passes += len( + [ + x + for x in content.splitlines() + if x.startswith("def test_") and not x.startswith("def test_fail_") + ] + ) + num_failed += len( + [x for x in content.splitlines() if x.startswith("def test_fail_")] + ) + + pytester.makepyfile(**test_files) # Make other files def _make_all_files(base: Path, prefix: Optional[Path] = None): + if not base.is_dir(): + return + for file in base.iterdir(): if file.is_dir() and not file.name == "tests": _make_all_files(file, prefix=Path(file.name)) elif file.is_file(): name = (prefix / file.name).as_posix() if prefix else file.name - src = {name: file.read_text().splitlines()} + + if name == "ape-config.yaml": + # Hack in in-memory overrides for testing purposes. + text = str(project.config) + else: + text = file.read_text() + + src = {name: text.splitlines()} pytester.makefile(file.suffix, **src) _make_all_files(project_path) @@ -152,19 +174,22 @@ def run_gas_test( @skip_projects_except("test", "with-contracts") def test_test(setup_pytester, project, pytester, eth_tester_provider): _ = eth_tester_provider # Ensure using EthTester for this test. - passed, failed = setup_pytester(project.path.name) + passed, failed = setup_pytester(project) from ape.logging import logger logger.set_level("DEBUG") - result = pytester.runpytest() - result.assert_outcomes(passed=passed, failed=failed), "\n".join(result.outlines) + result = pytester.runpytest_subprocess() + try: + result.assert_outcomes(passed=passed, failed=failed), "\n".join(result.outlines) + except ValueError: + pytest.fail(str(result.stderr)) @skip_projects_except("with-contracts") def test_uncaught_txn_err(setup_pytester, project, pytester, eth_tester_provider): _ = eth_tester_provider # Ensure using EthTester for this test. - setup_pytester(project.path.name) - result = pytester.runpytest() + setup_pytester(project) + result = pytester.runpytest_subprocess() expected = """ contract_in_test.setNumber(5, sender=owner) E ape.exceptions.ContractLogicError: Transaction failed. @@ -175,8 +200,8 @@ def test_uncaught_txn_err(setup_pytester, project, pytester, eth_tester_provider @skip_projects_except("with-contracts") def test_show_internal(setup_pytester, project, pytester, eth_tester_provider): _ = eth_tester_provider # Ensure using EthTester for this test. - setup_pytester(project.path.name) - result = pytester.runpytest("--show-internal") + setup_pytester(project) + result = pytester.runpytest_subprocess("--show-internal") expected = """ raise vm_err from err E ape.exceptions.ContractLogicError: Transaction failed. @@ -188,15 +213,15 @@ def test_show_internal(setup_pytester, project, pytester, eth_tester_provider): def test_test_isolation_disabled(setup_pytester, project, pytester, eth_tester_provider): # check the disable isolation option actually disables built-in isolation _ = eth_tester_provider # Ensure using EthTester for this test. - setup_pytester(project.path.name) - result = pytester.runpytest("--disable-isolation", "--setup-show") + setup_pytester(project) + result = pytester.runpytest_subprocess("--disable-isolation", "--setup-show") assert "F _function_isolation" not in "\n".join(result.outlines) @skip_projects_except("test", "with-contracts") def test_fixture_docs(setup_pytester, project, pytester, eth_tester_provider): _ = eth_tester_provider # Ensure using EthTester for this test. - result = pytester.runpytest("-q", "--fixtures") + result = pytester.runpytest_subprocess("-q", "--fixtures") actual = "\n".join(result.outlines) # 'accounts', 'networks', 'chain', and 'project' (etc.) @@ -210,7 +235,7 @@ def test_fixture_docs(setup_pytester, project, pytester, eth_tester_provider): @skip_projects_except("with-contracts") def test_gas_flag_when_not_supported(setup_pytester, project, pytester, eth_tester_provider): _ = eth_tester_provider # Ensure using EthTester for this test. - setup_pytester(project.path.name) + setup_pytester(project) path = f"{project.path}/tests/test_contract.py::test_contract_interaction_in_tests" result = pytester.runpytest(path, "--gas") actual = "\n".join(result.outlines) @@ -225,70 +250,35 @@ def test_gas_flag_when_not_supported(setup_pytester, project, pytester, eth_test @skip_projects_except("geth") def test_gas_flag_in_tests(geth_provider, setup_pytester, project, pytester, owner): owner.transfer(owner, "1 wei") # Do this to force a clean slate. - passed, failed = setup_pytester(project.path.name) - result = pytester.runpytest("--gas", "--network", "ethereum:local:node") + passed, failed = setup_pytester(project) + result = pytester.runpytest_subprocess("--gas", "--network", "ethereum:local:node") run_gas_test(result, passed, failed) @geth_process_test @skip_projects_except("geth") -def test_gas_flag_set_in_config( - geth_provider, setup_pytester, project, pytester, switch_config, geth_account -): +def test_gas_flag_set_in_config(geth_provider, setup_pytester, project, pytester, geth_account): geth_account.transfer(geth_account, "1 wei") # Force a clean block. - passed, failed = setup_pytester(project.path.name) - config_content = f""" - node: - ethereum: - local: - uri: {GETH_URI} - - ethereum: - local: - default_provider: node - - test: - disconnect_providers_after: false - gas: - reports: - - terminal - """ - - with switch_config(project, config_content): - result = pytester.runpytest("--network", "ethereum:local:node") + cfg = project.config.model_dump(by_alias=True, mode="json") + cfg["test"]["gas"] = {"reports": ["terminal"]} + with project.temp_config(**cfg): + passed, failed = setup_pytester(project) + result = pytester.runpytest_subprocess("--network", "ethereum:local:node") run_gas_test(result, passed, failed) @geth_process_test @skip_projects_except("geth") -def test_gas_when_estimating( - geth_provider, setup_pytester, project, pytester, switch_config, geth_account -): +def test_gas_when_estimating(geth_provider, setup_pytester, project, pytester, geth_account): """ Shows that gas reports still work when estimating gas. """ - passed, failed = setup_pytester(project.path.name) - config_content = f""" - node: - ethereum: - local: - uri: {GETH_URI} - - ethereum: - local: - default_provider: node - gas_limit: auto - - test: - disconnect_providers_after: false - gas: - reports: - - terminal - """ - + cfg = project.config.model_dump(by_alias=True, mode="json") + cfg["test"]["gas"] = {"reports": ["terminal"]} geth_account.transfer(geth_account, "1 wei") # Force a clean block. - with switch_config(project, config_content): - result = pytester.runpytest() + with project.temp_config(**cfg): + passed, failed = setup_pytester(project) + result = pytester.runpytest_subprocess() run_gas_test(result, passed, failed) @@ -298,12 +288,12 @@ def test_gas_flag_exclude_using_cli_option( geth_provider, setup_pytester, project, pytester, geth_account ): geth_account.transfer(geth_account, "1 wei") # Force a clean block. - passed, failed = setup_pytester(project.path.name) + passed, failed = setup_pytester(project) # NOTE: Includes both a mutable and a view method. expected = filter_expected_methods("fooAndBar", "myNumber") # Also ensure can filter out whole class expected = expected.replace(TOKEN_B_GAS_REPORT, "") - result = pytester.runpytest( + result = pytester.runpytest_subprocess( "--gas", "--gas-exclude", "*:fooAndBar,*:myNumber,tokenB:*", @@ -316,34 +306,24 @@ def test_gas_flag_exclude_using_cli_option( @geth_process_test @skip_projects_except("geth") def test_gas_flag_exclusions_set_in_config( - geth_provider, setup_pytester, project, pytester, switch_config, geth_account + geth_provider, setup_pytester, project, pytester, geth_account ): geth_account.transfer(geth_account, "1 wei") # Force a clean block. - passed, failed = setup_pytester(project.path.name) # NOTE: Includes both a mutable and a view method. expected = filter_expected_methods("fooAndBar", "myNumber") # Also ensure can filter out whole class expected = expected.replace(TOKEN_B_GAS_REPORT, "") - config_content = rf""" - node: - ethereum: - local: - uri: {GETH_URI} - - ethereum: - local: - default_provider: node - - test: - disconnect_providers_after: false - gas: - exclude: - - method_name: fooAndBar - - method_name: myNumber - - contract_name: TokenB - """ - with switch_config(project, config_content): - result = pytester.runpytest("--gas", "--network", "ethereum:local:node") + cfg = project.config.model_dump(by_alias=True, mode="json") + cfg["test"]["gas"] = { + "exclude": [ + {"method_name": "fooAndBar"}, + {"method_name": "myNumber"}, + {"contract_name": "TokenB"}, + ] + } + with project.temp_config(**cfg): + passed, failed = setup_pytester(project) + result = pytester.runpytest_subprocess("--gas", "--network", "ethereum:local:node") run_gas_test(result, passed, failed, expected_report=expected) @@ -353,8 +333,8 @@ def test_gas_flag_excluding_contracts( geth_provider, setup_pytester, project, pytester, geth_account ): geth_account.transfer(geth_account, "1 wei") # Force a clean block. - passed, failed = setup_pytester(project.path.name) - result = pytester.runpytest( + passed, failed = setup_pytester(project) + result = pytester.runpytest_subprocess( "--gas", "--gas-exclude", "VyperContract,TokenA", "--network", "ethereum:local:node" ) run_gas_test(result, passed, failed, expected_report=TOKEN_B_GAS_REPORT) @@ -370,8 +350,10 @@ def test_coverage(geth_provider, setup_pytester, project, pytester, geth_account of the coverage work. """ geth_account.transfer(geth_account, "1 wei") # Force a clean block. - passed, failed = setup_pytester(project.path.name) - result = pytester.runpytest("--coverage", "--show-internal", "--network", "ethereum:local:node") + passed, failed = setup_pytester(project) + result = pytester.runpytest_subprocess( + "--coverage", "--show-internal", "--network", "ethereum:local:node" + ) result.assert_outcomes(passed=passed, failed=failed)